/* ===================================================================
   HIELUX ADVISORY — v3 (light-dominant, dual-theme, real map)
   =================================================================== */

:root {
  /* light palette */
  --paper:        #F5F1E8;
  --paper-2:      #EDE8DC;
  --paper-3:      #E5DFCF;
  --ink:          #0E0B08;
  --ink-2:        #1C1814;
  --ink-3:        #2A241D;
  --ink-dim:      rgba(14,11,8,0.7);
  --ink-faint:    rgba(14,11,8,0.45);
  --paper-dim:    rgba(245,241,232,0.72);
  --paper-faint:  rgba(245,241,232,0.42);
  --silver:       #6B6358;

  /* gold */
  --gold:         #B8923D;
  --gold-bright:  #D4AC50;
  --gold-glow:    rgba(212,172,80,0.18);

  /* borders */
  --border-l:     rgba(14,11,8,0.1);
  --border-l-2:   rgba(14,11,8,0.18);
  --border-d:     rgba(245,241,232,0.1);
  --border-d-2:   rgba(245,241,232,0.2);
  --border-gold:  rgba(184,146,61,0.4);

  /* type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Instrument Sans', -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'SF Mono', monospace;

  /* easing */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --section-pad:  clamp(80px, 12vw, 180px);

  /* contextual tokens — light by default */
  --accent:       var(--gold);
  --bg:           var(--paper);
  --fg:           var(--ink);
  --fg-dim:       var(--ink-dim);
  --fg-faint:     var(--ink-faint);
  --border:       var(--border-l);
  --border-2:     var(--border-l-2);
}

/* dark sections override the contextual tokens */
[data-theme="dark"] {
  --accent:    var(--gold-bright);
  --bg:        var(--ink-2);
  --fg:        var(--paper);
  --fg-dim:    var(--paper-dim);
  --fg-faint:  var(--paper-faint);
  --border:    var(--border-d);
  --border-2:  var(--border-d-2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: auto;   /* Lenis takes over smooth scrolling */
  overflow-x: hidden;      /* clip the hero world-map SVG bleed (110% width) at the document level */
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ─────────── CUSTOM CURSOR (v3.8 — element-driven theme detection) ─────────── */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Default (light context) — ink colored. Tightened transitions to avoid
   visible in-flight intermediate states on rapid theme crossings. */
.cursor {
  width: 8px; height: 8px;
  background: var(--ink);
  z-index: 9999;
  transition: width 0.18s var(--ease), height 0.18s var(--ease), background 0.15s var(--ease);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--ink);
  z-index: 9998;
  opacity: 0.55;
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              border-color 0.15s var(--ease), opacity 0.2s var(--ease),
              border-width 0.2s var(--ease);
}

/* Hover state — universal across themes (gold contrasts well on both) */
body.cursor-hover .cursor {
  width: 4px; height: 4px;
  background: var(--gold);
}
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  opacity: 0.85;
  border-color: var(--gold);
  border-width: 1.5px;
}

/* Dark context — driven by .cursor-on-dark class (set by elementFromPoint
   detection, distinct from .on-dark which is set by section-IO for nav theming).
   The two classes diverge during scroll transitions, which is correct:
   nav cares which section is dominant; cursor cares what's literally under it. */
body.cursor-on-dark .cursor {
  background: var(--paper);
}
body.cursor-on-dark .cursor-ring {
  border-color: var(--paper);
  opacity: 0.5;
}
body.cursor-on-dark.cursor-hover .cursor {
  background: var(--gold-bright);
}
body.cursor-on-dark.cursor-hover .cursor-ring {
  border-color: var(--gold-bright);
}

/* Map context — slightly darker paper-2 background, bump cursor weight */
body.cursor-on-map .cursor {
  width: 9px;
  height: 9px;
}
body.cursor-on-map .cursor-ring {
  border-width: 2px;
  opacity: 0.7;
}

@media (max-width: 880px), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* ─────────── GRAIN OVERLAY ─────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────── TYPOGRAPHY ─────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* ─────────── LAYOUT ─────────── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--bg);
  color: var(--fg);
}

/* hairline between same-theme sections; dark↔light boundary uses color contrast */
[data-theme="light"] + [data-theme="light"] { border-top: 1px solid var(--border-l); }
[data-theme="dark"]  + [data-theme="dark"]  { border-top: 1px solid var(--border-d); }

/* ─────────── PAGE LOADER ─────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.6s var(--ease) 0.4s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.4em;
  color: var(--paper);
  font-weight: 500;
  position: relative;
}
.loader-mark::before, .loader-mark::after {
  content: '';
  position: absolute;
  height: 1px;
  background: var(--gold-bright);
  top: 50%;
  width: 0;
  transition: width 0.8s var(--ease);
}
.loader-mark::before { right: 100%; margin-right: 16px; }
.loader-mark::after  { left:  100%; margin-left:  16px; }
.loader.start .loader-mark::before,
.loader.start .loader-mark::after { width: 60px; }

/* ─────────── NAV (dual-theme) ─────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: transparent;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(245,241,232,0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border-l);
  padding: 10px 0;
}
.nav.on-dark.scrolled {
  background: rgba(28,24,20,0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border-d);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink);
  text-decoration: none;
  padding-left: 5px;
  transition: font-size 0.4s var(--ease), letter-spacing 0.4s var(--ease), color 0.5s var(--ease);
}
.nav.on-dark .nav-logo { color: var(--paper); }
.nav.scrolled .nav-logo {
  font-size: 16px;
  letter-spacing: 0.28em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 8px 16px;
  position: relative;
  transition: color 0.5s var(--ease);
}
.nav.on-dark .nav-links a { color: var(--paper-dim); }
.nav-links a:hover { color: var(--ink); }
.nav.on-dark .nav-links a:hover { color: var(--paper); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav.on-dark .nav-links a::after { background: var(--gold-bright); }
.nav-links a:hover::after { width: calc(100% - 32px); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 11px 20px;
  border: 1px solid var(--border-l-2);
  margin-left: 16px;
  transition: padding 0.4s var(--ease), font-size 0.4s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
}
.nav.scrolled .nav-cta {
  padding: 9px 18px;
  font-size: 10.5px;
}
.nav.on-dark .nav-cta { color: var(--paper); border-color: var(--border-d-2); }
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.nav.on-dark .nav-cta::before { background: var(--paper); }
.nav-cta:hover { color: var(--paper); border-color: var(--ink); }
.nav.on-dark .nav-cta:hover { color: var(--ink); border-color: var(--paper); }
.nav-cta:hover::before { transform: translateY(0); }

.nav-lang {
  position: relative;
  margin-left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  transition: margin-left 0.4s var(--ease), font-size 0.4s var(--ease), color 0.5s var(--ease);
}
.nav.on-dark .nav-lang { color: var(--paper-dim); }
.nav.scrolled .nav-lang {
  margin-left: 14px;
  font-size: 10.5px;
}
.nav-lang-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  transition: color 0.4s var(--ease);
}
.nav-lang-btn:hover { color: var(--ink); }
.nav.on-dark .nav-lang-btn:hover { color: var(--paper); }
.nav-lang-caret {
  display: inline-block;
  transition: transform 0.3s var(--ease);
  font-size: 10px;
}
.nav-lang.open .nav-lang-caret { transform: rotate(180deg); }

.nav-lang-menu {
  position: fixed;
  top: 0;
  right: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--border-l);
  min-width: 220px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 18px 48px rgba(14,11,8,0.18);
  z-index: 200;
}
.nav.on-dark .nav-lang-menu {
  background: var(--ink-2);
  border-color: var(--border-d);
  box-shadow: 0 18px 48px rgba(0,0,0,0.5);
}
.nav-lang-menu[hidden] { display: none; }

.nav-lang-option {
  display: block;
  padding: 10px 18px;
  cursor: none;
  color: var(--ink-dim);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav.on-dark .nav-lang-option { color: var(--paper-dim); }
.nav-lang-option:hover {
  background: rgba(184,146,61,0.08);
  color: var(--ink);
}
.nav.on-dark .nav-lang-option:hover { color: var(--paper); }
.nav-lang-option.active { color: var(--gold); }
.nav.on-dark .nav-lang-option.active { color: var(--gold-bright); }
.nav-lang-option-name {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

/* ─────────── HERO (DARK PLATE) ─────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--ink-2);
  color: var(--paper);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* gold glow upper-right */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -15%;
  width: 75vw;
  height: 75vw;
  background: radial-gradient(circle, rgba(212,172,80,0.18) 0%, rgba(212,172,80,0.06) 35%, transparent 65%);
  filter: blur(60px);
  animation: glowDrift 20s ease-in-out infinite;
}
@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-3vw, 2vw) scale(1.05); }
}

/* second glow lower-left */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(212,172,80,0.08) 0%, transparent 60%);
  filter: blur(80px);
  animation: glowDrift 24s ease-in-out infinite reverse;
}

/* grid layer */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,241,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,241,232,0.04) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, transparent 90%);
}

/* faint world map atmosphere — brand metaphor (west↔east) without competing with the headline */
.hero-world-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  z-index: 1;
  overflow: hidden;
}
.hero-world-bg svg {
  position: absolute;
  width: 110%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}
.hero-world-path {
  fill: var(--paper);
  fill-opacity: 0.025;
  stroke: var(--gold-bright);
  stroke-opacity: 0.55;
  stroke-width: 0.7;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.hero-sg-marker {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.hero-sg-marker svg {
  position: absolute;
  width: 110%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

.hero-stars { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hero-stars .star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 50%;
  opacity: 0;
  animation: starTwinkle 6s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0;   transform: scale(0.5); }
  50%      { opacity: 0.6; transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
}

/* hero meta strip */
.hero-meta {
  position: absolute;
  top: 130px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
  padding: 0 clamp(24px, 5vw, 72px);
  z-index: 3;
}
.hero-meta-left, .hero-meta-right { display: flex; align-items: center; gap: 16px; }
.hero-meta .dot {
  width: 6px; height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1); }
}

/* main heading */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 7.5vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 56px;
  max-width: 1080px;
  padding-bottom: 0.15em;
  margin-top: -0.15em;
  color: var(--paper);
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
  position: relative;
}

.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.1em 0.18em;
  margin: 0 -0.1em -0.18em;
}
.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.loaded .reveal-word > span {
  animation: wordRise 1.4s var(--ease) forwards;
}
@keyframes wordRise {
  0%   { transform: translateY(110%); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0);    opacity: 1; }
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s var(--ease) 1.4s, transform 1.2s var(--ease) 1.4s;
}
.loaded .hero-bottom { opacity: 1; transform: translateY(0); }

.hero-sub {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 560px;
}

.hero-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* dark-section default (paper bg, ink text) */
.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn-primary:hover { color: var(--ink); }
.btn-primary:hover::before { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--border-d-2);
}
.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(245,241,232,0.06);
}
.btn-ghost::after {
  content: '→';
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0;
  transition: transform 0.4s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-primary .btn-arrow {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.4s var(--ease);
}
.btn-primary .btn-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top:  1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn-primary:hover .btn-arrow { width: 26px; }

/* light-section button overrides (none used in v3, but provided for future) */
[data-theme="light"] .btn-primary {
  background: var(--ink);
  color: var(--paper);
}
[data-theme="light"] .btn-primary::before { background: var(--gold); }
[data-theme="light"] .btn-ghost {
  color: var(--ink);
  border-color: var(--border-l-2);
}
[data-theme="light"] .btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(14,11,8,0.04);
}

/* hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--paper-faint);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s var(--ease) 2s;
  z-index: 3;
}
.loaded .hero-scroll { opacity: 1; }
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-bright), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--paper), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top:  100%; }
}

/* ─────────── SECTION MARKER ─────────── */
.section-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.section-marker .num { color: var(--accent); }
.section-marker .line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
}

/* ─────────── SECTION HEADERS ─────────── */
.section-header {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 80px;
  margin-bottom: 56px;
  align-items: end;
}
.section-header-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-top: 8px;
}
.section-header h2 {
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 300;
  color: var(--fg);
}
.section-header h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

@media (max-width: 880px) {
  .section-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
}

.lead-in {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 720px;
  margin-bottom: 100px;
}
@media (max-width: 880px) {
  .lead-in { margin-bottom: 60px; }
}

/* ─────────── REVEAL ANIMATIONS ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.stagger.in-view > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.in-view > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.in-view > *:nth-child(5) { transition-delay: 0.32s; }

/* ─────────── METHOD (LIGHT) ─────────── */
.method { background: var(--paper); }

.practice {
  display: grid;
  grid-template-columns: 80px 1fr 1.6fr;
  gap: 60px;
  padding: 72px 0;
  border-top: 1px solid var(--border-l);
  align-items: start;
  position: relative;
  transition: padding 0.6s var(--ease);
  cursor: none;
}
.practice:last-child { border-bottom: 1px solid var(--border-l); }
.practice::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.9s var(--ease);
}
.practice:hover::before { width: 100%; }
.practice:hover { padding-left: 16px; padding-right: 16px; }

.practice-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 14px;
  position: relative;
}
.practice-num::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 32px;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.practice-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 300;
  color: var(--ink);
}
.practice-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.practice-body { color: var(--ink-dim); font-size: 16px; line-height: 1.65; }
.practice-body p + p { margin-top: 18px; }
.practice-body strong { color: var(--ink); font-weight: 500; }

.practice-evidence {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-l);
}
.practice-evidence-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.practice-evidence ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.practice-evidence li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 7px 13px;
  border: 1px solid var(--border-l-2);
  transition: all 0.3s var(--ease);
}
.practice:hover .practice-evidence li {
  border-color: var(--border-gold);
  color: var(--ink);
}

@media (max-width: 980px) {
  .practice { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .practice:hover { padding-left: 0; padding-right: 0; }
  .practice-num::after { display: none; }
}

/* ─────────── GEOGRAPHY (LIGHT, sticky scroll) ─────────── */
.geography { background: var(--paper-2); }

.geography-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.geo-sticky {
  position: sticky;
  top: 120px;
  height: calc(100vh - 200px);
  max-height: 720px;
  display: flex;
  flex-direction: column;
}

.geo-map-frame {
  flex: 1;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border-l);
  overflow: hidden;
}

.geo-map-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  z-index: 3;
  text-transform: uppercase;
}
.geo-map-corner.tl { top: 16px; left:  20px; }
.geo-map-corner.tr {
  top: 16px; right: 20px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.geo-map-corner.bl { bottom: 16px; left:  20px; }
.geo-map-corner.br { bottom: 16px; right: 20px; }
.geo-map-svg {
  position: absolute;
  inset: 50px 30px;
  width:  calc(100% - 60px);
  height: calc(100% - 100px);
}

.country-group {
  cursor: none;
  transition: opacity 0.4s var(--ease);
}
.country-path {
  fill: var(--paper-3);
  stroke: rgba(14,11,8,0.5);
  stroke-width: 0.6;
  stroke-linejoin: round;
  transition: fill 0.5s var(--ease), stroke 0.5s var(--ease);
}
.country-group.active .country-path {
  fill: var(--gold);
  stroke: var(--ink);
}
.country-group:hover .country-path {
  fill: var(--gold);
  stroke: var(--ink);
}
.country-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  fill: var(--ink-faint);
  pointer-events: none;
  font-weight: 400;
  transition: fill 0.4s var(--ease), font-weight 0.4s var(--ease);
}
.country-label.active {
  fill: var(--ink);
  font-weight: 600;
}

.geo-meta-bar {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--border-l);
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.geo-meta-bar .gold { color: var(--gold); }

.geo-list { display: flex; flex-direction: column; }

.geo-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-l);
  cursor: none;
  transition: padding 0.4s var(--ease), opacity 0.6s var(--ease);
  opacity: 0.45;
  position: relative;
}
.geo-row.active { opacity: 1; }
.geo-row.active::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(184,146,61,0.15);
}
.geo-row:hover { padding-left: 12px; opacity: 1; }
.geo-row:hover .geo-name { color: var(--gold); }

.geo-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  font-weight: 400;
}
.geo-row.active .geo-code { color: var(--gold); }

.geo-content { display: flex; flex-direction: column; gap: 8px; }
.geo-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.geo-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.4;
  flex-wrap: wrap;
}
.geo-regulator {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 3px 9px;
  border: 1px solid var(--border-l-2);
  white-space: nowrap;
}
.geo-row.active .geo-regulator {
  color: var(--gold);
  border-color: var(--border-gold);
}

@media (max-width: 980px) {
  .geography-wrap { grid-template-columns: 1fr; gap: 40px; }
  .geo-sticky { position: relative; top: 0; height: 480px; }
}

/* ─────────── DELIVERABLES (LIGHT, sticky-left) ─────────── */
.deliverables { background: var(--paper); }

.deliverables-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.deliverables-sticky {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.deliverables-sticky h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.deliverables-sticky p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.65;
}

.deliverables-stack { display: flex; flex-direction: column; }

.deliverable {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--border-l);
  position: relative;
  transition: padding 0.5s var(--ease);
  cursor: none;
}
.deliverable:last-child { border-bottom: 1px solid var(--border-l); }
.deliverable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.7s var(--ease);
}
.deliverable:hover::before { width: 100%; }
.deliverable:hover { padding-left: 12px; }

.deliverable-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 8px;
}

.deliverable-meta { display: flex; flex-direction: column; gap: 12px; }
.deliverable-meta h4 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.deliverable-meta p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.55;
}
.deliverable-format {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}

@media (max-width: 980px) {
  .deliverables-wrap { grid-template-columns: 1fr; gap: 40px; }
  .deliverables-sticky { position: relative; top: 0; }
  .deliverable { grid-template-columns: 60px 1fr; gap: 20px; }
}

/* ─────────── ENGAGEMENT (DARK PLATE) ─────────── */
.engagement { background: var(--ink-2); color: var(--paper); }

.phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border-d);
  background: var(--border-d);
  gap: 1px;
  margin-bottom: 100px;
}
.phase {
  background: var(--ink-2);
  padding: 40px 28px 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: none;
  transition: background 0.6s var(--ease);
}
.phase:hover { background: var(--ink-3); }
.phase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: width 0.7s var(--ease);
}
.phase:hover::before { width: 100%; }

.phase-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--paper-faint);
}
.phase-week {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.phase h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-top: 12px;
  margin-bottom: 4px;
}
.phase p {
  color: var(--paper-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .phases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .phases { grid-template-columns: 1fr; }
}

/* Engagement Formats — Mandate / Module / Advisory */
.engagement-formats {
  margin: 140px 0;
  padding: 80px 0;
  border-top: 1px solid var(--border-d);
  border-bottom: 1px solid var(--border-d);
}
.formats-header { margin-bottom: 64px; }
.formats-header .eyebrow {
  color: var(--gold-bright);
}
.formats-header .eyebrow::before { background: var(--gold-bright); }
.formats-header h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-top: 16px;
  max-width: 900px;
}
.formats-header h3 em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-d);
  border: 1px solid var(--border-d);
}

.format-card {
  background: var(--ink-2);
  padding: 48px 36px 56px;
  position: relative;
  cursor: none;
  transition: background 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.format-card:hover { background: var(--ink-3); }
.format-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold-bright);
  transition: width 0.6s var(--ease);
}
.format-card:hover::before { width: 100%; }

.format-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  margin-bottom: 24px;
}

.format-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.015em;
  color: var(--gold-bright);
  margin-bottom: 20px;
  line-height: 1;
}

.format-card-body { flex: 1; }
.format-card-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--paper-dim);
}

.format-card-meta {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border-d);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

@media (max-width: 980px) {
  .formats-grid { grid-template-columns: 1fr; }
  .engagement-formats { margin: 80px 0; padding: 48px 0; }
}

/* CTA Panel */
.cta-panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  padding: 80px 0 0;
  border-top: 1px solid var(--border-d);
  align-items: center;
  /* When linked-to via #begin, leave breathing room above the CTA headline so
     the action-intent landing doesn't drop the reader straight onto the H3. */
  scroll-margin-top: 100px;
}
.cta-panel-left { display: flex; flex-direction: column; gap: 24px; }
.cta-panel-left h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.05;
}
.cta-panel-left h3 em { font-style: italic; color: var(--gold-bright); }
.cta-panel-left p {
  color: var(--paper-dim);
  font-size: 16px;
  line-height: 1.65;
  max-width: 540px;
}

.cta-criteria {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-d);
}
.cta-criteria-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.cta-criteria ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cta-criteria li {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--paper-dim);
  padding-left: 24px;
  position: relative;
}
.cta-criteria li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--gold-bright);
}

.cta-panel-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 32px;
  background: var(--ink-3);
  border: 1px solid var(--border-d);
}
.cta-panel-right .btn { width: 100%; justify-content: center; }
.cta-fineprint {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-d);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 980px) {
  .cta-panel { grid-template-columns: 1fr; gap: 48px; }
}

/* ─────────── FOOTER (DARK) ─────────── */
.footer {
  background: var(--ink-2);
  color: var(--paper);
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-mark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--paper);
}
.footer-brand p {
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 380px;
}

.footer-col-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col li,
.footer-col a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--paper-dim);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--paper); }

.footer-disclosure {
  border-top: 1px solid var(--border-d);
  padding: 24px 0;
}
.footer-disclosure p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--paper-faint);
  max-width: 900px;
  text-transform: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-d);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.footer-domain { color: var(--gold-bright); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ===================================================================
   v3.5 — CLEAN FOUNDATION
   Static composition: gradient curtain, static CTA glow, CSS pulse.
   =================================================================== */

/* Plate transition — pure cream-to-ink gradient curtain, no overlays */
.plate-transition {
  height: 60vh;
  background: linear-gradient(to bottom,
    var(--paper) 0%,
    var(--paper) 35%,
    var(--ink-2) 65%,
    var(--ink-2) 100%
  );
  position: relative;
  z-index: 2;
}

/* CTA panel static gold glow — always at full size when panel is in viewport */
.cta-panel { position: relative; }
.cta-panel::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 65%);
  filter: blur(80px);
  pointer-events: none;
}

/* Country activation pulse — triggered by JS adding .pulsing class */
@keyframes countryPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.country-group.pulsing {
  animation: countryPulse 0.5s var(--ease) forwards;
  transform-origin: center center;
  transform-box: fill-box;
}


/* ─────────── KEYBOARD FOCUS — accessibility floor ─────────── */
/* :focus-visible only fires for keyboard users (not mouse clicks),
   preserving the cursor-driven aesthetic for mouse interaction. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.geo-row:focus-visible,
.practice:focus-visible,
.phase:focus-visible,
.deliverable:focus-visible,
.format-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}


/* ─────────── REDUCED MOTION ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
  }
}


/* ===================================================================
   RESPONSIVE FIXES — narrow-viewport adjustments
   The desktop layout is the master; these rules adjust it for tablet
   and mobile widths where the audit found overflow or readability issues.
   =================================================================== */

/* Mobile: collapse nav text links so they don't get clipped past the
   viewport edge. Logo + Begin Engagement stay; section links are
   reachable by scrolling the page. (Reintroduce a hamburger here later
   if a denser nav is needed on mobile.) */
@media (max-width: 720px) {
  .nav-links { gap: 0; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { margin-left: 0; }
}

/* Mobile: stack the hero CTA buttons. They were overflowing the hero
   container on a single row (406px buttons inside a 327px container). */
@media (max-width: 560px) {
  .hero-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Very narrow: the hero meta strip's left side ("SINGAPORE · MEDICAL
   DEVICE ADVISORY") plus right side ("ASIA / PACIFIC") run out of room
   to sit on one row. Drop the right side rather than shrink the type. */
@media (max-width: 480px) {
  .hero-meta-right { display: none; }
}

/* Mobile: the cta-panel right column (Calendly + Submit + fineprint)
   sits inside a dark plate. On mobile, give it room to breathe and
   center the buttons. */
@media (max-width: 560px) {
  .cta-panel-right {
    padding: 28px 24px;
  }
}

/* Mobile: tighten section padding so each section doesn't take an
   eternity to scroll past on a phone. */
@media (max-width: 560px) {
  :root { --section-pad: clamp(56px, 14vw, 96px); }
}
