/* ============================================================
   AIARTDIRECTION.COM. Red Label system, steel-night world
   RED #E83323 · CREAM #F8F6F0 · INK #0C0A0A · steel-night bg
   Labels rotate -0.6°, pills +1.1°. Helvetica Bold, CAPS, tight.
   ============================================================ */

:root {
  /* Tokens (from the Red Label identity) */
  --red: #E83323;
  --red-deep: #C4271A;
  --cream: #F8F6F0;
  --ink: #0C0A0A;

  /* Steel-night world (near-black, cold blue shadows) */
  --steel-0: #0A0B0E;
  --steel-1: #0E1013;
  --steel-2: #14161B;
  --steel-3: #1B1E24;

  /* Text on steel */
  --t-hi: rgba(248, 246, 240, 0.94);
  --t-mid: rgba(248, 246, 240, 0.62);
  --t-low: rgba(248, 246, 240, 0.38);

  /* Borders */
  --line: rgba(248, 246, 240, 0.08);
  --line-strong: rgba(248, 246, 240, 0.16);

  /* Rotation grammar */
  --rot-label: -0.6deg;
  --rot-pill: 1.1deg;

  /* Type */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Menlo", "Consolas", monospace;

  --text-sm: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-title: clamp(2rem, 1.4rem + 3vw, 4rem);
  --text-hero: clamp(2.6rem, 1.2rem + 8vw, 8.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-py: clamp(5rem, 10vw, 10rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background:
    radial-gradient(120% 60% at 50% -10%, #171b26 0%, transparent 60%),
    var(--steel-0);
  color: var(--t-hi);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
i { font-style: normal; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* Film grain on the steel world only (flat assets stay flat) */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
main, .nav, .footer { position: relative; z-index: 2; }

/* ---------- The label (red block, ink type) ---------- */
.label {
  display: inline-block;
  background: var(--red);
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  padding: 0.12em 0.38em 0.16em;
  transform: rotate(var(--rot-label));
  text-decoration: none;
}
.label-sm {
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding: 0.3em 0.7em 0.34em;
}
.label-sm i { opacity: 0.55; }

/* ---------- The pill (cream, ink type) ---------- */
.pill {
  display: inline-block;
  background: var(--cream);
  color: #0F0F0F;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.62em 1.1em 0.66em;
  border-radius: 999px;
  transform: rotate(var(--rot-pill));
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn-label {
  display: inline-block;
  background: var(--red);
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  padding: 1em 1.7em 1.05em;
  transform: rotate(var(--rot-label));
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}
.btn-label:hover {
  background: #FF4130;
  transform: rotate(var(--rot-label)) translateY(-2px);
  box-shadow: 0 10px 34px rgba(232, 51, 35, 0.28);
}
.btn-label:active { transform: rotate(var(--rot-label)) translateY(0) scale(0.98); }

.btn-ghost {
  display: inline-block;
  color: var(--t-mid);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  padding: 1em 1.4em 1.05em;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { color: var(--t-hi); border-color: rgba(248,246,240,0.4); background: rgba(248,246,240,0.04); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 11, 14, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  height: 64px;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark { text-decoration: none; flex-shrink: 0; }
.wordmark .label-sm { font-size: 0.78rem; }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
.nav-links a {
  color: var(--t-mid);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.4em 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--t-hi); }
.nav-links a:hover::after { width: 100%; }
.pill-cta { flex-shrink: 0; font-size: 0.72rem; transition: transform 0.2s var(--ease), box-shadow 0.2s ease; }
.pill-cta:hover { transform: rotate(var(--rot-pill)) translateY(-2px); box-shadow: 0 8px 24px rgba(248,246,240,0.12); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem clamp(1rem, 4vw, 2.5rem) 4rem;
  position: relative;
}
.kicker {
  color: var(--t-low);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 2.2rem;
}
.mono { font-family: var(--mono); }

.hero-title {
  font-size: var(--text-hero);
  letter-spacing: -0.04em;
  line-height: 0.98;
  display: flex; flex-direction: column; align-items: center;
}
/* Two-line stagger: upper offset left, lower offset right, slight overlap */
.hero-line { display: block; }
.hero-line-1 { transform: translateX(-1.5%); }
.hero-line-2 { transform: translateX(2.5%); margin-top: -0.09em; }

.hero-sub {
  max-width: 34em;
  margin-top: 2.4rem;
  color: var(--t-mid);
  font-size: var(--text-lg);
  line-height: 1.55;
}
.hero-ctas {
  margin-top: 2.6rem;
  display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center;
}
.hero-intent { margin-top: 3.2rem; }
.hero-intent .pill { font-size: 0.72rem; }

/* ---------- Sections ---------- */
.section { padding: var(--section-py) clamp(1rem, 4vw, 2.5rem); }
.container { max-width: 1120px; margin: 0 auto; }
.container-narrow { max-width: 780px; }
.section-kicker { margin-bottom: 2.6rem; }
.section-title {
  font-size: var(--text-title);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.6rem;
}
.section-title .hero-line-2 { margin-top: -0.06em; }
.section-sub {
  color: var(--t-mid);
  max-width: 38em;
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: 3rem;
}
.section-sub strong, .section-sub b { color: var(--t-hi); }

/* ---------- Dictionary card ---------- */
.dict-card {
  background: var(--steel-1);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  position: relative;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.dict-card::before {
  /* halftone corner. texture lives on the world, kept off the flat label/pill assets */
  content: "";
  position: absolute; top: 0; right: 0;
  width: 180px; height: 180px;
  background-image: radial-gradient(rgba(248,246,240,0.13) 1px, transparent 1.5px);
  background-size: 9px 9px;
  mask-image: radial-gradient(circle at top right, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at top right, #000 0%, transparent 72%);
  pointer-events: none;
}
.dict-word {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dict-meta {
  color: var(--t-low);
  font-size: 0.8rem;
  margin-top: 0.9rem;
  letter-spacing: 0.04em;
}
.dict-def {
  margin-top: 1.8rem;
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--t-hi);
  max-width: 46em;
}
.dict-cite {
  margin-top: 1.8rem;
  color: var(--t-low);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Prose ---------- */
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 820px) { .prose-grid { grid-template-columns: 1fr; } }
.prose h3 { margin-bottom: 1.6rem; }
.pill-h { font-size: 0.72rem; }
.prose p { color: var(--t-mid); margin-bottom: 1.1rem; max-width: 62ch; }
.prose p strong { color: var(--t-hi); }
.prose em { color: var(--t-hi); font-style: italic; }

.duty-list { list-style: none; }
.duty-list li {
  color: var(--t-mid);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-base);
}
.duty-list li:first-child { padding-top: 0; }
.duty-list li strong { color: var(--t-hi); display: block; margin-bottom: 0.15rem; }

/* ---------- Glossary ---------- */
.glossary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1020px) { .glossary { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .glossary { grid-template-columns: 1fr; } }
.gloss-item { background: var(--steel-1); padding: 1.6rem 1.4rem 1.8rem; }
.gloss-item .pill-term { font-size: 0.68rem; margin-bottom: 1rem; }
.gloss-item p { color: var(--t-mid); font-size: 0.92rem; line-height: 1.6; margin-top: 0.9rem; }

/* ---------- Slop Test ---------- */
.section-test {
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(232, 51, 35, 0.07) 0%, transparent 65%),
    var(--steel-0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.test-stage {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.test-card {
  background: var(--steel-2);
  border: 1px solid var(--line-strong);
  position: relative;
  z-index: 2;
  padding: 0;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}
.test-card:active { cursor: grabbing; }
.test-card.behind {
  position: absolute; inset: 0 0 auto 0;
  z-index: 1;
  transform: scale(0.95) translateY(18px);
  opacity: 0.5;
  pointer-events: none;
}

.frame {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 10%, #232733 0%, #10121a 55%, #0a0b10 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.4rem;
}
.frame::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(248,246,240,0.08) 1px, transparent 1.4px);
  background-size: 7px 7px;
  pointer-events: none;
}
.frame-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-no {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--t-low);
  text-transform: uppercase;
  position: relative; z-index: 2;
}
.frame-icon { width: clamp(110px, 32%, 180px); opacity: 0.9; align-self: center; position: relative; z-index: 2;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5)); }
.frame-desc {
  position: relative; z-index: 2;
  color: var(--t-hi);
  font-size: 1rem;
  line-height: 1.5;
  background: rgba(10, 11, 14, 0.88);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
}

.test-controls {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.4rem 1.3rem;
  gap: 1rem;
}
.btn-slop, .btn-clean {
  font-family: var(--font);
  font-weight: 700; text-transform: uppercase;
  font-size: 0.85rem; letter-spacing: 0.06em;
  padding: 0.85em 1.5em; cursor: pointer; border: none;
  transition: transform 0.15s var(--ease), box-shadow 0.2s ease;
}
.btn-slop { background: var(--red); color: var(--ink); transform: rotate(var(--rot-label)); }
.btn-clean { background: var(--cream); color: #0F0F0F; border-radius: 999px; transform: rotate(var(--rot-pill)); }
.btn-slop:hover { transform: rotate(var(--rot-label)) scale(1.05); box-shadow: 0 8px 26px rgba(232,51,35,0.3); }
.btn-clean:hover { transform: rotate(var(--rot-pill)) scale(1.05); box-shadow: 0 8px 26px rgba(248,246,240,0.15); }
.test-hint {
  font-family: var(--mono);
  color: var(--t-low); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center;
}

/* Verdict overlay */
.verdict {
  position: absolute; inset: 0;
  background: rgba(10, 11, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.verdict.show { opacity: 1; pointer-events: auto; }
.verdict-call {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.verdict-result {
  font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0.8rem 0 1.4rem;
}
.verdict-result.right { color: #6FCF7C; }
.verdict-result.wrong { color: var(--red); }
.verdict-note { color: var(--t-mid); font-size: 1rem; line-height: 1.65; max-width: 36ch; margin-bottom: 2rem; }
.verdict .btn-label { font-size: 0.8rem; }

/* Progress */
.test-progress {
  position: absolute; top: -2.4rem; left: 0; right: 0;
  display: flex; gap: 6px;
}
.test-progress span {
  flex: 1; height: 3px; background: rgba(248,246,240,0.12);
  transition: background 0.3s ease;
}
.test-progress span.done { background: var(--red); }

/* Score screen */
.score-screen {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--steel-2);
  border: 1px solid var(--line-strong);
  min-height: 640px;
}
.score-big {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-rank { margin: 1.4rem 0 1rem; }
.score-rank .label { font-size: clamp(1.2rem, 3.5vw, 1.8rem); }
.score-word { color: var(--t-mid); max-width: 34ch; margin-bottom: 2.2rem; }
.score-screen .signup { margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 0.2rem;
  cursor: pointer;
  transition: padding-left 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { padding-left: 0.7rem; }
.faq-item summary h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.faq-x {
  font-size: 1.6rem; font-weight: 400;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
  line-height: 1;
}
.faq-item[open] .faq-x { transform: rotate(45deg); }
.faq-body { padding: 0 0.2rem 1.8rem; }
.faq-body p { color: var(--t-mid); max-width: 62ch; }
.faq-body a { color: var(--t-hi); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.faq-body strong { color: var(--t-hi); }
.faq-body em { color: var(--t-hi); }

/* ---------- Report / signup ---------- */
.section-report {
  background:
    radial-gradient(90% 60% at 50% 100%, rgba(232, 51, 35, 0.09) 0%, transparent 65%),
    var(--steel-0);
  border-top: 1px solid var(--line);
  text-align: center;
}
.section-report .section-kicker,
.section-report .section-title { display: flex; flex-direction: column; align-items: center; }
.section-report .section-sub { margin-left: auto; margin-right: auto; }

.signup {
  display: flex; flex-wrap: wrap; gap: 0.9rem;
  justify-content: center; align-items: stretch;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.signup input[type="email"] {
  flex: 1 1 260px;
  background: var(--steel-2);
  border: 1px solid var(--line-strong);
  color: var(--t-hi);
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 1em 1.2em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup input[type="email"]::placeholder { color: var(--t-low); }
.signup input[type="email"]:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 51, 35, 0.18);
}
.signup-note {
  flex-basis: 100%;
  color: var(--t-low);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.signup.sent input, .signup.sent .btn-label, .signup.sent .signup-note { display: none; }
.signup-done { display: none; }
.signup.sent .signup-done {
  display: inline-block;
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 2.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-line { color: var(--t-low); font-size: 0.85rem; margin-top: 1.1rem; line-height: 1.6; }
.footer-line.mono { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a {
  color: var(--t-mid); text-decoration: none;
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--t-hi); }
.footer-right { text-align: right; }
@media (max-width: 820px) { .footer-right { text-align: left; } }
.footer-right .footer-line { color: var(--t-mid); }

/* ---------- Print details (selection, progress strip) ---------- */
::selection { background: var(--red); color: var(--cream); }

.progress-strip {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
}

/* ---------- Hero corner marks ---------- */
.hero-marks { position: absolute; inset: 0; pointer-events: none; }
.hero-marks .mark {
  position: absolute;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--t-low);
  text-transform: uppercase;
}
.mark-tl { top: 88px; left: clamp(1rem, 4vw, 2.5rem); }
.mark-tr { top: 88px; right: clamp(1rem, 4vw, 2.5rem); text-align: right; }
.mark-bl { bottom: 74px; left: clamp(1rem, 4vw, 2.5rem); }
.mark-br { bottom: 74px; right: clamp(1rem, 4vw, 2.5rem); text-align: right; }
@media (max-width: 700px) { .mark-bl, .mark-tr { display: none; } }

/* ---------- Hero sticker (the eye) ---------- */
.hero-line-2 { position: relative; }
.hero-sticker {
  position: absolute;
  top: -0.52em; right: -0.62em;
  width: clamp(64px, 9vw, 130px);
  transform: rotate(9deg);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero-sticker { top: -0.7em; right: 0.1em; width: 58px; }
}

/* ---------- Misregistration hover (second print pass slips) ---------- */
.hero-title .label, .section-title .label {
  transition: text-shadow 0.18s ease, transform 0.18s ease;
}
.hero-title .label:hover, .section-title .label:hover {
  text-shadow: 0.045em 0.035em 0 var(--cream);
}

/* ---------- The ticker strip ---------- */
.ticker {
  position: absolute;
  bottom: 0; left: -2%;
  width: 104%;
  background: var(--red);
  transform: rotate(var(--rot-label));
  overflow: hidden;
  padding: 0.55em 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-run 30s linear infinite;
}
.ticker-track span {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@keyframes ticker-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Archive-card details on the dictionary entry ---------- */
.dict-card { transform: rotate(-0.15deg); }
.dict-tab {
  position: absolute;
  top: -13px; left: 34px;
  background: var(--red);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.35em 0.9em;
  transform: rotate(var(--rot-label));
}
.dict-foot {
  margin-top: 1.8rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dict-foot .dict-cite { margin-top: 0; }
.dict-code { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.barcode {
  display: block;
  width: 120px; height: 26px;
  background: repeating-linear-gradient(
    90deg,
    var(--t-mid) 0 2px, transparent 2px 4px,
    var(--t-mid) 4px 7px, transparent 7px 9px,
    var(--t-mid) 9px 10px, transparent 10px 14px,
    var(--t-mid) 14px 16px, transparent 16px 17px
  );
  opacity: 0.55;
}
.dict-code em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.22em; color: var(--t-low); }

/* ---------- Slop test: bank note, ghost number, crop marks, stamps ---------- */
.bank-note {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--t-low);
  margin: -1.6rem 0 3rem;
}
.frame::before {
  content: "";
  position: absolute; inset: 10px;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(var(--t-low), var(--t-low)) top left / 14px 1px,
    linear-gradient(var(--t-low), var(--t-low)) top left / 1px 14px,
    linear-gradient(var(--t-low), var(--t-low)) top right / 14px 1px,
    linear-gradient(var(--t-low), var(--t-low)) top right / 1px 14px,
    linear-gradient(var(--t-low), var(--t-low)) bottom left / 14px 1px,
    linear-gradient(var(--t-low), var(--t-low)) bottom left / 1px 14px,
    linear-gradient(var(--t-low), var(--t-low)) bottom right / 14px 1px,
    linear-gradient(var(--t-low), var(--t-low)) bottom right / 1px 14px;
  background-repeat: no-repeat;
  opacity: 0.7;
}
.frame-ghost {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(11rem, 40vw, 17rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(248, 246, 240, 0.045);
  z-index: 0;
  pointer-events: none;
}
.stamp {
  position: absolute;
  top: 14%;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.stamp-slop { right: 8%; transform: rotate(12deg); }
.stamp-clean { left: 8%; transform: rotate(-10deg); font-size: clamp(1.1rem, 3.4vw, 1.6rem); }

/* ---------- Report seasoning ---------- */
.section-report .report-icon {
  width: clamp(96px, 12vw, 130px);
  margin: 0 auto 1.6rem;
  transform: rotate(-6deg);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
}
.stat-strip {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--t-low);
  text-transform: uppercase;
  margin: -1.2rem 0 2.6rem;
}

/* ---------- FAQ index numbers ---------- */
.faq-n {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--red);
  flex-shrink: 0;
  padding-top: 0.45em;
}
.faq-item summary { justify-content: flex-start; }
.faq-item summary h3 { flex: 1; }

/* ---------- Subpages (become / salary) ---------- */
.page-hero {
  padding: calc(64px + clamp(3rem, 8vw, 6rem)) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}
.crumb {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--t-low);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--t-mid); }
.page-title {
  font-size: clamp(2rem, 1rem + 5.5vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  display: flex; flex-direction: column; align-items: flex-start;
}
.page-title .hero-line-1 { transform: translateX(0); }
.page-title .hero-line-2 { transform: translateX(1.2%); margin-top: -0.09em; }
.page-sub {
  max-width: 44em;
  margin-top: 2rem;
  color: var(--t-mid);
  font-size: var(--text-lg);
  line-height: 1.6;
}
.page-sub strong { color: var(--t-hi); }
.page-meta {
  margin-top: 1.6rem;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--t-low);
  text-transform: uppercase;
}

/* ---------- The three stages ---------- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .stage-grid { grid-template-columns: 1fr; } }
.stage { background: var(--steel-1); padding: 1.8rem 1.6rem 2rem; }
.stage-no {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.stage h2 { margin-bottom: 1.2rem; }
.stage p { color: var(--t-mid); font-size: 0.95rem; line-height: 1.65; }
.stage p strong { color: var(--t-hi); }
.stage-link { margin-top: 1rem; }
.stage-link a {
  color: var(--t-hi);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- The 12 checkpoints ---------- */
.check-progress { max-width: 560px; margin-bottom: 2.4rem; }
.check-score {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--t-hi);
  margin-bottom: 0.7rem;
}
.check-bar {
  height: 6px;
  background: rgba(248, 246, 240, 0.1);
  overflow: hidden;
}
.check-bar span {
  display: block; height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.5s var(--ease);
}
.checklist { display: flex; flex-direction: column; gap: 2.2rem; max-width: 760px; }
.check-head { margin-bottom: 0.4rem; }
.check-item {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  color: var(--t-mid);
  font-size: 0.97rem;
  line-height: 1.55;
  transition: color 0.2s ease;
}
.check-item:hover { color: var(--t-hi); }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.check-item i {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 0.15em;
  border: 2px solid var(--line-strong);
  transform: rotate(var(--rot-label));
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.check-item input:checked + i { background: var(--red); border-color: var(--red); }
.check-item input:checked + i::after {
  content: "";
  position: absolute; inset: 3px 4px 6px 4px;
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(-45deg);
}
.check-item input:checked ~ span { color: var(--t-hi); }
.check-item input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 3px; }
.check-item a { color: var(--t-hi); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---------- Checklist capture ---------- */
.check-capture {
  margin-top: 2.8rem;
  max-width: 620px;
  border: 1px solid var(--line-strong);
  background: var(--steel-1);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.check-capture .section-sub { margin-bottom: 1.4rem; font-size: var(--text-base); }
.check-capture .signup { justify-content: flex-start; margin: 0; max-width: none; }

/* ---------- Bar chart ---------- */
.bar-chart {
  border: 1px solid var(--line);
  background: var(--steel-1);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  margin-bottom: 2.5rem;
}
.chart-title {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--t-low);
  margin-bottom: 1.8rem;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr 64px;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 560px) {
  .bar-row { grid-template-columns: 1fr 56px; }
  .bar-row .bar-label { grid-column: 1 / -1; margin-bottom: 0.2rem; }
}
.bar-label { color: var(--t-mid); font-size: 0.88rem; line-height: 1.35; }
.bar-track { background: rgba(248, 246, 240, 0.07); height: 26px; }
.bar {
  display: block; height: 100%;
  width: var(--w, 0%);
  background: var(--cream);
  transform-origin: left center;
  animation: bar-grow 0.9s var(--ease) both;
}
.bar-red { background: var(--red); }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar-val { color: var(--t-hi); font-size: 0.82rem; font-variant-numeric: tabular-nums; text-align: right; }
.chart-note {
  margin-top: 1.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--t-low);
  line-height: 1.8;
}

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--steel-1);
  font-size: 0.92rem;
}
.data-table th, .data-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table thead th {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-low);
  font-family: var(--mono);
  font-weight: 400;
}
.data-table tbody th { color: var(--t-hi); font-weight: 700; }
.data-table td { color: var(--t-mid); font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover { background: rgba(248, 246, 240, 0.02); }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  max-width: 900px;
}
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.calc-controls {
  background: var(--steel-2);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.calc-field { display: flex; flex-direction: column; gap: 0.5rem; }
.calc-field .mono {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--t-low);
}
.calc-field select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--steel-0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E83323' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--line-strong);
  color: var(--t-hi);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.85em 2.6em 0.9em 1em;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.calc-field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232, 51, 35, 0.18); }
.calc-out {
  background: var(--steel-1);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.calc-range {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--t-hi);
  font-variant-numeric: tabular-nums;
  background: var(--red);
  color: var(--ink);
  display: inline-block;
  align-self: flex-start;
  padding: 0.15em 0.4em 0.2em;
  transform: rotate(var(--rot-label));
}
.calc-unit {
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--t-mid);
}

/* ---------- Glossary ---------- */
.gloss-filter { margin-top: 2.4rem; max-width: 480px; }
.gloss-filter input {
  width: 100%;
  background: var(--steel-2);
  border: 1px solid var(--line-strong);
  color: var(--t-hi);
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 1em 1.2em;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gloss-filter input::placeholder { color: var(--t-low); }
.gloss-filter input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 51, 35, 0.18);
}
.term-group { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.term-group .section-kicker { margin-bottom: 1rem; }
.term {
  position: relative;
  padding: 1.6rem 2.4rem 1.7rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.term h2 { margin-bottom: 0.9rem; }
.term p { color: var(--t-mid); max-width: 62ch; line-height: 1.65; }
.term p a {
  color: var(--t-hi);
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.term:target { background: rgba(232, 51, 35, 0.05); }
.term-anchor {
  position: absolute;
  top: 1.7rem; right: 0.2rem;
  color: var(--t-low);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.term-anchor:hover { color: var(--red); }
.gloss-empty {
  padding: 2rem 0;
  color: var(--t-low);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.gloss-cta { margin-top: 3rem; }
.gloss-cta .section-sub { margin-bottom: 1.6rem; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* Hero lines keep their stagger offsets after reveal */
.hero-line-1.reveal { transform: translateX(-1.5%) translateY(30px); }
.hero-line-1.reveal.in { transform: translateX(-1.5%); }
.hero-line-2.reveal { transform: translateX(2.5%) translateY(30px); }
.hero-line-2.reveal.in { transform: translateX(2.5%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-line-1.reveal, .hero-line-2.reveal { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
