/* ==========================================================================
   Icontrade — stylesheet
   ========================================================================== */

:root {
  --ink: #0e1a2b;
  --ink-2: #15253b;
  --ink-3: #1d3150;
  --gold: #b8955a;
  --gold-2: #d2b57f;
  --gold-soft: rgba(184, 149, 90, 0.14);
  --ivory: #faf7f1;
  --sand: #f2ece1;
  --line: #e4dccd;
  --text: #1b2433;
  --muted: #5d6676;
  --white: #ffffff;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 8px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
em { font-style: italic; }
.hero-stat strong, .card-num, .step-num, .why-figure, .challenges span, .leader-facts dt { font-variant-numeric: lining-nums; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Typography ─────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--gold-2); }

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.title em, .hero-title em, .cta h2 em { color: var(--gold); font-weight: 400; }
.title-light { color: var(--white); }
.title-light em { color: var(--gold-2); }

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

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-head-center { display: block; text-align: center; }
.section-head-center .eyebrow::after { content: ''; width: 32px; height: 1px; background: currentColor; }
.section-intro { color: var(--muted); font-size: 1.02rem; max-width: 460px; justify-self: end; }
.section-intro-light { color: rgba(255,255,255,0.65); }

.rule { display: block; width: 64px; height: 1px; background: var(--gold); margin-top: 32px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 32px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn svg { font-size: 1.1rem; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 12px 22px; font-size: 0.7rem; }

.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-2); }
.btn-navy { background: var(--ink); color: var(--white); }
.btn-navy:hover { background: var(--ink-3); }
.btn-ghost-light { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ── Logo ───────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.logo-mark {
  width: 14px; height: 14px;
  border: 1px solid var(--gold-2);
  transform: rotate(45deg);
  position: relative;
}
.logo-mark::after { content: ''; position: absolute; inset: 3px; background: var(--gold-2); }
.logo-text { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.22em; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled {
  --nav-h: 68px;
  background: rgba(14, 26, 43, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1360px; height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a {
  position: relative;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.78); text-decoration: none; padding: 6px 0;
  transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--white);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 24px; }
.burger.open span:first-child { top: 19.5px; transform: rotate(45deg); }
.burger.open span:last-child { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px var(--gutter) 48px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(1.8rem, 7vw, 2.4rem); color: var(--white);
  text-decoration: none; padding: 6px 0; transition: color .3s;
}
.mobile-menu nav a:hover { color: var(--gold-2); }
.mobile-menu .btn { align-self: flex-start; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,26,43,0.97) 0%, rgba(14,26,43,0.86) 42%, rgba(14,26,43,0.45) 100%),
    url('../images/hero-building.jpg') center / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 18s var(--ease) forwards;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(184,149,90,0.18), transparent 55%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hero-grid-lines span { border-left: 1px solid rgba(255,255,255,0.05); }
.hero-grid-lines span:last-child { border-right: 1px solid rgba(255,255,255,0.05); }

.hero-inner { position: relative; width: 100%; padding-top: 48px; padding-bottom: 180px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 7.6vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
  max-width: 900px;
}
.hero-title em { color: var(--gold-2); font-weight: 300; }
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 44px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(to top, rgba(14,26,43,0.85), rgba(14,26,43,0.4));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 28px 0 30px; display: flex; flex-direction: column; gap: 4px; }
.hero-stat + .hero-stat { padding-left: 32px; border-left: 1px solid rgba(255,255,255,0.1); }
.hero-stat strong { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; color: var(--gold-2); line-height: 1; }
.hero-stat span { font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 130px;
  width: 1px; height: 64px; background: rgba(255,255,255,0.2); overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold-2);
  animation: scrollCue 2.4s var(--ease) infinite;
}
@keyframes scrollCue { to { top: 100%; } }

/* ── About ──────────────────────────────────────────────────────────────── */
.about { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.lead-serif {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.4;
  color: var(--ink); margin-bottom: 24px;
}
.about-body p:not(.lead-serif) { color: var(--muted); font-size: 1.05rem; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(64px, 8vw, 100px);
  border-top: 1px solid var(--line);
}
.pillar { padding: 40px 40px 0 0; }
.pillar + .pillar { padding-left: 40px; border-left: 1px solid var(--line); }
.pillar-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-size: 1.35rem;
  margin-bottom: 22px;
}
.pillar h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 0.95rem; }

/* ── Expertise ──────────────────────────────────────────────────────────── */
.expertise { background: var(--white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--ivory);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(14,26,43,0.28); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,26,43,0.55), transparent 55%); }
.card-num {
  position: absolute; left: 24px; bottom: 16px; z-index: 1;
  font-family: var(--serif); font-size: 2.6rem; font-weight: 300; color: var(--white); line-height: 1;
}
.card-body { padding: 32px 30px 36px; flex: 1; display: flex; flex-direction: column; border-bottom: 2px solid transparent; transition: border-color .5s var(--ease); }
.card:hover .card-body { border-color: var(--gold); }
.card-body h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; color: var(--ink); line-height: 1.15; margin-bottom: 14px; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags li {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line); padding: 6px 12px; background: var(--white);
}

/* ── Process ────────────────────────────────────────────────────────────── */
.process { background: var(--sand); }
.phase { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.phase + .phase { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.phase-label { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.phase-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--white); background: var(--ink); padding: 6px 12px; margin-bottom: 14px;
}
.phase-label h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1.1; color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; counter-reset: s; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.step {
  position: relative;
  background: var(--white);
  padding: 28px 22px 30px;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.step::before {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold);
  transition: width .6s var(--ease);
}
.step:hover::before { width: 100%; }
.step-num { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--gold); display: block; margin-bottom: 10px; }
.step h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.15; color: var(--ink); margin-bottom: 16px; min-height: 2.3em; }
.step ul li {
  position: relative; padding-left: 14px;
  font-size: 0.84rem; line-height: 1.5; color: var(--muted);
}
.step ul li + li { margin-top: 9px; }
.step ul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 5px; height: 1px; background: var(--gold); }

/* ── Why Indonesia ──────────────────────────────────────────────────────── */
.why { background: var(--ink); color: var(--white); overflow: hidden; }
.why-glow {
  position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; pointer-events: none;
  background: radial-gradient(circle, rgba(184,149,90,0.16), transparent 60%);
}
.why .container { position: relative; }
.why-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,0.12); }
.why-item { padding: 40px 28px 8px 0; }
.why-item + .why-item { padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.12); }
.why-figure {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; color: var(--gold-2); margin-bottom: 24px;
}
.why-figure-word { font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: 0.04em; padding-top: 0.25em; }
.why-figure sup { font-size: 0.45em; vertical-align: super; }
.why-item h3 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.why-item p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* ── Guide ──────────────────────────────────────────────────────────────── */
.guide { background: var(--ivory); }
.guide-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.guide-figure { position: relative; }
.guide-figure::before {
  content: ''; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid var(--gold); opacity: .5; pointer-events: none;
}
.guide-zoom { position: relative; display: block; width: 100%; background: var(--white); padding: 10px; box-shadow: 0 30px 70px -30px rgba(14,26,43,0.35); cursor: zoom-in; }
.guide-zoom img { width: 100%; }
.zoom-hint {
  position: absolute; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,26,43,0.88); color: var(--white);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 14px; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease);
}
.zoom-hint svg { font-size: 1rem; }
.guide-zoom:hover .zoom-hint, .guide-zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
.guide-text p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin: 24px 0 36px; }

/* ── Navigate ───────────────────────────────────────────────────────────── */
.navigate { background: var(--white); }
.navigate-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.navigate-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.navigate-head .section-intro { margin-top: 24px; justify-self: start; }
.challenges { border-top: 1px solid var(--line); }
.challenges li {
  display: grid; grid-template-columns: 64px 1fr; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease);
}
.challenges li:hover { padding-left: 12px; }
.challenges span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); }
.challenges p { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.3; color: var(--ink); }

/* ── Leadership ─────────────────────────────────────────────────────────── */
.leadership { background: var(--sand); }
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.leader {
  background: var(--white); padding: clamp(32px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 24px;
  border-top: 2px solid var(--gold);
}
.leader-top { display: flex; align-items: center; gap: 24px; }
.leader-photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--gold);
}
.leader h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; color: var(--ink); line-height: 1.15; }
.leader-role { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 6px; line-height: 1.5; }
.leader > p { color: var(--muted); font-size: 0.97rem; }
.leader-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.leader-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.leader-facts dt { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.leader-facts dd { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 6px; }

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden; color: var(--white); text-align: center;
  padding: clamp(96px, 12vw, 160px) 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(184,149,90,0.28), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
.cta::before, .cta::after {
  content: ''; position: absolute; left: 50%; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent);
}
.cta::before { top: 0; }
.cta::after { bottom: 0; transform: rotate(180deg); }
.cta-inner { max-width: 820px; }
.cta .eyebrow::after { content: ''; width: 32px; height: 1px; background: currentColor; }
.cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.05; margin-bottom: 24px; }
.cta h2 em { color: var(--gold-2); font-weight: 300; }
.cta p:not(.eyebrow) { color: rgba(255,255,255,0.68); font-size: 1.08rem; max-width: 560px; margin: 0 auto 44px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: #0a1322; color: rgba(255,255,255,0.7); padding: clamp(64px, 8vw, 96px) 0 0; }
.footer-top { display: grid; grid-template-columns: 1fr 2.2fr; gap: 64px; padding-bottom: 64px; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--white); margin-top: 20px; }
.footer-legal { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 6px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(184,149,90,0.4); color: var(--gold-2); font-size: 1.15rem;
}
.contact-item h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.contact-item p { font-size: 0.95rem; line-height: 1.65; }
.contact-item a { text-decoration: none; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.2); transition: border-color .3s, color .3s; word-break: break-word; }
.contact-item a:hover { color: var(--gold-2); border-color: var(--gold-2); }
.contact-wechat img { width: 88px; height: 88px; background: var(--white); padding: 4px; flex-shrink: 0; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--gold-2); }

/* ── Modal & Lightbox ───────────────────────────────────────────────────── */
.modal, .lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(8, 14, 25, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.modal[hidden], .lightbox[hidden] { display: none; }
.modal.open, .lightbox.open { opacity: 1; }
.modal-box {
  background: var(--white); width: 100%; max-width: 680px; max-height: 92vh;
  display: flex; flex-direction: column;
  transform: translateY(16px); transition: transform .45s var(--ease);
  border-top: 2px solid var(--gold);
}
.modal.open .modal-box { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 28px 32px 20px; border-bottom: 1px solid var(--line); }
.modal-head .eyebrow { margin-bottom: 8px; }
.modal-head h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--ink); line-height: 1.1; }
.modal-body { overflow-y: auto; padding: 8px 16px 16px; }
.modal-close {
  width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem;
  transition: border-color .3s, color .3s, transform .3s;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }

.lightbox img { max-width: min(1600px, 100%); max-height: 90vh; width: auto; background: var(--white); box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: var(--white); border-color: rgba(255,255,255,0.3); }

/* ── Reveal animations ──────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-inner { gap: 16px; }
  .nav-cta { margin-left: auto; }

  .phase { grid-template-columns: 1fr; gap: 24px; }
  .phase-label { position: static; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-item:nth-child(4) { padding-left: 0; border-left: 0; }
  .why-item:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; }
}

@media (max-width: 900px) {
  .section-head, .about-grid, .guide-grid, .navigate-grid, .footer-top { grid-template-columns: 1fr; }
  .section-head { gap: 20px; }
  .section-intro { justify-self: start; }
  .navigate-head { position: static; }

  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }

  .steps, .steps-3 { grid-template-columns: repeat(2, 1fr); }
  .step h4 { min-height: 0; }
  .leaders { grid-template-columns: 1fr; }

  .hero-stats { position: relative; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.1); }
  .hero-inner { padding-bottom: 64px; }
  .scroll-cue { display: none; }
  .guide-figure::before { inset: -10px 10px 10px -10px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .nav-cta { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-grid-lines { display: none; }
  .hide-sm { display: none; }
  .hero .eyebrow { letter-spacing: 0.16em; font-size: 0.66rem; }

  .steps, .steps-3 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item, .why-item + .why-item { padding: 28px 16px 0 0; border-left: 0; margin-top: 0; }
  .why-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; }
  .why-item:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.12); }
  .why-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.12); }

  .contact-grid { grid-template-columns: 1fr; }
  .leader-top { flex-direction: column; align-items: flex-start; }
  .leader-facts div + div { padding-left: 12px; }
  .leader-facts dt { font-size: 1.5rem; }
  .challenges li { grid-template-columns: 44px 1fr; padding: 24px 0; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { max-height: 94vh; }
  .modal-head { padding: 22px 20px 16px; }
}
