/* ==========================================================
   Oviwo Architech v2 — "Survey sheet"
   The city presented the way architects and surveyors see it: a set of
   drawing sheets on drafting paper, with grid lines, corner ticks and a
   title block, one live site plan, and two cyanotype (blueprint) sheets.
   ========================================================== */
:root {
  /* Palette — drafting room materials */
  --paper: #F4F5F2;      /* drafting white */
  --paper-2: #E9EBE6;    /* tracing overlay, input wells */
  --ink: #1C2024;        /* graphite ink */
  --ink-2: #4A525A;      /* secondary text on paper (7.4:1) */
  --cyan: #1E4D8C;       /* cyanotype blue — full-bleed blueprint sheets */
  --cyan-tint: #D5E0EE;  /* water on the plan */
  --orange: #FF5B1F;     /* survey orange — markers, active states, primary CTA only */
  --rule: #CDD2D6;       /* table and cell rules — structure you read along */
  /* Background column grid: kept just above the paper, so the sheet still reads
     as drafting paper without the full-height lines striping the page. */
  --grid: rgba(28, 32, 36, .055);
  --grid-on-blue: rgba(255, 255, 255, .07);
  --white: #FFFFFF;

  /* Type — Manrope everywhere in English; Thai overrides below. */
  --f-sans: "Manrope", system-ui, sans-serif;
  --f-head: var(--f-sans);
  --f-body: var(--f-sans);

  --gutter: clamp(16px, 3.2vw, 48px);
  --cp: clamp(12px, 1.2vw, 18px);            /* inner padding off a grid line */
  --sheet-pad: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --dock-h: 52px;
}
/* Thai: IBM Plex Sans Thai for headings and display, Google Sans for body. */
:root:lang(th) {
  --f-head: "IBM Plex Sans Thai", "Google Sans", sans-serif;
  --f-body: "Google Sans", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px;
  background: var(--ink); color: var(--paper); transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { padding-inline: var(--gutter); max-width: 1760px; margin-inline: auto; }

/* ---------- Type system ----------
   Technical labels: small, caps, tracked. Display: a 200 and an 800 weight
   of the same face on alternate lines (signal-a), caps in English only. */
.label {
  font-family: var(--f-sans); font-size: 11px; line-height: 1.4; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
:root:lang(th) .label { font-size: 13px; letter-spacing: 0; font-weight: 500; }

h1, h2, h3, .disp, .cycle__word span, .menu__list span, .dcard__name { font-family: var(--f-head); }
.disp { font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; }
.disp .ln { display: block; overflow: hidden; padding-block: .04em; margin-block: -.04em; }
.disp .ln > span { display: inline-block; }
.disp .w2 { font-weight: 200; }
.disp .w8 { font-weight: 800; }
:root:lang(th) .disp { letter-spacing: 0; line-height: 1.18; }
/* Thai tone marks sit above the cap height: give the line masks room. */
:root:lang(th) .disp .ln { padding-block: .14em .1em; margin-block: -.12em -.08em; }
:root:lang(th) .disp .w2 { font-weight: 300; }
:root:lang(th) .disp .w8 { font-weight: 600; }

.h2 { font-size: clamp(34px, 5.4vw, 92px); }
:root:lang(th) .h2 { font-size: clamp(32px, 4.6vw, 78px); }

.sec-head { display: grid; gap: 22px; padding-inline: var(--cp); margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head--split { grid-template-columns: 1fr; align-items: end; }
.sec-head__sub { max-width: 34em; color: var(--ink-2); }
@media (min-width: 1024px) {
  .sec-head--split { grid-template-columns: 7fr 5fr; gap: 0 var(--cp); }
}

/* ---------- Sheets: grid lines, corner ticks, title block ----------
   .sgrid / .ticks are injected by main.js so the markup stays readable. */
.sheet { position: relative; padding-top: var(--sheet-pad); isolation: isolate; }
.sgrid {
  position: absolute; inset: 0 var(--gutter); z-index: -1; pointer-events: none;
  display: grid; grid-template-columns: repeat(12, 1fr);
  max-width: calc(1760px - 2 * var(--gutter)); margin-inline: auto;
}
.sgrid i { border-left: 1px solid var(--grid); transform-origin: top; }
.sgrid i:last-child { border-right: 1px solid var(--grid); }
.sheet--blue { background: var(--cyan); color: var(--white); }
.sheet--blue .sgrid i { border-color: var(--grid-on-blue); }
.sheet--blue .label { color: rgba(255, 255, 255, .78); }

.ticks { position: absolute; inset: 18px var(--gutter); pointer-events: none; z-index: -1; }
.ticks b { position: absolute; width: 16px; height: 16px; border: 0 solid var(--ink); }
.ticks b:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.ticks b:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.ticks b:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.ticks b:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.sheet--blue .ticks b { border-color: var(--white); }

.tblock {
  display: grid; grid-template-columns: 2fr 3fr 2fr 2fr 1.4fr;
  margin: clamp(80px, 10vw, 140px) var(--gutter) 0; border-top: 1px solid currentColor;
  max-width: calc(1760px - 2 * var(--gutter));
}
@media (min-width: 1808px) { .tblock { margin-inline: auto; } }
.tblock > div { padding: 12px var(--cp) 22px; border-left: 1px solid var(--rule); min-width: 0; }
.tblock > div:first-child { border-left: 0; }
.sheet--blue .tblock > div { border-color: rgba(255, 255, 255, .25); }
.tblock small { display: block; margin-bottom: 6px; }
.tblock b { font-family: var(--f-sans); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
:root:lang(th) .tblock b { font-family: var(--f-body); font-weight: 600; letter-spacing: 0; font-size: 14px; }
.tblock .tb-sheet b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

/* ---------- Top nav (signal-a style underlined columns) ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  font-family: var(--f-sans);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; letter-spacing: .12em; }
.brand b { font-weight: 800; }
.mark { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.mark circle { stroke: var(--orange); stroke-width: 3; }
.top__links { display: none; flex: 1; gap: 0; margin-left: 12px; }
.top__links a {
  flex: 1; display: grid; gap: 1px; padding: 6px 12px 7px 0; min-height: 44px; align-content: end;
  border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; margin-right: 14px;
  position: relative;
}
.top__links a small { font-size: 10px; letter-spacing: .14em; color: var(--ink-2); font-weight: 600; }
.top__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.top__links a:hover::after, .top__links a.is-active::after { transform: scaleX(1); }
:root:lang(th) .top__links a { font-family: var(--f-body); font-weight: 500; font-size: 14px; }
.top__end { display: none; align-items: center; gap: 10px; margin-left: auto; }

.lang { display: flex; gap: 2px; font-family: var(--f-sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 8px; background: none; border: 1px solid transparent;
  cursor: pointer; color: inherit; opacity: .62; transition: opacity .25s, border-color .25s;
}
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { opacity: 1; border-color: currentColor; }

.cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  background: var(--orange); color: var(--ink); font-family: var(--f-sans);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  transition: background .25s;
}
:root:lang(th) .cta { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; font-weight: 600; }
.cta:hover { background: #ff7a46; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px;
  background: none; border: 1px solid currentColor; cursor: pointer;
  font-family: var(--f-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
:root:lang(th) .menu-btn { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; font-weight: 500; }
.burger { position: relative; width: 18px; height: 8px; border-block: 1.5px solid currentColor; }

@media (min-width: 768px) { .top__end { display: flex; } }
@media (min-width: 1100px) {
  .top__links { display: flex; }
  .top__menu { display: none; }
}

/* ---------- Dock: the condensed nav ----------
   Tablet/desktop: top centre. Phones: bottom centre within thumb reach.
   main.js decides when it shows (one tween, 8px threshold). */
.dock {
  position: fixed; z-index: 45; left: 50%; top: 12px;
  display: flex; align-items: center; gap: 4px; padding: 4px;
  background: rgba(28, 32, 36, .92); color: var(--paper);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(28, 32, 36, .18);
  transform: translateX(-50%); visibility: hidden;
  width: max-content; max-width: calc(100vw - 24px); white-space: nowrap;
}
.dock__mark { display: grid; place-items: center; width: 44px; height: 44px; }
.dock__mark .mark { width: 22px; height: 22px; }
.dock__menu { border: 0; gap: 10px; padding: 0 12px; min-width: 0; }
.dock__sheet { color: var(--orange); font-weight: 800; letter-spacing: .08em; font-family: var(--f-sans); font-variant-numeric: tabular-nums; }
.dock__name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock .lang button { opacity: .7; }
.dock .lang button[aria-pressed="true"] { opacity: 1; }
.cta--dock { padding: 0 14px; }

@media (max-width: 767.98px) {
  .dock {
    top: auto; bottom: calc(10px + env(safe-area-inset-bottom));
    width: min(calc(100% - 20px), 440px); justify-content: space-between;
  }
  .dock__name { max-width: 9ch; }
  .cta--dock i { display: none; }
  .top { padding-block: 10px; }
  /* leave room so the footer is not hidden behind the bottom dock */
  .footer { padding-bottom: calc(var(--dock-h) + 40px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .dock__name { display: none; }
  .cta--dock { padding: 0 10px; }
}

/* ---------- Menu: the drawing list ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__sheet {
  min-height: 100%; display: flex; flex-direction: column; gap: 28px;
  padding: 18px var(--gutter) calc(110px + env(safe-area-inset-bottom));
  background:
    linear-gradient(var(--grid), var(--grid)) left var(--gutter) top 0 / 1px 100% no-repeat,
    linear-gradient(var(--grid), var(--grid)) right var(--gutter) top 0 / 1px 100% no-repeat;
}
.menu__head { display: flex; justify-content: space-between; align-items: center; padding-left: var(--cp); }
.menu__close {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  font-family: var(--f-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
:root:lang(th) .menu__close { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; }
.menu__list { border-top: 1px solid var(--ink); }
.menu__list a {
  display: grid; grid-template-columns: 4.2em 1fr auto; align-items: baseline; gap: 12px;
  padding: clamp(10px, 1.6vh, 18px) var(--cp); border-bottom: 1px solid var(--rule);
  font-size: clamp(26px, 4.4vw, 60px); line-height: 1.15;
}
.menu__list small { font-family: var(--f-sans); font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--ink-2); }
.menu__list span { font-weight: 200; transition: font-weight .35s; text-transform: uppercase; letter-spacing: -.02em; }
:root:lang(th) .menu__list span { font-weight: 300; letter-spacing: 0; }
.menu__list em { font-style: normal; font-size: .6em; opacity: 0; transform: translateX(-10px); transition: .35s var(--ease); }
.menu__list a:hover span, .menu__list a.is-active span { font-weight: 800; }
:root:lang(th) .menu__list a:hover span, :root:lang(th) .menu__list a.is-active span { font-weight: 600; }
.menu__list a:hover em, .menu__list a.is-active em { opacity: 1; transform: none; }
.menu__list a.is-active small { color: var(--orange); }
.menu__foot { display: grid; gap: 18px; padding-inline: var(--cp); color: var(--ink-2); font-size: 14px; margin-top: auto; }
@media (min-width: 768px) { .menu__foot { grid-template-columns: 1fr 1fr auto; align-items: end; } }

/* ---------- Crosshair (fine pointers) ---------- */
.xhair { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; display: none; }
.has-xhair .xhair { display: block; }
.xhair__h, .xhair__v { position: absolute; background: rgba(30, 77, 140, .28); }
.xhair__h { left: 0; right: 0; top: 0; height: 1px; }
.xhair__v { top: 0; bottom: 0; left: 0; width: 1px; }
.xhair__read {
  position: absolute; left: 0; top: 0; padding: 4px 7px; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  font-family: "Manrope", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.xhair.is-hot .xhair__read { background: var(--orange); color: var(--ink); }
@media (pointer: fine) { .has-xhair .plan__draw, .has-xhair .sheet--blue { cursor: crosshair; } }

/* =========================================================
   ATLAS — hero, manifesto and districts beside the sticky plan
   ========================================================= */
.atlas { padding-top: 0; }
.hero {
  position: relative; container-type: inline-size;
  min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 26px;
  padding: 96px var(--gutter) 40px;
}
.hero__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: auto; padding-inline: var(--cp); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; }
.hero__title { font-size: 17cqi; padding-inline: var(--cp); }
:root:lang(th) .hero__title { font-size: 21cqi; }
.hero__lead { max-width: 30em; padding-inline: var(--cp); font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); }
.hero__data { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.hero__data > div { padding: 10px var(--cp) 0; border-left: 1px solid var(--rule); }
.hero__data > div:first-child { border-left: 0; }
.hero__data dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); font-family: var(--f-sans); }
:root:lang(th) .hero__data dt { font-size: 13px; letter-spacing: 0; }
.hero__data dd { font-family: var(--f-head); font-size: clamp(24px, 2.6vw, 40px); font-weight: 200; letter-spacing: -.02em; }
:root:lang(th) .hero__data dd { font-weight: 300; letter-spacing: 0; }
.hero__scroll { display: flex; align-items: center; gap: 12px; padding-inline: var(--cp); }
.hero__scroll i { width: 40px; height: 1px; background: var(--ink); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: scan-x 2.4s var(--ease) infinite; }
@keyframes scan-x { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ----- the plan ----- */
.plan { position: relative; padding: 0 var(--gutter); }
.plan__frame {
  display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--paper);
  position: relative;
}
.plan__head { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--ink); }
.plan__coords { font-variant-numeric: tabular-nums; color: var(--ink); }
.plan__draw { position: relative; padding: clamp(8px, 1.4vw, 18px); }
.plan__canvas { position: relative; width: 100%; aspect-ratio: 8 / 9; margin-inline: auto; }
.plan__svg { width: 100%; height: 100%; overflow: visible; }
.plan__foot { display: grid; grid-template-columns: auto 1fr 1.3fr; border-top: 1px solid var(--ink); }
.plan__foot > span { padding: 8px 12px 10px; border-left: 1px solid var(--rule); min-width: 0; }
.plan__foot > span:first-child { border-left: 0; }
.plan__foot small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); font-family: var(--f-sans); }
:root:lang(th) .plan__foot small { font-size: 12px; letter-spacing: 0; }
.plan__foot b { font-size: 13px; font-weight: 700; font-family: var(--f-sans); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:lang(th) .plan__foot b { font-family: var(--f-body); font-weight: 600; }
.plan__active.is-on b { color: var(--ink); }
.plan__active.is-on { background: var(--orange); }
.plan__active.is-on small { color: var(--ink); }
.plan__hint { padding: 10px 2px 0; }

/* plan linework — vector-effect keeps hairlines crisp at every size */
.plan__svg * { vector-effect: non-scaling-stroke; }
.p-grid { stroke: var(--rule); stroke-width: 1; fill: none; }
.p-bound { stroke: var(--ink); stroke-width: 2; fill: none; stroke-dasharray: 14 5 2 5; }
.p-bound-fill { fill: #fff; opacity: .55; }
.p-water { fill: url(#p-hatch-w); }
.p-shore { stroke: var(--cyan); stroke-width: 1.4; fill: none; }
.p-canal { stroke: var(--cyan-tint); stroke-width: 16; fill: none; stroke-linecap: round; }
.p-canal-c { stroke: var(--cyan); stroke-width: 1; fill: none; stroke-dasharray: 6 5; }
.p-road-o { stroke: var(--ink); stroke-width: 13; fill: none; stroke-linecap: butt; }
.p-road-i { stroke: var(--paper); stroke-width: 10.6; fill: none; stroke-linecap: butt; }
.p-park { fill: none; stroke: #3d6b4f; stroke-width: 1.4; }
.p-park-fill { fill: url(#p-hatch-park); }
.p-tree { fill: none; stroke: #3d6b4f; stroke-width: 1; }
.p-d { fill: url(#p-hatch); stroke: var(--ink); stroke-width: 1.4; cursor: pointer; transition: fill .4s; }
.p-d-fill { fill: var(--orange); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.p-d-fill.is-on { opacity: .9; }
.p-blk { fill: var(--paper); stroke: var(--ink); stroke-width: 1; pointer-events: none; }
.p-dim { stroke: var(--ink); stroke-width: 1; fill: none; }
.p-north { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.p-north-fill { fill: var(--ink); }
.p-legend { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.p-scale-a { fill: var(--ink); }
.p-scale-b { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.p-d:hover { fill: url(#p-hatch-hot); }

.plan__labels { position: absolute; inset: 0; pointer-events: none; }
.pchip, .ptag { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.pchip {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 3px 8px 3px 3px; background: var(--paper); border: 1px solid var(--ink);
  font-family: var(--f-sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; transition: background .3s, color .3s;
}
.pchip b { display: grid; place-items: center; min-width: 24px; height: 22px; background: var(--ink); color: var(--paper); font-size: 10px; }
.pchip.is-on, .pchip:hover { background: var(--ink); color: var(--paper); }
.pchip.is-on b, .pchip:hover b { background: var(--orange); color: var(--ink); }
.ptag {
  font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); text-align: center; line-height: 1.35; white-space: nowrap;
}
:root:lang(th) .ptag { font-family: var(--f-body); font-size: 11px; letter-spacing: 0; font-weight: 500; }
.ptag--park { color: #2f5a40; background: rgba(227, 235, 224, .9); padding: 2px 6px; }
.ptag--canal, .ptag--river { color: var(--cyan); background: var(--paper); padding: 1px 6px; }
.ptag--canal { transform: translate(-50%, -50%) rotate(-74deg); }
.ptag--scale { transform: none; text-align: left; font-variant-numeric: tabular-nums; color: var(--ink); }

/* ----- manifesto ----- */
.manifesto { padding: clamp(80px, 12vh, 140px) var(--gutter); display: grid; gap: 28px; }
.manifesto > * { padding-inline: var(--cp); }
.manifesto__text {
  font-family: var(--f-head); font-size: clamp(24px, 2.5vw, 40px); line-height: 1.24; font-weight: 300; letter-spacing: -.015em;
}
:root:lang(th) .manifesto__text { letter-spacing: 0; line-height: 1.5; font-size: clamp(22px, 2.2vw, 34px); }
.manifesto__text .wd { opacity: .18; }
.manifesto__note { color: var(--ink-2); max-width: 32em; border-left: 3px solid var(--orange); padding-left: 14px; margin-left: var(--cp); }

/* ----- districts ----- */
.districts { padding: 40px var(--gutter) 0; }
.dcard { padding: 0 var(--cp); margin-bottom: clamp(72px, 14vh, 160px); scroll-margin-top: 80px; }
.dcard__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 14px;
  border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 14px;
}
.dcard__no { font-family: "Manrope", sans-serif; font-size: clamp(56px, 6vw, 96px); font-weight: 200; line-height: .8; letter-spacing: -.04em; }
.dcard__key { display: flex; align-items: flex-end; gap: 8px; justify-self: end; }
.keyplan { width: 44px; height: auto; }
.keyplan * { vector-effect: non-scaling-stroke; }
.dcard__key small, .dcard__sheet { font-family: var(--f-sans); font-size: 10px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: var(--ink-2); }
:root:lang(th) .dcard__key small { font-family: var(--f-body); letter-spacing: 0; font-size: 12px; font-weight: 500; }
.dcard__sheet { color: var(--ink); }
.dcard__media { aspect-ratio: 16 / 10; background: var(--paper-2); }
.dcard__media--tall { aspect-ratio: 4 / 5; }
.dcard__name { font-size: clamp(28px, 3vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 22px 0 12px; text-transform: uppercase; }
:root:lang(th) .dcard__name { font-family: "Manrope", sans-serif; }
.dcard__body { color: var(--ink-2); max-width: 32em; }
.spec { margin-top: 18px; border-top: 1px solid var(--rule); counter-reset: spec; }
.spec li {
  counter-increment: spec; display: flex; gap: 14px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--rule); font-weight: 600;
}
.spec li::before { content: counter(spec, decimal-leading-zero); font-family: "Manrope", sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--orange); min-width: 2em; }
.textlink {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin: 0 var(--cp);
  border-bottom: 1px solid var(--ink); font-weight: 700; font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .1em; font-size: 12px;
}
:root:lang(th) .textlink { font-family: var(--f-body); letter-spacing: 0; font-size: 15px; text-transform: none; }
.textlink i { transition: transform .35s var(--ease); }
.textlink:hover i { transform: translateX(6px); }

/* Desktop atlas: copy in columns 1–5, the plan sticky in columns 6–12. */
@media (min-width: 1024px) {
  .atlas { display: grid; grid-template-columns: repeat(12, 1fr); padding-inline: var(--gutter); }
  .atlas > .hero, .atlas > .manifesto, .atlas > .districts { grid-column: 1 / 6; padding-inline: 0; }
  .hero { grid-row: 1; min-height: 100svh; padding-top: 110px; }
  .manifesto { grid-row: 2; }
  .districts { grid-row: 3; }
  .atlas > .tblock { grid-column: 1 / -1; grid-row: 4; margin-inline: 0; }
  .plan {
    grid-column: 6 / 13; grid-row: 1 / span 3; align-self: start;
    position: sticky; top: 0; height: 100svh; padding: 84px 0 20px var(--cp);
    display: flex; flex-direction: column;
  }
  .plan__frame { flex: 1; min-height: 0; }
  .plan__draw { flex: 1; min-height: 0; container-type: size; }
  .plan__canvas { width: min(100cqw, 100cqh * 8 / 9); height: auto; }
  .hero__title { font-size: 18.5cqi; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .plan { padding-top: 72px; }
  .hero__title { font-size: 16cqi; }
}

/* =========================================================
   VISION — cyanotype sheet
   ========================================================= */
.vision { padding-bottom: 0; }
.vision__grid { display: grid; gap: 56px; }
.vision__copy { display: grid; gap: 24px; align-content: start; padding-inline: var(--cp); }
.vision__sub { max-width: 30em; color: rgba(255, 255, 255, .86); font-size: clamp(16px, 1.2vw, 19px); }
.vision__fig { position: relative; aspect-ratio: 160 / 120; margin-inline: var(--cp); }
.vision__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vl { fill: none; stroke: #fff; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.vl--thin { stroke-width: 1; opacity: .7; }
/* photo sits between the drawn columns (x 14→146) and roof/floor (y 26→108) */
.vision__photo.scan { position: absolute; left: 8.75%; right: 8.75%; top: 21.7%; bottom: 10%; }
.vdim { position: absolute; right: -2px; top: 21.7%; bottom: 10%; width: 0; }
.vdim__line { position: absolute; inset: 0 auto 0 0; width: 1px; background: #fff; transform-origin: bottom; }
.vdim__line::before, .vdim__line::after { content: ""; position: absolute; left: -7px; width: 15px; height: 1px; background: #fff; transform: rotate(-45deg); }
.vdim__line::before { top: 0; } .vdim__line::after { bottom: 0; }
.vdim__val {
  position: absolute; top: 50%; left: 12px; transform: translateY(-50%);
  font-family: "Manrope", sans-serif; font-size: clamp(28px, 3.4vw, 56px); font-weight: 200; white-space: nowrap; line-height: 1;
}
.vdim__val b { font-weight: 800; font-variant-numeric: tabular-nums; }
.vdim small { position: absolute; top: calc(50% + clamp(22px, 2.4vw, 38px)); left: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, .8); }
.lvl { position: absolute; left: 0; display: flex; gap: 8px; align-items: baseline; font-family: "Manrope", sans-serif; font-size: 11px; letter-spacing: .1em; }
.lvl b { font-weight: 800; }
.lvl small { text-transform: uppercase; color: rgba(255, 255, 255, .8); font-size: 10px; }
:root:lang(th) .lvl small, :root:lang(th) .vdim small { font-family: var(--f-body); letter-spacing: 0; font-size: 12px; text-transform: none; }
.lvl--top { top: calc(21.7% - 22px); left: 9%; }
.lvl--bot { top: calc(90% + 8px); left: 9%; }
@media (max-width: 767.98px) {
  .vision__fig { margin-right: 76px; }
  .vdim__val { font-size: 26px; }
  .vdim small { white-space: normal; width: 64px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .vision__fig { margin-right: 130px; }
}
@media (min-width: 1024px) {
  .vision__grid { grid-template-columns: repeat(12, 1fr); gap: 0; align-items: center; }
  .vision__copy { grid-column: 1 / 5; }
  .vision__fig { grid-column: 5 / 12; margin-left: calc(var(--cp) * 3); }
}

/* =========================================================
   SUSTAINABILITY — data cells
   ========================================================= */
.cells { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.cell { padding: 12px var(--cp) 28px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cell:nth-child(odd) { border-left: 0; }
.cell__num { font-family: "Manrope", sans-serif; font-size: clamp(44px, 12.6vw, 132px); line-height: .9; font-weight: 200; letter-spacing: -.05em; margin-top: clamp(28px, 6vw, 90px); font-variant-numeric: tabular-nums; }
.cell__num span { font-weight: 800; font-size: .45em; letter-spacing: 0; vertical-align: .9em; margin-left: .06em; }
.cell__d { color: var(--ink-2); font-size: 14px; max-width: 18em; }
.dimh { position: relative; height: 26px; margin-top: 4px; }
.dimh::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 1px dashed var(--rule); }
.dimh i { position: absolute; left: 0; top: 6px; height: 1px; width: calc(var(--v) * 100%); background: var(--ink); transform-origin: left; }
.dimh i::before, .dimh i::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--ink); }
.dimh i::before { left: 0; } .dimh i::after { right: 0; background: var(--orange); width: 2px; }
.dimh small { position: absolute; left: 0; top: 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
:root:lang(th) .dimh small { letter-spacing: 0; font-size: 11px; }
@media (min-width: 1024px) {
  .cells { grid-template-columns: repeat(4, 1fr); }
  .cell:nth-child(odd) { border-left: 1px solid var(--rule); }
  .cell:first-child { border-left: 0; }
  .cell__num { font-size: min(7.6vw, 132px); }
}
.sustain__row { display: grid; gap: 40px; margin-top: clamp(56px, 8vw, 110px); }
.sustain__fig { padding-inline: var(--cp); }
.sustain__fig .scan { aspect-ratio: 4 / 3; }
.sustain__fig figcaption { margin-top: 10px; }
.notes { padding-inline: var(--cp); }
.notes__list { counter-reset: n; margin-top: 16px; border-top: 1px solid var(--ink); }
.notes__list li {
  counter-increment: n; display: grid; grid-template-columns: 3em 1fr; padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--f-head); font-size: clamp(20px, 2vw, 30px); font-weight: 300; line-height: 1.2;
}
.notes__list li::before { content: counter(n) "."; font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 800; color: var(--orange); padding-top: .5em; }
@media (min-width: 1024px) {
  .sustain__row { grid-template-columns: repeat(12, 1fr); gap: 0; align-items: start; }
  .sustain__fig { grid-column: 1 / 6; }
  .notes { grid-column: 7 / 13; }
}

/* =========================================================
   SUN STUDY — pinned timelapse with a drawn sun path
   ========================================================= */
.cycle { position: relative; background: var(--ink); color: var(--white); }
.cycle__pin { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.cycle__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cycle__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 32, 36, .55), rgba(28, 32, 36, .1) 40%, rgba(28, 32, 36, .78)); }
.cycle__head { position: absolute; top: clamp(80px, 12vh, 120px); left: var(--gutter); right: var(--gutter); padding-inline: var(--cp); display: grid; gap: 8px; }
.cycle .label { color: rgba(255, 255, 255, .82); }
.cycle__title { font-size: clamp(22px, 2.4vw, 36px); font-weight: 200; letter-spacing: -.01em; text-transform: uppercase; }
:root:lang(th) .cycle__title { font-weight: 300; text-transform: none; letter-spacing: 0; }
.sunpath { position: absolute; left: 50%; top: 22%; width: min(92vw, 1100px); transform: translateX(-50%); overflow: visible; }
.sunpath * { vector-effect: non-scaling-stroke; }
.sp-horizon { stroke: rgba(255, 255, 255, .6); stroke-width: 1; fill: none; }
.sp-arc { stroke: #fff; stroke-width: 1.2; fill: none; stroke-dasharray: 2 6; }
.sp-ticks { stroke: #fff; stroke-width: 1; }
.sp-sun { fill: var(--orange); }
.cycle__words { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(84px, 14vh, 130px); padding-inline: var(--cp); }
.cycle__word { position: absolute; left: var(--cp); bottom: 0; display: grid; gap: 4px; }
.cycle__word small { font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--orange); }
.cycle__word span { font-size: clamp(56px, 11vw, 180px); font-weight: 800; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
:root:lang(th) .cycle__word span { font-weight: 600; letter-spacing: 0; line-height: 1.2; font-size: clamp(52px, 9vw, 150px); }
.cycle__word em { font-style: normal; font-size: clamp(15px, 1.3vw, 19px); color: rgba(255, 255, 255, .9); max-width: 26em; }
.cycle__clock {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 30px;
  display: flex; justify-content: space-between; align-items: flex-end; padding-inline: var(--cp);
  border-top: 1px solid rgba(255, 255, 255, .4);
  font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em;
}
.cycle__clock i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; }
@media (max-width: 767.98px) {
  .sunpath { top: 26%; }
  .cycle__words { bottom: calc(128px + env(safe-area-inset-bottom)); }
  .cycle__clock { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   LIFESTYLE — photo log
   ========================================================= */
.log { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
.fig { padding-inline: var(--cp); min-width: 0; }
.fig .scan { aspect-ratio: 4 / 3; }
.fig figcaption { display: flex; gap: 12px; align-items: baseline; padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--ink); font-size: 14px; font-weight: 600; }
.fig figcaption small { font-family: "Manrope", sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--ink-2); }
.f1, .f2, .f5 { grid-column: 1 / -1; }
.f1 .scan { aspect-ratio: 4 / 5; }
.f5 .scan { aspect-ratio: 4 / 5; }
@media (min-width: 768px) {
  .log { grid-template-columns: repeat(12, 1fr); gap: 48px 0; align-items: start; }
  .f1 { grid-column: 1 / 6; grid-row: 1 / 3; } .f1 .scan { aspect-ratio: 3 / 4; }
  .f2 { grid-column: 7 / 13; grid-row: 1; } .f2 .scan { aspect-ratio: 3 / 2; }
  .f3 { grid-column: 7 / 10; grid-row: 2; } .f3 .scan { aspect-ratio: 4 / 3; }
  .f4 { grid-column: 10 / 13; grid-row: 2; } .f4 .scan { aspect-ratio: 4 / 3; }
  .f5 { grid-column: 3 / 13; grid-row: 3; } .f5 .scan { aspect-ratio: 12 / 5; }
  .f5 img { object-position: 50% 30%; }
}

/* ---------- Scan-line photo reveal (main.js adds .scan__line) ---------- */
.scan { position: relative; overflow: hidden; background: var(--paper-2); }
.sheet--blue .scan { background: rgba(255, 255, 255, .08); }
.scan img { width: 100%; height: 100%; object-fit: cover; }
.scan__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--orange); box-shadow: 0 0 12px rgba(255, 91, 31, .7); opacity: 0; pointer-events: none; }

/* =========================================================
   MASTERPLAN — construction schedule
   ========================================================= */
.sched { position: relative; --t: -1; }
.sched__axis {
  display: flex; justify-content: space-between; margin-left: var(--track-l, 0);
  padding: 0 0 10px; border-bottom: 1px solid var(--ink);
  font-family: "Manrope", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2);
}
.sched__axis i { font-style: normal; }
.sched__axis span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.sched__axis span:first-child { justify-content: flex-start; }
.sched__axis span:last-child { justify-content: flex-end; }
.srow { display: grid; gap: 14px; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.srow__txt { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; padding-inline: var(--cp); }
.srow__yr { grid-row: span 2; font-family: "Manrope", sans-serif; font-size: clamp(28px, 3vw, 44px); font-weight: 200; line-height: 1; letter-spacing: -.03em; }
.srow h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
:root:lang(th) .srow h3 { font-weight: 600; letter-spacing: 0; }
.srow p { color: var(--ink-2); font-size: 15px; }
.srow__track {
  position: relative; height: 34px; align-self: center;
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px calc(100% / 8));
  border-right: 1px solid var(--rule);
}
.srow__bar {
  position: absolute; top: 8px; bottom: 8px; left: calc(var(--s) / 8 * 100%); width: calc(var(--l) / 8 * 100%);
  border: 1.5px solid var(--ink); transform-origin: left;
  background:
    linear-gradient(90deg, var(--ink) 0 calc(var(--done, 0) * 100%), transparent 0),
    repeating-linear-gradient(-45deg, transparent 0 5px, rgba(28, 32, 36, .35) 5px 6px);
}
.sched__today { position: absolute; top: 0; bottom: 0; left: calc(var(--track-l, 0px) + (100% - var(--track-l, 0px)) * var(--t) / 8); width: 0; pointer-events: none; }
.sched__today::before { content: ""; position: absolute; top: 24px; bottom: 0; left: 0; border-left: 2px solid var(--orange); }
.sched__today span {
  position: absolute; top: -22px; left: 0; transform: translateX(-50%); padding: 2px 6px; background: var(--orange); color: var(--ink);
  font-family: var(--f-sans); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
:root:lang(th) .sched__today span { font-family: var(--f-body); letter-spacing: 0; font-size: 12px; }
.sched__note { margin-top: 18px; padding-inline: var(--cp); }
@media (min-width: 900px) {
  .sched { --track-l: 41.6667%; }
  .srow { grid-template-columns: 5fr 7fr; gap: 0; }
  .sched__axis { margin-left: var(--track-l); }
}

/* =========================================================
   CONTACT — cyanotype registration sheet
   ========================================================= */
.contact { padding-bottom: 0; }
.contact__grid { display: grid; gap: 56px; }
.contact__copy { display: grid; gap: 24px; align-content: start; padding-inline: var(--cp); }
.contact__title { font-size: clamp(44px, 8vw, 132px); }
:root:lang(th) .contact__title { font-size: clamp(40px, 6.6vw, 110px); }
.contact__lead { max-width: 28em; color: rgba(255, 255, 255, .88); font-size: clamp(16px, 1.25vw, 19px); }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .5); margin-top: 12px; }
.contact__info > div { padding: 12px 12px 0 0; }
.contact__info > div + div { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); }
.contact__info dd { margin-top: 8px; font-size: 15px; }
.contact__info a { border-bottom: 1px solid rgba(255, 255, 255, .45); }
.form { display: grid; gap: 4px; padding: clamp(18px, 2vw, 28px); margin-inline: var(--cp); border: 1px solid rgba(255, 255, 255, .55); background: rgba(10, 30, 60, .16); align-self: start; }
.form__legend { margin-bottom: 8px; }
.field { display: grid; gap: 2px; padding: 10px 0 6px; }
.field span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(255, 255, 255, .82); font-family: var(--f-sans); }
:root:lang(th) .field span { font-family: var(--f-body); letter-spacing: 0; font-size: 14px; font-weight: 500; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 6px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .7); border-radius: 0;
  background: transparent; color: #fff; font: inherit; font-size: 17px; appearance: none; -webkit-appearance: none;
}
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat;
  padding-right: 24px; cursor: pointer;
}
.field option { color: var(--ink); background: #fff; }
.field input:focus, .field select:focus { outline: none; border-bottom: 2px solid var(--orange); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.btn {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px;
  min-height: 56px; padding: 0 20px; border: 0; cursor: pointer;
  background: var(--orange); color: var(--ink);
  font-family: var(--f-sans); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s;
}
:root:lang(th) .btn { font-family: var(--f-body); letter-spacing: 0; font-size: 16px; font-weight: 600; }
.btn:hover { background: #ff7a46; }
.btn i { font-style: normal; font-size: 18px; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(6px); }
.form__ok { min-height: 1.6em; margin-top: 10px; font-weight: 600; }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(12, 1fr); gap: 0; }
  .contact__copy { grid-column: 1 / 7; }
  .form { grid-column: 8 / 13; margin-top: 40px; }
}

/* =========================================================
   FOOTER — graphite, with a name marquee in alternating weights
   ========================================================= */
.footer { background: var(--ink); color: var(--paper); padding-top: 72px; overflow: hidden; }
.footer .label { color: rgba(244, 245, 242, .7); margin-bottom: 10px; }
.footer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; font-size: 15px; }
.footer__row > div { padding-inline: var(--cp); }
.footer a:not(.totop) { border-bottom: 1px solid rgba(244, 245, 242, .35); }
.totop { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
@media (min-width: 900px) { .footer__row { grid-template-columns: 2fr 2fr 2fr 1fr; } }
.marquee { margin-top: 64px; border-block: 1px solid rgba(244, 245, 242, .2); padding: 10px 0; }
.marquee__track { display: flex; width: max-content; }
.marquee__track span {
  font-family: "Manrope", sans-serif; font-size: clamp(64px, 13vw, 220px); line-height: 1; letter-spacing: -.04em;
  text-transform: uppercase; padding-right: .3em; white-space: nowrap;
}
.marquee .m2 { font-weight: 200; }
.marquee .m8 { font-weight: 800; }
.marquee .mo { font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(244, 245, 242, .7); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px 28px; font-size: 13px; color: rgba(244, 245, 242, .72); }
.footer__legal span { padding-inline: var(--cp); }

/* =========================================================
   Phones — smaller display type, 4-column grid
   ========================================================= */
@media (max-width: 767.98px) {
  .sgrid { grid-template-columns: repeat(4, 1fr); }
  .sgrid i:nth-child(n + 5) { display: none; }
  .sgrid i:nth-child(4) { border-right: 1px solid var(--grid); }
  .sheet--blue .sgrid i:nth-child(4) { border-right-color: var(--grid-on-blue); }
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div:nth-child(odd) { border-left: 0; }
  .tblock > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--rule); }
  .tblock > div:nth-child(2) { border-left: 0; }
  .tblock > div:nth-child(3) { border-left: 1px solid var(--rule); }
  .tblock > div:nth-child(4) { border-left: 0; }
  .tblock > div:nth-child(5) { border-left: 1px solid var(--rule); }
  .tblock > div { border-bottom: 1px solid var(--rule); }
  .sheet--blue .tblock > div { border-color: rgba(255, 255, 255, .25); }
  .hero { min-height: 84svh; padding-top: 84px; }
  .plan__foot { grid-template-columns: auto 1fr; }
  .plan__foot > span:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
  .pchip { font-size: 9px; gap: 4px; min-height: 24px; padding: 2px 6px 2px 2px; }
  .pchip b { min-width: 20px; height: 18px; font-size: 9px; }
  .pchip span { display: none; }
  .ptag { font-size: 8px; letter-spacing: .08em; }
  :root:lang(th) .ptag { font-size: 10px; }
  .contact__info { grid-template-columns: 1fr; }
  .sched__axis .yy { display: none; }
  .sched__axis span::before { content: "’"; }
  .contact__info > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 12px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .sgrid { grid-template-columns: repeat(8, 1fr); }
  .sgrid i:nth-child(n + 9) { display: none; }
  .sgrid i:nth-child(8) { border-right: 1px solid var(--grid); }
  .sheet--blue .sgrid i:nth-child(8) { border-right-color: var(--grid-on-blue); }
  .plan { max-width: 760px; margin-inline: auto; }
  .districts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0; align-items: start; }
  .districts .sec-head, .districts .textlink { grid-column: 1 / -1; }
  .districts .textlink { justify-self: start; }
  .dcard:nth-of-type(even) { margin-top: 18vh; }
}

/* =========================================================
   Reduced motion — everything static and visible
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .manifesto__text .wd { opacity: 1; }
  .cycle__pin { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .cycle__words { position: relative; left: auto; right: auto; bottom: auto; display: grid; gap: 28px; padding: 50svh var(--gutter) 90px; }
  .cycle__word { position: relative; left: auto; }
  .cycle__word span { font-size: clamp(40px, 6vw, 88px); }
  .cycle__clock, .sunpath { display: none; }
  .cycle__shade { background: rgba(28, 32, 36, .6); }
}
