/* Sitevue Training landing page. Plain CSS, no build step. */
:root {
  --paper: #f7f4ee;
  --paper-2: #efe9dd;
  --card: #fffdf9;
  --ink: #17131f;
  --ink-2: #3b3549;
  --muted: #6c657d;
  --line: #e3dccd;
  --pink: #ff4f8b;
  --pink-ink: #d42a67;
  --teal: #1fb5a9;
  --violet: #7a64e0;
  --yellow: #ffd23f;
  --night: #120e22;
  --night-2: #1d1736;
  --night-line: rgba(255, 255, 255, .1);
  --on-night: #f3effa;
  --on-night-muted: #b3abc9;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(23, 19, 31, .06), 0 12px 32px -12px rgba(23, 19, 31, .18);
  --shadow-lg: 0 2px 4px rgba(23, 19, 31, .08), 0 40px 80px -30px rgba(23, 19, 31, .45);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); font-weight: 700; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  padding: 15px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2338; }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 79, 139, .8), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-pink:hover { background: #ff3d7f; box-shadow: 0 14px 28px -10px rgba(255, 79, 139, .9), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost.on-dark { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost.on-dark:hover { background: #fff; color: var(--ink); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.brand b { color: var(--pink-ink); font-weight: 800; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--pink); }

/* ---------- shared section bits ---------- */
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--pink-ink);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(31, 181, 169, .18); }
.section-head { max-width: 820px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; margin: 14px 0 16px; }
.section-head .lede { font-size: 19px; color: var(--ink-2); }
.section-head.on-dark h2 { color: var(--on-night); }
.section-head.on-dark .lede { color: var(--on-night-muted); }
.section-head.on-dark .eyebrow { color: var(--yellow); }
.lede em { font-style: normal; background: linear-gradient(transparent 60%, rgba(255, 210, 63, .7) 60% 92%, transparent 92%); }
.kicker { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 28px; }

/* ---------- hero ---------- */
.hero { overflow: hidden; padding: 64px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 38%, rgba(255, 79, 139, .16), transparent 70%),
    radial-gradient(520px 380px at 96% 86%, rgba(31, 181, 169, .16), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(23, 19, 31, .09) 1px, transparent 0) 0 0 / 22px 22px;
  mask-image: linear-gradient(#000 70%, transparent);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 4.7vw, 66px); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin: 18px 0 22px; }
.mark { background: linear-gradient(transparent 64%, var(--yellow) 64% 90%, transparent 90%); padding: 0 .04em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 15px; }
.hero-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--pink); transform: rotate(45deg); margin-right: 10px; vertical-align: 2px; }
.hero-facts b { color: var(--ink); font-weight: 700; }

.hero-visual { position: relative; padding: 26px 0 30px; }
.player {
  margin: 0; position: relative; z-index: 1;
  background: var(--night-2); border-radius: 20px; padding: 8px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(23, 19, 31, .9);
  transform: rotate(.6deg);
}
.player-screen { position: relative; aspect-ratio: 1600 / 950; border-radius: 13px; overflow: hidden; background: #1c1638; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .6s ease; }
.slide.is-on { opacity: 1; }
.player-bar { padding: 12px 8px 6px; color: var(--on-night); }
.player-segs { display: flex; gap: 6px; }
.player-segs button { flex: 1; height: 18px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.player-segs i { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; position: relative; }
.player-segs i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--pink)); border-radius: inherit; }
.player-segs .done i::after { transform: scaleX(1); }
.player-segs [aria-selected="true"] i::after { animation: seg-fill var(--slide-ms, 4200ms) linear forwards; }
.player.paused .player-segs [aria-selected="true"] i::after { animation-play-state: paused; }
@keyframes seg-fill { to { transform: scaleX(1); } }
.player-cap { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--on-night-muted); min-height: 2.9em; }
.player-cap b { color: #fff; font-weight: 600; margin-right: 6px; }

.vu-float { position: absolute; z-index: 2; width: 112px; height: auto; right: -14px; top: -40px; filter: drop-shadow(0 12px 18px rgba(23, 19, 31, .25)); animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--ink); border-radius: 12px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.chip .mono { background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 6px; font-size: 12.5px; }
.chip-cite { left: -22px; top: 4px; transform: rotate(-2deg); }
.chip-pass { right: 18px; bottom: 0; transform: rotate(1.5deg); }
.chip .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; }

/* ---------- flow ---------- */
.flow { padding: 0 0 92px; }
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.flow-list li { padding: 22px 22px 0 0; position: relative; }
.flow-list li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.flow-n { font: 700 13px/1 var(--mono); color: var(--pink-ink); }
.flow-list h3 { font-size: 22px; font-weight: 700; margin: 12px 0 8px; }
.flow-list p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }

/* ---------- custom ---------- */
.custom { padding: 96px 0 104px; background: var(--paper-2); border-block: 1px solid var(--line); }
.transform { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); gap: 28px; align-items: center; margin-bottom: 72px; }
.doc {
  position: relative; background: #fff; border-radius: 6px; padding: 26px 30px 40px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(23, 19, 31, .06); transform: rotate(-1.2deg);
  font-family: ui-serif, Georgia, "Times New Roman", serif; color: #2a2733; font-size: 16px; line-height: 1.6;
}
.doc-h { display: flex; justify-content: space-between; gap: 12px; font: 600 11.5px/1.3 var(--body); text-transform: uppercase; letter-spacing: .06em; color: #8a8496; border-bottom: 1px solid #ece8f1; padding-bottom: 12px; margin-bottom: 18px; }
.doc-h .mono { font-weight: 500; text-transform: none; letter-spacing: 0; }
.doc h3 { font: 700 16px/1.3 var(--body); letter-spacing: 0; margin: 16px 0 6px; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.doc h3 .mono { font-size: 13px; color: var(--pink-ink); }
.doc mark { background: rgba(255, 210, 63, .55); padding: 1px 2px; border-radius: 2px; color: inherit; }
.doc-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(transparent, #fff); }
.transform-arrow { display: grid; justify-items: center; gap: 4px; color: var(--pink); }
.transform-arrow svg { width: 86px; }
.transform-arrow span { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.scene-crop { margin: 0; }
.scene-crop img { border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 6px var(--night-2), 0 0 0 7px rgba(23, 19, 31, .9); }
.scene-crop figcaption { margin-top: 18px; font-size: 15px; color: var(--muted); }
.scene-crop figcaption i { color: var(--ink); font-style: normal; font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 15px/1 var(--mono); }
.steps li:nth-child(2) .step-n { background: var(--violet); }
.steps li:nth-child(3) .step-n { background: var(--teal); }
.steps li:nth-child(4) .step-n { background: var(--pink); }
.steps h3 { font-size: 20px; font-weight: 700; margin: 18px 0 8px; }
.steps p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- themes ---------- */
.themes { padding: 104px 0 96px; background: var(--night); color: var(--on-night); overflow: hidden; }
.themes::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 400px at 12% 0%, rgba(122, 100, 224, .28), transparent 70%),
    radial-gradient(600px 400px at 100% 60%, rgba(255, 79, 139, .14), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 24px 24px;
}
.themes .wrap { position: relative; }
.theme-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); }
.theme-tabs button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  border: 1px solid transparent; border-radius: 15px; padding: 16px 20px; cursor: pointer;
  background: transparent; color: var(--on-night-muted); transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.theme-tabs button:hover { background: rgba(255, 255, 255, .05); color: var(--on-night); }
.theme-tabs [aria-selected="true"], .theme-tabs [aria-selected="true"]:hover { background: var(--on-night); color: var(--ink); border-color: #fff; }
.tt-name { font-size: 26px; line-height: 1; }
.tt-sub { font: 600 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
[data-theme="anime"] .tt-name { font-family: "Bangers", var(--display); letter-spacing: .04em; font-size: 30px; }
[data-theme="noir"] .tt-name { font-family: "Bebas Neue", var(--display); letter-spacing: .12em; font-size: 31px; }
[data-theme="pixel"] .tt-name { font-family: "Press Start 2P", monospace; font-size: 17px; line-height: 1.3; }
.theme-tabs [data-theme="anime"][aria-selected="true"] .tt-name { color: var(--pink-ink); }
.theme-tabs [data-theme="pixel"][aria-selected="true"] .tt-name { color: #1d6fd6; }

.theme-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.theme-panel[hidden] { display: none; }
.theme-panel:not([hidden]) .theme-frame { animation: panel-in .45s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.theme-frame { border-radius: 16px; overflow: hidden; aspect-ratio: 1600 / 950; background: #000; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14); }
.theme-frame > img { width: 100%; height: 100%; object-fit: cover; }
.theme-info p { color: var(--on-night-muted); font-size: 16.5px; }
.theme-info h3 { font-size: 40px; color: #fff; margin: 14px 0 14px; letter-spacing: 0; line-height: 1; }
.theme-info dl { margin: 22px 0 0; display: grid; gap: 14px; }
.theme-info dl div { border-top: 1px solid var(--night-line); padding-top: 14px; }
.theme-info dt { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); margin-bottom: 6px; }
.theme-info dd { margin: 0; color: var(--on-night); font-size: 15.5px; line-height: 1.5; }
.theme-badge { display: inline-block; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 7px 10px; border-radius: 99px; border: 1px solid var(--night-line); color: var(--on-night-muted) !important; font-size: 12px !important; }
.theme-badge.live { background: rgba(31, 181, 169, .16); border-color: rgba(31, 181, 169, .5); color: #7ef0e4 !important; }
.theme-badge.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ee0cf; margin-right: 7px; vertical-align: 1px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.anime-title { font-family: "Bangers", var(--display); letter-spacing: .04em !important; font-weight: 400; }
.anime-title small { display: block; font: 800 16px/1.4 "M PLUS Rounded 1c", sans-serif; color: var(--pink); letter-spacing: .2em; margin-top: 6px; }
.noir-title { font-family: "Bebas Neue", var(--display); font-weight: 400; letter-spacing: .1em !important; font-size: 48px !important; }
.pixel-title { font-family: "Press Start 2P", monospace; font-weight: 400; font-size: 26px !important; line-height: 1.3 !important; color: var(--yellow) !important; }
.themes-note { margin-top: 44px; text-align: center; color: var(--on-night-muted); font-size: 16px; max-width: 46em; margin-inline: auto; }

/* scenes are drawn at a fixed design size and scale with their frame (cqw = 1% of the frame's width) */
.scene { position: relative; width: 100%; height: 100%; container-type: inline-size; overflow: hidden; }
.scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* noir */
.noir-rain { animation: rain .55s linear infinite; }
@keyframes rain { to { transform: translate(-43.5px, 174.7px); } }
.noir-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 2.4cqw; padding: 1.5cqw 2.6cqw; background: linear-gradient(rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); }
.noir-logo { font: 400 3.4cqw/1 "Bebas Neue", sans-serif; letter-spacing: .3em; color: #efe6d0; }
.noir-file { font: 400 1.55cqw/1 "Special Elite", monospace; color: #c9bfa8; letter-spacing: .04em; }
.noir-dots { margin-left: auto; display: flex; gap: .7cqw; }
.noir-dots i { width: 2.6cqw; height: .5cqw; background: rgba(239, 230, 208, .2); }
.noir-dots i.on { background: #d6a64a; }
.noir-narr {
  position: absolute; left: 3%; top: 15%; width: 30%;
  background: #e8dcbc; color: #1b1914; padding: 1.3cqw 1.6cqw;
  font: 400 1.62cqw/1.45 "Special Elite", monospace;
  transform: rotate(-1.2deg); box-shadow: .4cqw .5cqw 0 rgba(0, 0, 0, .55);
}
.noir-tag {
  position: absolute; left: 75.5%; top: 64%; display: grid; gap: .25cqw;
  background: #f1ead8; color: #1b1914; padding: .9cqw 1.3cqw .9cqw 2.4cqw; border-radius: .3cqw;
  transform: rotate(7deg); box-shadow: .3cqw .4cqw 0 rgba(0, 0, 0, .5);
  clip-path: polygon(1.4cqw 0, 100% 0, 100% 100%, 1.4cqw 100%, 0 50%);
}
.noir-tag::before { content: ""; position: absolute; left: 1.1cqw; top: 50%; width: .7cqw; height: .7cqw; margin-top: -.35cqw; border-radius: 50%; background: #2b2a30; }
.noir-tag b { font: 400 1.9cqw/1 "Bebas Neue", sans-serif; letter-spacing: .14em; color: #b0281f; }
.noir-tag span { font: 400 1.25cqw/1.2 "Special Elite", monospace; }
.noir-tag em { font: 400 1.1cqw/1 "Special Elite", monospace; font-style: normal; color: #6d6656; }
.noir-dialogue {
  position: absolute; left: 3.5%; right: 3.5%; bottom: 4.5%;
  background: rgba(10, 10, 12, .9); border: .15cqw solid rgba(232, 220, 188, .35); padding: 1.6cqw 2.4cqw 1.9cqw;
  box-shadow: 0 0 0 .5cqw rgba(10, 10, 12, .55);
}
.noir-name { font: 400 2.3cqw/1 "Bebas Neue", sans-serif; letter-spacing: .14em; color: #e3b768; margin-bottom: .9cqw !important; }
.noir-name small { font: 400 1.25cqw/1 "Special Elite", monospace; letter-spacing: .04em; color: #9a917d; margin-left: 1cqw; }
.noir-line { font: 400 2.1cqw/1.45 "Special Elite", monospace; color: #efe8d8 !important; }

/* pixel */
.scene.pixel { background: #29adff; image-rendering: pixelated; }
.scene.pixel p { margin: 0; }
.scene.pixel .px-hud, .scene.pixel .px-toast, .scene.pixel .px-sign, .scene.pixel .px-menu, .scene.pixel .px-dialogue { font-family: "Press Start 2P", monospace; -webkit-font-smoothing: none; }
.px-hud { position: absolute; left: 0; right: 0; top: 0; height: 7.9%; display: flex; align-items: center; gap: 2.4cqw; padding: 0 2.2cqw; font-size: 1.55cqw; color: #fff1e8; }
.px-logo { color: #ffec27; letter-spacing: .05em; }
.px-hearts { color: #ff004d; letter-spacing: .25em; font-size: 1.8cqw; }
.px-xp { margin-left: auto; display: flex; align-items: center; gap: 1cqw; font-size: 1.1cqw; color: #c2c3c7; }
.px-xp i { display: block; width: 14cqw; height: 1.4cqw; background: #1d2b53; border: .35cqw solid #fff1e8; }
.px-xp b { display: block; height: 100%; width: 62%; background: #00e436; animation: xp 3.2s steps(8) infinite alternate; }
@keyframes xp { from { width: 38%; } to { width: 70%; } }
.px-toast {
  position: absolute; left: 2.4%; top: 11%;
  background: #1d2b53; color: #ffec27; border: .4cqw solid #fff1e8; box-shadow: .5cqw .5cqw 0 #000;
  padding: .9cqw 1.2cqw; font-size: 1.05cqw; line-height: 1.4;
}
.px-sign { position: absolute; left: 65.6%; top: 25.8%; width: 31.3%; height: 6.6%; display: grid; place-items: center; color: #fff1e8; font-size: 1.6cqw; letter-spacing: .12em; }
.px-dialogue {
  position: absolute; left: 2.4%; right: 2.4%; bottom: 3%; height: 24.5%;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 2cqw;
  background: #000; color: #fff1e8; border: .55cqw solid #fff1e8; box-shadow: 0 0 0 .5cqw #000;
  padding: 1.5cqw 2cqw;
}
.px-name { grid-column: 1; color: #ff77a8; font-size: 1.3cqw; margin-bottom: 1.1cqw !important; letter-spacing: .06em; }
.px-line { grid-column: 1; font-size: 1.5cqw; line-height: 1.75; }
.px-caret { display: inline-block; margin-left: 1cqw; color: #ffec27; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.px-menu {
  position: absolute; left: 2.4%; bottom: 30.5%;
  background: #000; color: #fff1e8; border: .55cqw solid #fff1e8; box-shadow: 0 0 0 .5cqw #000;
  padding: 1.3cqw 1.8cqw; font-size: 1.35cqw; line-height: 2;
}
.px-menu .sel { color: #ffec27; }
.px-bob { animation: px-bob 1.2s steps(1) infinite; }
.px-bob.late { animation-delay: .6s; }
@keyframes px-bob { 50% { transform: translateY(-1px); } }
.px-alert { animation: px-alert .8s steps(1) infinite; }
@keyframes px-alert { 50% { transform: translateY(-1px); } }
.px-wave { animation: px-wave 2.4s steps(4) infinite; }
@keyframes px-wave { to { transform: translateX(8px); } }

/* ---------- courses ---------- */
.courses { padding: 104px 0; }
.course-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d6cdb9; }
.course-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.course .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper-2); margin-right: auto; color: var(--ink); }
.course .ico svg { width: 22px; height: 22px; }
.course[data-theme="anime"] .ico { background: #ffe1ec; color: var(--pink-ink); }
.course[data-theme="noir"] .ico { background: #e7e3da; color: #2b2a30; }
.course[data-theme="pixel"] .ico { background: #dcefff; color: #1d6fd6; }
.course h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.course > p:not([class]) { color: var(--muted); font-size: 15.5px; line-height: 1.55; flex: 1; }
.theme-pill { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.theme-pill.anime { border-color: #ffc0d5; color: var(--pink-ink); }
.theme-pill.noir { border-color: #cfc9bd; color: #3b3a40; }
.theme-pill.pixel { border-color: #b3dbff; color: #1d6fd6; }
.theme-pill.live { background: var(--teal); border-color: var(--teal); color: #fff; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.course-meta span { font: 500 12.5px/1 var(--mono); background: var(--paper); border: 1px solid var(--line); padding: 6px 8px; border-radius: 7px; color: var(--ink-2); }
.course-when { font-size: 14px; font-weight: 600; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.course-custom { background: transparent; border: 2px dashed #cfc5b0; }
.course-custom .ico { background: var(--ink); color: #fff; }
.course-custom:hover { border-color: var(--pink); }
.link-arrow { font-weight: 700; color: var(--pink-ink); text-decoration: none; margin-top: 6px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- audit ---------- */
.audit { padding: 104px 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.dash { margin: 0 0 56px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(23, 19, 31, .1); background: #fff; }
.dash img { width: 100%; aspect-ratio: 1600 / 760; object-fit: cover; object-position: top; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; }
.features li { border-top: 2px solid var(--ink); padding-top: 16px; }
.features h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.features p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- faq ---------- */
.faq { padding: 104px 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.faq .section-head { margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 700 19px/1.35 var(--display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 26px/1 var(--mono); color: var(--pink-ink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); }

/* ---------- cta ---------- */
.cta { padding: 110px 0 120px; background: var(--night); color: var(--on-night); text-align: center; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 320px at 50% 20%, rgba(255, 79, 139, .25), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 24px 24px;
}
.cta-in { position: relative; max-width: 820px; }
.cta-vu { width: 130px; height: auto; margin: 0 auto 22px; animation: bob 4.5s ease-in-out infinite; }
.cta h2 { font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.cta p { color: var(--on-night-muted); font-size: 19px; margin: 0 auto 34px; max-width: 36em; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-night-muted); border-top: 1px solid var(--night-line); padding: 28px 0 36px; font-size: 14px; }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot .brand { color: #fff; font-size: 17px; }
.foot .brand b { color: var(--pink); }
.foot nav { display: flex; gap: 20px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: #fff; }
.foot p { margin-left: auto; }

/* ---------- scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 760px; }
  .chip-cite { left: -8px; }
  .flow-list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .flow-list li:nth-child(4) { padding-left: 0; border-left: 0; }
  .transform { grid-template-columns: 1fr; }
  .transform-arrow svg { transform: rotate(90deg); width: 60px; }
  .doc { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .theme-panel { grid-template-columns: 1fr; gap: 28px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .faq-in { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 64px; }
  .hero .lede, .section-head .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 auto; }
  .vu-float { width: 76px; right: -4px; top: -22px; }
  .chip { font-size: 12.5px; padding: 8px 10px; }
  .chip-cite { left: -4px; top: 0; }
  .chip-pass { right: 6px; bottom: -6px; }
  .player { transform: none; padding: 6px; }
  .player-cap { font-size: 13.5px; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .flow-list li, .flow-list li + li { padding: 18px 12px 0 0; border-left: 0; }
  .flow-list li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .flow-list h3 { font-size: 19px; }
  .custom, .themes, .courses, .audit, .faq { padding: 72px 0; }
  .doc { padding: 20px 20px 34px; font-size: 15px; }
  .doc-h { flex-direction: column; gap: 4px; }
  .steps, .course-grid, .features { grid-template-columns: 1fr; }
  .theme-tabs { gap: 4px; padding: 4px; }
  .theme-tabs button { padding: 12px 10px; align-items: center; text-align: center; }
  [data-theme="anime"] .tt-name { font-size: 22px; }
  [data-theme="noir"] .tt-name { font-size: 22px; }
  [data-theme="pixel"] .tt-name { font-size: 11px; }
  .tt-sub { font-size: 10px; letter-spacing: .04em; }
  .theme-info h3 { font-size: 32px; }
  .dash { margin-bottom: 40px; }
  .dash img { aspect-ratio: 1600 / 1100; }
  .faq summary { font-size: 17px; }
  .cta { padding: 80px 0 88px; }
  .foot p { margin-left: 0; }
}

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