/* ==========================================================================
   AwakenLabs — styles.css
   1. Tokens          6. Lighting demo      11. Reviews
   2. Base / utils    7. Showcase           12. FAQ
   3. Nav             8. Founder            13. Waitlist / footer
   4. Hero            9. Specs              14. Cart drawer / modal
   5. Front vs back  10. Compare / buy      15. Responsive
   ========================================================================== */

/* 1. TOKENS ============================================================== */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #0d0d11;
  --bg-3:      #111117;
  --panel:     rgba(255, 255, 255, 0.034);
  --panel-2:   rgba(255, 255, 255, 0.055);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.16);

  --ink:       #f3f3f6;
  --ink-2:     #a5a5b2;
  --ink-3:     #70707e;

  --holo: conic-gradient(from 200deg at 50% 50%,
      #ff2d95, #ff6a18, #ffd93d, #4dff8f,
      #22d3ff, #6b5cff, #ff2d95);
  /* indigo accent, taken from the logo lockup's LABS rule */
  --accent:     #6473E2;
  --accent-ink: #3B2BB8;

  --holo-line: linear-gradient(90deg,
      #ff2d95, #ff8a18, #ffd93d, #4dff8f, #22d3ff, #6b5cff, #ff2d95);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 66px;
}

/* 2. BASE / UTILITIES ==================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

/* Fine grain over the whole page — echoes the noise in the product photos */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; height: auto; display: block; }
/* our display:flex rules would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0;
  font-stretch: 112%;
}
p { margin: 0; }

::selection { background: #6b5cff; color: #fff; }

:focus-visible {
  outline: 2px solid #7fd4ff;
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(52px, 8vw, 96px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: #000; border-radius: 8px;
  transform: translateY(-160%); transition: transform 0.2s;
  font-weight: 600;
}
.skip-link:focus { transform: none; }

/* Eyebrow / kicker */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.kicker::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--holo-line);
  background-size: 300% 100%;
  animation: holo-slide 6s linear infinite;
}
@keyframes holo-slide { to { background-position: 300% 0; } }

.h-xl { font-size: clamp(2.6rem, 7.4vw, 5.4rem); }
.h-lg { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.lede { color: var(--ink-2); font-size: clamp(1rem, 1.35vw, 1.18rem); max-width: 58ch; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }

/* Holographic text */
.holo-text {
  background: var(--holo-line);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: holo-slide 9s linear infinite;
}

/* Placeholder flags the owner must replace before launch */
.ph {
  font-family: var(--font-mono);
  font-size: 0.68em;
  letter-spacing: 0.06em;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.09);
  border: 1px dashed rgba(255, 209, 102, 0.36);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
  vertical-align: middle;
}

/* Glass panel */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Faceted divider — echoes the crystalline base */
.facets {
  height: 26px;
  width: 100%;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.075) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.045) 25%, transparent 25%),
    linear-gradient(45deg,  rgba(255,255,255,0.055) 25%, transparent 25%);
  background-size: 26px 26px;
  opacity: 0.85;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  white-space: nowrap;
  --btn-fg: #08080a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background 0.22s var(--ease), opacity 0.2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,0.55); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.42; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--panel-2); }

.btn--holo {
  --btn-fg: #08080a;
  position: relative;
  background: var(--ink);
  isolation: isolate;
}
.btn--holo::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--holo);
  filter: blur(9px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}
.btn--holo:hover::before { opacity: 0.85; }

.btn--wide { width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* 3. NAV ================================================================= */
.announce {
  position: relative;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 9px 16px;
  overflow: hidden;
}
.announce b { color: var(--ink); font-weight: 500; }
.announce::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--holo-line);
  background-size: 250% 100%;
  animation: holo-slide 8s linear infinite;
  opacity: 0.55;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(10,10,12,0.9); }
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--pad);
  display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px);
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 28px; height: auto; flex: none; filter: brightness(2.1) saturate(1.15); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 118%;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand__name span { color: var(--ink-3); }

.nav__links { display: flex; gap: clamp(18px, 2.2vw, 30px); align-items: center; }
.nav__links a {
  font-size: 14px;
  white-space: nowrap;
  color: var(--ink-2);
  position: relative;
  padding-block: 4px;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--holo-line); background-size: 200% 100%;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13.5px;
  transition: background 0.2s, border-color 0.2s;
}
.cart-btn:hover { background: var(--panel-2); border-color: var(--line-2); }
.cart-btn__count {
  min-width: 20px; height: 20px; padding-inline: 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--ink); color: #08080a;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  transition: transform 0.3s var(--ease-out);
}
.cart-btn.is-bump .cart-btn__count { transform: scale(1.42); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; cursor: pointer;
  padding: 0; place-items: center;
}
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3px auto; transition: 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(8,8,10,0.97);
  backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 40px) var(--pad) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%);
  transition: transform 0.42s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%;
  font-size: 2rem; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* 4. HERO ================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 86px) clamp(56px, 8vw, 96px);
}
.hero__bg {
  position: absolute; inset: -20% -10% auto;
  height: 120%;
  background:
    radial-gradient(52% 42% at 62% 34%, rgba(107,92,255,0.20), transparent 68%),
    radial-gradient(40% 34% at 30% 60%, rgba(255,45,149,0.13), transparent 70%),
    radial-gradient(46% 40% at 78% 72%, rgba(34,211,255,0.13), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(3%, -3%, 0) scale(1.08); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  position: relative;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; display: block; }
.hero__lede { margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.hero__stats div { background: var(--bg); padding: 14px 15px; }
.hero__stats dt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px;
}
.hero__stats dd { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }

/* Hero product image */
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--r-xl);
  filter: drop-shadow(0 40px 70px rgba(0,0,0,0.7));
}
.hero__media::before {
  content: '';
  position: absolute; inset: 12% 8% 2%;
  background: var(--holo);
  filter: blur(70px);
  opacity: 0.3;
  border-radius: 50%;
  animation: spin 26s linear infinite;
  z-index: -1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__tag {
  position: absolute;
  left: 6%; bottom: 7%;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(8,8,10,0.78);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4dff8f; box-shadow: 0 0 10px #4dff8f;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

/* 5. THE STAND MOCK + FRONT vs BACK ====================================== */
/* A pure CSS/DOM mock of a slab in the stand. Reused by the front-lit
   comparison and the interactive lighting demo. */
.stand {
  --glow-a: #ff2d95;
  --glow-b: #22d3ff;
  --glow-strength: 1;
  --spin: 14s;
  /* What the card's foil actually reflects. Full spectrum by default; swapped
     for the chosen hue when the color picker is on a single color. */
  --foil-tint: conic-gradient(from 0deg at 50% 45%,
      #ff2d95, #ff8a18, #ffd93d, #4dff8f, #22d3ff, #6b5cff, #ff2d95);
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  user-select: none;
}
.stand__body {
  position: relative;
  aspect-ratio: 300 / 420;
  border-radius: 16px 16px 4px 4px;
  background:
    linear-gradient(180deg, #141419, #0b0b0e 60%, #08080a);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 19px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.66), inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
}
/* The illuminated field behind the slab. The slab sits on top of it, so what
   you see is a thick glowing band all the way around the card — which is what a
   backlit display actually looks like, and what ours does too. */
.stand__light {
  position: absolute;
  inset: 5px;
  border-radius: 13px;
  background: conic-gradient(from 0deg, var(--glow-a), var(--glow-b), var(--glow-a));
  filter: blur(3px) saturate(1.25);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.stand__slab {
  position: relative;
  height: 100%;
  border-radius: 9px;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    #0b0b10;
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
  isolation: isolate;
}
/* PSA-style label bar */
.stand__label {
  flex: none;
  height: 15.5%;
  border-radius: 3px;
  background: linear-gradient(180deg, #f4f4f2, #d9d9d6);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 6px 8px;
}
.stand__label i {
  display: block; height: 3px; border-radius: 2px;
  background: #2b2b2e; opacity: 0.75;
}
.stand__label i:nth-child(1) { width: 74%; }
.stand__label i:nth-child(2) { width: 46%; }
.stand__label i:nth-child(3) { width: 60%; opacity: 0.45; }
.stand__label::after {
  content: ''; position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #c33, #7a1420);
  opacity: 0.85;
}

/* the card artwork — abstract foil, not a real licensed card */
.stand__card {
  position: relative;
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  background:
    repeating-conic-gradient(from 0deg at 50% 44%,
      #191a2e 0deg 7deg, #101124 7deg 14deg),
    #0d0e1c;
}
.stand__card::before {
  /* burst rays radiating from behind the center motif */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(34% 24% at 50% 46%, rgba(255,255,255,0.16), transparent 72%),
    conic-gradient(from 90deg at 50% 46%,
      rgba(255,255,255,0.09) 0deg 3.4deg, transparent 3.4deg 15deg);
}
/* a faceted crystal motif — abstract on purpose, no licensed artwork */
.stand__card::after {
  content: '';
  position: absolute;
  left: 50%; top: 46%;
  width: 44%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 9%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.30), rgba(255,255,255,0.04) 62%),
    linear-gradient(45deg, rgba(120,130,190,0.35), rgba(30,32,58,0.5));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.24),
    inset 0 0 18px rgba(255,255,255,0.10);
}

/* THE FOIL LAYER — this is what front lighting activates */
.stand__foil {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: color-dodge;
  background:
    repeating-linear-gradient(102deg,
      rgba(255,255,255,0.14) 0 2px, transparent 2px 6px),
    var(--foil-tint);
  background-size: 100% 100%, 210% 210%;
  background-position: 0 0, 50% 50%;
  transition: opacity 0.55s var(--ease);
}
/* light spilling onto the slab surface from the front array */
.stand__wash {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), transparent 30%),
    radial-gradient(120% 60% at 50% 0%, var(--glow-a), transparent 62%),
    radial-gradient(120% 60% at 50% 100%, var(--glow-b), transparent 62%);
  mix-blend-mode: screen;
  transition: opacity 0.55s var(--ease);
}
/* the visible halo ring around the slab */
.stand__halo {
  position: absolute; inset: 4px; z-index: 5; pointer-events: none;
  border-radius: 12px;
  border: 3px solid transparent;
  background: conic-gradient(from 0deg, var(--glow-a), var(--glow-b), var(--glow-a)) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.stand__bloom {
  position: absolute; inset: -14%; z-index: -1; pointer-events: none;
  background: conic-gradient(from 0deg, var(--glow-a), var(--glow-b), var(--glow-a));
  filter: blur(46px);
  opacity: 0;
  border-radius: 40px;
  transition: opacity 0.5s var(--ease);
}

/* faceted base */
.stand__base {
  position: relative;
  height: 52px;
  margin-top: -2px;
  border-radius: 6px 6px 12px 12px;
  background: linear-gradient(180deg, #17171d, #0a0a0d);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 22px 40px rgba(0,0,0,0.7);
  overflow: hidden;
}
.stand__base::before {
  /* the crystalline facet band at the top of the base */
  content: '';
  position: absolute; inset: 0 0 auto; height: 15px;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.34) 26%, transparent 26%),
    linear-gradient(225deg, rgba(255,255,255,0.18) 26%, transparent 26%),
    linear-gradient(45deg,  rgba(255,255,255,0.26) 26%, transparent 26%);
  background-size: 11px 11px;
  opacity: 0.5;
  transition: opacity 0.5s;
}
.stand__base::after {
  content: 'A';
  position: absolute; right: 12px; bottom: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: rgba(255,255,255,0.16);
  letter-spacing: 0.1em;
}
.stand__spill {
  height: 46px;
  margin-top: 4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--glow-a), var(--glow-b), var(--glow-a));
  filter: blur(20px);
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 0.5s;
}

/* --- LIT STATES ------------------------------------------------------- */
/* Backlit: a big, genuinely bright band of light all around the slab. It looks
   good — that's the point. But it lands on the frame, and the card stays flat. */
.stand[data-lit="back"] .stand__light { opacity: 1; }
.stand[data-lit="back"] .stand__halo { opacity: 1; }
.stand[data-lit="back"] .stand__bloom { opacity: 0.62; }
.stand[data-lit="back"] .stand__foil { opacity: 0.04; }
.stand[data-lit="back"] .stand__wash { opacity: 0.06; }
.stand[data-lit="back"] .stand__spill { opacity: 0.5; }
.stand[data-lit="back"] .stand__base::before { opacity: 0.9; }
.stand[data-lit="back"] .stand__card { filter: brightness(0.6) saturate(0.55); }

/* Front-lit: everything the backlit state does — the frame is just as bright —
   plus an array aimed at the card face, so the foil actually fires. */
.stand[data-lit="front"] .stand__light { opacity: calc(0.95 * var(--glow-strength)); }
.stand[data-lit="front"] .stand__halo { opacity: calc(0.95 * var(--glow-strength)); }
.stand[data-lit="front"] .stand__bloom { opacity: calc(0.66 * var(--glow-strength)); }
.stand[data-lit="front"] .stand__foil { opacity: calc(0.66 * var(--glow-strength)); }
.stand[data-lit="front"] .stand__wash { opacity: calc(0.5 * var(--glow-strength)); }
.stand[data-lit="front"] .stand__spill { opacity: calc(0.58 * var(--glow-strength)); }
.stand[data-lit="front"] .stand__card { filter: brightness(1.18) saturate(1.32); }
.stand[data-lit="front"] .stand__base::before { opacity: 0.95; }

.stand[data-lit="off"] .stand__card { filter: brightness(0.35) saturate(0.3); }

/* Single chosen color: the foil reflects that hue instead of the full spectrum. */
.stand[data-tint="single"] {
  --foil-tint: conic-gradient(from 0deg at 50% 45%,
      var(--glow-a), var(--glow-b), var(--glow-a));
}
/* ...and nothing may hue-rotate it away from the color the user picked. */
.stand[data-tint="single"][data-mode="rainbow"] .stand__foil { animation-name: foil-shift; }
.stand[data-tint="single"][data-mode="rainbow"] .stand__light,
.stand[data-tint="single"][data-mode="rainbow"] .stand__halo,
.stand[data-tint="single"][data-mode="rainbow"] .stand__bloom,
.stand[data-tint="single"][data-mode="rainbow"] .stand__wash,
.stand[data-tint="single"][data-mode="rainbow"] .stand__spill { animation-name: none; }
@keyframes foil-shift { to { background-position: 220% 0, 50% 50%; } }

/* --- LIGHTING MODES --------------------------------------------------- */
.stand[data-mode="rainbow"] .stand__foil { animation: foil-spin var(--spin) linear infinite; }
.stand[data-mode="rainbow"] .stand__light,
.stand[data-mode="rainbow"] .stand__halo,
.stand[data-mode="rainbow"] .stand__bloom,
.stand[data-mode="rainbow"] .stand__wash,
.stand[data-mode="rainbow"] .stand__spill { animation: hue 8s linear infinite; }

@keyframes foil-spin {
  to { background-position: 220% 0, 50% 50%; filter: hue-rotate(360deg); }
}
@keyframes hue { to { filter: hue-rotate(360deg); } }

.stand[data-mode="aurora"] .stand__foil { animation: aurora 7s ease-in-out infinite; }
.stand[data-mode="aurora"] .stand__wash { animation: aurora-wash 7s ease-in-out infinite; }
@keyframes aurora {
  0%, 100% { background-position: 0 0, 50% 12%; opacity: calc(0.5 * var(--glow-strength)); }
  50%      { background-position: 60% 0, 50% 88%; opacity: calc(0.82 * var(--glow-strength)); }
}
@keyframes aurora-wash {
  0%, 100% { transform: translateY(-6%); }
  50%      { transform: translateY(6%); }
}

.stand[data-mode="dual"] .stand__foil {
  background:
    repeating-linear-gradient(102deg, rgba(255,255,255,0.13) 0 2px, transparent 2px 6px),
    linear-gradient(118deg, var(--glow-a) 8%, transparent 46%, transparent 54%, var(--glow-b) 92%);
  background-size: 100% 100%, 200% 100%;
  animation: dual 6s ease-in-out infinite alternate;
}
@keyframes dual {
  from { background-position: 0 0, 0% 50%; }
  to   { background-position: 40% 0, 100% 50%; }
}

.stand[data-mode="solid"] .stand__foil {
  background:
    repeating-linear-gradient(102deg, rgba(255,255,255,0.13) 0 2px, transparent 2px 6px),
    radial-gradient(120% 100% at 50% 0%, var(--glow-a), color-mix(in srgb, var(--glow-a) 55%, #000) 100%);
  animation: none;
}

.stand[data-mode="pulse"] .stand__foil,
.stand[data-mode="pulse"] .stand__wash,
.stand[data-mode="pulse"] .stand__light,
.stand[data-mode="pulse"] .stand__halo,
.stand[data-mode="pulse"] .stand__bloom,
.stand[data-mode="pulse"] .stand__spill { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: calc(0.14 * var(--glow-strength)); }
  50%      { opacity: calc(0.9 * var(--glow-strength)); }
}

/* --- Front vs Backlit comparison section ------------------------------ */
.versus__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.versus__stage {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(255,255,255,0.045), transparent 72%),
    var(--bg-2);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px) 28px;
  overflow: hidden;
}
.versus__stage::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 78%);
  pointer-events: none;
}
.switch {
  position: relative;
  display: flex;
  margin: 0 auto 30px;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  z-index: 2;
}
.switch button {
  position: relative;
  z-index: 1;
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  transition: color 0.25s;
  white-space: nowrap;
}
.switch button[aria-pressed="true"] { color: #08080a; }
.switch__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.42s var(--ease-out), width 0.42s var(--ease-out);
  z-index: 0;
}
.versus3d {
  position: relative; z-index: 2;
  height: clamp(420px, 66vh, 620px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.versus3d .stand3d-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.versus3d .stand3d-canvas:active { cursor: grabbing; }
.versus__hint {
  position: relative; z-index: 2;
  margin: 10px 0 0; text-align: center;
  font-size: 12.5px; color: var(--ink-3);
}
.versus__caption {
  position: relative; z-index: 2;
  margin-top: 26px; text-align: center;
  min-height: 3.4em;
  font-size: 14.5px; color: var(--ink-2);
  max-width: 40ch; margin-inline: auto;
}
.versus__caption b { color: var(--ink); font-weight: 600; }

.claims { display: grid; gap: 2px; margin-top: 34px; }
.claim {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  padding: 20px 4px;
  border-top: 1px solid var(--line);
}
.claim:last-child { border-bottom: 1px solid var(--line); }
.claim__n {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  padding-top: 4px;
}
.claim h3 { font-size: 1.06rem; margin-bottom: 6px; letter-spacing: -0.015em; }
.claim p { font-size: 14.6px; color: var(--ink-2); }

/* 6. LIGHTING DEMO ======================================================= */
.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
.demo__stage {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: radial-gradient(80% 60% at 50% 100%, rgba(107,92,255,0.10), transparent 70%), #060608;
  padding: clamp(34px, 5vw, 60px) 24px 34px;
  overflow: hidden;
}
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 26px; }
.mode {
  position: relative;
  text-align: left;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
  overflow: hidden;
}
.mode:hover { background: var(--panel-2); transform: translateY(-2px); }
.mode[aria-pressed="true"] { border-color: var(--line-2); background: rgba(255,255,255,0.075); }
.mode[aria-pressed="true"]::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--holo-line); background-size: 100% 400%;
  animation: holo-v 5s linear infinite;
}
@keyframes holo-v { to { background-position: 0 400%; } }
.mode__name { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 3px; }
.mode__desc { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

.control { margin-bottom: 20px; }
.control__row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px;
}
.control__row output { color: var(--ink); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--ink) var(--fill, 70%), rgba(255,255,255,0.14) var(--fill, 70%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line-2), 0 3px 10px rgba(0,0,0,0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--bg);
  background: var(--ink); box-shadow: 0 0 0 1px var(--line-2);
}

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; padding: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.swatch-btn:hover { transform: scale(1.13); }
.swatch-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }

.demo__note {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* 7. SHOWCASE ============================================================ */
.shot {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #060608;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 26px 22px;
  background: linear-gradient(transparent, rgba(6,6,8,0.92));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.shot__cap strong { font-family: var(--font-display); font-stretch: 112%; font-size: 1.15rem; }
.shot__cap span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

.showcase__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.showcase__grid .shot:first-child { grid-row: span 1; }

/* 8. FOUNDER ============================================================= */
.founder {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 100% at 8% 50%, rgba(107,92,255,0.13), transparent 60%),
    var(--bg-2);
  padding: clamp(32px, 5vw, 68px);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
  overflow: hidden;
}
.founder__media { width: 100%; }
.founder__media.media-slot { border-radius: var(--r-lg); }
.founder blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 600; font-stretch: 106%;
  font-size: clamp(1.24rem, 2.1vw, 1.72rem);
  line-height: 1.28; letter-spacing: -0.022em;
}
.founder__sig { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* 9. SPECS ============================================================== */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 1px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* box-shadow rather than a background-bleed grid, so a partly filled last row
   doesn't leave lit empty cells behind */
.spec {
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  padding: 24px 24px 26px;
  transition: background 0.3s;
}
.spec:hover { background: var(--bg-3); }
.spec dt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px;
}
.spec dd { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; }
.spec dd small { display: block; font-weight: 400; font-size: 12.6px; color: var(--ink-3); margin-top: 6px; }

/* 10. COMPARE + BUY ===================================================== */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--line); }
table.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14.6px;
}
table.compare th, table.compare td { padding: 16px 20px; text-align: left; vertical-align: top; }
table.compare thead th {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: sticky; top: 0;
}
table.compare thead th.is-us { color: var(--ink); }
table.compare tbody tr + tr td { border-top: 1px solid var(--line); }
table.compare tbody th {
  font-weight: 600; font-size: 14px; color: var(--ink);
  border-top: 1px solid var(--line);
  width: 22%;
}
table.compare tbody tr:first-child th { border-top: 0; }
table.compare td.is-us {
  background: rgba(255,255,255,0.035);
  color: var(--ink);
  font-weight: 500;
  position: relative;
}
table.compare td.is-us::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--holo-line); background-size: 100% 400%;
  animation: holo-v 6s linear infinite;
}
table.compare td { color: var(--ink-2); }

/* Buy block */
.buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.buy__media {
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 30%, rgba(255,255,255,0.05), transparent 70%), #060608;
  overflow: hidden;
  position: relative;
}
/* No fixed aspect on the panel: the inner .media-slot already carries the
   exact aspect of whichever variant is showing, so the panel hugs it. Forcing
   4/5 here left ~277px of dead panel under the wide Double shots and cropped
   ~43px off the bottom of the taller Single shots. */
.buy__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.buy__media .media-slot { width: 100%; }

.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 8px; }
.price {
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.03em;
}
.price-compare { color: var(--ink-3); text-decoration: line-through; font-size: 1.1rem; }

.opt-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; justify-content: space-between; align-items: center;
  margin: 26px 0 12px;
}
.opt-label b { color: var(--ink); font-weight: 500; letter-spacing: 0.06em; }

.variants { display: flex; flex-wrap: wrap; gap: 10px; }
.variant {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); cursor: pointer;
  font-size: 13.5px;
  transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}
.variant:hover { transform: translateY(-2px); background: var(--panel-2); }
.variant[aria-pressed="true"] { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }
.variant[data-soldout="true"] { opacity: 0.45; }
.variant[data-soldout="true"] .variant__name { text-decoration: line-through; }
.variant__chip {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.24);
  flex: none;
}

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty button {
  width: 38px; height: 40px; border: 0; background: transparent; cursor: pointer;
  font-size: 17px; line-height: 1; color: var(--ink-2); transition: background 0.2s, color 0.2s;
}
.qty button:hover { background: var(--panel-2); color: var(--ink); }
.qty output { width: 40px; text-align: center; font-family: var(--font-mono); font-size: 14px; }

.buy__actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.buy__actions .btn { flex: 1 1 200px; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; }
.trust li {
  list-style: none;
  font-size: 12.8px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.trust svg { width: 14px; height: 14px; flex: none; color: var(--ink-2); }
.buy ul.trust { padding: 0; margin-block: 24px 0; }

/* 11. REVIEWS =========================================================== */
.reviews {
  columns: 3;
  column-gap: 18px;
}
.review {
  break-inside: avoid;
  margin-bottom: 18px;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  transition: border-color 0.3s, transform 0.35s var(--ease), background 0.3s;
}
.review:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); }
.review__stars { display: flex; gap: 3px; margin-bottom: 14px; color: #ffd93d; }
.review__stars svg { width: 13px; height: 13px; }
.review p { font-size: 14.8px; line-height: 1.6; margin-bottom: 16px; }
.review footer { display: flex; align-items: center; gap: 11px; }
.review__av {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: conic-gradient(from 120deg, #6b5cff, #22d3ff, #ff2d95, #6b5cff);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #08080a;
}
.review__who { font-size: 13px; font-weight: 600; }
.review__meta { font-size: 11.5px; color: var(--ink-3); }

/* 12. FAQ =============================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600; font-stretch: 106%;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::after {
  content: '';
  position: absolute; right: 8px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--ink-2) 0 0) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink-2) 0 0) center / 1.5px 12px no-repeat;
  transition: transform 0.32s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__a { padding: 0 12% 26px 0; color: var(--ink-2); font-size: 15px; }
.faq__a p + p { margin-top: 12px; }

/* 13. WAITLIST + FOOTER ================================================= */
.waitlist {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 72px);
  text-align: center;
  background: var(--bg-2);
}
.waitlist::before {
  content: '';
  position: absolute; inset: -60% -10% auto; height: 200%;
  background: var(--holo);
  filter: blur(90px);
  opacity: 0.16;
  animation: spin 34s linear infinite;
}
.waitlist > * { position: relative; }
.form-row {
  display: flex; gap: 10px; max-width: 470px; margin: 30px auto 0; flex-wrap: wrap;
}
.form-row input[type="email"] {
  flex: 1 1 220px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.42);
  color: var(--ink);
  font: inherit; font-size: 15px;
}
.form-row input::placeholder { color: var(--ink-3); }
.form-row input:focus { outline: none; border-color: rgba(255,255,255,0.42); }
.form-msg { margin-top: 14px; font-size: 13.5px; min-height: 1.4em; }
.form-msg.is-ok { color: #4dff8f; }
.form-msg.is-err { color: #ff7a7a; }

.footer { border-top: 1px solid var(--line); padding-block: 60px 34px; background: var(--bg-2); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px 30px;
}
.footer__lockup { width: 180px; height: auto; margin-bottom: 18px; filter: brightness(2.1) saturate(1.15); }
.footer h3 {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 14px; color: var(--ink-2); transition: color 0.2s; }
.footer ul 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);
  font-size: 12.5px; color: var(--ink-3);
}

/* 14. CART DRAWER / MODAL / TOAST ======================================= */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4,4,6,0.66);
  backdrop-filter: blur(5px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(420px, 100vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(101%);
  transition: transform 0.45s var(--ease-out);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer__head h2 { font-size: 1.1rem; font-stretch: 108%; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: transparent;
  cursor: pointer; color: var(--ink-2); transition: 0.2s;
}
.icon-btn:hover { color: var(--ink); background: var(--panel-2); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer__foot { flex: none; padding: 20px 24px 24px; border-top: 1px solid var(--line); }

.line-item {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.line-item__img {
  width: 62px; height: 78px; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); background: #060608;
}
.line-item__img img { width: 100%; height: 100%; object-fit: cover; }
.line-item__name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.line-item__var { font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }
.line-item__price { font-family: var(--font-mono); font-size: 13.5px; }
.line-item .qty { transform: scale(0.86); transform-origin: left; }
.line-item__remove {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 11.5px; color: var(--ink-3); text-decoration: underline;
  text-underline-offset: 3px; margin-top: 8px;
}
.line-item__remove:hover { color: #ff7a7a; }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.cart-empty svg { width: 40px; height: 40px; margin: 0 auto 18px; opacity: 0.4; }

.totals { display: grid; gap: 9px; margin-bottom: 18px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .is-total { font-size: 17px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line); }
.ship-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,0.1); overflow: hidden; margin-bottom: 8px; }
.ship-bar i { display: block; height: 100%; background: var(--holo-line); background-size: 200% 100%; animation: holo-slide 5s linear infinite; transition: width 0.5s var(--ease); }
.ship-note { font-size: 12.3px; color: var(--ink-3); margin-bottom: 16px; }

.mode-flag {
  display: block; margin-top: 12px; text-align: center;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--ink-3);
}

.modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__card {
  position: relative;
  width: min(470px, 100%);
  padding: 40px 34px 34px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
  max-height: 88vh; overflow-y: auto;
}
.modal.is-open .modal__card { transform: none; }
.modal__card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.modal__card p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 8px; }
.modal__receipt {
  text-align: left; margin: 22px 0;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; font-family: var(--font-mono); font-size: 12.5px;
}
.modal__receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.check-ring {
  width: 54px; height: 54px; margin: 0 auto 20px;
  border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 0deg, #ff2d95, #ffd93d, #4dff8f, #22d3ff, #6b5cff, #ff2d95);
  color: #08080a;
}
.check-ring svg { width: 26px; height: 26px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 130;
  transform: translate(-50%, 130%);
  display: flex; align-items: center; gap: 11px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(16,16,20,0.95);
  backdrop-filter: blur(14px);
  font-size: 13.5px;
  transition: transform 0.5s var(--ease-out);
  max-width: calc(100vw - 32px);
}
.toast.is-up { transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; color: #4dff8f; flex: none; }

/* 15. RESPONSIVE ======================================================== */
@media (max-width: 1040px) {
  .reviews { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1060px) {
  .nav__links { display: none; }
  [data-desktop-only] { display: none; }
  .burger { display: grid; }
}

@media (max-width: 900px) {
  .hero__grid,
  .versus__grid,
  .demo__grid,
  .buy { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: 0; max-width: 400px; margin-inline: auto; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .showcase__grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; text-align: left; }
  .founder__media { max-width: 160px; }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  :root { --nav-h: 60px; }
  .announce { font-size: 10px; letter-spacing: 0.09em; padding: 8px 12px; }
  .announce b { display: block; }
  .reviews { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .buy__actions .btn { flex: 1 1 100%; }
  .switch button { padding: 9px 13px; font-size: 12px; }
  .faq__a { padding-right: 0; }
  .drawer { width: 100vw; }
}

/* 16. INSERTS + ADD-ON + ZONE SWITCH ===================================== */
.variant--insert { padding: 9px 16px; }
.variant--insert:disabled { cursor: not-allowed; }
.variant--insert:disabled:hover { transform: none; background: var(--panel); }
.variant__soon {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.variant[data-soldout="true"].variant--insert .variant__name { text-decoration: none; }

.addon {
  margin-top: 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
}
.addon__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.addon__head strong { font-size: 14.5px; font-weight: 600; display: block; }
.addon__price {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3);
  letter-spacing: 0.06em;
}
.addon__note { font-size: 12.8px; color: var(--ink-3); margin-top: 6px; }
.addon .qty { transform: scale(0.9); transform-origin: right; }
.addon .variants { margin-top: 14px; }
.addon .variant { font-size: 12.8px; padding: 7px 13px; }

/* the compact segmented switch reused inside the lighting demo */
.switch--inline { margin: 0; width: 100%; }
.switch--inline button { flex: 1; padding: 8px 12px; font-size: 12.5px; }

/* Independent sides: the two chosen colors have to stay the two chosen colors,
   so the foil renders as a two-zone gradient and hue rotation is dropped. */
.stand[data-zones="split"] .stand__foil {
  background:
    repeating-linear-gradient(102deg, rgba(255,255,255,0.13) 0 2px, transparent 2px 6px),
    linear-gradient(118deg, var(--glow-a) 6%, transparent 46%, transparent 54%, var(--glow-b) 94%);
  background-size: 100% 100%, 200% 100%;
}
.stand[data-zones="split"][data-mode="rainbow"] .stand__foil { animation-name: dual; }
.stand[data-zones="split"][data-mode="rainbow"] .stand__light,
.stand[data-zones="split"][data-mode="rainbow"] .stand__halo,
.stand[data-zones="split"][data-mode="rainbow"] .stand__bloom,
.stand[data-zones="split"][data-mode="rainbow"] .stand__wash,
.stand[data-zones="split"][data-mode="rainbow"] .stand__spill { animation-name: none; }

/* ==========================================================================
   MEDIA SLOTS
   Every slot reserves its aspect ratio whether or not the file exists yet, so
   filling one in never reflows the page. Driven by js/media.js.
   ========================================================================== */
.media-slot {
  position: relative;
  aspect-ratio: var(--slot-aspect, 16 / 9);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
}

.media-slot.is-filled picture,
.media-slot.is-filled img,
.media-slot.is-filled video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- the deliberate placeholder --------------------------------------- */
.media-slot.is-empty {
  border-style: dashed;
  border-color: var(--line-2);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(100, 115, 226, .10), transparent 62%),
    var(--bg-3);
}

/* one hairline of spectrum, the same signature the printed cards use */
.media-slot.is-empty::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.4px;
  background: var(--holo-line);
  opacity: .55;
}

.media-slot__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: clamp(16px, 3.5vw, 30px);
  text-align: left;
}

.media-slot__id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: none;
}

.media-slot__shot {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
  max-width: 42ch;
}

.media-slot__note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
  max-width: 46ch;
}

.media-slot__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: auto;
}

.media-slot.is-missing {
  border-color: #7a3b3b;
  background: rgba(122, 59, 59, .12);
}
.media-slot.is-missing .media-slot__id { color: #ff9a9a; }

/* Tight slots (square thumbnails) drop the prose so the label still reads. */
@container (max-width: 260px) {
  .media-slot__shot,
  .media-slot__note { display: none; }
}

/* --- captions --------------------------------------------------------- */
.media-fig { margin: 0; }
.media-fig figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.media-fig figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   MODEL PICKER — Single vs Double
   ========================================================================== */
.models {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.model-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 15px;
  text-align: left;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.model-card:hover { background: var(--panel-2); }

.model-card[aria-pressed="true"] {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    var(--holo-line) border-box;
  border: 1px solid transparent;
}

/* focus ring comes from the global :focus-visible rule — kept consistent site-wide */

.model-card__name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
}

.model-card__tagline {
  font-size: 12.5px;
  color: var(--ink-2);
}

.model-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}

.model-card[data-soldout="true"] {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .models { grid-template-columns: 1fr; }
}

/* Spec rows still waiting on a real measurement. */
.spec dd.is-unmeasured { color: var(--ink-3); }

/* ==========================================================================
   BUILD STORY GRID
   ========================================================================== */
.build__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 26px);
}
@media (max-width: 900px) { .build__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .build__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   THE NUMBERS — the combinatorics, shown as arithmetic
   ========================================================================== */
.maths {
  margin-top: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-3);
  padding: clamp(22px, 3.6vw, 40px);
  position: relative;
  overflow: hidden;
}
.maths::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.4px;
  background: var(--holo-line);
}

.maths__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 18px;
}

.maths__term { display: flex; flex-direction: column; gap: 3px; }
.maths__term b {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1;
  letter-spacing: -0.02em;
}
.maths__term span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.maths__op {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: var(--ink-3);
  padding-bottom: 4px;
}
.maths__total b { background: var(--holo-line); -webkit-background-clip: text; background-clip: text; color: transparent; }

.maths__note {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 68ch;
}
.maths__note code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}

/* ==========================================================================
   SHAPES x LOOKS
   ========================================================================== */
.shapes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
  margin-top: clamp(22px, 3vw, 34px);
}
.shape-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 20px 21px;
}
.shape-card h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 8px;
}
.shape-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.shape-card__n {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Named preset list — real names from the shipped preset pack. */
.presets__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: clamp(18px, 2.6vw, 26px);
}
.preset-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 13px;
  color: var(--ink-2);
}
.preset-chip i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
}
.preset-chip--boot {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
    var(--holo-line) border-box;
  border: 1px solid transparent;
  color: var(--ink);
}

/* ==========================================================================
   PRESET CLIP GRID
   ========================================================================== */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
}
@media (max-width: 900px) { .preset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A caption only appears once a preset has actually been identified. */
.preset-grid .media-slot { border-radius: var(--r-sm); }
.media-slot__label {
  position: absolute;
  left: 8px; bottom: 8px;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 8, 10, .72);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  color: var(--ink);
}
.media-slot__label i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--ink-3);
}

/* Current collection: show complete enclosure at every viewport width. */
.hero__media .media-slot,.buy__media .media-slot{width:100%}
[data-media^="new-"] img,[data-media^="new-"] video,[data-media="hero-loop"] video{object-fit:contain!important}
[data-media="hero-loop"]{max-width:430px;margin-inline:auto}
.new-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:28px}
.new-video-grid figure{margin:0}.new-video-grid figcaption{padding-top:12px}
@media(max-width:600px){.new-video-grid{grid-template-columns:1fr;max-width:360px;margin-inline:auto}}

/* Gallery provenance tag — marks a render apart from a photograph. */
.media-fig__tag {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* 17. COLORWAY PICKER + INSERT LIGHT-UP ================================== */

/* The colour chip shows the actual two-tone split of the enclosure. */
.variants--color .variant__chip {
  width: 24px; height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.variant--color[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.085);
}

/* --- the lit state -----------------------------------------------------
   A selected insert or colourway is "powered on": a holographic ring
   traces the chip and a soft bloom sits behind it. This is the same visual
   language as the product's own front-lit halo, so the control looks like
   the thing it is selecting. */
.variant--insert,
.variant--color { position: relative; isolation: isolate; }

.variant--insert[aria-pressed="true"]::before,
.variant--color[aria-pressed="true"]::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from 0deg,
      #ff2d95, #ff8a18, #ffd93d, #4dff8f, #22d3ff, #6b5cff, #ff2d95);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: chip-ring 4.5s linear infinite;
  pointer-events: none;
}
.variant--insert[aria-pressed="true"]::after,
.variant--color[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
      #ff2d95, #ffd93d, #4dff8f, #22d3ff, #6b5cff, #ff2d95);
  filter: blur(9px);
  opacity: 0.42;
  animation: chip-ring 4.5s linear infinite;
  pointer-events: none;
}
@keyframes chip-ring { to { filter: hue-rotate(360deg); } }
/* the bloom needs blur preserved while its hue rotates */
.variant--insert[aria-pressed="true"]::after,
.variant--color[aria-pressed="true"]::after {
  animation-name: chip-bloom;
}
@keyframes chip-bloom {
  to { filter: blur(9px) hue-rotate(360deg); }
}

/* --- the one-shot power-on flash, added by JS on click ------------------ */
.variant--insert.is-lit,
.variant--color.is-lit { animation: chip-powerup 0.62s var(--ease-out); }
.variant--insert.is-lit::after,
.variant--color.is-lit::after { animation: chip-flash 0.62s var(--ease-out); }

@keyframes chip-powerup {
  0%   { transform: translateY(-2px) scale(1); }
  38%  { transform: translateY(-3px) scale(1.045); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes chip-flash {
  0%   { opacity: 0.15; filter: blur(4px); }
  35%  { opacity: 1;    filter: blur(15px); }
  100% { opacity: 0.42; filter: blur(9px); }
}

/* --- the photo swap on colour change ----------------------------------- */
.buy__media .media-slot.is-swapping picture,
.buy__media .media-slot.is-swapping img { animation: media-swap 0.5s var(--ease-out); }
@keyframes media-swap {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .variant--insert[aria-pressed="true"]::before,
  .variant--color[aria-pressed="true"]::before,
  .variant--insert[aria-pressed="true"]::after,
  .variant--color[aria-pressed="true"]::after { animation: none; }
  .buy__media .media-slot.is-swapping picture,
  .buy__media .media-slot.is-swapping img { animation: none; }
}

/* 18. INSERT BAYS (a Double takes one insert per card) =================== */
.insert-bay + .insert-bay { margin-top: 14px; }
.insert-bay__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* caption under the buy photo, used when the two bays hold different inserts */
.buy__mediaNote {
  margin-top: 12px;
  font-size: 12.8px;
  line-height: 1.5;
  text-align: center;
}

/* 6b. PLAYGROUND EMBED (interactive studio, embedded in #lighting) ======== */
.pg-embed {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% -20%, rgba(100,115,226,0.14), transparent 60%),
    var(--bg-2);
  box-shadow: 0 40px 90px -60px rgba(0,0,0,0.95);
}
.pg-embed__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.pg-embed__dot {
  flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: #4dff8f; box-shadow: 0 0 10px #4dff8f;
}
.pg-embed__label {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.02em; color: var(--ink-2);
}
.pg-embed__full {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.pg-embed__full:hover { border-color: transparent; background: rgba(255,255,255,0.08); }
.pg-embed__frame { position: relative; }
.pg-embed__frame iframe {
  display: block; width: 100%; height: 760px; border: 0; background: var(--bg);
}
.pg-embed__loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg); color: var(--ink-2); font-size: 14px;
  transition: opacity .45s var(--ease);
}
.pg-embed.is-loaded .pg-embed__loading { opacity: 0; pointer-events: none; }
.pg-embed__spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--ink);
  animation: pg-spin .8s linear infinite;
}
@keyframes pg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pg-embed__spin { animation: none; } }
@media (max-width: 640px) {
  .pg-embed__frame iframe { height: 1240px; }
  .pg-embed__label { font-size: 11.5px; }
  .pg-embed__full { padding: 6px 10px; font-size: 12px; }
}

/* Desktop: bounded, internally-scrolling studio so the preview can stay pinned. */
@media (min-width: 900px) {
  .pg-embed__frame iframe { height: 84vh; min-height: 600px; }
}
