/* ==========================================================
   Oviwo Architech — v3 "A day in the city"
   Scrolling the page is living one day in Oviwo. There is no page
   colour: a fixed sky behind the content moves from dawn to night,
   and a sun (later a moon) crosses it on an arc. Each section is a
   moment of that day and sets its own ink for contrast.
   ========================================================== */
:root {
  /* The day, as named colours. main.js tweens the sky variables below
     between these; the section tones further down pick from them too. */
  --dawn-lilac: #EBD9EC;
  --dawn-peach: #F7D9C4;
  --noon-sky: #CFE6F2;
  --dusk-amber: #E9A66B;
  --dusk-rose: #B5677A;
  --night-indigo: #141833;
  --window-light: #FFC978;

  /* Live sky (start at dawn so the page is right before any JS runs). */
  --sky-top: var(--dawn-lilac);
  --sky-bot: var(--dawn-peach);
  --glow: #FBCDB8;
  --sun: #FFF0DC;
  --halo: .75;
  --stars: 0;
  --deck: .5;
  /* Floating UI (nav pill, clock) — flips from dark to light ink at dusk. */
  --ui-ink: #2A2340;
  --ui-ink-inv: #FFF7F0;
  --ui-bg: rgba(255, 247, 242, .66);
  --ui-line: rgba(42, 35, 64, .14);

  /* English: Manrope throughout. Thai overrides below. */
  --f-sans: "Manrope", system-ui, sans-serif;
  --f-head: var(--f-sans);

  --gutter: clamp(20px, 5vw, 88px);
  --track: .4em;              /* the wide, airy display tracking */
  --ease: cubic-bezier(.7, 0, .2, 1);
}
/* Thai: IBM Plex Sans Thai for headings/display, Google Sans for body. */
:root:lang(th) {
  --f-sans: "Google Sans", "Manrope", system-ui, sans-serif;
  --f-head: "IBM Plex Sans Thai", "Google Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--sky-bot);
  color: var(--ui-ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
p, li, figcaption { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--window-light); color: var(--night-indigo); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px;
  background: var(--night-indigo); color: #fff; font-weight: 600;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ==========================================================
   Section tones — each moment fixes its own ink so text keeps
   ≥ 4.5:1 against the sky it is read on.
   ========================================================== */
.moment {
  --ink: #2A2340;
  --ink-soft: rgba(42, 35, 64, .78);
  --line: rgba(42, 35, 64, .18);
  --accent: #8A3A6A;
  position: relative;
  color: var(--ink);
}
.moment[data-tone="noon"]   { --ink: #12304A; --ink-soft: rgba(18, 48, 74, .8);  --line: rgba(18, 48, 74, .18); --accent: #1C5F86; }
.moment[data-tone="after"]  { --ink: #1D2C3C; --ink-soft: rgba(29, 44, 60, .8);  --line: rgba(29, 44, 60, .18); --accent: #8E4A12; }
.moment[data-tone="golden"] { --ink: #3A1C0D; --ink-soft: rgba(58, 28, 13, .84); --line: rgba(58, 28, 13, .2);  --accent: #6E2A0C; }
.moment[data-tone="dusk"]   { --ink: #FFF4EA; --ink-soft: rgba(255, 244, 234, .9); --line: rgba(255, 244, 234, .24); --accent: #FFD3A6; }
.moment[data-tone="night"]  { --ink: #F3EEE6; --ink-soft: rgba(243, 238, 230, .82); --line: rgba(243, 238, 230, .2); --accent: var(--window-light); }

/* ==========================================================
   Type
   ========================================================== */
/* Very wide-tracked light uppercase, quadplex "A B O V E  T H E  C L O U D S". */
.display {
  font-family: var(--f-head);
  font-weight: 200;
  font-size: clamp(26px, 4.3vw, 70px);
  line-height: 1.32;
  letter-spacing: var(--track);
  text-transform: uppercase;
}
.display .line { display: block; }
/* Thai has no case and must not be tracked: carry it on size and weight. */
:root:lang(th) .display {
  font-weight: 300;
  font-size: clamp(38px, 5.8vw, 92px);
  line-height: 1.28;
  letter-spacing: 0;
}
.sub {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(22px, 2.3vw, 38px);
  line-height: 1.3;
  margin-top: .6em;
}
.calm {
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 36em;
}

/* Moment tag: "07:30 —— MORNING · the canal path wakes up first" */
.tag {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(22px, 3vw, 40px);
}
.tag time { color: var(--ink); font-weight: 700; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.tag i { width: 36px; height: 1px; background: currentColor; opacity: .7; }
.tag em {
  flex-basis: 100%;
  font-style: normal; font-weight: 400; letter-spacing: .02em; text-transform: none;
  font-size: 15px; color: var(--ink-soft);
}
:root:lang(th) .tag { letter-spacing: .04em; font-size: 14px; }
:root:lang(th) .tag em { font-size: 15px; letter-spacing: 0; }
.sec-head--center { text-align: center; }
.sec-head--center .tag { justify-content: center; }
.sec-head--center .calm { margin: 28px auto 0; }
/* Centred tracked text carries trailing space after its last letter. */
.sec-head--center .display { padding-left: var(--track); }
:root:lang(th) .sec-head--center .display { padding-left: 0; }

section.moment { padding-block: clamp(110px, 17vh, 220px); }

/* ==========================================================
   Sky, stars, cloud deck
   ========================================================== */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 100%);
}
.sky__stars { position: absolute; inset: 0 0 35% 0; opacity: var(--stars); }
.sky__stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .8);
}
.sky__stars i.twinkle { animation: twinkle 3.6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.sky__deck {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36vh;
  opacity: var(--deck); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
}
.sky__deck img {
  width: 130%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 80%;
  animation: deck-drift 90s linear infinite alternate;
}
@keyframes deck-drift { to { transform: translateX(-23%); } }

/* ==========================================================
   Orbit: the sun → moon arc
   ========================================================== */
/* Behind the scrolling page (z 2), in front of the sky — except at dawn (.is-front). */
#smooth-wrapper { position: relative; z-index: 2; }
.orbit { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.orbit.is-front { z-index: 3; }
.orbit__svg { position: absolute; inset: 0; overflow: visible; }
.orbit__track { fill: none; stroke: var(--ui-ink); stroke-opacity: .16; stroke-width: 1; stroke-dasharray: 2 7; }
.orbit__done { fill: none; stroke: var(--ui-ink); stroke-opacity: .32; stroke-width: 1; }
.orbit__body { position: absolute; left: 0; top: 0; width: 64px; height: 64px; }
.orbit__halo {
  position: absolute; left: 50%; top: 50%; width: 560px; height: 560px;
  margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  opacity: var(--halo);
}
.orbit__disc { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 16px var(--sun)); }
.orbit__sun { fill: var(--sun); }
.orbit__moon { display: none; }
.orbit__time { display: none; }

/* ==========================================================
   Clock: thin progress line with the time (bottom-left)
   ========================================================== */
.clock {
  position: fixed; left: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--ui-bg); color: var(--ui-ink);
  border: 1px solid var(--ui-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
}
.clock__time { font-size: 13px; letter-spacing: .08em; font-weight: 700; font-variant-numeric: tabular-nums; }
.clock__line { width: 72px; height: 1px; background: var(--ui-line); position: relative; }
.clock__line i { position: absolute; inset: 0; background: var(--ui-ink); transform-origin: left; transform: scaleX(0); }
:root:lang(th) .clock { letter-spacing: .02em; font-size: 13px; }

/* ==========================================================
   Loader — a horizon line and a percentage
   ========================================================== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: linear-gradient(180deg, var(--dawn-lilac), var(--dawn-peach));
  color: #2A2340;
}
.loader__pct { font-weight: 200; font-size: 15px; letter-spacing: .3em; padding-left: .3em; font-variant-numeric: tabular-nums; }
.loader__line { position: fixed; left: 0; right: 0; top: 50%; height: 1px; background: rgba(42, 35, 64, .14); }
.loader__line i { position: absolute; inset: 0; background: #2A2340; transform: scaleX(0); }
.loader__meta {
  margin-top: 46px; font-size: 11px; letter-spacing: .4em; text-transform: uppercase; font-weight: 500;
  text-align: center; padding-inline: 20px;
}
:root:lang(th) .loader__meta { letter-spacing: .04em; font-size: 14px; }
.is-reduced .loader { display: none; }

/* ==========================================================
   Language switch (shared by top bar, pill and menu)
   ========================================================== */
.lang { display: flex; align-items: center; }
.lang button {
  min-width: 44px; height: 44px; padding: 0 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  opacity: .55; transition: opacity .3s;
}
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.lang button:hover { opacity: 1; }

.burger { position: relative; display: inline-block; width: 20px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { bottom: 0; }
.menu-open .burger i:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ==========================================================
   Top bar (inside the hero — the full nav at the top of the page)
   ========================================================== */
.topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: var(--ink);
}
.topbar__logo { display: inline-flex; align-items: baseline; gap: 12px; justify-self: start; min-height: 44px; align-items: center; }
.topbar__logo b { font-size: 14px; font-weight: 700; letter-spacing: .6em; }
.topbar__logo small { font-size: 11px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.topbar__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.topbar__links a {
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  padding-block: 12px; position: relative;
}
:root:lang(th) .topbar__links a { letter-spacing: .02em; font-size: 15px; font-weight: 500; }
.topbar__links a::after {
  content: ""; position: absolute; left: 0; right: .24em; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.topbar__links a:hover::after, .topbar__links a.is-active::after { transform: scaleX(1); }
.topbar__end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.topbar__cta, .pill__cta {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.topbar__cta { border: 1px solid var(--line); }
.topbar__cta:hover { background: var(--ink); color: var(--dawn-lilac); }
:root:lang(th) .topbar__cta, :root:lang(th) .pill__cta { letter-spacing: .02em; font-size: 14px; }
.topbar__menu { display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; border: 1px solid var(--line); }

/* ==========================================================
   Compact pill nav — floats after the hero, docks at the bottom on phones
   ========================================================== */
.pill {
  position: fixed; z-index: 60; top: 14px; left: 0; right: 0; margin-inline: auto;
  width: max-content; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px;
  background: var(--ui-bg); color: var(--ui-ink);
  border: 1px solid var(--ui-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 40px -18px rgba(20, 24, 51, .35);
  visibility: hidden; opacity: 0;
}
.pill__menu {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
:root:lang(th) .pill__menu { letter-spacing: .02em; font-size: 14px; }
.pill__menu:hover { background: var(--ui-line); }
.pill__logo {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px 0 calc(14px + .6em);
  font-size: 13px; font-weight: 700; letter-spacing: .6em;
  border-inline: 1px solid var(--ui-line);
}
.pill__cta { background: var(--ui-ink); color: var(--ui-ink-inv); }
.pill__cta i { font-style: normal; }

/* ==========================================================
   Menu — the day as a timetable; opens as a circle from the sun
   ========================================================== */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bot));
  color: var(--ui-ink);
  visibility: hidden;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu__inner {
  min-height: 100%;
  display: grid; grid-template-columns: 1fr minmax(240px, 340px); align-content: center; gap: 40px 6vw;
  padding: 96px var(--gutter) calc(110px + env(safe-area-inset-bottom));
}
.menu__close {
  position: absolute; top: 18px; right: var(--gutter); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--ui-line); font-size: 26px; font-weight: 200; line-height: 1;
}
.menu__label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
:root:lang(th) .menu__label { letter-spacing: .02em; font-size: 15px; }
.menu__list li { border-top: 1px solid var(--ui-line); }
.menu__list li:last-child { border-bottom: 1px solid var(--ui-line); }
.menu__list a { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 48px); padding: 14px 0; }
.menu__list time { flex: 0 0 auto; font-size: 13px; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; opacity: .7; }
.menu__list span {
  font-family: var(--f-head); font-weight: 200; text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 46px); letter-spacing: .3em; line-height: 1.2;
  transition: letter-spacing .6s var(--ease);
}
:root:lang(th) .menu__list span { font-weight: 300; letter-spacing: 0; font-size: clamp(26px, 3.6vw, 50px); line-height: 1.35; }
.menu__list a:hover span, .menu__list a[aria-current="true"] span { letter-spacing: .42em; }
:root:lang(th) .menu__list a:hover span, :root:lang(th) .menu__list a[aria-current="true"] span { letter-spacing: 0; font-weight: 500; }
.menu__list a[aria-current="true"] time { opacity: 1; }
.menu__side { display: grid; gap: 22px; align-content: end; font-size: 15px; line-height: 1.7; }
.menu__side .lang { margin-left: -6px; }

/* ==========================================================
   06:00 — Hero
   ========================================================== */
.hero { height: 100vh; height: 100svh; min-height: 560px; padding: 0 !important; overflow: hidden; }
.hero__media {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 22%, #000 50%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 22%, #000 50%);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(26, 20, 44, .55)); }
/* Misty dissolve: a sunrise cloud sea laid over the seam between sky and city. */
.hero__clouds {
  position: absolute; left: -10%; right: -10%; bottom: 26%; height: 34%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 55%, transparent 100%);
  opacity: .62; mix-blend-mode: screen;
}
.hero__clouds img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero__mist { position: absolute; inset: -6%; opacity: 0; pointer-events: none; }
.hero__mist img { width: 100%; height: 100%; object-fit: cover; max-width: none; }

.hero__copy {
  position: absolute; left: 0; right: 0; top: 19%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-inline: var(--gutter);
}
.hero__copy .tag { justify-content: center; margin-bottom: clamp(18px, 3vh, 34px); }
.hero__title { font-size: clamp(28px, 5.3vw, 88px); padding-left: var(--track); }
:root:lang(th) .hero__title { font-size: clamp(46px, 7.4vw, 116px); padding-left: 0; font-weight: 300; }
.hero__lead {
  margin-top: clamp(16px, 2.6vh, 28px); max-width: 30em; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink);
  /* a soft halo of dawn sky keeps it legible where it meets the misty city */
  text-shadow: 0 0 14px var(--dawn-peach), 0 0 28px var(--dawn-lilac);
}
@media (min-width: 768px) {
  /* Thai title on one line, so the lead stays in the sky above the city. */
  :root:lang(th) .hero__title .line { display: inline; }
}
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 0 var(--gutter) 28px calc(var(--gutter) + 230px);
  color: #FFF8F2; font-size: 14px; line-height: 1.5;
  text-shadow: 0 1px 12px rgba(20, 16, 40, .5);
}
.hero__note span:first-child { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; }
:root:lang(th) .hero__note span:first-child { letter-spacing: .02em; font-size: 13px; }
.hero__scroll { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
:root:lang(th) .hero__scroll { letter-spacing: .02em; font-size: 14px; }
.hero__scroll i { width: 1px; height: 46px; background: currentColor; transform-origin: top; animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ==========================================================
   Canopy photos — clipped by drifting rounded polygons (main.js)
   ========================================================== */
.canopy { position: relative; overflow: hidden; border-radius: 28px; }
.canopy.is-shaped { border-radius: 0; }
.canopy img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   07:30 — Manifesto
   ========================================================== */
.manifesto__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; align-items: center; }
.statement {
  font-family: var(--f-head); font-weight: 300;
  font-size: clamp(26px, 3.1vw, 52px); line-height: 1.3; letter-spacing: -.01em;
}
:root:lang(th) .statement { letter-spacing: 0; line-height: 1.5; font-size: clamp(26px, 3vw, 48px); }
.statement .w, .statement .ln { opacity: .16; }
.manifesto__note { margin-top: 40px; max-width: 30em; color: var(--ink-soft); font-size: 17px; }
.manifesto__media { position: relative; height: clamp(420px, 62vw, 720px); }
.manifesto__media .canopy { position: absolute; }
.m1 { left: 0; top: 0; width: 82%; aspect-ratio: 4 / 3; }
.m2 { right: 0; bottom: 0; width: 58%; aspect-ratio: 3 / 4; }

/* ==========================================================
   09:30 — Vision
   ========================================================== */
.vision__frame { margin-top: clamp(40px, 6vw, 80px); width: 100%; aspect-ratio: 16 / 8; }
.vision__sub { margin: clamp(32px, 4vw, 56px) 0 0 auto; max-width: 34em; }

/* ==========================================================
   12:00 — Districts
   ========================================================== */
.districts__body { display: grid; grid-template-columns: 5fr 6fr; gap: 6vw; margin-top: clamp(48px, 7vw, 100px); }
.districts__visual { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.districts__stack { width: 100%; aspect-ratio: 4 / 5; max-height: 74vh; }
.districts__stack img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.districts__stack img.is-on { opacity: 1; }
.districts__count { font-size: 13px; letter-spacing: .3em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.districts__count b { color: var(--ink); }
.district {
  min-height: 82vh; display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--line); padding-block: 48px;
}
.district__img { display: none; }
.district__no { font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--accent); }
.district h3 {
  margin: 18px 0 20px; font-weight: 200; text-transform: uppercase;
  font-size: clamp(26px, 2.8vw, 46px); letter-spacing: .22em; line-height: 1.2;
}
.district p { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.7; color: var(--ink-soft); max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.textlink {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 48px; min-height: 44px;
  font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
:root:lang(th) .textlink { letter-spacing: .02em; font-size: 16px; }
.textlink i { font-style: normal; transition: transform .5s var(--ease); }
.textlink:hover i { transform: translateX(6px); }

/* ==========================================================
   15:00 — Lifestyle
   ========================================================== */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px;
  margin-top: clamp(56px, 8vw, 120px);
}
.g figcaption { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
:root:lang(th) .g figcaption { letter-spacing: .02em; font-size: 15px; }
.g .canopy { width: 100%; }
.g1 { grid-column: 1 / 5; } .g1 .canopy { aspect-ratio: 3 / 4; }
.g2 { grid-column: 6 / 10; margin-top: 16vh; } .g2 .canopy { aspect-ratio: 4 / 3; }
.g3 { grid-column: 10 / 13; margin-top: -4vh; } .g3 .canopy { aspect-ratio: 3 / 4; }
.g4 { grid-column: 2 / 6; } .g4 .canopy { aspect-ratio: 4 / 3; }
.g5 { grid-column: 8 / 12; margin-top: -10vh; } .g5 .canopy { aspect-ratio: 4 / 5; }

/* ==========================================================
   17:30 — Sustainability
   ========================================================== */
.sustain__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; align-items: center; }
.sustain__img { aspect-ratio: 4 / 5; max-height: 78vh; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(64px, 9vw, 130px); }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat b {
  display: flex; align-items: baseline; font-weight: 200; font-size: clamp(52px, 7vw, 120px); line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
:root:lang(th) .stat b { letter-spacing: 0; font-family: var(--f-sans); }
.stat small { font-size: .4em; margin-left: 4px; font-weight: 300; }
.stat p { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.marquee {
  margin-top: clamp(80px, 10vw, 140px); overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line); padding: 22px 0; color: var(--ink);
}
.marquee__track { display: inline-flex; }
.marquee span { font-size: clamp(13px, 1.1vw, 17px); font-weight: 300; letter-spacing: .5em; text-transform: uppercase; padding-right: .5em; }

/* ==========================================================
   19:00 — Masterplan
   ========================================================== */
.masterplan__top { display: grid; grid-template-columns: 5fr 6fr; gap: 6vw; align-items: center; }
.masterplan__map { position: relative; }
.masterplan__map .canopy { aspect-ratio: 5 / 4; width: 100%; }
.pin {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(20, 24, 51, .62); color: #FFF4EA;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; white-space: nowrap;
}
.pin::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--window-light); box-shadow: 0 0 10px var(--window-light); }
.p1 { left: 10%; top: 18%; } .p2 { left: 46%; top: 36%; } .p3 { left: 18%; top: 62%; } .p4 { right: 8%; top: 78%; }
.timeline {
  --p: 0;
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: clamp(72px, 9vw, 130px); padding-top: 40px;
}
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.timeline::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent);
  transform: scaleX(var(--p)); transform-origin: left;
}
.phase { position: relative; }
.phase::before {
  content: ""; position: absolute; top: -45px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.phase__year { display: block; font-weight: 200; font-size: clamp(30px, 3vw, 46px); letter-spacing: .2em; line-height: 1; }
.phase h3 { margin: 18px 0 10px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.phase p { font-size: 15px; color: var(--ink-soft); }

/* ==========================================================
   22:00 — Contact (night)
   ========================================================== */
.contact { min-height: 100vh; min-height: 100svh; padding-bottom: clamp(90px, 14vh, 160px) !important; }
.contact__media {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 80%, transparent 100%);
}
.contact__video { width: 100%; height: 100%; object-fit: cover; }
.contact__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20, 24, 51, .55), rgba(20, 24, 51, .72)); }
.contact__inner { position: relative; }
.contact__title { font-size: clamp(30px, 5.4vw, 88px); }
:root:lang(th) .contact__title { font-size: clamp(42px, 7vw, 108px); }
.contact__grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: 6vw; align-items: start;
  margin-top: clamp(56px, 8vw, 110px);
}
.contact__lead { color: var(--ink); }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px;
  padding: clamp(24px, 3vw, 44px); border-radius: 28px;
  background: rgba(20, 24, 51, .55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.form label { display: grid; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
:root:lang(th) .form label { letter-spacing: .02em; font-size: 14px; }
.form input, .form select {
  width: 100%; height: 48px; padding: 0 2px;
  background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid rgba(243, 238, 230, .4); border-radius: 0;
  font: 400 17px/1 var(--f-sans); letter-spacing: 0; text-transform: none;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.form option { color: #141833; }
.form input:focus, .form select:focus { outline: none; border-bottom-color: var(--window-light); box-shadow: 0 1px 0 var(--window-light); }
.btn {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--window-light); color: var(--night-indigo);
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 0 40px -6px rgba(255, 201, 120, .55);
  transition: box-shadow .4s, transform .4s var(--ease);
}
:root:lang(th) .btn { letter-spacing: .02em; font-size: 16px; }
.btn i { font-style: normal; }
.btn:hover { box-shadow: 0 0 60px -2px rgba(255, 201, 120, .8); }
.form__ok { grid-column: 1 / -1; min-height: 1.6em; color: var(--window-light); font-size: 16px; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { padding: clamp(60px, 9vw, 120px) 0 84px; overflow: hidden; } /* bottom room for the fixed clock */
.footer__night { color: var(--ink); max-width: 30em; }
.footer__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink-soft);
}
.footer__row b { display: block; color: var(--ink); margin-bottom: 8px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
:root:lang(th) .footer__row b { letter-spacing: .02em; font-size: 15px; }
.footer__row a:hover { color: var(--window-light); }
.totop { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); border-bottom: 1px solid var(--line); }
.footer__brand {
  display: flex; justify-content: space-between; padding-inline: var(--gutter);
  margin-top: clamp(40px, 6vw, 80px);
  font-weight: 200; font-size: clamp(64px, 19vw, 320px); line-height: .9;
  color: rgba(243, 238, 230, .1);
}
/* Each letter lights up like a window when the footer arrives. */
.footer__brand span { transition: color 1.2s ease, text-shadow 1.2s ease; }
.footer__brand span.lit { color: var(--window-light); text-shadow: 0 0 40px rgba(255, 201, 120, .55); }
.footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; font-size: 13px; color: var(--ink-soft);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1099px) {
  .topbar__links, .topbar__cta { display: none; }
  .topbar__menu { display: grid; }
  .topbar { grid-template-columns: 1fr auto; }
}

@media (max-width: 1023px) {
  .districts__body { display: block; }
  .districts__visual { display: none; }
  .district { min-height: 0; padding-block: 44px 56px; }
  .district__img { display: block; aspect-ratio: 4 / 3; width: 100%; margin-bottom: 28px; }
  .manifesto__grid, .sustain__grid, .masterplan__top, .contact__grid { grid-template-columns: 1fr; }
  .manifesto__media { height: auto; aspect-ratio: 5 / 4; margin-top: 24px; }
  .sustain__img { width: 70%; justify-self: end; margin-top: 24px; }
  .masterplan__map { margin-top: 24px; }
  .contact__lead { max-width: 30em; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .districts__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .timeline .phase:nth-child(n+3)::before { display: none; }
  .hero__scroll { display: none; }
}

/* Phones */
@media (max-width: 767px) {
  body { font-size: 16px; }
  :root { --track: .2em; }
  section.moment { padding-block: 96px; }
  .display { font-size: 7vw; line-height: 1.4; }
  :root:lang(th) .display { font-size: clamp(34px, 10vw, 44px); }
  .hero__title { font-size: 7.1vw; }
  :root:lang(th) .hero__title { font-size: clamp(42px, 13vw, 56px); }
  .tag { letter-spacing: .22em; }
  .tag em { font-size: 14px; }

  /* Top stays clean: just the wordmark. Navigation lives in the bottom dock. */
  .topbar { padding: 14px 20px; }
  .topbar__end { display: none; }
  .topbar__logo small { display: none; }

  .hero__copy { top: 15%; }
  .hero__media { height: 56%; }
  .hero__clouds { bottom: 30%; height: 30%; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 20px calc(96px + env(safe-area-inset-bottom)); }
  .hero__scroll { display: none; }

  .pill { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .pill__logo, .pill__menu-label { display: none; }
  .pill__menu { width: 44px; padding: 0; justify-content: center; }

  /* Sun/moon arc moves to a small corner card with the time under it. */
  .clock { display: none; }
  .orbit {
    inset: auto; top: 10px; right: 10px; width: 84px; height: 52px; border-radius: 14px;
    background: var(--ui-bg); border: 1px solid var(--ui-line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    z-index: 30; overflow: hidden;
  }
  .orbit__body { width: 13px; height: 13px; }
  .orbit__halo { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
  .orbit__disc { filter: drop-shadow(0 0 5px var(--sun)); }
  .orbit__time {
    display: block; position: absolute; left: 0; right: 0; bottom: 4px; text-align: center;
    font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--ui-ink); font-variant-numeric: tabular-nums;
  }

  .manifesto__media { aspect-ratio: 1 / 1; }
  .statement { font-size: 25px; }
  :root:lang(th) .statement { font-size: 25px; }
  .vision__frame { aspect-ratio: 4 / 5; }
  .district h3 { letter-spacing: .14em; }
  .gallery { grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 28px; }
  .g1, .g2, .g3, .g4, .g5 { grid-column: auto; margin-top: 0; }
  .g2, .g4 { margin-top: 56px; }
  .g3 { grid-column: 1 / -1; } .g3 .canopy { aspect-ratio: 4 / 3; }
  .g5 { grid-column: 1 / -1; width: 72%; justify-self: end; }
  .g figcaption { letter-spacing: .14em; font-size: 11px; }
  .sustain__img { width: 82%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .stat b { font-size: 58px; }
  .p1 { left: 4%; } .p4 { right: 4%; }
  .pin { font-size: 11px; padding: 6px 10px 6px 8px; }
  .timeline { grid-template-columns: 1fr; gap: 40px; padding: 0 0 0 28px; }
  .timeline::before, .timeline::after { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline::after { transform: scaleY(var(--p)); transform-origin: top; }
  .phase::before { top: 8px; left: -32px; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .btn { width: 100%; justify-content: center; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .footer__row { grid-template-columns: 1fr 1fr; }
  .menu__inner { grid-template-columns: 1fr; align-content: start; padding-top: 72px; }
  .menu__close { top: 12px; }
}

/* ==========================================================
   Reduced motion — no fixed sky choreography: every section gets
   its own static sky (set by main.js), and nothing moves by itself.
   ========================================================== */
.is-reduced .orbit, .is-reduced .clock { display: none; }
/* Without the pin the shared district visual cannot change, so stack them. */
.is-reduced .districts__visual { display: none; }
.is-reduced .districts__body { display: block; }
.is-reduced .districts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); column-gap: 40px; }
.is-reduced .district { min-height: 0; justify-content: flex-start; }
.is-reduced .district__img { display: block; aspect-ratio: 4 / 3; width: 100%; margin-bottom: 28px; }
.is-reduced .sky__deck img, .is-reduced .sky__stars i, .is-reduced .hero__scroll i { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
