/* Astriva Labs design system */

@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #08090b;
  --bg-2: #0f1115;
  --bg-3: #161a20;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f2f3f5;
  --muted: #9aa2ad;
  --dim: #6b737e;
  --blue: #38b0f4;
  --yellow: #ece447;
  --accent: var(--blue);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: #111; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: #111; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

@view-transition { navigation: auto; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--flush { padding-top: 0; }

/* Type */
.eyebrow { margin: 0 0 18px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.h1, .h2, .h3, .hero__title { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.035em; }
.h1 { font-size: clamp(44px, 8.4vw, 128px); line-height: 0.95; }
.h2 { font-size: clamp(34px, 5.4vw, 76px); line-height: 1; max-width: 16ch; }
.h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.2; letter-spacing: -0.015em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--blue); }
em.y { color: var(--yellow); }
.lede { margin: 22px 0 0; color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; max-width: 58ch; }
.lede--big { color: var(--ink); font-size: clamp(19px, 2vw, 26px); line-height: 1.45; max-width: 40ch; margin: 0; }
.head { margin-bottom: clamp(48px, 7vw, 88px); }
.note { margin: 14px 0 0; font: 400 12px/1.4 var(--mono); color: var(--dim); }

/* Buttons */
.icon { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); letter-spacing: -0.005em; white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
  will-change: transform;
}
.btn:hover .icon, .link:hover .icon, .card:hover .card__more .icon, .next:hover .icon, .footer__big:hover .icon { transform: translateX(4px); }
.btn--light { background: var(--ink); color: #0b0c0e; }
.btn--light:hover { background: #fff; }
.btn--yellow { background: var(--yellow); color: #121212; }
.btn--yellow:hover { background: #f6ef6a; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--line { border-color: var(--line-2); margin-top: 32px; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color 0.3s; }
.link:hover { border-color: currentColor; }

/* Progress + cursor */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--yellow)); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter);
  transition: background 0.4s, border-color 0.4s, transform 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(8, 9, 11, 0.72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { flex: none; }
.logo { display: block; height: 34px; width: auto; }
@media (max-width: 520px) { .logo { height: 28px; } }
.nav__links { display: flex; gap: 4px; margin-inline: auto; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.nav__links a { padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.25s, background 0.25s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.nav__cta { min-height: 44px; font-size: 14px; }
.nav__toggle { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; position: relative; }
.nav__toggle span:not(.sr-only) { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--ink); transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.menu { position: fixed; inset: var(--nav-h) 0 0; padding: 32px var(--gutter); background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.menu[hidden] { display: none; }
.menu a { font: 500 clamp(36px, 10vw, 52px)/1.15 var(--display); letter-spacing: -0.03em; padding: 6px 0; border-bottom: 1px solid var(--line); animation: menuIn 0.5s var(--ease) both; }
.menu a:nth-child(2) { animation-delay: 0.04s; } .menu a:nth-child(3) { animation-delay: 0.08s; } .menu a:nth-child(4) { animation-delay: 0.12s; } .menu a:nth-child(5) { animation-delay: 0.16s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(18px); } }
.menu__meta { margin-top: auto; color: var(--muted); font-family: var(--mono); font-size: 13px; }
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* Reveal */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
  [data-reveal].is-in { opacity: 1; transform: none; }
  .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  [data-split] .w { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 0.06s + var(--d, 0s)); }
  [data-split].is-in .w { transform: none; }
}

/* Video slots */
.slot { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.slot__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.slot__video.is-playing { opacity: 1; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 40px) 0 clamp(48px, 8vh, 96px); overflow: hidden; isolation: isolate; }
.hero .slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 11, 0.2) 0%, rgba(8, 9, 11, 0) 40%, var(--bg) 100%), linear-gradient(90deg, rgba(8, 9, 11, 0.78) 0%, rgba(8, 9, 11, 0.45) 45%, rgba(8, 9, 11, 0) 75%); }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; }
.hero__title { font-size: clamp(42px, 6.2vw, 100px); line-height: 0.98; max-width: 19ch; }
.hero__title .line + .line { margin-top: 0.02em; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(32px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); }
.hero__lede { margin: 0; max-width: 48ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; right: var(--gutter); top: 50%; width: 26px; height: 44px; border: 1px solid var(--line-2); border-radius: 20px; display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--ink); animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (min-width: 1100px) { .hero__scroll { display: block; } }

/* Clients marquee */
.clients { padding-block: 40px 20px; border-block: 1px solid var(--line); }
.clients .eyebrow { justify-content: center; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); padding: 12px clamp(24px, 3.5vw, 48px); margin: 0; list-style: none; flex: none; animation: marquee 38s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee img { height: 34px; width: auto; opacity: 0.6; filter: grayscale(1) brightness(1.6); transition: opacity 0.3s, filter 0.3s; }
.marquee img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Studios */
.studios { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.studio { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); transition: border-color 0.4s, box-shadow 0.5s; isolation: isolate; }
.studio--software { --tone: var(--blue); }
.studio--marketing { --tone: var(--yellow); }
/* Hover only changes colour and light, never size, so nothing reflows. */
.studio:hover, .studio:focus-within { border-color: color-mix(in srgb, var(--tone) 50%, transparent); box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--tone) 45%, transparent); }
.studio__glow { position: absolute; inset: -30%; background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), color-mix(in srgb, var(--tone) 32%, transparent), transparent 45%); opacity: 0.55; transition: opacity 0.6s; }
.studio:hover .studio__glow { opacity: 1; }
.studio .slot__video { opacity: 0; transition: opacity 0.6s; }
.studio .slot__video.is-playing { opacity: 0.32; }
.studio:hover .slot__video.is-playing, .studio:focus-within .slot__video.is-playing { opacity: 0.5; }
/* Keep panel text readable over its video: darker on the text side. */
.studio .slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15, 17, 21, 0.82) 0%, rgba(15, 17, 21, 0.55) 55%, rgba(15, 17, 21, 0.2) 100%); }
.studio__inner { position: relative; padding: clamp(28px, 3.4vw, 48px); height: 100%; display: flex; flex-direction: column; }
.studio__title { font: 500 clamp(28px, 3vw, 42px)/1.05 var(--display); letter-spacing: -0.03em; margin: 0; max-width: 16ch; }
.studio__text { color: var(--muted); max-width: 46ch; margin: 18px 0 28px; }
.studio__list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 0; }
.studio__list li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.studio__list strong { font-weight: 600; font-size: 15px; }
.studio__list span { color: var(--muted); font-size: 14px; transition: color 0.4s; }
.studio__list strong { transition: color 0.4s; }
.studio:hover .studio__list span, .studio:focus-within .studio__list span { color: #c6ccd4; }
.studio__exp { margin: -8px 0 32px; }
.studio__exp-label { margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.studio__exp .tags { margin-top: 10px; }
.studio .link { margin-top: auto; align-self: flex-start; color: var(--tone); }
@media (max-width: 900px) {
  .studios { grid-template-columns: 1fr; }
}

/* Stats */
.stats { border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat__num { margin: 0; font: 500 clamp(44px, 5.6vw, 84px)/1 var(--display); letter-spacing: -0.04em; background: linear-gradient(180deg, #fff, #8d96a3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 24ch; }
.count { font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .stats__grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; } }

/* Products */
.product { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(32px, 6vw, 72px); }
.product + .product { border-top: 1px solid var(--line); }
.product--flip .product__copy { order: 2; }
.product__tag { margin: 14px 0 0; font: italic 400 clamp(22px, 2.2vw, 30px)/1.2 var(--serif); color: var(--accent); }
@media (max-width: 1180px) { .product { grid-template-columns: 1fr; } .product--flip .product__copy { order: 0; } }

/* Pulse demo */
.pulse { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: center; }
.pulse__phone { position: relative; border-radius: 36px; padding: 14px; background: linear-gradient(160deg, #1b2129, #0c0e12); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(56, 176, 244, 0.35), inset 0 0 0 6px #050607; }
.pulse__bar { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.pulse__bar small { display: block; color: var(--muted); font-size: 12px; }
.pulse__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 22%, transparent); color: var(--blue); }
.pulse__avatar svg { width: 18px; }
.pulse__chat { height: 320px; overflow-y: auto; padding: 16px 10px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; scrollbar-width: none; }
.msg { margin: 0; max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: msgIn 0.45s var(--ease) both; }
.msg--bot { background: #1d232b; border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: var(--blue); color: #04111b; border-bottom-right-radius: 4px; font-weight: 500; }
.msg--typing { display: inline-flex; gap: 4px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; } .msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: 0.4; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } }
.msg strong { color: var(--ink); }
.msg .bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 10px; }
.msg .bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--blue), #1b6a96); height: var(--h); animation: grow 0.8s var(--ease) both; animation-delay: calc(var(--i) * 0.06s); transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } }
.pulse__ask { padding: 12px 8px 6px; border-top: 1px solid var(--line); }
.pulse__hint { margin: 0 4px 8px; font: 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 13px; line-height: 1.2; text-align: left; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0b0c0e; }
.chip:disabled { opacity: 0.4; cursor: default; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; gap: 2px; background: rgba(255, 255, 255, 0.03); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.25s, background 0.25s; }
.seg button[aria-selected="true"] { background: var(--ink); color: #0b0c0e; }
.sources { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sources li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; transition: border-color 0.3s, background 0.3s; }
.sources li span { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); transition: background 0.3s, box-shadow 0.3s; }
.sources li.is-active { border-color: color-mix(in srgb, var(--blue) 60%, transparent); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.sources li.is-active span { background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 25%, transparent); }
@media (max-width: 720px) { .pulse { grid-template-columns: 1fr; } .pulse__side { order: -1; } }

/* SeatView demo */
.seat { display: grid; grid-template-columns: 1fr; gap: 20px; }
.seat__view { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 50% 0%, #1d1b10, #07080a 70%); }
.seat__room { position: relative; height: 230px; perspective: 520px; perspective-origin: 50% 40%; overflow: hidden; }
.seat__screen {
  position: absolute; left: 50%; top: 34px; width: 300px; height: 128px; margin-left: -150px;
  border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f5ef7a, #e3b93d 40%, #38b0f4); color: #10110f;
  font: 600 13px var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 0 80px 10px rgba(236, 228, 71, 0.25);
  transform: translateX(var(--tx, 0px)) translateZ(var(--tz, -120px)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform 1s var(--ease);
}
.seat__floor { position: absolute; inset: auto 0 0; height: 70px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 30px), linear-gradient(transparent, rgba(0,0,0,0.6)); transform: rotateX(70deg); transform-origin: bottom; }
.seat__caption { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); min-height: 52px; }
.seat__caption strong { color: var(--ink); }
.seat__map { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.seat__map::before { content: "Screen"; grid-column: 1 / -1; text-align: center; font: 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid color-mix(in srgb, var(--yellow) 50%, transparent); border-radius: 50% 50% 0 0 / 12px 12px 0 0; }
.seat__map button { aspect-ratio: 1; min-width: 0; border: 0; padding: 0; border-radius: 6px 6px 3px 3px; background: #2a313b; transition: background 0.2s, transform 0.2s; }
.seat__map button:hover:not(:disabled) { background: #4a5462; transform: translateY(-2px); }
.seat__map button:disabled { background: #191d23; cursor: not-allowed; }
.seat__map button[aria-pressed="true"] { background: var(--yellow); }
.seat__map .gap { grid-column: span 1; }
.seat__legend { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.seat__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.free { background: #2a313b; } .taken { background: #191d23; outline: 1px solid var(--line-2); } .mine { background: var(--yellow); }
.seat__snacks { margin-top: 22px; }
.seat__snacks .chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.seat__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.seat__total strong { font: 500 26px var(--display); color: var(--ink); }
@media (min-width: 720px) { .demo-stage .seat { grid-template-columns: 1.1fr 1fr; align-items: start; } .demo-stage .seat__room { height: 300px; } }

/* Software rail */
.rail-section { position: relative; padding-block: clamp(96px, 12vw, 160px) 40px; }
.rail-section__sticky { overflow: hidden; }
.rail-section__head .head { margin-bottom: 48px; }
.rail { display: flex; gap: 20px; padding: 0 var(--gutter) 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { flex: 0 0 min(460px, 86vw); scroll-snap-align: start; }
.rail-section.is-pinned .rail-section__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.rail-section.is-pinned .rail { overflow: visible; transform: translateX(var(--x, 0px)); will-change: transform; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
/* Pinned: the section locks the moment it reaches the top (no top padding
   to scroll through first), and heading plus cards fit within one screen. */
.rail-section.is-pinned { padding-block: 0; }
.rail-section.is-pinned .rail-section__sticky { height: 100svh; padding-top: 64px; }
.rail-section.is-pinned .head { margin-bottom: 28px; }
.rail-section.is-pinned .head .eyebrow { margin-bottom: 12px; }
.rail-section.is-pinned .h2 { font-size: clamp(30px, 3.4vw, 52px); max-width: 26ch; }
.rail-section.is-pinned .lede { margin-top: 14px; }
.rail-section.is-pinned .rail { padding-bottom: 24px; }
.rail-section.is-pinned .card--software { min-height: 0; padding: 24px 26px; }
.rail-section.is-pinned .card__top { margin-bottom: 18px; }
.rail-section.is-pinned .card__text { margin-top: 12px; }
.rail-section.is-pinned .card--software .flow { margin-top: 18px; }
.rail-section.is-pinned .flow__step { padding: 6px 0; }
.rail-section.is-pinned .card__more { padding-top: 16px; }
@media (min-width: 1100px) and (max-height: 860px) { .rail-section.is-pinned .head .lede { display: none; } }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.5s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card:hover { border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.card--software { padding: 28px; min-height: 470px; background: radial-gradient(circle at var(--mx, 80%) var(--my, 0%), rgba(56, 176, 244, 0.13), transparent 50%), var(--bg-2); }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.tag { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.card__no { font: 12px var(--mono); color: var(--dim); }
.card__title { margin: 0; font: 500 clamp(26px, 2.6vw, 34px)/1.05 var(--display); letter-spacing: -0.03em; }
.card__meta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.card__text { margin: 18px 0 0; font-size: 15px; color: var(--ink); opacity: 0.85; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font-weight: 600; font-size: 14px; }
.card--software .flow { margin-top: 28px; }
.card--marketing, .card--product { background: var(--case-bg, var(--bg-2)); color: var(--case-ink, var(--ink)); }
.card--marketing .tag, .card--product .tag { border-color: currentColor; color: inherit; opacity: 0.7; }
.card--marketing .card__meta, .card--marketing .card__no { color: inherit; opacity: 0.75; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: rgba(0, 0, 0, 0.15); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body .card__top { margin-bottom: 18px; }
.card--product { --case-bg: var(--bg-2); }
.card--product .card__meta { color: var(--accent); opacity: 1; font-family: var(--serif); font-style: italic; font-size: 19px; }
.card--end { flex: 0 0 260px !important; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 32px; background: transparent; border-style: dashed; }
.card--end .icon { width: 28px; height: 28px; }

/* Flow chain */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.flow__step { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 14px; color: var(--muted); }
.flow__step::before { content: ""; position: absolute; left: 5px; top: -50%; height: 100%; width: 1px; background: var(--line-2); }
.flow__step:first-child::before { display: none; }
.flow__dot { position: relative; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); flex: none; z-index: 1; transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; }
.flow.is-live .flow__step { animation: flowText 5s infinite; animation-delay: calc(var(--i) * 0.6s); }
.flow.is-live .flow__dot { animation: flowDot 5s infinite; animation-delay: calc(var(--i) * 0.6s); }
@keyframes flowDot { 0%, 100% { background: var(--bg); border-color: var(--line-2); box-shadow: none; } 8%, 40% { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px rgba(56, 176, 244, 0.2); } }
@keyframes flowText { 0%, 100% { color: var(--muted); } 8%, 40% { color: var(--ink); } }
.flow-panel { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 100% 0, rgba(56, 176, 244, 0.1), transparent 50%), var(--bg-2); }
.flow-panel .flow { grid-auto-flow: column; grid-auto-columns: 1fr; }
.flow-panel .flow__step { flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 12px 0 0; font-size: 15px; }
.flow-panel .flow__step::before { left: -50%; right: auto; top: 5px; width: 100%; height: 1px; }
@media (max-width: 760px) {
  .flow-panel .flow { grid-auto-flow: row; }
  .flow-panel .flow__step { flex-direction: row; align-items: center; padding: 9px 0; }
  .flow-panel .flow__step::before { left: 5px; top: -50%; width: 1px; height: 100%; }
}

/* Marketing brand list */
.brands { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.brand { position: relative; display: grid; grid-template-columns: 48px 1.3fr 1fr 1fr; gap: 24px; align-items: center; padding: 30px 12px; border-bottom: 1px solid var(--line); isolation: isolate; transition: color 0.5s var(--ease), padding 0.5s var(--ease); }
.brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--case-bg); transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ease); }
.brand:hover, .brand:focus-visible { color: var(--case-ink); padding-inline: 28px; }
.brand:hover::before, .brand:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.brand__no { font: 12px var(--mono); opacity: 0.6; }
.brand__name { font: 500 clamp(24px, 3vw, 44px)/1.05 var(--display); letter-spacing: -0.03em; }
.brand__name small { font: 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; vertical-align: middle; }
.brand__sector { font-size: 14px; opacity: 0.7; }
.brand__stat { display: grid; justify-items: end; text-align: right; }
.brand__stat .count { font: 500 clamp(24px, 2.4vw, 34px)/1 var(--display); letter-spacing: -0.03em; }
.brand__stat small { font-size: 12px; opacity: 0.65; max-width: 26ch; }
.brand__thumb { display: none; }
.brand-preview { position: fixed; left: 0; top: 0; z-index: 40; width: 320px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-4deg); transition: opacity 0.35s, transform 0.5s var(--ease); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.brand-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.brand-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px), (hover: none) {
  .brand { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 22px 4px; }
  .brand__no, .brand__sector { display: none; }
  .brand__stat { grid-column: 1; grid-row: 2; justify-items: start; text-align: left; }
  .brand__thumb { display: block; grid-column: 2; grid-row: 1 / span 2; width: 96px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
  .brand__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .brand-preview { display: none; }
}

/* Process */
.process__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.process__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.steps { list-style: none; margin: 0; padding: 0 0 0 40px; position: relative; display: grid; gap: clamp(48px, 7vw, 88px); }
.steps__line { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--fill, 0)); background: linear-gradient(var(--blue), var(--yellow)); }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -40px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.step.is-in::before { border-color: var(--yellow); background: var(--yellow); transition: background 0.4s 0.3s, border-color 0.4s 0.3s; }
.step__no { font: 12px var(--mono); color: var(--yellow); }
.step .h3 { margin: 10px 0 12px; font-size: clamp(22px, 2.2vw, 30px); }
.step p { margin: 0; color: var(--muted); max-width: 48ch; }
@media (max-width: 900px) { .process__grid { grid-template-columns: 1fr; } .process__intro { position: static; } }

/* Principles, outcomes, modules */
.principles__grid, .outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle, .outcome { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; isolation: isolate; }
.principle::before, .outcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px circle at var(--mx, -100px) var(--my, -100px), rgba(255, 255, 255, 0.07), transparent 60%); }
.principle__no, .outcome__no { font: 12px var(--mono); color: var(--accent); }
.principle .h3, .outcome .h3 { margin: 40px 0 12px; }
.principle p, .outcome p { margin: 0; color: var(--muted); font-size: 15px; }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.module { padding: 28px; border-top: 1px solid var(--line-2); }
.module ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.module li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.module li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: var(--accent); }
@media (max-width: 1000px) { .principles__grid, .outcomes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .principles__grid, .outcomes, .modules { grid-template-columns: 1fr; } .principle .h3, .outcome .h3 { margin-top: 24px; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease); }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35); transition: filter 0.6s, transform 1s var(--ease); }
.member:hover .member__photo img { filter: none; transform: scale(1.04); }
.member figcaption { padding: 18px 20px 20px; display: grid; gap: 2px; }
.member strong { font: 500 20px var(--display); letter-spacing: -0.02em; }
.member span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; max-width: 420px; } }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 500 clamp(17px, 1.6vw, 21px)/1.35 var(--display); letter-spacing: -0.01em; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span { position: relative; width: 18px; height: 18px; flex: none; margin-top: 4px; }
.qa summary span::before, .qa summary span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.qa summary span::after { transform: rotate(90deg); }
.qa[open] summary span::after { transform: rotate(0); }
.qa p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { overflow: hidden; border-top: 1px solid var(--line); isolation: isolate; }
.contact__rings { position: absolute; left: 50%; top: 100%; width: 0; height: 0; }
.contact__rings span { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(56, 176, 244, 0.18); border-radius: 50%; transform: translate(-50%, -50%); animation: ring 9s linear infinite; }
.contact__rings span:nth-child(1) { width: 700px; height: 700px; }
.contact__rings span:nth-child(2) { width: 1100px; height: 1100px; animation-delay: -3s; }
.contact__rings span:nth-child(3) { width: 1500px; height: 1500px; animation-delay: -6s; }
@keyframes ring { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; border-color: rgba(236, 228, 71, 0.2); } }
.contact .slot__video.is-playing { opacity: 0.4; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__details { margin: 40px 0 0; display: grid; gap: 22px; }
.contact__details dt { font: 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.contact__details dd { margin: 0; }
.contact__details a { border-bottom: 1px solid var(--line-2); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 17, 21, 0.85); backdrop-filter: blur(10px); }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 8px; }
.field input, .field textarea { width: 100%; font: 16px/1.5 var(--body); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; border-radius: 0; transition: border-color 0.3s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.field textarea::placeholder { color: var(--dim); }
.field .chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form__status.is-ok { color: #8be0a4; }
.form__status.is-error { color: #ff9a8b; }

/* Page heroes */
.page-hero { padding-top: calc(var(--nav-h) + clamp(64px, 10vw, 140px)); padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero .lede { margin-top: 28px; }
.page-hero .seg { margin-top: 40px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.grid > li { display: flex; transition: opacity 0.4s, transform 0.5s var(--ease); }
.grid > li > .card { flex: 1; }
.grid > li[hidden] { display: none; }
.grid .card--software { min-height: 420px; }
.notfound { min-height: 80vh; }
.notfound .hero__ctas { margin-top: 40px; }

.case-hero { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 100px)); padding-bottom: clamp(32px, 4vw, 56px); }
.back { display: inline-block; margin-bottom: 40px; color: var(--muted); font-size: 14px; transition: color 0.3s; }
.back:hover { color: var(--ink); }
.case-hero__tag { margin: 28px 0 0; font: italic 400 clamp(22px, 2.4vw, 32px)/1.25 var(--serif); color: var(--blue); max-width: 34ch; }
.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); }
.tags--small { margin: 6px 0 0; }
.tags--small li { padding: 4px 10px; font-size: 12px; }
.case-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: grid; gap: 20px; }
.facts dt { font: 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15px; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.versus__col { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); border: 1px solid var(--line); }
.versus__col p:not(.eyebrow) { margin: 0 0 16px; color: var(--muted); font-size: 17px; }
.versus__col--after { background: linear-gradient(160deg, rgba(56, 176, 244, 0.12), rgba(56, 176, 244, 0.02)); border-color: rgba(56, 176, 244, 0.3); }
.versus__col--after p:not(.eyebrow) { color: var(--ink); }
@media (max-width: 900px) { .case-intro, .versus { grid-template-columns: 1fr; } }
.next { display: grid; gap: 12px; padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next__name { display: flex; align-items: center; gap: 16px; font: 500 clamp(36px, 6vw, 88px)/1 var(--display); letter-spacing: -0.04em; transition: color 0.3s; }
.next__name .icon { width: clamp(28px, 4vw, 56px); height: auto; }
.next:hover .next__name { color: var(--blue); }

/* Marketing case pages */
.brand-hero { background: var(--case-bg); color: var(--case-ink); padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 100px)); padding-bottom: clamp(56px, 8vw, 110px); border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px); }
.brand-hero .eyebrow, .brand-hero .back { color: inherit; opacity: 0.75; }
.brand-hero .h1 em { color: inherit; }
.brand-hero__scope { margin: 32px 0 0; max-width: 60ch; font-size: clamp(16px, 1.4vw, 19px); }
.brand-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.brand-stats .stat__num { background: none; color: var(--case-stat); }
@media (max-width: 800px) { .brand-stats { grid-template-columns: 1fr 1fr; gap: 36px 20px; } }
.case-story { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .case-story { grid-template-columns: 1fr; } }
.quote { margin: 0; padding: clamp(32px, 5vw, 72px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); position: relative; }
.quote::before { content: "“"; position: absolute; top: 0; left: clamp(20px, 3vw, 40px); font: 400 160px/1 var(--serif); color: var(--case-bg, var(--blue)); opacity: 0.6; }
.quote p { position: relative; margin: 0; font: italic 400 clamp(28px, 3.6vw, 52px)/1.15 var(--serif); max-width: 26ch; }
.quote cite { display: block; margin-top: 28px; font: 500 14px var(--body); font-style: normal; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.shot { margin: 0; }
.shot--wide { grid-column: 1 / -1; }
.shot__open { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #0d0e10; cursor: zoom-in; }
.shot__open img { width: 100%; transition: transform 1s var(--ease); }
.shot__open:hover img { transform: scale(1.03); }
.shot figcaption { margin-top: 12px; font: 12px var(--mono); color: var(--dim); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.lightbox { max-width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.lightbox::backdrop { background: rgba(5, 6, 8, 0.88); backdrop-filter: blur(6px); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 14px; }
.lightbox p { text-align: center; font: 12px var(--mono); color: var(--muted); }
.lightbox__close { position: absolute; right: -8px; top: -52px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 22px; }

/* Product pages */
.product-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 80px) 0 clamp(48px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.product-hero__img { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 22%, #000 48%); mask-image: linear-gradient(180deg, transparent 0%, transparent 22%, #000 48%); }
.product-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; opacity: 0.6; transform: scale(calc(1.05 + var(--hp, 0) * 0.12)); }
.product-hero .slot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 9, 11, 0.55) 30%, rgba(8, 9, 11, 0.35) 55%, var(--bg) 94%), linear-gradient(90deg, rgba(8, 9, 11, 0.7) 0%, rgba(8, 9, 11, 0.3) 50%, rgba(8, 9, 11, 0) 80%); }
.product-hero__inner { position: relative; }
.product-hero__tag { margin: 22px 0 0; font: italic 400 clamp(24px, 3vw, 40px)/1.2 var(--serif); color: var(--accent); }
.demo-stage { padding: clamp(20px, 4vw, 48px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%), var(--bg-2); }
.closing { margin: 0; font: 500 clamp(30px, 4.4vw, 64px)/1.08 var(--display); letter-spacing: -0.035em; max-width: 22ch; }

/* Footer */
.footer { position: relative; border-top: 1px solid var(--line); overflow: hidden; padding-top: clamp(24px, 4vw, 48px); }
.footer .footer__grid { border-top: 0; }
.footer__cta { padding-bottom: clamp(56px, 8vw, 96px); }
.footer__big { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3em; font: 500 clamp(40px, 7vw, 108px)/1 var(--display); letter-spacing: -0.045em; transition: color 0.3s; }
.footer__big .icon { width: 0.6em; height: 0.6em; }
.footer__big:hover { color: var(--yellow); }
.footer__big:hover em { color: var(--ink); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr; gap: 32px 48px; padding-block: 40px; border-top: 1px solid var(--line); }
.footer__label { margin: 0 0 12px; font: 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.footer address { font-style: normal; color: var(--muted); line-height: 1.7; }
.footer a:not(.footer__big) { color: var(--muted); transition: color 0.25s; }
.footer a:not(.footer__big):hover { color: var(--ink); }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer__word { font: italic 600 clamp(64px, 17vw, 270px)/0.8 var(--display); letter-spacing: -0.05em; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); margin-bottom: -0.12em; user-select: none; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Services on the home page */
.studio .eyebrow { color: var(--tone); }
.studio__list strong { display: flex; align-items: baseline; gap: 10px; }
.studio__no { font: 500 11px var(--mono); color: var(--tone); letter-spacing: 0.08em; }
.studio__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.studio__links .link:first-child { color: var(--tone); }
.link--quiet { color: var(--muted); }
.link--quiet:hover { color: var(--ink); }
.section-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 40px; }

/* Services page */
.page-hero__jump { margin-top: 36px; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 64px 1.4fr 1fr; gap: 24px 40px; align-items: start; padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.svc__no { font: 500 13px var(--mono); color: var(--blue); padding-top: 6px; }
.svc__main .h3 { font-size: clamp(22px, 2.4vw, 32px); }
.svc__main p { margin: 12px 0 0; color: var(--muted); max-width: 56ch; }
.svc__proof-label { margin: 6px 0 10px; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.svc__proof-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__proof-links a { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; transition: border-color 0.3s, color 0.3s; }
.svc__proof-links a:hover { border-color: var(--blue); color: var(--blue); }
.svc-exp { margin-top: 40px; }
.svc-exp .tags { margin-top: 12px; }
@media (max-width: 860px) { .svc { grid-template-columns: 40px 1fr; } .svc__proof { grid-column: 2; } }
.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.package { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; isolation: isolate; }
.package::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(280px circle at var(--mx, -100px) var(--my, -100px), rgba(255, 255, 255, 0.06), transparent 60%); }
.package--featured { grid-column: 1 / -1; background: linear-gradient(150deg, rgba(236, 228, 71, 0.08), transparent 45%), var(--bg-2); border-color: rgba(236, 228, 71, 0.3); }
.package__top { display: flex; justify-content: space-between; align-items: center; }
.package__no { font: 500 13px var(--mono); color: var(--yellow); }
.package__name { margin: 18px 0 0; font: 500 clamp(22px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -0.025em; }
.package__summary { margin: 12px 0 0; color: var(--muted); max-width: 60ch; }
.package__includes { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.package--featured .package__includes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.package__includes li { position: relative; padding-left: 20px; font-size: 14.5px; }
.package__includes li::before { content: "+"; position: absolute; left: 0; color: var(--yellow); font-weight: 600; }
.package__best { margin: auto 0 0; padding-top: 22px; font: 12px/1.5 var(--mono); color: var(--dim); letter-spacing: 0.04em; }
@media (max-width: 1000px) { .package--featured .package__includes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .packages { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .package__includes, .package--featured .package__includes { grid-template-columns: 1fr; } }

/* Contact form: pick a group, then its services */
.need__group { margin-top: 18px; padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.02); animation: needIn 0.4s var(--ease) both; }
.need__group[hidden] { display: none; }
.need__label { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.need__label span { font-weight: 400; color: var(--dim); margin-left: 6px; }
.chip--sub[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #0b0c0e; }
@keyframes needIn { from { opacity: 0; transform: translateY(-6px); } }

/* Testimonials: a hand of cards */
.testimonials-hero { padding-bottom: 0; }
.deck { position: relative; height: clamp(620px, 92svh, 980px); overflow: hidden; isolation: isolate; --card-w: min(400px, calc(100vw - 40px)); --card-h: calc(var(--card-w) * 1.4); }
.deck__veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 40%, rgba(8, 9, 11, 0.4), rgba(8, 9, 11, 0.92)); opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.deck.has-active .deck__veil { opacity: 1; pointer-events: auto; cursor: zoom-out; }
.hand { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hand__slot { position: absolute; left: 50%; top: 50%; width: var(--card-w); height: var(--card-h); margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2); }
.tcard {
  position: absolute; inset: 0; padding: 0; border: 0; border-radius: 22px; background: transparent; pointer-events: auto; text-align: left;
  transform-style: preserve-3d; transform-origin: 50% 100%;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--rot, 0deg)) rotateY(var(--spin, 0deg)) scale(var(--s, 1));
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s; cursor: pointer;
}
.tcard__face, .tcard__back { position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
.tcard__face { display: flex; flex-direction: column; padding: calc(var(--card-w) * 0.08); background: var(--case-bg, #f3efe6); color: var(--case-ink, #111); overflow: hidden; }
.tcard__back { transform: rotateY(180deg); display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(56, 176, 244, 0.07) 0 12px, transparent 12px 24px), radial-gradient(circle at 50% 50%, #18202b, #090b0e 75%); border: 1px solid rgba(236, 228, 71, 0.35); }
.tcard__back img { width: 58%; opacity: 0.9; }
.tcard__corner { font: 700 clamp(14px, calc(var(--card-w) * 0.05), 20px)/1 var(--display); letter-spacing: -0.02em; }
.tcard__corner--end { position: absolute; right: calc(var(--card-w) * 0.08); bottom: calc(var(--card-w) * 0.07); transform: rotate(180deg); }
.tcard__brand { margin-top: calc(var(--card-w) * 0.1); font: 600 clamp(22px, calc(var(--card-w) * 0.07), 28px)/1.1 var(--display); letter-spacing: -0.025em; }
.tcard__sector { margin-top: 6px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.tcard__quote { margin-top: auto; font: italic 400 clamp(22px, calc(var(--card-w) * 0.068), 28px)/1.2 var(--serif); }
.tcard__by { margin-top: 14px; font-size: 13px; font-weight: 600; opacity: 0.8; }
.tcard__stat { display: grid; gap: 2px; margin: 18px 0 calc(var(--card-w) * 0.06); padding-top: 14px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 25%, transparent); }
.tcard__stat .count { font: 600 26px/1 var(--display); letter-spacing: -0.03em; }
.tcard__stat small { font-size: 12px; opacity: 0.75; }
.tcard--next .tcard__face { background: linear-gradient(160deg, #14202c, #0b0d10 70%); color: var(--ink); border: 1px dashed rgba(236, 228, 71, 0.5); }
.tcard--next .tcard__quote { color: var(--yellow); }
.tcard:focus-visible { outline: none; }
.tcard:focus-visible .tcard__face { outline: 3px solid var(--yellow); outline-offset: 4px; }
.hand__slot.is-active { z-index: 5; }
.tcard__link { position: absolute; left: 50%; top: calc(100% + 18px); transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity 0.4s 0.3s; }
.hand__slot.is-active .tcard__link { opacity: 1; pointer-events: auto; }
.deck__close { position: absolute; z-index: 6; right: var(--gutter); top: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 24px; line-height: 1; }
.deck__close[hidden] { display: none; }
.deck__hint { position: absolute; z-index: 0; left: 0; right: 0; top: 22%; margin: 0; text-align: center; font: 500 12px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); transition: opacity 0.4s; }
.deck.has-active .deck__hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } }

/* Story chapters: each part of a page is a card that drops onto the stack.
   Without JavaScript (or with reduced motion) they are plain sections. */
.warp, .guide { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.warp { z-index: 0; }
.guide { z-index: 45; }
main { position: relative; z-index: 1; overflow-x: clip; }
.chapter { position: relative; background: var(--bg); isolation: isolate; overflow: clip; }
.chapter::after { content: ""; position: absolute; inset: 0; z-index: 20; background: #020305; opacity: var(--cover-dim, 0); pointer-events: none; border-radius: inherit; }
.footer { z-index: 2; background: var(--bg); }
html.stacked .chapter { position: sticky; top: var(--stick, 0px); transform-origin: 50% 0; }
html.stacked .chapter + .chapter {
  border-radius: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0 0;
  background: linear-gradient(180deg, #13171e 0, var(--bg) 380px);
  box-shadow: 0 -30px 70px -10px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
html.stacked .chapter.is-moving { will-change: transform; }
/* A page stays sealed until the falling star explodes on it, then bursts
   open in a circle from the explosion point. */
html.stacked .chapter.is-opening { clip-path: circle(var(--rmax, 300vmax) at 50% var(--cy, 0px)); transition: clip-path 1s cubic-bezier(0.45, 0.05, 0.2, 1); }
html.stacked .chapter.is-sealed { clip-path: circle(0px at 50% var(--cy, 0px)); }
html.stacked .footer { border-radius: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0 0; box-shadow: 0 -24px 60px -12px rgba(0, 0, 0, 0.85); }
.chapter-mark { display: block; height: 0; }

/* Leaving for another page: the current page falls away into the stars. */
html.is-leaving main, html.is-leaving .footer { transition: transform 0.5s cubic-bezier(0.6, 0, 0.9, 0.4), opacity 0.45s ease-in; transform: perspective(1200px) translateZ(-260px) rotateX(10deg); opacity: 0; }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  main { animation: arrive 0.9s var(--ease) both; }
}
@keyframes arrive { from { opacity: 0; transform: perspective(1200px) translateZ(220px); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-split] .w { opacity: 1 !important; transform: none !important; }
  .marquee ul { animation: none; }
  .card, .member { transform: none !important; }
}
