/* Layout concept: a night flight over the Gandhara lake basin — full-bleed pinned
   "scenes" (3D terrain, zooming photo, sideways drive-time reel) separated by calm,
   left-aligned reading sections on a 12-col grid. Single dark look by choice. */
:root {
  --night: #070B12;        /* page ground, lake at night */
  --basin: #0C1420;        /* raised surfaces */
  --ridge: #142033;        /* borders, inactive */
  --ink: #E9EEF5;          /* primary text */
  --mist: #9AA7BA;         /* secondary text (7.4:1 on night) */
  --lake: #6FD3E0;         /* accent 1: water / live */
  --stone: #D8B37A;        /* accent 2: Gandhara schist / caution */
  --on-lake: #04161A;
  --line: rgba(154, 167, 186, 0.16);
  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
img { max-width: 100%; display: block; }
a { color: var(--lake); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lake); }
.lede { color: var(--mist); font-size: 19px; max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--stone); color: var(--night); padding: 10px 14px; }
.skip:focus { left: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lake { background: var(--lake); color: var(--on-lake); }
.btn-lake:hover { color: var(--on-lake); background: #9BE3EC; }
.btn-ghost { border-color: rgba(233, 238, 245, .32); color: var(--ink); background: rgba(7, 11, 18, .35); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 90; background: var(--night); display: grid; place-items: center; transition: opacity .6s ease, visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.loader-mark { font: 800 clamp(56px, 12vw, 120px)/1 var(--display); letter-spacing: -0.04em; }
.loader-mark span { color: var(--lake); }
.loader-count { font: 500 13px var(--mono); color: var(--mist); letter-spacing: .12em; }
.no-js .loader { display: none; }

/* ---------- header ---------- */
.site-head { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.site-head.scrolled { background: rgba(7, 11, 18, .86); backdrop-filter: blur(10px); border-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { font: 800 22px/1 var(--display); letter-spacing: -0.03em; }
.brand-mark span { color: var(--lake); }
.brand-sub { font: 500 11px/1.3 var(--mono); color: var(--mist); letter-spacing: .08em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; opacity: .82; }
.nav a:hover { opacity: 1; color: var(--lake); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; opacity: 1; }
.menu-btn { display: none; min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
@media (max-width: 900px) {
  .brand-sub { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { position: fixed; top: calc(72px + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid var(--line); padding: 8px var(--gut-r) 20px var(--gut-l); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- hero (pinned 3D) ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
#terrain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: radial-gradient(ellipse at 50% 70%, #0E2230 0%, var(--night) 70%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,18,.55) 0%, rgba(7,11,18,0) 35%, rgba(7,11,18,0) 60%, var(--night) 100%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(48px, 9vh, 110px); gap: 22px; }
.hero-tag { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.hero-tag b { color: var(--lake); font-weight: 500; }
.hero h1 { font-size: clamp(46px, 9.4vw, 150px); line-height: .9; letter-spacing: -0.045em; text-transform: uppercase; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; }
.hero h1 .hollow { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-foot .lede { max-width: 46ch; color: #C7D1DE; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-hint { position: absolute; right: var(--gut-r); bottom: 24px; z-index: 2; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; }
.scroll-hint::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--lake), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .scroll-hint { display: none; } }

/* ---------- status ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--basin); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker-track p { display: flex; gap: 40px; padding: 16px 20px; white-space: nowrap; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.ticker-track b { color: var(--stone); font-weight: 500; }
.ticker-track i { font-style: normal; color: var(--lake); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- status block ---------- */
.status { padding-block: clamp(80px, 12vw, 150px) 40px; }
.status-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.status-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 22px; }
.status h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; }
.status-card { grid-column: span 5; border: 1px solid rgba(216, 179, 122, .4); border-radius: 24px; background: var(--basin); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.status-card .row { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.status-card .row b { font-weight: 600; color: var(--stone); }
.status-card .row b.ok { color: var(--lake); }
.pulse { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.pulse::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 0 0 rgba(216,179,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(216,179,122,0); } 100% { box-shadow: 0 0 0 0 rgba(216,179,122,0); } }
.status-card h3 { font-size: 26px; line-height: 1.15; }
.status-card p { color: var(--mist); font-size: 15px; }
@media (max-width: 900px) { .status-copy, .status-card { grid-column: 1 / -1; } }

/* ---------- zoom scene ---------- */
.zoom { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; }
.zoom-frame { position: relative; width: 100%; height: 100%; clip-path: inset(18% 22% 18% 22% round 28px); will-change: clip-path; }
.zoom-frame .ph { position: absolute; inset: 0; transform: scale(1.35); will-change: transform; }
.zoom-text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 18px; pointer-events: none; }
.zoom-text h2 { font-size: clamp(40px, 8vw, 128px); line-height: .92; text-transform: uppercase; letter-spacing: -0.04em; text-shadow: 0 4px 40px rgba(7,11,18,.6); }
.zoom-text p { max-width: 46ch; color: #DCE3EC; text-shadow: 0 2px 20px rgba(7,11,18,.9); }

/* photo slots: canvas painting until a real <img> is placed inside */
.ph { overflow: hidden; background: var(--basin); }
.ph canvas, .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph figcaption { position: absolute; left: 16px; bottom: 14px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(233,238,245,.7); }

/* ---------- drive reel (horizontal) ---------- */
.drive { padding-top: clamp(80px, 10vw, 130px); }
.drive-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.drive-head h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; max-width: 16ch; }
.reel-pin { overflow: hidden; }
.reel { display: flex; gap: 20px; width: max-content; padding: 0 var(--gut-r) 80px var(--gut-l); }
.stop { position: relative; width: min(78vw, 400px); aspect-ratio: 4 / 5; max-width: 100%; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--basin); flex: none; }
.stop .ph { position: absolute; inset: 0; opacity: .55; }
.stop-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; background: linear-gradient(180deg, rgba(7,11,18,.1), rgba(7,11,18,.85)); }
.stop-min { font: 800 clamp(80px, 10vw, 128px)/.85 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stop-min small { font: 500 16px var(--mono); letter-spacing: .08em; color: var(--lake); margin-left: 6px; }
.stop h3 { font-size: 24px; line-height: 1.15; }
.stop p { color: var(--mist); font-size: 15px; }
.drive-note { font: 400 13px var(--mono); color: var(--mist); }
@media (max-width: 760px) {
  .reel { width: auto; flex-direction: column; padding-bottom: 40px; }
  .stop { width: 100%; aspect-ratio: 16 / 11; }
}

/* ---------- timeline ---------- */
.timeline { padding-block: clamp(80px, 10vw, 140px); }
.tl-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.tl-intro { grid-column: span 5; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; align-self: start; }
.tl-intro h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1; }
.tl-list { grid-column: 7 / -1; position: relative; list-style: none; margin: 0; padding: 0 0 0 36px; display: flex; flex-direction: column; gap: 48px; }
.tl-list::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--ridge); }
.tl-list::after { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--lake); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.tl-list li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tl-list li::before { content: ""; position: absolute; left: -36px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--night); border: 2px solid var(--lake); }
.tl-list li.key::before { border-color: var(--stone); background: var(--stone); }
.tl-list li.next::before { border-style: dashed; }
.tl-date { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.tl-list li.key .tl-date { color: var(--stone); }
.tl-list h3 { font-size: 24px; }
.tl-list p { color: var(--mist); max-width: 52ch; }
@media (max-width: 900px) { .tl-intro, .tl-list { grid-column: 1 / -1; position: static; } }

/* ---------- plots ---------- */
.plots { background: var(--basin); border-block: 1px solid var(--line); padding-block: clamp(80px, 10vw, 140px); }
.plots-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.plots-head h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab { min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(233,238,245,.25); background: transparent; color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--lake); color: var(--on-lake); border-color: var(--lake); }
.plot-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.plot-draw { grid-column: span 6; background: var(--night); border: 1px solid var(--line); border-radius: 26px; padding: 24px; }
.plot-draw svg { width: 100%; height: auto; max-height: 460px; display: block; }
.plot-info { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
.plot-info .size { font: 800 clamp(48px, 7vw, 92px)/.9 var(--display); letter-spacing: -0.04em; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; margin: 0; }
.spec dt { font: 500 12px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.spec dd.wait { color: var(--stone); }
.file-note { border-top: 1px solid var(--line); padding-top: 20px; color: var(--mist); font-size: 15px; max-width: 54ch; }
@media (max-width: 900px) { .plot-draw, .plot-info { grid-column: 1 / -1; } }

/* ---------- checklist ---------- */
.checks { padding-block: clamp(80px, 10vw, 140px); }
.checks h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; max-width: 18ch; margin: 18px 0 44px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.check { background: var(--night); padding: 28px; display: flex; gap: 18px; }
.check svg { flex: none; width: 26px; height: 26px; color: var(--lake); margin-top: 2px; }
.check h3 { font: 600 18px/1.35 var(--body); letter-spacing: 0; margin-bottom: 6px; }
.check p { color: var(--mist); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { padding-block: 20px clamp(80px, 10vw, 140px); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.faq-intro { grid-column: span 4; display: flex; flex-direction: column; gap: 18px; }
.faq-intro h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1; }
.faq-list { grid-column: 6 / -1; display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; min-height: 64px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 600 19px/1.4 var(--body); letter-spacing: 0; }
.faq summary .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--lake); transition: transform .3s ease; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { color: var(--mist); padding-bottom: 24px; max-width: 64ch; }
@media (max-width: 900px) { .faq-intro, .faq-list { grid-column: 1 / -1; } }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.contact .ph { position: absolute; inset: 0; opacity: .35; }
.contact-inner { position: relative; padding-block: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.contact-copy { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
.contact-copy h2 { font-size: clamp(38px, 6vw, 84px); line-height: .95; text-transform: uppercase; letter-spacing: -0.04em; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; font: 400 15px var(--mono); color: #C7D1DE; }
.form-card { grid-column: 8 / -1; background: rgba(7, 11, 18, .88); border: 1px solid rgba(111, 211, 224, .32); border-radius: 26px; padding: 30px; backdrop-filter: blur(6px); }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: #C7D1DE; }
.field input, .field select { min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(154,167,186,.32); background: var(--basin); color: var(--ink); font: 400 16px var(--body); }
.field input::placeholder { color: #75839A; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-row .field { flex: 1 1 160px; }
.form .err { color: #F2A59B; font-size: 14px; min-height: 1.2em; }
.form .btn { justify-content: center; margin-top: 4px; border: 0; }
.form small { color: var(--mist); font-size: 13px; }
.done-card { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.done-card h3 { font-size: 30px; }
.done-card p { color: var(--mist); }
@media (max-width: 900px) { .contact-copy, .form-card { grid-column: 1 / -1; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 48px 64px; display: flex; flex-direction: column; gap: 22px; font-size: 14px; color: var(--mist); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--mist); text-decoration: none; }
.foot-links a:hover { color: var(--lake); }
.disclaimer { max-width: 90ch; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .scroll-hint::after, .pulse::before { animation: none; }
  .zoom-frame { clip-path: inset(0 round 0); }
  .zoom-frame .ph { transform: none; }
}

/* ---------- chat assistant ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-fab { position: fixed; z-index: 70; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; background: var(--stone); color: #1E1505; font: 600 15px var(--body); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .25s ease; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-panel { position: fixed; z-index: 80; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 130px)); display: flex; flex-direction: column; background: var(--basin); border: 1px solid rgba(111,211,224,.3); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.chat-title { font: 700 17px var(--display); letter-spacing: -0.01em; }
.chat-sub { font: 400 12px var(--mono); color: var(--mist); }
.chat-x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.chat-x svg { width: 20px; height: 20px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--night); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--lake); color: var(--on-lake); border-bottom-right-radius: 6px; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 8px; }
.msg ul { margin: 0; padding-left: 18px; }
.msg a.wa { display: inline-flex; align-items: center; min-height: 40px; margin-top: 10px; padding: 0 14px; border-radius: 999px; background: var(--stone); color: #1E1505; font-weight: 600; text-decoration: none; }
.msg.typing { color: var(--mist); font: 400 13px var(--mono); }
.chat-chips { display: flex; gap: 8px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.chat-chips button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(111,211,224,.4); background: transparent; color: var(--lake); font: 500 13px var(--body); cursor: pointer; }
.chat-chips button:hover { background: rgba(111,211,224,.1); }
.chat-form { display: flex; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(154,167,186,.32); background: var(--night); color: var(--ink); font: 400 16px var(--body); }
.chat-form button { width: 48px; height: 48px; flex: none; border-radius: 14px; border: 0; background: var(--lake); color: var(--on-lake); cursor: pointer; display: grid; place-items: center; }
.chat-form button svg { width: 20px; height: 20px; }
@media (max-width: 520px) {
  .chat-fab span { display: none; }
  .chat-fab { padding: 0; width: 56px; justify-content: center; }
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(88dvh, 640px); border-radius: 22px 22px 0 0; }
}

/* ---------- guides grid (home) ---------- */
.guides { padding-block: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); }
.guides h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; margin: 16px 0 36px; max-width: 20ch; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.guide { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--basin); color: var(--ink); text-decoration: none; transition: border-color .25s ease, transform .25s ease; }
.guide:hover { border-color: var(--lake); color: var(--ink); transform: translateY(-3px); }
.guide h3 { font-size: 22px; line-height: 1.2; }
.guide p { color: var(--mist); font-size: 15px; }

/* ---------- article pages ---------- */
.page-hero { padding-top: calc(120px + env(safe-area-inset-top, 0px)); padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 80% 120% at 85% 0%, rgba(111,211,224,.10), transparent 60%), var(--night); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); margin-bottom: 26px; }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--lake); }
.page-hero h1 { font-size: clamp(38px, 6vw, 80px); line-height: .98; letter-spacing: -0.035em; max-width: 18ch; }
.page-hero .lede { margin-top: 22px; }
.updated { margin-top: 18px; font: 400 13px var(--mono); color: var(--mist); }
.answer { margin-top: 28px; max-width: 70ch; padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(216,179,122,.4); background: var(--basin); }
.answer b { color: var(--stone); font-weight: 600; }
.article { padding-block: clamp(50px, 7vw, 90px); }
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 18px; }
.prose h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; margin-top: 30px; }
.prose h3 { font: 600 20px/1.35 var(--body); letter-spacing: 0; margin-top: 8px; }
.prose p, .prose li { color: #C7D1DE; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mist); background: var(--basin); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td.hl { color: var(--stone); font-weight: 600; }
.cta-band { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 22px; border: 1px solid rgba(111,211,224,.35); background: var(--basin); }
.cta-band h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); max-width: 24ch; }
.cta-band .btn { border: 0; }
.related { padding-block: 10px clamp(60px, 8vw, 100px); }
.related h2 { font-size: 26px; margin-bottom: 20px; }
.page-faq { margin-top: 20px; }
.page-faq details { border-top: 1px solid var(--line); }
.page-faq details:last-child { border-bottom: 1px solid var(--line); }
.page-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; min-height: 56px; }
.page-faq summary::-webkit-details-marker { display: none; }
.page-faq summary h3 { margin: 0; font: 600 18px/1.4 var(--body); }
.page-faq summary .plus { flex: none; color: var(--lake); font-size: 22px; transition: transform .3s ease; }
.page-faq details[open] .plus { transform: rotate(45deg); }
.page-faq details p { color: #C7D1DE; padding-bottom: 20px; }
.timeline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.timeline-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline-list time { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--stone); padding-top: 4px; }
.timeline-list h3 { margin: 0 0 6px; }
@media (max-width: 600px) { .timeline-list li { grid-template-columns: 1fr; gap: 6px; } }

/* master-plan post: figures and map embeds */
.post-figure{margin:1.5rem 0}.post-figure img{display:block;width:100%;height:auto;border-radius:12px}.post-figure figcaption{font-size:.85rem;opacity:.75;margin-top:.4rem}.map-embed{margin:1.5rem 0}.map-embed iframe{display:block;width:100%;height:400px;border:0;border-radius:12px}.prose .note{margin:1.5rem 0;padding:.9rem 1.1rem;border-left:3px solid currentColor;border-radius:8px;background:rgba(127,127,127,.08)}
