/* Five-es — core styles */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --teal: #02A677;
  --teal-deep: #017a58;
  --teal-ink: #013f2e;
  --sand: #E3CDA8;
  --sand-soft: #F3E7D1;
  --sand-paper: #FAF4E8;
  --ink: #0E1512;
  --ink-soft: #2A3532;
  --muted: #6B7773;
  --line: #1b2421;
  --line-soft: rgba(14, 21, 18, 0.08);
  --bg: #FBF8F1;
  --bg-cream: #F5EFE2;
  --white: #FFFFFF;
  --radius: 4px;
  --radius-lg: 14px;
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --font: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ————— TYPE ————— */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow-ink {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3, h4 { font-family: var(--font); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }

.h-display {
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h-display em {
  font-style: normal;
  color: var(--teal);
  font-weight: 500;
}
.h-section {
  font-size: clamp(32px, 4.4vw, 68px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.02;
}
.h-sub {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ————— LAYOUT ————— */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }

/* ————— BUTTONS ————— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 30px -10px rgba(2, 166, 119, 0.5);
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-soft);
}
.btn-ghost:hover { border-color: var(--ink); }

/* Hero variant: stands out against the sand/brown 3D scene */
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.btn-hero-ghost:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ————— NAV ————— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251, 248, 241, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav-logo-mark {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-logo-mark img { width: 70%; height: 70%; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    transition: background .2s ease, border-color .2s ease;
  }
  .nav-toggle svg { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .nav.is-open .nav-toggle { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .nav.is-open .nav-toggle svg { transform: rotate(90deg); }
  .nav-cta .btn-ghost { display: none; }

  .nav.is-open {
    background: rgba(251, 248, 241, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line-soft);
  }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px var(--pad) 28px;
    background: rgba(251, 248, 241, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    font-size: 18px;
    color: var(--ink);
    animation: nav-panel-in .25s cubic-bezier(.2,.8,.2,1);
  }
  .nav.is-open .nav-links a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.is-open .nav-links a:last-child { border-bottom: none; }
  .nav.is-open .nav-links a.is-current { color: var(--teal); }
}
@keyframes nav-panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ————— HERO (full-bleed 3D with overlay) ————— */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  padding: 0;
}
.hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--pad) clamp(40px, 6vh, 80px);
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg, rgba(10,20,30,0) 0%, rgba(10,20,30,0.5) 80%);
  padding-top: 180px;
}
.hero-overlay .hero-text { pointer-events: auto; }
.hero-text {
  max-width: 640px;
  color: var(--white);
}
.hero-text h1 { color: var(--white); font-size: clamp(36px, 5vw, 68px); margin-bottom: 20px; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero-text h1 em { color: #7FE5C4; }
.hero-text p { color: rgba(255,255,255,0.88); margin-bottom: 24px; font-size: clamp(15px, 1.1vw, 18px); max-width: 48ch; }
.hero-text .eyebrow { color: #7FE5C4; margin-bottom: 16px; }
.hero-text .eyebrow::before { background: #7FE5C4; }
.hero-text .eyebrow { margin-bottom: 24px; display: inline-flex; align-items: center; gap: 10px; }
.hero-text .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--teal);
}
.hero-text h1 { margin-bottom: 24px; font-size: clamp(36px, 5vw, 72px); }
.hero-text p { margin-bottom: 28px; font-size: clamp(16px, 1.2vw, 19px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(180deg, #8FC5E8 0%, #C9E4F2 35%, #F4E4C4 70%, #E8C896 100%);
  overflow: hidden;
  border: none;
  cursor: grab;
  user-select: none;
  touch-action: none;
  margin: 0;
  z-index: 1;
}
.scene-hud { z-index: 2; }
.hero-scene:active { cursor: grabbing; }
.hero-scene canvas { display: block; width: 100%; height: 100%; }

.scene-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 100px var(--pad) 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.hud-top, .hud-bottom {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.hud-chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(10, 20, 30, 0.55);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.12);
}
.hud-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(0.8); }
}
.hud-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  background: rgba(10,20,30,0.4);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.hud-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(10,20,30,0.4);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
}

/* speech & thought bubbles for participants */
.bubble-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #fff;
  color: #1a2632;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
  border: 1.5px solid rgba(255,255,255,0.9);
  opacity: 0;
  font-weight: 600;
  letter-spacing: -0.005em;
  max-width: 200px;
  text-align: center;
  z-index: 5;
}
.bubble.visible { opacity: 1; }
.bubble::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--white);
  border-right: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bubble.thought {
  background: var(--sand-soft);
  color: var(--ink-soft);
  font-style: italic;
  border-radius: 20px;
}
.bubble.thought::after {
  background: var(--sand-soft);
  width: 6px; height: 6px;
  border: none;
  bottom: -10px;
  box-shadow: -4px -4px 0 0 var(--sand-soft), -10px -9px 0 -1px var(--sand-soft);
  transform: translateX(-50%);
}
.bubble.teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal-deep);
}
.bubble.teal::after {
  background: var(--teal);
  border-color: var(--teal-deep);
}

/* comic-book-style big "?" thought bubble */
.bubble.qmark {
  font-size: 34px;
  font-weight: 900;
  padding: 6px 16px 2px;
  line-height: 1;
  color: #1a2632;
  background: #fff;
  border: 2.5px solid #1a2632;
  border-radius: 40% 50% 45% 55% / 55% 45% 55% 45%;
  font-style: normal;
  letter-spacing: -0.02em;
  text-shadow: 1px 1px 0 rgba(210, 59, 59, 0.25);
  transform: translate(-50%, -105%) rotate(-3deg);
}
.bubble.qmark::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2.5px solid #1a2632;
  border-radius: 50%;
  box-shadow: -8px 8px 0 -2px #fff, -8px 8px 0 0 #1a2632;
}

@media (max-width: 760px) {
  /* Mobile: stack the 3D scene as a contained exhibit card with the
     hero copy sitting below it on a clean surface — prevents the
     busy citadel from fighting the headline for readability. */
  .hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding-top: 72px;
  }
  .hero-scene {
    position: relative;
    inset: auto;
    width: calc(100% - 24px);
    margin: 0 12px;
    height: 58vh;
    min-height: 360px;
    max-height: 520px;
    flex-shrink: 0;
    border-radius: 18px;
    box-shadow: 0 20px 50px -20px rgba(14,21,18,0.35);
  }
  .hero-scene canvas { border-radius: 18px; }
  .scene-hud { padding: 14px 14px 14px; }
  .hud-chip, .hud-label, .hud-hint { font-size: 9px; padding: 6px 9px; letter-spacing: 0.1em; }
  .hero-overlay {
    position: relative;
    inset: auto;
    padding: 36px var(--pad) 56px;
    background: transparent;
    z-index: 1;
    pointer-events: auto;
  }
  .hero-text { max-width: none; color: var(--ink); }
  .hero-text h1 {
    color: var(--ink);
    text-shadow: none;
    font-size: clamp(32px, 8.4vw, 44px);
    margin-bottom: 18px;
  }
  .hero-text h1 em { color: var(--teal); }
  .hero-text p { color: var(--ink-soft); margin-bottom: 24px; }
  .hero-text .eyebrow { color: var(--teal); margin-bottom: 18px; }
  .hero-text .eyebrow::before { background: var(--teal); }
  .btn-hero-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-soft);
    backdrop-filter: none;
    box-shadow: none;
  }
  .btn-hero-ghost:hover { border-color: var(--ink); background: transparent; box-shadow: none; }
  /* Bubbles were tuned for a large scene — shrink on tight viewports */
  .bubble { font-size: 11px; padding: 7px 10px; max-width: 140px; }
  .bubble.qmark { font-size: 26px; padding: 4px 12px 2px; }
}

/* ————— ABOUT ————— */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-copy p { font-size: clamp(18px, 1.4vw, 22px); color: var(--ink-soft); margin-bottom: 24px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-pillars-list {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line-soft);
}
.about-pillar {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 28px;
  align-items: baseline;
}
.about-pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 500;
}
.about-pillar-title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  letter-spacing: -0.018em;
}
.about-pillar-title em { font-style: normal; color: var(--muted); font-weight: 300; }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ————— FIVE ES ————— */
.fives {
  background: var(--ink);
  color: var(--sand-soft);
}
.fives .eyebrow { color: var(--sand); }
.fives-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.fives-head h2 { color: var(--sand-soft); }
.fives-head h2 em { color: var(--teal); font-style: normal; font-weight: 500; }
.fives-head p { color: rgba(243, 231, 209, 0.6); font-size: clamp(16px, 1.2vw, 18px); max-width: 40ch; }

.fives-stack {
  border-top: 1px solid rgba(227, 205, 168, 0.15);
}
.five-row {
  border-bottom: 1px solid rgba(227, 205, 168, 0.15);
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  cursor: pointer;
  transition: padding .4s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.five-row:hover { padding-left: 16px; }
.five-letter {
  font-size: clamp(80px, 13vw, 200px);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--sand-soft);
  transition: color .3s ease, transform .3s ease;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.five-letter .rest {
  font-size: 0.24em;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 400;
  text-transform: lowercase;
  transform: translateY(-0.6em);
}
.five-row:hover .five-letter { color: var(--teal); }
.five-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.five-desc {
  font-size: clamp(16px, 1.3vw, 20px);
  color: rgba(243, 231, 209, 0.78);
  max-width: 46ch;
  line-height: 1.45;
}
.five-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .fives-head { grid-template-columns: 1fr; }
  .five-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .five-meta { align-items: flex-start; }
}

/* ————— MISSION / VISION / VALUES ————— */
.mvv { background: var(--bg-cream); }
.mvv-head { margin-bottom: clamp(56px, 8vw, 96px); max-width: 760px; }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
}
.mvv-card {
  background: var(--sand-paper);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 340px;
}
.mvv-card-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal);
}
.mvv-card-title {
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.mvv-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-top: auto;
}
.mvv-values {
  display: grid;
  gap: 20px;
  margin-top: auto;
}
.mvv-value-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
}
.mvv-value-item strong {
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
  min-width: 90px;
}
.mvv-value-item span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .mvv-grid { grid-template-columns: 1fr; }
  .mvv-card { min-height: 0; }
}

/* ————— SERVICES ————— */
.services { background: var(--bg); }
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(48px, 7vw, 80px); flex-wrap: wrap; }
.services-head h2 { max-width: 18ch; }
.services-head p { max-width: 40ch; color: var(--muted); font-size: 16px; }

.service-block {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid var(--line-soft);
}
.service-block:last-child { border-bottom: 1px solid var(--line-soft); }
.service-block-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
.service-block-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.service-block-title .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.service-block-title h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.022em;
}
.service-block-desc { color: var(--ink-soft); font-size: 16px; line-height: 1.55; max-width: 52ch; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 26px 22px 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.service-item:hover {
  background: var(--sand-paper);
  border-color: var(--sand);
  transform: translateY(-2px);
}
.service-icon {
  width: 36px; height: 36px;
  color: var(--teal);
}
.service-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

/* Service item gains click affordance when it has a gallery */
.service-item { position: relative; }
.service-item--has-media {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.service-item--has-media:hover {
  background: var(--white);
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -22px rgba(1, 63, 46, 0.45);
}
.service-item--has-media:hover .service-icon { color: var(--teal-deep); }
.service-item--has-media:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.service-item--empty {
  opacity: 0.55;
  cursor: default;
}
.service-item--empty:hover {
  background: var(--white);
  border-color: var(--line-soft);
  transform: none;
}

.service-item--has-media {
  min-height: 240px;
  padding-bottom: 104px;
}

.service-item-count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 10px 4px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  pointer-events: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.service-item-count .num { font-size: 12px; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.service-item-count .lbl { font-size: 9px; }
.service-item-count .arrow {
  margin-left: 2px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
}
.service-item--has-media:hover .service-item-count {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--sand-soft);
}
.service-item--has-media:hover .service-item-count .num,
.service-item--has-media:hover .service-item-count .arrow {
  color: var(--white);
}

/* ————— Service-card preview deck (fans on hover, like playing cards) ————— */
.service-item-deck {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 60px;
  height: 80px;
  pointer-events: none;
  z-index: 2;
}
.deck-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--white);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 8px 16px -8px rgba(1, 63, 46, 0.4),
    0 2px 4px rgba(0,0,0,0.08);
  --offset: calc(var(--i) - (var(--n) - 1) / 2);
  z-index: var(--i);
  transform-origin: 50% 110%;
  transform:
    translateX(calc(var(--offset) * 5px))
    rotate(calc(var(--offset) * 4deg));
  transition:
    transform .55s cubic-bezier(.2, .85, .25, 1.05),
    box-shadow .35s ease,
    border-color .25s ease;
}
.deck-card > img,
.deck-card > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.deck-card::after {
  /* subtle warm-shadow gradient so all cards read as a deck, not flat thumbs */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255,255,255,0.18) 0%, transparent 35%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
}

.service-item--has-media:hover .deck-card {
  transform:
    translateX(calc(var(--offset) * 26px))
    translateY(calc(((var(--offset) * var(--offset)) - 2.25) * -3px))
    rotate(calc(var(--offset) * 14deg));
  border-color: var(--white);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 18px 30px -10px rgba(1, 63, 46, 0.5),
    0 6px 12px -4px rgba(0,0,0,0.18);
}
/* Lock the deck on focus-visible too (keyboard users) */
.service-item--has-media:focus-visible .deck-card {
  transform:
    translateX(calc(var(--offset) * 26px))
    translateY(calc(((var(--offset) * var(--offset)) - 2.25) * -3px))
    rotate(calc(var(--offset) * 14deg));
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block-head { grid-template-columns: 1fr; gap: 20px; }
  .service-item-count { top: 10px; right: 10px; padding: 4px 8px; }
  /* Decks read poorly at narrow card widths and there's no hover on touch.
     Show a single peek-card instead — keeps the "preview" promise. */
  .service-item-deck { width: 44px; height: 60px; bottom: 16px; }
  .deck-card { width: 40px; height: 56px; }
  .deck-card:not(:last-child) { display: none; }
  .service-item--has-media { padding-bottom: 84px; }
}

/* ————— LIGHTBOX ————— */
body.lb-open { overflow: hidden; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .28s ease;
}
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 12, 0.86);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
}
.lb-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  height: min(840px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #0E1512;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(227, 205, 168, 0.08);
  transform: scale(0.98);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.lb.is-open .lb-shell { transform: scale(1); }

.lb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(227, 205, 168, 0.08);
  color: var(--sand-soft);
}
.lb-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.lb-title {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--sand-soft);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-actions { display: flex; align-items: center; gap: 14px; }
.lb-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(227, 205, 168, 0.55);
  font-variant-numeric: tabular-nums;
}
.lb-close {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(227, 205, 168, 0.2);
  color: var(--sand-soft);
  display: grid; place-items: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.lb-close:hover { background: rgba(255,255,255,0.06); border-color: var(--teal); color: var(--teal); }

.lb-stage {
  position: relative;
  background:
    radial-gradient(circle at 50% 30%, rgba(2, 166, 119, 0.08), transparent 65%),
    #0a100e;
  display: flex;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
  padding: 24px;
}
.lb-media {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}
.lb-media img,
.lb-media video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 36px -14px rgba(0,0,0,0.6);
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(14, 21, 18, 0.7);
  border: 1px solid rgba(227, 205, 168, 0.18);
  color: var(--sand-soft);
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 4;
  transition: background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.lb-nav:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.lb-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.lb-nav--prev { left: 14px; }
.lb-nav--next { right: 14px; }

.lb-rail {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid rgba(227, 205, 168, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(227, 205, 168, 0.18) transparent;
}
.lb-rail::-webkit-scrollbar { height: 6px; }
.lb-rail::-webkit-scrollbar-thumb { background: rgba(227, 205, 168, 0.18); border-radius: 3px; }
.lb-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(227, 205, 168, 0.12);
  padding: 0;
  background: #1a201d;
  opacity: 0.55;
  transition: opacity .18s ease, border-color .2s ease, transform .2s ease;
}
.lb-thumb img,
.lb-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lb-thumb:hover { opacity: 0.85; transform: translateY(-1px); }
.lb-thumb.is-active {
  opacity: 1;
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), 0 6px 14px -6px rgba(2, 166, 119, 0.55);
}
.lb-thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}

@media (max-width: 720px) {
  .lb-shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .lb-head { padding: 14px 16px; }
  .lb-title { font-size: 16px; }
  .lb-count { font-size: 10px; letter-spacing: 0.12em; }
  .lb-stage { padding: 12px; }
  .lb-nav {
    width: 38px; height: 38px;
    top: auto;
    bottom: 14px;
    transform: none;
    background: rgba(14, 21, 18, 0.85);
  }
  .lb-nav--prev { left: 14px; }
  .lb-nav--next { right: 14px; }
  .lb-rail { padding: 10px 14px; }
  .lb-thumb { width: 64px; height: 48px; }
}

/* ————— WHY US ————— */
.why { background: var(--sand-paper); }
.why-head { max-width: 720px; margin-bottom: clamp(48px, 7vw, 80px); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: 14px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px;
}
.why-card-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--teal);
}
.why-card h4 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.018em;
}
.why-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin-top: auto;
}

.why-stats {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.why-stat {
  background: var(--sand-paper);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.why-stat .val {
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 300;
  letter-spacing: -0.028em;
  color: var(--ink);
  line-height: 1;
}
.why-stat .val .plus { color: var(--teal); }
.why-stat .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ————— TESTIMONIALS ————— */
.testimonials { background: var(--teal-ink); color: var(--sand-soft); overflow: hidden; }
.testimonials .eyebrow { color: var(--sand); }
.testimonials-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
  gap: 32px;
  flex-wrap: wrap;
}
.testimonials-head h2 { color: var(--sand-soft); }
.testimonials-head h2 em { color: var(--teal); font-style: normal; font-weight: 500; }
.testimonials-controls { display: flex; gap: 10px; }
.testimonial-ctrl {
  width: 52px; height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(227, 205, 168, 0.3);
  color: var(--sand-soft);
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.testimonial-ctrl:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.testimonial-ctrl:disabled { opacity: 0.3; cursor: not-allowed; }

.testimonials-track-wrap {
  overflow: hidden;
  padding: 4px 0;
}
.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 clamp(300px, 38vw, 460px);
  background: rgba(227, 205, 168, 0.06);
  border: 1px solid rgba(227, 205, 168, 0.16);
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 340px;
}
.testimonial-card .quote-mark {
  font-size: 48px;
  color: var(--teal);
  line-height: 0.5;
  font-family: Georgia, serif;
  opacity: 0.8;
}
.testimonial-card .quote-text {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--sand-soft);
  flex: 1;
  font-weight: 300;
  letter-spacing: -0.005em;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(227, 205, 168, 0.12);
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--teal);
  display: grid; place-items: center;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
}
.author-meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.author-name { font-size: 15px; font-weight: 500; color: var(--sand-soft); }
.author-role { font-family: var(--mono); font-size: 11px; color: rgba(227, 205, 168, 0.6); letter-spacing: 0.04em; }

/* ————— CONTACT ————— */
.contact { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 24px; }
.contact-copy h2 em { font-style: normal; color: var(--teal); font-weight: 500; }
.contact-copy p { color: var(--ink-soft); margin-bottom: 36px; max-width: 44ch; font-size: clamp(16px, 1.2vw, 18px); }
.contact-founders { display: grid; gap: 20px; }
.founder {
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.founder:last-child { border-bottom: 1px solid var(--line-soft); }
.founder .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.founder .name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.founder .contact-info { text-align: right; font-size: 14px; color: var(--ink-soft); }
.founder .contact-info a { display: block; transition: color .15s ease; }
.founder .contact-info a:hover { color: var(--teal); }

.contact-form {
  background: var(--sand-paper);
  border-radius: 18px;
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  border-radius: 8px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 100px; font-family: var(--font); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(2, 166, 119, 0.12);
}
.form-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.form-chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--white);
  cursor: pointer;
  transition: all .15s ease;
  text-transform: uppercase;
}
.form-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.form-submit {
  margin-top: 8px;
  justify-content: center;
  width: 100%;
}

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ————— FOOTER ————— */
.footer {
  background: var(--ink);
  color: var(--sand-soft);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(227, 205, 168, 0.12);
}
.footer-brand h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.022em;
  margin: 24px 0 16px;
  max-width: 14ch;
}
.footer-brand h3 em { font-style: normal; color: var(--teal); font-weight: 500; }
.footer-brand p { color: rgba(227, 205, 168, 0.6); font-size: 14px; max-width: 38ch; line-height: 1.5; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(227, 205, 168, 0.75); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(227, 205, 168, 0.5);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ————— REVEAL ————— */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.38s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.44s; }

/* ————— TREASURE HUNT PAGE ————— */
.nav-links a.is-current { color: var(--teal); }
.nav-links a.is-current::after {
  content: ""; display: block; height: 2px; background: var(--teal);
  width: 100%; margin-top: 4px; border-radius: 2px;
}

/* — Intro — */
.th-intro { background: var(--bg); }
.th-intro-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.th-intro-side .eyebrow { color: var(--teal); margin-bottom: 28px; display: block; }
.th-intro-meta {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-soft);
}
.th-meta-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.th-meta-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.th-meta-v { font-size: 15px; color: var(--ink); font-weight: 500; }
.th-intro-main h2 em { color: var(--teal); font-style: italic; font-weight: 500; }
.th-intro-main p { margin-top: 22px; color: var(--ink-soft); max-width: 62ch; }

/* — Route (timeline) — */
.th-route { background: var(--teal-ink); color: var(--sand-soft); }
.th-route .eyebrow-ink { color: var(--sand); }
.th-route-head h2 { color: var(--sand-soft); }
.th-route-head h2 em { color: var(--teal); font-style: normal; font-weight: 500; }
.th-route-lede {
  max-width: 56ch;
  margin-top: 24px;
  color: rgba(243, 231, 209, 0.7);
  font-size: clamp(15px, 1.2vw, 17px);
}
.th-route-list {
  margin-top: clamp(56px, 7vw, 88px);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(227, 205, 168, 0.16);
  border-left: 1px solid rgba(227, 205, 168, 0.16);
}
.th-stop {
  position: relative;
  padding: 36px clamp(24px, 3vw, 44px) 40px;
  border-right: 1px solid rgba(227, 205, 168, 0.16);
  border-bottom: 1px solid rgba(227, 205, 168, 0.16);
  display: flex; flex-direction: column; gap: 14px;
  transition: background .3s ease;
}
.th-stop:hover { background: rgba(2, 166, 119, 0.06); }
.th-stop-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--teal);
}
.th-stop-title {
  font-family: var(--font);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--sand-soft);
  letter-spacing: -0.01em;
}
.th-stop p {
  color: rgba(243, 231, 209, 0.72);
  font-size: 15px;
  line-height: 1.6;
  max-width: 48ch;
  flex: 1;
}
.th-stop-time {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(227, 205, 168, 0.5);
  border-top: 1px dashed rgba(227, 205, 168, 0.18);
  padding-top: 14px;
}

/* — Inside (cards grid) — */
.th-inside { background: var(--bg); }
.th-inside-head h2 em { color: var(--teal); font-style: italic; font-weight: 500; }
.th-inside-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.th-card {
  background: var(--sand-paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 32px 28px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.th-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 14px 30px -18px rgba(1, 63, 46, 0.35);
}
.th-card-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 12px;
}
.th-card h3 {
  font-family: var(--font);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.th-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* — Stats — */
.th-stats { background: var(--bg-cream); }
.th-stats-head h2 em { color: var(--teal); font-style: italic; font-weight: 500; }
.th-stats-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.th-stat {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.th-stat-num {
  font-family: var(--font);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal-ink);
  display: inline-flex; align-items: baseline; gap: 2px;
}
.th-stat-suffix { color: var(--teal); }
.th-stat-label {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 22ch;
}

/* — Final CTA — */
.th-cta { background: var(--bg); }
.th-cta-inner {
  background: var(--teal-ink);
  color: var(--sand-soft);
  border-radius: 20px;
  padding: clamp(48px, 6vw, 88px) clamp(32px, 5vw, 80px);
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
  overflow: hidden;
}
.th-cta-inner::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%; height: 140%;
  background: radial-gradient(closest-side, rgba(2, 166, 119, 0.35), transparent 70%);
  pointer-events: none;
}
.th-cta-inner .eyebrow { color: var(--sand); }
.th-cta-inner h2 { color: var(--sand-soft); }
.th-cta-inner h2 em { color: var(--teal); font-style: italic; font-weight: 500; }
.th-cta-inner p {
  color: rgba(243, 231, 209, 0.72);
  max-width: 56ch;
}
.th-cta-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 12px;
  position: relative; z-index: 1;
}
.th-cta-actions .btn-ghost {
  border-color: rgba(227, 205, 168, 0.3);
  color: var(--sand-soft);
}
.th-cta-actions .btn-ghost:hover {
  background: rgba(243, 231, 209, 0.06);
  border-color: var(--sand);
}

/* — Responsive — */
@media (max-width: 980px) {
  .th-intro-grid { grid-template-columns: 1fr; }
  .th-inside-grid { grid-template-columns: repeat(2, 1fr); }
  .th-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .th-route-list { grid-template-columns: 1fr; }
  .th-inside-grid { grid-template-columns: 1fr; }
}

/* ————— HERO (video layout — main page) ————— */
.hero-video-layout {
  height: auto;
  min-height: 0;
  padding: clamp(96px, 12vw, 132px) var(--pad) clamp(64px, 8vw, 96px);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(2, 166, 119, 0.07), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(227, 205, 168, 0.35), transparent 70%),
    var(--bg);
  overflow: visible;
}
.hero-video-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-video-layout .hero-text {
  max-width: 620px;
  color: var(--ink);
}
.hero-video-layout .hero-text .eyebrow {
  color: var(--teal);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-video-layout .hero-text .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--teal);
}
.hero-video-layout .hero-text h1 {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(40px, 5vw, 68px);
  margin-bottom: 22px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.hero-video-layout .hero-text h1 em { color: var(--teal); }
.hero-video-layout .hero-text p {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.2vw, 19px);
  margin-bottom: 32px;
  max-width: 52ch;
  line-height: 1.6;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-media-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  background: var(--teal-ink);
  box-shadow:
    0 30px 60px -30px rgba(1, 63, 46, 0.55),
    0 12px 24px -16px rgba(14, 21, 18, 0.35),
    inset 0 0 0 1px rgba(243, 231, 209, 0.08);
  transform: translateZ(0);
}
.hero-media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 63, 46, 0.18) 0%, transparent 28%, transparent 70%, rgba(1, 63, 46, 0.35) 100%);
  z-index: 2;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.hero-media-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-soft);
  background: rgba(1, 63, 46, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(243, 231, 209, 0.18);
}
.hero-media-chip .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(2, 166, 119, 0.18);
  animation: hero-chip-pulse 1.8s ease-in-out infinite;
}
.hero-video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(243, 231, 209, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  z-index: 4;
  box-shadow:
    0 18px 38px -12px rgba(1, 63, 46, 0.55),
    0 6px 14px -8px rgba(14, 21, 18, 0.35);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms ease;
}
.hero-video-play:hover { background: #fff; transform: translate(-50%, -50%) scale(1.05); }
.hero-video-play:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.hero-video-play:active { transform: translate(-50%, -50%) scale(0.97); }
.hero-video-play svg { margin-left: 3px; }
.hero-video-play[hidden] { display: none; }
@keyframes hero-chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2, 166, 119, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(2, 166, 119, 0); }
}

@media (max-width: 900px) {
  .hero-video-layout { padding-top: clamp(96px, 18vw, 132px); }
  .hero-video-grid {
    grid-template-columns: 1fr;
    gap: clamp(36px, 7vw, 56px);
  }
  .hero-media { order: -1; }
  .hero-media-frame { max-width: 340px; margin: 0 auto; aspect-ratio: 9 / 14; }
  .hero-video-layout .hero-text { max-width: none; }
  .hero-video-layout .hero-text h1 { font-size: clamp(34px, 8.6vw, 48px); }
}

/* ————— HERO (split — treasure hunt page) ————— */
.hero-split {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: clamp(96px, 12vw, 132px) var(--pad) clamp(64px, 8vw, 96px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(2, 166, 119, 0.08), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(227, 205, 168, 0.32), transparent 70%),
    var(--bg);
}
.hero-split-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-split-text { max-width: 620px; color: var(--ink); }
.hero-split-text .eyebrow {
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-split-text .eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--teal);
}
.hero-split-text h1 {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero-split-text h1 em { color: var(--teal); }
.hero-split-text p {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 56ch;
}

.hero-scene-frame {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 4 / 3;
  margin-left: auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -30px rgba(1, 63, 46, 0.45),
    0 12px 24px -16px rgba(14, 21, 18, 0.30),
    inset 0 0 0 1px rgba(243, 231, 209, 0.18);
  background: linear-gradient(180deg, #8FC5E8 0%, #C9E4F2 35%, #F4E4C4 70%, #E8C896 100%);
}
.hero-split .hero-scene {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
.hero-split .scene-hud { padding: 16px 18px; }
.hero-split .hud-chip,
.hero-split .hud-label,
.hero-split .hud-hint {
  font-size: 9px;
  padding: 6px 9px;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .hero-split { padding-top: clamp(96px, 18vw, 132px); }
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 56px);
  }
  .hero-scene-frame { order: -1; max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 3; }
  .hero-split-text { max-width: none; }
  .hero-split-text h1 { font-size: clamp(34px, 8.6vw, 48px); }
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.social-link svg {
  opacity: 0.8;
  transition: opacity .15s ease, transform .15s ease;
}
.social-link:hover svg { opacity: 1; transform: translateX(-1px); }
