/* =========================================================
   Smart Home by Anunzio — core styles
   Dark, cinematic, image-forward. Mobile-first & fast.
   ========================================================= */

:root {
  --bg: #0a0a0f;
  --bg-soft: #12121a;
  --ink: #f4f2ee;
  --ink-dim: #a9a7b0;
  --gold: #d9a441;      /* warm smart-home accent */
  --gold-soft: #f0c674;
  --line: rgba(255,255,255,.08);
  --radius: 16px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, .nav__brand, .preloader__logo { font-family: "Sora", sans-serif; }

img, video { max-width: 100%; display: block; }

.section { position: relative; }

.eyebrow {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: .9rem 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: var(--pad); border-radius: 100px;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: .92rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn--primary { background: var(--gold); color: #1a1206; box-shadow: 0 8px 30px rgba(217,164,65,.28); }
.btn--primary:hover { transform: translateY(-2px); background: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; margin-top: .5rem; }
.btn--nav { padding: .6rem 1.2rem; background: var(--gold); color: #1a1206; font-size: .82rem; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; transition: opacity .6s var(--ease), visibility .6s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader__logo { font-weight: 700; font-size: 1.4rem; letter-spacing: .1em; text-align: center; }
.preloader__logo span { display: block; font-family: "Inter"; font-weight: 300; font-size: .8rem; color: var(--gold); letter-spacing: .3em; margin-top: .3rem; }
.preloader__bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s linear; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.scrolled { background: rgba(10,10,15,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: .7rem; padding-bottom: .7rem; }
.nav__brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; letter-spacing: .06em; line-height: 1.1; }
.nav__brand em { display: block; font-style: normal; font-family: "Inter"; font-weight: 300; font-size: .62rem; color: var(--gold); letter-spacing: .25em; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a { color: var(--ink-dim); text-decoration: none; font-size: .88rem; transition: color .3s; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { height: 100svh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  /* fallback while no video/poster exists */
  background: radial-gradient(120% 90% at 70% 20%, #241a2e 0%, #0a0a0f 60%),
              linear-gradient(210deg, #1a1330, #0a0a0f);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,15,.88) 0%, rgba(10,10,15,.55) 45%, rgba(10,10,15,.25) 100%);
}
.hero__content { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
.hero__title { font-size: clamp(2.6rem, 8vw, 5.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }
.hero__title span { color: var(--gold); }
.hero__sub { max-width: 34ch; color: var(--ink-dim); font-size: clamp(1rem, 2.4vw, 1.2rem); margin: 1.4rem 0 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: var(--ink-dim); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Feature vignettes ---------- */
.feature { min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.feature__media {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center;
  /* fallback gradient tints per section (overwritten by data-bg image) */
  background-color: #14101c;
  transform: scale(1.15); will-change: transform;
}
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,15,.92) 0%, rgba(10,10,15,.5) 55%, rgba(10,10,15,.15) 100%); }
.feature--right::after { background: linear-gradient(270deg, rgba(10,10,15,.92) 0%, rgba(10,10,15,.5) 55%, rgba(10,10,15,.15) 100%); }
.feature__panel { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
.feature--right .feature__panel { text-align: right; margin-left: auto; }
.feature--right .feature__panel > * { margin-left: auto; }
.feature__num { display: inline-block; font-family: "Sora"; font-weight: 700; font-size: .9rem; color: var(--gold); letter-spacing: .2em; margin-bottom: .8rem; opacity: .8; }
.feature h2 { font-size: clamp(1.9rem, 5.5vw, 3.4rem); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; max-width: 16ch; }
.feature p { max-width: 42ch; color: var(--ink-dim); font-size: clamp(1rem, 2.2vw, 1.15rem); margin-top: 1.1rem; }
.feature--right h2, .feature--right p { margin-left: auto; }

/* ---------- Lead / form ---------- */
.lead { background: linear-gradient(180deg, #0a0a0f, #12101a); padding: clamp(4rem, 10vw, 7rem) clamp(1.2rem, 5vw, 3rem); }
.lead__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.lead__intro h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.lead__desc { color: var(--ink-dim); margin-top: 1rem; max-width: 36ch; }
.wa-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; color: #25d366; text-decoration: none; font-size: .92rem; font-weight: 500; }
.wa-link:hover { text-decoration: underline; }

.lead__form { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.field { margin-bottom: 1.1rem; }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .82rem; color: var(--ink-dim); margin-bottom: .45rem; letter-spacing: .02em; }
.req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 10px; padding: .8rem .9rem; color: var(--ink);
  font-family: inherit; font-size: .95rem; transition: border-color .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #6b6a73; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.06); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d9a441' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: .9rem; font-size: .88rem; min-height: 1.2em; }
.form-status.ok { color: var(--gold-soft); }
.form-status.err { color: #ff8080; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 3rem 1.5rem; border-top: 1px solid var(--line); color: var(--ink-dim); }
.footer__brand { font-family: "Sora"; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.footer__brand em { font-style: normal; font-family: "Inter"; font-weight: 300; color: var(--gold); font-size: .8em; }
.footer p { font-size: .85rem; margin-top: .6rem; }
.footer__small { opacity: .6; }

/* ---------- Reveal animation base (JS toggles .in) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .lead__inner { grid-template-columns: 1fr; }
  .feature__panel, .feature--right .feature__panel { text-align: left; }
  .feature--right .feature__panel > *, .feature--right h2, .feature--right p { margin-left: 0; }
  .feature::after, .feature--right::after { background: linear-gradient(180deg, rgba(10,10,15,.55) 0%, rgba(10,10,15,.85) 100%); }
  .hero__overlay { background: linear-gradient(180deg, rgba(10,10,15,.6) 0%, rgba(10,10,15,.9) 100%); }
}
@media (max-width: 480px) {
  .field--half { grid-template-columns: 1fr; }
  .btn { --pad: .85rem 1.4rem; }
}

/* =========================================================
   IMMERSIVE LAYER — cursor · intro gate · audio · hotspots · 3D room
   ========================================================= */

/* ---------- Custom cursor (desktop only) ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 8px; height: 8px; background: #fff; transform: translate(-50%, -50%); transition: width .25s var(--ease), height .25s var(--ease); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.6); transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), border-color .3s; }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button, body.cursor-on input, body.cursor-on select, body.cursor-on textarea, body.cursor-on [data-cursor] { cursor: none; }
.cursor.grow { width: 16px; height: 16px; }
.cursor-ring.grow { width: 58px; height: 58px; border-color: var(--gold); }
@media (hover: none), (max-width: 860px) { .cursor, .cursor-ring { display: none !important; } body.cursor-on { cursor: auto; } }

/* ---------- Intro gate ---------- */
.intro { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: #07070c; transition: opacity .8s var(--ease), visibility .8s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro__bg { position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 40%, #241a33 0%, #07070c 65%); opacity: .9; }
.intro__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(217,164,65,.18), transparent 45%); animation: pulseGlow 4s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.intro__content { position: relative; text-align: center; padding: 2rem; max-width: 560px; }
.intro__logo { font-family: "Sora"; font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.6rem); letter-spacing: .12em; line-height: 1.1; }
.intro__logo span { display: block; font-family: "Inter"; font-weight: 300; font-size: .7rem; letter-spacing: .4em; color: var(--gold); margin-top: .5rem; }
.intro__tag { color: var(--ink-dim); margin-top: 1.2rem; font-size: clamp(.95rem, 2.4vw, 1.15rem); }
.intro__loading { margin-top: 2.4rem; }
.intro__bar { width: 220px; max-width: 70vw; height: 2px; margin: 0 auto; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.intro__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width .3s ease; }
.intro__loadtxt { margin-top: 1rem; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.intro__enter { margin-top: 2.4rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.intro__begin em { font-style: normal; font-weight: 300; opacity: .8; }

/* ---------- Audio toggle ---------- */
.audio-toggle { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 200; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,10,15,.6); backdrop-filter: blur(10px); display: grid; place-items: center; transition: border-color .3s, transform .3s; }
.audio-toggle:hover { border-color: var(--gold); transform: scale(1.05); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; height: 6px; background: var(--gold); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2){ animation-delay:.2s } .eq i:nth-child(3){ animation-delay:.4s } .eq i:nth-child(4){ animation-delay:.6s }
@keyframes eq { 0%,100%{ height:5px } 50%{ height:16px } }
.audio-toggle.muted .eq i { animation-play-state: paused; height: 5px; opacity: .5; }

/* ---------- Tap-to-explore hotspots (image sections) ---------- */
.hotspot { position: absolute; z-index: 5; width: 40px; height: 40px; transform: translate(-50%,-50%); background: transparent; border: 0; padding: 0; }
.hotspot span { position: absolute; inset: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(217,164,65,.6); animation: ping 2.2s var(--ease) infinite; }
.hotspot::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(217,164,65,.5); border-radius: 50%; transition: transform .3s, opacity .3s; opacity: 0; }
.hotspot:hover::after { opacity: 1; transform: scale(1.15); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(217,164,65,.5); } 70% { box-shadow: 0 0 0 22px rgba(217,164,65,0); } 100% { box-shadow: 0 0 0 0 rgba(217,164,65,0); } }
.hotspot__pop { position: fixed; z-index: 300; max-width: 300px; background: rgba(16,14,22,.92); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; transform: translateY(8px); opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.hotspot__pop.show { opacity: 1; transform: translateY(0); }
.hotspot__pop h4 { font-family: "Sora"; font-size: 1rem; color: var(--gold); margin-bottom: .35rem; }
.hotspot__pop p { font-size: .9rem; color: var(--ink-dim); line-height: 1.5; }

/* ---------- Interactive 3D room ---------- */
.room { background: linear-gradient(180deg, #0a0a0f 0%, #0d0b14 100%); padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.room__head { max-width: var(--maxw); margin: 0 auto 2rem; padding: 0 clamp(1.2rem, 5vw, 3rem); text-align: center; }
.room__head h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: -.01em; }
.room__head p { color: var(--ink-dim); margin-top: .8rem; }
.room__stage { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 10; width: calc(100% - 2rem); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 100% at 50% 20%, #1a1526, #0a0a0f); box-shadow: 0 30px 80px rgba(0,0,0,.5); touch-action: pan-y; }
#roomCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.room__hotspots { position: absolute; inset: 0; pointer-events: none; }
.room__spot { position: absolute; transform: translate(-50%,-50%); pointer-events: auto; width: 32px; height: 32px; border: 0; background: transparent; padding: 0; }
.room__spot i { position: absolute; inset: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: ping 2.2s var(--ease) infinite; }
.room__spot.on i { background: var(--gold); }
.room__spot label { position: absolute; left: 50%; top: 130%; transform: translateX(-50%); white-space: nowrap; font-size: .72rem; letter-spacing: .05em; color: var(--ink); background: rgba(10,10,15,.7); padding: .2rem .5rem; border-radius: 6px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.room__spot:hover label { opacity: 1; }
.room__hint { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 4; font-size: .74rem; letter-spacing: .1em; color: var(--ink-dim); display: flex; align-items: center; gap: .5rem; background: rgba(10,10,15,.5); padding: .4rem .9rem; border-radius: 100px; backdrop-filter: blur(8px); transition: opacity .5s; }
.room__hint .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulseGlow 1.6s infinite; }
.room__panel { position: absolute; left: 1rem; bottom: 1rem; z-index: 6; max-width: 300px; background: rgba(16,14,22,.9); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.room__panel h3 { font-family: "Sora"; font-size: 1.05rem; color: var(--ink); margin-bottom: .3rem; }
.room__panel p { font-size: .88rem; color: var(--ink-dim); line-height: 1.5; }
.room__state { display: inline-block; margin-top: .7rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 100px; padding: .25rem .7rem; }
.room__panel-close { position: absolute; top: .5rem; right: .6rem; background: none; border: 0; color: var(--ink-dim); font-size: 1.4rem; line-height: 1; }
.room__panel-close:hover { color: var(--ink); }
.room__fallback { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; padding: 2rem; background: radial-gradient(120% 100% at 50% 20%, #1a1526, #0a0a0f); }
.room__fallback p { color: var(--ink-dim); max-width: 40ch; }

@media (max-width: 860px) {
  .room__stage { aspect-ratio: 4 / 5; }
  .room__panel { left: .6rem; right: .6rem; bottom: .6rem; max-width: none; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .feature__media { transform: none; }
}

/* =========================================================
   SCROLL-DRIVEN 3D WORLD
   ========================================================= */
.experience { position: relative; height: 640vh; background: #07070c; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#worldCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Station overlays */
.overlays { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.station { position: absolute; top: 50%; left: clamp(1.5rem, 6vw, 6rem); width: min(88%, 620px); opacity: 0; will-change: opacity, transform; }
.station .eyebrow { margin-bottom: .8rem; }
.station h2 { font-family: "Sora"; font-weight: 700; font-size: clamp(2.1rem, 6.5vw, 4.4rem); line-height: 1.03; letter-spacing: -.02em; }
.station h2 span { color: var(--gold); }
.station__num { display: inline-block; font-family: "Sora"; font-weight: 700; font-size: .9rem; letter-spacing: .25em; color: var(--gold); margin-bottom: .9rem; opacity: .85; }
.station__sub { color: var(--ink-dim); font-size: clamp(1rem, 2.4vw, 1.22rem); margin-top: 1.1rem; max-width: 40ch; }
.station .btn { margin: 1.5rem .6rem 0 0; pointer-events: auto; }

/* Projected device hotspots */
.world-hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.world-hotspot { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; width: 34px; height: 34px; border: 0; background: transparent; padding: 0; }
.world-hotspot i { position: absolute; inset: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: ping 2.2s var(--ease) infinite; }
.world-hotspot.on i { background: var(--gold); }

/* Control panel */
.world-panel { position: absolute; left: clamp(1rem, 4vw, 2.4rem); bottom: clamp(1.4rem, 5vw, 3rem); z-index: 5; background: rgba(16,14,22,.88); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; min-width: 180px; }
.world-panel h3 { font-family: "Sora"; font-size: .98rem; color: var(--ink); }
.world-state { display: inline-block; margin-top: .5rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 100px; padding: .2rem .6rem; }

/* Progress indicator */
.progress { position: absolute; right: clamp(14px, 2.5vw, 26px); top: 50%; transform: translateY(-50%); width: 2px; height: 120px; background: rgba(255,255,255,.12); border-radius: 2px; z-index: 5; }
.progress span { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: linear-gradient(var(--gold), var(--gold-soft)); border-radius: 2px; }

/* Scroll cue */
.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 5; color: var(--ink-dim); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; transition: opacity .5s; }
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drop 1.8s var(--ease) infinite; }

/* Fallback */
.world-fallback { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; padding: 2rem; background: radial-gradient(120% 100% at 50% 30%, #1a1526, #07070c); }
.world-fallback h2 { font-family: "Sora"; font-size: clamp(2rem, 7vw, 3.4rem); margin: .6rem 0 1rem; }
.world-fallback p { color: var(--ink-dim); max-width: 46ch; margin: 0 auto 1.4rem; }

@media (max-width: 860px) {
  .experience { height: 720vh; }
  .station { top: auto; bottom: 16%; }
  .station .btn { display: inline-flex; }
  .progress { height: 90px; }
}

/* =========================================================
   iPhone-style notifications + sensor cue (overlay on the world)
   ========================================================= */
.smartphone { position: absolute; right: clamp(12px, 3vw, 34px); bottom: clamp(12px, 4vw, 40px); z-index: 8; width: 172px; height: 350px; border-radius: 30px; padding: 7px; background: linear-gradient(160deg, #23222b, #0c0c11); box-shadow: 0 20px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.smartphone__screen { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #2a2340, #0a0a12); display: flex; flex-direction: column; align-items: center; }
.smartphone__notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 62px; height: 16px; background: #000; border-radius: 0 0 12px 12px; }
.smartphone__time { margin-top: 40px; font-family: "Sora"; font-weight: 700; font-size: 2.1rem; color: #fff; letter-spacing: .01em; }
.smartphone__date { font-size: .62rem; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; margin-top: 2px; }
.smartphone__notifs { margin-top: auto; width: 100%; padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.pn { display: flex; gap: 8px; align-items: flex-start; background: rgba(38,36,48,.78); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; padding: 8px; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.pn.in { opacity: 1; transform: none; }
.pn__icon { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(150deg, var(--gold), #b6791f); color: #1a1206; font: 700 9px/26px "Sora"; text-align: center; letter-spacing: .02em; }
.pn__b { flex: 1; min-width: 0; }
.pn__b b { font-size: .64rem; color: #fff; display: inline; }
.pn__b i { float: right; font-style: normal; font-size: .54rem; color: #8a8794; }
.pn__b p { font-size: .62rem; line-height: 1.3; color: #c9c6d2; margin-top: 2px; }

.sensor-ping { position: absolute; left: 50%; bottom: clamp(70px, 12vw, 110px); transform: translateX(-50%) translateY(8px); z-index: 8; display: flex; align-items: center; gap: .55rem; padding: .45rem .9rem; border-radius: 100px; background: rgba(10,10,15,.66); backdrop-filter: blur(10px); border: 1px solid rgba(217,164,65,.35); color: var(--ink); font-size: .74rem; letter-spacing: .04em; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.sensor-ping.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sensor-ping i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.sensor-ping i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold); animation: ping 1.4s var(--ease) infinite; }

/* On phones the mock-phone frame is too small — show notifications as
   iOS-style banners across the top of the screen instead. */
@media (max-width: 600px) {
  .smartphone {
    top: calc(env(safe-area-inset-top, 0px) + 68px); bottom: auto;
    left: 10px; right: 10px; width: auto; height: auto;
    padding: 0; border-radius: 0; background: none; box-shadow: none;
  }
  .smartphone__screen { background: none; border-radius: 0; overflow: visible; height: auto; }
  .smartphone__notch, .smartphone__time, .smartphone__date { display: none; }
  .smartphone__notifs { margin-top: 0; padding: 0 !important; gap: 8px; }
  .pn { border-radius: 14px; padding: 10px 12px; background: rgba(16,15,23,.9); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
  .pn__icon { width: 32px; height: 32px; border-radius: 9px; font: 700 10px/32px "Sora"; }
  .pn__b b { font-size: .8rem; }
  .pn__b i { font-size: .66rem; }
  .pn__b p { font-size: .76rem; }
}

/* ===== Cinematic video journey (OpenArt clips) ===== */
.cinema { position: absolute; inset: 0; z-index: 0; background: #07070c; }
.cinema__layer { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.cinema__poster { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.cinema__layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
/* Portrait phones: the 16:9 clips were heavily centre-cropped by "cover" —
   show the full frame letterboxed on the dark stage instead. */
@media (max-width: 860px) and (orientation: portrait) {
  .cinema__layer video { object-fit: contain; }
}
.cinema__layer.has-video video { opacity: 1; }
.cinema::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(5,5,10,.55) 100%),
              linear-gradient(to top, rgba(5,5,10,.65), transparent 30%); }
#worldCanvas { z-index: -1; }

/* ===== Story-mode skip pill ===== */
.cinema-skip { position: absolute; right: 18px; bottom: 74px; z-index: 12;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,10,18,.55); backdrop-filter: blur(10px);
  color: #e8e6f2; font: 500 12.5px/1 Inter, sans-serif; letter-spacing: .04em;
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease; }
.cinema-skip.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cinema-skip i { width: 7px; height: 7px; border-radius: 50%; background: #ffb765;
  animation: skipPulse 1.2s ease-in-out infinite; }
@keyframes skipPulse { 0%,100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (max-width: 860px) { .cinema-skip { bottom: 86px; right: 12px; } }

/* ===== Website 2 — The Film ===== */
.film { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #07070c; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__grade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(5,5,10,.55) 100%),
              linear-gradient(to top, rgba(5,5,10,.7), transparent 28%); }
.film__caption { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%) translateY(10px);
  font: 600 clamp(20px, 3.2vw, 34px)/1.2 Sora, sans-serif; color: #f2f0f7; letter-spacing: .01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.65); opacity: 0; transition: opacity .5s ease, transform .5s ease;
  pointer-events: none; text-align: center; max-width: 90%; }
.film__caption.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.film__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: rgba(255,255,255,.12); z-index: 8; }
.film__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb765, #ff8e3c); transition: width .2s linear; }
.film-skip { position: absolute; right: 18px; bottom: 24px; z-index: 12;
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(10,10,18,.55); backdrop-filter: blur(10px); color: #e8e6f2;
  font: 500 12.5px/1 Inter, sans-serif; letter-spacing: .04em; cursor: pointer; }
.film-skip:hover { border-color: rgba(255,255,255,.45); }
.film__cta { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: rgba(5,5,10,.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .8s ease; }
.film__cta.show { opacity: 1; }
.film__cta h2 { font: 700 clamp(30px, 5vw, 54px)/1.1 Sora, sans-serif; color: #f2f0f7; margin: 0 0 8px; }
.film__cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ===== Website 2 — guided tour ===== */
.intro__note { margin-top: 14px; font: 400 13.5px/1.55 Inter, sans-serif; color: rgba(232,230,242,.72); max-width: 340px; }
.intro__note b { color: #ffb765; }
.tour-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.tour-video.on { opacity: 1; }
.film-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 12; cursor: pointer; }
.smartphone.phone-hidden { opacity: 0 !important; pointer-events: none; transition: opacity .5s ease; }
.smartphone { transition: opacity .5s ease; }

/* ===== Notification cards: self-animating (no JS/rAF dependency) ===== */
.pn { animation: pnIn .38s cubic-bezier(.2,.7,.3,1) .05s forwards; }
@keyframes pnIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.pn.out { animation: pnOut .3s ease forwards; }
@keyframes pnOut { to { opacity: 0; transform: translateY(-8px) scale(.97); } }
.smartphone__notifs { padding-bottom: 12px; }


/* ===== Text readability over video ===== */
.station h2 { text-shadow: 0 2px 10px rgba(0,0,0,.65), 0 8px 40px rgba(0,0,0,.5); }
.station__sub { color: #e6e3ee; text-shadow: 0 1px 6px rgba(0,0,0,.75), 0 4px 22px rgba(0,0,0,.55); }
.station__num, .station .eyebrow { text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.cinema::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(5,5,10,.55) 0%, rgba(5,5,10,.25) 34%, transparent 55%); }

/* ===== Phone field with dial code ===== */
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 118px; min-width: 0; }
.phone-row input { flex: 1; min-width: 0; }

/* ===== Dark native dropdowns (Windows fix: white-on-white options) ===== */
html { color-scheme: dark; }
select, select option, select optgroup { color: #e8e6f2; background-color: #17161f; }
