:root {
  --bg: #03040b;
  --panel: #0a0d1c;
  --ink: #eef1ff;
  --mute: #8e97b8;
  --a: #2de2ff;
  --b: #8b5cff;
  --line: rgba(255, 255, 255, 0.08);
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 6vw, 96px);
  --grad: linear-gradient(100deg, var(--a), var(--b));
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--b); color: #fff; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--bg); transition: opacity 0.8s, visibility 0s 0.8s; }
body.loaded #loader { opacity: 0; visibility: hidden; }
.ld { text-align: center; }
.ld-mark { width: 54px; height: 64px; filter: drop-shadow(0 0 24px rgba(45, 226, 255, 0.5)); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.ld-name { margin: 14px 0 18px; font: 700 28px var(--display); letter-spacing: -0.02em; }
.ld-name span { color: var(--mute); font-weight: 500; margin-left: 6px; }
.ld-log { font: 12px/1.9 var(--mono); color: var(--mute); text-align: left; min-height: 92px; }
.ld-log li { opacity: 0; animation: logIn 0.3s forwards; }
.ld-log li:nth-child(1) { animation-delay: 0.2s; } .ld-log li:nth-child(2) { animation-delay: 0.7s; } .ld-log li:nth-child(3) { animation-delay: 1.2s; } .ld-log li:nth-child(4) { animation-delay: 1.7s; color: var(--a); }
@keyframes logIn { to { opacity: 1; } }
.ld i { display: block; width: 220px; height: 2px; margin: 16px auto 0; background: var(--grad); transform-origin: 0 50%; animation: fill 2.2s ease-out forwards; }
@keyframes fill { from { transform: scaleX(0); } }

/* ---------- stage ---------- */
#stage { position: fixed; inset: 0; z-index: 0; }
#stage canvas { display: block; width: 100%; height: 100%; }
body.nogl #stage { background: radial-gradient(60% 60% at 70% 40%, rgba(139, 92, 255, 0.25), transparent 70%), radial-gradient(40% 40% at 30% 70%, rgba(45, 226, 255, 0.18), transparent 70%); }
#shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: opacity 1s; opacity: 0; background: linear-gradient(90deg, rgba(3, 4, 11, 0.92) 0%, rgba(3, 4, 11, 0.55) 40%, transparent 70%); }
body.start #shade, body.end #shade { opacity: 1; }
body:not(.start):not(.end) #shade { opacity: 1; background: linear-gradient(0deg, rgba(3, 4, 11, 0.85) 0%, transparent 34%); }
body.tvclose #shade { opacity: 0; }

#cursor { position: fixed; z-index: 90; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 1.5px solid rgba(45, 226, 255, 0.8); pointer-events: none; mix-blend-mode: screen; transition: width 0.2s, height 0.2s, margin 0.2s, background 0.2s, opacity 0.3s; opacity: 0; }
#cursor.on { opacity: 1; }
#cursor.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(45, 226, 255, 0.12); }
@media (hover: none) { #cursor { display: none; } }

/* ---------- story overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 3; display: flex; align-items: center; padding: 120px var(--pad) 90px; pointer-events: none; visibility: hidden; transition: visibility 0s 0.8s; }
.overlay .in { max-width: 680px; }
.overlay .in > * { opacity: 0; transform: translateY(26px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
body.start .title, body.end .hero { visibility: visible; pointer-events: auto; transition-delay: 0s; }
body.start .title .in > *, body.end .hero .in > * { opacity: 1; transform: none; }
.overlay .in > :nth-child(2) { transition-delay: 0.08s; } .overlay .in > :nth-child(3) { transition-delay: 0.16s; } .overlay .in > :nth-child(4) { transition-delay: 0.24s; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--a); margin-bottom: 18px; }
h1, h2.h1 { font-size: clamp(54px, 8.6vw, 132px); }
.lede { font-size: clamp(16px, 1.3vw, 19px); color: #c6cce6; margin: 24px 0 34px; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hint { display: inline-flex; align-items: center; gap: 12px; margin-left: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.hint span { width: 1px; height: 34px; background: linear-gradient(var(--a), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

.cap { position: fixed; left: var(--pad); bottom: 9vh; z-index: 5; max-width: min(640px, 86vw); opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; pointer-events: none; }
.cap.on { opacity: 1; transform: none; }
body.past .cap { opacity: 0; }
body.past .overlay { opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; }
.cap span { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--a); margin-bottom: 10px; }
.cap b { display: block; font: 700 clamp(34px, 5vw, 70px)/1 var(--display); letter-spacing: -0.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8); }
.cap p { margin-top: 14px; color: #c6cce6; font-size: 17px; max-width: 520px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9); }
body.tvclose .cap { bottom: auto; top: 84px; }
body.tvclose .cap b { font-size: clamp(28px, 3.2vw, 46px); }
body.tvclose .cap p { margin-top: 8px; font-size: 15px; }

#hud { position: fixed; top: 92px; right: clamp(14px, 2.6vw, 40px); z-index: 6; width: 220px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 8, 20, 0.6); backdrop-filter: blur(12px); font-size: 11px; color: var(--mute); transition: opacity 0.5s; }
#hud p { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ink); letter-spacing: 0.14em; }
#hud .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3d57; box-shadow: 0 0 10px #ff3d57; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
#hud dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; }
#hud dd { margin: 0; color: var(--a); text-align: right; }
body.start #hud, body.end #hud, body.past #hud, body.tvclose #hud { opacity: 0; }

#remote { position: fixed; right: clamp(14px, 2.6vw, 40px); bottom: 8vh; z-index: 7; width: 252px; padding: 16px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.12); background: linear-gradient(160deg, rgba(20, 24, 44, 0.92), rgba(8, 10, 22, 0.92)); backdrop-filter: blur(14px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.5s, transform 0.5s; }
body.tvlive #remote { opacity: 1; transform: none; pointer-events: auto; }
#remote > p { font-size: 10px; letter-spacing: 0.2em; color: var(--mute); margin: 4px 0 8px; }
#remote .zap { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 10px; }
#remote button { border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 10px 10px; cursor: pointer; font-weight: 600; font-size: 13px; transition: background 0.2s, border-color 0.2s, transform 0.1s; }
#remote button:hover { border-color: var(--a); }
#remote button:active { transform: scale(0.95); }
#chan { font-size: 11px; text-align: center; color: var(--a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#remote .views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
#remote .views button.on { background: var(--grad); color: #03040b; border-color: transparent; }
.swatches { display: flex; gap: 8px; margin-bottom: 10px; }
.swatches button { width: 32px; height: 32px; padding: 0 !important; border-radius: 50% !important; }
.swatches button.on { outline: 2px solid #fff; outline-offset: 2px; }
#brand-name { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.3); color: var(--ink); font: 600 14px Inter, sans-serif; }
#remote small { display: block; margin-top: 10px; font-size: 10px; color: var(--mute); text-align: center; }

.rail { position: fixed; right: clamp(14px, 2.4vw, 40px); top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 4px; transition: opacity 0.5s; }
body.past .rail, body.tvclose .rail { opacity: 0; pointer-events: none; }
.rail button { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--mute); font: 500 10px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.rail button::after { content: ""; width: 14px; height: 2px; background: currentColor; opacity: 0.5; transition: width 0.3s, background 0.3s, opacity 0.3s; }
.rail span { opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.3s; white-space: nowrap; }
.rail button:hover span, .rail button.on span { opacity: 1; transform: none; }
.rail button.on { color: var(--ink); }
.rail button.on::after { width: 34px; background: var(--a); opacity: 1; }
#progress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 7; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }
body.past #progress { opacity: 0; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 18px var(--pad); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(3, 4, 11, 0.75); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 0.4s; }
.nav.solid::before { opacity: 1; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 700 21px var(--display); letter-spacing: -0.02em; }
.logo svg { width: 22px; height: 27px; }
.logo span { font-weight: 500; color: var(--mute); margin-left: -3px; }
.nav nav { display: flex; gap: 30px; margin-left: auto; }
.nav nav a { font-size: 14px; font-weight: 500; color: var(--mute); transition: color 0.2s; }
.nav nav a:hover { color: var(--ink); }
#skip { font-size: 12px; }
body.end #skip, body.past #skip { display: none; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font: 700 15px Inter, sans-serif; cursor: pointer; background: var(--grad); color: #03040b; border: 0; box-shadow: 0 10px 40px -10px rgba(45, 226, 255, 0.7); transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s; }
.btn:hover { box-shadow: 0 14px 50px -8px rgba(139, 92, 255, 0.9); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: none; backdrop-filter: blur(8px); }
.btn.small { padding: 11px 18px; font-size: 13px; }
.link { background: none; border: 0; color: var(--mute); font-size: 13px; cursor: pointer; padding: 10px 4px; }
.link:hover { color: var(--ink); }

/* ---------- content ---------- */
main { position: relative; z-index: 8; pointer-events: none; }
#story { height: 1100vh; }
.panels { pointer-events: auto; overflow-x: clip; background: linear-gradient(180deg, transparent 0, rgba(3, 4, 11, 0.95) 160px, var(--bg) 420px); padding-top: 100px; }
.block { padding: clamp(70px, 10vw, 140px) var(--pad); max-width: 1440px; margin: 0 auto; }
.block > header { max-width: 760px; margin-bottom: 54px; }
h2 { font-size: clamp(44px, 6.4vw, 96px); }
.block > header > p:last-child { color: var(--mute); font-size: 18px; margin-top: 18px; max-width: 560px; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; color: var(--mute); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee div { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee span { padding: 0 34px; white-space: nowrap; }
.marquee span::before { content: "◆"; margin-right: 34px; color: var(--a); font-size: 9px; vertical-align: 2px; }
@keyframes slide { to { transform: translateX(-50%); } }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; overflow: hidden; padding: 30px 28px 26px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)); transition: border-color 0.3s, transform 0.3s; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(45, 226, 255, 0.14), transparent 70%); }
.card:hover { border-color: rgba(45, 226, 255, 0.4); }
.card:hover::before { opacity: 1; }
.card .ico { width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; display: grid; place-items: center; background: rgba(45, 226, 255, 0.08); border: 1px solid rgba(45, 226, 255, 0.25); }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--mute); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font: 11px var(--mono); color: #b9c1e4; }
.also { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 18px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.also div { padding: 24px; background: var(--bg); }
.also b { display: block; font: 600 17px var(--display); margin-bottom: 6px; }
.also p { color: var(--mute); font-size: 14px; }

.svc { border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); overflow: hidden; }
.svc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.svc-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); }
.svc-tabs button { padding: 11px 20px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 14px Inter, sans-serif; color: var(--mute); transition: color 0.2s, background 0.2s; }
.svc-tabs button:hover { color: var(--ink); }
.svc-tabs button.on { background: var(--grad); color: #03040b; }
.svc-term { display: flex; align-items: center; gap: 6px; min-width: min(460px, 100%); padding: 12px 16px; border-radius: 14px; background: #05070f; border: 1px solid var(--line); font-size: 13px; color: #9fe9ff; white-space: nowrap; overflow: hidden; }
.svc-term i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; flex: none; }
.svc-term i:nth-child(2) { background: #febc2e; } .svc-term i:nth-child(3) { background: #28c840; margin-right: 10px; }
.svc-term b { color: var(--a); animation: blink 1s steps(1) infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.svc-grid article { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); animation: svcIn 0.5s backwards; animation-delay: calc(var(--i) * 0.05s); transition: background 0.25s; }
.svc-grid article:hover { background: rgba(45, 226, 255, 0.05); }
.svc-grid article:nth-child(4n) { border-right: 0; }
.svc-grid b { display: block; font: 600 18px var(--display); margin-bottom: 8px; }
.svc-grid b::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--grad); margin-bottom: 16px; }
.svc-grid p { color: var(--mute); font-size: 14px; }
@keyframes svcIn { from { opacity: 0; transform: translateY(12px); } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; font: 500 13px var(--mono); color: var(--mute); transition: all 0.2s; }
.filters button:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); }
.filters button.on { background: var(--grad); color: #03040b; border-color: transparent; }
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: border-color 0.3s, opacity 0.4s, transform 0.4s; }
.case:hover { border-color: rgba(45, 226, 255, 0.4); }
.case.feat { grid-column: span 2; }
.case.feat .vid { aspect-ratio: 16 / 7.6; }
.case .vid { position: relative; aspect-ratio: 16 / 9; background: #070915; overflow: hidden; }
.case .vid video, .case .vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case .vid.none { display: grid; place-items: center; background: radial-gradient(80% 90% at 30% 20%, rgba(139, 92, 255, 0.28), transparent 60%), radial-gradient(70% 80% at 80% 90%, rgba(45, 226, 255, 0.2), transparent 60%), #070915; }
.case .vid.none code { font: 12px/1.7 var(--mono); color: #9aa5d6; white-space: pre; text-align: left; opacity: 0.9; }
.case .badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(3, 4, 11, 0.7); backdrop-filter: blur(8px); font: 11px var(--mono); color: var(--a); border: 1px solid rgba(45, 226, 255, 0.3); }
.case .body { padding: 22px 24px 24px; flex: 1; }
.case .kind { font: 11px var(--mono); color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; }
.case h3 { font-size: 24px; margin: 8px 0 10px; }
.case.feat h3 { font-size: 34px; }
.case p { color: var(--mute); font-size: 15px; }
.case ul { margin-top: 14px; display: grid; gap: 4px; font-size: 14px; color: #c6cce6; }
.case li::before { content: "→"; color: var(--a); margin-right: 8px; }
.case.hide { display: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font: 600 13px var(--mono); color: var(--a); margin-bottom: 30px; }
.steps li::after { content: ""; position: absolute; left: 24px; right: 24px; top: 58px; height: 1px; background: linear-gradient(90deg, var(--a), transparent); opacity: 0.5; }
.steps b { display: block; font: 600 22px var(--display); margin-bottom: 8px; }
.steps p { color: var(--mute); font-size: 15px; }
.stack { margin-top: 70px; }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); font: 13px var(--mono); color: #c6cce6; background: rgba(255, 255, 255, 0.02); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.company { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 30px 0 0; font-size: 13px; color: var(--mute); }
.company dt { color: #6c7699; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; padding-top: 2px; }
.company dd { margin: 0; color: #c6cce6; }
.company a { color: var(--a); }
.brief { display: grid; gap: 14px; padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)); }
.brief label { display: grid; gap: 6px; font-size: 13px; color: var(--mute); }
.brief input:not([type=checkbox]), .brief textarea { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--ink); font: inherit; resize: vertical; }
.brief input:focus, .brief textarea:focus { outline: none; border-color: var(--a); }
.brief fieldset { border: 0; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brief legend { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.brief fieldset label { display: block; }
.brief fieldset input { position: absolute; opacity: 0; }
.brief fieldset span { display: block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: #c6cce6; cursor: pointer; transition: all 0.2s; }
.brief fieldset input:checked + span { background: var(--grad); color: #03040b; border-color: transparent; font-weight: 600; }
.brief fieldset input:focus-visible + span { outline: 2px solid var(--a); }
.note { font-size: 12px; color: var(--mute); }
footer { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; padding: 30px var(--pad); border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; }

.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.9s, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .grid3, .work, .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid article:nth-child(2n) { border-right: 0; }
  .case.feat { grid-row: auto; }
  .also, .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  #skip { margin-left: auto; }
}
@media (max-width: 700px) {
  .grid3, .work, .also, .steps, .svc-grid { grid-template-columns: 1fr; }
  .svc-grid article { border-right: 0; }
  .svc-term { min-width: 0; width: 100%; font-size: 11px; }
  .case.feat { grid-column: auto; }
  .nav .btn, #skip { display: none; }
  .overlay { align-items: flex-end; padding-bottom: 90px; }
  #shade { background: linear-gradient(0deg, rgba(3, 4, 11, 0.96) 0%, rgba(3, 4, 11, 0.5) 50%, transparent 78%) !important; }
  #hud { display: none; }
  #remote { left: 12px; right: 12px; width: auto; bottom: 12px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  #remote > p, #remote small, #brand-name { display: none; }
  #remote .zap { grid-column: 1 / -1; }
  #remote .views { margin-bottom: 0; }
  #remote .swatches { margin: 0; align-items: center; justify-content: flex-end; }
  #remote .swatches button { width: 26px; height: 26px; }
  body.tvclose .cap { top: 76px; }
  .rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .overlay .in > * { transition: none; }
  .marquee div { animation: none; }
}

/* ---------- Liqwiz POS ---------- */
.pos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 54px; align-items: center; }
.pos-copy h2 { margin-bottom: 18px; }
.pos-copy > p { color: var(--mute); font-size: 18px; max-width: 520px; }
.pos-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 28px 0 30px; }
.pos-feats li { display: flex; gap: 10px; font-size: 15px; color: #c6cce6; }
.pos-feats li::before { content: "✓"; color: var(--a); font-weight: 700; }
.pos-plat { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pos-plat span { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); font: 12px var(--mono); color: #b9c1e4; }
.pos-stage { position: relative; perspective: 1400px; }
.till { position: relative; transform: rotateY(-12deg) rotateX(6deg); transform-style: preserve-3d; border-radius: 26px; padding: 14px; background: linear-gradient(160deg, #1a1e33, #0b0e1c); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(45, 226, 255, 0.08), 30px 40px 80px -30px rgba(139, 92, 255, 0.35); transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pos-stage:hover .till { transform: rotateY(-4deg) rotateX(2deg); }
.till-bar { display: flex; align-items: center; gap: 14px; padding: 8px 12px 12px; font-size: 13px; }
.till-bar b { font: 700 15px var(--display); }
.till-bar span { font-size: 11px; color: var(--mute); }
.till-bar .till-clock { margin-left: auto; }
.dot-on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #28c840; margin: 0 3px 0 4px; box-shadow: 0 0 8px #28c840; }
.till-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; padding: 12px; border-radius: 18px; background: #f4f6fb; color: #121526; min-height: 330px; }
.till-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.till-grid button { display: grid; justify-items: start; gap: 2px; padding: 10px; border: 0; border-radius: 12px; background: hsl(var(--h) 80% 92%); color: #121526; text-align: left; cursor: default; transition: transform 0.15s; }
.till-grid button span { font-size: 22px; }
.till-grid button b { font-size: 12px; }
.till-grid button small { font: 600 11px var(--mono); color: hsl(var(--h) 60% 32%); }
.till-grid button.tap { animation: tap 0.35s; }
@keyframes tap { 40% { transform: scale(0.9); box-shadow: 0 0 0 3px #2de2ff; } }
.till-cart { position: relative; display: flex; flex-direction: column; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px -10px rgba(10, 20, 60, 0.3); overflow: hidden; }
.till-cart > p { font-size: 11px; color: #6b7090; margin-bottom: 8px; }
.till-lines { flex: 1; display: grid; align-content: start; gap: 6px; font-size: 12px; }
.till-lines li { display: flex; justify-content: space-between; gap: 8px; animation: svcIn 0.3s; }
.till-cart dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 10px 0; padding-top: 10px; border-top: 1px dashed #d5d9e8; font-size: 12px; color: #4a4f6c; }
.till-cart dd { margin: 0; text-align: right; font-family: var(--mono); }
.till-cart .tot { font-weight: 800; font-size: 15px; color: #121526; }
.till-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.till-pay span { padding: 9px 0; border-radius: 10px; text-align: center; font-size: 12px; font-weight: 700; background: #eef0f8; }
.till-pay span:first-child { background: linear-gradient(100deg, #2de2ff, #8b5cff); color: #03040b; }
.till-done { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; background: rgba(255, 255, 255, 0.94); opacity: 0; transform: scale(1.05); transition: opacity 0.3s, transform 0.3s; }
.till-done.on { opacity: 1; transform: none; }
.till-done b { font: 700 22px var(--display); color: #0e9f6e; }
.till-done span { font-size: 11px; color: #6b7090; }
.till-receipt { position: absolute; right: 10%; bottom: 0; width: 170px; padding: 14px 14px 18px; background: #fff; color: #222; font-size: 10px; line-height: 1.6; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); transform: translateY(0) translateZ(40px); opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 94%, 90% 100%, 80% 94%, 70% 100%, 60% 94%, 50% 100%, 40% 94%, 30% 100%, 20% 94%, 10% 100%, 0 94%); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s; pointer-events: none; }
.till-receipt.on { opacity: 1; transform: translateY(78%) translateZ(40px); }
@media (max-width: 1100px) { .pos { grid-template-columns: 1fr; } .till { transform: none; } }
@media (max-width: 700px) { .pos-feats { grid-template-columns: 1fr; } .till-body { grid-template-columns: 1fr; } .till-grid { grid-template-columns: repeat(3, 1fr); } .till-receipt { display: none; } }

/* ---------- team ---------- */
.team { display: grid; gap: 16px; }
.founders { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.crew { grid-template-columns: repeat(5, 1fr); }
.member { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)); transition: transform 0.25s ease-out, border-color 0.3s, opacity 0.9s, translate 0.9s; transition-delay: 0s, 0s, var(--d), var(--d); }
.member:hover { border-color: rgba(45, 226, 255, 0.4); }
.founders .member { flex-direction: row; align-items: center; padding: 28px; }
.avatar { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 200deg, hsl(var(--h) 90% 60%), var(--b), var(--a), hsl(var(--h) 90% 60%)); }
.founders .avatar { width: 96px; height: 96px; }
.avatar::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0a0d1c; }
.avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(45, 226, 255, 0.25); animation: spin 9s linear infinite; border-top-color: var(--a); }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar span { position: relative; font: 700 26px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.founders .avatar span { font-size: 32px; }
.avatar img { position: relative; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; object-fit: cover; }
.member .role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a); margin-bottom: 6px; }
.member h3 { font-size: 21px; margin-bottom: 6px; }
.founders .member h3 { font-size: 26px; }
.member p { color: var(--mute); font-size: 14px; }
@media (max-width: 1100px) { .founders { grid-template-columns: 1fr; } .crew { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .crew { grid-template-columns: 1fr 1fr; } }

/* Fingers: controls at least 44px, and the brand field big enough that iPhones and iPads do not zoom. */
@media (pointer: coarse) {
  .nav .logo { min-height: 44px; display: inline-flex; align-items: center; }
  .nav .btn, #skip { min-height: 44px; }
  .swatches, #remote .swatches { flex-wrap: wrap; }
  .swatches button, #remote .swatches button { flex: none; width: 44px; height: 44px; }
  #brand-name { font-size: 16px; }
  .rail { gap: 0; }
  .rail button { height: 44px; }
}
