/* =============================================================================
   PNU GLOBAL — production stylesheet
   Re-implements the Claude Design "PNU Global Home" canvas as a responsive,
   semantic static site. Design tokens below are copied verbatim from the
   PioneerUnion Group Maldives Design System (colors/typography/spacing/effects).
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=IBM+Plex+Mono:wght@400;500&family=Lato:wght@300;400;700&family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@500;600&family=Noto+Naskh+Arabic:wght@400;500&family=Noto+Sans+Thaana:wght@400;500&display=swap");

/* ---- Tokens (from the design system) ---- */
:root {
  --ink-black: #0F0E0D;
  --heritage-gold: #B8902A;
  --light-gold: #E6CD84;
  --periwinkle: #6E8DF0;
  --royal-purple: #5B3A8C;
  --ink-850: #131109;
  --ink-800: #15140f;
  --ink-700: #1b1a15;
  --ink-600: #26231e;
  --ink-panel-line: #3a352b;
  --paper: #faf9f6;
  --on-dark-1: rgba(255,255,255,0.92);
  --on-dark-2: rgba(255,255,255,0.70);
  --on-dark-3: rgba(255,255,255,0.60);
  --on-dark-muted: #b5afa3;
  --caption: #8a8478;
  --caption-2: #6b6659;

  /* subsidiary signature colours */
  --agri-primary: #18935F;
  --energy-primary: #13A89E;
  --build-primary: #3E5C76;
  --noor-primary: #BF8A33;
  --health-primary: #1D5C97;
  --bank-primary: #7A766C;
  --consult-primary: #5B3A8C;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-zh: "Noto Sans SC", var(--font-body);

  --container-max: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --gutter-h: clamp(20px, 4vw, 48px);   /* header gutter (design: 48px) */
  --section-pad: clamp(52px, 8vw, 92px);
  --header-h: 126px;                     /* sticky header height; synced by site.js */

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 14px;
  --radius-pill: 999px;

  --card-fill: linear-gradient(140deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  --card-border: 1px solid rgba(255,255,255,.09);
  --card-hover-shadow: 0 16px 38px rgba(0,0,0,.42), 0 0 0 1px rgba(230,205,132,.12);
  --ease-out: cubic-bezier(.22,.7,.3,1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; scroll-snap-type: y proximity; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink-black);
  color: var(--on-dark-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--light-gold); text-decoration: none; }
a:hover { color: #fdf6dd; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; color: #fff; }
p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 3px; border-radius: 3px; }

/* Chinese typography when the page is in 中文 */
html[lang="zh"] body { font-family: var(--font-zh); }
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { font-family: "Noto Serif SC", var(--font-display); font-weight: 600; }

/* ---- Utilities ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); border-top: 1px solid var(--ink-600); position: relative; overflow: hidden; }
.section--alt { background: #121110; }

/* ---- Full-viewport "screens" (design: each section is one full page, scroll-snap) ---- */
.screen {
  position: relative; box-sizing: border-box; overflow: visible;
  /* header is sticky/in-flow, so a "full page" section = viewport minus header.
     min-height (not height) lets a section grow if its content is taller than the
     viewport on short screens — content is never clipped. */
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 4.5vh, 52px) var(--gutter);
  border-top: 1px solid var(--ink-600);
}
.screen > .container { width: 100%; }
.screen--flush { padding: 0; }                 /* full-bleed screens (e.g. presence map) */
.screen--center { align-items: center; text-align: center; }
.section--flow { scroll-snap-align: none; }     /* closing sections that are not full-screen */
@supports (height: 100dvh) { .screen { min-height: calc(100dvh - var(--header-h)); } }

/* ---- Pillar detail full-screen split (pillars.html: one full page per pillar) ---- */
.pillar-screen {
  position: relative; overflow: hidden; border-top: 1px solid var(--ink-600);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); scroll-snap-align: start;
  display: grid; grid-template-columns: 1fr 1fr;
}
@supports (height: 100dvh) { .pillar-screen { min-height: calc(100dvh - var(--header-h)); } }
.pillar-screen__media { position: relative; overflow: hidden; min-height: 40vh; }
.pillar-screen__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; animation: kfKen 20s ease-in-out infinite alternate; }
@keyframes kfKen { 0% { transform: scale(1.05); } 100% { transform: scale(1.16) translate(-1.5%,-1.5%); } }
@media (prefers-reduced-motion: reduce) { .pillar-screen__media img { animation: none; } }
.pillar-screen__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,14,13,.12), rgba(15,14,13,.5)); }
.pillar-screen__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 26px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .2em; color: var(--light-gold); background: linear-gradient(0deg, rgba(15,14,13,.85), transparent); }
.pillar-screen__text { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px,5vh,56px) clamp(28px,5vw,72px); }
.pillar-screen__num { position: absolute; top: 5%; right: 6%; font-family: var(--font-display); font-weight: 600; font-size: clamp(110px,16vw,230px); line-height: 1; opacity: .06; color: #fff; pointer-events: none; }
.pillar-screen.is-reversed .pillar-screen__media { order: -1; }
.pillar-screen__text h2 { font-size: clamp(26px,3.4vw,38px); line-height: 1.16; margin-bottom: 14px; }
.pillar-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(15px,1.6vw,18px); color: var(--on-dark-1); margin-bottom: 18px; padding-left: 14px; border-left: 2px solid var(--heritage-gold); }
.pillar-screen__text > p { color: var(--on-dark-2); line-height: 1.75; margin-bottom: 20px; max-width: 52ch; }
.philosophy-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .22em; color: var(--caption); margin-bottom: 12px; }
.philosophy { display: flex; flex-direction: column; gap: 10px; }
.philosophy .row { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.55; color: var(--on-dark-2); }
.philosophy .row .m { color: var(--heritage-gold); }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--heritage-gold); margin-bottom: 14px; display: block;
}
.zh-accent { font-family: var(--font-zh); color: var(--caption-2); }
.lead { font-size: clamp(14px, 1.4vw, 16px); line-height: 1.75; color: var(--on-dark-2); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--light-gold); color: var(--ink-black); padding: 10px 16px;
  border-radius: var(--radius-md); font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--ink-black); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,14,11,.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid rgba(184,144,42,.28);
}
.header-aurora {
  position: absolute; top: -70px; left: 8%; right: 8%; height: 150px; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(184,144,42,.22), transparent 62%),
              radial-gradient(ellipse at 72% 50%, rgba(91,58,140,.2), transparent 62%);
  filter: blur(18px); animation: kfAurora 12s ease-in-out infinite;
}
.header-top {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 8px var(--gutter-h);
}
.header-motto { font-family: var(--font-mono); font-size: 8px; letter-spacing: .3em; color: var(--caption); }
.lang-wrap { display: flex; align-items: center; gap: 10px; }
.lang-label { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .24em; color: var(--caption-2); }
.lang-toggle {
  display: flex; align-items: stretch; gap: 2px; padding: 2px;
  border: 1px solid rgba(184,144,42,.3); border-radius: var(--radius-pill); background: rgba(255,255,255,.04);
}
.lang-btn {
  display: flex; align-items: center; justify-content: center; min-width: 40px; height: 24px;
  padding: 0 11px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; line-height: 1; white-space: nowrap;
  background: transparent; color: var(--on-dark-muted);
  transition: background .28s ease, color .28s ease, box-shadow .28s ease;
}
.lang-btn[data-lang="zh"] { font-family: var(--font-zh); font-size: 10px; }
.lang-btn[data-lang="dv"] { font-family: "Noto Sans Thaana", sans-serif; font-size: 11px; }
.lang-btn[data-lang="ar"] { font-family: "Noto Naskh Arabic", serif; font-size: 10.5px; }
.lang-btn:hover { color: #fdf6dd; }
.lang-btn.is-active {
  background: linear-gradient(135deg, #E6CD84, #B8902A); color: var(--ink-black);
  box-shadow: 0 4px 14px rgba(184,144,42,.4);
}
.lang-btn[disabled] { opacity: .5; cursor: not-allowed; }
.lang-btn[disabled]:hover { color: var(--on-dark-muted); }

.header-main {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 0 var(--gutter-h); height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; overflow: hidden; position: relative; flex: none; }
.brand-mark img { position: absolute; width: 78px; left: -18px; top: -2px; max-width: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: #fff; line-height: 1.15; }
.brand-sub { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .42em; color: var(--heritage-gold); }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: flex; align-items: center; height: 38px; padding: 0 16px;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 10.5px; letter-spacing: .11em;
  color: var(--on-dark-2); background: transparent; transition: background .26s ease, color .26s ease;
}
.nav-link::after {
  content: ""; position: absolute; bottom: 7px; left: 50%; width: 0; height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #E6CD84, transparent); transition: width .3s ease, left .3s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--light-gold); background: rgba(184,144,42,.14); }
.nav-link:hover::after, .nav-link.is-active::after { width: 46%; left: 27%; }
.nav-cta {
  display: flex; align-items: center; height: 38px; padding: 0 22px; margin-left: 8px;
  background: linear-gradient(135deg, #E6CD84, #B8902A); color: var(--ink-black) !important;
  border-radius: var(--radius-pill); font-weight: 700; font-size: 10.5px; letter-spacing: .11em;
  transition: transform .24s ease, box-shadow .24s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(184,144,42,.42); }

.nav-toggle {
  display: none; width: 42px; height: 38px; border: 1px solid rgba(184,144,42,.4);
  border-radius: var(--radius-md); background: rgba(255,255,255,.04); cursor: pointer;
  color: var(--light-gold); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.header-rail {
  height: 2px;
  background: linear-gradient(90deg, #B8902A, #E6CD84, #fdf6dd, #5B3A8C, #B8902A);
  background-size: 200% 100%; animation: kfRail 14s linear infinite;
}

/* ---- Hero ---- */
.hero { text-align: center; }        /* layout comes from .screen */
.hero-glow {
  position: absolute; top: 46%; left: 50%; width: min(760px, 120vw); aspect-ratio: 1;
  transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(230,205,132,.3), rgba(184,144,42,.16) 38%, rgba(91,58,140,.12) 60%, transparent 72%);
  animation: kfGlow 8s ease-in-out infinite;
}
.hero-inner { position: relative; max-width: 960px; }
.hero-logo { width: clamp(96px, 13vh, 150px); margin: 0 auto; }
.hero-tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(18px, 2.8vw, 26px);
  margin: clamp(10px,1.6vh,18px) 0 clamp(12px,1.8vh,20px);
  background: linear-gradient(90deg, #B8902A 20%, #E6CD84 40%, #fdf6dd 50%, #E6CD84 60%, #B8902A 80%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; animation: kfShimmer 5s linear infinite;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.12; max-width: 940px; margin: 0 auto 14px; }
.hero-multiling { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 14px; }
.hero-multiling .zh { font-family: "Noto Serif SC", serif; font-size: 13px; letter-spacing: .16em; color: rgba(230,205,132,.6); }
.hero-multiling .ar { font-family: "Noto Naskh Arabic", serif; direction: rtl; font-size: 13px; color: rgba(230,205,132,.48); }
.hero-sub { max-width: 640px; margin: 0 auto clamp(18px,2.4vh,28px); color: var(--on-dark-3); line-height: 1.7; font-size: clamp(14px, 1.35vw, 17px); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(20px,3vh,32px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-md); font-weight: 700; font-size: 13px; transition: all .2s ease; cursor: pointer;
}
.btn--primary { background: var(--royal-purple); color: #fff !important; border: 1px solid transparent; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(91,58,140,.5); color: #fff; }
.btn--ghost { border: 1px solid rgba(184,144,42,.4); color: var(--light-gold); }
.btn--ghost:hover { background: rgba(184,144,42,.14); }
.btn--gold { background: linear-gradient(135deg, #E6CD84, #B8902A); color: var(--ink-black) !important; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(184,144,42,.42); }

.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .26em; color: var(--caption);
  animation: kfCue 2.6s ease-in-out infinite;
}
.scroll-cue .arrow { font-size: 13px; color: var(--heritage-gold); }

/* ---- Purpose (vision / mission / values) ---- */
/* Design ratio: wide panels at natural height (not stretched), centred in the screen —
   looks full without occupying the whole page. */
/* Wider content so the section fills the width (less empty space); wider left column
   so the vision/mission cards are broad, not bulky. */
#purpose .container { max-width: min(1360px, 95vw); }
.purpose-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 3vw, 48px); align-items: center; }
.panel-stack { display: flex; flex-direction: column; gap: 16px; }
.panel-stack .eyebrow { margin-bottom: 4px; }
.glass {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: var(--card-fill); border: var(--card-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}
.glass:hover { transform: translateY(-4px); border-color: rgba(184,144,42,.6); box-shadow: var(--card-hover-shadow); }
/* Signature sheen sweep on hover (matches the original design's card animation) */
.glass, .pillar-row { }
.glass::after, .pillar-row::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 46%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(253,246,221,.22), transparent);
  transform: translateX(-220%) skewX(-18deg); transition: transform .85s var(--ease-out);
}
.glass:hover::after, .pillar-row:hover::after { transform: translateX(320%) skewX(-18deg); }
.pillar-row { overflow: hidden; }
.panel { padding: clamp(17px, 1.8vh, 24px) clamp(30px, 2.8vw, 46px); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-head .tick { width: 16px; height: 1px; background: var(--heritage-gold); }
.panel-head .eyb { font-family: var(--font-mono); font-size: 8px; letter-spacing: .24em; color: var(--heritage-gold); }
.panel h2 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.16; margin-bottom: 8px; max-width: 760px; }
.panel.is-mission h2 { font-size: clamp(21px, 2.2vw, 28px); }
.panel p { font-size: clamp(13px, 1.05vw, 15px); line-height: 1.65; color: var(--on-dark-3); max-width: none; }

.values-col { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.values-col > .eyebrow { font-size: 8px; color: var(--caption); margin-bottom: 0; }
.value-card { padding: 16px clamp(20px, 1.6vw, 26px); }
.value-card::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #B8902A, #E6CD84); opacity: 0; transition: opacity .3s ease;
}
.value-card:hover::before { opacity: 1; }
.value-head { display: flex; align-items: baseline; gap: 10px; }
.value-head .t { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 24px); color: #fff; }
.value-head .zh { font-family: var(--font-zh); font-size: 11px; color: var(--caption); }
.value-card .d { font-size: clamp(13px, 1.05vw, 15.5px); line-height: 1.55; color: var(--on-dark-muted); margin-top: 5px; }

/* ---- Presence / map ---- */
.presence { position: relative; }
/* Presence: full-screen animated map with absolute overlays (design layout) */
.presence { display: block; padding: 0; }
.presence .map-holder { position: absolute; inset: 0; z-index: 0; }
.presence-scrim {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(680px, 88%); z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,14,13,.95) 0%, rgba(15,14,13,.8) 46%, rgba(15,14,13,0) 100%);
}
.presence-copy { position: absolute; z-index: 2; pointer-events: none;
  top: clamp(24px, 5vh, 52px); left: var(--gutter); right: var(--gutter); }
.presence-copy h2 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.14; max-width: 720px; }
.presence-multiling { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.presence-multiling .zh { font-family: var(--font-zh); font-size: 11px; letter-spacing: .14em; color: rgba(230,205,132,.55); }
.presence-multiling .ar { font-family: "Noto Naskh Arabic", serif; direction: rtl; font-size: 12px; color: rgba(230,205,132,.44); text-align: left; max-width: 300px; }
.presence-footer {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(22px, 4vh, 40px);
  display: flex; flex-wrap: wrap; gap: 16px 26px; justify-content: space-between; align-items: flex-end;
}
.legend { display: flex; flex-wrap: wrap; gap: 16px 26px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; color: var(--caption); }
.legend span { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--live { background: var(--light-gold); box-shadow: 0 0 10px var(--light-gold); }
.dot--dev { background: rgba(255,255,255,.7); }
.dash { width: 18px; height: 1px; background: var(--light-gold); }
.presence-count { font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; color: var(--light-gold); animation: kfBlink 2.6s ease-in-out infinite; }

/* ---- Section header row ---- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.14; }
.sec-head .aside { font-size: 13px; line-height: 1.65; color: var(--on-dark-muted); max-width: 360px; }
.sec-link { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; color: var(--light-gold); white-space: nowrap; }

/* ---- Countries ---- */
.country-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.country-feature { display: block; padding: 18px 26px; border-radius: var(--radius-lg); }
.country-feature.is-live {
  background: linear-gradient(125deg, rgba(184,144,42,.16), rgba(91,58,140,.12));
  border: 1px solid rgba(184,144,42,.5);
}
.country-feature.is-prep {
  background: linear-gradient(125deg, rgba(184,144,42,.12), rgba(91,58,140,.12));
  border: 1px solid rgba(184,144,42,.4);
}
.country-feature:hover { border-color: rgba(230,205,132,.85); }
.pill-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.badge-live { font-family: var(--font-mono); font-size: 8px; letter-spacing: .2em; color: var(--ink-black); background: var(--light-gold); border-radius: 3px; padding: 4px 9px; }
.country-loc { font-family: var(--font-mono); font-size: 8px; letter-spacing: .2em; color: var(--caption); }
.country-feature h3 { font-size: clamp(23px, 2.4vw, 30px); margin-bottom: 7px; }
.country-feature p { font-size: clamp(13.5px, 1.1vw, 15.5px); line-height: 1.6; color: var(--on-dark-2); margin-bottom: 12px; }
.country-cta { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; color: var(--light-gold); }
.country-cta.muted { color: var(--caption); }

.country-mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.country-mini { padding: 13px 16px; border-radius: var(--radius-lg); }
.country-mini h4 { font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); color: #fff; margin: 0; }
.country-mini .city { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .16em; color: var(--heritage-gold); margin: 4px 0 7px; }
.tag-dev { font-family: var(--font-mono); font-size: 7px; letter-spacing: .18em; color: var(--caption); border: 1px solid var(--ink-panel-line); border-radius: 3px; padding: 3px 7px; display: inline-block; }

/* ---- Pillars ---- */
.pillars-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.pillars-intro p { margin: 0 0 22px; max-width: 440px; }
.pillars-intro h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.16; margin-bottom: 16px; }
.pillars-intro .lead { font-size: clamp(14px, 1.2vw, 16.5px); }
.pillar-list { display: flex; flex-direction: column; border-top: 1px solid var(--ink-600); }
.pillar-row {
  position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 6px; border-bottom: 1px solid var(--ink-600);
  transition: transform .3s var(--ease-out), border-color .3s ease, background .3s ease;
}
.pillar-row:hover { transform: translateX(4px); border-color: rgba(184,144,42,.6); background: rgba(255,255,255,.02); }
.pillar-row .num { font-family: var(--font-mono); font-size: 9px; color: var(--caption); }
.pillar-row.is-group .num { color: var(--heritage-gold); }
.pillar-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pillar-name .en { font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 24px); color: #fff; }
.pillar-name .zh { font-family: var(--font-zh); font-size: 10px; color: var(--caption-2); }
.pillar-bar { width: 40px; height: 3px; border-radius: 2px; }

/* ---- Cases ---- */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.case-card { border-radius: var(--radius-lg); overflow: hidden; }
.case-photo {
  display: block; width: 100%; height: clamp(160px, 19vh, 200px); object-fit: cover;
  background: #15140f; border-bottom: 1px solid var(--ink-600);
}
.case-card:hover .case-photo { opacity: .92; }
.case-body { padding: 18px 20px; }
.case-kicker { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .18em; color: var(--heritage-gold); margin-bottom: 8px; }
.case-body h3 { font-family: var(--font-body); font-weight: 700; font-size: clamp(15px, 1.3vw, 18px); color: #fff; margin-bottom: 7px; }
.case-body p { font-size: clamp(12.5px, 1vw, 14px); line-height: 1.55; color: var(--on-dark-muted); }

/* ---- Heritage ---- */
.heritage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.heritage-copy h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.16; margin-bottom: 18px; }
.heritage-copy p { color: var(--on-dark-2); line-height: 1.75; margin-bottom: 15px; max-width: 560px; font-size: clamp(14px, 1.1vw, 16px); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding-bottom: 22px; position: relative; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-node { width: 12px; height: 12px; border-radius: 50%; background: var(--heritage-gold); box-shadow: 0 0 10px rgba(184,144,42,.6); flex: none; margin-top: 4px; }
.tl-item:not(:last-child) .tl-line { width: 1px; flex: 1; background: linear-gradient(180deg, var(--heritage-gold), rgba(184,144,42,.15)); margin-top: 4px; }
.tl-item.is-future .tl-node { background: transparent; border: 1px solid var(--caption); box-shadow: none; }
.tl-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--light-gold); margin-bottom: 6px; }
.tl-item.is-future .tl-label { color: var(--caption); }
.tl-body { font-size: clamp(13px, 1.05vw, 15px); line-height: 1.6; color: var(--on-dark-2); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-copy h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 16px; }
.contact-copy p { color: var(--on-dark-2); line-height: 1.7; margin-bottom: 20px; max-width: 420px; }
.contact-addr { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; line-height: 2; color: var(--on-dark-muted); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: .2em; color: var(--caption); margin-bottom: 6px; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--ink-600); border-radius: var(--radius-md);
  color: #fff; font-family: var(--font-body); font-size: 14px; padding: 12px 14px; transition: border-color .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(184,144,42,.6); }
.field input::placeholder, .field textarea::placeholder { color: var(--caption-2); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--ink-600); background: var(--ink-black); position: relative; }
.footer-wave { line-height: 0; }
.footer-wave svg { width: 100%; height: clamp(60px, 10vw, 120px); display: block; }
.footer-cols {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px;
  padding: clamp(32px, 5vw, 52px) var(--gutter);
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 14px; color: var(--light-gold); margin-bottom: 16px; }
.footer-addr { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; line-height: 1.9; color: var(--caption); }
.footer-col h3 { font-family: var(--font-mono); font-weight: 500; font-size: 9px; letter-spacing: .22em; color: var(--on-dark-muted); margin-bottom: 14px; }
.footer-col nav { display: flex; flex-direction: column; gap: 9px; }
.footer-col nav a { font-size: 13px; color: var(--on-dark-2); }
.footer-col nav a:hover { color: var(--light-gold); }
.footer-legal { border-top: 1px solid var(--ink-600); padding: 22px var(--gutter) 40px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px 40px; }
.footer-legal .copy { font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; color: var(--caption); margin-bottom: 10px; }
.footer-legal .fine { font-size: 10.5px; line-height: 1.7; color: var(--caption-2); margin-bottom: 10px; }
.footer-meta { text-align: right; }
.footer-meta .loc { font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; color: var(--caption); margin-bottom: 12px; }
.footer-langs { display: flex; gap: 14px; justify-content: flex-end; }
.footer-langs a { font-family: var(--font-mono); font-size: 10px; color: var(--caption); }

/* ---- Keyframes ---- */
@keyframes kfGlow { 0%,100% { opacity:.45; transform: translate(-50%,-50%) scale(1); } 50% { opacity:.9; transform: translate(-50%,-50%) scale(1.12); } }
@keyframes kfShimmer { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
@keyframes kfCue { 0%,100% { transform: translateY(0); opacity:.45; } 50% { transform: translateY(7px); opacity:1; } }
@keyframes kfBlink { 0%,100% { opacity:.4; } 50% { opacity:1; } }
@keyframes kfRail { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes kfAurora { 0%,100% { opacity:.5; transform: translateX(-8%); } 50% { opacity:.95; transform: translateX(8%); } }
@media (prefers-reduced-motion: reduce) {
  .header-aurora, .header-rail, .hero-glow, .hero-tagline, .scroll-cue, .presence-count { animation: none; }
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 1024px) {
  /* Below desktop, drop the fixed full-screen frames — let every section flow naturally. */
  html { scroll-snap-type: none; }
  .screen { min-height: 0; display: block; padding: clamp(52px, 9vw, 80px) var(--gutter); scroll-snap-align: none; }
  .screen--center { text-align: center; }
  .screen .purpose-grid { min-height: 0; }
  .panel-stack .panel, .value-card { flex: none; }

  .purpose-grid { grid-template-columns: 1fr; gap: 28px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 32px; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .country-mini-grid { grid-template-columns: repeat(3, 1fr); }
  .heritage-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }

  /* Presence: stack map above copy instead of full-bleed overlay */
  .presence { padding: clamp(52px, 9vw, 80px) 0; }
  .presence .map-holder { position: relative; height: 56vh; margin-bottom: 20px; }
  .presence-scrim { display: none; }
  .presence-copy { position: static; padding: 0 var(--gutter); margin-bottom: 16px; }
  .presence-footer { position: static; padding: 0 var(--gutter); margin-top: 16px; }

  /* Pillar detail splits → single column, image above text */
  .pillar-screen { grid-template-columns: 1fr; min-height: 0; scroll-snap-align: none; }
  .pillar-screen__media { min-height: 44vh; }
  .pillar-screen.is-reversed .pillar-screen__media { order: 0; }
  .pillar-screen__text { padding: clamp(40px, 8vw, 64px) var(--gutter); }
  .pillar-screen__num { font-size: clamp(90px, 22vw, 150px); }
}
@media (max-width: 860px) {
  .header-top { display: none; }         /* language toggle moves into mobile menu */
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 14px var(--gutter) 20px; background: rgba(16,14,11,.98);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(184,144,42,.28);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { height: 46px; padding: 0 14px; font-size: 12px; }
  .nav-link::after { display: none; }
  .nav-cta { margin-left: 0; height: 46px; justify-content: center; }
  .mobile-lang { display: flex; align-items: center; gap: 10px; padding: 10px 4px 4px; margin-top: 6px; border-top: 1px solid var(--ink-600); }
}
@media (min-width: 861px) { .mobile-lang { display: none; } }

@media (max-width: 640px) {
  .country-features { grid-template-columns: 1fr; }
  .country-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
  .footer-langs { justify-content: flex-start; }
  .sec-head { margin-bottom: 20px; }
  .presence-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .brand-name { font-size: 16px; }
  .hero h1 { font-size: 27px; }
  .country-mini-grid { grid-template-columns: 1fr 1fr; }
}

.footer-col nav .soon { font-size: 13px; color: var(--caption-2); cursor: default; }

/* ---- Legal / long-form pages ---- */
.legal-page { padding: calc(var(--header-h) + clamp(32px,5vh,64px)) var(--gutter) clamp(64px,10vh,120px); border-top: 1px solid var(--ink-600); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap > .eyebrow { margin-bottom: 10px; }
.legal-wrap h1 { font-size: clamp(30px,4vw,44px); line-height: 1.14; margin-bottom: 10px; }
.legal-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--caption); margin-bottom: 30px; }
.legal-wrap h2 { font-size: clamp(19px,2vw,25px); margin: 36px 0 12px; color: #fff; }
.legal-wrap h3 { font-size: 16px; margin: 22px 0 8px; color: var(--on-dark-1); font-family: var(--font-body); font-weight: 700; }
.legal-wrap p, .legal-wrap li { color: var(--on-dark-2); line-height: 1.75; font-size: 15px; margin: 0 0 12px; }
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; margin: 0 0 14px; }
.legal-wrap a { color: var(--light-gold); }
.legal-wrap strong { color: var(--on-dark-1); }
.lang-block[data-lang="zh"] { font-family: var(--font-zh); }
.lang-block[data-lang="zh"] h1, .lang-block[data-lang="zh"] h2 { font-family: "Noto Serif SC", var(--font-display); }
