/* Spectre website. Glass surfaces over a soft colour backdrop, matching the redesigned app.
   Accent colours come from the twelve app themes (site/boot.js sets them before first paint).
   Motion uses transform and opacity only, and rests completely under prefers-reduced-motion. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: local("Inter Variable"), local("Inter"), url("fonts/inter-var.woff2") format("woff2-variations"), url("fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --accent { syntax: "<color>"; inherits: true; initial-value: #ff4655; }
@property --accent-2 { syntax: "<color>"; inherits: true; initial-value: #ff8c78; }
@property --accent-text { syntax: "<color>"; inherits: true; initial-value: #ff6b77; }
@property --btn-bg { syntax: "<color>"; inherits: true; initial-value: #d93b48; }

:root {
  --accent: #ff4655;
  --accent-2: #ff8c78;
  --accent-text: #ff6b77;
  --btn-bg: #d93b48;
  --btn-fg: #ffffff;

  --bg: #07070b;
  --bg-2: #0b0b12;
  --ink: #f4f4f8;
  --muted: #a9a9b8;
  --faint: #8e8e9e;
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.16);
  --surface: rgb(255 255 255 / 0.045);
  --surface-2: rgb(255 255 255 / 0.075);
  --panel: rgb(16 16 24 / 0.72);

  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 2px 6px -2px rgb(0 0 0 / 0.5), 0 18px 40px -16px rgb(0 0 0 / 0.65), 0 50px 100px -40px rgb(0 0 0 / 0.7);
  --glow: 0 0 0 1px color-mix(in oklab, var(--accent) 28%, transparent), 0 24px 70px -24px color-mix(in oklab, var(--accent) 55%, transparent);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --dock-h: 60px;

  color-scheme: dark;
  transition: --accent 0.7s var(--ease), --accent-2 0.7s var(--ease), --accent-text 0.7s var(--ease), --btn-bg 0.7s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--dock-h) + 36px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
code { padding: 0.1em 0.4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
kbd { display: inline-block; min-width: 1.8em; padding: 0.05em 0.45em; border-radius: 7px; text-align: center; background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--ink); }
::selection { background: color-mix(in oklab, var(--accent) 45%, transparent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 10px; }

.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; transition: top 0.2s var(--ease); }
.skip:focus { top: 16px; }

/* ---------- Backdrop: soft colour fields, drawn once, moved only with transform ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, var(--bg-2), var(--bg) 60%); }
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.field { position: absolute; border-radius: 50%; will-change: transform; }
.field-1 { width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 34%, transparent), transparent); animation: drift-a 26s ease-in-out infinite alternate; }
.field-2 { width: 60vmax; height: 60vmax; right: -22vmax; top: 5vmax; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent-2) 22%, transparent), transparent); animation: drift-b 32s ease-in-out infinite alternate; }
.field-3 { width: 50vmax; height: 50vmax; left: 20vmax; bottom: -35vmax; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 16%, transparent), transparent); animation: drift-a 38s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-6vmax, 8vmax, 0) scale(0.94); } }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}

/* ---------- Buttons and links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.15; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: rgb(255 255 255 / 0.11); border-color: rgb(255 255 255 / 0.24); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }
.btn-primary {
  background: var(--btn-bg); color: var(--btn-fg); border-color: transparent;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent), 0 12px 32px -12px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn-primary:hover { background: var(--btn-bg); border-color: transparent; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.32), 0 0 0 1px color-mix(in oklab, var(--accent) 55%, transparent), 0 18px 44px -12px color-mix(in oklab, var(--accent) 85%, transparent); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 12px 24px; font-size: 16px; border-radius: 18px; }
.btn-lg span { display: grid; text-align: left; }
.btn small { font-size: 12px; font-weight: 500; opacity: 0.85; }
.btn-icon { width: 44px; padding: 0; }
.btn-sm.btn-icon { width: 40px; }

.link { color: var(--accent-text); font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 1px; transition: background-size 0.35s var(--ease); }
.link:hover { background-size: 100% 1.5px; }

/* ---------- Dock ---------- */
.dock-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding-inline: var(--gutter); pointer-events: none; }
.dock {
  position: relative; pointer-events: auto; display: flex; align-items: center; gap: 4px;
  height: var(--dock-h); padding: 0 8px 0 18px; border-radius: 22px; width: min(100%, 940px);
  background: linear-gradient(180deg, rgb(22 22 32 / 0.72), rgb(14 14 22 / 0.62));
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s ease;
}
.dock.scrolled { border-color: var(--line-2); box-shadow: var(--shadow), 0 0 0 1px color-mix(in oklab, var(--accent) 12%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; margin-right: auto; border-radius: 10px; }
.brand img { border-radius: 8px; transition: transform 0.4s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.dock-links { display: flex; align-items: center; gap: 2px; margin-right: 8px; }
.dock-links a { position: relative; padding: 9px 13px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s ease, background-color 0.2s ease; }
.dock-links a:hover, .dock-links a[aria-current="true"] { color: var(--ink); background: rgb(255 255 255 / 0.06); }
.dock-links a[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px; background: var(--accent); }
.dock-gh-text { display: none; }
.dock-menu { display: none; }
.dock-progress { position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); opacity: 0.85; }
@supports (animation-timeline: scroll()) {
  .dock-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--dock-h) + 88px); overflow: clip; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: transform 0.25s var(--ease), border-color 0.2s ease; }
.pill b { padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--ink); font-weight: 600; font-size: 13px; }
.pill .i { transition: transform 0.25s var(--ease); }
.pill:hover { transform: translateY(-1px); border-color: var(--line-2); color: var(--ink); }
.pill:hover .i { transform: translateX(3px); }
.hero h1 { margin-top: 28px; max-width: 20ch; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 750; background: linear-gradient(180deg, #fff 30%, color-mix(in oklab, #fff 70%, var(--accent-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; max-width: 62ch; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .i { color: var(--accent-text); }

.stage { position: relative; margin-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(24px, 4vw, 56px); perspective: 1600px; }
.stage-inner { position: relative; max-width: 1080px; margin-inline: auto; --p: 0; --mx: 0; --my: 0; }
.layer { will-change: transform; }
.layer-main {
  position: relative; z-index: 1;
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--p)) * 16deg)) scale(calc(0.92 + var(--p) * 0.08)) translate3d(calc(var(--mx) * -6px), calc(var(--my) * -4px), 0);
}
.layer-a, .layer-b { position: absolute; z-index: 2; width: 34%; }
.layer-a { right: -5%; top: 8%; transform: translate3d(calc(var(--mx) * 16px), calc(var(--p) * -90px + var(--my) * 12px), 60px); }
.layer-b { left: -6%; bottom: 4%; width: 30%; transform: translate3d(calc(var(--mx) * 22px), calc(var(--p) * -150px + var(--my) * 16px), 90px); }
.stage::before { content: ""; position: absolute; left: 50%; top: 10%; width: 80%; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 38%, transparent), transparent); filter: blur(40px); opacity: 0.8; pointer-events: none; }

/* Page-load sequence: the copy settles, then the window rises. One orchestrated moment. */
.js .hero-copy > *, .js .stage-inner { animation: rise 1s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.3s; }
.js .stage-inner { animation-duration: 1.4s; animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } }

/* ---------- Screenshot frames ---------- */
.shot {
  position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 1280 / 800; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #14141d, #0c0c13);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s ease;
}
.shot.glass { padding: 8px; background: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03)); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: calc(var(--r-lg) - 8px); transition: transform 0.7s var(--ease), opacity 0.5s ease; background: #0e0e16; }
.shot:not(.glass) img { border-radius: 0; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgb(255 255 255 / 0.12), transparent 30%); opacity: 0; transition: opacity 0.5s ease; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--glow); border-color: var(--line-2); }
.shot:hover img { transform: scale(1.025); }
.shot:hover::after { opacity: 1; }
.shot:active { transform: translateY(-1px) scale(0.995); }
.shot-hero { border-radius: var(--r-xl); padding: 10px; box-shadow: var(--shadow), var(--glow); }
.shot-hero img { border-radius: calc(var(--r-xl) - 10px); }
.shot-hero:hover { transform: none; }
.shot-float { border-radius: var(--r-md); padding: 6px; box-shadow: var(--shadow), 0 30px 60px -20px rgb(0 0 0 / 0.8); }
.shot-float img { border-radius: calc(var(--r-md) - 6px); }
.shot-glow { box-shadow: var(--shadow), var(--glow); }

/* A screenshot that hasn't been added yet shows a quiet window skeleton instead of a broken image. */
.shot.is-missing { cursor: default; }
.shot.is-missing img { opacity: 0; }
.shot.is-missing::before {
  content: ""; position: absolute; inset: 8px; border-radius: calc(var(--r-lg) - 8px); z-index: 1;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--accent) 55%, transparent) 0 12%, transparent 12%) 6% 9% / 60% 4% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.07)) 6% 24% / 40% 22% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.05)) 52% 24% / 42% 22% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.05)) 6% 58% / 88% 12% no-repeat,
    linear-gradient(rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.04)) 6% 78% / 88% 12% no-repeat,
    radial-gradient(80% 80% at 70% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent),
    #0e0e16;
}
.shot.is-missing:hover { transform: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section h2 { font-size: clamp(2rem, 1.25rem + 2.7vw, 3.4rem); line-height: 1.06; letter-spacing: -0.035em; }
.section-head p, .split-copy > p { margin-top: 18px; font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--accent-text); background: color-mix(in oklab, var(--accent) 12%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 24%, transparent); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 16px; }
.checks .i { margin-top: 0.22em; color: var(--accent-text); }

/* ---------- Cards ---------- */
.card { position: relative; border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 30px); overflow: hidden; transition: transform 0.45s var(--ease), border-color 0.3s ease, box-shadow 0.45s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 0%), color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%); opacity: 0; transition: opacity 0.4s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow), 0 0 0 1px color-mix(in oklab, var(--accent) 14%, transparent); }
.card:hover::before { opacity: 1; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 20px; color: var(--accent-text); background: color-mix(in oklab, var(--accent) 14%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--accent) 70%, transparent); transition: transform 0.4s var(--ease-spring); }
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { margin-top: 18px; font-size: 1.28rem; line-height: 1.25; letter-spacing: -0.02em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.card .checks { margin-top: 18px; }
.card .checks li { color: var(--muted); }

.card:has(.shot-card) { display: flex; flex-direction: column; padding-bottom: 0; }
.card-copy { position: relative; }
.shot-card { margin-top: 26px; border-radius: var(--r-md) var(--r-md) 0 0; border: 1px solid var(--line); border-bottom: 0; flex: none; }
.shot-card:hover { transform: translateY(-3px); box-shadow: 0 -10px 40px -20px color-mix(in oklab, var(--accent) 60%, transparent); }
.card:has(.shot-card):hover { transform: none; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 48px); }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "career career squad" "arsenal arsenal minis"; gap: 20px; }
.card-career { grid-area: career; }
.card-squad { grid-area: squad; }
.card-arsenal { grid-area: arsenal; }
.minis { grid-area: minis; display: grid; gap: 20px; }
.card-copy { flex: 1; }
.card-career .card-copy, .card-arsenal .card-copy { max-width: 46ch; }
.card-career .shot-card, .card-arsenal .shot-card { aspect-ratio: 16 / 7; }
.card-mini { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
.card-mini h3 { margin-top: 0; font-size: 1.08rem; align-self: center; }
.card-mini p { grid-column: 2; margin-top: 4px; font-size: 15px; }

/* ---------- Themes ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; max-width: 340px; }
.swatches button {
  position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgb(255 255 255 / 0.18);
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.55), transparent 32%), linear-gradient(140deg, var(--sw), var(--gl));
  box-shadow: 0 8px 20px -10px var(--sw), inset 0 -4px 8px rgb(0 0 0 / 0.25);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
}
.js .swatches button { animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.27s); }
.swatches button::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--sw); opacity: 0; transform: scale(0.8); transition: opacity 0.3s ease, transform 0.4s var(--ease-spring); }
.swatches button:hover { transform: translateY(-3px) scale(1.1); animation-play-state: paused; box-shadow: 0 12px 28px -8px var(--sw), inset 0 -4px 8px rgb(0 0 0 / 0.25); }
.swatches button:active { transform: scale(0.94); }
.swatches button[aria-pressed="true"]::after { opacity: 1; transform: scale(1); }
.swatches button:focus-visible { outline-offset: 7px; border-radius: 50%; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.swatch-name { margin-top: 18px; font-size: 15px; color: var(--muted); }
.swatch-name span { color: var(--ink); font-weight: 600; }

/* ---------- Safety ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.note { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* ---------- Download ---------- */
.dl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.dl-card { box-shadow: var(--shadow), var(--glow); }
.dl-card:hover { box-shadow: var(--shadow), var(--glow); }
.dl-top { display: flex; align-items: center; justify-content: space-between; }
.badge { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent-text); background: color-mix(in oklab, var(--accent) 14%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 26%, transparent); }
.dl-card h3 { font-size: 1.6rem; }
.dl-card .btn { margin-top: 24px; width: 100%; }
.file { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; margin: 22px 0 0; padding: 16px 18px; border-radius: var(--r-md); background: rgb(0 0 0 / 0.25); border: 1px solid var(--line); font-size: 14px; }
.file dt { color: var(--faint); }
.file dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.file button { display: inline-flex; gap: 8px; align-items: center; max-width: 100%; padding: 2px 6px; margin: -2px -6px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: left; transition: background-color 0.2s ease, color 0.2s ease; }
.file button:hover { background: var(--surface-2); color: var(--ink); }
.file button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notes:hover { transform: none; }
.notes-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.notes-head h3 { margin-top: 0; }
.notes-date { font-size: 14px; color: var(--faint); }
.notes-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 28px; margin-top: 18px; font-size: 15px; color: var(--muted); max-height: 420px; overflow: auto; overscroll-behavior: contain; padding-bottom: 28px; mask-image: linear-gradient(#000 calc(100% - 40px), transparent); }
.notes-body h4 { margin: 10px 0 8px; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; }
.notes-body ul { display: grid; gap: 7px; }
.notes-body li { position: relative; padding-left: 16px; }
.notes-body li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.notes-body > p, .notes-body > blockquote { grid-column: 1 / -1; }
.notes-body p + p { margin-top: 8px; }
.notes-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.notes-body blockquote { margin: 8px 0; padding-left: 12px; border-left: 2px solid var(--line-2); }
.notes-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-size: 15px; }

.tip { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 18px 22px; border-radius: var(--r-md); }
.tip p { color: var(--muted); font-size: 15px; }
.tip b { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: var(--r-md); overflow: hidden; transition: border-color 0.3s ease; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 22px; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; border-radius: var(--r-md); transition: background-color 0.2s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgb(255 255 255 / 0.03); }
.faq summary .i { color: var(--faint); transition: transform 0.35s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--accent-text); }
.faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 16px; }
.faq details[open] .faq-a { animation: open 0.4s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); background: rgb(0 0 0 / 0.25); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top .brand { margin-right: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.footer nav .link { color: var(--muted); font-weight: 500; }
.footer nav .link:hover { color: var(--ink); }
.legal { margin-top: 20px; max-width: 80ch; font-size: 13px; line-height: 1.6; color: var(--faint); }
.legal + .legal { margin-top: 8px; }

/* ---------- Lightbox ---------- */
#lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; color: var(--ink); }
#lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; animation: lb-in 0.35s var(--ease); }
#lightbox::backdrop { background: rgb(5 5 9 / 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
#lightbox img { max-height: calc(100vh - 130px); width: auto; border-radius: var(--r-md); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
#lightbox figcaption { max-width: 70ch; text-align: center; color: var(--muted); font-size: 15px; }
.lb-close { position: fixed; top: 18px; right: 18px; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }

/* ---------- Scroll reveals (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 32px, 0) scale(0.985); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), border-color 0.3s ease, box-shadow 0.45s var(--ease); transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dock-links a { padding: 9px 10px; }
  .layer-a { right: -2%; }
  .layer-b { left: -2%; }
}
@media (max-width: 1024px) {
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-copy { max-width: 640px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "career career" "squad arsenal" "minis minis"; }
  .card-arsenal .shot-card { aspect-ratio: 1280 / 800; }
  .minis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-mini { grid-template-columns: 1fr; }
  .card-mini h3 { margin-top: 16px; }
  .card-mini p { grid-column: 1; }
  .dl { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .dock { padding-left: 14px; }
  .dock-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 20px;
    background: rgb(16 16 24 / 0.92); border: 1px solid var(--line-2); box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
    opacity: 0; visibility: hidden; transform: translate3d(0, -8px, 0) scale(0.98); transform-origin: 50% 0;
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .dock.open .dock-links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .dock-links a { padding: 13px 14px; font-size: 16px; color: var(--ink); }
  .dock-links a[aria-current="true"]::after { left: 0; top: 50%; bottom: auto; width: 3px; height: 16px; margin: -8px 0 0; }
  .dock-gh-text { display: block; }
  .dock-gh { display: none; }
  .dock-menu { display: inline-flex; }
  .layer-a { width: 38%; right: -1%; top: auto; bottom: -6%; }
  .layer-b { display: none; }
}
@media (max-width: 768px) {
  .pair, .duo { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "career" "squad" "arsenal" "minis"; }
  .card-career .shot-card { aspect-ratio: 1280 / 800; }
  .minis { grid-template-columns: 1fr; }
  .card-mini { grid-template-columns: 44px 1fr; }
  .card-mini h3 { margin-top: 0; }
  .card-mini p { grid-column: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--dock-h) + 56px); }
  .cta { width: 100%; flex-direction: column; }
  .cta .btn { width: 100%; }
  .facts { flex-direction: column; align-items: center; gap: 8px; }
  .shot-hero { padding: 6px; border-radius: var(--r-lg); }
  .shot-hero img { border-radius: calc(var(--r-lg) - 6px); }
  .layer-a { display: none; }
  .stage { perspective: 900px; }
  .tip { align-items: flex-start; }
  .dock-wrap { top: 10px; }
  .dock .btn-sm:not(.btn-icon) { padding-inline: 14px; }
  #lightbox { padding: 12px; grid-template-columns: 1fr; }
  .lb-nav { display: none; }
}

/* ---------- Reduced motion: everything rests in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .layer-main, .layer-a, .layer-b { transform: none; }
  .shot:hover, .card:hover, .btn:hover, .pill:hover, .swatches button:hover { transform: none; }
  .shot:hover img { transform: none; }
  .dock-progress { display: none; }
}

@media (forced-colors: active) {
  .glass, .btn, .card, .shot { border: 1px solid CanvasText; }
}
