/* ==========================================================
   Oviwo Architech — City of Tomorrow
   ========================================================== */
:root {
  --ink: #0b0e0c;
  --ink-2: #121713;
  --paper: #ede9e0;
  --paper-2: #e2ddd1;
  --moss: #a4d65e;
  --moss-deep: #3c5a22;
  --amber: #f0b878;
  --text: #0b0e0c;
  /* Secondary text was .6 / .65 — too faint for the thin Thai body copy over photos. */
  --muted: rgba(11, 14, 12, .68);
  --line: rgba(11, 14, 12, .15);
  --light: #f4f1ea;
  --light-muted: rgba(244, 241, 234, .78);
  --light-line: rgba(244, 241, 234, .18);

  /* English: Manrope throughout. Thai overrides these below.
     --f-serif names the accent words (.serif) — once an italic serif, now a
     light weight of the heading face. --f-th is body copy that used to be Thai-only. */
  --f-sans: "Manrope", system-ui, sans-serif;
  --f-head: var(--f-sans);
  --f-serif: var(--f-head);
  --f-th: var(--f-sans);

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}
/* Thai: IBM Plex Sans Thai for headings, Google Sans for everything else. */
: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; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--moss); color: var(--ink); }

.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
h1, h2, h3, .cycle__word span, .menu__list span, .dcard--end p { font-family: var(--f-head); }
/* Accent words: a light weight of the heading face, set off by colour. */
.serif { font-family: var(--f-serif); font-style: normal; font-weight: 300; letter-spacing: -.02em; }
.label {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px; font-weight: 500;
}
.label.light { color: var(--light-muted); }
.h2 {
  font-size: clamp(40px, 6.4vw, 112px);
  line-height: .95; letter-spacing: -.035em; font-weight: 500;
}
.h2.light { color: var(--light); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--light);
  display: grid; place-items: end start;
  padding: var(--gutter);
}
.loader__inner { width: 100%; }
.loader__word {
  display: flex; font-size: clamp(80px, 22vw, 360px); font-weight: 700;
  letter-spacing: -.06em; line-height: .8; overflow: hidden;
}
.loader__word span { display: inline-block; }
.loader__meta {
  display: flex; justify-content: space-between; margin-top: 24px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--light-muted);
}
.loader__count { font-variant-numeric: tabular-nums; color: var(--moss); }
.loader__bar { height: 1px; background: var(--light-line); margin-top: 14px; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--moss); transform: scaleX(0); transform-origin: left; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--gutter);
  color: var(--light);
  mix-blend-mode: difference;
  transition: transform .55s var(--ease);
}
/* Past the hero the bar condenses into a floating pill with its own ground, so
   it stays legible over any photo (the difference blend can't promise that). */
.nav.is-compact {
  top: 12px; left: 12px; right: 12px; max-width: 1180px; margin-inline: auto;
  padding: 8px 8px 8px 20px; gap: 24px;
  mix-blend-mode: normal;
  background: rgba(11, 14, 12, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22), inset 0 0 0 1px var(--light-line);
}
.nav.is-compact .nav__cta { padding: 8px 16px; }
/* Reading down: out of the way. Any scroll up brings it back (main.js). */
.nav.is-compact.is-hidden { transform: translateY(calc(-100% - 24px)); }
@media (max-width: 767px) {
  /* Phones: the pill docks at the bottom, in thumb reach; the top stays clear. */
  .nav.is-compact { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); padding-left: 16px; }
  .nav.is-compact.is-hidden { transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); }
  /* Keep the last menu item clear of the bottom pill. */
  .menu__grid { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .nav.is-compact.is-hidden { transform: none; opacity: 0; visibility: hidden; }
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; font-size: 17px; }
.nav__logo svg { width: 26px; height: 26px; }
.nav__logo em { font-style: normal; font-weight: 300; margin-left: 6px; letter-spacing: 0; }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.lang button {
  font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: 99px;
  padding: 6px 9px; cursor: pointer; opacity: .6; transition: opacity .3s, border-color .3s;
}
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { opacity: 1; border-color: currentColor; }
.nav a:focus-visible, .nav button:focus-visible, .menu a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.nav__links a { position: relative; opacity: .85; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 14px; padding: 10px 18px; border: 1px solid currentColor; border-radius: 99px;
  font-family: var(--f-th); transition: background .3s, color .3s;
}
.nav__cta:hover { background: var(--light); color: var(--ink); }
.nav__burger {
  display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit;
  cursor: pointer; position: relative; margin-left: auto;
}
.nav__burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.nav__burger i:first-child { top: 18px; }
.nav__burger i:last-child { top: 25px; }
.menu-open .nav__burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Fullscreen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 45; visibility: hidden; color: var(--light); }
.menu__bg { position: absolute; inset: 0; background: var(--ink-2); clip-path: inset(0 0 100% 0); }
.menu__grid {
  position: relative; height: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  padding: 110px var(--gutter) var(--gutter); align-items: end;
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; border-top: 1px solid var(--light-line); }
.menu__list a { display: flex; align-items: baseline; gap: 20px; padding: 10px 0; }
.menu__list span { font-size: clamp(32px, 5vw, 72px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; transition: color .3s, transform .5s var(--ease); }
.menu__list a:hover span { color: var(--moss); transform: translateX(14px); }
.menu__side { display: grid; gap: 24px; }
.menu__img { aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; }
.menu__img img { width: 100%; height: 100%; object-fit: cover; }
.menu__side p { font-size: 14px; color: var(--light-muted); font-family: var(--f-th); }

/* ---------- Progress + section tag + cursor ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; }
.progress i { display: block; height: 100%; background: var(--moss); transform: scaleX(0); transform-origin: left; }
.section-tag {
  position: fixed; left: var(--gutter); bottom: 22px; z-index: 40; overflow: hidden;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--light);
  mix-blend-mode: difference;
}
.section-tag span { display: block; }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 70; pointer-events: none;
  width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--moss); color: var(--ink); display: grid; place-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transform: scale(0);
}

/* ---------- 01 Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--light); background: var(--ink); }
.hero__media { position: absolute; inset: 0; will-change: clip-path, transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,14,12,.55) 0%, rgba(11,14,12,.05) 35%, rgba(11,14,12,.15) 60%, rgba(11,14,12,.85) 100%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  /* Bottom padding clears the fixed .section-tag, which otherwise sits on the lead. */
  padding: 0 var(--gutter) clamp(64px, 9vh, 96px);
}
.hero__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 0 rgba(164,214,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(164,214,94,0); } 100% { box-shadow: 0 0 0 0 rgba(164,214,94,0); } }
.hero__title { font-size: clamp(56px, 11.5vw, 210px); line-height: .86; letter-spacing: -.05em; font-weight: 600; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .word { display: inline-block; }
.hero__title .serif { font-weight: 400; color: var(--moss); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 32px; }
.hero__lead { max-width: 440px; font-family: var(--f-th); font-weight: 400; font-size: 16px; color: var(--light-muted); }
.hero__scroll { display: flex; align-items: center; gap: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero__scroll i { width: 1px; height: 54px; background: var(--light-line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--light); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__brand {
  position: absolute; right: -2vw; top: 12vh; z-index: 1;
  font-size: 22vw; font-weight: 800; letter-spacing: -.07em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(244,241,234,.22);
  pointer-events: none;
}

/* ---------- 02 Manifesto ---------- */
.manifesto {
  position: relative; background: var(--paper); padding: clamp(120px, 22vh, 240px) 0;
  overflow: hidden; border-radius: 28px 28px 0 0; margin-top: -28px; z-index: 2;
}
.manifesto .wrap { position: relative; z-index: 2; }
.manifesto__text {
  font-size: clamp(30px, 4.6vw, 80px); line-height: 1.04; letter-spacing: -.035em;
  font-weight: 500; max-width: 15.5em;
}
.manifesto__text .w { opacity: .14; }
.manifesto__note { margin-top: 48px; max-width: 560px; margin-left: auto; font-family: var(--f-th); color: var(--muted); font-size: 17px; font-weight: 400; }
.manifesto__float { position: absolute; z-index: 1; overflow: hidden; border-radius: 6px; }
.manifesto__float img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__float.f1 { width: 17vw; aspect-ratio: 3/4; right: 6vw; top: 8%; }
/* Bottom-left of centre: it used to sit at right 26vw, on top of the note paragraph. */
.manifesto__float.f2 { width: 13vw; aspect-ratio: 1; left: 22vw; bottom: 4%; opacity: .95; }
.manifesto__float.f3 { width: 11vw; aspect-ratio: 3/4; left: 4vw; bottom: 2%; }

/* ---------- 03 Vision ---------- */
.vision { background: var(--paper); }
.vision__pin { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.vision__frame {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(22% 30% 22% 30% round 14px);
}
.vision__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); }
.vision__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,14,12,.75), rgba(11,14,12,0) 65%); opacity: 0; }
.vision.is-open .vision__frame::after { opacity: 1; transition: opacity 1s; }
.vision__copy { position: relative; z-index: 2; color: var(--light); width: 100%; padding-inline: var(--gutter); max-width: 1680px; }
.vision__title { font-size: clamp(56px, 10vw, 180px); line-height: .88; letter-spacing: -.05em; font-weight: 600; }
.vision__title span { display: inline-block; }
.vision__title .serif { color: var(--moss); font-weight: 400; }
.vision__sub { max-width: 440px; margin-top: 28px; font-family: var(--f-th); font-weight: 400; color: var(--light-muted); }

/* ---------- 04 Districts ---------- */
.districts { background: var(--ink); color: var(--light); padding-top: clamp(100px, 16vh, 180px); }
.districts .label { color: var(--light-muted); }
.districts__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 56px; }
.districts__head .label { width: 100%; margin-bottom: 0; }
.districts__head .serif { color: var(--moss); }
.districts__pin { height: 100svh; overflow: hidden; display: flex; align-items: center; }
.districts__track { display: flex; gap: 3vw; padding-inline: var(--gutter); will-change: transform; }
.dcard { flex: 0 0 auto; width: min(64vw, 1000px); display: grid; grid-template-rows: auto auto; gap: 22px; }
.dcard__media { height: 58svh; overflow: hidden; border-radius: 10px; position: relative; }
.dcard__media img { width: 120%; max-width: none; height: 100%; object-fit: cover; }
.dcard__info { display: grid; grid-template-columns: 60px 1fr 1.3fr auto; gap: 24px; align-items: start; border-top: 1px solid var(--light-line); padding-top: 18px; }
.dcard__no { font-size: 13px; color: var(--moss); }
.dcard h3 { font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.dcard p { font-family: var(--f-th); font-weight: 400; font-size: 15px; color: var(--light-muted); }
.dcard ul { list-style: none; margin: 0; padding: 0; font-size: 13px; text-align: right; color: var(--light-muted); }
.dcard--end { width: 34vw; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.dcard--end p { font-size: clamp(36px, 4.5vw, 72px); line-height: .95; letter-spacing: -.03em; }
.dcard--end .serif { color: var(--moss); }
.circle-btn {
  width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--light-line);
  display: grid; place-items: center; font-size: 26px; transition: background .4s, color .4s;
}
.circle-btn:hover { background: var(--moss); color: var(--ink); border-color: var(--moss); }

/* ---------- 05 Sustainability ---------- */
.sustain { position: relative; overflow: hidden; color: var(--light); padding: clamp(140px, 24vh, 260px) 0 0; background: var(--ink); }
.sustain__bg { position: absolute; inset: 0; overflow: hidden; }
.sustain__bg img { width: 100%; height: 135%; object-fit: cover; filter: saturate(.85); }
.sustain__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(11,14,12,.55) 30%, rgba(11,14,12,.7) 100%); }
.sustain__inner { position: relative; z-index: 2; }
.sustain .serif { color: var(--moss); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 12vh, 140px); border-top: 1px solid var(--light-line); }
.stat { padding: 28px 24px 48px 0; border-right: 1px solid var(--light-line); }
.stat:not(:first-child) { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(56px, 7vw, 120px); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 16px; font-family: var(--f-th); font-weight: 400; font-size: 14px; color: var(--light-muted); }
.marquee { position: relative; z-index: 2; margin-top: clamp(60px, 10vh, 120px); padding: 26px 0; border-top: 1px solid var(--light-line); overflow: hidden; white-space: nowrap; background: rgba(11,14,12,.4); backdrop-filter: blur(6px); }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee span { font-size: clamp(28px, 4vw, 64px); letter-spacing: -.02em; font-family: var(--f-serif); font-weight: 300; }

/* ---------- 06 Day & Night ---------- */
.cycle { background: var(--ink); }
.cycle__pin { position: relative; height: 100svh; overflow: hidden; color: var(--light); }
.cycle__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cycle__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,14,12,.15), rgba(11,14,12,.75)); }
.cycle__words { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.cycle__word { grid-area: 1 / 1; display: grid; justify-items: center; gap: 10px; }
.cycle__word small { font-size: 14px; letter-spacing: .2em; color: var(--amber); font-variant-numeric: tabular-nums; }
.cycle__word span { font-weight: 300; font-size: clamp(90px, 18vw, 320px); line-height: .85; letter-spacing: -.05em; }
.cycle__word em { font-style: normal; font-family: var(--f-th); font-weight: 400; color: var(--light-muted); font-size: 17px; }
.cycle__clock { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; height: 1px; background: var(--light-line); }
.cycle__clock i { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }

/* ---------- 07 Lifestyle ---------- */
.lifestyle { background: var(--paper); padding: clamp(120px, 20vh, 220px) 0 clamp(80px, 14vh, 160px); overflow: hidden; }
.lifestyle__head { display: grid; grid-template-columns: 1fr; gap: 0; }
.lifestyle__head .serif { color: var(--moss-deep); }
.lifestyle__sub { max-width: 440px; margin: 32px 0 0 auto; font-family: var(--f-th); font-weight: 400; color: var(--muted); }
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 2vw;
  padding-inline: var(--gutter); margin-top: 80px; max-width: 1680px; margin-inline: auto;
}
.g { margin: 0; position: relative; }
.g img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.g figcaption { position: absolute; left: 0; bottom: -28px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.g1 { grid-column: 1 / 6; aspect-ratio: 4/5; }
.g2 { grid-column: 7 / 13; aspect-ratio: 16/10; margin-top: 18vh; }
.g3 { grid-column: 2 / 7; aspect-ratio: 16/11; margin-top: 10vh; }
.g4 { grid-column: 8 / 12; aspect-ratio: 3/4; margin-top: 4vh; }
.g5 { grid-column: 4 / 10; aspect-ratio: 16/9; margin-top: 8vh; }
.g .clip { overflow: hidden; border-radius: 6px; height: 100%; }

/* ---------- 08 Masterplan ---------- */
.masterplan { background: var(--paper-2); padding: clamp(120px, 20vh, 220px) 0; }
.masterplan .serif { color: var(--moss-deep); }
.masterplan__top { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw; align-items: center; }
.masterplan__map { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; }
.masterplan__map img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05); }
.pin {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; background: var(--paper); border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--moss-deep); box-shadow: 0 0 0 4px rgba(164,214,94,.6); }
.p1 { left: 10%; top: 18%; } .p2 { left: 52%; top: 32%; } .p3 { left: 22%; top: 62%; } .p4 { left: 60%; top: 76%; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2vw; margin-top: clamp(80px, 14vh, 160px); padding-top: 40px; }
.timeline__line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.timeline__line i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.phase { position: relative; }
.phase::before { content: ""; position: absolute; top: -45px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--ink); transition: background .4s; }
.phase.is-on::before { background: var(--moss); }
.phase__year { font-size: clamp(40px, 4.4vw, 76px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.phase h3 { margin-top: 18px; font-size: 17px; font-weight: 600; }
.phase p { margin-top: 8px; font-family: var(--f-th); font-weight: 400; color: var(--muted); font-size: 15px; }

/* ---------- 09 Contact ---------- */
.contact { position: relative; overflow: hidden; color: var(--light); padding: clamp(140px, 24vh, 260px) 0 clamp(100px, 16vh, 180px); }
.contact__bg { position: absolute; inset: 0; overflow: hidden; }
.contact__bg img { width: 100%; height: 135%; object-fit: cover; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,12,.6), rgba(11,14,12,.9)); }
.contact__inner { position: relative; z-index: 2; }
.contact__title { font-size: clamp(64px, 14vw, 250px); line-height: .85; letter-spacing: -.055em; font-weight: 600; }
.contact__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.contact__title .line > span { display: inline-block; }
.contact__title .serif { color: var(--moss); font-weight: 400; padding-left: 8vw; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6vw; margin-top: clamp(60px, 10vh, 120px); }
.contact__lead { font-family: var(--f-th); font-weight: 400; color: var(--light-muted); font-size: 18px; max-width: 420px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form label { display: grid; gap: 8px; font-family: var(--f-th); font-size: 13px; color: var(--light-muted); }
.form input, .form select {
  font: inherit; font-size: 17px; color: var(--light); background: transparent;
  border: 0; border-bottom: 1px solid var(--light-line); padding: 8px 0 12px; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus { border-color: var(--moss); }
.btn {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 18px;
  background: var(--moss); color: var(--ink); border: 0; border-radius: 99px; padding: 18px 20px 18px 30px;
  font-family: var(--f-th); font-size: 16px; font-weight: 500; cursor: pointer; overflow: hidden; position: relative;
}
.btn i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--moss); display: grid; place-items: center; transition: transform .5s var(--ease); }
.btn:hover i { transform: rotate(-45deg); }
.form__ok { grid-column: 1 / -1; color: var(--moss); font-family: var(--f-th); min-height: 1.5em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--light); padding-top: 80px; overflow: hidden; }
.footer__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 14px; }
.footer__row b { font-weight: 600; display: block; margin-bottom: 10px; }
.footer__row p { color: var(--light-muted); }
.totop { display: inline-block; border-bottom: 1px solid var(--light-line); padding-bottom: 4px; justify-self: end; }
.footer__row > div:last-child { text-align: right; }
.footer__brand { display: flex; justify-content: space-between; padding-inline: var(--gutter); font-size: 25vw; font-weight: 800; line-height: .78; letter-spacing: -.06em; margin-top: 60px; overflow: hidden; color: var(--light); }
.footer__brand span { display: inline-block; }
.footer__legal { display: flex; justify-content: space-between; padding-block: 22px; font-size: 12px; color: var(--light-muted); border-top: 1px solid var(--light-line); font-family: var(--f-th); }

/* ---------- Thai ---------- */
/* Thai stacks vowels and tone marks above and below the line, so display type
   needs taller lines (and room inside the .line masks), and none of the tight
   negative tracking tuned for Latin capitals. */
:root:lang(th) :is(.hero__title, .vision__title, .h2, .contact__title, .manifesto__text,
  .cycle__word span, .menu__list span, .dcard--end p, .dcard h3, .phase h3) {
  letter-spacing: 0; line-height: 1.22;
}
:root:lang(th) :is(.hero__title, .contact__title) { line-height: 1.02; }
:root:lang(th) :is(.hero__title, .contact__title) .line { padding-block: .14em .1em; }
:root:lang(th) .hero__title { font-size: clamp(48px, 10vw, 180px); }
:root:lang(th) .manifesto__text { font-size: clamp(26px, 3.8vw, 64px); }
:root:lang(th) .cycle__word span { font-size: clamp(64px, 12vw, 220px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .lang { margin-left: auto; }
  .nav__burger { display: block; margin-left: 0; }
  .dcard { width: 82vw; }
  .dcard__info { grid-template-columns: 40px 1fr; }
  .dcard__info p, .dcard__info ul { grid-column: 2; }
  .dcard ul { text-align: left; display: flex; gap: 14px; flex-wrap: wrap; }
  .dcard--end { width: 60vw; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--light-line); }
  .masterplan__top, .contact__grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 72px; }
  .timeline__line { display: none; }
  .phase::before { top: -24px; }
  .menu__grid { grid-template-columns: 1fr; }
  .menu__side { display: none; }
}
@media (max-width: 640px) {
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .hero__brand { display: none; }
  .manifesto__float.f1 { width: 34vw; top: 3%; right: 4vw; }
  .manifesto__float.f2 { width: 30vw; right: 8vw; bottom: 2%; }
  .manifesto__float.f3 { display: none; }
  .vision__frame { clip-path: inset(25% 12% 25% 12% round 12px); }
  .dcard__media { height: 48svh; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .g1, .g2, .g3, .g4, .g5 { grid-column: auto; margin-top: 0; }
  .g2 { margin-top: 12vh; } .g4 { margin-top: 8vh; }
  .g5 { grid-column: 1 / -1; margin-top: 6vh; }
  .g figcaption { font-size: 10px; bottom: -22px; }
  .timeline { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__row { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer__row > div:last-child { text-align: left; }
  .footer__legal { flex-direction: column; gap: 6px; }
  .pin { font-size: 10px; }
  .section-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
