:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

html.lenis, html.lenis body { height: auto; }
.lenis-smooth { scroll-behavior: auto !important; }
.lenis-stopped { overflow: hidden; }

::selection { background: rgba(213,173,99,0.35); color: #fff; }

/* ---------- Film layer ---------- */
.cine-grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: cine-grain 1.4s steps(6) infinite;
}
@keyframes cine-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cine-progress {
  position: fixed; top: 0; left: 0; z-index: 70; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #B8943F, #E8C98A, #fff);
  box-shadow: 0 0 12px rgba(232,201,138,.6);
}

.cine-cursor {
  position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(213,173,99,.14) 0%, rgba(107,143,212,.05) 35%, transparent 62%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .5s;
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
}
.cine-cursor.is-on { opacity: 1; }

/* ---------- Curtain / page transitions ---------- */
.cine-curtain { display: none; }
.cine-js .cine-curtain {
  display: flex; position: fixed; inset: 0; z-index: 200;
  flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: radial-gradient(70% 55% at 50% 42%, #1c160c 0%, #070605 72%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
  animation: cine-failsafe .01s 4.5s forwards;
}
.cine-curtain.is-open { clip-path: inset(0 0 100% 0); }
.cine-curtain.is-prep { transition: none; clip-path: inset(100% 0 0 0); animation: none; visibility: visible; }
.cine-curtain.is-leaving { clip-path: inset(0 0 0 0); animation: none; visibility: visible; transition: clip-path .65s var(--ease-io); }
@keyframes cine-failsafe { to { visibility: hidden; } }
.cine-curtain__logo {
  height: 58px; width: auto; opacity: 0; transform: translateY(14px) scale(.96);
  animation: cine-logo-in 1s .1s var(--ease-out) forwards;
  filter: drop-shadow(0 10px 40px rgba(213,173,99,.35));
}
@keyframes cine-logo-in { to { opacity: 1; transform: none; } }
.cine-curtain__bar { position: relative; width: 180px; height: 1px; overflow: hidden; background: rgba(255,255,255,.1); }
.cine-curtain__bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, #E8C98A, transparent);
  animation: cine-bar 1.2s var(--ease-io) infinite;
}
@keyframes cine-bar { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Header ---------- */
.cine-header { transition: transform .6s var(--ease-out); }
.cine-header.is-hidden { transform: translate(-50%, -140%); }
.cine-header > div { transition: background .4s, box-shadow .4s; }
.cine-header.is-scrolled > div { background: rgba(10, 9, 7, .72); box-shadow: 0 20px 50px -25px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12); }

/* ---------- Reveals ---------- */
.cine-js [data-reveal] {
  opacity: 0; transform: translate3d(0, 42px, 0); filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.cine-js [data-reveal="scale"] { transform: scale(.94); }
.cine-js [data-reveal="left"] { transform: translate3d(-50px, 0, 0); }
.cine-js [data-reveal="right"] { transform: translate3d(50px, 0, 0); }
.cine-js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .12em; margin: -.04em -.02em -.12em; }
.split-i {
  display: inline-block; transform: translate3d(0, 110%, 0) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 60ms + var(--d, 0ms));
}
.split.is-in .split-i { transform: none; }

.scrub-w { opacity: .14; transition: opacity .35s ease, color .35s ease; }
.scrub-w.is-lit { opacity: 1; }

/* ---------- Buttons ---------- */
.glass-btn { position: relative; overflow: hidden; isolation: isolate; }
.glass-btn::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255,255,255,.38) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform 1s var(--ease-out);
}
.glass-btn:hover::after { transform: translateX(130%); }
.glass-btn-primary::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); }
.btn-shine-loop::after { animation: cine-shine 5s 2.5s var(--ease-out) infinite; }
@keyframes cine-shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
[data-magnetic] { transition: transform .45s var(--ease-out); will-change: transform; }
.btn-arrow { display: inline-block; margin-left: .45em; transition: transform .35s var(--ease-out); }
a:hover .btn-arrow, button:hover .btn-arrow { transform: translateX(4px); }

.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 13px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--text);
}
.store-btn svg { width: 18px; height: 18px; flex: none; }
.store-btn small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .02em; line-height: 1.1; }
.store-btn span { line-height: 1.15; text-align: left; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; will-change: transform, opacity; }
.hero-title { font-size: clamp(42px, min(7vw, 11vh), 112px); line-height: .96; letter-spacing: -.045em; }
.hero-title .grad { background-size: 200% 100%; animation: cine-grad 8s ease-in-out infinite alternate; }
@keyframes cine-grad { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.split .split-i.grad { background-size: 200% 100%; }

.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.scroll-hint__mouse { width: 22px; height: 34px; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); position: relative; }
.scroll-hint__mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: cine-wheel 1.8s var(--ease-io) infinite; }
@keyframes cine-wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.devices-arc { position: relative; z-index: 1; height: clamp(320px, 44vw, 600px); perspective: 1800px; margin-top: clamp(28px, 5vw, 64px); }
.devices-arc__inner { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.dv { position: absolute; bottom: var(--b, 0%); left: var(--l); z-index: var(--z, 1); transform: translateX(-50%); }
.dv-enter { transition: transform 1.6s var(--ease-out), opacity 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
.cine-js .dv-enter { opacity: 0; transform: translate3d(0, 160px, 0) rotateX(18deg); }
.hero.is-in .dv-enter { opacity: 1; transform: none; }
.dv-pose { transform: rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) scale(var(--s, 1)); transform-style: preserve-3d; }
.dv-float { animation: cine-float var(--ft, 7s) ease-in-out var(--fd, 0s) infinite alternate; }
@keyframes cine-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -18px, 0); } }
.dv a { display: block; border-radius: 40px; outline-offset: 6px; }
.dv a:hover .device { box-shadow: 0 50px 120px -30px rgba(213,173,99,.45), 0 0 0 1px rgba(232,201,138,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.dv-label {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%) translateY(6px); white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--accent-soft); opacity: 0; transition: opacity .35s, transform .35s var(--ease-out);
}
.dv a:hover .dv-label, .dv a:focus-visible .dv-label { opacity: 1; transform: translateX(-50%); }

/* ---------- Devices ---------- */
.device {
  position: relative; width: var(--w, 200px); aspect-ratio: 600 / 1304; padding: 3.6%;
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, #3a3326 0%, #15130f 38%, #0b0a08 70%, #2a241a 100%);
  box-shadow: 0 50px 100px -35px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: box-shadow .5s;
}
.device::before {
  content: ""; position: absolute; top: 4.6%; left: 50%; width: 28%; height: 3%; transform: translateX(-50%);
  border-radius: 999px; background: #000; z-index: 2;
}
.device::after {
  content: ""; position: absolute; inset: 3.6%; border-radius: 12% / 5.6%; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.05) 100%);
}
.device img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12% / 5.6%; background: #000; }
.device--bare::before { display: none; }
.device--tablet { width: var(--w, 420px); aspect-ratio: 4 / 3; padding: 2.6%; border-radius: 6% / 8%; }
.device--tablet::before { top: 50%; left: 1.1%; width: .9%; height: 3%; transform: translateY(-50%); }
.device--tablet::after, .device--tablet img { border-radius: 4.4% / 5.9%; }
.device--tablet::after { inset: 2.6%; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(28px, 5vw, 72px); width: max-content; animation: cine-marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes cine-marquee { to { transform: translateX(-50%); } }
.marquee__item { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; letter-spacing: -.03em; font-size: clamp(26px, 4vw, 54px); color: var(--text); transition: color .3s; }
.marquee__item img { width: clamp(38px, 4.4vw, 58px); height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); }
.marquee__item.is-outline { color: transparent; -webkit-text-stroke: 1px rgba(232,201,138,.55); }
.marquee__item:hover { color: var(--accent-soft); -webkit-text-stroke-color: transparent; }
.marquee__star { color: var(--accent); font-size: clamp(16px, 2vw, 26px); opacity: .7; }

/* ---------- App stage (stacked by default, pinned when .is-live) ---------- */
.stage { position: relative; overflow-x: clip; }
.stage:not(.is-live) .app-glow { display: none; }
.stage:not(.is-live) .app-panel { background: radial-gradient(70% 38% at 50% 22%, rgba(var(--tint), .16), transparent 72%); }
.stage-inner { position: relative; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.app-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 65% at 72% 52%, rgba(var(--tint), .30), transparent 70%), radial-gradient(40% 50% at 15% 80%, rgba(var(--tint), .12), transparent 70%); }
.app-panel { position: relative; display: grid; grid-template-columns: 1fr; align-items: center; gap: 8px; padding: 48px 0 72px; }
.app-panel + .app-panel { border-top: 1px solid rgba(255,255,255,.06); }
.ap-index {
  position: absolute; left: -.5rem; top: 30%; transform: translateY(-50%); z-index: 0; pointer-events: none;
  font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; letter-spacing: -.08em; line-height: .8;
  font-size: 46vw; color: transparent; -webkit-text-stroke: 1px rgba(var(--tint), .22);
}
.ap-text { position: relative; z-index: 2; }
.ap-icon { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 20px 50px -18px rgba(var(--tint), .7), 0 0 0 1px rgba(255,255,255,.12); }
.ap-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--tint)); }
.ap-cat::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.ap-title { font-size: clamp(38px, 5vw, 72px); line-height: .98; letter-spacing: -.045em; }
.ap-plat { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ap-plat span { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; color: #E9E1D2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.ap-device { position: relative; z-index: 1; order: -1; height: 112vw; max-height: 560px; display: flex; align-items: center; justify-content: center; perspective: 1600px; }
.ap-fan { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
.ap-shot {
  position: absolute; left: 50%; top: 50%; --w: 40vw;
  margin-left: calc(var(--w) / -2); margin-top: calc(var(--w) * -1.0867);
  transition: transform 1.3s var(--ease-out), opacity .9s var(--ease-out), filter .9s var(--ease-out);
}
.ap-shot.s1 { z-index: 3; }
.ap-shot.s2 { z-index: 1; transform: translate3d(-72%, 5%, -140px) rotateY(20deg) rotateZ(-6deg) scale(.84); opacity: .78; }
.ap-shot.s3 { z-index: 1; transform: translate3d(72%, 5%, -140px) rotateY(-20deg) rotateZ(6deg) scale(.84); opacity: .78; }
.ap-device--tablet { height: 70vw; max-height: 520px; }
.ap-device--tablet .ap-shot { --w: 76vw; margin-top: calc(var(--w) * -.375); }
.ap-device--tablet .ap-shot.s2 { transform: translate3d(-30%, -34%, -220px) rotateY(16deg) scale(.7); opacity: .6; }
.ap-device--tablet .ap-shot.s3 { transform: translate3d(30%, 34%, -220px) rotateY(-16deg) scale(.7); opacity: .6; }
.stage-rail, .stage-count { display: none; }

@media (min-width: 900px) {
  .stage.is-live { height: calc(var(--n, 5) * 100vh); }
  .stage-sticky { position: relative; }
  .stage.is-live .stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
  .stage.is-live .stage-inner { height: 100%; padding: 0 1.5rem; }
  .stage.is-live .app-glow { opacity: 0; transition: opacity 1.2s var(--ease-out); }
  .stage.is-live .app-glow.is-active { opacity: 1; }
  .stage.is-live .app-panel {
    position: absolute; inset: 0; padding: 0 4.5rem 0 1.5rem; border: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px);
    visibility: hidden; pointer-events: none; transition: visibility 0s .9s;
  }
  .stage.is-live .app-panel.is-active { visibility: visible; pointer-events: auto; transition: visibility 0s; }
  .stage.is-live .ap-index { left: -1rem; top: 50%; font-size: clamp(160px, 26vw, 400px); opacity: 0; transform: translateY(-58%); transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out); }
  .stage.is-live .app-panel.is-active .ap-index { opacity: 1; transform: translateY(-50%); }
  .stage.is-live .ap-anim { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(8px); transition: opacity .45s, transform .6s var(--ease-out), filter .45s; }
  .stage.is-live .app-panel.is-active .ap-anim { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--k, 0) * 80ms + 180ms); }
  .stage.is-live .ap-device { order: 0; height: min(80vh, 720px); max-height: none; }
  .stage.is-live .ap-shot { --w: min(18vw, 270px, 31vh); opacity: 0; filter: blur(12px); transform: translate3d(0, 80px, -260px) scale(.78); }
  .stage.is-live .ap-device--tablet .ap-shot { --w: min(36vw, 560px, 62vh); }
  .stage.is-live .app-panel.is-active .ap-shot { filter: none; }
  .stage.is-live .app-panel.is-active .ap-shot.s1 { opacity: 1; transform: none; transition-delay: .15s; }
  .stage.is-live .app-panel.is-active .ap-shot.s2 { opacity: .78; transform: translate3d(-72%, 5%, -140px) rotateY(20deg) rotateZ(-6deg) scale(.84); transition-delay: .3s; }
  .stage.is-live .app-panel.is-active .ap-shot.s3 { opacity: .78; transform: translate3d(72%, 5%, -140px) rotateY(-20deg) rotateZ(6deg) scale(.84); transition-delay: .4s; }
  .stage.is-live .app-panel.is-active .ap-device--tablet .ap-shot.s2 { opacity: .6; transform: translate3d(-30%, -34%, -220px) rotateY(16deg) scale(.7); }
  .stage.is-live .app-panel.is-active .ap-device--tablet .ap-shot.s3 { opacity: .6; transform: translate3d(30%, 34%, -220px) rotateY(-16deg) scale(.7); }
  .stage.is-live .stage-rail { position: absolute; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 10px; }
  .stage.is-live .stage-count { position: absolute; left: 1.5rem; bottom: 28px; z-index: 5; display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .18em; color: var(--muted); font-variant-numeric: tabular-nums; }
  .stage:not(.is-live) .app-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 72px 0; }
  .stage:not(.is-live) .ap-device { order: 0; height: 620px; max-height: none; }
  .stage:not(.is-live) .ap-shot { --w: 240px; }
  .stage:not(.is-live) .ap-device--tablet .ap-shot { --w: 480px; }
  .stage:not(.is-live) .ap-index { font-size: 300px; top: 50%; }
}
.rail-dot { position: relative; display: block; width: 10px; height: 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; cursor: pointer; transition: height .5s var(--ease-out), background .4s, border-color .4s; }
.rail-dot.is-active { height: 34px; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px rgba(213,173,99,.6); }
.rail-dot span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--text); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out); padding: 4px 10px; border-radius: 10px; background: rgba(10,9,7,.8); border: 1px solid rgba(255,255,255,.12); }
.rail-dot:hover span, .rail-dot:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.stage-count b { color: var(--text); font-weight: 700; letter-spacing: .04em; text-transform: none; font-size: 13px; min-width: 11em; }
.ap-fan.is-cycling .ap-shot { transition-delay: 0s !important; }
.ap-fan { cursor: pointer; }

/* ---------- Mobile dock (featured projects) ---------- */
.m-dock { display: none; }
@media (max-width: 899px) {
  .m-dock {
    display: flex; position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 45;
    gap: 10px; padding: 9px 12px; border-radius: 24px;
    background: rgba(12, 10, 8, .72); border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.12);
    transform: translate(-50%, 160%); opacity: 0; pointer-events: none;
    transition: transform .7s var(--ease-out), opacity .5s;
  }
  .m-dock.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
  .m-dock__item { position: relative; display: block; transition: transform .45s var(--ease-out); }
  .m-dock__item img { width: 42px; height: 42px; border-radius: 12px; opacity: .55; filter: saturate(.6); transition: opacity .4s, filter .4s, box-shadow .4s; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
  .m-dock__item.is-active { transform: translateY(-5px) scale(1.12); }
  .m-dock__item.is-active img { opacity: 1; filter: none; box-shadow: 0 10px 26px -8px rgba(213,173,99,.7), 0 0 0 1.5px rgba(232,201,138,.9); }
  .m-dock__item::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-soft); opacity: 0; transition: opacity .4s; }
  .m-dock__item.is-active::after { opacity: 1; }

  /* Hero devices: bigger, overlapping composition */
  .devices-arc { height: clamp(340px, 104vw, 520px); }
  .devices-arc .dv:nth-child(3) { left: 50% !important; bottom: 18% !important; }
  .devices-arc .dv:nth-child(3) .device { --w: 76vw !important; }
  .devices-arc .dv:nth-child(2) { left: 15% !important; bottom: 0 !important; }
  .devices-arc .dv:nth-child(4) { left: 85% !important; bottom: 0 !important; }
  .devices-arc .dv:nth-child(2) .device, .devices-arc .dv:nth-child(4) .device { --w: 30vw !important; }
  .devices-arc .dv:nth-child(2), .devices-arc .dv:nth-child(4) { z-index: 3 !important; }
  .dv-label { display: none; }

  /* Featured projects: per-project cinematic entrance */
  .app-panel { padding: 36px 0 84px; }
  .ap-device { height: 124vw; max-height: 620px; }
  .ap-shot { --w: 46vw; }
  .ap-device--tablet { height: 78vw; max-height: 540px; }
  .ap-device--tablet .ap-shot { --w: 82vw; }
  .stage:not(.is-live) .ap-fan {
    transform: rotateX(calc(var(--fp, 0) * 9deg)) rotateY(calc(var(--fp, 0) * -12deg)) translate3d(0, calc(var(--fp, 0) * -22px), 0);
    transition: transform .25s linear;
  }
  .cine-js .stage:not(.is-live) .ap-anim {
    opacity: 0; transform: translate3d(0, 32px, 0); filter: blur(7px);
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out);
    transition-delay: calc(var(--k, 0) * 90ms + 250ms);
  }
  .cine-js .stage:not(.is-live) .app-panel.is-active .ap-anim { opacity: 1; transform: none; filter: none; }
  .cine-js .stage:not(.is-live) .app-panel:not(.is-active) .ap-shot { opacity: 0; filter: blur(12px); transform: translate3d(0, 110px, -240px) rotateX(18deg) scale(.72); }
  .cine-js .stage:not(.is-live) .app-panel.is-active .ap-shot.s1 { transition-delay: .05s; }
  .cine-js .stage:not(.is-live) .app-panel.is-active .ap-shot.s2 { transition-delay: .22s; }
  .cine-js .stage:not(.is-live) .app-panel.is-active .ap-shot.s3 { transition-delay: .34s; }
  .cine-js .stage:not(.is-live) .ap-index { opacity: 0; transform: translate3d(-40px, -50%, 0); transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
  .cine-js .stage:not(.is-live) .app-panel.is-active .ap-index { opacity: 1; transform: translate3d(0, -50%, 0); }
  .stage:not(.is-live) .app-panel { background: radial-gradient(90% 42% at 50% 24%, rgba(var(--tint), .26), transparent 72%); }
}
@media (pointer: coarse) {
  .scroll-hint__mouse { width: 1px; height: 38px; border: 0; border-radius: 0; background: linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.35)); }
  .scroll-hint__mouse::after { left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; animation: cine-drip 1.8s var(--ease-io) infinite; }
}
@keyframes cine-drip { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
.stage-count__line { position: relative; width: 120px; height: 1px; background: rgba(255,255,255,.15); overflow: hidden; }
.stage-count__line i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

/* ---------- Spotlight / tilt cards ---------- */
.spot { --mx: 50%; --my: 50%; overflow: hidden; }
.spot > .spot-light { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(213,173,99,.16), transparent 42%); }
.spot:hover > .spot-light { opacity: 1; }
[data-tilt] { transform-style: preserve-3d; transition: transform .6s var(--ease-out), border-color .35s; will-change: transform; }
.svc-num { font-family: "Inter Tight", Inter, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: rgba(232,201,138,.7); }

/* ---------- Manifesto ---------- */
.manifesto { font-family: "Inter Tight", Inter, sans-serif; font-weight: 600; letter-spacing: -.03em; line-height: 1.22; font-size: clamp(22px, 2.5vw, 38px); }
.parallax-img { overflow: hidden; }
.parallax-img img { transform: scale(1.18) translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* ---------- Dock ---------- */
.dock { display: inline-flex; align-items: flex-end; gap: clamp(8px, 1.6vw, 18px); padding: 14px clamp(14px, 2vw, 22px); border-radius: 30px; }
.dock-item { position: relative; display: block; --s: 1; transform: translateY(calc((var(--s) - 1) * -22px)) scale(var(--s)); transform-origin: 50% 100%; transition: transform .18s ease-out; }
.dock-item img { width: clamp(52px, 7vw, 76px); height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12); }
.dock-item::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-soft); opacity: .7; }
.dock-tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); white-space: nowrap; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 10px; background: rgba(10,9,7,.88); border: 1px solid rgba(255,255,255,.14); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out); }
.dock-item:hover .dock-tip, .dock-item:focus-visible .dock-tip { opacity: 1; transform: translate(-50%, 0); }
.app-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 22px; }
.app-row img { width: 52px; height: 52px; border-radius: 15px; }
.app-row__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 11px; font-size: 12px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease-out); }
.chip-link:hover { background: rgba(213,173,99,.14); border-color: rgba(213,173,99,.45); color: #fff; transform: translateY(-1px); }
.chip-link svg { width: 14px; height: 14px; }

/* ---------- Animated border ---------- */
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.glow-border { position: relative; border-radius: 28px; }
.glow-border::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--ga), transparent 0 62%, rgba(232,201,138,.95) 76%, rgba(107,143,212,.6) 84%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cine-spin 7s linear infinite;
}
@keyframes cine-spin { to { --ga: 360deg; } }

/* ---------- Apps page cards ---------- */
.showcase-card { display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; }
.showcase-card__stage { position: relative; height: 300px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: radial-gradient(70% 90% at 50% 100%, rgba(var(--tint), .3), transparent 70%); }
.showcase-card__stage .device { --w: 168px; margin-bottom: -150px; transition: transform .9s var(--ease-out); }
.showcase-card__stage .device--tablet { --w: 360px; margin-bottom: -60px; }
.showcase-card:hover .showcase-card__stage .device { transform: translateY(-30px) rotate(-2deg); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 28px); align-items: center; }
.gallery .device { --w: 100%; }
.gallery--tablet { grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .gallery--tablet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery--tablet .device--tablet { --w: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .app-row { grid-template-columns: auto minmax(0, 1fr); }
  .app-row__links { grid-column: 1 / -1; justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cine-js .cine-curtain, .cine-grain, .cine-cursor { display: none !important; }
  .cine-js [data-reveal], .split-i, .cine-js .dv-enter, .ap-anim, .ap-shot { transition: none !important; }
  .stage.is-live .ap-anim { opacity: 1; transform: none; filter: none; }
  .cine-js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .split-i { transform: none; }
  .cine-js .dv-enter { opacity: 1; transform: none; }
  .dv-float, .marquee__track, .glow-border::before, .btn-shine-loop::after, .hero-title .grad { animation: none !important; }
  .scrub-w { opacity: 1; }
}
