/* ===== TOKENS ===== */
:root {
  --bg:        #ece8dd;       /* warm cream, close to original */
  --bg-alt:    #e5e1d5;
  --ink:       #1a1a1a;
  --ink-soft:  #4a4a48;
  --ink-muted: #a7a298;
  --line:      #cac3b4;
  --accent:    #1a1a1a;

  --inv-bg:    #1a1a1a;
  --inv-ink:   #ece8dd;
  --inv-muted: #8f8a80;

  --max:       1240px;
  --pad:       clamp(20px, 5vw, 80px);
  --section:   clamp(80px, 10vw, 160px);

  --t-sm: 14px;
  --t-base: 16px;
  --t-lg: 20px;
  --t-xl: clamp(24px, 2.4vw, 32px);
  --t-2xl: clamp(32px, 4vw, 56px);
  --t-hero: clamp(40px, 5.2vw, 80px);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ===== UTILITIES ===== */
.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.eyebrow--inv { color: var(--inv-muted); }

.h2 {
  font-size: var(--t-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
}
.lead {
  font-size: var(--t-lg);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* Language mix */
.pt, .pt-inline { color: var(--ink-muted); font-weight: 300; }
.en { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: var(--t-sm);
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.4); }
.btn--ghost { color: var(--ink-soft); padding: 14px 0; }
.btn--ghost:hover { color: var(--ink); }
.btn--block { width: 100%; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--pad);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: var(--t-sm);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-base);
  font-weight: 400;
  letter-spacing: -0.01em;
  justify-self: start;
}
.nav__links {
  display: flex;
  gap: 28px;
  justify-content: center;
}
.nav__links a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  justify-self: end;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav__cta:hover { border-bottom-color: var(--ink); }

/* ===== HERO ===== */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) var(--pad) var(--section);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero__graphic {
  position: relative;
  color: var(--ink);
  aspect-ratio: 1;
  max-width: 560px;
  width: 100%;
}
.hero__svg {
  width: 100%;
  height: 100%;
  animation: grow 2.5s cubic-bezier(.4,0,.2,1) 0.2s both;
}
.hero__svg path#growth-curve {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.2s cubic-bezier(.4,0,.2,1) 0.4s forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes grow {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__text {
  text-align: right;
}
.hero__h1 {
  font-size: var(--t-hero);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__h1 span {
  display: block;
  animation: riseIn 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.hero__h1 span:nth-child(1) { animation-delay: 0.1s; }
.hero__h1 span:nth-child(2) { animation-delay: 0.25s; }
.hero__h1 span:nth-child(3) { animation-delay: 0.4s; }
.hero__h1 span:nth-child(4) { animation-delay: 0.55s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
.hero__en { color: var(--ink); }
.hero__pt { color: var(--ink-muted); font-weight: 300; }

.hero__lead {
  font-size: var(--t-lg);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-left: auto;
  line-height: 1.45;
  margin-bottom: 32px;
}
.hero__lead .en { display: block; }
.hero__lead .pt { display: block; color: var(--ink-muted); margin-top: 4px; }

.hero__ctas {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== WHO ===== */
.who {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--pad);
  text-align: center;
}
.who__h2 {
  font-size: var(--t-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 auto 24px;
  max-width: 22ch;
}
.who__h2 .en { display: block; }
.who__h2 .pt { display: block; font-size: 0.82em; margin-top: 8px; }
.who__meta { margin-top: 32px; }
.who__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
}
.who__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.who__figure--large { aspect-ratio: 5/4; }
.who__figure img { width: 100%; height: 100%; object-fit: cover; }

/* ===== SERVICES ===== */
.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.services__intro { position: sticky; top: 120px; }
.services__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.service {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--ink-muted);
  padding-top: 4px;
}
.service h3 {
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.service .pt-inline { color: var(--ink-muted); font-weight: 300; }
.service p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.service p.pt { color: var(--ink-muted); margin-top: 2px; }

/* ===== APPROACH ===== */
.approach {
  background: var(--bg-alt);
  padding: var(--section) var(--pad);
}
.approach .eyebrow { max-width: var(--max); margin: 0 auto 48px; }
.approach__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.approach__lead h2 {
  font-size: var(--t-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.approach__lead .en { display: block; }
.approach__lead .pt { display: block; font-size: 0.78em; margin-top: 12px; }
.approach__steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.approach__steps li {
  padding: 24px 0 24px;
  border-top: 1px solid var(--line);
}
.step__num {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 8px;
}
.approach__steps h3 {
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.approach__steps .pt-inline { color: var(--ink-muted); font-weight: 300; }
.approach__steps p { font-size: 15px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.approach__steps p.pt { color: var(--ink-muted); margin-top: 2px; }

/* ===== RESULTS ===== */
.results {
  background: var(--inv-bg);
  color: var(--inv-ink);
  padding: var(--section) var(--pad);
}
.results .eyebrow { max-width: var(--max); margin: 0 auto 64px; text-align: center; }
.results__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  text-align: center;
}

.stat__num {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 20px;
}
.stat__en {
  font-size: 15px;
  line-height: 1.4;
  color: var(--inv-ink);
  max-width: 24ch;
  margin: 0 auto 4px;
}
.stat__pt {
  font-size: 14px;
  line-height: 1.4;
  color: var(--inv-muted);
  max-width: 26ch;
  margin: 0 auto;
}

/* ===== QUOTE ===== */
.quote {
  background: var(--inv-bg);
  color: var(--inv-ink);
  padding: 0 var(--pad) var(--section);
}
.quote blockquote {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(236,232,221,0.15);
  padding: 64px 0 0;
  text-align: center;
}
.quote p {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 16px;
}
.quote .pt { color: var(--inv-muted); font-size: clamp(17px, 1.8vw, 22px); }
.quote footer {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--inv-muted);
  margin-top: 32px;
}

/* ===== CTA BAND ===== */
.cta-band {
  text-align: center;
  padding: var(--section) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.cta-band .h2 { max-width: 18ch; margin: 0 auto 40px; font-size: var(--t-2xl); }
.cta-band .en { display: block; }
.cta-band .pt { display: block; font-size: 0.6em; margin-top: 8px; }

/* ===== FAQ ===== */
.faq {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.faq__intro { position: sticky; top: 120px; }
.faq__list { display: flex; flex-direction: column; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'Geist Mono', monospace;
  font-size: 24px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ink-soft); }
.faq details > p { font-size: 15px; color: var(--ink-soft); margin-top: 16px; line-height: 1.55; max-width: 64ch; }
.faq details > p.pt { color: var(--ink-muted); margin-top: 6px; }

/* ===== CONTACT ===== */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__info .h2 { margin-bottom: 24px; }
.contact__meta { margin-top: 32px; line-height: 1.8; }
.contact__links { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.contact__links a {
  font-size: var(--t-lg);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: border-color 0.2s;
}
.contact__links a:hover { border-bottom-color: var(--ink); }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact__form label span {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact__form input,
.contact__form textarea {
  font-family: inherit;
  font-size: var(--t-base);
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.contact__form .btn { margin-top: 12px; padding: 16px 24px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--pad);
  font-size: var(--t-sm);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.footer__logo { font-size: var(--t-base); }
.footer__nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  color: var(--ink-soft);
}
.footer__nav a:hover { color: var(--ink); }
.footer__copy {
  margin: 0;
  text-align: right;
  color: var(--ink-soft);
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    min-height: auto;
  }
  .hero__graphic { max-width: 380px; margin: 0 auto; order: 2; opacity: 0.9; }
  .hero__text { text-align: left; order: 1; }
  .hero__lead { margin-left: 0; }
  .hero__ctas { justify-content: flex-start; }

  .services,
  .faq,
  .contact,
  .approach__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .services__intro,
  .faq__intro { position: static; }

  .who__grid { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: 1fr; gap: 48px; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer__copy { text-align: center; }
  .footer__nav { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .btn--ghost { padding: 8px 0; }
  .service { grid-template-columns: 48px 1fr; gap: 16px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__svg path#growth-curve { stroke-dashoffset: 0 !important; }
}
