@font-face {
  font-family: 'Fahkwang';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/fahkwang-300i-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Fahkwang';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/fahkwang-300i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fahkwang';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fahkwang-400i-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Fahkwang';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fahkwang-400i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fahkwang';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/fahkwang-300-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Fahkwang';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/fahkwang-300-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fahkwang';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fahkwang-400-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Fahkwang';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/fahkwang-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fahkwang';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fahkwang-500-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Fahkwang';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/fahkwang-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Niramit';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/niramit-400i-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Niramit';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/niramit-400i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Niramit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/niramit-400-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Niramit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/niramit-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Niramit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/niramit-500-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Niramit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/niramit-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Niramit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/niramit-600-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Niramit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/niramit-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Mahassajan Wedding: concept site by Optimism.
   Art direction: a quiet gallery by day that turns to night. The arch (their most
   repeated set shape) is the one graphic motif. Photography does the talking.
   Type: Fahkwang (Thai + Latin display, high contrast), IBM Plex Sans Thai (body).
   One accent: orchid. Sharp corners everywhere except the arch. */

:root {
  /* Neutrals carry a faint orchid tint so surfaces and accent feel of a piece */
  --paper: #f5f4f4;
  --paper-2: #eae8e9;
  --ink: #17151a;
  --ink-2: #403d46;
  --muted: #625e68;
  --line: #d6d3d5;
  --arch-line: #bcb8bc;
  --control: #85828b;
  --accent: #a3175a;
  --accent-hover: #87104a;
  --accent-ink: #fdfbfd;
  --on-photo: #fbfafc;
  --scrim: 12 10 16;

  --night: #0f0e13;
  --night-2: #19171f;
  --on-night: #eeecf1;
  --on-night-2: #c9c5d1;
  --muted-night: #a39fac;
  --line-night: #34313d;
  --accent-night: #f07aad;

  --field: #0f0e13;
  --field-border: #6f6a7c;
  --field-border-hover: #8a8597;
  --placeholder: #8c8896;
  --foot: #09080c;
  --foot-line: #25222c;
  --dusk-1: #dad4da;
  --dusk-2: #8c7d93;
  --dusk-3: #3a3043;
  --line-green: #06c755;
  --line-green-hover: #1fd669;
  --line-green-ink: #04230f;

  --display: "Fahkwang", "Tahoma", sans-serif;
  --body: "Niramit", "Tahoma", system-ui, sans-serif;

  /* 1.333 modular scale, fluid */
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-sm: 0.875rem;
  --fs-h3: clamp(1.33rem, 1.2rem + 0.6vw, 1.78rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.3vw, 3.55rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4.1vw, 5.2rem);

  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem; --s8: 8rem;
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --max: 1360px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--fs-body); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Language: show only the active language. Thai is the default and needs no JS. */
html[data-lang="th"] [lang="en"]:not(html):not([data-set-lang]),
html[data-lang="en"] [lang="th"]:not(html):not(.brand-th):not([data-set-lang]) { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.night-zone :focus-visible, .foot :focus-visible { outline-color: var(--accent-night); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }
.i { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
.display { font-family: var(--display); font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; }
.display em { font-style: italic; }
.display :lang(th), .display[lang="th"], :lang(th) .display { line-height: 1.26; letter-spacing: 0; }
.h2 { font-size: var(--fs-h2); max-width: 20ch; text-wrap: balance; }
.body { max-width: 56ch; color: var(--ink-2); text-wrap: pretty; }
:lang(th) { line-break: auto; }
.muted { color: var(--muted); }

/* Buttons: squared, one accent */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.5rem; border: 1px solid transparent; border-radius: 0;
  font-family: var(--body); font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-hover); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 1rem; font-size: 0.9375rem; }
.btn-line { background: var(--line-green); color: var(--line-green-ink); font-weight: 600; }
.btn-line:hover { background: var(--line-green-hover); }
.btn-line .i { width: 1.35em; height: 1.35em; }
.btn-line:hover .i { transform: none; }
.round {
  width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--control); background: transparent; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.round:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.round:disabled { opacity: .4; cursor: default; background: transparent; color: inherit; border-color: var(--control); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgb(245 244 244 / .9);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.nav.is-night { background: rgb(15 14 19 / .88); background: color-mix(in srgb, var(--night) 82%, transparent); color: var(--on-night); border-bottom-color: var(--line-night); }
.nav-in { height: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; min-width: 0; }
.brand-mark { width: 18px; height: 24px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 999px 999px 0 0; flex: none; }
.brand-word { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.02em; font-weight: 400; }
.brand-th { font-family: var(--display); font-size: 0.9rem; color: var(--muted); padding-left: 0.6rem; border-left: 1px solid var(--line); }
.nav.is-night .brand-th { color: var(--muted-night); border-color: var(--line-night); }
.nav-end { display: flex; align-items: center; gap: 0.75rem; }
.lang { display: flex; border: 1px solid var(--line); }
.nav.is-night .lang { border-color: var(--line-night); }
.lang button { min-width: 44px; min-height: 44px; padding: 0 0.6rem; background: none; border: 0; cursor: pointer; font-size: 0.875rem; color: var(--muted); }
.nav.is-night .lang button { color: var(--muted-night); }
html[data-lang="th"] .lang [data-set-lang="th"], html[data-lang="en"] .lang [data-set-lang="en"] { background: var(--ink); color: var(--paper); }
html[data-lang="th"] .nav.is-night [data-set-lang="th"], html[data-lang="en"] .nav.is-night [data-set-lang="en"] { background: var(--on-night); color: var(--night); }

/* HERO */
.hero {
  min-height: 100dvh; max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3.5rem)) var(--gutter) clamp(2rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 6rem); align-items: center;
}
.hero h1 { font-size: clamp(2rem, 5.2vw - 2px, 4.1rem); }
.hero h1 .ln { display: block; white-space: nowrap; }
.hero h1 em { padding-right: 0.05em; }
.hero .lede { margin-top: var(--s4); max-width: 34ch; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); }
.cta-row { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-arch {
  position: relative; justify-self: end; width: min(100% - 16px, 520px); margin: 16px 16px 0 0;
  aspect-ratio: 5 / 7; max-height: calc(100dvh - var(--nav-h) - 6rem);
}
/* A second, larger arch drawn in hairline: a doorway around the photograph */
.hero-arch::before {
  content: ""; position: absolute; inset: -16px -16px 0 -16px; border: 1px solid var(--arch-line); border-bottom: 0;
  border-radius: 1000px 1000px 0 0; pointer-events: none;
}
.hero-arch img {
  position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 58% 60%;
  border-radius: 1000px 1000px 0 0; background: var(--paper-2);
}

/* Hero entrance: the arch rises, the headline settles */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-arch img { animation: archRise 1.6s var(--ease) both .1s; }
  .js .hero-arch::before { animation: fade 1.2s var(--ease) both .9s; }
  .js .hero-copy > * { animation: up 1s var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: .15s; }
  .js .hero-copy > :nth-child(3) { animation-delay: .3s; }
}
@keyframes archRise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* PROOF */
.proof {
  max-width: var(--max); margin: 0 auto; padding: var(--s5) var(--gutter) var(--s7);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s3) var(--s6); align-items: end;
  border-top: 1px solid var(--line);
}
.proof-h { grid-column: 1 / -1; font-family: var(--body); font-weight: 500; font-size: var(--fs-sm); color: var(--muted); }
.venues { display: grid; grid-template-columns: repeat(3, max-content); gap: 0.55rem clamp(1.5rem, 3.5vw, 3.5rem); font-family: var(--display); font-size: clamp(1.05rem, 0.9rem + 0.65vw, 1.5rem); line-height: 1.35; }
.venues li { white-space: nowrap; display: flex; align-items: center; gap: 0.75rem; }
.venues li::before { content: ""; flex: none; width: 7px; height: 10px; border: 1px solid var(--accent); border-bottom: 0; border-radius: 99px 99px 0 0; }
.facts { max-width: 24ch; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.facts .star { width: 0.85em; height: 0.85em; color: var(--accent); vertical-align: -0.08em; }

/* PORTAL: an arch window that opens to the full frame as you scroll */
.portal { position: relative; height: 240vh; }
.portal-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.portal-window { position: absolute; inset: 0; clip-path: inset(0); }
.portal-window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.portal-copy {
  position: absolute; inset: auto 0 0 0; padding: var(--s8) var(--gutter) clamp(2.5rem, 7vh, 5rem);
  background: linear-gradient(to top, rgb(var(--scrim) / .72), rgb(var(--scrim) / 0));
  color: var(--on-photo);
}
.portal-line { font-size: clamp(1.9rem, 1.3rem + 3vw, 4.4rem); max-width: 22ch; max-width: var(--max); margin: 0 auto; }
.portal-line [lang="th"] { font-size: 0.9em; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .portal { view-timeline-name: --portal; }
    .portal-window {
      animation: portalOpen linear both; animation-timeline: --portal; animation-range: contain 0% contain 55%;
    }
    .portal-window img { animation: portalZoom linear both; animation-timeline: --portal; animation-range: contain 0% contain 70%; }
    .portal-copy { animation: portalCopy linear both; animation-timeline: --portal; animation-range: contain 45% contain 70%; }
  }
}
@keyframes portalOpen {
  from { clip-path: inset(13vh 33vw 9vh 33vw round 17vw 17vw 0 0); }
  to { clip-path: inset(0 0 0 0 round 0 0 0 0); }
}
@keyframes portalZoom { from { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes portalCopy { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  @keyframes portalOpen {
    from { clip-path: inset(16vh 12vw 12vh 12vw round 38vw 38vw 0 0); }
    to { clip-path: inset(0 0 0 0 round 0 0 0 0); }
  }
}
/* No scroll timelines (or reduced motion): a plain full-bleed image, no tall scroll */
@supports not (animation-timeline: view()) {
  .portal { height: auto; }
  .portal-stage { position: relative; height: min(88vh, 900px); }
}
@media (prefers-reduced-motion: reduce) {
  .portal { height: auto; }
  .portal-stage { position: relative; height: min(88vh, 900px); }
}

/* WORLDS */
.worlds { padding: var(--s8) 0 var(--s7); }
.worlds-head { display: grid; grid-template-columns: 1fr auto; gap: var(--s3) var(--s4); align-items: end; }
.worlds-head .h2 { grid-column: 1; }
.worlds-head .body { grid-column: 1; }
.track-ctl { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 0.5rem; align-self: end; }
.track {
  margin-top: var(--s5); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 27vw, 400px); gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) var(--s2);
  scroll-padding-inline: var(--gutter);
}
@media (min-width: 1400px) { .track { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -3px; }
.world { scroll-snap-align: start; }
.world figure { display: flex; flex-direction: column; gap: 0.9rem; }
.world img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); transition: transform 1.2s var(--ease); }
.world figure { overflow: hidden; }
.world:nth-child(even) img { aspect-ratio: 4 / 5.6; }
.world:nth-child(3n) img { aspect-ratio: 1 / 1; }
@media (hover: hover) { .world:hover img { transform: scale(1.03); } }
.world figcaption { display: flex; flex-direction: column; gap: 0.6rem; }
.swatches { display: flex; }
.swatches span { width: 26px; height: 14px; background: var(--c); }
.world-t { font-family: var(--display); font-size: 1.2rem; line-height: 1.3; text-wrap: balance; }
.nw { white-space: nowrap; }

/* STORY */
.story {
  max-width: var(--max); margin: 0 auto; padding: var(--s7) var(--gutter) var(--s8);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); align-items: center;
}
.story-img img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; object-position: 50% 30%; }
.story-copy { display: flex; flex-direction: column; gap: var(--s4); }
.quote-xl { margin: 0; padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--accent); }
.quote-xl p { font-family: var(--display); font-size: clamp(1.2rem, 1rem + 0.75vw, 1.65rem); line-height: 1.45; font-weight: 300; font-style: italic; }
.quote-xl p[lang="th"] { font-style: normal; line-height: 1.6; }
.quote-xl footer, .rev figcaption { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: var(--fs-sm); color: var(--muted); }
.who { color: var(--ink); font-weight: 500; }
.src { color: var(--accent); text-underline-offset: 3px; }

/* SERVICES */
.services { padding: var(--s7) 0 var(--s8); background: var(--paper-2); }
.svc-grid {
  max-width: var(--max); margin: var(--s6) auto 0; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.svc-preview { position: sticky; top: calc(var(--nav-h) + 2rem); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1000px 1000px 0 0; background: var(--line); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.svc-preview img.is-on { opacity: 1; transform: none; }
.svc-list { counter-reset: svc; border-top: 1px solid var(--line); }
.svc-list li {
  counter-increment: svc; position: relative; padding: clamp(1.5rem, 3vw, 2.4rem) 0 clamp(1.5rem, 3vw, 2.4rem) 3.5rem;
  border-bottom: 1px solid var(--line); cursor: default; outline-offset: -2px;
}
.svc-list li::before { content: counter(svc); position: absolute; left: 0; top: clamp(1.7rem, 3vw, 2.6rem); font-family: var(--display); font-size: 1rem; color: var(--muted); }
.svc-list h3 { font-family: var(--display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.25; transition: color .3s var(--ease), transform .5s var(--ease); }
.svc-list p { margin-top: 0.5rem; color: var(--ink-2); max-width: 48ch; }
.svc-list li.is-on h3 { color: var(--accent); transform: translateX(6px); }
.svc-thumb { display: none; }

/* MORNING */
.morning { max-width: var(--max); margin: 0 auto; padding: var(--s8) var(--gutter) var(--s7); }
.morning-copy { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s6); margin-left: clamp(0rem, 30vw, 34rem); }
.morning-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.5rem); align-items: start; }
.morning-grid img { width: 100%; height: 100%; object-fit: cover; }
.m1 { grid-column: 1 / 9; grid-row: 1; aspect-ratio: 3 / 2; }
.m2 { grid-column: 9 / 13; grid-row: 1 / 3; align-self: stretch; }
.m2 img { border-radius: 1000px 1000px 0 0; }
.m3 { grid-column: 1 / 5; grid-row: 2; aspect-ratio: 4 / 3; }
.m4 { grid-column: 5 / 9; grid-row: 2; aspect-ratio: 4 / 3; }

/* DUSK: the page goes from day to night */
.dusk {
  height: clamp(340px, 62vh, 620px); display: grid; place-items: center; padding: 0 var(--gutter);
  background: linear-gradient(to bottom, var(--paper) 0%, var(--dusk-1) 22%, var(--dusk-2) 50%, var(--dusk-3) 76%, var(--night) 100%);
}
.dusk-line { font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem); color: var(--on-photo); text-align: center; margin-top: 30%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .dusk-line { animation: up linear both; animation-timeline: view(); animation-range: entry 60% cover 55%; }
  }
}

/* NIGHT ZONE: everything below dusk sits on night */
.night-zone { background: var(--night); color: var(--on-night); }
.night-zone .body, .night-zone p { color: var(--on-night-2); }
.night-zone .who { color: var(--on-night); }
.night-zone .muted, .night-zone .help { color: var(--muted-night); }

.night { padding-bottom: var(--s8); }
.night-hero { position: relative; }
.night-hero img { width: 100%; height: min(92vh, 980px); min-height: 480px; object-fit: cover; object-position: 50% 40%; }
.night-copy {
  position: absolute; inset: auto 0 0 0; padding: var(--s8) var(--gutter) var(--s6);
  background: linear-gradient(to top, var(--night) 0%, rgb(15 14 19 / .6) 45%, rgb(15 14 19 / 0) 100%);
  display: flex; flex-direction: column; gap: var(--s3);
}
.night-copy > * { max-width: var(--max); width: 100%; margin-inline: auto; }
.night-copy .body { margin-inline: auto; max-width: var(--max); }
.night-copy .body { color: var(--on-night-2); }
.night-grid { max-width: var(--max); margin: var(--s6) auto 0; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1rem, 2vw, 1.75rem); align-items: end; }
.night-grid img { width: 100%; object-fit: cover; }
.n1 img { aspect-ratio: 3 / 2; }
.n2 img { aspect-ratio: 3 / 4; border-radius: 1000px 1000px 0 0; }

/* PROCESS */
.process { padding: var(--s7) 0; border-top: 1px solid var(--line-night); }
.steps { margin-top: var(--s6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { padding: 0 clamp(1rem, 2vw, 2rem) 0 0; }
.steps li + li { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--line-night); }
.steps h3 { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 1.5rem + 1.8vw, 3.2rem); line-height: 1.2; color: var(--on-night); }
.steps li:first-child h3 { color: var(--accent-night); }
.steps p { margin-top: var(--s2); max-width: 30ch; }

/* REVIEWS */
.reviews { padding: var(--s7) 0; }
.rev-grid { margin-top: var(--s6); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.rev { margin: 0; padding-top: var(--s3); border-top: 1px solid var(--line-night); }
.rev blockquote { margin: 0; }
.rev p { font-family: var(--display); font-weight: 300; font-size: 1.3rem; line-height: 1.5; color: var(--on-night); }
.rev p[lang="th"] { line-height: 1.7; }
.rev-lg { grid-column: 1 / span 7; grid-row: span 2; }
.rev-lg p { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.3; font-style: italic; }
.rev:nth-of-type(2) { grid-column: 8 / span 5; }
.rev:nth-of-type(3) { grid-column: 8 / span 5; }
.rev figcaption { color: var(--muted-night); }
.rating {
  grid-column: 1 / span 7; align-self: end; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1rem; text-decoration: none; color: var(--on-night);
}
.rating-num { font-family: var(--display); font-size: 3.4rem; line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: var(--accent-night); }
.stars .i { width: 1rem; height: 1rem; }
.rating-lbl { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--on-night-2); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.faq { padding: var(--s7) 0; }
.faq-list { margin-top: var(--s5); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line-night); align-items: start; }
.faq details { border-bottom: 1px solid var(--line-night); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 72px; padding: 1rem 0; font-family: var(--display); font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); color: var(--on-night);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .4s var(--ease); color: var(--accent-night); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; max-width: 58ch; }

/* PLAN */
.plan { padding: var(--s7) 0 var(--s8); border-top: 1px solid var(--line-night); }
.plan-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.plan-copy { display: flex; flex-direction: column; gap: var(--s3); position: sticky; top: calc(var(--nav-h) + 2rem); }
.phone-big { margin-top: var(--s2); display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); text-decoration: none; color: var(--on-night); width: fit-content; border-bottom: 1px solid var(--line-night); padding-bottom: 0.3rem; transition: border-color .3s var(--ease); }
.phone-big:hover { border-color: var(--accent-night); }
.phone-big .i { color: var(--accent-night); width: 0.8em; height: 0.8em; }
.brief { display: flex; flex-direction: column; gap: var(--s3); background: var(--night-2); padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--line-night); }
.field { display: flex; flex-direction: column; gap: 0.5rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field label, .field legend { font-size: var(--fs-sm); font-weight: 500; color: var(--on-night); padding: 0; }
.field legend { margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.9rem; border: 1px solid var(--field-border); border-radius: 0; background: var(--field); color: var(--on-night);
  transition: border-color .25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; font-size: 0.95rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-night) 50%), linear-gradient(135deg, var(--muted-night) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--field-border-hover); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-night); outline-offset: 0; border-color: var(--accent-night); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--field-border); color: var(--on-night-2); font-size: 0.9375rem; transition: all .25s var(--ease); cursor: pointer; }
.chip input:hover + span { border-color: var(--field-border-hover); }
.chip input:checked + span { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-night); outline-offset: 2px; }
.help { font-size: var(--fs-sm); }
.brief-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.brief .btn-ghost { color: var(--on-night); }
.brief .btn-ghost:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.status:empty { display: none; }

/* FOOTER */
.foot { background: var(--foot); color: var(--on-night-2); padding: var(--s7) 0 var(--s4); font-size: 0.9375rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: var(--s5); }
.foot-brand .big { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); color: var(--on-night); line-height: 1; }
.foot-brand .brand-th { display: inline-block; margin-top: 0.8rem; border: 0; padding: 0; color: var(--muted-night); font-size: 1.05rem; }
.foot-h { font-family: var(--body); font-size: var(--fs-sm); font-weight: 500; color: var(--muted-night); margin-bottom: 0.8rem; }
.foot p, .foot address { line-height: 1.8; font-style: normal; }
.foot p + p { margin-top: 0.8rem; }
.link-i, .social a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 36px; }
.foot .muted { color: var(--muted-night); }
.foot-base { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--foot-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: var(--fs-sm); color: var(--muted-night); }

/* Reveal on scroll: section headings and figures ease in once */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s5); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: var(--s5); padding-top: calc(var(--nav-h) + 2rem); }
  .hero-arch { justify-self: center; width: min(100% - 32px, 420px); margin: 16px auto 0; max-height: none; }
  .hero h1 { font-size: clamp(1.8rem, 8.4vw, 3.3rem); }
  /* Phones (and LINE's short in-app viewport): less sky, more set, photo reached sooner */
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); gap: var(--s4); }
  .hero .lede { margin-top: var(--s3); }
  .hero .cta-row { margin-top: var(--s4); }
  .hero-arch { aspect-ratio: 4 / 5; }
  .hero-arch img { object-position: 60% 78%; }
  .proof { grid-template-columns: 1fr; }
  .venues { grid-template-columns: repeat(2, max-content); }
  .story, .plan-in { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .story-img { max-width: 520px; }
  .plan-copy { position: static; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .svc-list li { padding-left: 0; display: grid; grid-template-columns: 96px 1fr; column-gap: 1.1rem; align-items: start; }
  .svc-list li::before { display: none; }
  .svc-thumb { display: block; grid-row: span 2; width: 96px; height: 120px; object-fit: cover; border-radius: 1000px 1000px 0 0; }
  .svc-list li.is-on h3 { transform: none; }
  .morning-copy { margin-left: 0; }
  .rev-lg, .rev:nth-of-type(2), .rev:nth-of-type(3), .rating { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  .brand-th { display: none; }
  .nav-end { gap: 0.5rem; }
  .nav .btn-sm { padding: 0 0.8rem; }
  .worlds-head { grid-template-columns: 1fr; }
  .venues { grid-template-columns: 1fr; font-size: 1.1rem; }
  .track-ctl { display: none; }
  .track { grid-auto-columns: 78vw; }
  .morning-grid { grid-template-columns: 1fr 1fr; }
  .m1 { grid-column: 1 / -1; grid-row: 1; }
  .m2 { grid-column: 2; grid-row: 2 / 4; }
  .m3 { grid-column: 1; grid-row: 2; }
  .m4 { grid-column: 1; grid-row: 3; }
  .night-grid { grid-template-columns: 1fr; }
  .n2 { width: 72%; justify-self: end; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 0 0 var(--s3); border-left: 0; border-bottom: 1px solid var(--line-night); }
  .field-row { grid-template-columns: 1fr; }
  .brief-actions .btn { flex: 1 1 100%; }
  .foot-in { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (max-width: 430px) {
  .brand { gap: 0.45rem; }
  .brand-mark { width: 15px; height: 20px; }
  .brand-word { font-size: 1.05rem; }
  .nav-in { gap: 0.6rem; }
  .lang button { min-width: 40px; padding: 0 0.45rem; }
  .nav .btn-sm { padding: 0 0.7rem; font-size: 0.875rem; }
}
@media (max-width: 350px) {
  .nav .btn-sm { display: none; }
}
