/* ───────── Scene House — shared styles ───────── */
:root { --bg: #0A0A0C; --gold: #CDB38B; --ease: cubic-bezier(.16, 1, .3, 1); }
html { background: var(--bg); }
body { background: var(--bg); color: #F4F4F2; -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold); color: var(--bg); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Film grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header { transition: background-color .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(10, 10, 12, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: rgba(255, 255, 255, .07); }

/* Reveal: line rise + fade up */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; transform: translateY(108%); transition: transform 1.2s var(--ease); }
.rise.in .ln > span { transform: none; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Glows */
.glow { position: absolute; border-radius: 9999px; filter: blur(120px); pointer-events: none; }
.btn-glow { position: relative; isolation: isolate; }
.btn-glow::before { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: inherit; background: radial-gradient(closest-side, rgba(205, 179, 138, .45), transparent); opacity: .55; transition: opacity .4s; }
.btn-glow:hover::before { opacity: 1; }

/* Slow Ken Burns zoom on posters for touch devices (no background video there) */
@property --s { syntax: '<number>'; inherits: true; initial-value: 1; }
@media (hover: none) {
  .kb { animation: kb 14s ease-in-out infinite alternate; }
  .kb .cover-img, .kb .yt-thumb img { transition: none; }
  @keyframes kb { to { --s: 1.1; } }
}

/* YouTube thumbnails: crop the vertical frame out of YouTube's 16:9 thumbnail */
.yt-thumb { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.yt-thumb img { position: absolute; left: 50%; top: 50%; max-width: none; height: auto;
  width: calc(max(100cqw, 56.25cqh) * 3.1605);
  transform: translate(-50%, -50%) scale(var(--s, 1)); transition: transform 1.4s var(--ease); }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s, 1)); transition: transform 1.4s var(--ease); }

/* YouTube embeds: cover the box and crop YouTube's title bar */
.yt-cover { position: absolute; inset: 0; overflow: hidden; container-type: size; pointer-events: none; }
.yt-cover iframe { position: absolute; left: 50%; top: 50%; border: 0; pointer-events: none;
  width: max(100cqw, 56.25cqh); aspect-ratio: 9 / 19.84;
  transform: translate(-50%, -50%) scale(var(--z, 1)); opacity: 0; transition: opacity .8s ease; }
/* landscape video: cover + a little zoom to hide the letterbox baked into the source */
.yt-cover.is-land iframe { width: max(100cqw, 177.78cqh); aspect-ratio: 16 / 11.16; --z: 1.15; }
.yt-cover iframe.ready { opacity: 1; }

/* Video cards */
.vcard { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .08); background: #111114; text-align: left; isolation: isolate; transform: translateZ(0);
  transition: border-color .5s; }
.vcard.is-land { aspect-ratio: 16 / 9; }
.vcard:hover { --s: 1.06; border-color: rgba(205, 179, 138, .45); }
.vcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.vcard-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.25) 100%); transition: opacity .6s; }
.vcard-chip { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.85); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vcard-meta { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.vcard-meta, .vcard-brand, .vcard-tag { display: block; }
.no-sb { scrollbar-width: none; }
.no-sb::-webkit-scrollbar { display: none; }
.vcard-brand { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.1; letter-spacing: -.01em; }
.vcard-tag { margin-top: 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.vcard-play { position: absolute; right: 16px; top: 16px; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  background: var(--gold); color: #0A0A0C; opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--ease); }
.vcard:hover .vcard-play, .vcard:focus-visible .vcard-play { opacity: 1; transform: none; }
@media (hover: none) { .vcard-play { opacity: 1; transform: scale(.85); } }

/* Service "door" cards */
.door { transition: border-color .5s; }
.door:hover { --s: 1.06; border-color: rgba(205, 179, 138, .45); }
.door:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* FAQ */
.faq summary { list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { transition: transform .4s var(--ease); }
.faq[open] .faq-icon { transform: rotate(45deg); }
.faq[open] p { animation: estIn .5s var(--ease); }

/* Current page in nav */
.nav-link[aria-current="page"] { color: #fff; }
.nav-link[aria-current="page"]::after { content: ""; display: inline-block; width: 4px; height: 4px; margin-left: 6px; border-radius: 9px; background: var(--gold); vertical-align: middle; }

/* Marquee */
.marquee { animation: marquee 40s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Text outline */
.text-outline { -webkit-text-stroke: 1px rgba(255, 255, 255, .4); color: transparent; }

/* Sticky stacking cards (desktop only) */
@media (min-width: 1024px) {
  .stack-card { position: sticky; }
}

/* Before / after */
.ba { --pos: 50%; position: relative; overflow: hidden; touch-action: pan-y; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 999px; background: #fff; color: #0A0A0C;
  display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input[type=range]:focus-visible ~ .ba-handle span { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Estimator */
.est-step[hidden] { display: none; }
.est-step { animation: estIn .6s var(--ease); }
@keyframes estIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pill { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 18px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); color: rgba(255,255,255,.75); transition: border-color .3s, background .3s, color .3s; cursor: pointer; }
.pill small { display: block; margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.4); }
.pill:hover { border-color: rgba(255,255,255,.25); color: #fff; }
input:checked + .pill { border-color: var(--gold); background: rgba(205,179,138,.1); color: #fff; }
input:focus-visible + .pill { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill-dot { width: 18px; height: 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); flex: none; transition: all .3s; }
input:checked + .pill .pill-dot { border: 5px solid var(--gold); }
.field { width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: #0A0A0C; padding: 14px 16px; color: #fff; outline: none; transition: border-color .3s; }
.field::placeholder { color: rgba(255,255,255,.28); }
.field:focus { border-color: var(--gold); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(5,5,6,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal.open { display: flex; animation: estIn .5s var(--ease); }
.mbox { overflow: hidden; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: #000; }
.mbox-portrait { aspect-ratio: 9 / 16; height: min(82svh, 780px); max-width: 92vw; }
.mbox-land { aspect-ratio: 16 / 9; width: min(92vw, 1180px); }
.mbox iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Custom cursor (fine pointers only, added by JS) */
.cursor { position: fixed; left: 0; top: 0; z-index: 110; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 999px; pointer-events: none;
  border: 1px solid rgba(255,255,255,.45); display: grid; place-items: center; opacity: 0;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s, opacity .3s; }
.cursor.on { opacity: 1; }
.cursor span { font: 600 11px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #0A0A0C; opacity: 0; transition: opacity .25s; }
.cursor.is-link { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: rgba(205,179,138,.8); }
.cursor.is-active { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--gold); border-color: transparent; }
.cursor.is-active span { opacity: 1; }
html.has-cursor [data-cursor], html.has-cursor [data-cursor] * { cursor: none; }

/* Split panels on the hub */
.split-panel { transition: flex-grow .9s var(--ease); }
@media (min-width: 1024px) {
  .split:hover .split-panel { flex-grow: .8; }
  .split .split-panel:hover { flex-grow: 1.35; }
}
.split-panel:hover { --s: 1.05; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .ln > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee, .kb { animation: none; }
  .est-step, .modal.open { animation: none; }
}
