/* ============================================
   THE GROWTH LAB — base styles
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --surface: #ffffff;
  --surface-warm: #f6f4ef;
  --ink: #ffffff;
  --ink-dim: rgba(255, 255, 255, 0.62);
  --ink-mute: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent: oklch(0.78 0.12 65); /* warm champagne */
  --accent-deep: oklch(0.62 0.16 50);
  --font-sans: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --max: 1440px;
  --gutter: clamp(24px, 4vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body { font-size: 16px; line-height: 1.5; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

/* Grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 80ms linear;
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,10,10,0.85), rgba(10,10,10,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 400ms var(--ease-out);
}
.nav.scrolled { background: rgba(10,10,10,0.9); border-bottom: 1px solid var(--line); }

.nav-links {
  display: flex; gap: 0;
  font-size: 14px; letter-spacing: 0.01em;
}
.nav-links a {
  position: relative; padding: 8px 18px;
  color: var(--ink-dim);
  transition: color 240ms var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a + a { border-left: 1px solid var(--line); }
.nav-links a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 4px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 360ms var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }

.lang-switch {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px; letter-spacing: 0.08em;
  transition: all 240ms var(--ease-out);
}
.lang-switch:hover { background: var(--ink); color: var(--bg); }
.lang-switch:hover svg { stroke: var(--bg); }

/* ===========================
   LANGUAGE MENU (dropdown)
   =========================== */
.lang-menu { position: relative; }
.lang-menu .lang-switch .caret {
  transition: transform 240ms var(--ease-out);
}
.lang-menu.open .lang-switch .caret { transform: rotate(180deg); }
.lang-menu.open .lang-switch {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.lang-menu.open .lang-switch svg { stroke: var(--bg); }

.lang-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: rgba(15, 13, 11, 0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 10px;
  box-shadow:
    0 24px 60px -16px rgba(0,0,0,0.7),
    0 0 0 1px rgba(216,160,106,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out);
  z-index: 120;
}
.lang-menu.open .lang-pop {
  opacity: 1; pointer-events: auto; transform: none;
}
html[dir="rtl"] .lang-pop { right: auto; left: 0; transform-origin: top left; }

.lang-pop-head {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 12px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.lang-pop ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 1px;
}

.lang-opt {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
html[dir="rtl"] .lang-opt { text-align: right; }
.lang-opt:hover { background: rgba(255,255,255,0.05); color: var(--ink); }
.lang-opt.is-active { color: var(--ink); background: rgba(216,160,106,0.10); }
.lang-opt-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--accent);
  min-width: 26px;
}
.lang-opt-native {
  flex: 1;
  font-weight: 400;
}
.lang-opt-check {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}

/* RTL adjustments */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .nav-links a + a { border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; }
html[dir="rtl"] .hero-meta { /* flex layout swaps naturally */ }
html[dir="rtl"] .about-quote { border-left: 0; border-right: 1px solid var(--accent); padding: 24px 28px; }
html[dir="rtl"] .svc-modal-bullets li { flex-direction: row-reverse; }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
html[dir="rtl"] .insight-image::before { left: auto; right: 14px; }
html[dir="rtl"] .svc-image .placeholder { left: auto; right: 12px; }

/* ===========================
   LOGO — brand-faithful: globe on left, "The / Growth Lab" wordmark on right.
   Uses the brand reference images (black on light bg) and inverts them so
   the marks read as white-on-dark across the nav, footer and brandmark.

   On hover the wordmark slides LEFT under the globe, fading + blurring,
   while the globe scales up and rotates 360°.
   =========================== */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  position: relative; cursor: pointer;
  padding: 4px;
  isolation: isolate; /* z-index sandbox so the spinning globe sits above the wordmark */
}

/* Image-based logo parts — PNGs are pre-processed: white logo on transparent
   background, so they drop in cleanly on any surface (hero video, dark nav,
   light cards, etc.) without filters or blend tricks. */
.logo-img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.logo-mark {
  position: relative; z-index: 3;
  width: 64px; height: 64px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 700ms var(--ease-out);
  transform-origin: center;
}
.logo-mark svg { width: 100%; height: 100%; overflow: visible; }
.logo:hover .logo-mark { transform: scale(1.35) rotate(360deg); }
.logo:hover .logo-mark svg .ring {
  animation: ringSpin 8s linear infinite;
  transform-origin: center;
}

.logo-wordmark {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center;
  height: 52px;          /* matches the visual cap-height of the larger globe */
  transition: transform 600ms var(--ease-out), opacity 380ms var(--ease-out), filter 380ms;
  transform-origin: left center;
}
.logo-wordmark .logo-img {
  width: auto;
  height: 100%;
}
.logo:hover .logo-wordmark {
  /* Slide LEFT under the globe, fade + blur */
  transform: translateX(-64px) scale(0.7);
  opacity: 0;
  filter: blur(6px);
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative; min-height: 100vh;
  padding: 0 var(--gutter);
  /* Reserve vertical breathing room so the absolutely-positioned
     hero-meta ("São Paulo · Brasil — Latam · Europa · Ásia") never
     collides with the hero title at narrow widths / heavy zoom. */
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(120px, 16vh, 200px);
  display: flex; align-items: center;
  overflow: hidden;
  --hero-tint: 0.55;
}

/* Background video — sits behind every other hero layer */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Fade in once the browser has enough buffer */
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
  /* Slight warmth so it integrates with the brand palette */
  filter: saturate(0.85) contrast(1.05);
  pointer-events: none;
}
.hero.has-video .hero-video { opacity: 1; }

/* Dark/warm overlay on top of the video for legibility */
.hero-video-tint {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(10,10,10, calc(var(--hero-tint) * 0.85)) 0%,
      rgba(10,10,10, calc(var(--hero-tint) * 0.55)) 40%,
      rgba(10,10,10, calc(var(--hero-tint) * 0.95)) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(10,10,10, 0), rgba(10,10,10, calc(var(--hero-tint) * 0.7)) 80%);
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.hero.has-video .hero-video-tint { opacity: 1; }

/* When the video is up, dim the cityscape/globe layers so they don't
   compete with the footage. They stay as a hint of texture. */
.hero.has-video .hero-bg { opacity: 0; }
.hero.has-video .hero-cityscape { opacity: 0.12; }
.hero.has-video .hero-globe { opacity: 0.22; mix-blend-mode: screen; }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  transition: opacity 600ms var(--ease-out);
  background:
    radial-gradient(ellipse at 70% 100%, rgba(0,0,0,0.4), rgba(10,10,10,1) 70%),
    linear-gradient(180deg, #0a0a0a 0%, #1a1611 50%, #0a0a0a 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px);
  mask-image: radial-gradient(ellipse at 50% 60%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, black, transparent 75%);
}

.hero-cityscape {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  z-index: 1;
  transition: opacity 600ms var(--ease-out);
  background-image:
    linear-gradient(180deg, transparent, rgba(10,10,10,0.9) 90%),
    repeating-linear-gradient(180deg, transparent 0 calc(100% - 1px), rgba(255,180,80,0.5) calc(100% - 1px));
  opacity: 0.4;
}

.hero-globe {
  position: absolute; right: -10%; top: 50%;
  z-index: 1;
  width: min(80vh, 760px); height: min(80vh, 760px);
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 600ms var(--ease-out);
}
.hero-globe svg { width: 100%; height: 100%; }
.hero-globe .globe-rotor { transform-origin: center; animation: globeSpin 60s linear infinite; }

@keyframes globeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 980px;
  padding-top: 0;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero-eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}

.hero-title {
  font-size: clamp(48px, 8.5vw, 132px);
  line-height: 0.92; letter-spacing: -0.035em;
  font-weight: 400;
  text-wrap: balance;
}
.hero-title .italic {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
}
.hero-title .word {
  display: inline-block;
  opacity: 0; transform: translateY(40px);
  animation: heroWordIn 900ms var(--ease-out) forwards;
}
@keyframes heroWordIn { to { opacity: 1; transform: none; } }

.hero-sub {
  margin-top: 36px;
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-dim);
}

.hero-meta {
  position: absolute; left: var(--gutter); bottom: 40px;
  z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between;
  right: var(--gutter);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.16em; text-transform: uppercase;
  pointer-events: none;
}
.hero-meta > * { pointer-events: auto; }
.hero-meta > div:first-child {
  /* prevent the long São Paulo / Latam line from running into the scroll cue */
  max-width: 70%;
  text-wrap: balance;
}
.hero-meta .scroll-cue {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-dim);
}
.hero-meta .scroll-cue .line {
  width: 1px; height: 36px; background: var(--ink-dim);
  animation: scrollCue 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* ===========================
   MARQUEE
   =========================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: #060606;
}
.marquee-track {
  display: flex; gap: 80px;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  width: max-content;
  animation: marqueeMove 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 80px;
}
.marquee-track .dot {
  display: inline-block; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
}
.marquee-track .italic {
  font-family: var(--font-serif); font-style: italic;
  color: var(--ink-dim);
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===========================
   SECTION CHROME
   =========================== */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) var(--gutter);
}

/* Apple-style stacked sections. Two strengths:
   - .lift          → subtle scroll-driven rise as the section enters view,
                      used on About / Services for gentle movement.
   - .overlap       → full card treatment: rounded top, elevation shadow,
                      negative margin so the section sits ON TOP of the
                      one beneath. Used for Insights + CTA.
*/

@supports (animation-timeline: view()) {
  .lift, .overlap {
    animation: overlapLift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 36%;
    will-change: transform;
  }
  @keyframes overlapLift {
    from { transform: translateY(64px); }
    to   { transform: translateY(0); }
  }

  /* ------------------------------------------------------------
     Services (02) → News (03): cinematic scroll-driven overlap.
     The News section rises up from below and covers Services, while
     Services gently recedes (scales down + dims) to create depth.
     Implemented with two view()-timeline animations that play in
     concert as the user scrolls through the boundary.
     ------------------------------------------------------------ */
  .insights-light {
    animation: newsRise linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 55%;
    will-change: transform, border-radius, box-shadow;
  }
  @keyframes newsRise {
    from {
      transform: translateY(200px) scale(0.965);
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
      box-shadow:
        0 -16px 36px -14px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(0, 0, 0, 0.06);
    }
    to {
      transform: translateY(0) scale(1);
      border-top-left-radius: 56px;
      border-top-right-radius: 56px;
      box-shadow:
        0 -56px 100px -18px rgba(0, 0, 0, 0.78),
        inset 0 1px 0 rgba(0, 0, 0, 0.06);
    }
  }

  /* Services recedes — scales down + dims as News covers it */
  .section.services {
    animation: servicesRecede linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
    will-change: transform, filter, opacity;
    transform-origin: 50% 0%;
  }
  @keyframes servicesRecede {
    from {
      transform: scale(1);
      filter: brightness(1) saturate(1);
      opacity: 1;
    }
    to {
      transform: scale(0.92);
      filter: brightness(0.55) saturate(0.85);
      opacity: 0.82;
    }
  }
}

.overlap {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow:
    0 -28px 60px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  background: var(--bg);
}
.overlap.overlap-strong {
  margin-top: -100px;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  box-shadow:
    0 -56px 100px -18px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.overlap.services { background: #060606; }
/* Light variant — flip the inset hairline */
.overlap.light {
  background: var(--surface-warm);
  color: #121212;
  box-shadow:
    0 -40px 80px -18px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.section-head {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 64px;
}
.section-num {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(36px, 6vw, 88px);
  line-height: 0.95; letter-spacing: -0.03em;
  font-weight: 400;
}
.section-title .italic {
  font-family: var(--font-serif); font-style: italic;
}

/* ===========================
   ABOUT
   =========================== */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
}

.constellation {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%; max-width: 640px;
}
.constellation svg.links {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.constellation svg.links line { stroke: rgba(255,255,255,0.18); stroke-width: 1; transition: stroke 360ms, stroke-width 360ms; }
.constellation svg.links line.lit { stroke: rgba(216,160,106,0.9); stroke-width: 1.4; }
.constellation svg.links circle.bg-ring { fill: none; stroke: rgba(255,255,255,0.08); }

.node {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  transition:
    transform 500ms var(--ease-out),
    box-shadow 400ms,
    opacity 400ms,
    filter 400ms;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  background-color: #1a1612;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(0.96);
}
.node::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  transition: border-color 360ms, box-shadow 360ms;
  z-index: 2;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.0);
}
.node.is-founder::before { border-color: rgba(216,160,106,0.55); box-shadow: inset 0 0 0 2px rgba(10,10,10,0.4); }
.node.is-founder::after {
  /* subtle founder ring */
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(216,160,106,0.4);
  z-index: 1;
  animation: founderSpin 30s linear infinite;
}
@keyframes founderSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.node-badge {
  position: absolute; left: 50%; bottom: 10px;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  padding: 4px 10px;
  background: rgba(0,0,0,0.55);
  border-radius: 999px;
  z-index: 3;
  backdrop-filter: blur(4px);
}
.node.is-hover {
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 10;
  box-shadow: 0 14px 56px rgba(0,0,0,0.7), 0 0 0 2px var(--accent);
  filter: saturate(1.1) contrast(1.04);
}
.node.is-hover::before { border-color: rgba(216,160,106,0.85); }
.node.is-dim { opacity: 0.42; filter: saturate(0.4) contrast(0.9) brightness(0.85); }

/* Popup card revealed on hover — fades next to the node */
.node-popup {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  animation: popupIn 320ms var(--ease-out) both;
}
.node-popup.side-right { transform: translate(72px, -50%); }
.node-popup.side-left  { transform: translate(calc(-100% - 72px), -50%); }

@keyframes popupIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.node-popup-card {
  width: 280px;
  background: #15110d;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px -16px rgba(0,0,0,0.8), 0 0 0 1px rgba(216,160,106,0.15);
  transform: translateY(8px) scale(0.96);
  opacity: 0;
  animation: popupCardIn 380ms var(--ease-out) 60ms forwards;
}
@keyframes popupCardIn {
  to { opacity: 1; transform: none; }
}
.node-popup-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: #221c16;
  border-bottom: 1px solid rgba(216,160,106,0.18);
}
.node-popup-meta {
  padding: 16px 18px 18px;
}
.node-popup-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 4px;
}
.node-popup-caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 700px) {
  .node-popup-card { width: 200px; }
  .node-popup.side-right { transform: translate(48px, -50%); }
  .node-popup.side-left  { transform: translate(calc(-100% - 48px), -50%); }
}

.about-copy { max-width: 520px; }
.about-copy .brandmark { margin-bottom: 28px; opacity: 0.95; }
/* About brandmark uses the same image-based logo treatment */
.about-copy .brandmark .logo-img { width: 100%; height: 100%; }
.about-copy p {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.about-copy p strong { color: var(--ink); font-weight: 500; }
.about-quote {
  margin: 36px 0;
  padding: 24px 28px;
  border-left: 1px solid var(--accent);
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4; color: var(--ink);
}
.about-attr {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.about-attr strong { color: var(--ink); font-weight: 500; }

/* ===========================
   SERVICES
   =========================== */
.services { background: #060606; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  position: relative;
  padding: 40px 32px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px;
  transition: background 480ms var(--ease-out);
}
.svc-card:hover { background: #0e0e0e; }
.svc-card:hover .svc-arrow { transform: translate(8px, -8px); color: var(--accent); }
.svc-card:hover .svc-image { transform: scale(1.05); filter: grayscale(0) brightness(0.95) contrast(1.06); }

.svc-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.svc-image {
  margin-top: 20px;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background-color: #2a2520;
  background-image: linear-gradient(135deg, #2a2520, #0e0c0a);
  background-size: cover;
  background-position: center;
  position: relative; overflow: hidden;
  transition: transform 700ms var(--ease-out), filter 700ms;
  filter: grayscale(0.55) brightness(0.78) contrast(1.05);
}
.svc-image::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 8px, transparent 8px 16px);
  pointer-events: none;
}
/* Dark gradient at the bottom so the placeholder caption stays readable */
.svc-image-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.svc-image .placeholder {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  z-index: 2;
}
.svc-title {
  margin-top: 24px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.svc-title .italic { font-family: var(--font-serif); font-style: italic; }
.svc-blurb {
  margin-top: 12px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-dim);
}
.svc-foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.svc-cta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.svc-arrow {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 400ms var(--ease-out), color 360ms;
}

/* Services modal */
.svc-modal {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.svc-modal.open { opacity: 1; pointer-events: auto; }
.svc-modal-card {
  position: relative;
  width: min(720px, 100%);
  background: var(--surface);
  color: #121212;
  border-radius: 18px;
  padding: 44px 48px 48px;
  transform: translateY(40px) scale(0.95);
  transition: transform 600ms var(--ease-out);
}
.svc-modal.open .svc-modal-card { transform: none; }
.svc-modal-eyebrow {
  font-size: 12px; font-weight: 500;
  color: #6b6358;
  letter-spacing: 0.02em;
}
.svc-modal-title {
  margin-top: 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
.svc-modal-body {
  margin-top: 24px;
  font-size: 15px; line-height: 1.6;
  color: #3a352e;
}
.svc-modal-body p + p { margin-top: 12px; }
.svc-modal-bullets { margin-top: 24px; }
.svc-modal-bullets li {
  list-style: none; padding: 14px 0;
  display: flex; align-items: flex-start; gap: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
}
.svc-modal-bullets li:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.svc-modal-bullets .b-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent-deep);
  letter-spacing: 0.1em;
}
.svc-modal-cta {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  color: #121212; padding-bottom: 4px;
  border-bottom: 1px solid #121212;
  transition: gap 300ms var(--ease-out);
}
.svc-modal-cta:hover { gap: 18px; }
.svc-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: #f0ede5;
  display: flex; align-items: center; justify-content: center;
  transition: background 240ms, transform 240ms;
}
.svc-modal-close:hover { background: #121212; color: white; transform: rotate(90deg); }

/* ===========================
   STATS
   =========================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat {
  padding: 56px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1; letter-spacing: -0.04em;
  font-weight: 400;
}
.stat-num .suffix {
  font-family: var(--font-serif); font-style: italic;
  color: var(--accent);
}
.stat-label {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  max-width: 200px;
}

/* ===========================
   INSIGHTS
   =========================== */
/* Light "field notes" card */
.insights-light .section-num { color: var(--accent-deep); }
.insights-light .section-title { color: #121212; }

.insights-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 980px) {
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .insights-grid .insight:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .insights-grid { grid-template-columns: 1fr; } }

.insight {
  display: flex; flex-direction: column;
  text-decoration: none;
  cursor: pointer;
}
.insight-image {
  aspect-ratio: 4 / 3;
  background-color: #d8c4ad;
  background-image: linear-gradient(135deg, #d8c4ad, #8b7250);
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  position: relative; overflow: hidden;
  transition: transform 600ms var(--ease-out), filter 600ms;
}
.insights-light .insight-image {
  background-color: #e8dccb;
  background-image: linear-gradient(135deg, #e8dccb, #b8a182);
  background-size: cover;
  background-position: center;
}
.insight:hover .insight-image { transform: translateY(-6px); filter: saturate(1.1); }
.insight-image::before {
  content: attr(data-label);
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  padding: 5px 10px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 999px;
  z-index: 2;
}
.insight-image::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.32) 100%),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 12px, transparent 12px 24px);
  pointer-events: none;
}
.insight-meta {
  margin-top: 18px;
  display: flex; gap: 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.insight-meta .accent { color: var(--accent); }
.insights-light .insight-meta { color: rgba(0,0,0,0.5); }
.insights-light .insight-meta .accent { color: var(--accent-deep); font-weight: 500; }

.insight-title {
  margin-top: 12px;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15; letter-spacing: -0.015em;
  font-weight: 400;
  text-wrap: balance;
}
.insights-light .insight-title { color: #121212; font-weight: 500; }
.insight:hover .insight-title { color: var(--accent); transition: color 300ms; }
.insights-light .insight:hover .insight-title { color: var(--accent-deep); }
.insight-blurb {
  margin-top: 10px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-dim);
}
.insights-light .insight-blurb { color: rgba(0,0,0,0.62); }

/* "Read article" CTA — mini link below the blurb */
.insight-read {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
  transition: gap 280ms var(--ease-out), color 280ms;
}
.insights-light .insight-read { color: var(--accent-deep); font-weight: 500; }
.insight:hover .insight-read { gap: 14px; }

/* ===========================
   CTA BAND
   =========================== */
.cta-band {
  padding: clamp(80px, 14vh, 180px) var(--gutter);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute;
  width: 800px; height: 800px;
  right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(216,160,106,0.25), transparent 60%);
  pointer-events: none;
}
.cta-band-content {
  position: relative; max-width: 1100px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 48px;
}
@media (max-width: 800px) { .cta-band-content { grid-template-columns: 1fr; } }
.cta-band h2 {
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95; letter-spacing: -0.03em;
  font-weight: 400;
  text-wrap: balance;
}
.cta-band h2 .italic { font-family: var(--font-serif); font-style: italic; }

.cta-actions {
  display: flex; flex-direction: column;
  gap: 14px; align-items: flex-start;
}
@media (max-width: 800px) {
  .cta-actions { align-items: stretch; }
}

.cta-pill {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 22px 36px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 300ms, gap 300ms, transform 300ms, border-color 300ms;
  border: 1px solid var(--ink);
}
.cta-pill:hover { gap: 26px; background: var(--accent); border-color: var(--accent); }
.cta-pill .arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: transform 300ms; }
.cta-pill:hover .arrow { transform: rotate(-45deg); }

/* Secondary ghost variant */
.cta-pill-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255,255,255,0.32);
}
.cta-pill-ghost .arrow {
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.18);
}
.cta-pill-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent);
  color: var(--accent);
}
.cta-pill-ghost:hover .arrow { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 80px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  background: #060606;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* Big brand logo — faithful to brand mark: globe + "The / Growth Lab" */
.footer-logo {
  display: inline-flex; align-items: center;
  gap: 18px;
  text-decoration: none;
  margin-bottom: 22px;
  color: var(--ink);
}
.footer-logo-mark {
  width: 104px; height: 104px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-logo-mark svg { width: 100%; height: 100%; overflow: visible; }
.footer-logo-mark .logo-img { width: 100%; height: 100%; }

.footer-logo-wordmark {
  display: inline-flex; align-items: center;
  height: 72px;
}
.footer-logo-wordmark .logo-img {
  width: auto;
  height: 100%;
}

@media (max-width: 600px) {
  .footer-logo-mark { width: 72px; height: 72px; }
  .footer-logo-wordmark { height: 52px; }}
.footer-tag {
  margin-top: 16px;
  color: var(--ink-dim); font-size: 14px; line-height: 1.55;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px; font-weight: 400;
}
.footer-col a, .footer-col p {
  display: block; font-size: 14px;
  color: var(--ink-dim); padding: 5px 0;
  transition: color 200ms;
}
.footer-col a:hover { color: var(--accent); }
.footer-inline-link {
  display: inline !important;
  padding: 0 !important;
  color: var(--ink-dim);
  transition: color 200ms;
}
.footer-inline-link:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 36px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 240ms;
}
.footer-bottom .socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* Animation utilities */
.fade-up-stagger > * { opacity: 0; transform: translateY(20px); }
.fade-up-stagger.in > * { animation: fadeUp 700ms var(--ease-out) forwards; }
.fade-up-stagger.in > *:nth-child(1) { animation-delay: 0ms; }
.fade-up-stagger.in > *:nth-child(2) { animation-delay: 100ms; }
.fade-up-stagger.in > *:nth-child(3) { animation-delay: 200ms; }
.fade-up-stagger.in > *:nth-child(4) { animation-delay: 300ms; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ============================================
   MOBILE — phone-width refinements (<= 640px)
   Stacks nav, tightens type, collapses grids.
   ============================================ */
@media (max-width: 640px) {
  :root { --gutter: 20px; }

  /* NAV — hide text links, keep logo + lang switch only */
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .logo-mark { width: 44px; height: 44px; }
  .logo-wordmark { height: 32px; }
  .lang-switch { padding: 7px 12px; font-size: 11px; gap: 8px; }

  /* HERO */
  .hero {
    padding-top: clamp(96px, 14vh, 120px);
    padding-bottom: 180px;
    min-height: 92vh;
  }
  .hero-content { padding-top: 0; max-width: 100%; }
  .hero-eyebrow { font-size: 10px; margin-bottom: 22px; letter-spacing: 0.16em; }
  .hero-eyebrow::before { width: 20px; }
  .hero-title { font-size: clamp(40px, 11vw, 56px); line-height: 1; }
  .hero-sub { font-size: 14.5px; margin-top: 24px; max-width: 92%; }

  .hero-meta {
    left: 16px; right: 16px; bottom: 28px;
    flex-direction: column; align-items: flex-start; gap: 14px;
    font-size: 9.5px; letter-spacing: 0.14em;
  }
  .hero-meta > div:first-child { max-width: 100%; }
  .hero-meta .scroll-cue .line { height: 24px; }
  .hero-globe { width: 120vw; height: 120vw; right: -30%; opacity: 0.32; }

  /* MARQUEE */
  .marquee { padding: 18px 0; }
  .marquee-track { gap: 40px; font-size: clamp(22px, 7vw, 32px); }
  .marquee-track span { gap: 40px; }
  .marquee-track .dot { width: 8px; height: 8px; }

  /* SECTION CHROME */
  .section { padding: 72px var(--gutter); }
  .section-head { flex-direction: column; gap: 14px; margin-bottom: 36px; align-items: flex-start; }
  .section-title { font-size: clamp(32px, 9vw, 44px); }
  .overlap, .overlap.overlap-strong {
    margin-top: -24px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }

  /* ABOUT */
  .about { gap: 36px; }
  .constellation { max-width: 100%; }
  .node-popup-card { width: 168px; }
  .node-popup.side-right { transform: translate(36px, -50%); }
  .node-popup.side-left  { transform: translate(calc(-100% - 36px), -50%); }
  .about-quote { padding: 18px 20px; margin: 24px 0; font-size: 17px; }

  /* SERVICES — single column */
  .services-grid { grid-template-columns: 1fr !important; }
  .svc-card { min-height: 0; padding: 28px 24px 32px; }
  .svc-card:not(:last-child) { border-bottom: 1px solid var(--line); }
  .svc-image { aspect-ratio: 16 / 10; }
  .svc-title { font-size: 22px; margin-top: 18px; }
  .svc-blurb { font-size: 13px; }
  .svc-foot { padding-top: 22px; }

  /* STATS — 2x2 instead of 1x4 */
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 32px 18px; }
  .stat-num { font-size: clamp(40px, 11vw, 56px); }
  .stat-label { font-size: 9.5px; max-width: none; margin-top: 12px; letter-spacing: 0.14em; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  /* INSIGHTS — single column */
  .insights-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .insight-title { font-size: 20px; }

  /* CTA BAND */
  .cta-band { padding: 80px var(--gutter); }
  .cta-band-content { grid-template-columns: 1fr; gap: 32px; }
  .cta-band h2 { font-size: clamp(34px, 10vw, 56px); }
  .cta-pill { padding: 16px 22px 16px 26px; font-size: 14px; gap: 12px; width: 100%; justify-content: space-between; }
  .cta-pill .arrow { width: 28px; height: 28px; }

  /* SERVICE MODAL */
  .svc-modal { padding: 14px; }
  .svc-modal-card { padding: 32px 24px 28px; border-radius: 14px; }
  .svc-modal-title { font-size: 24px; }
  .svc-modal-body { font-size: 14px; }

  /* FOOTER */
  .footer { padding: 56px var(--gutter) 24px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }
  .footer-logo-mark { width: 72px; height: 72px; }
  .footer-logo-wordmark { height: 50px; }
  .footer-tag { font-size: 13px; max-width: 100%; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-col a, .footer-col p { font-size: 13px; padding: 4px 0; }
  .footer-bottom {
    flex-direction: column; align-items: flex-start; gap: 16px;
    margin-top: 24px;
    font-size: 9.5px;
  }

  /* LANG POPUP — origin from right edge, fit on screen */
  .lang-pop { min-width: 180px; right: -4px; }

  /* HIDE TWEAKS PANEL on mobile preview surface */
  .tweaks-panel { transform: scale(0.85); transform-origin: bottom right; }
}
