/* ThanetWorld — chalk-cliff / sea palette. No external fonts or requests. */
:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --ink: #14232e;
  --muted: #526371;
  --line: #e1dacb;
  --navy: #0a1c2a;
  --shadow: 0 1px 2px rgb(10 28 42 / .06), 0 8px 24px rgb(10 28 42 / .06);
  --radius: 16px;
  --wrapw: 1160px;

  --sea: #1f9a99;   --sea-ink: #0f6663;
  --sand: #e0a030;  --sand-ink: #855600;
  --brick: #c4553b; --brick-ink: #a03c25;

  --accent: var(--sea);
  --accent-ink: var(--sea-ink);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1720; --surface: #112331; --ink: #eaf0f3; --muted: #9db0bd; --line: #21394a;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .25);
    --sea: #38b6b0; --sea-ink: #6fd6cf;
    --sand: #f0b44c; --sand-ink: #f5c875;
    --brick: #e0735a; --brick-ink: #f19a85;
  }
}
[data-tone="sea"]   { --accent: var(--sea);   --accent-ink: var(--sea-ink); }
[data-tone="sand"]  { --accent: var(--sand);  --accent-ink: var(--sand-ink); }
[data-tone="brick"] { --accent: var(--brick); --accent-ink: var(--brick-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrapw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--sand); color: #14232e; padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow { font: 600 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); margin-bottom: 14px; }
.note { max-width: 62ch; margin-top: 14px; padding: 12px 16px; border-left: 4px solid var(--sand); background: var(--surface); border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--muted); }
.eyebrow-light { color: #9ee6df; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 62ch; margin-top: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--navy) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(255 255 255 / .08); }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f6f3ec; text-decoration: none; font: 500 1.15rem var(--serif); }
.brand b { color: #f0b44c; font-weight: 700; }
.site-header nav { display: flex; gap: 4px; overflow-x: auto; }
.site-header nav a { color: #c9d6de; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .92rem; white-space: nowrap; }
.site-header nav a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.site-header nav a[aria-current] { color: #0a1c2a; background: #f0b44c; }
@media (max-width: 520px) { .brand span { display: none; } .site-header nav a { padding: 8px 10px; font-size: .88rem; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; background: var(--navy); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 28 42 / .45) 0%, rgb(10 28 42 / .2) 35%, rgb(10 28 42 / .88) 100%); }
.hero-inner { padding: 96px 0 44px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.9rem); max-width: 14ch; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.hero h1 em { font-style: italic; color: #f0b44c; }
.hero-sub { max-width: 56ch; margin-top: 18px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #e6eef3; }
.hero-phases { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-phases a { display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgb(10 28 42 / .55); backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / .22); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.hero-phases a:hover { background: rgb(10 28 42 / .8); transform: translateY(-2px); }
.hero-phases span { font-size: .85rem; color: #c9d6de; }
.hero-phases b { font: 700 1.1rem var(--serif); }
.hero-phases li[data-tone="sea"] b   { color: #6fd6cf; }
.hero-phases li[data-tone="sand"] b  { color: #f5c875; }
.hero-phases li[data-tone="brick"] b { color: #f19a85; }
.hero-meta { margin-top: 18px; font-size: .85rem; color: #b5c4cd; }

/* ---------- highlights ---------- */
.highlights { background: var(--navy); color: #fff; }
.stat-row { list-style: none; padding: 26px 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 28px; }
.stat-row b { display: block; font: 600 clamp(1.5rem, 3.4vw, 2.1rem)/1.1 var(--serif); color: #f0b44c; }
.stat-row span { font-size: .9rem; color: #b5c4cd; }

/* ---------- roadmap ---------- */
.roadmap { padding: 84px 0 28px; }
.road-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .road-list { grid-template-columns: 1fr; } }
.road-card a { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; height: 100%; padding: 22px 22px 26px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.road-card a:hover { transform: translateY(-3px); }
.road-num { font: 700 2.8rem/1 var(--serif); color: var(--accent); grid-row: span 2; }
.road-title { display: block; font: 600 1.2rem/1.25 var(--serif); }
.road-blurb { display: block; color: var(--muted); font-size: .98rem; margin-top: 6px; }
.road-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.road-pct { font: 700 1.4rem var(--serif); color: var(--accent-ink); }
.mini-track { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 4px; }

/* ---------- status chip ---------- */
.status { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; border: 1px solid currentColor; color: var(--accent-ink); }
.status-planned { color: var(--muted); }

/* ---------- phase sections ---------- */
.phase { padding: 72px 0; border-top: 1px solid var(--line); }
.phase:nth-of-type(even) { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.phase-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .phase-grid { grid-template-columns: 1fr; gap: 32px; } }
.phase-intro { position: sticky; top: 88px; }
@media (max-width: 900px) { .phase-intro { position: static; } }
.phase-intro .eyebrow { display: flex; align-items: center; gap: 10px; }
.ring-row { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.ring { --size: 104px; flex: none; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--bg); }
.phase:nth-of-type(even) .ring::before { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.ring span { position: relative; font: 700 1.9rem var(--serif); color: var(--accent-ink); }
.ring small { font-size: .95rem; margin-left: 1px; }
.ring-empty { background: repeating-conic-gradient(var(--line) 0 8deg, transparent 8deg 16deg); }
.ring-note { color: var(--muted); font-size: .92rem; }

.phase-groups { display: grid; gap: 20px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px clamp(18px, 3vw, 28px) 10px; box-shadow: var(--shadow); }
.group h3 { margin-bottom: 4px; }
.group-intro { color: var(--muted); font-size: .98rem; margin-bottom: 8px; }

/* ---------- progress bars ---------- */
.bar { padding: 16px 0 14px; border-top: 1px solid var(--line); }
.bar:first-of-type { border-top: 0; }
.group h3 + .bar, .group-intro + .bar { border-top: 0; }
.bar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 9px; }
.bar-label { font-weight: 600; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.bar-figure { color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.bar-figure strong { color: var(--ink); font-size: 1.05rem; }
.unit { font-size: .85rem; }
.track { height: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fill { height: 100%; width: calc(var(--pct) * 1%); min-width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff)); }
.bar-foot { display: flex; gap: 14px; align-items: baseline; margin-top: 7px; }
.bar-pct { flex: none; min-width: 3ch; font: 700 .95rem var(--serif); color: var(--accent-ink); }
.bar-note { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.is-pending .track { background: repeating-linear-gradient(-45deg, var(--line) 0 8px, transparent 8px 16px); border: 1px dashed var(--line); }
.tag { font: 600 .66rem/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; padding: 4px 7px; border-radius: 6px; background: var(--line); color: var(--muted); }
.tag-warn { background: color-mix(in srgb, var(--sand) 25%, transparent); color: var(--sand-ink); }
.tag-done { background: color-mix(in srgb, var(--sea) 22%, transparent); color: var(--sea-ink); }

/* animate only with JS + motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .bar .fill, .js .road-card .fill { width: 0; transition: width 1.2s cubic-bezier(.2, .75, .2, 1); }
  .js .bar.is-in .fill, .js .road-card.is-in .fill { width: calc(var(--pct) * 1%); }
}

/* ---------- town chips ---------- */
.chips { list-style: none; padding: 0; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 99px; font-size: .92rem; font-weight: 500; border: 1px solid var(--line); background: var(--bg); }
.chip small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.chip-done { border-color: color-mix(in srgb, var(--sea) 55%, transparent); background: color-mix(in srgb, var(--sea) 14%, var(--surface)); }
.chip-done > span:first-child { color: var(--sea-ink); font-weight: 700; }
.chip-partial { border-color: color-mix(in srgb, var(--sand) 60%, transparent); background: color-mix(in srgb, var(--sand) 14%, var(--surface)); }
.chip-partial > span:first-child { color: var(--sand-ink); }
.chip-todo { color: var(--muted); border-style: dashed; }

/* ---------- gallery ---------- */
.gallery { padding: 84px 0; border-top: 1px solid var(--line); background: var(--navy); color: #fff; }
.gallery .lede { color: #b5c4cd; }
.gallery .eyebrow { color: #9ee6df; }
.shots { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 14px; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }
.shot { aspect-ratio: 16 / 10; }
.shot a { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 12px; background: #000; }
.shot-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 900px) { .shot-wide { grid-row: auto; aspect-ratio: 3.2 / 1; } }
@media (max-width: 560px) { .shot-wide { grid-column: auto; aspect-ratio: 16 / 10; } }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.shot a:hover img { transform: scale(1.04); }
.shot-cap { position: absolute; inset: auto 0 0 0; padding: 38px 14px 12px; background: linear-gradient(180deg, transparent, rgb(5 14 22 / .88)); display: grid; }
.shot-cap b { font: 600 1rem var(--serif); color: #fff; }
.shot-cap small { color: #c9d6de; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot a:hover img { transform: none; } }

dialog#lightbox { border: 0; padding: 0; background: transparent; width: min(96vw, 1400px); max-width: none; max-height: 96vh; color: #fff; overflow: visible; }
dialog#lightbox::backdrop { background: rgb(4 10 16 / .92); }
dialog#lightbox figure { margin: 0; display: grid; gap: 10px; }
#lb-img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; background: #000; }
dialog#lightbox figcaption { display: grid; gap: 2px; padding: 0 4px; }
#lb-title { font: 600 1.15rem var(--serif); }
#lb-cap { color: #b5c4cd; font-size: .92rem; }
.lb-btn { position: absolute; border: 0; background: rgb(10 28 42 / .75); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: #f0b44c; color: #0a1c2a; }
.lb-prev { left: 8px; top: 40%; } .lb-next { right: 8px; top: 40%; } .lb-close { right: 8px; top: 8px; }

/* ---------- timeline ---------- */
.timeline { padding: 84px 0 40px; }
.log { list-style: none; padding: 0 0 0 26px; margin: 34px 0 0; border-left: 2px solid var(--line); display: grid; gap: 26px; max-width: 760px; }
.log li { position: relative; }
.log li::before { content: ""; position: absolute; left: -33px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 4px var(--bg); }
.log time { font: 600 .82rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--sea-ink); }
.log p { margin-top: 4px; }

/* ---------- about ---------- */
.about { padding: 56px 0 92px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: grid; gap: 2px; }
.facts b { font: 600 1.02rem var(--serif); }
.facts span { color: var(--muted); font-size: .95rem; }

/* ---------- footer / 404 ---------- */
.site-footer { background: var(--navy); color: #c9d6de; padding: 34px 0 44px; }
.site-footer strong { color: #fff; }
.site-footer .small { margin-top: 10px; font-size: .82rem; color: #8ea3b1; max-width: 90ch; }
.nf-body { padding: 120px 0; }
.nf-body h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
