/* Sella Mar Residences -- CALA SELLA dusk system. Fictional demo site.
   Chalk canvas, ink inverted bands, soft gold, glass chips over photography.
   Motion: transform / opacity / clip-path (+ measured height for accordions).
   No libraries. Edit here, then `node build/build.mjs`; never hand-edit design/. */

:root {
  --chalk: #faf9f6;
  --chalk-2: #f1efe9;
  --ink: #101113;
  --ink-2: #16181b;
  --ink-soft: #2a2d31;
  --gold: #c69a62;
  --gold-2: #d9b787;
  --slate: #5f758b;
  --line: rgba(16, 17, 19, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --tx-chalk: #101113;
  --tx-dim: rgba(16, 17, 19, 0.62);
  --tx-light: #f5f3ee;
  --tx-light-dim: rgba(245, 243, 238, 0.6);
  --r-shell: 44px;
  --r-card: 30px;
  --r-chip: 22px;
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --pad: clamp(22px, 4.5vw, 76px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--chalk);
  color: var(--tx-chalk);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #fff; }

.skip {
  position: fixed; left: 18px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 999px;
  text-decoration: none; font-weight: 500; transition: transform 0.25s var(--ease);
}
.skip:focus { top: 14px; outline: 2px solid var(--gold); outline-offset: 2px; }

a:focus-visible, button:focus-visible, input:focus-visible, .faq-q:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}

/* ---------------------------------------------------------------- */
/* Type                                                              */
/* ---------------------------------------------------------------- */

h1, h2, h3 { font-weight: 500; line-height: 1.04; letter-spacing: -0.025em; }
.display { font-size: clamp(2.7rem, 7.2vw, 6.6rem); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -0.01em; }

.gold-i {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 460;
  letter-spacing: 0;
  color: var(--gold);
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--tx-dim);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.on-ink .kicker { color: var(--tx-light-dim); }

.lead { font-size: clamp(1rem, 1.35vw, 1.2rem); color: var(--tx-dim); max-width: 54ch; }
.on-ink .lead { color: var(--tx-light-dim); }

.fine { font-size: 0.78rem; color: var(--tx-dim); }
.on-ink .fine { color: var(--tx-light-dim); }

/* Word-by-word reveal: build wraps words in .w > .wi */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w .wi { display: inline-block; }
html.js .anim-words .wi {
  transform: translateY(112%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--wd, 0s);
}
html.js .anim-words.words-in .wi,
html.js .anim-words.in .wi,
html.js .in .anim-words .wi,
html.js .hero-on .anim-words .wi { transform: translateY(0); }

/* ---------------------------------------------------------------- */
/* Shells: rounded page-width bands (the device-frame language)      */
/* ---------------------------------------------------------------- */

.shell {
  max-width: 1560px;
  margin: 0 auto;
  border-radius: var(--r-shell);
  overflow: clip;
  position: relative;
}
main > .shell + .shell, main > .shell:first-child { margin-top: 14px; }
@media (min-width: 1600px) { .shell { margin-left: auto; margin-right: auto; } }
@media (max-width: 1600px) { .shell { margin-left: 12px; margin-right: 12px; } }
@media (max-width: 640px) { .shell { margin-left: 8px; margin-right: 8px; border-radius: 30px; } }

.on-ink { background: var(--ink); color: var(--tx-light); }
.on-chalk { background: var(--chalk-2); }

.sect { padding: clamp(64px, 9vw, 130px) var(--pad); }
main > .sect { max-width: 1560px; margin: 0 auto; }
.foot-shell { margin-top: 14px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- */
/* Glass chips                                                       */
/* ---------------------------------------------------------------- */

.chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 14px 22px;
  border-radius: var(--r-chip);
  background: rgba(20, 22, 25, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.35;
  box-shadow: 0 18px 44px rgba(10, 12, 14, 0.28);
}
.chip b { font-weight: 600; }
.chip .c-sub { font-size: 0.76rem; color: rgba(255, 255, 255, 0.78); }
.chip .c-sub b { color: var(--gold-2); }

html.js .chip-anim { opacity: 0; transform: translateY(18px); }
html.js .chip-anim { transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease); transition-delay: var(--cd, 0.15s); }
html.js .in .chip-anim, html.js .hero-on .chip-anim { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */

.pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 36px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  overflow: clip;
  isolation: isolate;
  transition: transform 0.45s var(--ease);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateX(-102%);
  transition: transform 0.55s var(--ease);
  border-radius: inherit;
}
.pill:hover { transform: translateY(-2px); }
.pill:hover::before, .pill:focus-visible::before { transform: translateX(0); }
.pill svg { width: 17px; height: 17px; transition: transform 0.45s var(--ease); }
.pill:hover svg { transform: translateX(4px); }

.pill--ghost { background: transparent; color: inherit; border: 1px solid var(--line); }
.on-ink .pill--ghost, .hero .pill--ghost { border-color: var(--line-light); }
.pill--ghost::before { background: var(--gold); }
.pill--ghost:hover { color: #fff; }

.pill--ink { background: var(--ink); }
.pill--ink::before { background: var(--gold); }

/* ---------------------------------------------------------------- */
/* Header                                                            */
/* ---------------------------------------------------------------- */

.hdr {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px clamp(22px, 3.5vw, 48px);
  color: #fff;
}
html.js .hero-hdr { opacity: 0; transform: translateY(-14px); transition: opacity 0.9s var(--ease-soft) 0.5s, transform 0.9s var(--ease) 0.5s; }
html.js .hero-on .hero-hdr { opacity: 1; transform: translateY(0); }

.wordmark { font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--gold-2); }

.hdr nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.hdr nav a {
  position: relative; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.86); padding: 4px 0;
}
.hdr nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.hdr nav a:hover::after, .hdr nav a[aria-current="page"]::after { transform: scaleX(1); }

.hdr-phone {
  display: inline-flex; padding: 11px 22px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(20, 22, 25, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff; text-decoration: none; font-size: 0.88rem; font-weight: 500;
  white-space: nowrap; transition: transform 0.4s var(--ease);
}
.hdr-phone:hover { transform: translateY(-2px); }

@media (max-width: 900px) { .hdr nav { display: none; } }
@media (max-width: 560px) { .hdr-phone { display: none; } }

/* ---------------------------------------------------------------- */
/* Hero                                                              */
/* ---------------------------------------------------------------- */

.hero { min-height: clamp(620px, 100svh, 1080px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.hero-media { position: absolute; inset: 0; overflow: clip; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
html.js .hero-media img { transform: scale(1.14); transition: transform 2.6s var(--ease-soft); }
html.js .hero-on .hero-media img { transform: scale(1.02); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 15, 0.42) 0%, rgba(12, 13, 15, 0.05) 34%, rgba(12, 13, 15, 0.12) 62%, rgba(12, 13, 15, 0.66) 100%);
}

.hero-body {
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(44px, 6vw, 84px);
  display: grid; gap: clamp(22px, 3vw, 36px);
}
.hero h1 { max-width: 11ch; text-wrap: balance; }
.hero .lead { color: rgba(255, 255, 255, 0.82); }
html.js .hero-lead, html.js .hero-cta { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease); }
html.js .hero-lead { transition-delay: 1.25s; }
html.js .hero-cta { transition-delay: 1.4s; }
html.js .hero-on .hero-lead, html.js .hero-on .hero-cta { opacity: 1; transform: translateY(0); }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-chip { position: absolute; z-index: 3; right: clamp(20px, 4vw, 64px); top: clamp(96px, 16vh, 190px); max-width: 250px; }
html.js .hero-chip { opacity: 0; transform: translateY(-24px); transition: opacity 1s var(--ease-soft) 1.1s, transform 1s var(--ease) 1.1s; }
html.js .hero-on .hero-chip { opacity: 1; transform: translateY(0); }

.hero-stats {
  display: flex; gap: clamp(22px, 4vw, 56px); flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: clamp(18px, 2.4vw, 28px);
}
.hero-stats .hs { display: grid; gap: 2px; }
.hero-stats .hs b { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; }
.hero-stats .hs b i { font-style: normal; color: var(--gold-2); }
.hero-stats .hs span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.66); }
html.js .hero-stats { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-soft) 1.55s, transform 1s var(--ease) 1.55s; }
html.js .hero-on .hero-stats { opacity: 1; transform: translateY(0); }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px;
  color: rgba(255, 255, 255, 0.75); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.scroll-cue svg { width: 18px; height: 44px; }
.scroll-cue .cue-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .hero-on .scroll-cue .cue-line { animation: cue-draw 2.1s var(--ease-soft) 1.9s infinite; }
@keyframes cue-draw {
  0% { stroke-dashoffset: 1; opacity: 0; }
  30% { opacity: 1; }
  62% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
html.js .scroll-cue { opacity: 0; transition: opacity 1s var(--ease-soft) 1.9s; }
html.js .hero-on .scroll-cue { opacity: 1; }
@media (max-width: 700px) { .hero-chip { display: none; } }

/* ---------------------------------------------------------------- */
/* Reveal primitives                                                 */
/* ---------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.95s var(--ease-soft), transform 0.95s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].in { opacity: 1; transform: translateY(0); }
html.js [data-reveal="left"] { transform: translateX(-36px); }
html.js [data-reveal="right"] { transform: translateX(36px); }
html.js [data-reveal="left"].in, html.js [data-reveal="right"].in { transform: translateX(0); }

/* Parallax frames: outer stays static & rounded, inner img oversized */
.plx-frame { overflow: clip; border-radius: var(--r-card); position: relative; }
.plx-frame img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }

/* ---------------------------------------------------------------- */
/* Section heads                                                     */
/* ---------------------------------------------------------------- */

.sect-head { display: grid; gap: 18px; margin-bottom: clamp(38px, 5vw, 72px); }
.sect-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- */
/* Villas                                                            */
/* ---------------------------------------------------------------- */

.villas { display: grid; gap: clamp(28px, 4vw, 56px); }

.villa {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-card) + 10px);
  padding: clamp(12px, 1.4vw, 18px);
}
.v-top { position: relative; border-radius: var(--r-card); overflow: clip; aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .v-top { aspect-ratio: 4 / 3.4; } }
/* hover zoom lives on .v-zoom so the parallax translate on the img
   (inline, from JS) and the scale never fight over one transform */
.v-zoom { position: absolute; inset: 0; overflow: clip; transition: transform 1.4s var(--ease-soft); }
.villa:hover .v-zoom, .villa:focus-within .v-zoom { transform: scale(1.045); }
.v-top img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.v-top::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(12, 13, 15, 0) 44%, rgba(12, 13, 15, 0.38) 100%);
}

.v-chips { position: absolute; z-index: 2; inset: 0; padding: clamp(14px, 2vw, 26px); display: flex; flex-wrap: wrap; align-content: flex-end; gap: 10px; pointer-events: none; }
.v-chips .chip { transition-property: opacity, transform; }
.villa:hover .v-chips .chip { transform: translateY(-4px); transition: transform 0.6s var(--ease); }
html.js .villa:hover .v-chips .chip-anim { transition: opacity 0.8s var(--ease-soft), transform 0.6s var(--ease); }

.v-name { position: absolute; z-index: 2; top: clamp(16px, 2.2vw, 28px); left: clamp(16px, 2.2vw, 28px); color: #fff; display: grid; gap: 2px; }
.v-name .no { font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.v-name h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.02em; text-shadow: 0 2px 26px rgba(10, 12, 14, 0.45); }

.v-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: clamp(16px, 2vw, 24px) clamp(8px, 1.4vw, 16px) clamp(6px, 1vw, 10px); }
.v-bar p { color: var(--tx-dim); max-width: 52ch; font-size: 0.95rem; }
.v-toggle { flex-shrink: 0; }
.v-toggle .chev { display: inline-grid; place-items: center; }
.v-toggle svg { transition: transform 0.5s var(--ease); }
.v-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Expanding detail panel */
.v-detail { overflow: clip; }
html.js .v-detail { height: 0; transition: height 0.7s var(--ease); }
html.js .v-detail .v-detail-in {
  opacity: 0; transform: translateY(14px);
  clip-path: inset(0 0 12% 0 round var(--r-card));
  transition: opacity 0.55s var(--ease-soft), transform 0.55s var(--ease), clip-path 0.55s var(--ease);
}
html.js .v-detail.open .v-detail-in { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0 round var(--r-card)); transition-delay: 0.16s; }

.v-detail-in {
  margin: 10px clamp(8px, 1.4vw, 16px) clamp(10px, 1.4vw, 16px);
  background: var(--chalk-2);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .v-detail-in { grid-template-columns: 1fr; } }

.plan { width: 100%; height: auto; }
.plan .pl { stroke: var(--ink); stroke-width: 1.5; fill: none; stroke-linecap: square; }
.plan .pl--gold { stroke: var(--gold); }
.plan .pl-label { font: 500 6.4px var(--font-sans); letter-spacing: 0.08em; fill: rgba(16, 17, 19, 0.55); text-transform: uppercase; }
html.js .plan .pl { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .open .plan .pl { animation: plan-draw 1.1s var(--ease-soft) forwards; animation-delay: calc(0.25s + var(--pi, 0) * 0.12s); }
html.js .plan .pl-label { opacity: 0; transition: opacity 0.6s var(--ease-soft) 1.1s; }
html.js .open .plan .pl-label { opacity: 1; }
@keyframes plan-draw { to { stroke-dashoffset: 0; } }
.plan-cap { margin-top: 10px; }

.spec { list-style: none; display: grid; }
.spec li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.spec li:first-child { border-top: 1px solid var(--line); }
.spec li b { font-weight: 500; text-align: right; }
.spec li b i { font-style: normal; color: var(--gold); font-weight: 600; }
html.js .spec li { opacity: 0; transform: translateX(-16px); transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease); transition-delay: calc(0.3s + var(--si, 0) * 0.06s); }
html.js .open .spec li { opacity: 1; transform: translateX(0); }
.v-price { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.v-price b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.v-price b span { color: var(--gold); }

/* ---------------------------------------------------------------- */
/* Life at Cala Sella (ink editorial band)                           */
/* ---------------------------------------------------------------- */

.life-head { max-width: 25ch; }
.life-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(18px, 2.6vw, 32px);
  align-items: stretch;
}
@media (max-width: 860px) { .life-grid { grid-template-columns: 1fr; } }
.life-a { aspect-ratio: 16 / 10; }
.life-col { display: grid; gap: clamp(18px, 2.6vw, 32px); align-content: stretch; }
.life-b { aspect-ratio: 16 / 11; }
.life-copy {
  background: var(--ink-2); border: 1px solid var(--line-light);
  border-radius: var(--r-card); padding: clamp(20px, 2.6vw, 34px);
  display: grid; gap: 12px; align-content: center;
}
.life-copy p { color: var(--tx-light-dim); font-size: 0.95rem; }
.life-c { aspect-ratio: 21 / 9; margin-top: clamp(18px, 2.6vw, 32px); }
.life-chip { position: absolute; left: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 26px); z-index: 2; }

/* ---------------------------------------------------------------- */
/* Numbers band                                                      */
/* ---------------------------------------------------------------- */

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); }
@media (max-width: 980px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .numbers { grid-template-columns: 1fr; } }
.num { border-top: 1px solid var(--line-light); padding-top: 20px; display: grid; gap: 6px; align-content: start; }
.num b { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.num b .unit { color: var(--gold-2); font-weight: 500; }
.num span { color: var(--tx-light-dim); font-size: 0.9rem; max-width: 24ch; }

/* ---------------------------------------------------------------- */
/* Viewing form                                                      */
/* ---------------------------------------------------------------- */

.view-grid { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .view-grid { grid-template-columns: 1fr; } }

.vform { display: grid; gap: 14px; max-width: 460px; position: relative; }
.field { position: relative; border-radius: 999px; }
.field input {
  width: 100%; padding: 17px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--chalk-2); font: inherit; color: var(--tx-chalk);
}
.field input::placeholder { color: rgba(16, 17, 19, 0.42); }
.field input:focus { outline: none; }
.field::after {
  content: ""; position: absolute; inset: -1px; border-radius: 999px; pointer-events: none;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(198, 154, 98, 0.16);
  opacity: 0; transition: opacity 0.45s var(--ease-soft);
}
.field:focus-within::after { opacity: 1; }
.vform .pill { justify-self: start; margin-top: 8px; }

html.js .vform .fwrap, html.js .vform .pill, html.js .vform .fine { transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease); }
.vform.sent .fwrap, .vform.sent .pill, .vform.sent > .fine { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.vform .fwrap { display: grid; gap: 14px; }

.form-ok {
  position: absolute; inset: 0; display: grid; align-content: center; gap: 10px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.6s var(--ease-soft) 0.35s, transform 0.6s var(--ease) 0.35s;
}
.vform.sent .form-ok { opacity: 1; transform: translateY(0); pointer-events: auto; }
html:not(.js) .form-ok { display: none; }
.form-ok .ok-ring {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold);
  display: grid; place-items: center; color: var(--gold);
}
.form-ok h3 { font-size: 1.4rem; }

.view-photo { position: relative; aspect-ratio: 4 / 3.3; }
.view-chip { position: absolute; z-index: 2; left: 50%; top: 44%; transform: translateX(-50%); text-align: center; }
html.js .view-chip.chip-anim { transform: translateX(-50%) translateY(18px); }
html.js .in .view-chip.chip-anim { transform: translateX(-50%) translateY(0); }
.view-dots { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.view-dots i { width: 5px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.5); }
.view-dots i.cur { width: 20px; background: #fff; }

/* ---------------------------------------------------------------- */
/* FAQ (ink band)                                                    */
/* ---------------------------------------------------------------- */

.faq-shell::before {
  content: "sella"; position: absolute; z-index: 0;
  right: -0.06em; bottom: -0.28em;
  font-size: clamp(10rem, 26vw, 26rem); font-weight: 700; letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.03); pointer-events: none; line-height: 1;
}
.faq-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.4fr); gap: clamp(30px, 5vw, 90px); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

.faq { display: grid; }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item:first-child { border-top: 1px solid var(--line-light); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 22px;
  text-align: left; padding: 22px 4px; font-size: clamp(1rem, 1.5vw, 1.18rem); font-weight: 500;
}
.faq-q .fx { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: transform 0.55s var(--ease), background 0.4s, border-color 0.4s; }
.faq-q[aria-expanded="true"] .fx { transform: rotate(180deg); background: var(--gold); border-color: var(--gold); }
.faq-a { overflow: clip; }
html.js .faq-a { height: 0; transition: height 0.55s var(--ease); }
.faq-a-in { padding: 0 4px 24px; color: var(--tx-light-dim); max-width: 62ch; }
html.js .faq-a-in { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-soft), transform 0.5s var(--ease); }
html.js .faq-a.open .faq-a-in { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */

.foot-shell { background: var(--ink); padding: clamp(12px, 1.6vw, 20px); display: grid; gap: clamp(12px, 1.6vw, 20px); }
.foot-card {
  background: var(--chalk); color: var(--tx-chalk);
  border-radius: calc(var(--r-shell) - 12px);
  padding: clamp(48px, 7vw, 100px) var(--pad) clamp(38px, 5vw, 64px);
  text-align: center; display: grid; justify-items: center; gap: 26px;
}
.foot-card h2 { max-width: 16ch; text-wrap: balance; }
.foot-nav { display: flex; gap: clamp(16px, 3vw, 34px); flex-wrap: wrap; justify-content: center; }
.foot-nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--tx-dim); transition: opacity 0.3s; }
.foot-nav a:hover { color: var(--tx-chalk); }
.foot-pills { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.foot-pill {
  display: inline-flex; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}
.foot-pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.foot-legal { max-width: 74ch; display: grid; gap: 8px; }
.foot-legal p { font-size: 0.76rem; color: var(--tx-dim); line-height: 1.6; }

.foot-strip { position: relative; border-radius: calc(var(--r-shell) - 12px); overflow: clip; aspect-ratio: 21 / 6; min-height: 190px; }
.foot-strip img { width: 100%; height: 118%; object-fit: cover; }
.foot-strip::after { content: ""; position: absolute; inset: 0; background: rgba(12, 13, 15, 0.3); }
.foot-strip .fs-mark {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.02em;
}
.foot-strip .fs-mark span { color: var(--gold-2); }

/* ---------------------------------------------------------------- */
/* Gallery page                                                      */
/* ---------------------------------------------------------------- */

.gal-hero { min-height: 56svh; }
.gal-walk { display: grid; gap: clamp(26px, 4vw, 52px); }
.gal-item { display: grid; gap: 14px; }
.gal-item .plx-frame { aspect-ratio: 16 / 9; }
.gal-item:nth-child(even) { padding-left: clamp(0px, 8vw, 150px); }
.gal-item:nth-child(odd) { padding-right: clamp(0px, 8vw, 150px); }
.gal-cap { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 0 6px; }
.gal-cap .no { font-size: 0.72rem; letter-spacing: 0.26em; color: var(--gold); font-weight: 600; }
.gal-cap p { color: var(--tx-dim); font-size: 0.92rem; }
@media (max-width: 700px) {
  .gal-item:nth-child(even), .gal-item:nth-child(odd) { padding: 0; }
  .gal-item .plx-frame { aspect-ratio: 4 / 3.2; }
}
.gal-hdr { position: static; background: var(--ink); border-radius: 0; color: #fff; }
.gal-hdr-wrap { background: var(--ink); position: sticky; top: 0; z-index: 50; }

/* ---------------------------------------------------------------- */
/* Reduced motion: instant finals                                    */
/* ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html.js * { transition-duration: 0.001s !important; transition-delay: 0s !important; animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  html.js [data-reveal], html.js .chip-anim, html.js .anim-words .wi,
  html.js .hero-lead, html.js .hero-cta, html.js .hero-stats, html.js .hero-chip,
  html.js .hero-hdr, html.js .scroll-cue { opacity: 1 !important; transform: none !important; }
  html.js .hero-media img { transform: scale(1.02) !important; }
  html.js .plan .pl { stroke-dashoffset: 0 !important; }
  html.js .plan .pl-label { opacity: 1 !important; }
  .scroll-cue .cue-line { stroke-dashoffset: 0; }
}
