@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../media/fonts/plex-arabic-300.ttf) format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../media/fonts/plex-arabic-400.ttf) format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../media/fonts/plex-arabic-500.ttf) format('truetype');
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../media/fonts/plex-arabic-600.ttf) format('truetype');
}

/* KINARA Sky Residences — Brand Motion template
   Ink, bone and champagne. Geist for type, Instrument Serif italic for the accent word,
   Geist Mono for labels. */

:root {
  --ink: #101e26;
  --ink-2: #152832;
  --ink-3: #1e3540;
  --bone: #f4efe5;
  --bone-2: rgba(244, 239, 229, .72);
  --mute: rgba(244, 239, 229, .52);
  --line: rgba(244, 239, 229, .14);
  --line-2: rgba(244, 239, 229, .26);
  --gold: #d7aa78;
  --gold-2: #b88759;
  --sea: #8ab8b4;
  --sans: "IBM Plex Sans Arabic", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
  --gut: clamp(16px, 3.4vw, 44px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: normal; text-transform: uppercase; font-weight: 400; }
.wrap { width: min(1320px, 100% - var(--gut) * 2); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow { margin: 0 0 18px; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.display {
  margin: 0;
  font-weight: 300;
  font-size: clamp(46px, 7.6vw, 128px);
  line-height: 1.25;
  letter-spacing: normal;
  text-wrap: balance;
}
.display em, .title em, .res__name em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--gold);
}
.display--md { font-size: clamp(40px, 5.6vw, 92px); }
.display--lg { font-size: clamp(48px, 8.4vw, 148px); }
.title { margin: 0; font-weight: 300; font-size: clamp(40px, 5.2vw, 80px); line-height: 1.25; letter-spacing: normal; }
.lede { margin: 20px 0 0; max-width: 44ch; font-size: clamp(15px, 1.15vw, 18px); color: var(--bone-2); line-height: 1.6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 11px/1 var(--mono); letter-spacing: normal; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid:hover { background: var(--gold); }
.btn--ghost { border-color: var(--line-2); color: var(--bone); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(16, 30, 38, .18); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--wide { width: 100%; justify-content: center; height: 56px; }
.play { width: 0; height: 0; border-right: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center; transition: opacity .9s var(--ease), visibility .9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__mark { display: grid; justify-items: center; gap: 14px; }
.loader__tower { width: 22px; height: 36px; fill: var(--gold); animation: rise 1.6s var(--ease) infinite alternate; transform-origin: bottom; }
@keyframes rise { from { transform: scaleY(.25); opacity: .5; } to { transform: scaleY(1); opacity: 1; } }
.loader__word { font-weight: 300; font-size: 22px; letter-spacing: normal; margin-right: -.5em; }
.loader__sub { font: 11px var(--mono); letter-spacing: normal; text-transform: uppercase; color: var(--mute); }
.loader__bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 56px; height: 1px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s linear; }
.loader__pct { position: absolute; right: var(--gut); bottom: 24px; color: var(--mute); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gut);
  transition: transform .6s var(--ease), background .6s var(--ease);
}
.nav.solid { background: linear-gradient(to bottom, rgba(16, 30, 38, .82), rgba(16, 30, 38, 0)); }
.nav.hide { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 26px; height: 26px; }
.brand__mark path { fill: var(--gold); }
.brand__mark .w { fill: none; stroke: var(--bone); stroke-width: 1.6; }
.brand__word { font-weight: 400; font-size: 17px; letter-spacing: normal; }
.brand__sub { color: var(--mute); font-size: 10px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font: 11px var(--mono); letter-spacing: normal; text-transform: uppercase; color: var(--bone-2); position: relative; padding: 6px 0; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .4s var(--ease); }
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { right: 0; }
.nav__cta { height: 42px; padding: 0 20px; }

/* ---------- altimeter ---------- */
.alti {
  position: fixed; z-index: 40; right: var(--gut); top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 18px; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease);
}
.alti.on { opacity: 1; }
.alti__read { display: grid; justify-items: end; gap: 4px; text-shadow: 0 1px 18px rgba(0, 0, 0, .45); }
.alti__label { color: var(--gold); font-size: 10px; }
.alti__m { font-weight: 300; font-size: 34px; letter-spacing: normal; font-variant-numeric: tabular-nums; line-height: 1; }
.alti__m i { font-style: normal; font-size: 14px; color: var(--bone-2); margin-left: 4px; }
.alti__lvl { color: var(--bone-2); font-size: 10px; }
.alti__scale {
  position: relative; width: 9px; height: 38vh;
  background: repeating-linear-gradient(to top, var(--line-2) 0 1px, transparent 1px 4.2%) right / 9px 100% no-repeat;
}
.alti__scale::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.alti__fill { position: absolute; right: 0; bottom: 0; width: 1px; height: 0; background: var(--gold); z-index: 1; }
.alti__dot { position: absolute; right: -4px; bottom: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(215, 170, 120, .18); transform: translateY(50%); z-index: 2; }

/* ---------- scrub chapters ---------- */
.scrub { position: relative; height: calc((var(--u, 5) + 1) * 100svh); }
.scrub__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink-2); }
.scrub__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(10, 22, 30, .86) 0%, rgba(10, 22, 30, .38) 32%, rgba(10, 22, 30, 0) 56%),
    linear-gradient(to bottom, rgba(10, 22, 30, .55), rgba(10, 22, 30, 0) 22%),
    linear-gradient(to right, rgba(10, 22, 30, .5), rgba(10, 22, 30, 0) 52%);
}
.caps { position: absolute; left: var(--gut); right: var(--gut); bottom: 128px; pointer-events: none; }
.cap {
  position: absolute; inset-inline-start: 0; bottom: 0; width: min(760px, 100%);
  opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
}
.cap.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.cap .lede { max-width: 42ch; }
.cap--hero .display { font-size: clamp(52px, 8.6vw, 150px); }
.cap__row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.next { color: var(--bone-2); }

.hud { position: absolute; top: 92px; right: var(--gut); }
.scrub--hero .hud { display: none; }
.hud__count { color: var(--bone-2); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hud__count b { color: var(--bone); font-weight: 500; }
.hud__pct { display: block; text-align: right; margin-top: 6px; color: var(--gold); }

.rail { position: absolute; left: var(--gut); right: var(--gut); bottom: 34px; }
.rail__track { position: relative; height: 1px; background: var(--line-2); }
.rail__fill { position: absolute; right: 0; top: -.5px; height: 2px; width: 0; background: var(--gold); box-shadow: 0 0 14px rgba(215, 170, 120, .6); }
.rail__ticks { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.rail__ticks li {
  position: relative; padding-top: 16px;
  font: 10px var(--mono); letter-spacing: normal; text-transform: uppercase; color: var(--mute);
  transition: color .4s;
}
.rail__ticks li::before { content: ""; position: absolute; top: -4px; right: 0; width: 1px; height: 9px; background: var(--line-2); transition: background .4s; }
.rail__ticks li:last-child { text-align: right; }
.rail__ticks li:last-child::before { right: auto; left: 0; }
.rail__ticks li:not(:first-child):not(:last-child) { transform: translateX(50%); }
.rail__ticks li:not(:first-child):not(:last-child)::before { right: 50%; }
.rail__ticks li.past { color: var(--bone-2); }
.rail__ticks li.past::before { background: var(--gold); }
.rail__ticks li.on { color: var(--gold); }

/* ---------- statement ---------- */
.statement { padding: clamp(110px, 18vh, 200px) 0 clamp(90px, 14vh, 160px); background: var(--ink); }
.statement .display { max-width: 15ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 9vh, 110px); border-top: 1px solid var(--line); }
.stat { padding: 30px 24px 0 0; border-inline-end: 1px solid var(--line); }
.stat + .stat { padding-inline-start: 28px; }
.stat:last-child { border-inline-end: 0; }
.stat b { font-weight: 300; font-size: clamp(44px, 5.2vw, 84px); letter-spacing: normal; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .unit { font-family: var(--serif); font-style: normal; font-size: clamp(22px, 2.2vw, 34px); color: var(--gold); margin-inline-start: 6px; }
.stat p { margin: 14px 0 0; color: var(--mute); }

/* ---------- residences ---------- */
.residences { padding: clamp(110px, 18vh, 200px) 0; position: relative; background: var(--ink); }
.residences::before, .club::before, .address::before { content: ""; position: absolute; left: var(--gut); right: var(--gut); top: 0; height: 1px; background: var(--line); }
.sec-head { margin-bottom: clamp(48px, 8vh, 90px); }
.sec-head--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.res-list { border-top: 1px solid var(--line); }
.res {
  display: grid; grid-template-columns: 56px 2.2fr 1fr 1fr 1.6fr 1fr 40px; align-items: center; gap: 20px;
  padding: 30px 0; border-bottom: 1px solid var(--line); position: relative;
  transition: padding .5s var(--ease), color .4s;
}
.res::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(215, 170, 120, .08), transparent 70%); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.res:hover::before { opacity: 1; }
.res:hover { padding-inline-start: 14px; }
.res__no { color: var(--gold); }
.res__name { font-weight: 300; font-size: clamp(26px, 2.8vw, 44px); letter-spacing: normal; line-height: 1.05; }
.res__spec, .res__count { color: var(--bone-2); }
.res__count { color: var(--mute); }
.res__arrow { font-size: 20px; color: var(--gold); transform: translateX(8px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; justify-self: end; }
.res:hover .res__arrow { transform: none; opacity: 1; }
.res-note { margin: 26px 0 0; color: var(--mute); }

/* ---------- club ---------- */
.club { padding: clamp(110px, 18vh, 200px) 0; position: relative; background: var(--ink-2); }
.club-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.club-grid li {
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 190px;
  padding: 24px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease);
}
.club-grid li:hover { background: rgba(215, 170, 120, .06); }
.club-grid span { color: var(--gold); }
.club-grid b { font-weight: 300; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: normal; line-height: 1.15; align-self: end; }
.club-grid i { font-style: normal; color: var(--mute); }

/* ---------- address ---------- */
.address { padding: clamp(110px, 18vh, 200px) 0; position: relative; background: var(--ink); }
.address__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.dist { list-style: none; margin: 46px 0 0; padding: 0; border-top: 1px solid var(--line); }
.dist li { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 300; }
.dist b { color: var(--gold); font-weight: 400; }
.map { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2); overflow: hidden; }
.map svg { width: 100%; height: auto; }
.map__dot { fill: rgba(244, 239, 229, .1); }
.map__land { fill: #14181b; }
.map__coast { fill: none; stroke: var(--bone-2); stroke-width: 1.2; }
.map__beach { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; opacity: .8; }
.map__road { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 4 5; }
.map__core { fill: var(--gold); }
.map__pulse { fill: none; stroke: var(--gold); stroke-width: 1; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.map__label { font: 500 13px var(--sans); letter-spacing: normal; fill: var(--bone); }
.map__small { font: 10px var(--mono); letter-spacing: normal; text-transform: uppercase; fill: var(--mute); }
.map__poi circle { fill: var(--bone-2); }
.map__poi text { font: 10px var(--mono); letter-spacing: normal; text-transform: uppercase; fill: var(--bone-2); }
.map__sea { font: italic 26px var(--serif); fill: var(--sea); opacity: .7; }

/* ---------- viewing ---------- */
.viewing { position: relative; padding: clamp(120px, 22vh, 240px) 0; overflow: clip; }
.viewing__bg { position: absolute; inset: 0; }
.viewing__bg img { width: 100%; height: 100%; object-fit: cover; }
.viewing__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 30, 38, .92) 0%, rgba(16, 30, 38, .74) 48%, rgba(16, 30, 38, .5) 100%), linear-gradient(to top, var(--ink), transparent 30%); }
.viewing__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: end; }
.form {
  display: grid; gap: 18px; padding: 32px; border-radius: 10px;
  background: rgba(16, 19, 22, .55); border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.form label { display: grid; gap: 8px; }
.form label span { color: var(--mute); font-size: 10px; }
.form input, .form select {
  height: 48px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-2);
  background: rgba(16, 30, 38, .5); outline: none; transition: border-color .3s;
  font-size: 16px; font-weight: 300;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(-45deg, transparent 50%, var(--gold) 50%); background-position: right 20px center, right 15px center; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: var(--ink-2); }
.form input:focus, .form select:focus { border-color: var(--gold); }
.form input.bad { border-color: #d98b7a; }
.form__ok { margin: 0; min-height: 1.4em; color: var(--gold); font-size: 14px; }

/* ---------- footer ---------- */
.foot { padding: 56px 0 44px; border-top: 1px solid var(--line); background: var(--ink); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.6fr; gap: 30px; align-items: center; }
.foot p { margin: 0; color: var(--mute); }
.foot__fine { font-size: 12px; line-height: 1.6; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .res { grid-template-columns: 40px 1fr auto; row-gap: 8px; }
  .res__spec, .res__count { grid-column: 2; }
  .res__arrow { grid-row: 1; grid-column: 3; opacity: 1; transform: none; }
  .club-grid { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .brand__sub { display: none; }
  .nav { padding: 14px var(--gut); }
  .nav__cta { height: 38px; padding: 0 16px; font-size: 10px; }
  .alti { top: auto; bottom: auto; top: 86px; transform: none; }
  .alti__scale { display: none; }
  .alti__m { font-size: 24px; }
  .caps { bottom: 96px; }
  .cap .lede { font-size: 15px; }
  .cap__row { margin-top: 22px; }
  .hud { top: 74px; }
  .rail { bottom: 26px; }
  .rail__ticks li, .rail__ticks li.past { font-size: 9px; letter-spacing: normal; color: transparent; }
  .rail__ticks li.on { color: var(--gold); }
  .scrub__scrim {
    background:
      linear-gradient(to top, rgba(10, 22, 30, .92) 0%, rgba(10, 22, 30, .55) 40%, rgba(10, 22, 30, 0) 66%),
      linear-gradient(to bottom, rgba(10, 22, 30, .6), rgba(10, 22, 30, 0) 24%);
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 16px 26px 0; border-bottom: 1px solid var(--line); }
  .stat + .stat { padding-inline-start: 0; }
  .stat:nth-child(2n) { border-inline-end: 0; padding-inline-start: 18px; }
  .sec-head--split, .address__grid, .viewing__grid { grid-template-columns: 1fr; }
  .res { padding: 24px 0; }
  .res:hover { padding-inline-start: 0; }
  .club-grid li { min-height: 150px; padding: 18px; }
  .form { padding: 22px; }
  .foot__grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 420px) {
  .club-grid { grid-template-columns: 1fr; }
  .club-grid li { min-height: 0; grid-template-rows: auto auto auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cap, .js .reveal { transition-duration: .01s; filter: none; }
  .loader__tower, .map__pulse { animation: none; }
}

.brand__word, .loader__word { font-weight: 500; }
.brand__word { font-size: 24px; }
.loader__word { font-size: 36px; }
.brand__sub { border-left: 0; border-inline-start: 1px solid var(--line-2); padding-inline-start: 12px; }
.mono, .btn, .nav__links a { font-size: 13px; }
.btn { line-height: 1.5; }
.lede { line-height: 1.85; }
.scrub--hero .cap { inset-inline-start: auto; inset-inline-end: 0; width: min(48%, 700px); }
.scrub__scrim { background: linear-gradient(to top, rgba(9,22,30,.94), transparent 70%), linear-gradient(to left, rgba(9,22,30,.55), transparent 60%); }
.scrub--hero .scrub__scrim { background: linear-gradient(to top, rgba(9,22,30,.88), transparent 65%), linear-gradient(to right, rgba(9,22,30,.7), transparent 65%); }
.map svg { direction: ltr; }
.map text { font-family: var(--sans); }
.map__small, .map__poi text { font-size: 13px; }
.form select { background-position: left 20px center, left 15px center; }
.form input[dir=ltr] { text-align: right; }
@media (max-width: 820px) {
  .scrub--hero .cap { width: 100%; }
  .scrub--hero .scrub__scrim { background: linear-gradient(to top, rgba(9,22,30,.96), rgba(9,22,30,.65) 36%, transparent 72%); }
  .cap--hero .display { font-size: clamp(38px, 9vw, 64px); }
}
@media (min-width: 821px) {
  .cap--hero .display { font-size: clamp(52px, min(6.3vw, 11vh), 110px); }
}

.display em { display: inline-block; max-width: 100%; }
.lede { text-wrap: pretty; }
.stat { padding-inline: 0 24px; }
@media (max-width: 820px) { .stat { padding-inline-end: 16px; } }

.scene-menu { position: relative; margin-inline-start: auto; }
.scene-menu summary { list-style: none; }
.scene-menu summary::-webkit-details-marker { display: none; }
.scene-menu nav {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 170px;
  padding: 8px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}
.scene-menu nav a { display: block; padding: 8px 12px; border-radius: 6px; }
.scene-menu nav a:is(:hover, :focus-visible) { background: var(--ink-3); }
.res-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: clamp(16px, 3vw, 28px);
  color: var(--bone);
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
}
.res-dialog::backdrop { background: rgba(5, 12, 17, .8); }
.res-dialog form { display: flex; justify-content: end; margin-bottom: 14px; }
.res-dialog img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.res-details { color: var(--bone-2); }
@media (max-width: 600px) {
  .nav .nav__cta { display: none; }
  .scene-menu summary { height: 38px; padding-inline: 12px; }
  .nav { gap: 8px; }
}

.comparison { padding-block: clamp(56px, 9vw, 120px) 0; scroll-margin-top: 84px; }
.comparison__frame {
  --split: 50%;
  direction: rtl;
  position: relative;
  margin-top: 24px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}
.comparison__frame img { width: 100%; height: auto; }
.comparison__plan { position: absolute; inset: 0; clip-path: inset(0 0 0 calc(100% - var(--split))); }
.comparison__plan canvas { width: 100%; height: 100%; }
.comparison__divider {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--split);
  width: 2px;
  background: var(--bone);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.comparison__divider span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink);
}
.comparison__frame:focus-within { outline: 2px solid var(--gold); outline-offset: 4px; }
.comparison__frame input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.comparison__tag {
  position: absolute;
  inset-block-start: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--ink);
  font-size: 13px;
}
.comparison__tag--plan { inset-inline-start: 12px; }
.comparison__tag--finished { inset-inline-end: 12px; }
.comparison__frame:not(.ready) :is(input, .comparison__divider, .comparison__tag) { visibility: hidden; }
.comparison__divider span { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
