/* MARCELO DESIGN X — styles. Pure black, mono body, Clash Display headings, dark red glows. */
:root {
  --bg: #000000;
  --surface: #141414;
  --border: #262626;
  --text: #ffffff;
  --muted: #9a9a9a;
  --accent: #7b61ff;
  --glow: rgba(58, 13, 13, 0.55);
  --display: "Clash Display", "Archivo", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --pad: clamp(20px, 6vw, 90px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

section, .footer { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- fixed header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
.site-logo {
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em;
}
.site-logo-dot { color: var(--accent); }
.site-nav { display: flex; gap: 34px; }
.site-nav a { font-size: 13px; color: var(--text); opacity: 0.85; transition: opacity 0.25s, color 0.25s; position: relative; }
.site-nav a:hover { opacity: 1; color: var(--accent); }
.site-cta {
  font-size: 13px; padding: 10px 22px;
  border: 1px solid var(--border); border-radius: 999px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.site-cta:hover { background: #fff; color: #000; border-color: #fff; }
.site-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.site-burger span { width: 24px; height: 2px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }


/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 90px; padding-bottom: 60px;
  text-align: center;
}
.hero-meta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center;
  margin-top: clamp(18px, 3vh, 32px);
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em;
}
.hero-avail { display: flex; align-items: center; gap: 8px; color: var(--text); }
.hero-avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.18); animation: avail-pulse 2s ease-in-out infinite; }
@keyframes avail-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-role, .hero-place { position: relative; padding-left: 22px; }
.hero-role::before, .hero-place::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--border); }

/* ---------- marquee band ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: relative; z-index: 2; background: var(--bg);
}
.marquee-track { display: inline-flex; align-items: center; will-change: transform; animation: marquee-slide 30s linear infinite; }
.marquee-item {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.01em;
  padding-right: 8px;
}
.marquee-star { color: var(--accent); font-size: 0.6em; margin: 0 34px; }
@keyframes marquee-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-portrait {
  width: min(470px, 62vw);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 90% 88% at 50% 42%, #000 55%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 88% at 50% 42%, #000 55%, transparent 78%);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-intro {
  max-width: 640px;
  margin-top: clamp(4px, 1.5vh, 20px);
  font-size: 15px;
  line-height: 2.05;
}
.hero-scroll {
  margin-top: clamp(16px, 3.5vh, 40px);
  font-size: 13px;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll .chev {
  width: 10px; height: 10px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  animation: chev-bob 2.2s ease-in-out infinite;
}
@keyframes chev-bob {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); }
  50% { transform: rotate(45deg) translate(2px, 2px); }
}

/* ---------- services ---------- */
.services { padding-top: clamp(90px, 16vh, 200px); padding-bottom: clamp(90px, 16vh, 200px); }
.svc-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(32px, 6vw, 110px);
  padding: clamp(64px, 11vh, 140px) 0;
  border-top: 1px solid var(--border);
}
.svc-row:last-child { border-bottom: 1px solid var(--border); }
.svc-word {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(56px, 8.5vw, 124px);
  line-height: 1; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.svc-text { max-width: 480px; font-size: 14.5px; }
.svc-row[data-align="right"] { flex-direction: row-reverse; }
.svc-row[data-align="right"] .svc-text { text-align: left; }

/* ---------- latest work ---------- */
.work {
  position: relative;
  padding-top: clamp(60px, 10vh, 140px);
  padding-bottom: clamp(90px, 14vh, 180px);
}
.work::before {
  content: ""; position: absolute; left: 50%; top: 42%;
  width: 900px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.work-heading {
  position: sticky; top: 24vh;
  margin: 0 auto -30vh;
  width: 100%; text-align: center;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(88px, 14vw, 200px);
  letter-spacing: -0.035em; line-height: 0.95;
  z-index: 0; pointer-events: none;
  white-space: nowrap;
}
.work-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 30vh clamp(24px, 4vw, 64px);
  max-width: 1240px; margin: 0 auto;
}
.work-card {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer;
  background: var(--surface);
}
.work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover img { transform: scale(1.04); }
.work-label {
  position: absolute; left: 22px; bottom: 20px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.work-label-title {
  font-family: var(--display); font-weight: 600;
  font-size: 26px; line-height: 1.1;
}
.work-label-cat { font-size: 13px; color: rgba(255, 255, 255, 0.85); margin-top: 6px; }
.work-cursor {
  position: fixed; z-index: 60;
  padding: 10px 20px; border-radius: 999px;
  background: #fff; color: #000;
  font-size: 12.5px; font-family: var(--mono);
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -130%) scale(0.85);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}
.work-cursor.is-on { opacity: 1; transform: translate(-50%, -130%) scale(1); }

/* ---------- shared big heading + glow ---------- */
.section-glow { position: relative; }
.section-glow::before {
  content: ""; position: absolute; left: 50%; top: clamp(80px, 14vh, 180px);
  width: 760px; height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.big-heading {
  position: relative;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(44px, 6.5vw, 84px);
  letter-spacing: -0.02em; line-height: 1.05;
  text-align: center;
  margin-bottom: clamp(56px, 9vh, 110px);
}

/* ---------- experience ---------- */
.experience { position: relative; z-index: 2; background: var(--bg); padding-top: clamp(80px, 13vh, 170px); padding-bottom: clamp(80px, 13vh, 170px); }
.exp-heading {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 5.5vw, 68px);
  letter-spacing: -0.02em;
  margin-bottom: clamp(44px, 7vh, 80px);
  max-width: 1240px; margin-left: auto; margin-right: auto;
}
.exp-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.exp-cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(28px, 4vw, 48px); position: relative; }
.exp-pills { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vh, 72px); }
.pill {
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 12.5px; white-space: nowrap;
}
.exp-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  padding-right: 64px;
}
.exp-company { color: var(--muted); font-size: 13px; margin-top: 8px; }
.exp-mark {
  position: absolute; right: clamp(28px, 4vw, 48px); bottom: clamp(28px, 4vw, 48px);
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 22px; color: #fff;
}

/* ---------- why ---------- */
.why { position: relative; z-index: 2; background: var(--bg); padding-top: clamp(80px, 13vh, 170px); padding-bottom: clamp(80px, 13vh, 170px); }
.why-cols {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.why-item { border-top: 1px solid var(--border); }
.why-item:last-child { border-bottom: 1px solid var(--border); }
.why-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 26px 4px; text-align: left;
}
.why-head-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
}
.why-arrow { font-size: 20px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.why-item.is-open .why-arrow { transform: rotate(90deg); }
.why-body { height: 0; overflow: hidden; }
.why-body p { padding: 2px 40px 28px 4px; color: var(--text); font-size: 14px; opacity: 0.9; }
.why-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.why-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- testimonials ---------- */
.testimonials { position: relative; z-index: 2; background: var(--bg); padding-top: clamp(80px, 13vh, 170px); padding-bottom: clamp(80px, 13vh, 170px); }
.tst-grid {
  position: relative;
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tst-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 26px;
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.tst-card:hover { border-color: #3a3a3a; transform: translateY(-4px); }
.tst-quote { font-size: 13.5px; line-height: 1.75; flex: 1; }
.tst-person { display: flex; align-items: center; gap: 13px; }
.tst-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tst-name { font-family: var(--display); font-weight: 600; font-size: 15px; }
.tst-role { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---------- faq ---------- */
.faq {
  position: relative; z-index: 2; background: var(--bg);
  padding-top: clamp(80px, 13vh, 170px); padding-bottom: clamp(80px, 13vh, 170px);
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 100px);
  max-width: calc(1240px + 2 * var(--pad)); margin: 0 auto;
}
.faq-heading {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 26px;
}
.faq-sub { max-width: 400px; font-size: 14px; color: var(--text); }
.faq-img { margin-top: clamp(36px, 6vh, 70px); max-width: 420px; }
.faq-img img { width: 100%; border-radius: 12px; }
.faq-list { display: flex; flex-direction: column; gap: 16px; align-self: start; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.is-open { border-color: #3a3a3a; }
.faq-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 24px 26px; text-align: left;
}
.faq-q { font-size: 14.5px; font-weight: 700; }
.faq-chev {
  width: 9px; height: 9px; flex-shrink: 0;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s;
}
.faq-item.is-open .faq-chev { transform: rotate(225deg); }
.faq-body { height: 0; overflow: hidden; }
.faq-body p { padding: 0 26px 24px; color: var(--muted); font-size: 13px; }

/* ---------- blog ---------- */
.blog { position: relative; z-index: 2; background: var(--bg); padding-top: clamp(80px, 13vh, 170px); padding-bottom: clamp(90px, 15vh, 190px); }
.blog-grid {
  position: relative;
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.3s;
}
.blog-card:hover { border-color: #3a3a3a; }
.blog-img { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-date { font-size: 12.5px; color: var(--muted); }
.blog-title {
  font-family: var(--display); font-weight: 600;
  font-size: 21px; line-height: 1.3; letter-spacing: -0.01em;
  transition: color 0.3s;
}
.blog-more { font-size: 12.5px; transition: color 0.3s; }
.blog-more::after { content: "  →"; }
.blog-card:hover .blog-title, .blog-card:hover .blog-more { color: var(--accent); }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; background: var(--bg); padding-top: clamp(70px, 11vh, 140px); overflow: hidden; }
.footer-top {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 60px;
  padding-bottom: clamp(50px, 8vh, 100px);
}
.footer-brand { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 30px; }
.footer-news {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em;
}
.footer-links { display: flex; gap: clamp(48px, 8vw, 120px); }
.footer-col h4 { font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13.5px; padding: 7px 0; color: var(--text); opacity: 0.9; transition: opacity 0.25s, color 0.25s; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-word {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(110px, 17.5vw, 300px);
  line-height: 0.78; letter-spacing: 0.01em;
  text-align: center;
  color: #0d0d0d;
  white-space: nowrap;
  transform: translateY(0.18em);
  user-select: none;
}
.footer-bar {
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid var(--border);
  margin-top: -1px;
  padding: 26px 0 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  position: relative; background: var(--bg);
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-connect { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.footer-connect a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); color: var(--text); transition: border-color 0.25s, color 0.25s; }
.footer-connect a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- reveal defaults ---------- */
[data-reveal], .svc-row, .work-card, .exp-cell, .why-item, .tst-card, .faq-item, .blog-card, .why-img, .faq-img {
  opacity: 0; transform: translateY(44px);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .tst-grid { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; }
  .faq-img { display: none; }
}
@media (max-width: 860px) {
  .site-nav, .site-cta {
    position: fixed; inset: 0; z-index: 105;
    background: rgba(0,0,0,0.97);
    flex-direction: column; align-items: center; justify-content: center;
    display: flex; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity 0.35s;
  }
  .site-cta { inset: auto; position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%); }
  body.nav-open .site-nav, body.nav-open .site-cta { opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 26px; font-family: var(--display); }
  .site-burger { display: flex; }
  body.nav-open .site-burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  body.nav-open .site-burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-heading { position: relative; transform: none; left: auto; top: auto; margin-bottom: 48px; white-space: normal; }
  .exp-grid { grid-template-columns: 1fr; }
  .why-cols { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .svc-row { flex-direction: column; align-items: flex-start; gap: 24px; padding: 48px 0; }
  .svc-row[data-align="right"] { flex-direction: column; }
  .footer-top { flex-direction: column; gap: 40px; }
}
@media (max-width: 560px) {
  .tst-grid { grid-template-columns: 1fr; }
  .exp-mark { position: static; margin-top: 24px; }
  .exp-title { padding-right: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  [data-reveal], .svc-row, .work-card, .exp-cell, .why-item, .tst-card, .faq-item, .blog-card, .why-img, .faq-img {
    opacity: 1 !important; transform: none !important;
  }
}
