/* Kê Gà — Quỹ đất ven biển — production stylesheet
   Ported 1:1 from the approved "Kê Gà landing prototype v2" design lock
   (Coastal Investment Editorial design system, tokens + component specs). */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400&family=Manrope:wght@300;400;500;600&display=swap");

:root {
  /* --- Base palette (client-specified) --- */
  --deep-sea: #173743;
  --coastal-olive: #667159;
  --warm-sand: #E8DFD0;
  --limestone: #C8C2B6;
  --clay: #A86447;
  --soft-cream: #F5F2EB;
  --ink: #17201F;

  /* --- Tints & shades --- */
  --deep-sea-800: #1E4552;
  --deep-sea-600: #2C5C6B;
  --deep-sea-200: #9FB4BB;
  --deep-sea-050: #E4EAEB;
  --olive-700: #4E5744;
  --olive-200: #B4BBAA;
  --olive-050: #E9EBE3;
  --clay-700: #8A4F36;
  --clay-200: #DCBDAE;
  --sand-300: #D8CDBA;
  --paper: #FCFBF7;
  --ink-700: #3A423F;
  --ink-500: #5E6664;
  --ink-300: #8D9391;

  /* --- Semantic surfaces --- */
  --surface-page: var(--soft-cream);
  --surface-raised: var(--paper);
  --surface-sand: var(--warm-sand);
  --surface-deep: var(--deep-sea);

  /* --- Semantic text --- */
  --text-primary: var(--ink);
  --text-link: var(--deep-sea);
  --text-link-hover: var(--clay);

  /* --- Lines --- */
  --line-hair: rgba(23, 32, 31, .14);
  --line-soft: rgba(23, 32, 31, .08);
  --line-strong: rgba(23, 32, 31, .28);
  --line-on-deep: rgba(245, 242, 235, .22);
  --line-on-deep-strong: rgba(245, 242, 235, .45);

  /* --- Fonts --- */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --display-1-size: clamp(44px, 7.4vw, 104px);
  --display-1-lh: 1.02;
  --display-1-ls: -.022em;
  --display-2-size: clamp(34px, 4.6vw, 64px);
  --display-2-lh: 1.08;
  --display-2-ls: -.018em;
  --display-3-size: clamp(26px, 3vw, 40px);
  --display-3-lh: 1.16;
  --display-3-ls: -.012em;
  --display-weight: 300;

  --lead-size: clamp(18px, 1.5vw, 23px);
  --lead-lh: 1.55;
  --body-size: 16px;
  --body-lh: 1.68;

  --label-size: 11px;
  --label-ls: .16em;
  --label-weight: 500;
  --caption-size: 12px;
  --caption-lh: 1.45;

  --data-size: 14px;
  --data-ls: .02em;
  --data-key-size: 11px;
  --data-key-ls: .14em;

  --measure-lead: 46ch;
  --measure-display: 16ch;

  /* --- Spacing (8px base) --- */
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 64px;
  --page-margin: clamp(20px, 5vw, 88px);
  --section-y: clamp(72px, 10vw, 160px);

  /* --- Surfaces / motion --- */
  --radius-hair: 2px;
  --scrim-bottom: linear-gradient(to top, rgba(23, 55, 67, .86) 0%, rgba(23, 55, 67, .72) 30%, rgba(23, 55, 67, .48) 58%, rgba(23, 55, 67, .18) 82%, rgba(23, 55, 67, 0) 100%);
  --concept-filter: saturate(.82) contrast(.96) sepia(.06);

  --ease-standard: cubic-bezier(.22, .61, .36, 1);
  --ease-out-soft: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text-link); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard); }
a:hover { color: var(--text-link-hover); border-bottom-color: var(--clay); }
::selection { background: var(--warm-sand); color: var(--ink); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

.section-y { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.px-page { padding-left: var(--page-margin); padding-right: var(--page-margin); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--page-margin);
  background: rgba(245, 242, 235, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-hair);
}
.site-header__mark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 19px);
  letter-spacing: .02em;
  color: var(--ink);
  border-bottom: 0;
  white-space: nowrap;
}
.site-header__mark span { color: var(--ink-300); }
.site-nav { display: none; gap: clamp(18px, 2.4vw, 36px); }
.site-nav a {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
  border-bottom: 0;
}
.site-nav a:hover { color: var(--clay); }
@media (min-width: 900px) {
  .site-nav { display: flex; }
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.btn--sm { padding: 10px 18px; }
.btn--lg { padding: 19px 40px; }
.btn--secondary { background: transparent; color: var(--deep-sea); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--warm-sand); border-color: var(--ink-300); }
.btn--clay { background: var(--clay); color: var(--soft-cream); border-color: var(--clay); }
.btn--clay:hover { background: var(--clay-700); border-color: var(--clay-700); }
.btn:focus-visible, .text-link:focus-visible { outline-offset: 3px; }

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.text-link:hover { color: var(--clay); border-bottom-color: var(--clay); }

/* Page-margin utilities (v3 rhythm — asymmetric top/bottom per section,
   not one shared section-y value; §1 of the handoff README). */
.pad-hero-type { padding: clamp(48px, 8vw, 128px) var(--page-margin) clamp(32px, 4vw, 64px); }
.pad-block { padding-top: clamp(96px, 11vw, 168px); padding-bottom: clamp(80px, 9vw, 140px); }
.pad-position { padding: 0 var(--page-margin) clamp(96px, 11vw, 168px); }
.pad-value { padding-top: clamp(72px, 8vw, 128px); padding-bottom: clamp(56px, 6vw, 104px); }
.pad-vision { padding-top: clamp(96px, 11vw, 168px); padding-bottom: clamp(96px, 11vw, 168px); }

.ink-500 { color: var(--ink-500); }

/* ---------- Hero ---------- */
.hero { background: var(--soft-cream); }
.hero__type {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px 56px;
}
.hero__title {
  flex: 1 1 640px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(60px, 10.6vw, 184px);
  line-height: .92;
  letter-spacing: -.036em;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title em { font-style: italic; letter-spacing: -.02em; }
.hero__side {
  flex: 0 1 360px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: clamp(0px, 1.2vw, 18px);
}
.hero__lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__figure { margin: 0; }
.hero__img { display: block; width: 100%; height: clamp(320px, 40vw, 640px); object-fit: cover; object-position: 80% 55%; }
.hero__caption {
  padding: 14px var(--page-margin) 0;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-700);
}

/* ---------- Section title (Trao đổi aside only — the one section whose
   heading stays a stacked column; every other section has its own bespoke
   header layout below, per v3) ---------- */
.section-title { display: flex; flex-direction: column; gap: var(--space-5); text-align: left; }
.section-title h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(48px, 6.6vw, 108px);
  line-height: .98;
  letter-spacing: -.028em;
  color: var(--ink);
  text-wrap: pretty;
}
.section-title p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--lead-size);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: pretty;
}

/* ---------- Rule ---------- */
.rule { border: 0; border-top: 1px solid var(--line-hair); margin: 0; }

/* ---------- Tổng quan quỹ đất (#land) ---------- */
.land-row { display: flex; flex-wrap: wrap; gap: 28px clamp(40px, 6vw, 120px); }
.land-row__title {
  flex: 0 1 280px;
  margin: 0;
  padding-top: .3em;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--ink-700);
}
.land-row__main { flex: 1 1 640px; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 72px); }
.land-row__statement {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 3.9vw, 58px);
  line-height: 1.1;
  letter-spacing: -.018em;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---------- Vị trí Kê Gà (#position) ---------- */
.position-row { display: flex; flex-wrap: wrap; gap: 40px clamp(24px, 3vw, 48px); align-items: stretch; }
.position-row__side { flex: 1 1 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.position-row__intro { display: flex; flex-direction: column; gap: 24px; }
.position-row__intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
}
.position-row__intro p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--lead-size);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: pretty;
}
.position-row > .figure--dominant { flex: 1 1 620px; }

.figure { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.figure__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--limestone); }
.figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.figure--supporting .figure__frame { aspect-ratio: 4 / 5; }
.figure__caption {
  font-family: var(--font-ui);
  font-size: var(--caption-size);
  line-height: var(--caption-lh);
  color: var(--ink-700);
}

/* ---------- Land: fact list ---------- */
.fact-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--ink);
}
.fact-list__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; }
.fact-list dt {
  font-family: var(--font-ui);
  font-size: var(--data-key-size);
  letter-spacing: var(--data-key-ls);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-500);
}
.fact-list dd {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.fact-list dd small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--ink-700); }

/* ---------- Location value ----------
   Map-story replaces the previous photo/pair/band layout: one spatial
   canvas (schematic base + SVG overlay + hotspots) driving one reusable
   info panel. Headline stays serif via .section-title h2; everything
   below is sans-serif body copy. */
.value-section { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 88px); }

/* ---------- Map story ----------
   Rebuilt against the approved Monograph v3 camera model (handoff README
   §3): a computed pan/zoom camera (JS, map-story.js) drives one zoom layer
   (base image + SVG geo overlays), while spotlight/pips/leader/label are
   screen-space siblings positioned in px by the same camera so they never
   scale with the zoom. Map-only breakpoint is 1080px (deliberately
   different from the 900px header-nav breakpoint per README §1). All
   per-story visibility (card/panel/pip-active/azerai/700m) keys off root
   [data-story] + [data-overview], written by map-story.js and read here by
   pure CSS attribute selectors — JS never toggles opacity/visibility
   directly except for the geometry-dependent inline styles noted below. */
:root {
  --map-cam-dur: 1100ms;
  --map-ease: cubic-bezier(.16, 1, .3, 1);
}
.map-story__plate { margin-top: clamp(40px, 4.5vw, 72px); }
@media not all and (min-width: 1080px) {
  .map-story__plate {
    margin-top: 36px;
    margin-left: calc(-1 * var(--page-margin));
    margin-right: calc(-1 * var(--page-margin));
  }
}

.map-story__box {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--deep-sea);
  height: min(117vw, 60vh);
}
@media (min-width: 1080px) {
  .map-story__box { height: auto; aspect-ratio: 16 / 10; }
}

.map-story__layer {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  transition: transform var(--map-cam-dur) var(--map-ease);
  will-change: transform;
}
.map-story__base { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.map-story__geo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-story__azerai-zone {
  fill: rgba(245, 242, 235, .2);
  stroke: none;
  opacity: 0;
  transition: opacity 700ms var(--map-ease);
}
.map-story[data-overview="false"][data-story="azerai"] .map-story__azerai-zone {
  opacity: 1;
  transition-delay: 500ms;
}
.map-story__dist-line {
  stroke: var(--soft-cream);
  stroke-width: 1.25;
  stroke-dasharray: 2 5;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 600ms var(--map-ease);
}
.map-story[data-overview="true"] .map-story__dist-line,
.map-story[data-overview="false"][data-story="lighthouse"] .map-story__dist-line {
  opacity: .95;
}

/* Screen-space layers — positioned in px by JS (map-story.js), never
   inside .map-story__layer, so they don't scale with the camera zoom. */
.map-story__spotlight {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: left var(--map-cam-dur) var(--map-ease), top var(--map-cam-dur) var(--map-ease),
    width var(--map-cam-dur) var(--map-ease), height var(--map-cam-dur) var(--map-ease),
    margin var(--map-cam-dur) var(--map-ease), opacity 700ms var(--map-ease);
}
.map-story[data-overview="false"] .map-story__spotlight { opacity: 1; }
/* Mobile/tablet (<1080): the circular dim reads as a blurry lens artifact
   on real phones at these zoom levels — active state is already legible via
   camera movement, active tab, pip, panel and (where relevant) the Azerai
   zone, so the spotlight is disabled outright here, not merely resized. */
@media not all and (min-width: 1080px) {
  .map-story__spotlight { display: none; }
}

.map-story__dist-label {
  position: absolute;
  transform: translate(12px, -50%);
  color: var(--soft-cream);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(23, 32, 31, .55);
  opacity: 0;
  pointer-events: none;
  transition: left var(--map-cam-dur) var(--map-ease), top var(--map-cam-dur) var(--map-ease), opacity 600ms var(--map-ease);
}
@media not all and (min-width: 1080px) { .map-story__dist-label { font-size: 17px; } }
.map-story[data-overview="true"] .map-story__dist-label,
.map-story[data-overview="false"][data-story="lighthouse"] .map-story__dist-label {
  opacity: 1;
}

.map-story__north {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--soft-cream);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  pointer-events: none;
}
.map-story__north i { display: block; width: 1px; height: 22px; background: var(--soft-cream); font-style: normal; }

/* ---------- Pips ---------- */
.map-story__pips { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.map-story__pip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: left var(--map-cam-dur) var(--map-ease), top var(--map-cam-dur) var(--map-ease), opacity 500ms var(--map-ease);
}
.map-story__pip.is-visible { opacity: 1; pointer-events: auto; }
.map-story__pip.is-active { z-index: 3; }
.map-story__pip.is-flipped { flex-direction: row-reverse; }
.map-story__pip-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  box-sizing: border-box;
  border-radius: 50%;
  background: rgba(23, 55, 67, .9);
  border: 1.5px solid var(--soft-cream);
  transition: background 400ms var(--map-ease);
}
.map-story__pip.is-active .map-story__pip-dot { background: var(--clay); }
.map-story__pip--land .map-story__pip-dot,
.map-story__pip--land.is-active .map-story__pip-dot {
  border-radius: 0;
  background: rgba(168, 100, 71, .35);
  border: 1.5px solid var(--clay);
}
.map-story__pip-chip {
  display: none;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 9px;
  background: var(--deep-sea);
  color: var(--soft-cream);
}
@media not all and (min-width: 1080px) { .map-story__pip-chip { font-size: 10px; padding: 5px 7px; } }
.map-story__pip.is-named .map-story__pip-chip { display: inline-block; }
.map-story__pip.is-active .map-story__pip-chip { background: var(--soft-cream); color: var(--ink); }

/* ---------- Leader lines (desktop only, ≥1080) ---------- */
.map-story__leaders { display: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
@media (min-width: 1080px) { .map-story__leaders { display: block; } }
.map-story__leader line,
.map-story__leader circle { fill: var(--soft-cream); stroke: var(--soft-cream); }
.map-story__leader line { stroke-width: 1; }
.map-story__leader { opacity: 0; transition: opacity 150ms linear; }
.map-story[data-overview="false"][data-story="lighthouse"] .map-story__leader[data-story="lighthouse"],
.map-story[data-overview="false"][data-story="azerai"] .map-story__leader[data-story="azerai"],
.map-story[data-overview="false"][data-story="development"] .map-story__leader[data-story="development"],
.map-story[data-overview="false"][data-story="connectivity"] .map-story__leader[data-story="connectivity"] {
  opacity: .95;
  transition: opacity 500ms var(--map-ease) 1000ms;
}

/* ---------- Active annotation card (desktop only, ≥1080) ---------- */
.map-story__card {
  display: none;
  position: absolute;
  z-index: 4;
  width: clamp(300px, 30%, 380px);
  box-sizing: border-box;
  background: var(--soft-cream);
  color: var(--ink);
  padding: 24px 26px 26px;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity 250ms var(--map-ease), transform 250ms var(--map-ease), visibility 0s linear 250ms;
}
@media (min-width: 1080px) { .map-story__card { display: flex; } }
.map-story__card[data-pos="left"] { left: 3.5%; bottom: 5.5%; }
.map-story__card[data-pos="right"] { right: 3.5%; top: 5.5%; }
.map-story[data-story="lighthouse"] .map-story__card[data-story="lighthouse"],
.map-story[data-story="azerai"] .map-story__card[data-story="azerai"],
.map-story[data-story="development"] .map-story__card[data-story="development"],
.map-story[data-story="connectivity"] .map-story__card[data-story="connectivity"] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 700ms var(--map-ease) 450ms, transform 900ms var(--map-ease) 450ms, visibility 0s;
}
.map-story__card-kicker { font-family: var(--font-ui); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink-700); }
.map-story__card-title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 2.3vw, 36px); line-height: 1.05; letter-spacing: -.014em; }
.map-story__card-figure { margin: 0; font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(21px, 1.7vw, 25px); line-height: 1.2; color: var(--clay-700); }
.map-story__card-body { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.map-story__card-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-700); }

/* ---------- Tabs ---------- */
.map-story__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
@media not all and (min-width: 1080px) { .map-story__tabs { gap: 12px; padding: 0 20px; } }
.map-story__tab {
  position: relative;
  background: none;
  border: 0;
  border-top: 1px solid rgba(23, 32, 31, .28);
  min-height: 52px;
  padding: 19px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  color: var(--ink-700);
  transition: color 300ms var(--map-ease);
}
.map-story__tab[aria-selected="true"] { border-top: 2px solid var(--clay); padding-top: 18px; color: var(--ink); }
.map-story__tab:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.map-story__tab-row { display: flex; align-items: center; gap: 10px; }
.map-story__tab-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--ink-700);
  transition: background 300ms var(--map-ease), border-color 300ms var(--map-ease);
}
.map-story__tab[aria-selected="true"] .map-story__tab-dot { background: var(--clay); border-color: var(--clay); }
.map-story__tab-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.map-story__tab-dir { display: none; font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: var(--ink-700); padding-left: 17px; }
@media (min-width: 1080px) { .map-story__tab-dir { display: block; } }
@media not all and (min-width: 1080px) {
  .map-story__tab { padding: 15px 0 12px; min-height: 0; }
  .map-story__tab[aria-selected="true"] { padding-top: 14px; }
  .map-story__tab-title { font-size: 18px; white-space: nowrap; }
}
@media (max-width: 390px) {
  .map-story__tabs { gap: 8px; }
  .map-story__tab-title { font-size: 16px; }
}

/* ---------- Mobile flow card (<1080) ---------- */
.map-story__mobile-cards { display: none; }
@media not all and (min-width: 1080px) {
  .map-story__mobile-cards { display: grid; padding: 26px 20px 0; }
}
.map-story__panel {
  grid-area: 1 / 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 250ms var(--map-ease), transform 250ms var(--map-ease), visibility 0s linear 250ms;
}
.map-story[data-story="lighthouse"] .map-story__panel[data-story="lighthouse"],
.map-story[data-story="azerai"] .map-story__panel[data-story="azerai"],
.map-story[data-story="development"] .map-story__panel[data-story="development"],
.map-story[data-story="connectivity"] .map-story__panel[data-story="connectivity"] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 700ms var(--map-ease) 450ms, transform 900ms var(--map-ease) 450ms, visibility 0s;
}
.map-story__panel .map-story__card-title { font-size: 34px; }
.map-story__panel .map-story__card-figure { font-size: 23px; }
.map-story__panel .map-story__card-body { font-size: 16px; line-height: 1.65; }

/* ---------- Caption row ---------- */
.map-story__caption-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 40px;
  margin-top: 28px;
}
@media not all and (min-width: 1080px) {
  .map-story__caption-row { flex-direction: column-reverse; gap: 18px; padding: 20px 20px 0; margin-top: 0; }
}
.map-story__legend {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-700);
}
.map-story__legend > span:first-of-type { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.map-story__legend-swatch { width: 10px; height: 10px; border: 1.5px solid var(--clay); background: rgba(168, 100, 71, .12); box-sizing: border-box; }
.map-story__reset {
  align-self: flex-start;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(23, 32, 31, .28);
  padding: 0 0 3px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard);
}
.map-story__reset:hover { color: var(--clay); }
.map-story__reset:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
@media not all and (min-width: 1080px) { .map-story__reset { padding: 12px 0 6px; } }

/* Entrance: the visual settles in with the rest of the page. */
.js-reveal .map-story__box { opacity: 0; transition: opacity 520ms var(--ease-out-soft); }
.js-reveal .map-story.is-visible .map-story__box { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .map-story__layer,
  .map-story__spotlight,
  .map-story__dist-label,
  .map-story__pip,
  .map-story__azerai-zone,
  .map-story__dist-line {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .map-story__card,
  .map-story__panel {
    transition: opacity 150ms linear !important;
    transform: none !important;
  }
  .map-story__leader { transition: opacity 150ms linear !important; }
}

/* ---------- Vision ---------- */
.vision { background: var(--deep-sea); }
.vision-row-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 64px;
  margin-bottom: clamp(56px, 7vw, 104px);
}
.vision-row-header h2 {
  flex: 1 1 520px;
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--soft-cream);
}
.vision-row-header p {
  flex: 0 1 420px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--deep-sea-200);
  text-wrap: pretty;
}
.vision-rows { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 120px); }
.vision-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
  align-items: flex-end;
}
.vision-row--reverse { flex-direction: row-reverse; }
@media (max-width: 640px) {
  .vision-rows { gap: 40px; }
  .vision-row { gap: 20px; }
}
.vision-row__media { flex: 1.7 1 520px; min-width: 0; }
.vision-row__text {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: clamp(0px, 1vw, 18px);
}
.vision-row__text h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--display-3-size);
  line-height: var(--display-3-lh);
  letter-spacing: var(--display-3-ls);
  color: var(--soft-cream);
}
.vision-row__text p {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  color: var(--deep-sea-200);
  max-width: 44ch;
  text-wrap: pretty;
}

.concept-figure { position: relative; margin: 0; }
.concept-figure__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
@media (min-width: 900px) {
  .concept-figure__frame { aspect-ratio: 3 / 2; }
}
.concept-figure__frame img { width: 100%; height: 100%; object-fit: cover; filter: var(--concept-filter); }

/* Quiet in-frame disclosure (2025-09 decision): restrained, editorial —
   NOT the earlier large clay badge. Baked inside the frame (not a caption
   below it) so the context survives a screenshot/share of the image alone. */
.concept-figure__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--soft-cream);
  text-shadow: 0 1px 8px rgba(23, 32, 31, .6), 0 0 2px rgba(23, 32, 31, .5);
  pointer-events: none;
}

.concept-notice {
  border-top: 1px solid var(--line-on-deep);
  padding-top: 14px;
  max-width: 72ch;
}
.concept-notice p {
  font-family: var(--font-ui);
  font-size: var(--caption-size);
  line-height: 1.55;
  color: var(--deep-sea-200);
}

/* ---------- Enquire ---------- */
.enquire-section { border-top: 1px solid var(--line-hair); }
.enquire-grid { display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 96px); align-items: flex-start; }
.enquire-grid__aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.enquire-grid__form { flex: 1.1 1 400px; min-width: 0; }

.enquire-phone {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 3.8vw, 56px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0;
  font-variant-numeric: lining-nums tabular-nums;
  padding-top: 8px;
}
.enquire-phone:hover { color: var(--clay); }

.privacy-note { display: flex; gap: 14px; font-family: var(--font-ui); font-size: var(--caption-size); line-height: 1.55; color: var(--ink-500); max-width: 60ch; }
.privacy-note__mark { flex: 0 0 28px; height: 1px; background: var(--line-strong); margin-top: 9px; }
.fine-print { font-family: var(--font-ui); font-size: 12px; line-height: 1.65; color: var(--ink-300); max-width: 56ch; }

.form { display: flex; flex-direction: column; gap: 30px; }
.form-row { display: flex; flex-wrap: wrap; gap: 30px 24px; }
.form-row > .field { flex: 1 1 220px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-family: var(--font-ui);
  font-size: var(--label-size);
  letter-spacing: var(--label-ls);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.field__label .req { color: var(--clay); }
.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-500);
  border-radius: 0;
  padding: 10px 0;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--deep-sea); }
.field input:invalid:not(:placeholder-shown) { border-bottom-color: var(--clay); }

/* ---------- Role single-select (v3 §7 — visible rows, native radios) ---------- */
.role-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.role-fieldset > legend { padding: 0; margin-bottom: 10px; }
.role-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 0;
  min-height: 46px;
  border-bottom: 1px solid rgba(23, 32, 31, .14);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-700);
  cursor: pointer;
}
.role-row:hover { color: var(--clay); }
.role-row input { position: absolute; opacity: 0; width: 10px; height: 10px; }
.role-row__box {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--ink);
  background: transparent;
}
.role-row input:checked ~ .role-row__box { background: var(--deep-sea); }
.role-row input:checked ~ span:last-child { color: var(--ink); font-weight: 500; }
.role-row input:focus-visible ~ .role-row__box { outline: 2px solid var(--clay); outline-offset: 2px; }

.form-status {
  border: 1px solid var(--line-hair);
  background: var(--paper);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-500);
}
.form-status[hidden] { display: none; }
.form-status__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--label-size);
  letter-spacing: var(--label-ls);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--clay);
}
.form-status--success { border-color: var(--line-hair); }
.form-status--dev { background: var(--warm-sand); }
.form-status__title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 22px; line-height: 1.3; color: var(--ink); }

.sent-panel { border: 1px solid var(--line-hair); background: var(--paper); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.sent-panel[hidden] { display: none; }
.sent-panel__eyebrow { font-family: var(--font-ui); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: uppercase; font-weight: 500; color: var(--clay); }
.sent-panel__title { font-family: var(--font-display); font-weight: 300; font-size: 24px; line-height: 1.3; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-hair);
  padding: clamp(32px, 4vw, 56px) var(--page-margin);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.site-footer__row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: baseline; }
.site-footer__mark { font-family: var(--font-display); font-weight: 300; font-size: 17px; color: var(--ink); }
.site-footer__mark span { color: var(--ink-300); }
.site-footer__tag { font-family: var(--font-ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-300); }
.site-footer__legal { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px clamp(32px, 5vw, 64px); max-width: 1100px; }
.site-footer__legal p { font-family: var(--font-ui); font-size: 12px; line-height: 1.65; color: var(--ink-500); }

/* ---------- Scroll reveal ----------
   Content is visible by default (no-JS / JS-failure safe). The reveal
   animation is opt-in: main.js adds `.js-reveal` to <html> only when
   IntersectionObserver exists and the visitor hasn't asked for reduced
   motion, then arms each [data-reveal] element individually. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 900ms var(--ease-out-soft), transform 900ms var(--ease-out-soft);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.001ms !important; }
}
