/* =========================================================
   Theme: "Marigold & Ink". Warm paper, deep ink, festival colours
   ========================================================= */
:root {
  --paper: #fff8ef;
  --paper-2: #fdeedb;
  --white: #ffffff;
  --ink: #170f2e;
  --ink-2: #241a45;
  --text: #170f2e;
  --muted: #6b5f80;
  --line: #eedfca;
  --marigold: #ffb224;
  --coral: #ff4d6d;
  --violet: #6d3bff;
  --teal: #00bfa6;
  --good: #16a34a;
  --radius: 22px;
  --shadow: 0 24px 60px -28px rgba(23, 15, 46, .35);
  --shadow-lg: 0 50px 100px -40px rgba(109, 59, 255, .45);
  --grad: linear-gradient(100deg, var(--marigold) 0%, var(--coral) 45%, var(--violet) 100%);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { background: var(--paper); color: var(--text); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--body); }

h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 800; margin-bottom: 0.9rem; }
h2.big { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 0; }
h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; margin: 0.6rem 0 0.3rem; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 800; color: var(--coral); margin-bottom: 0.9rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin-bottom: 1.6rem; }
.lead.center { margin-bottom: 2.6rem; }
.fine { color: var(--muted); font-size: 0.85rem; margin-top: 1.2rem; }
.fine.tiny { font-size: 0.75rem; margin-top: 0.7rem; text-align: center; }
.hidden { display: none !important; }

/* animated gradient text sweep */
.sweep {
  background: linear-gradient(90deg, var(--marigold), var(--coral), var(--violet), var(--teal), var(--marigold));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { background-position: 300% 0; } }

/* highlighter */
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 0.05em; height: 0.38em; z-index: -1;
  background: var(--marigold); border-radius: 6px; transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(.2,.8,.2,1) .3s;
}
.in .hl::after, .hl.in::after { transform: scaleX(1); }

/* split-word reveal */
[data-split] .w { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(4deg); filter: blur(6px); animation: wordIn .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d) * 70ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--grad); z-index: 100; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 0.95rem 1.6rem; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 700; border: 0; cursor: pointer; font-size: 1rem; text-align: center; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 14px 30px -14px rgba(23, 15, 46, .7); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .3s; }
.btn:hover::before { opacity: 1; }
.btn:hover { box-shadow: 0 18px 40px -14px rgba(255, 77, 109, .75); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--ink); box-shadow: none; }
.btn-ghost::before { display: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: #fff; }
.btn-small { padding: 0.6rem 1.15rem; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; margin-top: 1.1rem; font-size: 1.08rem; background: var(--grad); }
.btn-block::before { background: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 5vw; background: rgba(255, 248, 239, .78); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(23,15,46,.06);
}
.brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; display: flex; align-items: center; gap: 0.35rem; letter-spacing: -0.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); font-size: 0.8rem; color: #fff; animation: spinIn 1s cubic-bezier(.2,.8,.2,1); }
@keyframes spinIn { from { transform: rotate(-180deg) scale(.4); } }
.brand-to { font-family: var(--hand); font-size: 1.5rem; font-weight: 700; color: var(--coral); margin: 0 0.1rem; }
.nav-links { display: flex; gap: 1.7rem; font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--coral); transform: scaleX(0); transition: transform .3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- animated gradient mesh ---------- */
.mesh { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden; z-index: -1; pointer-events: none; }
.mesh span { position: absolute; width: 42vw; height: 42vw; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.mesh span:nth-child(1) { background: var(--marigold); top: -12vw; left: -8vw; }
.mesh span:nth-child(2) { background: var(--coral); top: -6vw; right: -10vw; animation-delay: -6s; opacity: .4; }
.mesh span:nth-child(3) { background: var(--violet); bottom: -18vw; right: 15vw; animation-delay: -12s; opacity: .3; }
.mesh span:nth-child(4) { background: var(--teal); bottom: -14vw; left: 10vw; animation-delay: -3s; opacity: .22; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 4vw) scale(1.15); }
  100% { transform: translate(-4vw, 6vw) scale(.92); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 3.5rem;
  padding: 4.5rem 5vw 5.5rem; max-width: 1320px; margin: 0 auto;
}
.pill { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.95rem; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 700; margin-bottom: 1.4rem; box-shadow: 0 8px 20px -14px rgba(23,15,46,.4); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,77,109,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,77,109,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); } }
.hero-line2 { margin-top: 0.2rem; }
.hero-sub { font-size: 1.22rem; color: var(--muted); margin: 1.5rem 0 2rem; max-width: 560px; }
.rotator { display: inline-block; min-width: 4ch; color: var(--violet); font-weight: 800; padding: 0 0.3rem; border-radius: 8px; background: rgba(109,59,255,.09); transition: opacity .3s, transform .3s, filter .3s; }
.rotator.swap { opacity: 0; transform: translateY(10px) scale(.95); filter: blur(4px); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-proof { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.6rem; color: var(--muted); font-size: 0.9rem; max-width: 560px; }
.hero-proof strong { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--text); }
.hero-copy { position: relative; }
.scribble { position: absolute; right: -2.5rem; top: 56%; font-family: var(--hand); font-size: 1.9rem; color: var(--coral); transform: rotate(-8deg); animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: rotate(-8deg) translateX(10px); } }

.hero-right { position: relative; }
.float-reel { position: absolute; width: 120px; aspect-ratio: 9/14.4; object-fit: cover; object-position: center bottom; border-radius: 16px; border: 4px solid #fff; box-shadow: var(--shadow); z-index: 0; transition: transform .3s ease-out; }
.fr-1 { top: -30px; left: -70px; rotate: -10deg; animation: float 7s ease-in-out infinite; }
.fr-2 { bottom: 60px; left: -95px; rotate: 8deg; width: 100px; animation: float 8s ease-in-out infinite -2s; }
.fr-3 { top: 40px; right: -70px; rotate: 9deg; width: 108px; animation: float 6.5s ease-in-out infinite -4s; }
@keyframes float { 50% { translate: 0 -14px; } }

/* ---------- interactive studio ---------- */
.studio { position: relative; z-index: 1; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 28px; padding: 1rem 1rem 1.3rem; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); }
.studio::before { content: ""; position: absolute; inset: -2px; border-radius: 30px; z-index: -1; background: conic-gradient(from var(--angle, 0deg), var(--marigold), var(--coral), var(--violet), var(--teal), var(--marigold)); animation: rotateBorder 6s linear infinite; opacity: .9; filter: blur(.5px); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rotateBorder { to { --angle: 360deg; } }
.studio::after { content: ""; position: absolute; inset: 0; border-radius: 28px; background: #fff; z-index: -1; }
.studio-top { display: flex; align-items: center; gap: 0.8rem; padding: 0.2rem 0.4rem 0.8rem; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.studio-title { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.sound-btn { margin-left: auto; border: 0; cursor: pointer; font: 700 0.78rem var(--body); padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--ink); color: #fff; }
.sound-btn:hover { background: var(--coral); }
.hero-video { border-radius: 16px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- reel marquee ---------- */
.reel-marquee { position: relative; padding: 1.8rem 0 1rem; overflow: hidden; background: var(--ink); transform: rotate(-1.5deg) scale(1.04); margin: 1rem 0 2rem; }

.reel-marquee:hover .rm-label-track { animation-play-state: paused; }
.rm-label { overflow: hidden; margin-top: 1.1rem; }
.rm-label-track { display: flex; gap: 2.6rem; width: max-content; animation: scroll 35s linear infinite reverse; }
.rm-label-track span { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: rgba(255,255,255,.35); white-space: nowrap; }
.rm-label-track span:nth-child(3n) { color: var(--marigold); }
.rm-label-track span:nth-child(3n+1) { color: #fff; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 6.5rem 5vw; max-width: 1280px; margin: 0 auto; }
.section-tint { max-width: none; background: var(--paper-2); }
.section-tint > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.row-head { text-align: center; margin-bottom: 2.4rem; }
.row-head .lead { margin: 0 auto; max-width: 560px; }

/* spotlight hover on cards */
.spot { position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,178,36,.22), transparent 45%); }
.spot:hover::before { opacity: 1; }

/* ---------- ghibli moment ---------- */
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 3rem; }
.m-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.m-card p { color: var(--muted); margin-bottom: 1.4rem; }
.m-card small { color: var(--muted); font-weight: 700; }
.m-card.dim { background: #f4ece2; box-shadow: none; }
.m-card.glow { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-lg); }
.m-card.glow p, .m-card.glow small { color: #c9c1db; }
.m-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.7rem; }
.m-card.glow .m-tag { color: var(--marigold); }
.m-meter { height: 10px; border-radius: 10px; background: rgba(23,15,46,.08); overflow: hidden; margin-bottom: 0.4rem; }
.m-card.glow .m-meter { background: rgba(255,255,255,.12); }
.m-meter span { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 10px; transition: width 1.6s cubic-bezier(.2,.8,.2,1) .2s; }
.m-meter.bad span { background: var(--coral); }
.m-meter.good span { background: var(--grad); }


/* ---------- sticky story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1180px; margin: 0 auto; padding: 6rem 5vw; }
.story-sticky { position: relative; }
.story-visual { position: sticky; top: 20vh; height: min(60vh, 470px); min-height: 400px; }
.sv-card {
  position: absolute; inset: 0; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 2rem; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  opacity: 0; transform: translateY(40px) scale(.94) rotate(-2deg); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1);
}
.story-visual[data-stage="0"] .sv-0, .story-visual[data-stage="1"] .sv-1, .story-visual[data-stage="2"] .sv-2, .story-visual[data-stage="3"] .sv-3 { opacity: 1; transform: none; }
.sv-label { font-size: 0.78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.sv-voice { display: flex; align-items: center; gap: 1rem; }
.voice { display: inline-block; font-size: 0.8rem; font-weight: 800; background: var(--coral); color: #fff; padding: 0.25rem 0.7rem; border-radius: 999px; }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; }
.wave i { width: 5px; border-radius: 4px; background: var(--violet); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(odd) { background: var(--coral); }
.wave i:nth-child(1) { animation-delay: -.1s } .wave i:nth-child(2) { animation-delay: -.3s } .wave i:nth-child(3) { animation-delay: -.5s } .wave i:nth-child(4) { animation-delay: -.2s } .wave i:nth-child(5) { animation-delay: -.6s } .wave i:nth-child(6) { animation-delay: -.4s } .wave i:nth-child(7) { animation-delay: -.7s } .wave i:nth-child(8) { animation-delay: -.15s } .wave i:nth-child(9) { animation-delay: -.45s } .wave i:nth-child(10) { animation-delay: -.25s } .wave i:nth-child(11) { animation-delay: -.65s } .wave i:nth-child(12) { animation-delay: -.35s } .wave i:nth-child(13) { animation-delay: -.55s } .wave i:nth-child(14) { animation-delay: -.05s }
@keyframes wave { 0%, 100% { height: 8px; } 50% { height: 40px; } }
.sv-quote { font-size: 1.5rem; font-weight: 700; font-family: var(--display); line-height: 1.3; }
.sv-card small { color: var(--muted); }
.sv-script { display: grid; gap: 0.6rem; padding-left: 1.4rem; font-size: 1.1rem; }
.sv-script li { padding: 0.55rem 0.8rem; border-radius: 10px; background: var(--paper); }
.chip-row { display: flex; gap: 0.5rem; }
.chip { font-size: 0.82rem; font-weight: 800; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--good); color: #fff; }
.chip.ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.sv-board { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; height: 100%; max-height: 320px; }
.sv-board span { border-radius: 16px; background: linear-gradient(150deg, var(--a), var(--b)); display: grid; place-items: center; font-family: var(--display); font-size: 2rem; font-weight: 800; color: rgba(255,255,255,.85); }
.story-visual[data-stage="3"] .sv-board span { animation: pop .5s cubic-bezier(.2,.8,.2,1.4) backwards; }
.story-visual[data-stage="3"] .sv-board span:nth-child(2) { animation-delay: .1s } .story-visual[data-stage="3"] .sv-board span:nth-child(3) { animation-delay: .2s } .story-visual[data-stage="3"] .sv-board span:nth-child(4) { animation-delay: .3s }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.sv-board span { position: relative; }
.sv-board span.sel { outline: 4px solid var(--violet); outline-offset: 3px; }
.sv-board span.sel em { position: absolute; left: 50%; bottom: -0.9rem; translate: -50% 0; white-space: nowrap; font: 700 0.75rem var(--body); font-style: normal; color: #fff; background: var(--violet); padding: 0.3rem 0.65rem; border-radius: 999px; box-shadow: var(--shadow); }
.sv-3 .share-row { margin-top: 1.4rem; }
.sv-film { position: relative; flex: 1; max-height: 320px; border-radius: 18px; background: linear-gradient(160deg, var(--marigold), var(--coral) 50%, var(--violet)); background-size: 200% 200%; animation: bgPan 5s ease-in-out infinite alternate; display: grid; place-items: center; }
.play { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: pulseWhite 2s infinite; }
@keyframes pulseWhite { 70% { box-shadow: 0 0 0 22px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.sv-film-cap { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; color: #fff; font-weight: 700; background: rgba(0,0,0,.35); padding: 0.5rem 0.8rem; border-radius: 10px; }
.share-row { display: flex; gap: 0.5rem; }
.share-row span { font-size: 0.82rem; font-weight: 700; padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

.story-steps { padding-top: 2rem; }
.story-step { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s; }
.story-step.active { opacity: 1; }
.story-step p { color: var(--muted); font-size: 1.1rem; max-width: 420px; }
.step-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 1rem; font-size: 1.2rem; }

/* ---------- dark cinema sections ---------- */
.cinema { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cinema::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 0%, rgba(255,77,109,.25), transparent 40%), radial-gradient(circle at 90% 100%, rgba(109,59,255,.35), transparent 45%); pointer-events: none; }
.cinema-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 6.5rem 5vw; }
.cinema .lead { color: #c9c1db; }
.cinema .eyebrow { color: var(--marigold); }
.stats { display: flex; gap: 2.4rem; }
.proof .stats { justify-content: center; gap: 0; margin: 0 auto 3rem; max-width: 760px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.04); }
.proof .stats > div { flex: 1; text-align: center; padding: 1.3rem 0.8rem; }
.proof .stats > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.proof .stats span { margin: 0.4rem auto 0; }
.center-row { display: flex; justify-content: center; }
.stats strong { display: block; font-family: var(--display); font-size: 2.8rem; line-height: 1; }
.stats span { color: #c9c1db; font-size: 0.82rem; max-width: 130px; display: block; }
.reel-wall { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1080px; gap: 1.2rem; margin: 0 auto 2.6rem; perspective: 900px; }
.reel { position: relative; aspect-ratio: 9 / 14.4; border-radius: 18px; overflow: hidden; border: 0; background: #000; cursor: pointer; padding: 0; color: #fff; text-align: left; transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .3s; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.reel:hover { box-shadow: 0 30px 60px -20px rgba(255,77,109,.5); }
.reel img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transform-origin: center bottom; transition: transform .6s; }
.reel:hover img { transform: scale(1.06); }
.reel span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 0.8rem 0.8rem; font-size: 0.9rem; font-weight: 700; line-height: 1.25; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.reel::after { content: "▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.8); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.1rem; opacity: 0; transition: opacity .25s, transform .25s; }
.reel:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.player { border: 0; background: transparent; margin: auto; padding: 0; overflow: visible; }
.player[open] { animation: zoomIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes zoomIn { from { transform: scale(.85); opacity: 0; } }
.player::backdrop { background: rgba(23,15,46,.88); backdrop-filter: blur(6px); }
.player-frame { width: min(380px, 90vw); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; z-index: 2; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.2rem; }
.tab { border: 1.5px solid var(--line); background: var(--white); color: var(--text); padding: 0.6rem 1.15rem; border-radius: 999px; font: 600 0.92rem var(--body); cursor: pointer; transition: all .2s; }
.tab:hover { border-color: var(--coral); transform: translateY(-2px); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-panel { min-height: 380px; }
.cat-panel.htmx-request { opacity: .4; transition: opacity .2s; }
.loading { color: var(--muted); text-align: center; }
/* ---------- category banners ---------- */
.cat-banner { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-radius: var(--radius); padding: 1.8rem 2.2rem; margin-bottom: 1.4rem; color: var(--cat-ink); box-shadow: var(--shadow); }
.cat-banner h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); color: var(--cat-ink); }
.cat-banner p { color: var(--cat-ink); opacity: .85; max-width: 580px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.cat-tags span { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; background: color-mix(in srgb, var(--cat-ink) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cat-ink) 28%, transparent); }
.cat-tags span:first-child { background: rgba(255,255,255,.92); color: #170f2e; border-color: transparent; }
.cat-art { display: flex; gap: 0.3rem; font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1; flex-shrink: 0; }
.cat-art span { display: inline-block; filter: drop-shadow(0 10px 14px rgba(0,0,0,.22)); animation: bob 4.5s ease-in-out infinite; }
.cat-art span:nth-child(1) { rotate: -8deg; }
.cat-art span:nth-child(2) { rotate: 4deg; animation-delay: -1.5s; translate: 0 -10px; }
.cat-art span:nth-child(3) { rotate: 10deg; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- template cards: a designed sample frame per template ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.tpl { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.tpl:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -28px rgba(23,15,46,.5); }
.tpl-thumb { position: relative; isolation: isolate; aspect-ratio: 4 / 3.3; overflow: hidden; display: grid; place-items: center; text-align: center; container-type: inline-size; color: var(--ink); }
.tpl-thumb::after { content: "▶"; position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; font-size: 2rem; color: #fff; opacity: 0; transition: opacity .2s; background: rgba(23,15,46,.3); }
.tpl:hover .tpl-thumb::after { opacity: 1; }
.tpl-fmt, .tpl-lang, .tpl-soon { position: absolute; z-index: 4; font-size: 0.66rem; font-weight: 800; line-height: 1.3; padding: 0.2rem 0.5rem; border-radius: 6px; }
.tpl-fmt { top: 0.6rem; left: 0.6rem; background: rgba(23,15,46,.75); color: #fff; }
.tpl-lang { top: 0.6rem; right: 0.6rem; background: rgba(255,255,255,.94); color: var(--ink); }
.tpl-soon { bottom: 0.6rem; right: 0.6rem; background: var(--coral); color: #fff; }
.tpl.is-soon .tpl-thumb { filter: saturate(.75); }
.tpl-body { padding: 1rem 1.1rem 1.2rem; }
.tpl-body h4 { margin: 0 0 0.3rem; font-size: 1rem; }
.tpl-body p { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.7rem; }
.tpl-meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.6rem; }
.tpl-meta b { color: var(--text); }
.tpl-note { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 1.1rem; }

/* scene pieces (cqi = % of the card's width, so every frame scales with its card) */
.tpl-thumb .s { position: absolute; z-index: 1; line-height: 1.05; }
.stack { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.8cqi; line-height: 1.05; padding: 0 6cqi; }
.t-script { font-family: "Playfair Display", serif; font-style: italic; font-weight: 700; }
.t-serif { font-family: "Playfair Display", serif; font-weight: 700; }
.t-hand { font-family: var(--hand); font-weight: 700; }
.t-disp { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.t-dv { font-family: var(--display); font-weight: 700; }
.lb { position: absolute; left: 0; right: 0; height: 9%; background: #000; z-index: 2; }
.lb-t { top: 0; } .lb-b { bottom: 0; }
.low3 { position: absolute; left: 6%; bottom: 9%; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: #fff; color: var(--ink); border-left: 1.6cqi solid var(--coral); padding: 1.6cqi 3cqi; border-radius: 1.4cqi; box-shadow: 0 2cqi 5cqi rgba(0,0,0,.2); }
.low3 b { font-size: 6.4cqi; line-height: 1.15; }
.low3 small { font-size: 4.2cqi; color: var(--muted); font-weight: 600; }
.pola { position: absolute; z-index: 1; background: #fff; padding: 2cqi 2cqi 6cqi; font-size: 12cqi; line-height: 1; rotate: var(--r); border-radius: 1cqi; box-shadow: 0 2cqi 5cqi rgba(0,0,0,.25); }
.pill-s { font-size: 5cqi; font-weight: 800; padding: 1.2cqi 3.6cqi; border-radius: 99px; white-space: nowrap; }
.yt { width: 24cqi; height: 16cqi; border-radius: 4.5cqi; background: #ff0033; color: #fff; display: grid; place-items: center; font-size: 7cqi; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 15%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 35% 78%, #fff, transparent), radial-gradient(1px 1px at 55% 45%, #fffa, transparent), radial-gradient(1.5px 1.5px at 12% 85%, #fff, transparent), radial-gradient(1px 1px at 92% 88%, #fff, transparent); }
.eps { display: flex; gap: 2.4cqi; }
.eps i { font-style: normal; font-size: 4.6cqi; font-weight: 800; color: #0f766e; background: #fff; padding: 7cqi 3.4cqi; border-radius: 2cqi; box-shadow: 0 2cqi 4cqi rgba(0,0,0,.2); }
.eps i:nth-child(2) { translate: 0 -2.4cqi; }
.tri { position: absolute; z-index: 1; right: 12%; top: 14%; width: 32cqi; height: 26cqi; border-left: .8cqi solid #2b2b6b; border-bottom: .8cqi solid #2b2b6b; background: linear-gradient(to top left, transparent calc(50% - .5cqi), #2b2b6b calc(50% - .4cqi) calc(50% + .4cqi), transparent calc(50% + .5cqi)); }
.phones { position: relative; z-index: 1; display: flex; gap: 3cqi; align-items: flex-end; }
.phones i { font-style: normal; width: 22cqi; aspect-ratio: 9 / 16; border-radius: 3cqi; background: var(--c); color: #fff; display: grid; place-items: center; font: 800 4.2cqi var(--display); overflow: hidden; border: 1cqi solid #170f2e; box-shadow: 0 3cqi 6cqi rgba(0,0,0,.25); }
.phones i:nth-child(2) { translate: 0 -4cqi; }
.slide { position: relative; z-index: 1; width: 80%; text-align: left; display: flex; flex-direction: column; gap: 1.6cqi; padding: 5cqi 6cqi; border-left: 2.4cqi solid #2563eb; background: #f8fafc; border-radius: 2cqi; font-size: 5cqi; color: #334155; font-weight: 600; box-shadow: 0 2cqi 6cqi rgba(15,23,42,.14); }
.slide b { font-size: 8cqi; color: #0f172a; margin-bottom: 1cqi; }
.plate { position: relative; z-index: 1; background: #fff; padding: 4cqi 8cqi; border-radius: 3cqi; display: flex; flex-direction: column; align-items: center; gap: 1cqi; box-shadow: 0 3cqi 8cqi rgba(0,0,0,.35); }
.mandala { position: absolute; width: 92cqi; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: repeating-conic-gradient(#f7d48a66 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, transparent 30%, #000 31% 46%, transparent 47% 52%, #000 53% 70%, transparent 71%); mask: radial-gradient(circle, transparent 30%, #000 31% 46%, transparent 47% 52%, #000 53% 70%, transparent 71%); opacity: .75; }
.confetti { position: absolute; inset: 0; background-image: radial-gradient(circle at 15% 20%, #ff4d6d 0 1.2cqi, transparent 1.3cqi), radial-gradient(circle at 82% 16%, #6d3bff 0 1cqi, transparent 1.1cqi), radial-gradient(circle at 88% 72%, #00bfa6 0 1.3cqi, transparent 1.4cqi), radial-gradient(circle at 10% 80%, #ffb224 0 1.1cqi, transparent 1.2cqi), radial-gradient(circle at 50% 8%, #00bfa6 0 .9cqi, transparent 1cqi), radial-gradient(circle at 66% 92%, #ff4d6d 0 1cqi, transparent 1.1cqi); }
.toran { position: absolute; z-index: 1; bottom: 2cqi; left: 0; right: 0; font-size: 7cqi; line-height: 1; white-space: nowrap; overflow: hidden; }
.bub { position: absolute; z-index: 1; background: #fff; color: #1e1b4b; font-size: 5cqi; font-weight: 700; padding: 2cqi 3.6cqi; border-radius: 3cqi; box-shadow: 0 2cqi 5cqi rgba(0,0,0,.2); white-space: nowrap; }
.bub.a { background: #065f46; color: #fff; }
.neon { color: #ff6ad5; text-shadow: 0 0 2cqi #ff2bd6, 0 0 6cqi #ff2bd6; }
.poster { color: #ffe14d; -webkit-text-stroke: .8cqi #7a1f00; paint-order: stroke fill; text-shadow: 1.4cqi 1.4cqi 0 #7a1f00; }
.dash { position: relative; z-index: 1; width: 78%; height: 74%; border: 1cqi dashed #ff4d6d88; border-radius: 4cqi; display: grid; place-content: center; gap: 1cqi; }
.strip { position: relative; z-index: 1; display: flex; gap: 2cqi; padding: 4cqi 3cqi; background: #000; border-top: 1.6cqi dotted #fff6; border-bottom: 1.6cqi dotted #fff6; }
.strip i { font-style: normal; width: 25cqi; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #6d3bff, #ff4d6d); display: grid; place-items: center; color: #fff; font: 800 5cqi var(--display); border-radius: 1cqi; }
.prog { width: 60cqi; height: 3cqi; background: #fff9; border-radius: 9px; overflow: hidden; }
.prog i { display: block; height: 100%; background: #f59e0b; }
.ring { width: 24cqi; aspect-ratio: 1; border-radius: 50%; border: 4.5cqi solid #2563eb; }
.sched { display: flex; flex-direction: column; gap: 1cqi; font-size: 5cqi; color: #fde68a; }
.sched b { color: #fff; }
.chart { position: absolute; z-index: 1; right: 8%; bottom: 12%; width: 46%; height: 56%; display: flex; align-items: flex-end; gap: 3cqi; }
.chart i { flex: 1; background: linear-gradient(#22c55e, #15803d); border-radius: 1.5cqi 1.5cqi 0 0; }

/* ---------- levels ---------- */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; align-items: end; }
.level { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.3rem; box-shadow: var(--shadow); transition: transform .3s; }
.level:hover { transform: translateY(-6px); }
.level p { color: var(--muted); font-size: 0.92rem; }
.level:nth-child(1) { min-height: 190px; } .level:nth-child(2) { min-height: 225px; } .level:nth-child(3) { min-height: 260px; } .level:nth-child(4) { min-height: 295px; }
.level.hot { background: var(--ink); color: #fff; border-color: var(--ink); }
.level.hot p { color: #c9c1db; }
.lvl { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin-bottom: 0.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.trust > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.trust span { font-size: 1.8rem; }
.trust p { color: var(--muted); font-size: 0.92rem; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 980px; margin: 0 auto; align-items: center; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan .price { font-family: var(--display); font-size: 2.3rem; font-weight: 800; margin: 0.4rem 0 1rem; }
.plan .price span { font-size: 0.9rem; color: var(--muted); font-family: var(--body); font-weight: 500; }
.plan ul { list-style: none; display: grid; gap: 0.5rem; color: var(--muted); font-size: 0.92rem; flex: 1; margin-bottom: 1.4rem; }
.plan ul li::before { content: "•"; color: var(--coral); margin-right: 0.5rem; font-weight: 800; }
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); padding-block: 2.6rem; box-shadow: var(--shadow-lg); overflow: visible; }
.plan.featured ul, .plan.featured .price span { color: #c9c1db; }
.plan.featured .btn { background: var(--grad); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 0.3rem 0.9rem; border-radius: 999px; white-space: nowrap; }

/* ---------- vision ---------- */
.vision .cinema-inner { text-align: center; padding-block: 8rem; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 10px; left: 12%; right: 12%; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.timeline.in::before { transform: scaleX(1); }
.timeline div { position: relative; padding-top: 2.2rem; }
.timeline div::before { content: ""; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--marigold); }
.timeline span { font-weight: 800; color: var(--marigold); text-transform: uppercase; font-size: 0.8rem; letter-spacing: .14em; }
.timeline p { color: #c9c1db; margin-top: 0.4rem; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 2rem auto 0; display: grid; gap: 0.8rem; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.3rem; box-shadow: 0 10px 30px -22px rgba(23,15,46,.4); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 1.4rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 0.7rem; }

/* ---------- cta ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 7rem 5vw; }
.mesh-cta span { width: 36vw; height: 36vw; opacity: .45; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.cta .lead { margin: 0 auto 2rem; }
.waitlist { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.waitlist input, .waitlist select { padding: 0.95rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--text); font: 500 1rem var(--body); min-width: 230px; }
.waitlist input:focus, .waitlist select:focus { outline: 2px solid var(--coral); }

.footer { text-align: center; padding: 3rem 5vw 4rem; background: var(--ink); color: #c9c1db; display: grid; gap: 0.6rem; justify-items: center; }
.footer .brand { color: #fff; }
.footer .fine { color: #8f86a6; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--rd, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mobile menu ---------- */
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 50%; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); transition: transform .3s, opacity .3s; content: ""; }
.menu-btn span { top: 50%; margin-top: -1px; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta { display: none; }

/* ---------- responsive ---------- */
/* Product demo video */
.demo .lead.center { margin-left: auto; margin-right: auto; }
.demo-frame { max-width: 1040px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.demo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo .fine a, #faq a, .footer a { color: var(--coral); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.founder { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.3rem; box-shadow: var(--shadow); }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; font: 800 1.1rem var(--display); margin-bottom: 0.9rem; }
.founder .role { color: var(--coral); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 0.6rem; }
.founder p:last-child { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
#team .lead strong { color: var(--text); }
@media (max-width: 1100px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } .sound-btn { font-size: 0.7rem; padding: 0.35rem 0.6rem; } }

/* Research: the experiments behind the templates */
.experiments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; max-width: 1080px; margin: 0 auto 4rem; }
.experiments article { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 1.3rem 1.1rem; }
.experiments span { font-size: 1.6rem; }
.experiments h4 { color: #fff; }
.experiments p { color: #c9c1db; font-size: 0.88rem; line-height: 1.45; }
.exp-sub { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.8rem; }
.exp-sub em { color: var(--marigold); font-style: normal; }

/* Queue call to action (email, no form yet) */
.queue { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.queue-mail { font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.6rem); border-bottom: 3px solid var(--coral); padding-bottom: 2px; }
.queue-mail:hover { color: var(--coral); }

@media (max-width: 1100px) {
  .experiments { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .cat-banner { flex-direction: column-reverse; align-items: flex-start; gap: 0.8rem; padding: 1.4rem 1.3rem; }
  .cat-art { font-size: 2.6rem; }
}
@media (max-width: 520px) {
  .tpl-fmt, .tpl-lang, .tpl-soon { font-size: 0.58rem; padding: 0.15rem 0.4rem; }
  .tpl-fmt, .tpl-lang { top: 0.4rem; } .tpl-fmt { left: 0.4rem; } .tpl-lang { right: 0.4rem; }
}
@media (max-width: 520px) {
  .experiments { grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 3rem; }
  .experiments article { padding: 1rem 0.9rem; }
  .queue .btn { width: 100%; max-width: 420px; }
  .queue-mail { word-break: break-all; }
}

@media (max-width: 1100px) {
  .tpl-grid, .levels { grid-template-columns: repeat(2, 1fr); }
  .level { min-height: 0 !important; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .reel-wall { grid-template-columns: repeat(3, 1fr); }
  .float-reel { display: none; }
}

@media (max-width: 860px) {
  /* nav becomes a dropdown */
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 0.5rem 5vw 1.2rem;
    background: rgba(255, 248, 239, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(23,15,46,.3);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links a { padding: 0.85rem 0; font-size: 1.05rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav .btn-small { white-space: nowrap; }

  .section, .cinema-inner { padding: 4.2rem 5vw; }
  .vision .cinema-inner { padding-block: 5rem; }
  .cta { padding: 5rem 5vw; }

  .hero, .split, .moment-grid, .pricing, .story { grid-template-columns: 1fr; }
  .hero { padding: 2.2rem 5vw 3.5rem; gap: 2.4rem; }
  .hero-sub { font-size: 1.08rem; margin: 1.1rem 0 1.5rem; }
  .scribble { display: none; }

  /* sticky story: visual pinned at top, steps scroll underneath */
  .story { display: block; padding: 3.5rem 5vw; }
  .story-sticky { display: contents; }
  .story-visual { position: sticky; top: 72px; height: 330px; min-height: 0; z-index: 2; }
  .story-visual::before { content: ""; position: absolute; inset: -80px -5vw -40px; z-index: -1; background: linear-gradient(var(--paper) 82%, rgba(255,248,239,0)); }
  .story-steps { padding-top: 0.5rem; }
  .story-steps > .eyebrow, .story-steps > h2 { display: none; }
  .story-step { min-height: 62vh; justify-content: flex-start; padding-top: 1.5rem; }
  .sv-card { padding: 1.4rem; }
  .sv-quote { font-size: 1.2rem; }
  .sv-script { font-size: 0.95rem; }
  .sv-board, .sv-film { max-height: 200px; }

  /* tabs become one swipeable row */
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -5vw 1.6rem; padding: 0.3rem 5vw; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }

  /* language orbit becomes a tidy stack */

  .pricing { max-width: 440px; }
  .plan.featured { padding-block: 2rem; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .timeline::before { display: none; }

  .waitlist { flex-direction: column; max-width: 420px; margin: 0 auto; }
  .waitlist input, .waitlist select, .waitlist .btn { width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
  h1 { font-size: 2.45rem; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 28px; height: 28px; }
  .nav { padding: 0.7rem 4vw; }
  .nav .btn-small { display: none; }
  .nav-links .nav-cta { display: block; margin-top: 0.6rem; padding: 0.9rem 1rem; border-radius: 999px; border: 0; background: var(--ink); color: #fff; text-align: center; }

  .hero-ctas .btn { width: 100%; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 1.8rem; font-size: 0.78rem; line-height: 1.35; }
  .hero-proof strong { font-size: 1.35rem; }
  .studio { padding: 0.7rem 0.7rem 1rem; border-radius: 22px; }
  .chip-btn { font-size: 0.8rem; padding: 0.4rem 0.7rem; }

  .rm-label-track span { font-size: 1.2rem; }
  .reel-marquee { transform: rotate(-2deg) scale(1.08); }

  .m-card { padding: 1.5rem; }

  .proof .stats { flex-wrap: wrap; }
  .proof .stats > div { flex: 1 1 50%; padding: 1rem 0.5rem; }
  .proof .stats > div + div { border-left: 0; }
  .proof .stats > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .proof .stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .stats strong { font-size: 2.2rem; }
  .reel-wall { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .reel span { font-size: 0.78rem; padding: 2rem 0.6rem 0.6rem; }

  .tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .tpl-body { padding: 0.8rem; }
  .tpl-body p { display: none; }
  .tpl-meta { flex-direction: column; gap: 0.2rem; }

  .levels, .trust { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  h2.big { font-size: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-split] .w { opacity: 1; transform: none; filter: none; }
}
