/* Full Art Spire — showcase. One stylesheet, no build step. */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbf3e4;
  --bg-2: #f3e7d1;
  --surface: #fffaf0;
  --ink: #17120f;
  --ink-2: #4a4038;
  --ink-3: #75695d;
  --line: #17120f;
  --pop: #17120f;
  --focus: #2f5bff;

  /* Colour that never flips: text on bright panels and stickers stays dark. */
  --on: #17120f;
  --on-2: #3b322b;

  --red: #ff5e4a;
  --pink: #ff7cc0;
  --orange: #ff9a2e;
  --yellow: #ffd23f;
  --green: #4fd68a;
  --teal: #3fd0c9;
  --blue: #6b9bff;
  --purple: #a487ff;
  --stone: #d8d0c2;

  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 5vw, 56px);
  --r-xl: clamp(22px, 3vw, 36px);
  --r-lg: 18px;
  --r-card: 14px;
  --bounce: cubic-bezier(.3, 1.6, .5, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #131110;
    --bg-2: #1c1917;
    --surface: #221e1b;
    --ink: #fbf3e4;
    --ink-2: #cfc4b4;
    --ink-3: #a09484;
    --line: #fbf3e4;
    --pop: #000;
    --focus: #9db4ff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131110;
  --bg-2: #1c1917;
  --surface: #221e1b;
  --ink: #fbf3e4;
  --ink-2: #cfc4b4;
  --ink-3: #a09484;
  --line: #fbf3e4;
  --pop: #000;
  --focus: #9db4ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { padding: .1em .4em; border-radius: 6px; background: rgb(23 18 15 / .1); }
kbd { display: inline-block; padding: .05em .45em; border: 2px solid currentColor; border-bottom-width: 3px; border-radius: 6px; font-weight: 700; line-height: 1.3; }
::selection { background: var(--yellow); color: var(--on); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 650; text-decoration: none; }
.skip-link:focus { top: 12px; }

.i { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.nav { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; transition: transform .5s var(--bounce); }
.brand:hover .brand-mark { transform: rotate(-14deg) scale(1.12); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: .95rem; font-weight: 550; text-decoration: none; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; transition: background .15s, transform .4s var(--bounce); }
.theme-toggle:hover { background: var(--bg-2); transform: rotate(25deg); }
.theme-toggle .i { width: 20px; height: 20px; stroke-width: 2; }
.i-moon { display: none !important; }
:root[data-theme="dark"] .i-moon { display: block !important; }
:root[data-theme="dark"] .i-sun { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-moon { display: block !important; }
  :root:not([data-theme="light"]) .i-sun { display: none !important; }
}

/* ---------- Pills & stickers ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 18px;
  border: 2.5px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: .97rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  box-shadow: 0 3px 0 var(--pop);
  cursor: pointer;
  transition: transform .18s var(--bounce), box-shadow .18s, background .15s;
}
.pill:hover { transform: translateY(-2px) rotate(-1.5deg); box-shadow: 0 5px 0 var(--pop); }
.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pop); }
.pill-ink { background: var(--ink); color: var(--bg); }
.pill-big { min-height: 56px; padding: 12px 26px; font-size: 1.08rem; }
.pill-small { min-height: 36px; padding: 6px 14px; font-size: .88rem; box-shadow: none; border-width: 2px; }
.pill.is-disabled { opacity: .62; cursor: default; border-style: dashed; }
.pill.is-disabled:hover, .pill.is-disabled:active { transform: none; box-shadow: none; }
.pill:disabled { opacity: .45; cursor: default; }
.btn-badge { padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: var(--on); font-size: .72rem; font-weight: 750; letter-spacing: .02em; }

.sticker {
  display: inline-block; width: fit-content;
  padding: 6px 14px;
  border: 2.5px solid var(--on); border-radius: 999px;
  color: var(--on);
  font-size: .84rem; font-weight: 800; font-stretch: 108%; letter-spacing: .01em; text-transform: uppercase; line-height: 1.2;
  box-shadow: 0 3px 0 var(--on);
  transform: rotate(var(--sr, -2deg));
}
.sticker-yellow { background: var(--yellow); }
.sticker-pink { background: var(--pink); }
.sticker-blue { background: var(--blue); }
.sticker-ink { background: var(--on); color: #fbf3e4; box-shadow: 0 3px 0 rgb(0 0 0 / .35); }
.sticker-rainbow { background: linear-gradient(90deg, #ff7cc0, #ffd23f, #4fd68a, #6b9bff, #a487ff); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 72px); isolation: isolate; overflow-x: clip; }
.hero-burst {
  position: absolute; z-index: -1;
  right: -18vw; top: -20%;
  width: min(1200px, 120vw); aspect-ratio: 1;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--yellow) 55%, transparent) 0deg 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%);
  mask: radial-gradient(circle, #000 18%, transparent 66%);
  animation: spin 90s linear infinite;
  opacity: .9;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-burst { opacity: .28; } }
:root[data-theme="dark"] .hero-burst { opacity: .28; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-eyebrow { --sr: -3deg; margin-bottom: 18px; }

.wordmark {
  font-size: clamp(4rem, 10.5vw, 9.4rem);
  font-weight: 900; font-stretch: 112%;
  line-height: .84; letter-spacing: -.055em;
  margin: 0 0 26px -.04em;
}
.wm-line { display: block; white-space: nowrap; }
.wm-line > span { display: inline-block; transform-origin: 50% 100%; }
.wm-mark { position: relative; width: fit-content; z-index: 0; margin: .02em 0 .04em; }
.wm-mark::before {
  content: ""; position: absolute; z-index: -1;
  inset: 12% -.2em 4% -.1em;
  background: var(--pink);
  border: 3px solid var(--on); border-radius: .14em;
  box-shadow: 0 6px 0 var(--on);
  transform: rotate(-2.5deg);
}
.wm-mark > span { color: var(--on); }
html.js .wm-line > span { animation: letter-in .7s var(--bounce) backwards; animation-delay: calc(var(--d) * 45ms + 80ms); }
@keyframes letter-in { from { opacity: 0; transform: translateY(60%) rotate(-12deg) scale(.7); } }
.wordmark:hover .wm-line > span { animation: letter-hop .5s var(--bounce); animation-delay: calc(var(--d) * 30ms); }
@keyframes letter-hop { 40% { transform: translateY(-14%) rotate(-6deg); } }

.hero-lead { max-width: 33rem; color: var(--ink-2); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; }
.hero-lead strong { color: var(--ink); font-weight: 750; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-note { max-width: 32rem; margin-top: 20px; color: var(--ink-3); font-size: .88rem; }

.hero-stage { position: relative; min-height: clamp(420px, 44vw, 600px); padding-bottom: 44px; display: grid; place-items: end center; }
.fan { position: relative; width: 100%; height: clamp(400px, 40vw, 560px); --w: clamp(130px, 12.4vw, 178px); --spread: 1; --cx: 57%; }
.fan-card {
  --x: calc(var(--o) * var(--w) * .4 * var(--spread));
  --rot: calc(var(--o) * 6deg * var(--spread));
  --lift: calc(var(--o) * var(--o) * 9px);
  position: absolute; left: var(--cx); bottom: 15%;
  width: var(--w); padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 120%;
  transform: translateX(calc(-50% + var(--x))) translateY(var(--lift)) rotate(var(--rot));
  transition: transform .45s var(--bounce), z-index 0s;
  z-index: calc(10 - var(--o) * var(--o));
}
.fan-hero { --w2: 1.22; width: calc(var(--w) * 1.22); z-index: 20; }
html.js .fan-card { animation: deal-in .8s var(--bounce) backwards; animation-delay: calc(400ms + (var(--o) + 3) * 70ms); }
@keyframes deal-in { from { transform: translateX(-50%) translateY(60%) rotate(0deg) scale(.6); opacity: 0; } }
.fan:hover { --spread: 1.12; }
.fan-card:hover, .fan-card:focus-visible { z-index: 30; transform: translateX(calc(-50% + var(--x))) translateY(calc(var(--lift) - 34px)) rotate(calc(var(--rot) * .4)) scale(1.06); }
.fan-card:focus-visible { outline: none; }
.fan-card:focus-visible .card-face { outline: 4px solid var(--focus); outline-offset: 4px; }

.hero-sticker-a { position: absolute; top: 6%; left: 4%; z-index: 40; --sr: -9deg; font-size: clamp(.9rem, 1.4vw, 1.15rem); padding: 8px 16px; animation: bob 3.2s ease-in-out infinite; }
.hero-sticker-b { position: absolute; top: 16%; right: 2%; z-index: 40; --sr: 7deg; font-size: clamp(.85rem, 1.2vw, 1rem); animation: bob 3.8s ease-in-out -1.2s infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(calc(var(--sr) * -.4)); } }
.hero-caption { position: absolute; bottom: 0; left: 8%; right: 0; text-align: center; color: var(--ink-3); font-size: .8rem; text-wrap: balance; }

/* ---------- Cards (shared) ---------- */
.card-face {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --glare: 0;
  position: relative; display: block;
  aspect-ratio: 2 / 3;
  border: 3px solid var(--on); border-radius: var(--r-card);
  overflow: hidden;
  background: #241d2c;
  box-shadow: 0 6px 0 var(--on), 0 18px 34px -12px rgb(0 0 0 / .45);
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--bounce), box-shadow .2s;
}
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.card-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / .55), rgb(255 255 255 / 0) 45%),
    linear-gradient(115deg, transparent 20%, rgb(255 124 192 / .35) 36%, rgb(255 210 63 / .32) 44%, rgb(79 214 138 / .3) 52%, rgb(107 155 255 / .32) 60%, transparent 76%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--mx) var(--my);
  mix-blend-mode: overlay;
  opacity: var(--glare);
  transition: opacity .3s;
}
.card-face.is-tilting { transition: transform .08s linear, box-shadow .2s; }

/* ---------- Ribbons ---------- */
.ribbons { position: relative; padding: 18px 0 26px; overflow: hidden; }
.ribbon { overflow: hidden; }
.ribbon-a { transform: rotate(-2.2deg); margin: 0 -2vw; }
.ribbon-c { transform: rotate(-2.2deg); margin: 0 -2vw; }
.ribbon-b {
  position: relative; z-index: 2;
  margin: -14px -2vw; padding: 10px 0;
  background: var(--yellow); color: var(--on);
  border-block: 3px solid var(--on);
  transform: rotate(1.6deg);
}
.ribbon-track { display: flex; gap: 14px; width: max-content; padding: 16px 0; animation: marquee 60s linear infinite; }
.ribbon-reverse { animation-direction: reverse; animation-duration: 70s; }
.ribbon-track img { width: clamp(96px, 10vw, 132px); aspect-ratio: 2 / 3; object-fit: cover; border: 3px solid var(--on); border-radius: 12px; box-shadow: 0 4px 0 var(--on); }
.ribbon-track img:nth-child(odd) { transform: rotate(-2deg); }
.ribbon-track img:nth-child(even) { transform: rotate(2deg) translateY(4px); }
.ribbon-words { gap: 0; padding: 0; animation-duration: 38s; }
.ribbon-words span { padding: 0 22px; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 900; font-stretch: 118%; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.ribbon-words span::after { content: "✦"; margin-left: 44px; color: var(--red); -webkit-text-stroke: 1.5px var(--on); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); padding-block: clamp(40px, 6vw, 72px); }
.fact {
  padding: 22px 22px 24px;
  background: var(--c); color: var(--on);
  border: 3px solid var(--on); border-radius: var(--r-lg);
  box-shadow: 0 6px 0 var(--on);
  transform: rotate(var(--r));
  transition: transform .4s var(--bounce);
}
.fact:hover { transform: rotate(0) translateY(-6px) scale(1.03); }
.fact-num { font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 900; font-stretch: 115%; line-height: .9; letter-spacing: -.05em; }
.fact-label { margin-top: 4px; font-size: 1.05rem; font-weight: 800; font-stretch: 110%; text-transform: uppercase; letter-spacing: .01em; }
.fact-desc { margin-top: 10px; color: var(--on-2); font-size: .93rem; line-height: 1.45; }

/* ---------- Sections & panels ---------- */
.section { padding-block: clamp(14px, 2vw, 22px); }
.panel {
  position: relative;
  padding: clamp(26px, 5vw, 64px);
  background: var(--c, var(--surface)); color: var(--on);
  border: 3px solid var(--on); border-radius: var(--r-xl);
  box-shadow: 0 8px 0 var(--on);
  overflow: hidden;
}
.panel-ink { background: #17120f; color: #fbf3e4; border-color: #17120f; box-shadow: 0 8px 0 var(--pop); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .panel-ink { border-color: #3a332d; } }
:root[data-theme="dark"] .panel-ink { border-color: #3a332d; }
.panel-ink .section-lead, .panel-ink .section-small { color: #cfc4b4; }
.panel-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }

.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(26px, 4vw, 44px); }
.panel-split .section-head { margin-bottom: 0; }
.section-head-center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head-plain { padding-top: clamp(20px, 3vw, 40px); }
.section-head h2 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 900; font-stretch: 112%; line-height: .92; letter-spacing: -.05em; }
.section-lead { color: var(--on-2); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.5; }
.section-head-plain .section-lead { color: var(--ink-2); }
.section-lead strong { color: inherit; font-weight: 750; }
.panel:not(.panel-ink) .section-lead strong { color: var(--on); }
.section-small { color: var(--on-2); font-size: .92rem; }
.section-small-center { max-width: 44rem; margin: clamp(26px, 4vw, 44px) auto 0; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-row-center { justify-content: center; }
.panel .pill { border-color: var(--on); box-shadow: 0 3px 0 var(--on); background: #fffaf0; color: var(--on); }
.panel .pill-ink { background: var(--on); color: #fbf3e4; }

/* ---------- Before / after ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 32px); }
.ba-card { transform: rotate(var(--r, 0)); transition: transform .4s var(--bounce); }
.ba-card:hover, .ba-card:focus-within { transform: rotate(0); }
.ba-viewport {
  --pos: 52%;
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  border: 3px solid var(--on); border-radius: var(--r-card);
  background: #0c0a10;
  box-shadow: 0 6px 0 var(--on);
  user-select: none;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fffaf0; box-shadow: 0 0 0 1.5px var(--on); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%;
  display: grid; place-items: center;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border: 3px solid var(--on); border-radius: 999px;
  background: var(--yellow); color: var(--on);
  box-shadow: 0 3px 0 var(--on);
  transition: transform .3s var(--bounce);
}
.ba-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ba-viewport:hover .ba-knob, .ba-viewport:has(.ba-range:active) .ba-knob { transform: scale(1.15) rotate(-8deg); }
.ba-tag { position: absolute; top: 12px; padding: 3px 10px; border: 2px solid var(--on); border-radius: 999px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--on); pointer-events: none; }
.ba-tag-after { left: 12px; background: var(--yellow); }
.ba-tag-before { right: 12px; background: #fffaf0; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-viewport:has(.ba-range:focus-visible) { outline: 4px solid var(--focus); outline-offset: 4px; }
.ba-meta, .depth-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-top: 16px; }
.ba-title { font-size: 1.15rem; font-weight: 800; font-stretch: 108%; letter-spacing: -.01em; }
.ba-sub { color: var(--on-2); font-size: .9rem; font-weight: 600; }

/* ---------- Depth ---------- */
.depth-hint { width: fit-content; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: rgb(23 18 15 / .12); font-size: .88rem; font-weight: 650; }
.depth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.depth-card-wrap { transform: rotate(var(--r, 0)); transition: transform .4s var(--bounce); }
.depth-card-wrap:hover { transform: rotate(0); }
.depth-stage {
  --px: 0; --py: 0; --active: 0;
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  border: 3px solid var(--on); border-radius: var(--r-card);
  background: #080c14;
  box-shadow: 0 6px 0 var(--on);
  cursor: grab; touch-action: pan-y;
  transform: perspective(900px) rotateY(calc(var(--px) * 8deg)) rotateX(calc(var(--py) * -7deg));
  transition: transform .3s var(--bounce);
}
.depth-stage.is-interacting { transition: transform .06s linear; }
.depth-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.depth-bg { transform: scale(1.07) translate3d(calc(var(--px) * -10px), calc(var(--py) * -10px), 0); transition: transform .24s ease-out; }
.depth-inset-frame { position: absolute; inset: 5.5%; border: 1.5px solid rgb(220 198 146 / .62); box-shadow: inset 0 0 0 1px rgb(10 14 22 / .45); pointer-events: none; }
.depth-shadow { filter: brightness(0) blur(10px); opacity: calc(.32 + var(--active) * .16); transform: scale(1.045) translate3d(calc(4px - var(--px) * 6px), calc(7px - var(--py) * 6px), 0); transition: transform .24s ease-out, opacity .24s ease-out; }
.depth-fg { transform: scale(1.045) translate3d(calc(var(--px) * 16px), calc(var(--py) * 16px), 0); transition: transform .24s ease-out; }
.depth-stage.is-interacting .depth-bg, .depth-stage.is-interacting .depth-shadow, .depth-stage.is-interacting .depth-fg { transition: transform .06s linear; }
.depth-sheen { position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--active) * .42); background: radial-gradient(circle at calc(50% + var(--px) * 38%) calc(50% + var(--py) * 38%), rgb(255 245 214 / .34), rgb(255 245 214 / 0) 56%); mix-blend-mode: screen; transition: opacity .25s; }
.depth-still { display: none; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Finishes ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); align-items: end; counter-reset: rung; }
.rung { display: grid; gap: 8px; align-content: start; padding-top: calc((3 - var(--step)) * clamp(0px, 3.4vw, 46px)); }
.rung-card { position: relative; aspect-ratio: 2 / 3; overflow: hidden; border: 3px solid #3a332d; border-radius: var(--r-card); background: #0c0a10; transition: transform .45s var(--bounce); margin-bottom: 8px; }
.rung:hover .rung-card { transform: translateY(-10px) rotate(calc((var(--step) - 1.5) * 2deg)) scale(1.03); }
.rung-card img { width: 100%; height: 100%; object-fit: cover; }
.rung h3 { font-size: 1.2rem; font-weight: 850; font-stretch: 108%; line-height: 1.15; letter-spacing: -.01em; }
.rung p { color: #cfc4b4; font-size: .9rem; line-height: 1.45; }
.rung .rung-card-name { color: #fbf3e4; font-weight: 650; }
.tier { width: fit-content; padding: 4px 12px; border: 2.5px solid #fbf3e4; border-radius: 999px; color: var(--on); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
.tier-common { background: #d6d9e0; }
.tier-uncommon { background: #8fe6dc; }
.tier-rare { background: #ffc83d; }
.tier-ancient { background: linear-gradient(90deg, #ff7cc0, #ffd23f, #4fd68a, #6b9bff, #a487ff); background-size: 200% 100%; animation: shimmer 4s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }

/* ---------- The Fool spread ---------- */
.table-spread { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(30px, 4.4vw, 56px) clamp(14px, 2.6vw, 30px); padding-bottom: 6px; }
.spread-card, .card-tile { display: grid; gap: 12px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.spread-card { transform: translateY(var(--y)) rotate(var(--r)); transition: transform .45s var(--bounce); }
.spread-card:hover, .spread-card:focus-visible { transform: translateY(-10px) rotate(0) scale(1.05); z-index: 2; }
.spread-card:focus-visible, .card-tile:focus-visible { outline: none; }
.spread-card:focus-visible .card-face, .card-tile:focus-visible .card-face { outline: 4px solid var(--focus); outline-offset: 4px; }
.spread-name, .tile-name { display: grid; gap: 2px; font-weight: 800; font-stretch: 106%; line-height: 1.2; }
.spread-name em, .tile-name em { font-style: normal; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; color: var(--on-2); }

/* ---------- Gallery ---------- */
.gallery-panel { --c: var(--red); transition: background-color .45s ease; }
.gallery-panel[data-pool="ironclad"] { --c: var(--red); }
.gallery-panel[data-pool="silent"] { --c: var(--green); }
.gallery-panel[data-pool="defect"] { --c: var(--blue); }
.gallery-panel[data-pool="necrobinder"] { --c: var(--pink); }
.gallery-panel[data-pool="regent"] { --c: var(--orange); }
.gallery-panel[data-pool="colorless"] { --c: var(--stone); }
.gallery-panel[data-pool="event"] { --c: var(--teal); }
.gallery-panel[data-pool="curse"] { --c: var(--purple); }
.gallery-panel[data-pool="token"] { --c: var(--yellow); }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.tab-btn {
  padding: 8px 16px; min-height: 40px;
  border: 2.5px solid var(--on); border-radius: 999px;
  background: rgb(255 250 240 / .55); color: var(--on);
  font-weight: 750; cursor: pointer;
  transition: transform .25s var(--bounce), background .15s, box-shadow .15s;
}
.tab-btn:hover { transform: translateY(-2px) rotate(-2deg); background: #fffaf0; }
.tab-btn[aria-selected="true"] { background: var(--on); color: #fbf3e4; box-shadow: 0 3px 0 rgb(0 0 0 / .35); transform: rotate(-2deg); }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.card-tile { transition: transform .4s var(--bounce); }
.card-tile:hover, .card-tile:focus-visible { transform: translateY(-8px) rotate(-1.5deg); }
.card-grid.is-dealing .card-tile { animation: deal .6s var(--bounce) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes deal { from { opacity: 0; transform: translate(-30px, 50px) rotate(-14deg) scale(.8); } }

/* ---------- Pack switches & in-game captures ---------- */
.pack-panel { gap: clamp(22px, 3.2vw, 40px); }
.switch-list { display: grid; gap: 14px; }
.switch-grid { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.switch-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 14px 16px; background: #fffaf0; border: 2.5px solid var(--on); border-radius: 16px; font-weight: 550; line-height: 1.4; }
.switch { position: relative; width: 46px; height: 26px; border: 2.5px solid var(--on); border-radius: 999px; background: #e7dccb; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 999px; background: var(--on); transition: transform .35s var(--bounce); }
.switch.is-on { background: var(--green); }
.switch.is-on::after { transform: translateX(20px); }
.switch-list li:hover .switch::after { transform: translateX(10px); }
.key { display: grid; place-items: center; width: 46px; height: 32px; border: 2.5px solid var(--on); border-bottom-width: 5px; border-radius: 8px; background: #fffaf0; font-family: var(--mono); font-weight: 800; font-size: .85rem; }

.live-compare { grid-column: 1 / -1; transform: rotate(var(--r, 0)); transition: transform .4s var(--bounce); }
.live-compare:hover, .live-compare:focus-within { transform: rotate(0); }
.ba-wide { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }

.reel-wrap { display: grid; gap: 12px; margin-bottom: clamp(24px, 3.6vw, 40px); }
.reel-frame { position: relative; aspect-ratio: 16 / 9; border: 3px solid #3a332d; border-radius: var(--r-lg); overflow: hidden; background: #0b090c; box-shadow: 0 8px 0 #000; }
.reel-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.reel-caption .ba-title { color: #fbf3e4; }
.reel-caption .ba-sub { color: #cfc4b4; }

.shot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.shot-card { display: grid; gap: 10px; align-content: start; transform: rotate(var(--r, 0)); transition: transform .4s var(--bounce); }
.shot-card:hover, .shot-card:focus-within { transform: rotate(0) translateY(-4px); }
.shot-trigger { position: relative; display: block; width: 100%; padding: 0; border: 3px solid var(--on); border-radius: var(--r-card); overflow: hidden; background: #0c0a10; box-shadow: 0 6px 0 var(--on); cursor: pointer; aspect-ratio: 16 / 9; }
.shot-card-dark .shot-trigger { border-color: #3a332d; box-shadow: 0 6px 0 #000; }
.shot-trigger img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--bounce); }
.shot-trigger:hover img, .shot-trigger:focus-visible img { transform: scale(1.03); }
.shot-trigger:focus-visible { outline: 4px solid var(--focus); outline-offset: 4px; }
.shot-zoom { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border: 2px solid var(--on); border-radius: 999px; background: var(--yellow); color: var(--on); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .02em; box-shadow: 0 2px 0 var(--on); opacity: .94; transition: transform .25s var(--bounce), opacity .2s; pointer-events: none; }
.shot-trigger:hover .shot-zoom { transform: scale(1.08) rotate(-3deg); opacity: 1; }
.shot-meta { display: grid; gap: 2px; }
.shot-card-dark .ba-title { color: #fbf3e4; }
.shot-card-dark .ba-sub { color: #cfc4b4; }

/* ---------- Mod authors ---------- */
.tick-list { display: grid; gap: 10px; margin-top: 4px; }
.tick-list li { position: relative; padding-left: 30px; color: var(--on-2); line-height: 1.45; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 999px; background: var(--on) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf3e4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.tick-list code { background: rgb(23 18 15 / .12); }
.code-panel { min-width: 0; border: 3px solid var(--on); border-radius: var(--r-lg); background: #17120f; color: #fbf3e4; box-shadow: 0 6px 0 var(--on); transform: rotate(var(--r, 0)); overflow: hidden; }
.code-panel-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 2px solid #3a332d; color: #a09484; font-family: var(--mono); font-size: .8rem; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 999px; background: var(--red); }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--green); }
.code-panel pre { margin: 0; padding: 18px 18px 22px; overflow-x: auto; font-family: var(--mono); font-size: clamp(.74rem, 1.1vw, .86rem); line-height: 1.6; }
.code-panel b { color: #8fd3ff; font-weight: 400; }
.code-panel s { color: #ffd98a; text-decoration: none; }
.code-panel u { color: #ff9ccf; text-decoration: none; }

/* ---------- Notes ---------- */
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.note { padding: 22px; background: var(--c); color: var(--on); border: 3px solid var(--on); border-radius: 6px 6px 22px 6px; box-shadow: 0 6px 0 var(--on); transform: rotate(var(--r)); transition: transform .4s var(--bounce); }
.note:hover { transform: rotate(0) translateY(-4px); }
.note h3 { font-size: 1.12rem; font-weight: 850; font-stretch: 106%; line-height: 1.2; margin-bottom: 10px; letter-spacing: -.01em; }
.note p { color: var(--on-2); font-size: .94rem; line-height: 1.5; }

/* ---------- Finale ---------- */
.finale {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(20px, 4vw, 48px);
  padding: clamp(48px, 9vw, 120px) var(--gutter);
  text-align: center;
  background: var(--yellow); color: var(--on);
  border: 3px solid var(--on); border-radius: var(--r-xl);
  box-shadow: 0 8px 0 var(--on);
}
.finale-burst { left: 50%; right: auto; top: 50%; width: 1400px; margin: -700px 0 0 -700px; background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / .55) 0deg 9deg, transparent 9deg 22.5deg); opacity: 1 !important; }
.finale-kicker { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.finale-title { margin: 10px 0 30px; font-size: clamp(2.6rem, 8vw, 6.6rem); font-weight: 900; font-stretch: 115%; line-height: .9; letter-spacing: -.055em; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(36px, 5vw, 56px) 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.footer-legal { max-width: 42rem; color: var(--ink-3); font-size: .88rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; font-weight: 650; }
.footer-meta a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer-meta a:hover { color: var(--red); }

/* ---------- Lightbox ---------- */
.lightbox { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 3px solid var(--on); border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: 0 8px 0 var(--on); }
.lightbox.is-wide { width: min(1080px, calc(100vw - 32px)); }
.lightbox.is-wide .lightbox-img { width: 100%; max-height: calc(100dvh - 200px); object-fit: contain; }
.lightbox[open] { animation: pop-in .45s var(--bounce); }
@keyframes pop-in { from { opacity: 0; transform: scale(.85) rotate(-4deg); } }
.lightbox::backdrop { background: rgb(19 17 16 / .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox-shell { display: grid; gap: 14px; padding: 18px; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.lightbox-title { font-size: 1.5rem; font-weight: 900; font-stretch: 110%; letter-spacing: -.03em; line-height: 1.1; }
.lightbox-sub { color: var(--ink-3); font-weight: 650; }
.lightbox-close { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; border: 2.5px solid var(--line); border-radius: 999px; background: var(--yellow); color: var(--on); cursor: pointer; transition: transform .3s var(--bounce); }
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-body { display: grid; place-items: center; }
.lightbox-img { width: auto; max-width: 100%; max-height: calc(100dvh - 220px); border: 3px solid var(--on); border-radius: var(--r-card); }
.lightbox-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lightbox-counter { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Trailer ---------- */
.trailer-frame { position: relative; aspect-ratio: 16 / 9; border: 3px solid #3a332d; border-radius: var(--r-lg); overflow: hidden; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Confetti ---------- */
.confetti { position: fixed; z-index: 300; left: 0; top: 0; pointer-events: none; font-size: 18px; font-weight: 900; line-height: 1; -webkit-text-stroke: 1px var(--on); }

/* ---------- Scroll reveal (only once JS runs) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(40px) rotate(calc(var(--r, 0deg) * 3)); }
html.js [data-reveal].is-in { opacity: 1; transform: rotate(var(--r, 0)); transition: opacity .5s ease, transform .7s var(--bounce); }
html.js .rung[data-reveal].is-in { transform: none; }
html.js [data-reveal].is-in:hover { transition-duration: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts, .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rung { padding-top: 0; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 0; margin-top: 8px; }
  .fan { height: clamp(300px, 82vw, 440px); --w: clamp(120px, 28vw, 180px); }
  .panel-split { grid-template-columns: minmax(0, 1fr); }
  .switch-grid { grid-template-columns: minmax(0, 1fr); }
  .ba-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; }
  .table-spread { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-burst { right: -50vw; top: 20%; }
}
@media (max-width: 560px) {
  .nav { height: 60px; gap: 6px; }
  .wordmark { font-size: 23vw; }
  .brand span { font-size: .98rem; }
  .fan-card[style*="--o:-3"], .fan-card[style*="--o:3"] { display: none; }
  .fan-card { --x: calc(var(--o) * var(--w) * .44 * var(--spread)); }
  .facts, .notes { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-grid { grid-template-columns: minmax(0, 1fr); }
  .depth-grid { grid-template-columns: minmax(0, 1fr); max-width: 330px; margin-inline: auto; }
  .ladder { gap: 18px 12px; }
  .rung h3 { font-size: 1.02rem; }
  .hero-actions .pill-big { flex: 1 1 auto; }
  .hero-sticker-a { top: 0; left: 0; }
  .hero-sticker-b { top: 6%; right: 0; }
  .hero-caption { position: static; margin-top: 10px; }
  .lightbox-nav .pill { padding-inline: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html.js [data-reveal] { opacity: 1; transform: rotate(var(--r, 0)); }
  .ribbon-track { flex-wrap: nowrap; }
  .depth-stage { cursor: default; transform: none; }
  .depth-bg, .depth-inset-frame, .depth-shadow, .depth-fg, .depth-sheen { display: none; }
  .depth-still { display: block; }
}
