/* ============================================================
   showcase.css — Atypisch presentation layer
   Device mockups (browser / laptop / phone), staged scenes,
   scroll reveals, parallax, hover-preview lists.
   Load AFTER pages.css.
   ============================================================ */

/* ── 1. SCENES — staged backgrounds a mockup sits on ───────── */
.scene { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; display: grid; place-items: center; padding: clamp(18px, 2.4vw, 40px) clamp(18px, 2.6vw, 44px) clamp(34px, 3.4vw, 54px); }
.scene--flat { border-radius: 0; }
.scene--navy    { background: linear-gradient(145deg, #04090f 0%, #0a2028 46%, #10403f 100%); }
.scene--teal    { background: linear-gradient(145deg, #062a2b 0%, #0f5f5a 55%, #26a69a 100%); }
.scene--royal   { background: linear-gradient(145deg, #080d23 0%, #1e40af 62%, #5c6bc0 100%); }
.scene--magenta { background: linear-gradient(145deg, #1e0715 0%, #9c1145 58%, #e91e63 100%); }
.scene--sand    { background: linear-gradient(145deg, #f2efe8 0%, #e4e7e2 50%, #d8e3e0 100%); }
.scene--mist    { background: linear-gradient(145deg, #eef2f4 0%, #e2eaee 55%, #cfe0e2 100%); }
.scene__glow { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; z-index: 0; }
.scene__glow--a { top: -22%; left: -12%; background: rgba(45,212,191,0.55); }
.scene__glow--b { bottom: -28%; right: -14%; background: rgba(92,107,192,0.5); }
.scene__glow--pink { bottom: -26%; right: -10%; background: rgba(233,30,99,0.45); }
.scene::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px); background-size: 22px 22px; opacity: 0.22; mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 78%); }
.scene--sand::after, .scene--mist::after { background-image: radial-gradient(rgba(15,23,42,0.16) 1px, transparent 1px); opacity: 0.30; }
.scene > * { position: relative; z-index: 1; }
.scene > .scene__glow { position: absolute; z-index: 0; }
.scene > .scene__stamp { position: absolute; z-index: 0; }
.scene > .scene__caption { position: absolute; z-index: 3; }
.scene > .scene__photo { position: absolute; z-index: 0; }
.scene__caption { position: absolute; left: clamp(18px, 2.4vw, 28px); bottom: clamp(16px, 2vw, 24px); z-index: 3; font-family: var(--atyp-font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.scene--sand .scene__caption, .scene--mist .scene__caption { color: rgba(15,23,42,0.55); }
/* Real-photography stage: drop a photo behind the device */
.scene--photo { background: #0a1119; }
.scene__photo { position: absolute; inset: 0; z-index: 0; }
.scene__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,26,0.28) 0%, rgba(6,16,26,0.55) 100%); }
.scene--photo.scene--light .scene__photo::after { background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(15,23,42,0.28) 100%); }

.scene__stamp { position: absolute; right: clamp(-6px, 0.4vw, 6px); top: 50%; z-index: 0; transform: translateY(-50%) rotate(90deg); transform-origin: center; font-family: var(--atyp-font-hero); font-weight: 700; font-size: clamp(3rem, 7vw, 6.5rem); letter-spacing: -0.03em; color: rgba(255,255,255,0.08); white-space: nowrap; pointer-events: none; }

/* ── 2. DEVICES ─────────────────────────────────────────────── */
.dv { position: relative; width: 100%; max-width: 100%; }
.dv__shadow { position: absolute; left: 6%; right: 6%; bottom: -26px; height: 46px; border-radius: 50%; background: rgba(2,6,14,0.45); filter: blur(26px); z-index: -1; }

/* Browser window */
.dv-browser { border-radius: 13px; overflow: hidden; background: #0b1220; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 50px 90px -40px rgba(2,6,14,0.75), 0 10px 30px -18px rgba(2,6,14,0.5); transition: transform 600ms cubic-bezier(0.2,0.75,0.2,1), box-shadow 600ms ease; }
.dv-browser__bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: linear-gradient(180deg, #fbfbf9, #f0f0ec); border-bottom: 1px solid rgba(15,23,42,0.08); }
.dv-browser__dots { display: flex; gap: 6px; }
.dv-browser__dots span { width: 10px; height: 10px; border-radius: 50%; background: #dcdcd5; display: block; }
.dv-browser__dots span:nth-child(1) { background: #f0736a; }
.dv-browser__dots span:nth-child(2) { background: #f2be4e; }
.dv-browser__dots span:nth-child(3) { background: #63c363; }
.dv-browser__url { flex: 1; min-width: 0; height: 23px; border-radius: 999px; background: #fff; border: 1px solid rgba(15,23,42,0.08); display: flex; align-items: center; gap: 7px; padding: 0 11px; font-family: var(--atyp-font-mono); font-size: 0.66rem; color: #64748b; overflow: hidden; white-space: nowrap; }
.dv-browser__url::before { content: ""; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid #94a3b8; flex: none; }
.dv-browser__screen { position: relative; overflow: hidden; background: #fff; aspect-ratio: 16 / 10; container-type: size; }
.dv-browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: object-position 4.5s cubic-bezier(0.4,0,0.2,1), transform 900ms cubic-bezier(0.2,0.75,0.2,1); }
.dv--tall .dv-browser__screen { aspect-ratio: 16 / 12; }
.dv--wide .dv-browser__screen { aspect-ratio: 16 / 9; }
.dv--scroll:hover .dv-browser__screen img { object-position: bottom center; }
.dv-lift { transition: transform 600ms cubic-bezier(0.2,0.75,0.2,1); }
a:hover .dv-lift, .dv-lift:hover { transform: translateY(-8px); }

/* Laptop */
.dv-laptop__lid { background: linear-gradient(170deg, #33393f 0%, #1b1f25 100%); padding: 10px 10px 11px; border-radius: 16px 16px 5px 5px; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 44px 80px -38px rgba(2,6,14,0.8); }
.dv-laptop__screen { position: relative; overflow: hidden; border-radius: 6px; background: #fff; aspect-ratio: 16 / 10; container-type: size; }
.dv-laptop__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: object-position 5s cubic-bezier(0.4,0,0.2,1); }
.dv-laptop:hover .dv-laptop__screen img { object-position: bottom center; }
.dv-laptop__cam { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #0e1216; z-index: 2; }
.dv-laptop__base { position: relative; width: 112%; margin-left: -6%; height: 13px; border-radius: 0 0 13px 13px; background: linear-gradient(180deg, #d3d7db 0%, #9ea4ab 60%, #797f87 100%); box-shadow: 0 16px 30px -12px rgba(2,6,14,0.6); }
.dv-laptop__base::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 16%; height: 5px; border-radius: 0 0 7px 7px; background: rgba(15,23,42,0.28); }

/* Phone */
.dv-phone { width: 232px; max-width: 100%; border-radius: 36px; padding: 8px; background: linear-gradient(160deg, #464c54 0%, #15191e 55%, #2a2f36 100%); box-shadow: 0 40px 70px -32px rgba(2,6,14,0.8), 0 0 0 1px rgba(255,255,255,0.08) inset; }
.dv-phone--sm { width: 186px; border-radius: 30px; }
.dv-phone__screen { position: relative; overflow: hidden; border-radius: 28px; background: #000; aspect-ratio: 9 / 19.5; }
.dv-phone--sm .dv-phone__screen { border-radius: 23px; }
.dv-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: object-position 5s cubic-bezier(0.4,0,0.2,1); }
.dv-phone:hover .dv-phone__screen img { object-position: bottom center; }
.dv-phone__island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 60px; height: 17px; border-radius: 999px; background: #05070a; z-index: 2; }
.dv-phone--sm .dv-phone__island { width: 48px; height: 14px; top: 7px; }
.dv-phone__bar { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 38%; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.6); z-index: 2; }

/* Composed rig: laptop with a phone leaning in */
.dv-rig { position: relative; width: 100%; }
.dv-rig__phone { position: absolute; right: 0; bottom: -2%; z-index: 3; }
.dv-rig__phone--left { right: auto; left: 0; }
@media (max-width: 720px) { .dv-rig__phone { display: none; } }

/* ── 3. CASE SCENE LAYOUT ───────────────────────────────────── */
.cs { display: grid; grid-template-columns: 1fr; gap: clamp(22px, 3vw, 44px); align-items: center; margin-bottom: clamp(48px, 6vw, 84px); }
@media (min-width: 920px) { .cs { grid-template-columns: 1.12fr 0.88fr; } .cs--rev { grid-template-columns: 0.88fr 1.12fr; } .cs--rev .cs__stage { order: 2; } }
.cs__stage { position: relative; }
.cs__stage .scene { min-height: 0; }
.cs__index { font-family: var(--atyp-font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ax2-ink-faint); display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.cs__index::after { content: ""; height: 1px; flex: 1; background: var(--ax2-rule-soft); max-width: 90px; }
.cs__title { font-family: var(--atyp-font-hero); font-weight: 700; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--ax2-ink); }
.cs__title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 420ms cubic-bezier(0.2,0.75,0.2,1); }
.cs__title a:hover { background-size: 100% 2px; }
.cs__text { font-size: 1.02rem; line-height: 1.62; color: var(--ax2-ink-soft); margin: 0 0 26px; max-width: 34rem; }
.cs__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cs__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px 24px; padding-top: 22px; border-top: 1px solid var(--ax2-rule-soft); margin-bottom: 26px; }
.cs__facts div { display: flex; flex-direction: column; gap: 4px; }
.cs__facts dt, .cs__facts .k { font-family: var(--atyp-font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ax2-ink-faint); }
.cs__facts dd, .cs__facts .v { margin: 0; font-family: var(--atyp-font-heading); font-size: 0.95rem; font-weight: 600; color: var(--ax2-ink); }

/* ── 4. SCROLL REVEALS ──────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(30px) scale(0.985); filter: blur(8px); transition: opacity 900ms cubic-bezier(0.2,0.75,0.2,1), transform 900ms cubic-bezier(0.2,0.75,0.2,1), filter 900ms ease; will-change: transform, opacity; }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="mask"]  { opacity: 1; filter: none; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms cubic-bezier(0.2,0.75,0.2,1); }
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; } }

/* ── 5. HOVER-PREVIEW LIST ──────────────────────────────────── */
.hv-list { border-top: 1px solid var(--ax2-rule-soft); }
.hv-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 20px 4px; border-bottom: 1px solid var(--ax2-rule-soft); text-decoration: none; color: inherit; position: relative; transition: padding-left 420ms cubic-bezier(0.2,0.75,0.2,1), background-color 300ms ease; }
@media (min-width: 760px) { .hv-row { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) 90px; gap: 28px; align-items: center; } }
.hv-row::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleX(0); transform-origin: left; width: 8px; height: 8px; border-radius: 50%; background: var(--atyp-brand-teal); transition: transform 380ms cubic-bezier(0.2,0.75,0.2,1); }
.hv-row:hover { padding-left: 24px; }
.hv-row:hover::before { transform: translateY(-50%) scaleX(1); }
.hv-row__name { font-family: var(--atyp-font-hero); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; color: var(--ax2-ink); line-height: 1.15; }
.hv-row__sub { font-size: 0.9rem; color: var(--ax2-ink-soft); line-height: 1.5; }
.hv-row__year { font-family: var(--atyp-font-mono); font-size: 0.76rem; color: var(--ax2-ink-faint); text-align: left; }
@media (min-width: 760px) { .hv-row__year { text-align: right; } }
.hv-row.is-hidden { display: none; }
.hv-preview { position: fixed; top: 0; left: 0; width: 330px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(0.9) rotate(-2deg); transition: opacity 280ms ease, transform 520ms cubic-bezier(0.2,0.75,0.2,1); box-shadow: 0 40px 70px -30px rgba(2,6,14,0.6); }
.hv-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.hv-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 760px) { .hv-preview { display: none; } }

/* ── 6. EDITORIAL BITS ──────────────────────────────────────── */
.work-hero { position: relative; padding: 180px 0 56px; background: var(--ax2-paper); overflow: hidden; }
.work-hero__wash { position: absolute; inset: -30% -10% auto -10%; height: 80%; background: radial-gradient(60% 60% at 20% 20%, rgba(45,212,191,0.20), transparent 70%), radial-gradient(50% 50% at 80% 10%, rgba(92,107,192,0.18), transparent 70%); pointer-events: none; }
.work-hero__inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.work-hero h1 { font-family: var(--atyp-font-hero); font-weight: 700; font-size: clamp(3rem, 9vw, 7rem); line-height: 0.94; letter-spacing: -0.045em; margin: 0 0 26px; color: var(--ax2-ink); text-wrap: balance; }
.work-hero h1 em { font-style: normal; background: var(--atyp-logo-gradient, linear-gradient(95deg, #26a69a, #5c6bc0 55%, #e91e63)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.work-hero__row { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: end; }
@media (min-width: 900px) { .work-hero__row { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.work-hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; color: var(--ax2-ink-soft); margin: 0; max-width: 32rem; }
.work-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--ax2-rule-soft); }
.work-stats div { display: flex; flex-direction: column; gap: 4px; }
.work-stats strong { font-family: var(--atyp-font-hero); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ax2-ink); line-height: 1; }
.work-stats span { font-family: var(--atyp-font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ax2-ink-faint); }

/* Full-bleed hero showcase strip */
.showreel { position: relative; padding: clamp(40px, 6vw, 90px) 0 clamp(56px, 8vw, 120px); background: linear-gradient(180deg, var(--ax2-paper) 0%, #0a1119 34%, #0a1119 100%); }
.showreel__inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.showreel__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 960px) { .showreel__grid { grid-template-columns: 1.55fr 1fr; align-items: stretch; } }
.showreel__panel { border-radius: 22px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 18px; backdrop-filter: blur(10px); text-decoration: none; }
.showreel__panel h2 { font-family: var(--atyp-font-hero); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.035em; line-height: 1; margin: 0; color: #fff; }
.showreel__panel p { margin: 0; color: rgba(226,240,242,0.78); font-size: 0.98rem; line-height: 1.58; }
.showreel__meta { margin-top: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 14px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.14); }
.showreel__meta span { font-family: var(--atyp-font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(226,240,242,0.5); display: block; }
.showreel__meta strong { display: block; font-family: var(--atyp-font-heading); font-size: 0.92rem; font-weight: 600; color: #fff; margin-top: 4px; letter-spacing: 0; }
.showreel__eyebrow { font-family: var(--atyp-font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(45,212,191,0.9); display: flex; align-items: center; gap: 10px; margin: 0; }
.showreel__eyebrow::before { content: ""; width: 24px; height: 1px; background: rgba(45,212,191,0.6); }
.showreel__cta { display: inline-flex; align-items: center; gap: 9px; font-family: var(--atyp-font-heading); font-size: 0.92rem; font-weight: 600; color: #fff; text-decoration: none; }
.showreel__cta::after { content: "→"; transition: transform 240ms ease; }
.showreel__panel:hover .showreel__cta::after { transform: translateX(5px); }
.showreel__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
@media (max-width: 760px) { .showreel__strip { grid-template-columns: 1fr; } }

/* Marquee of screen thumbnails */
.thumb-marquee { overflow: hidden; padding: 10px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.thumb-marquee__track { display: flex; gap: 18px; width: max-content; animation: thumb-slide 46s linear infinite; }
.thumb-marquee:hover .thumb-marquee__track { animation-play-state: paused; }
.thumb-marquee__item { width: 300px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: #0b1220; }
.thumb-marquee__item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
@keyframes thumb-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .thumb-marquee__track { animation: none; } }

/* Case-single hero */
.case-stage { position: relative; padding: 150px 0 clamp(50px, 7vw, 96px); overflow: hidden; background: #06101a; }
.case-stage__bg { position: absolute; inset: 0; z-index: 0; }
.case-stage__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.case-stage__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,26,0.75) 0%, rgba(6,16,26,0.55) 40%, #06101a 100%); }
.case-stage__inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.case-stage__crumb { font-family: var(--atyp-font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(226,240,242,0.55); margin: 0 0 22px; }
.case-stage__crumb a { color: inherit; text-decoration: none; }
.case-stage__crumb a:hover { color: #fff; }
.case-stage h1 { font-family: var(--atyp-font-hero); font-weight: 700; font-size: clamp(3rem, 10vw, 8rem); line-height: 0.9; letter-spacing: -0.05em; color: #fff; margin: 0 0 18px; }
.case-stage__tag { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(226,240,242,0.72); margin: 0 0 clamp(36px, 5vw, 60px); max-width: 34rem; line-height: 1.5; }
.case-stage__rig { position: relative; }

/* Sticky meta column */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 940px) { .case-grid { grid-template-columns: 300px 1fr; gap: 72px; } .case-grid__side { position: sticky; top: 110px; align-self: start; } }

/* Shot pairs / stacks */
.shot-pair { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 30px); }
@media (min-width: 800px) { .shot-pair { grid-template-columns: 1fr 1fr; } .shot-pair--offset > :nth-child(2) { margin-top: clamp(30px, 6vw, 80px); } }
.shot-note { font-family: var(--atyp-font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ax2-ink-faint); margin: 12px 0 0; display: flex; gap: 12px; }
.shot-note b { color: var(--ax2-ink); font-weight: 600; white-space: nowrap; }

/* ── 7. SYNTHETIC PRODUCT UI (for product pages) ───────────── */
/* One design, any frame: the root font-size is derived from the screen's
   container width (1em = frameWidth/56.25, i.e. 16px at the 900px design
   width) and every metric below is in em, so the whole console scales. */
.ui { position: absolute; inset: 0; font-size: calc(100cqw / 56.25); display: grid; grid-template-columns: 12.25em 1fr; background: #0b1117; color: #cbd5e1; font-family: var(--atyp-font-heading); }
.ui__side { border-right: 1px solid rgba(255,255,255,0.08); padding: 1.125em 0.875em; display: flex; flex-direction: column; gap: 0.375em; background: #090e14; }
.ui__brand { display: flex; align-items: center; gap: 0.625em; font-weight: 700; color: #fff; font-size: 1.0625em; letter-spacing: -0.01em; margin-bottom: 1em; padding: 0 0.35em; }
.ui__brand::before { content: ""; width: 1.2em; height: 1.2em; border-radius: 0.35em; background: linear-gradient(135deg, #26a69a, #5c6bc0); flex: none; }
.ui__nav { display: flex; align-items: center; gap: 0.6875em; padding: 0.5625em 0.6875em; border-radius: 0.5em; color: rgba(203,213,225,0.62); font-size: 0.9375em; white-space: nowrap; }
.ui__nav::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 0.1875em; background: currentColor; opacity: 0.6; flex: none; }
.ui__nav.is-on { background: rgba(45,212,191,0.14); color: #7ff0e0; }
.ui__main { display: flex; flex-direction: column; min-width: 0; }
.ui__top { display: flex; align-items: center; gap: 0.875em; padding: 1em 1.375em; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ui__top h5 { margin: 0; font-size: 1.0625em; color: #fff; font-weight: 600; white-space: nowrap; }
.ui__search { flex: 1; height: 1.75em; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.ui__avatar { width: 1.75em; height: 1.75em; border-radius: 50%; background: linear-gradient(135deg, #e91e63, #5c6bc0); flex: none; }
.ui__body { padding: 1.375em; display: grid; gap: 1.125em; align-content: start; overflow: hidden; }
.ui__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875em; }
.ui__stat { border: 1px solid rgba(255,255,255,0.09); border-radius: 0.625em; padding: 0.875em 1em; background: rgba(255,255,255,0.03); }
.ui__stat b { display: block; font-family: var(--atyp-font-hero); font-size: 1.625em; color: #fff; letter-spacing: -0.02em; }
.ui__stat span { display: block; font-family: var(--atyp-font-mono); font-size: 0.6875em; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(203,213,225,0.5); margin-top: 0.4em; }
.ui__table { border: 1px solid rgba(255,255,255,0.09); border-radius: 0.625em; overflow: hidden; }
.ui__tr { display: grid; grid-template-columns: 1.5fr 1.1fr 0.9fr 6.5em; gap: 0.875em; padding: 0.8125em 1.125em; border-bottom: 1px solid rgba(255,255,255,0.06); align-items: center; white-space: nowrap; }
.ui__tr:last-child { border-bottom: 0; }
.ui__tr--head { background: rgba(255,255,255,0.04); font-family: var(--atyp-font-mono); font-size: 0.6875em; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(203,213,225,0.5); }
.ui__tr b { font-weight: 600; color: #fff; font-size: 0.9375em; }
.ui__tr code { font-family: var(--atyp-font-mono); font-size: 0.8125em; color: rgba(203,213,225,0.6); }
.ui__badge { justify-self: start; padding: 0.25em 0.75em; border-radius: 999px; font-family: var(--atyp-font-mono); font-size: 0.6875em; letter-spacing: 0.05em; background: rgba(45,212,191,0.16); color: #7ff0e0; }
.ui__badge--amber { background: rgba(242,190,78,0.16); color: #f5d08a; }
.ui__badge--off { background: rgba(255,255,255,0.08); color: rgba(203,213,225,0.6); }
.ui__log { font-family: var(--atyp-font-mono); font-size: 0.8125em; line-height: 2; color: rgba(203,213,225,0.72); border: 1px solid rgba(255,255,255,0.09); border-radius: 0.75em; padding: 1em 1.25em; background: rgba(0,0,0,0.25); }
.ui__log span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__log i { font-style: normal; color: #7ff0e0; }
.ui-pane { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2,0.75,0.2,1); }
.ui-pane.is-on { opacity: 1; transform: none; pointer-events: auto; }

.switcher { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3.5vw, 48px); align-items: center; }
@media (min-width: 940px) { .switcher { grid-template-columns: 0.8fr 1.2fr; } }
.switcher__tabs { display: flex; flex-direction: column; gap: 4px; }
.switcher__tab { text-align: left; background: none; border: 0; border-left: 2px solid rgba(255,255,255,0.12); padding: 14px 18px; cursor: pointer; color: rgba(226,240,242,0.6); font-family: inherit; transition: border-color 300ms ease, color 300ms ease, background-color 300ms ease; }
.switcher__tab h4 { margin: 0 0 4px; font-family: var(--atyp-font-heading); font-size: 1rem; font-weight: 600; color: inherit; }
.switcher__tab p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: inherit; opacity: 0.8; max-height: 0; overflow: hidden; transition: max-height 420ms cubic-bezier(0.2,0.75,0.2,1); }
.switcher__tab.is-on { border-left-color: var(--atyp-teal); color: #fff; background: rgba(255,255,255,0.04); }
.switcher__tab.is-on p { max-height: 6em; }
.switcher__tab:hover { color: #fff; }

/* ── 8. FLAIR — card + tile hover treatments shared across pages ──── */
.ax2-service { position: relative; overflow: hidden; transition: transform 420ms cubic-bezier(0.2,0.75,0.2,1); }
.ax2-service::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #26a69a, #5c6bc0 55%, #e91e63); transition: transform 560ms cubic-bezier(0.2,0.75,0.2,1); }
.ax2-service:hover { transform: translateY(-4px); }
.ax2-service:hover::after { transform: scaleX(1); }
.ax2-service__num { transition: color 320ms ease; }
.ax2-service:hover .ax2-service__num { color: var(--atyp-brand-teal); }

.eco-card { position: relative; overflow: hidden; transition: transform 420ms cubic-bezier(0.2,0.75,0.2,1), box-shadow 420ms ease; }
.eco-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--accent, #26a69a), var(--accent-2, #5c6bc0)); transition: transform 560ms cubic-bezier(0.2,0.75,0.2,1); }
.eco-card:hover { transform: translateY(-5px); box-shadow: 0 28px 60px -32px rgba(15,23,42,0.35); }
.eco-card:hover::after { transform: scaleX(1); }

/* Numbered stat band — counts up on scroll */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(20px, 3vw, 44px); padding: clamp(30px, 4vw, 52px) 0; border-top: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14); }
.stat-band div { display: flex; flex-direction: column; gap: 8px; }
.stat-band strong { font-family: var(--atyp-font-hero); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 0.95; letter-spacing: -0.045em; color: #fff; }
.stat-band em { font-style: normal; background: linear-gradient(95deg, #26a69a, #5c6bc0 55%, #e91e63); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-band span { font-family: var(--atyp-font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(226,240,242,0.55); }

/* Pull quote / statement */
.statement { font-family: var(--atyp-font-hero); font-weight: 600; font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.statement em { font-style: normal; background: linear-gradient(95deg, #26a69a, #5c6bc0 55%, #e91e63); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── 9. STICKY UTILITIES ───────────────────────────────────── */
@media (min-width: 900px) {
  .stick { position: sticky; top: 104px; align-self: start; }  .stick--low { top: 132px; }
  .split-chap.has-stick, .switcher.has-stick, .cs.has-stick { align-items: start; }
  /* Sticky column: pins inside its own grid track, so it can never
     travel over the next section or cover a sibling. */
  /* Markers hold position beside their own block only */
  .gutter-marker > .ax2-marker { position: sticky; top: 100px; align-self: start; }
}

/* Equal-size showcase tiles (three-up) */
.proof-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.proof-grid .scene { aspect-ratio: 4 / 3; }
.proof-grid .dv, .proof-grid .dv-phone { width: 100%; max-width: 340px; }
.proof-grid .dv-phone { max-width: 150px; }
.proof-tile__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 2px 0; }
.proof-tile__label strong { font-family: var(--atyp-font-heading); font-size: 0.95rem; font-weight: 600; color: #fff; }
.proof-tile__label span { font-family: var(--atyp-font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(226,240,242,0.5); }

/* Two engagement models */
.track-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 880px) { .track-2 { grid-template-columns: 1fr 1fr; } }
.track { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--ax2-rule-soft); background: #fff; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; transition: transform 420ms cubic-bezier(0.2,0.75,0.2,1), box-shadow 420ms ease; }
.track:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -34px rgba(15,23,42,0.32); }
.track::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent, #26a69a), var(--accent-2, #5c6bc0)); }
.track__kicker { font-family: var(--atyp-font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ax2-ink-faint); margin: 0; }
.track__title { font-family: var(--atyp-font-hero); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.05rem); letter-spacing: -0.03em; margin: 0; color: var(--ax2-ink); }
.track__lead { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ax2-ink-soft); }
.track__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.track__list li { position: relative; padding-left: 20px; font-size: 0.94rem; line-height: 1.5; color: var(--ax2-ink-soft); }
.track__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--accent, #26a69a); }
.track__price { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ax2-rule-soft); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.track__price b { font-family: var(--atyp-font-hero); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ax2-ink); }
.track__price span { font-family: var(--atyp-font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--ax2-ink-faint); }

/* Scroll-driven walkthrough: sticky screen, stepping copy */
.walk { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3.5vw, 52px); align-items: start; }
@media (min-width: 860px) { .walk { grid-template-columns: 0.85fr 1.15fr; } .walk > .stick { order: 2; } }
@media (min-width: 860px) and (max-width: 939px) { .walk > .stick { position: sticky; top: 96px; align-self: start; } }
.walk__steps { display: grid; gap: clamp(28px, 5vw, 64px); }
.walk__step { padding-left: 20px; border-left: 2px solid rgba(255,255,255,0.14); opacity: 0.45; transition: opacity 480ms ease, border-color 480ms ease, transform 620ms cubic-bezier(0.2,0.75,0.2,1); }
@media (min-width: 860px) { .walk__step { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; } }
.walk__step.is-on { opacity: 1; border-left-color: var(--atyp-teal); }
.walk__num { font-family: var(--atyp-font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(45,212,191,0.9); margin: 0 0 12px; }
.walk__title { font-family: var(--atyp-font-hero); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.06; letter-spacing: -0.035em; color: #fff; margin: 0 0 14px; }
.walk__body { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(226,240,242,0.78); max-width: 32rem; }
.walk__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.walk__facts span { font-family: var(--atyp-font-mono); font-size: 0.66rem; letter-spacing: 0.06em; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); color: rgba(226,240,242,0.72); }

/* SKU + feature-row flair */
.sku { position: relative; overflow: hidden; transition: transform 420ms cubic-bezier(0.2,0.75,0.2,1), box-shadow 420ms ease, border-color 300ms ease; }
.sku::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #26a69a, #5c6bc0 55%, #e91e63); transition: transform 520ms cubic-bezier(0.2,0.75,0.2,1); }
.sku:hover { transform: translateY(-4px); box-shadow: 0 26px 56px -32px rgba(15,23,42,0.32); }
.sku:hover::after { transform: scaleX(1); }
.feat-row { transition: background-color 320ms ease; }
.feat-row:hover { background: rgba(45,212,191,0.06); }

/* ── 10. MOBILE / TOUCH PASS ───────────────────────────────── */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Touch devices: no hover affordances, cheaper effects, bigger targets */
@media (hover: none) {
  .dv-lift:hover, a:hover .dv-lift, .dv-browser:hover { transform: none; }
  .hv-row:hover { padding-left: 4px; }
  .hv-preview { display: none; }
  .pill, .pfilter__chip, .site-drawer__nav a, .hv-row, .upd-row, .proj-list__row, .weblog-row { min-height: 44px; }
  .pill { padding: 13px 22px; }
  a, button { -webkit-tap-highlight-color: rgba(45,212,191,0.18); }
  .scene__glow { filter: blur(46px); }
}

@media (max-width: 719px) {
  .scene { border-radius: 14px; padding: 14px 14px 30px; }
  .scene__stamp { display: none; }
  .scene__caption { left: 14px; bottom: 11px; font-size: 0.6rem; }
  .dv-browser__bar { padding: 7px 10px; gap: 8px; }
  .dv-browser__url { font-size: 0.58rem; height: 20px; }
  .dv-phone { width: 178px; }
  .dv-phone--sm { width: 150px; }
  .dv-laptop__base { height: 9px; }
  .cs { margin-bottom: 42px; gap: 20px; }
  .cs__facts { gap: 14px 18px; padding-top: 16px; }
  .thumb-marquee__item { width: 220px; }
  .thumb-marquee__track { gap: 12px; animation-duration: 34s; }
  .stat-band { gap: 22px; padding: 26px 0; }
  .work-hero { padding: 128px 0 40px; }
  .work-stats { gap: 22px 28px; margin-top: 32px; }
  .proof-grid .scene { aspect-ratio: 16 / 11; }
  .proof-grid .dv-phone { max-width: 130px; }
  .walk__step { padding-left: 16px; opacity: 1; }
  .walk__facts span { font-size: 0.62rem; }
  .next-case { padding: 56px 0; }
  .showreel__strip { gap: 14px; }
  .track { padding: 22px; }
  .case-stage { padding: 120px 0 40px; }
  .shot-note { font-size: 0.62rem; gap: 8px; }
}

/* Never let a staged mockup cause sideways scroll */
.scene, .dv, .dv-rig, .showreel__strip, .proof-grid { max-width: 100%; }
.dv-rig__phone { max-width: 40%; }

/* ── 11. AURORA — slow animated colour field (live-site background) ─ */
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; background: #06101a; }
.aurora i { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: 0.55; mix-blend-mode: screen; will-change: transform; }
.aurora i:nth-child(1) { width: 46%; aspect-ratio: 1; left: -8%; top: -14%; background: #26a69a; animation: aurora-a 26s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 40%; aspect-ratio: 1; right: -6%; top: 6%; background: #5c6bc0; animation: aurora-b 32s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 38%; aspect-ratio: 1; left: 28%; bottom: -20%; background: #e91e63; animation: aurora-c 38s ease-in-out infinite; opacity: 0.4; }
@keyframes aurora-a { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(18%, 14%, 0) scale(1.18); } }
@keyframes aurora-b { 0%,100% { transform: translate3d(0,0,0) scale(1.1); } 50% { transform: translate3d(-16%, 20%, 0) scale(0.92); } }
@keyframes aurora-c { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-22%, -18%, 0) scale(1.22); } }
@media (hover: none) { .aurora i { filter: blur(48px); animation-duration: 44s, 44s, 44s; } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }
.scene--aurora { background: #06101a; }

/* ── 12. STACKING ORDER — header always on top ─────────────── */
.site-header, .home-topbar { z-index: 10000; }
.site-drawer { z-index: 10002; }
.scroll-prog { z-index: 10001; }
.stick, .case-grid__side, .post-rail, .cs__stage, .gutter-marker > .ax2-marker { z-index: 1; }
.scene, .aurora, .next-case, .showreel, .case-stage { z-index: 0; }

/* Next-project banner */
.next-case { position: relative; display: block; overflow: hidden; text-decoration: none; background: #06101a; padding: clamp(60px, 9vw, 120px) 0; }
.next-case__bg { position: absolute; inset: 0; opacity: 0.3; transition: transform 1200ms cubic-bezier(0.2,0.75,0.2,1), opacity 600ms ease; }
.next-case__bg img { width: 100%; height: 100%; object-fit: cover; }
.next-case:hover .next-case__bg { transform: scale(1.06); opacity: 0.42; }
.next-case__inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.next-case__eyebrow { font-family: var(--atyp-font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(45,212,191,0.9); margin: 0 0 14px; }
.next-case__name { font-family: var(--atyp-font-hero); font-weight: 700; font-size: clamp(2.4rem, 7vw, 5.5rem); letter-spacing: -0.045em; line-height: 0.95; color: #fff; margin: 0; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.next-case__name::after { content: "→"; font-size: 0.5em; transition: transform 400ms cubic-bezier(0.2,0.75,0.2,1); }
.next-case:hover .next-case__name::after { transform: translateX(14px); }
