/* Engage Studio website. One stylesheet for both pages.
   Every colour comes from the three panes of the logo, on a deep broadcast ink. */

:root {
  color-scheme: dark;

  /* the ground */
  --bg: #05070d;
  --bg-2: #080b15;
  --surface: #0d1222;
  --surface-2: #131a2f;
  --line: rgba(166, 180, 224, 0.12);
  --line-2: rgba(166, 180, 224, 0.22);

  /* text */
  --ink: #eef2ff;
  --ink-2: #a6b0cc;
  --ink-3: #6e7897;

  /* the logo's panes */
  --violet: #a9a2f5;
  --pink: #ec9fc7;
  --green: #72e582;
  --yellow: #eff47d;
  --cyan: #3fccfa;
  --blue: #4287f0;

  --brand: linear-gradient(115deg, var(--violet) 0%, var(--pink) 30%, var(--cyan) 65%, var(--blue) 100%);
  --brand-soft: linear-gradient(115deg, rgba(169, 162, 245, 0.35), rgba(63, 204, 250, 0.35) 60%, rgba(66, 135, 240, 0.35));

  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --mid: 420ms;
  --slow: 900ms;

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section: clamp(88px, 12vw, 160px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(63, 204, 250, 0.35); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ type */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .idx { color: var(--cyan); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
.display { font-size: clamp(44px, 7.6vw, 104px); line-height: 0.98; letter-spacing: -0.045em; }
.h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }

.grad {
  background: var(--brand);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s var(--ease) infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }

.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head.center .lede { margin: 0 auto; }

/* --------------------------------------------------------------- buttons */

.btn {
  --pad: 14px 22px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: var(--radius-sm); border: 0; cursor: pointer;
  font-weight: 550; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform var(--fast) var(--ease), background var(--fast), box-shadow var(--mid) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--brand); opacity: 0; filter: blur(14px);
  transition: opacity var(--mid) var(--ease);
}
.btn-primary:hover::before { opacity: 0.85; }

.btn-quiet { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { --pad: 10px 16px; font-size: 14px; }

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--mid) var(--ease), box-shadow var(--mid) var(--ease), backdrop-filter var(--mid);
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: auto; transition: transform var(--mid) var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand b { font-weight: 650; }
.brand span { color: var(--ink-2); font-weight: 450; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2);
  transition: color var(--fast);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform var(--mid) var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; }

.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform var(--mid) var(--ease), opacity var(--fast); }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav.open { bottom: 0; overflow-y: auto; background: rgba(5, 7, 13, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .nav.open .nav-inner { align-content: start; }
  .nav.open .nav-inner { flex-wrap: wrap; height: auto; min-height: 72px; padding-bottom: 20px; }
  .nav.open .nav-inner > .brand { height: 72px; }
  .nav.open .nav-links { display: grid; order: 3; width: 100%; margin: 0; }
  .nav.open .nav-links a { padding: 14px 4px; font-size: 20px; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.open .nav-links a::after { display: none; }
  .nav.open .nav-cta { display: grid; order: 4; width: 100%; margin-top: 8px; }
  .nav.open .nav-cta .btn { width: 100%; --pad: 16px 22px; }
}

/* ------------------------------------------------------------ ambience */

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: 0.32; mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: var(--violet); top: -30vmax; left: -18vmax; }
.aurora i:nth-child(2) { background: var(--blue); top: -24vmax; right: -24vmax; animation-duration: 32s; opacity: 0.38; }
.aurora i:nth-child(3) { background: var(--pink); top: 22vmax; left: 30%; width: 40vmax; height: 40vmax; opacity: 0.14; animation-duration: 38s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.1); } }

.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ----------------------------------------------------------------- hero */

.hero { position: relative; isolation: isolate; padding: clamp(112px, 12vw, 148px) 0 0; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero .display { max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .hero-actions { width: 100%; } .hero-actions .btn { flex: 1 1 100%; --pad: 16px 22px; } }

.live-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 12.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.stage-wrap { position: relative; margin-top: clamp(48px, 5vw, 64px); perspective: 1800px; }
.stage-3d {
  position: relative;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, 0deg));
  transform-origin: 50% 0;
  transition: transform var(--slow) var(--ease);
}
.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(66, 135, 240, 0.55), 0 30px 80px -40px rgba(169, 162, 245, 0.6);
  background: var(--surface);
}
.stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* a rotating ring in the logo's colours, drawn behind the stage and one pixel wider */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.stage-3d::before, .stage-3d::after {
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: calc(var(--radius) + 1.5px);
  background: conic-gradient(from var(--spin), rgba(166, 180, 224, 0.25) 0deg, var(--violet) 60deg, var(--pink) 110deg, var(--cyan) 170deg, var(--blue) 220deg, rgba(166, 180, 224, 0.25) 280deg);
  animation: spin 8s linear infinite;
}
.stage-3d::after { inset: -6px; filter: blur(22px); opacity: 0.55; }
@keyframes spin { to { --spin: 360deg; } }

/* the programme: frames stacked, the live one on top, pushing in slowly */
.stage .frames { position: relative; aspect-ratio: 16 / 9; }
.stage .frames img { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.stage .frames img.on { opacity: 1; animation: push 7s linear both; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.05); } }
.stage-bar .scene { color: var(--ink-2); display: inline-block; transition: opacity 300ms, transform 400ms var(--ease); }
.stage-bar .scene.swap { opacity: 0; transform: translateY(6px); }
.stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.stage-progress i { display: block; height: 100%; width: 0; background: var(--brand); }

/* the rolling word in the headline */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rotor { position: relative; display: inline-block; width: var(--w, auto); transition: width 700ms var(--ease); }
.rotor span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(0.4em); filter: blur(8px); transition: opacity 600ms var(--ease), transform 700ms var(--ease), filter 600ms var(--ease); }
.rotor span.on { position: relative; opacity: 1; transform: none; filter: none; }
.rotor span.out { opacity: 0; transform: translateY(-0.4em); filter: blur(8px); }
.rotor::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.06em; border-radius: 1em; background: var(--brand); opacity: 0.9; }

/* proof row: real attendees */
.proof { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.proof p { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: 36ch; }
.proof b { color: var(--ink); font-weight: 550; }
.faces { display: flex; }
.faces img, .faces span { width: 36px; height: 36px; border-radius: 50%; margin-left: -10px; box-shadow: 0 0 0 2px var(--bg); object-fit: cover; }
.faces img:first-child { margin-left: 0; }
.faces span { display: grid; place-items: center; background: var(--surface-2); font: 600 10px/1 var(--mono); letter-spacing: -0.04em; color: var(--ink-2); }
.js .faces img { animation: rise 700ms var(--ease) both; }
.js .faces img:nth-child(2) { animation-delay: 80ms; } .js .faces img:nth-child(3) { animation-delay: 160ms; }
.js .faces img:nth-child(4) { animation-delay: 240ms; } .js .faces img:nth-child(5) { animation-delay: 320ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.8); } }

/* the hero's ground: a faint studio grid and a glow that follows the pointer */
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(166, 180, 224, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(166, 180, 224, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  animation: gridmove 24s linear infinite;
}
@keyframes gridmove { to { background-position: 0 64px, 64px 0; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px circle at var(--hx, 70%) var(--hy, 20%), rgba(63, 204, 250, 0.1), transparent 60%);
}

/* live chat feed card */
.feed { width: 250px; }
.feed ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; min-height: 124px; align-content: end; }
.feed li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; animation: pop-in 520ms var(--ease) both; }
.feed li.leaving { animation: pop-out 380ms var(--ease) both; }
.feed li i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); font-style: normal; color: var(--bg); background: var(--c); }
.feed li b { display: block; font-size: 12px; font-weight: 600; color: var(--c); line-height: 1.2; }
.feed li span { font-size: 13.5px; color: var(--ink); line-height: 1.3; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(-8px); } }
.mini-bars div::after { transition: width 600ms var(--ease); }
.stage-bloom {
  position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 50%;
  background: var(--brand); filter: blur(80px); opacity: 0.45;
}
.stage-bar {
  position: absolute; left: 16px; top: 16px; display: flex; gap: 8px; align-items: center;
  padding: 7px 12px; border-radius: 8px; background: rgba(5, 7, 13, 0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}

.float {
  position: absolute; z-index: 2; display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px;
  background: rgba(13, 18, 34, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 13.5px; min-width: 180px;
  animation: bob 6s ease-in-out infinite;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}
.float small { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.float strong { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.float.f1 { left: -3%; top: 18%; }
.float.f2 { right: -3%; top: 8%; animation-delay: -2s; }
.float.f3 { right: -3%; bottom: -14%; animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }

.mini-bars { display: grid; gap: 6px; margin-top: 4px; }
.mini-bars div { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mini-bars div::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c); }

@media (max-width: 900px) {
  .float.f1 { left: 8px; top: auto; bottom: -34px; }
  .float.f2 { display: none; }
  .float.f3 { right: 8px; bottom: -34px; }
  .float { min-width: 0; padding: 10px 12px; }
  .float strong { font-size: 18px; }
}
@media (max-width: 560px) {
  .float.f3 { display: none; }
  .proof p { font-size: 13.5px; }
}

/* ------------------------------------------------------------- stats row */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(88px, 10vw, 120px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font: 500 clamp(32px, 4vw, 48px)/1 var(--mono); letter-spacing: -0.04em; }
.stat span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ----------------------------------------------------------- marquee */

.marquee { overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 48s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 44px; font: 500 13px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- sections */

.section { position: relative; padding: var(--section) 0; }
.section.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* problem */
.problem { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.pains { display: grid; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; }
.pains li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.pains li b { display: block; color: var(--ink); font-weight: 550; margin-bottom: 2px; }
.pains .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--pink); }
@media (max-width: 900px) { .problem { grid-template-columns: 1fr; } }

/* try-it poll */
.poll-card {
  position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -50px rgba(66, 135, 240, 0.6);
}
.poll-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.poll-card h3 { font-size: clamp(19px, 2vw, 23px); letter-spacing: -0.02em; margin-bottom: 20px; }
.poll-opts { display: grid; gap: 10px; }
.poll-opt {
  --p: 0%;
  position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center;
  width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; text-align: left; cursor: pointer; overflow: hidden;
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--fast), transform var(--fast) var(--ease);
}
.poll-opt:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-1px); }
.poll-opt::before {
  content: ""; position: absolute; inset: 0; z-index: 0; width: var(--p);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 18%, transparent));
  transition: width 1.1s var(--ease);
}
.poll-opt > * { position: relative; z-index: 1; }
.poll-opt .letter { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 600 13px/1 var(--mono); color: var(--bg); background: var(--c); }
.poll-opt .pct { font: 500 14px/1 var(--mono); color: var(--ink-2); opacity: 0; transition: opacity var(--mid); }
.poll-card.voted .pct { opacity: 1; }
.poll-card.voted .poll-opt { cursor: default; }
.poll-opt.mine { box-shadow: inset 0 0 0 1.5px var(--c); }
.poll-foot { display: flex; justify-content: space-between; margin-top: 16px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------------------------------------------------------- carousel */

.carousel-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.carousel-head .sec-head { flex: 1 1 520px; max-width: 820px; }
.car-ctrl { display: flex; gap: 10px; }
.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background var(--fast), transform var(--fast) var(--ease), opacity var(--fast);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }

.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 820px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px var(--gutter) 24px; margin: 40px 0 0;
  scroll-padding-inline: var(--gutter);
  cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; }
.track.dragging * { pointer-events: none; }
@media (min-width: 1340px) {
  .track { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); }
}

.slide {
  scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease);
}
.slide figure { margin: 0; position: relative; overflow: hidden; }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.slide:hover img { transform: scale(1.04); }
.slide figcaption { display: grid; gap: 8px; padding: 22px 24px 26px; }
.slide figcaption .eyebrow { color: var(--cyan); }
.slide figcaption p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.slide:not(.is-active) { opacity: 0.55; }

.progress { height: 2px; margin: 8px var(--gutter) 0; max-width: var(--max); background: var(--line); border-radius: 2px; overflow: hidden; }
@media (min-width: 1340px) { .progress { margin-inline: auto; width: calc(var(--max) - 2 * var(--gutter)); } }
.progress i { display: block; height: 100%; width: var(--pos, 10%); background: var(--brand); transition: width var(--mid) var(--ease); }

/* ------------------------------------------------------ scene switcher */

.switcher { display: grid; grid-template-columns: 1fr; gap: 24px; }
.monitor { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -60px rgba(63, 204, 250, 0.5); }
.monitor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 700ms var(--ease), transform 1.4s var(--ease); }
.monitor img.on { opacity: 1; transform: none; }
.monitor .ratio { aspect-ratio: 16 / 9; }
.monitor .tally {
  position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 10px; border-radius: 6px; background: rgba(5, 7, 13, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.monitor .scene-name { color: var(--ink-2); }

.deck { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.key {
  --t: 0;
  position: relative; overflow: hidden; display: grid; place-items: center; gap: 6px; padding: 16px 8px 14px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #1a2036, #11162a); color: var(--ink-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px var(--line), 0 4px 0 #080b15;
  font: 600 11.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast), color var(--fast), background var(--mid);
}
.key svg { opacity: 0.7; }
.key:hover { color: var(--ink); transform: translateY(-2px); }
.key:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 #080b15; }
.key[aria-pressed="true"] {
  color: #062012; background: linear-gradient(180deg, #8af29a, #53d269);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 0 #1e7a33, 0 0 30px -4px rgba(114, 229, 130, 0.6);
}
.key[aria-pressed="true"] svg { opacity: 1; }
.key::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--t) * 100%); background: rgba(6, 32, 18, 0.45); }
@media (max-width: 800px) { .deck { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .deck { grid-template-columns: repeat(3, 1fr); } .key { font-size: 10.5px; padding: 12px 4px; } }

/* ---------------------------------------------------------- console */

.console { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 60px 140px -60px rgba(169, 162, 245, 0.55); }
.console img { width: 100%; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 0; border-radius: 50%; cursor: pointer; background: var(--ink); color: var(--bg);
  font: 600 13px/30px var(--mono); text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform var(--fast) var(--ease);
}
.hotspot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--cyan); animation: ping 2.2s var(--ease) infinite; }
.hotspot:hover, .hotspot[aria-expanded="true"] { transform: scale(1.15); }
.hotspot + .tip {
  position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 260px; margin: 24px 0 0 var(--tx, -130px); padding: 14px 16px; border-radius: 12px;
  background: rgba(13, 18, 34, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px rgba(0, 0, 0, 0.6);
  font-size: 14px; line-height: 1.45; color: var(--ink-2);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity var(--fast), transform var(--mid) var(--ease);
}
.hotspot + .tip b { display: block; color: var(--ink); margin-bottom: 4px; }
.hotspot:hover + .tip, .hotspot[aria-expanded="true"] + .tip { opacity: 1; transform: none; }
.console-list { display: none; }
@media (max-width: 760px) {
  .hotspot { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 11px; line-height: 24px; }
  .hotspot + .tip { display: none; }
  .console-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: n; }
  .console-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); font-size: 15px; }
  .console-list li::before { counter-increment: n; content: counter(n); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 11px/24px var(--mono); text-align: center; }
  .console-list b { color: var(--ink); font-weight: 550; }
}

/* ----------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font: 500 13px/1 var(--mono); letter-spacing: 0.12em; color: var(--cyan); margin-bottom: 40px; }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { margin: 0; color: var(--ink-2); }
.step .glyph { position: absolute; right: 22px; top: 22px; color: var(--ink-3); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* spotlight hover used by cards */
.spot { --mx: 50%; --my: 50%; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(63, 204, 250, 0.12), transparent 60%);
  transition: opacity var(--mid);
}
.spot:hover::after { opacity: 1; }

/* ---------------------------------------------------------- pricing */

.billing { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.billing button { position: relative; padding: 9px 16px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-size: 14px; color: var(--ink-2); transition: color var(--fast), background var(--mid) var(--ease); }
.billing button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.billing em { font-style: normal; color: var(--green); font-size: 12px; margin-left: 6px; font-family: var(--mono); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-top: 40px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.plan.pick { background: linear-gradient(180deg, #151c35, var(--surface)); box-shadow: inset 0 0 0 1px rgba(63, 204, 250, 0.45), 0 40px 100px -50px rgba(63, 204, 250, 0.7); }
.plan.pick::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan h3 { font-size: 20px; display: flex; justify-content: space-between; align-items: center; }
.plan h3 small { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.plan .for { margin: -12px 0 0; color: var(--ink-2); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 500 52px/1 var(--mono); letter-spacing: -0.05em; }
.price span { color: var(--ink-3); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 15px; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li svg { color: var(--green); margin-top: 3px; }
.plan li.off { color: var(--ink-3); }
.plan li.off svg { color: var(--ink-3); }
.plan .btn { margin-top: auto; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* -------------------------------------------------------------- faq */

.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: clamp(17px, 1.8vw, 20px); font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform var(--mid) var(--ease), background var(--fast); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); translate: -50% -50%; }
.faq summary .plus::after { rotate: 90deg; transition: rotate var(--mid) var(--ease); }
.faq details[open] .plus { background: rgba(255, 255, 255, 0.06); }
.faq details[open] .plus::after { rotate: 0deg; }
.faq summary:hover .plus { background: rgba(255, 255, 255, 0.06); }
.faq .answer { overflow: hidden; }
.faq .answer p { margin: 0 0 24px; color: var(--ink-2); max-width: 68ch; }

/* -------------------------------------------------------------- cta */

.cta { position: relative; isolation: isolate; overflow: hidden; padding: var(--section) 0; text-align: center; }
.cta .display { font-size: clamp(34px, 6.4vw, 88px); max-width: 16ch; margin: 0 auto; }
.cta .lede { margin: 24px auto 36px; }
.cta .hero-actions { justify-content: center; }
.cta-art { position: relative; margin: clamp(56px, 7vw, 88px) auto 0; max-width: 1100px; }
.cta-art img { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-2); }
.cta-art .stage-bloom { opacity: 0.6; }
.fineprint { margin-top: 18px; font: 500 12px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ----------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--ink-3); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color var(--fast); }
.footer .brand b { color: var(--ink); }
.footer a:hover { color: var(--ink); }
.footer .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------- features page */

.page-hero { position: relative; isolation: isolate; padding: clamp(136px, 16vw, 184px) 0 clamp(56px, 8vw, 96px); }
.page-hero .display { font-size: clamp(42px, 6.6vw, 92px); max-width: 15ch; }
.page-hero .lede { margin-top: 24px; }

.subnav { position: sticky; top: 72px; z-index: 40; background: rgba(5, 7, 13, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 9px 14px; border-radius: 9px; font-size: 14px; color: var(--ink-2); transition: color var(--fast), background var(--fast); }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.subnav a .n { font-family: var(--mono); color: var(--cyan); margin-right: 8px; font-size: 12px; }

.chapter { padding: var(--section) 0 0; scroll-margin-top: 140px; }
.chapter.last { padding-bottom: var(--section); }
.chapter-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }

.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 1fr 1.25fr; }
.feature.flip .media { order: 2; }
.feature .copy { display: grid; gap: 16px; }
.feature .copy p { margin: 0; color: var(--ink-2); }
.feature .eyebrow { color: var(--cyan); }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.ticks svg { color: var(--green); margin-top: 3px; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .media { order: 0; }
}

.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -60px rgba(66, 135, 240, 0.6); }
.media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* stepper: a sequence of frames with pills underneath */
.stepper .frames { position: relative; aspect-ratio: 16 / 9; }
.stepper .frames img { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 600ms var(--ease); }
.stepper .frames img.on { opacity: 1; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { padding: 8px 12px; border: 0; border-radius: 8px; cursor: pointer; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); transition: all var(--fast); }
.pill:hover { color: var(--ink); }
.pill[aria-pressed="true"] { color: var(--bg); background: var(--ink); box-shadow: none; }

/* scene gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 900ms var(--ease), filter var(--mid); }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 7px; background: rgba(5, 7, 13, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; padding: 26px 24px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.card .glyph { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--cyan); margin-bottom: 8px; }
.card h3 { font-size: 18px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .tier { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* lightbox */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); width: 100%; color: var(--ink); }
dialog.lightbox::backdrop { background: rgba(3, 4, 8, 0.86); backdrop-filter: blur(6px); }
dialog.lightbox[open] { animation: pop var(--mid) var(--ease); }
dialog.lightbox img { width: 100%; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2); }
dialog.lightbox p { text-align: center; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 16px 0 0; }
dialog.lightbox { position: fixed; }
dialog.lightbox .close { position: absolute; right: 12px; top: 12px; z-index: 1; background: rgba(5, 7, 13, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

/* ------------------------------------------------------------ reveal */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stage { opacity: 0; transform: translateY(60px) scale(0.97); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.js .reveal-stage.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stage { opacity: 1; transform: none; }
  .stage { transform: none; }
}

/* ------------------------------------------------ next release (Q4) */

.q4 {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 3px 7px; border-radius: 6px; vertical-align: 1px;
  font: 600 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  color: var(--violet); background: rgba(169, 162, 245, 0.1); box-shadow: inset 0 0 0 1px rgba(169, 162, 245, 0.35);
}
.q4.corner { position: absolute; right: 20px; top: 26px; margin: 0; }
.q4.corner::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.plan li.soon svg, .card.soon .glyph { color: var(--violet); }
.card.soon { background: linear-gradient(180deg, rgba(169, 162, 245, 0.06), var(--surface) 60%); }

/* ------------------------------------------------- make it yours (bento) */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile-b {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 26px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--mid) var(--ease), box-shadow var(--mid);
}
.tile-b:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -40px rgba(63, 204, 250, 0.5); }
.tile-b h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; }
.tile-b p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tile-b .eyebrow { color: var(--cyan); }
.tile-b .tier { margin-top: auto; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tile-b.wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; padding: 20px; }
.tile-b.wide .b-copy { align-self: center; }
.tile-b.wide .b-media { height: 100%; min-height: 220px; }
.tile-b.wide .b-media img { height: 100%; aspect-ratio: auto; }
.tile-b.wide .b-copy { display: grid; gap: 12px; padding-right: 8px; }
.b-media { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.b-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile-b:hover .b-media img { transform: scale(1.04); }
.tile-b.full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; }
.tile-b.full .b-copy { display: grid; gap: 12px; }

.profiles { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.profiles li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px transparent; transition: background var(--mid) var(--ease), color var(--mid), box-shadow var(--mid);
}
.profiles li i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }
.profiles li.on { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.profiles li.on::after { content: "Active"; margin-left: auto; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }

.swatch-demo { display: grid; gap: 14px; margin: 4px 0; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-grid i {
  aspect-ratio: 16 / 10; border-radius: 8px; background: linear-gradient(160deg, #1c2440, #10162a);
  box-shadow: inset 0 0 0 2px var(--c, var(--line-2)); transition: box-shadow 500ms var(--ease);
}
.mini-grid i:nth-child(1) { --auto: #f2a65a; } .mini-grid i:nth-child(2) { --auto: #72e582; } .mini-grid i:nth-child(3) { --auto: #c38cf2; }
.mini-grid i:nth-child(4) { --auto: #3fccfa; } .mini-grid i:nth-child(5) { --auto: #eff47d; } .mini-grid i:nth-child(6) { --auto: #ec9fc7; }
.swatch-demo[data-mode="auto"] .mini-grid i { --c: var(--auto); }
.swatches { display: flex; gap: 8px; }
.swatches button {
  width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; background: var(--c);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent; transition: transform var(--fast) var(--ease), box-shadow var(--fast);
}
.swatches button:hover { transform: scale(1.12); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }

.player { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); margin: 4px 0; }
.player b { display: block; font-size: 14.5px; font-weight: 550; }
.player small { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.eq { display: flex; align-items: end; gap: 3px; height: 26px; width: 30px; }
.eq i { flex: 1; border-radius: 2px; background: var(--green); animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; } .eq i:nth-child(4) { animation-delay: -0.15s; } .eq i:nth-child(5) { animation-delay: -0.45s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

.crisp { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); margin: 4px 0; }
.crisp span { padding: 18px 12px; text-align: center; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; }
.crisp .soft { filter: blur(1.4px); color: var(--ink-2); background: #0b0f1c; }
.crisp .sharp { background: var(--surface-2); }
.crisp::before, .crisp::after { position: absolute; z-index: 1; top: 6px; font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.crisp::before { content: "Camera"; left: 8px; }
.crisp::after { content: "Screen share"; right: 8px; color: var(--cyan); }

.keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0; }
.keys div { display: grid; gap: 10px; justify-items: center; padding: 16px 8px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: box-shadow var(--mid); }
.keys dt { display: flex; gap: 5px; }
.keys dd { margin: 0; font-size: 13px; color: var(--ink-2); }
kbd {
  min-width: 32px; height: 32px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px;
  font: 600 14px/1 var(--mono); color: var(--ink);
  background: linear-gradient(180deg, #232b45, #171d33); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 0 #080b15;
  transition: transform 120ms var(--ease), box-shadow 120ms;
}
.keys div.hit { box-shadow: inset 0 0 0 1px rgba(63, 204, 250, 0.5); }
.keys div.hit kbd { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 #080b15; }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-b.wide, .tile-b.full { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .keys { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .keys { grid-template-columns: repeat(2, 1fr); }
}
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .cards.two { grid-template-columns: 1fr; } }
.card kbd { min-width: 24px; height: 24px; padding: 0 6px; font-size: 12px; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 0 #080b15; }
