/* Hua Hin Sea View Paradise - property site
   One theme per page (dark default, light via toggle). Radius system:
   media 28px (20px < 768px), controls full pill. One accent: sunrise coral. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2-variations"), url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;

  --bg: #0a0c0e;
  --bg-raised: #121518;
  --surface: #171b1f;
  --text: #f3f2ef;
  --text-2: #a9afb4;
  --text-3: #7d848a;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.18);
  --accent: #ff9a62;
  --accent-ink: #1e0f06;
  --accent-soft: rgb(255 154 98 / 0.14);
  --nav-bg: rgb(10 12 14 / 0.72);
  --shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6);
  --scrim: linear-gradient(to top, rgb(6 8 10 / 0.78) 0%, rgb(6 8 10 / 0.35) 38%, rgb(6 8 10 / 0) 65%);

  --r-media: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f5f6;
  --bg-raised: #ffffff;
  --surface: #e9ecee;
  --text: #0f1215;
  --text-2: #4f575e;
  --text-3: #6b737a;
  --line: rgb(15 18 21 / 0.1);
  --line-strong: rgb(15 18 21 / 0.18);
  --accent: #b8461a;
  --accent-ink: #ffffff;
  --accent-soft: rgb(184 70 26 / 0.1);
  --nav-bg: rgb(244 245 246 / 0.76);
  --shadow: 0 30px 80px -24px rgb(30 40 50 / 0.28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 400ms ease, color 400ms ease;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line-strong) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 2px solid var(--bg); }

.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: top 200ms var(--ease-out); }
.skip:focus { top: 12px; }

.h2 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); }
.lede { color: var(--text-2); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 58ch; }
.section { padding-block: clamp(80px, 10vw, 144px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 0;
  font-size: 1rem; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: rgb(255 255 255 / 0.12); color: #fff; backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.btn--quiet { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { --h: 36px; padding: 0 16px; font-size: 0.875rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: 0 10px 30px -10px var(--accent); }
  .btn--ghost:hover { background: rgb(255 255 255 / 0.2); }
  .btn--quiet:hover { background: var(--bg-raised); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 60px;
  transition: background-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
  color: #fff;
}
.nav.is-solid { background: var(--nav-bg); color: var(--text); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; font-size: 1rem; white-space: nowrap; }
@media (max-width: 480px) { .brand { font-size: 0.875rem; gap: 0; } .brand svg { display: none; } .nav__inner { gap: 10px; } .nav__actions { gap: 6px; } .nav .btn--sm { padding: 0 12px; } }
@media (max-width: 380px) { .brand { font-size: 0.8125rem; letter-spacing: -0.03em; } .theme-toggle { width: 32px; height: 32px; } .nav .btn--sm { padding: 0 10px; font-size: 0.8125rem; } }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.nav__links { display: flex; gap: 4px; margin-inline: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a { display: block; padding: 6px 12px; border-radius: 99px; font-size: 0.875rem; text-decoration: none; opacity: 0.82; transition: opacity 150ms ease, background-color 150ms ease; }
.nav__links a:hover { opacity: 1; background: rgb(127 127 127 / 0.14); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__links + .nav__actions { margin-left: 0; }
.theme-toggle {
  position: relative; width: 36px; height: 36px; border-radius: 99px; border: 0; cursor: pointer;
  background: rgb(127 127 127 / 0.16); display: grid; place-items: center;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle .i { position: absolute; width: 18px; height: 18px; transition: opacity 250ms var(--ease-out), transform 350ms var(--ease-out), filter 250ms ease; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-60deg) scale(0.6); filter: blur(2px); }
:root[data-theme="light"] .theme-toggle .i-sun { opacity: 1; transform: none; filter: none; }
:root[data-theme="light"] .theme-toggle .i-moon { opacity: 0; transform: rotate(60deg) scale(0.6); filter: blur(2px); }
@media (max-width: 899px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 165vh; --p: 0; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: grid; }
.hero__media {
  position: absolute; inset: 0; overflow: hidden;
  background: #1a1410 url("../img/hero-lqip.webp") center / cover no-repeat;
  clip-path: inset(calc(var(--p) * 6vh) calc(var(--p) * var(--gutter)) round calc(var(--p) * var(--r-media)));
  will-change: clip-path;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(calc(1.14 - var(--p) * 0.14)); will-change: transform; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--scrim); opacity: calc(1 - var(--p) * 0.5); }
.hero__copy {
  position: relative; align-self: end; padding-bottom: clamp(48px, 9vh, 96px); color: #fff;
  opacity: calc(1 - var(--p) * 2.2); transform: translateY(calc(var(--p) * -10vh)); filter: blur(calc(var(--p) * 10px));
}
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 6rem); max-width: 12ch; letter-spacing: -0.04em; }
.hero__sub { margin-top: 20px; max-width: 44ch; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); color: rgb(255 255 255 / 0.86); }
.hero__sub strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* load-in: the one authored entrance */
.js .hero [data-enter] { opacity: 0; transform: translateY(18px); filter: blur(8px); }
.js.is-loaded .hero [data-enter] { opacity: 1; transform: none; filter: none; transition: opacity 1000ms var(--ease-expo), transform 1100ms var(--ease-expo), filter 900ms var(--ease-expo); transition-delay: calc(var(--d, 0) * 90ms + 150ms); }
.js .hero__media img { opacity: 0; transition: opacity 1200ms var(--ease-out); }
.js .hero__media img.is-ready { opacity: 1; }

/* ---------- Statement (scroll-lit) ---------- */
.statement { padding-block: clamp(80px, 12vw, 180px) clamp(64px, 8vw, 120px); --p: 0; }
.statement__text { font-size: clamp(1.75rem, 3.7vw, 3.375rem); font-weight: 560; letter-spacing: -0.03em; line-height: 1.16; max-width: 24ch; }
.statement__text .w { opacity: clamp(0.16, calc(var(--p) * var(--n) - var(--i) + 1), 1); transition: opacity 120ms linear; }
.statement__text .w--accent { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: clamp(56px, 8vw, 104px) 0 0; padding: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.facts div { display: grid; gap: 6px; }
.facts dt { color: var(--text-2); font-size: 0.9375rem; display: flex; align-items: center; gap: 8px; }
.facts dt .i { color: var(--accent); }
.facts dd { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.facts dd small { font-size: 0.5em; font-weight: 500; color: var(--text-2); margin-left: 2px; }
@media (min-width: 768px) and (max-width: 1099px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 767px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* ---------- Views (pinned sequence) ---------- */
.views { position: relative; height: 340vh; --p: 0; }
.views__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.views__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); filter: blur(6px); transition: opacity 900ms var(--ease-out), transform 1600ms var(--ease-out), filter 900ms var(--ease-out); }
.views__img.is-active { opacity: 1; transform: scale(1); filter: none; }
.views__img img { width: 100%; height: 100%; object-fit: cover; }
.views__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(6 8 10 / 0.72) 0%, rgb(6 8 10 / 0.25) 45%, rgb(6 8 10 / 0) 70%), linear-gradient(to top, rgb(6 8 10 / 0.5), transparent 40%); pointer-events: none; }
.views__copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; color: #fff; pointer-events: none; }
.views__copy .h2 { max-width: 11ch; }
.views__steps { position: relative; margin-top: 36px; min-height: 9.5em; max-width: 36ch; }
.views__step { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out), filter 500ms var(--ease-out); }
.views__step.is-active { opacity: 1; transform: none; filter: none; }
.views__step h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.views__step h3 .i { color: var(--accent); }
:root[data-theme="light"] .views__step h3 .i { color: #ff9a62; }
.views__step p { margin-top: 10px; color: rgb(255 255 255 / 0.84); font-size: 1.125rem; }
.views__index { display: flex; gap: 8px; margin-top: 8px; list-style: none; padding: 0; }
.views__index li { width: 36px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.28); overflow: hidden; }
.views__index li::after { content: ""; display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.views__index li.is-past::after, .views__index li.is-active::after { transform: scaleX(1); }

/* ---------- Residence bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, clamp(200px, 22vw, 330px)); gap: clamp(10px, 1.2vw, 16px); }
.tile { position: relative; overflow: hidden; border-radius: var(--r-media); border: 0; padding: 0; cursor: zoom-in; background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tile--a { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile--b { grid-column: 3 / 5; grid-row: 1; }
.tile--c { grid-column: 3; grid-row: 2; }
.tile--d { grid-column: 4; grid-row: 2; }
.tile--e { grid-column: 1 / 3; grid-row: 3; }
.tile--f { grid-column: 3 / 5; grid-row: 3; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.035); } }
.js .tile[data-reveal] { clip-path: inset(14% 0 0 0 round var(--r-media)); opacity: 0.001; }
.js .tile[data-reveal] img { transform: scale(1.12); }
.js .tile[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r-media)); opacity: 1; transition: clip-path 1100ms var(--ease-expo), opacity 500ms ease; transition-delay: calc(var(--d, 0) * 70ms); }
.js .tile[data-reveal].is-in img { transform: scale(1); transition: transform 1400ms var(--ease-expo); transition-delay: calc(var(--d, 0) * 70ms); }
.residence__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.residence__foot p { color: var(--text-2); max-width: 52ch; }
@media (max-width: 767px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 44vw; }
  .tile--a { grid-column: 1 / -1; grid-row: span 2; }
  .tile--b, .tile--e, .tile--f { grid-column: 1 / -1; grid-row: auto; }
  .tile--c, .tile--d { grid-column: auto; grid-row: auto; }
  :root { --r-media: 20px; }
}

/* ---------- Film ---------- */
.film { --p: 0; }
.film__frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--r-media); background: #000;
  transform: scale(calc(0.86 + var(--p) * 0.14)); box-shadow: var(--shadow); will-change: transform;
}
.film__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: none; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out), filter 400ms ease; }
.film__poster::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.28); transition: background-color 300ms ease; }
.film__play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px 0 22px; border-radius: 99px; color: #fff; font-weight: 550; font-size: 1.0625rem; background: rgb(255 255 255 / 0.16); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28), 0 18px 40px -12px rgb(0 0 0 / 0.5); transition: transform 200ms var(--ease-out); }
.film__play .i { width: 26px; height: 26px; }
.film__poster:active .film__play { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .film__poster:hover img { transform: scale(1.03); } .film__poster:hover::after { background: rgb(0 0 0 / 0.18); } }
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film .section-head { justify-items: start; }

/* ---------- Amenities ---------- */
.amenities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.amenities section { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.amenities h3 { font-size: 1.125rem; letter-spacing: -0.015em; margin-bottom: 18px; }
.amenities ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.amenities li { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.amenities li .i { color: var(--text); width: 22px; height: 22px; }
@media (max-width: 1023px) { .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .amenities { grid-template-columns: 1fr; } }

/* ---------- Neighborhood rail ---------- */
.hood { overflow: clip; }
.rail { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; flex: none; scroll-snap-align: start; width: clamp(280px, 38vw, 560px); }
.rail figure.is-tall { width: clamp(220px, 22vw, 340px); }
.rail .shot { display: block; width: 100%; height: clamp(360px, 36vw, 560px); border-radius: var(--r-media); overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: var(--surface); }
.rail .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rail .shot:hover img { transform: scale(1.04); } }
.rail figcaption { margin-top: 14px; color: var(--text-2); font-size: 0.9375rem; }
.rail figcaption strong { color: var(--text); font-weight: 550; }
.rail-ctrl { display: flex; gap: 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 99px; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); transition: transform 160ms var(--ease-out), opacity 200ms ease, background-color 200ms ease; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.hood__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hood__head .section-head { margin-bottom: 0; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.places { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.places li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; }
.places li + li { border-top: 1px solid var(--line); }
.places .i { color: var(--accent); width: 22px; height: 22px; }
.places span:last-child { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 0.9375rem; text-align: right; }
.map { position: relative; min-height: 440px; border-radius: var(--r-media); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
:root:not([data-theme="light"]) .map iframe { filter: grayscale(0.25) brightness(0.88) contrast(1.05); }
.map__open { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
@media (max-width: 899px) { .location { grid-template-columns: 1fr; } .map { min-height: 360px; } }

/* ---------- Price ---------- */
.price { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.price__figure { font-size: clamp(3rem, 8.6vw, 7.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; font-variant-numeric: tabular-nums; margin-top: 28px; }
.price__figure [data-amount] { display: inline-block; transition: opacity 220ms var(--ease-out), filter 220ms var(--ease-out), transform 220ms var(--ease-out); }
.price__figure.is-swapping [data-amount] { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.price__note { margin-top: 18px; color: var(--text-2); max-width: 46ch; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { position: relative; z-index: 1; border: 0; background: none; height: 36px; padding: 0 18px; border-radius: 99px; cursor: pointer; font-size: 0.875rem; font-weight: 550; color: var(--text-2); transition: color 200ms ease; }
.seg button[aria-pressed="true"] { color: var(--text); }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--bg-raised); box-shadow: 0 2px 8px -2px rgb(0 0 0 / 0.3), inset 0 0 0 1px var(--line); transition: transform 300ms var(--ease-out); }
.seg[data-cur="usd"] .seg__pill { transform: translateX(100%); }
.terms { margin: 0; padding: 0; display: grid; gap: 0; }
.terms div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.terms div:first-child { border-top: 1px solid var(--line); }
.terms dt { color: var(--text-2); }
.terms dd { margin: 0; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .price { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 550; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform 250ms var(--ease-out); color: var(--text-2); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 0 26px; color: var(--text-2); max-width: 66ch; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- Inquire ---------- */
.inquire { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-block: clamp(120px, 16vw, 220px); }
.inquire__bg { position: absolute; inset: 0; z-index: -1; }
.inquire__bg img { width: 100%; height: 100%; object-fit: cover; }
.inquire__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(6 8 10 / 0.85), rgb(6 8 10 / 0.45) 60%, rgb(6 8 10 / 0.3)); }
.inquire .h2 { font-size: clamp(2.5rem, 6.4vw, 5.5rem); max-width: 12ch; }
.inquire p { margin-top: 22px; max-width: 46ch; color: rgb(255 255 255 / 0.86); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.inquire__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.inquire .btn--primary { background: #ff9a62; color: #1e0f06; }
.inquire__meta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px 28px; color: rgb(255 255 255 / 0.78); font-size: 0.9375rem; }
.inquire__meta a { color: #fff; }

/* ---------- Footer ---------- */
.footer { padding-block: 48px 64px; color: var(--text-3); font-size: 0.875rem; border-top: 1px solid var(--line); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.footer a { color: var(--text-2); }
.footer p + p { margin-top: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }

/* ---------- Generic reveal ---------- */
.js [data-reveal]:not(.tile) { opacity: 0; transform: translateY(28px); }
.js [data-reveal]:not(.tile).is-in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-expo), transform 1000ms var(--ease-expo); transition-delay: calc(var(--d, 0) * 80ms); }

/* ---------- Lightbox ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 8 10 / 0.94); color: #fff; overflow: hidden; }
.lb::backdrop { background: rgb(6 8 10 / 0.6); backdrop-filter: blur(8px); }
.lb[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; animation: lb-in 260ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); gap: 16px; }
.lb__count { font-size: 0.875rem; color: rgb(255 255 255 / 0.7); font-variant-numeric: tabular-nums; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; animation: lb-img 380ms var(--ease-out); }
@keyframes lb-img { from { opacity: 0; transform: scale(0.97); filter: blur(4px); } }
.lb__caption { text-align: center; color: rgb(255 255 255 / 0.76); font-size: 0.9375rem; padding: 12px var(--gutter) 0; }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lb__nav--prev { left: clamp(8px, 2vw, 28px); }
.lb__nav--next { right: clamp(8px, 2vw, 28px); }
.lb .icon-btn { background: rgb(255 255 255 / 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); }
.lb__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter) 18px; scrollbar-width: none; justify-content: safe center; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex: none; width: 72px; height: 48px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: 0.45; transition: opacity 200ms ease, box-shadow 200ms ease; }
.lb__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .lb__nav { display: none; } .lb__stage { padding: 0 8px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__media, .hero__media img, .hero__copy, .film__frame { clip-path: none !important; transform: none !important; filter: none !important; opacity: 1 !important; }
  .views { height: auto; }
  .views__stage { position: relative; height: auto; display: grid; gap: 0; }
  .views__img { position: relative; opacity: 1; transform: none; filter: none; height: 70vh; }
  .views__stage::after { display: none; }
  .views__copy { position: relative; color: var(--text); padding-block: 64px; }
  .views__steps { min-height: 0; display: grid; gap: 28px; }
  .views__step { position: static; opacity: 1; transform: none; filter: none; }
  .views__step p { color: var(--text-2); }
  .views__index { display: none; }
  .statement__text .w { opacity: 1; }
  .js [data-reveal], .js [data-reveal] img, .js .hero [data-enter] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
