/* Hourwiz. Flat cartoon brand system derived from the explainer-video palette.
   Radius rule: interactive controls are full pills; panels/tiles are 28px; small chips 10px. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/spacegrotesk-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand (fixed in both themes) */
  --night: #171936;
  --night-2: #0F1126;
  --violet: #6A4FE0;
  --orange: #FF8759;
  --orange-lip: #C2541F;
  --cream: #FFF8E8;
  --cream-lip: #E3DCCD;
  --yellow: #F6D65B;
  --cyan: #3CF2FF;
  --red: #FF4D5E;

  /* Theme tokens: light */
  --bg: #FFF8E8;
  --bg-dot: rgba(27, 20, 70, 0.10);
  --text: #171936;
  --text-2: #463E77;
  --line: rgba(27, 20, 70, 0.16);
  --field: #FDFCFF;
  --field-border: #8D84C4;
  --focus: #5B3FD1;
  --link: #4B2FB8;
  --error: #B0122B;
  --ok: #0A6B57;
  --shadow: 0 18px 40px -18px rgba(27, 20, 70, 0.35);

  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-tile: 28px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171936;
    --bg-dot: rgba(255, 250, 242, 0.07);
    --text: #FFFAF2;
    --text-2: #CBC4F2;
    --line: rgba(255, 250, 242, 0.16);
    --field: #120D33;
    --field-border: #7E74C2;
    --focus: #3CF2FF;
    --link: #3CF2FF;
    --error: #FF8A96;
    --ok: #7CF3D2;
    --shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.6px, transparent 1.8px);
  background-size: 30px 30px;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--yellow); color: var(--night); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--text); line-height: 1.1; text-wrap: balance; }
.section-title {
  font-weight: 900;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.section-lede { color: var(--text-2); font-size: 1.125rem; max-width: 52ch; margin: 14px 0 0; }
mark {
  background: var(--yellow);
  color: var(--night);
  padding: 0 0.16em;
  border-radius: 0.16em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- buttons ---------- */
.btn {
  --lip: var(--orange-lip);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 999px;
  font: 800 1.0625rem/1 var(--display);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--lip);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--lip); }
.btn[disabled] { cursor: progress; filter: saturate(0.6); }
.btn-primary { background: var(--orange); color: var(--night); }
.btn-secondary { --lip: #0FA9B5; background: var(--cyan); color: var(--night); }

/* ---------- header ---------- */
.site-header { padding-block: 14px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 900 1.45rem/1 var(--display); letter-spacing: -0.03em;
}
.logo .wiz-mark { width: 42px; height: 42px; }
.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem;
}
.nav-list a:hover { background: var(--line); }
.nav-list .nav-pill { background: var(--text); color: var(--bg); }
.nav-list .nav-pill:hover { background: var(--text); opacity: 0.9; }
@media (max-width: 760px) { .nav-hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(16px, 4vw, 56px) clamp(24px, 4vw, 48px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.hero-title {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.35rem, 1.3rem + 4.2vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 13ch;
}
.hero-title > span { display: inline-block; }
.hero-title mark { display: inline-block; transform: rotate(-2deg); padding: 0.02em 0.14em 0; margin-top: 0.06em; }
.hero-sub { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--text-2); max-width: 44ch; margin: 22px 0 26px; }
.hero-alt { margin: 6px 0 0; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--text); text-decoration: none;
  padding: 6px 2px;
}
.link-arrow .brand-icon { width: 22px; height: 22px; color: #FF0033; }
.link-arrow:hover { text-decoration: underline; }
/* "Latest video" card: social comments can't carry links, so the homepage points at the newest /v/ page. */
.latest {
  display: grid; gap: 4px; max-width: 540px; margin: 0 0 22px;
  padding: 14px 18px 14px; border-radius: 20px;
  background: var(--field); border: 2px solid var(--text); box-shadow: 0 5px 0 var(--text);
  color: var(--text); text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.latest:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--text); }
.latest:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--text); }
.latest:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.latest-kicker {
  justify-self: start; padding: 4px 10px; border-radius: 10px;
  background: var(--yellow); color: var(--night);
  font: 800 0.75rem/1.2 var(--display); letter-spacing: 0.05em; text-transform: uppercase;
}
.latest-title { font: 900 1.1rem/1.2 var(--display); letter-spacing: -0.01em; }
.latest-cta { font-weight: 700; font-size: 0.95rem; color: var(--link); }
.hero-wiz { justify-self: center; width: 100%; max-width: 470px; cursor: pointer; }
.hero-wiz .wiz { width: 100%; height: auto; overflow: visible; }
/* On dark backgrounds the mark's night outline melts into the page; a soft violet glow (as on the brand avatar) keeps the silhouette. */
@media (prefers-color-scheme: dark) {
  .hero-wiz, .status-wiz { background: radial-gradient(closest-side, rgba(246, 214, 91, 0.35), rgba(246, 214, 91, 0.12) 70%, transparent); }
  .hero-wiz .wiz-shadow { fill: #000; opacity: 0.35; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-wiz { order: -1; max-width: 128px; justify-self: start; margin-bottom: -10px; }
  .hero-title { max-width: 14ch; }
}

/* ---------- signup form ---------- */
.signup { max-width: 540px; }
.signup-label { display: block; font-weight: 700; margin-bottom: 8px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type="email"] {
  flex: 1 1 auto; min-width: 0;
  height: 56px; padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--field-border);
  background: var(--field);
  color: var(--text);
  font: 500 1.0625rem/1 var(--body);
}
.signup input::placeholder { color: var(--text-2); opacity: 0.85; }
.signup input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.signup input[aria-invalid="true"] { border-color: var(--error); }
.signup-help { font-size: 0.9375rem; color: var(--text-2); margin: 10px 0 0; }
.signup-help a { color: inherit; }
.signup-status { margin: 8px 0 0; font-weight: 700; min-height: 1.6em; }
.signup-status[data-tone="error"] { color: var(--error); }
.signup-status[data-tone="ok"] { color: var(--ok); }
.signup.is-done .signup-row, .signup.is-done .signup-label { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) {
  .signup-row { flex-direction: column; }
  .signup .btn { width: 100%; }
}

/* ---------- shows bento ---------- */
.shows { padding-block: clamp(56px, 8vw, 104px); }
.bento {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  border-radius: var(--r-tile);
  padding: 26px 26px 24px;
  display: flex; flex-direction: column;
  min-height: 330px;
  box-shadow: var(--shadow);
  color: var(--night);
}
.tile-explained { grid-column: span 7; background: var(--orange); }
.tile-tested { grid-column: span 5; background: var(--cream); }
.tile-deep { grid-column: span 12; min-height: 0; background: var(--night-2); color: var(--cream); outline: 2px solid rgba(255, 250, 242, 0.12); outline-offset: -2px; }
.tile-visual { flex: 1 1 auto; display: grid; place-items: center start; min-height: 140px; margin-bottom: 18px; }
.tile-name {
  color: inherit;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  line-height: 1; letter-spacing: -0.02em;
}
.tile-body { margin: 10px 0 0; max-width: 46ch; font-size: 1.0625rem; }
.tile-next { margin: 16px 0 0; font-weight: 700; font-size: 0.975rem; line-height: 1.4; }
.tile-next span {
  display: inline-block; margin-right: 6px; padding: 3px 9px; border-radius: 10px;
  background: var(--night); color: var(--cream);
  font: 800 0.75rem/1.4 var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  vertical-align: 1px;
}
.tile-deep .tile-next span { background: var(--yellow); color: var(--night-2); }
.tile-deep .tile-body { color: #DCD6F7; }

/* race clocks */
.race { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); flex-wrap: wrap; }
.race-lane span { display: block; font: 800 0.85rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.race-lane b {
  display: block;
  font: 900 clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem)/1 var(--display);
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
  background: var(--night); color: var(--yellow);
  padding: 10px 16px 8px; border-radius: 18px;
}
.race-lane:last-child b { color: var(--cyan); }
.race-vs { font: 900 1.1rem/1 var(--display); text-transform: uppercase; align-self: flex-end; padding-bottom: 18px; }
@media (max-width: 520px) {
  .race { flex-wrap: nowrap; gap: 8px; }
  .race-lane b { font-size: 1.75rem; padding: 8px 10px 6px; border-radius: 12px; }
  .race-vs { font-size: 0.9rem; padding-bottom: 12px; }
}

/* autopsy */
.autopsy { width: min(100%, 300px); height: auto; overflow: visible; }
.autopsy text { font: 900 17px var(--display); letter-spacing: 0.06em; }
.autopsy-stamp { transform: rotate(-6deg); transform-box: fill-box; transform-origin: center; }

/* hire or fire */
.verdict { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.verdict span {
  font: 900 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1 var(--display); text-transform: uppercase;
  padding: 12px 18px 10px; border-radius: 14px; border: 4px solid currentColor;
}
.verdict-hire { color: #0A6B57; transform: rotate(-4deg); }
.verdict-fire { color: #C8102E; transform: rotate(3deg); }
.verdict .verdict-or { border: 0; padding: 0; font-size: 1.1rem; color: var(--night); }

/* steal this workflow */
.flow { width: min(100%, 420px); height: auto; }
.flow text { font: 800 13px var(--display); fill: var(--night); }
.flow .flow-ai { fill: var(--cyan); font-size: 16px; }

@media (max-width: 900px) {
  .tile-explained, .tile-tested, .tile-deep { grid-column: span 12; }
  .tile { min-height: 0; }
}

/* ---------- newsletter panel ---------- */
.newsletter { padding-block: clamp(24px, 4vw, 48px) clamp(56px, 8vw, 104px); }
.panel {
  background: var(--cream);
  color: var(--night);
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(26px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  box-shadow: var(--shadow), 0 0 0 6px rgba(106, 79, 224, 0.18);
}
/* The panel is always cream, so it carries its own light tokens. */
.panel { --text: #171936; --text-2: #463E77; --field: #FFFFFF; --field-border: #8D84C4; --focus: #5B3FD1; --link: #4B2FB8; --error: #B0122B; --ok: #0A6B57; }
.panel .section-title { color: var(--night); }
.perks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; max-width: 52ch; }
.perks li { padding-left: 34px; position: relative; color: var(--text-2); }
.perks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 20px; height: 20px; border-radius: 6px; background: var(--yellow);
  box-shadow: inset 0 0 0 2px var(--night);
}
.perks strong { color: var(--night); }

.issue {
  position: relative;
  background: var(--night);
  color: var(--cream);
  border-radius: var(--r-tile);
  padding: 28px 26px 26px;
  transform: rotate(1.5deg);
  box-shadow: 0 24px 40px -22px rgba(17, 12, 46, 0.7);
}
.issue-kicker { margin: 0 0 10px; font: 800 0.8rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow); }
.issue h3 { color: var(--cream); font-weight: 900; font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.01em; max-width: 22ch; }
.issue-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.issue-steps li { font-size: 0.975rem; color: #DCD6F7; }
.issue-steps b { display: block; font: 800 0.75rem/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); }
.issue-file { margin: 18px 0 0; display: inline-block; padding: 6px 12px; border-radius: 10px; background: var(--yellow); color: var(--night); font-weight: 700; font-size: 0.9rem; }
.issue-wiz { position: absolute; right: -18px; top: -38px; width: 78px; transform: rotate(10deg); }

@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .issue { transform: none; }
  .issue-wiz { right: 10px; top: -36px; width: 64px; }
}

/* ---------- follow ---------- */
.follow { padding-block: clamp(56px, 8vw, 104px); }
.channels {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(128px, auto);
  gap: 14px;
}
.channel a {
  height: 100%;
  display: grid; align-content: end; gap: 2px;
  padding: 18px;
  border-radius: 22px;
  border: 2px solid var(--line);
  background: color-mix(in srgb, var(--bg) 70%, var(--text) 4%);
  color: var(--text); text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease;
}
.channel a:hover { transform: translateY(-3px); border-color: var(--text); }
.channel .brand-icon { width: 28px; height: 28px; margin-bottom: auto; align-self: start; }
.channel-name { font: 900 1.15rem/1.15 var(--display); margin-top: 18px; }
.channel-handle { font-weight: 600; color: var(--text-2); }
.channel-note { font-size: 0.875rem; color: var(--text-2); }
.channel-youtube { grid-column: span 2; grid-row: span 2; }
.channel-youtube a { background: #CC0029; border-color: #CC0029; color: #FFFFFF; padding: 26px; }
.channel-youtube a:hover { border-color: var(--text); }
.channel-youtube .brand-icon { width: 64px; height: 64px; }
.channel-youtube .channel-name { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.channel-youtube .channel-handle, .channel-youtube .channel-note { color: #FFFFFF; }
@media (max-width: 900px) {
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .channel-youtube { grid-row: auto; }
  .channel-youtube .brand-icon { width: 44px; height: 44px; }
  .channel-name { margin-top: 12px; }
}

/* ---------- sponsors ---------- */
.sponsor { padding-block: clamp(56px, 8vw, 104px); border-top: 2px solid var(--line); }
.sponsor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.sponsor-lede { font-size: 1.1875rem; max-width: 46ch; margin: 18px 0 10px; }
.sponsor-rule { color: var(--text-2); max-width: 46ch; margin: 0 0 28px; }
.sponsor-small { color: var(--text-2); font-size: 0.9375rem; margin-top: 14px; }
.formats { margin: 6px 0 0; display: grid; gap: 26px; }
.formats div { padding-left: 20px; border-left: 4px solid var(--orange); }
.formats dt { font: 900 1.25rem/1.2 var(--display); }
.formats dd { margin: 6px 0 0; color: var(--text-2); max-width: 44ch; }
@media (max-width: 860px) { .sponsor-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--night-2); color: var(--cream); padding-block: 48px 36px; }
.site-footer a { color: var(--cream); }
.footer-grid { display: grid; grid-template-columns: 1.4fr auto auto; gap: 28px 48px; align-items: start; }
.footer-brand p { margin: 12px 0 0; color: #CBC4F2; max-width: 32ch; }
.logo-lg { color: var(--cream); font-size: 1.8rem; }
.logo-lg .wiz-mark { width: 56px; height: 56px; }
.footer-social ul, .footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-social ul { display: flex; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255, 250, 242, 0.1); }
.footer-social a:hover { background: rgba(255, 250, 242, 0.2); }
.footer-social .brand-icon { width: 20px; height: 20px; }
.footer-links li + li { margin-top: 10px; }
.footer-copy { grid-column: 1 / -1; margin: 12px 0 0; color: #A79FD9; font-size: 0.9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- simple pages ---------- */
.prose-wrap { padding-block: 24px 88px; }
.prose { max-width: 68ch; }
.prose h1 { font-weight: 900; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); letter-spacing: -0.02em; }
.prose h2 { font-weight: 900; font-size: 1.4rem; margin: 36px 0 8px; }
.prose-meta { color: var(--text-2); margin-top: 6px; }
.prose li + li { margin-top: 6px; }
.page-status main { display: grid; place-items: center; min-height: 60dvh; }
.status-card { text-align: center; max-width: 34rem; display: grid; justify-items: center; }
.status-card h1 { font-weight: 900; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.02em; margin-top: 18px; }
.status-card p { color: var(--text-2); }
.status-card .btn { margin-top: 10px; }
.status-wiz { width: 150px; }
.status-wiz-lost { transform: rotate(-8deg); }

/* ---------- Wiz animation (SVG hourglass rig, see src/wiz.mjs) ---------- */
.hw-arm, .hw-flip { transform-box: view-box; transform-origin: 0 0; }
.hw-eyes, .hw-brow, .hw-star, .wiz-twinkle, .wiz-shadow, .hw-grain { transform-box: fill-box; transform-origin: center; }
.hw-mouth { transform-box: fill-box; transform-origin: 50% 0; }
.hw-grain { opacity: 0; } /* the risers only appear when motion is allowed; the static logo grains stay otherwise */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .wiz-bob { animation: wiz-bob 3.2s ease-in-out infinite alternate; }
  .wiz-shadow { animation: wiz-shadow 3.2s ease-in-out infinite alternate; }
  .wiz .hw-eyes, .status-wiz .hw-eyes { animation: wiz-blink 5.2s infinite; }
  .wiz .hw-brow { animation: hw-brow 5.2s ease-in-out infinite; }
  .wiz .hw-mouth { animation: hw-talk 5.2s ease-in-out infinite; }
  .wiz .hw-arm { animation: hw-wave 6s ease-in-out 1s infinite; }
  .wiz .hw-star, .status-wiz .hw-star { animation: wiz-star 2.6s ease-in-out infinite; }
  .wiz-twinkle { animation: wiz-twinkle 2.2s ease-in-out infinite; }
  .wiz-twinkle-2 { animation-delay: 1.1s; }
  .wiz-twinkle-3 { animation-delay: 0.55s; }
  /* Time given back: grains rise out of the pile, through the waist, into the top bulb. */
  .wiz .hw-grains-static { opacity: 0; }
  .wiz .hw-grains .hw-grain { animation: hw-rise 4.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; animation-delay: calc(var(--i) * -0.9s); }
  /* Feedback: hovering Wiz, or a successful signup, flips the hourglass and sends a burst of sand back up. */
  .hero-wiz:hover .hw-flip, .hero-wiz.is-rewinding .hw-flip { animation: hw-flip 1.2s cubic-bezier(0.5, -0.3, 0.3, 1.3); }
  .hero-wiz:hover .hw-burst .hw-grain, .hero-wiz.is-rewinding .hw-burst .hw-grain { animation: hw-rise 1.1s cubic-bezier(0.2, 0.6, 0.4, 1) both; animation-delay: calc(0.35s + var(--i) * 0.07s); }
  .hero-wiz:hover .hw-star, .hero-wiz.is-rewinding .hw-star { animation: hw-zap 1.2s ease-out; }

  /* Hero headline: word-by-word caption pop, like the videos. */
  .pop > span { animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .pop > span:nth-child(2) { animation-delay: 0.08s; }
  .pop > span:nth-child(3) { animation-delay: 0.16s; }
  .pop > span:nth-child(4) { animation-delay: 0.24s; }
  .pop > span:nth-child(5) { animation-delay: 0.32s; }
  .pop > span:nth-child(6) { animation-delay: 0.40s; }
  .pop > span:nth-child(7) { animation-delay: 0.56s; animation-duration: 0.6s; }
  .latest { animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards; }
  .hero-sub, .hero .signup, .hero-alt { animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
  .hero-wiz { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }

  /* Reveal on scroll (only when JS is running, so content never stays hidden). */
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .bento > :nth-child(2) { transition-delay: 0.08s; }
  .js .bento > :nth-child(3) { transition-delay: 0.04s; }
  .js .bento > :nth-child(4) { transition-delay: 0.12s; }
  .js .autopsy-string { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.1s ease 0.35s; }
  .js .is-in .autopsy-string { stroke-dashoffset: 0; }
  .js .autopsy-stamp { opacity: 0; transform: rotate(-6deg) scale(1.6); transition: opacity 0.2s ease 1.2s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s; }
  .js .is-in .autopsy-stamp { opacity: 1; transform: rotate(-6deg) scale(1); }
  .js .flow-line { stroke-dasharray: 34; stroke-dashoffset: 34; transition: stroke-dashoffset 0.5s ease 0.5s; }
  .js .is-in .flow-line { stroke-dashoffset: 0; }
  .verdict-hire, .verdict-fire { animation: verdict 3.2s ease-in-out infinite; }
  .verdict-fire { animation-delay: 1.6s; }
}

@keyframes wiz-bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes wiz-shadow { from { transform: scale(1); } to { transform: scale(0.9); } }
@keyframes wiz-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
@keyframes hw-brow { 0%, 8%, 40%, 100% { transform: translateY(0); } 14%, 32% { transform: translateY(-7px) rotate(-4deg); } }
@keyframes hw-talk {
  0%, 8%, 44%, 100% { transform: scaleY(1); }
  12% { transform: scaleY(0.55); } 17% { transform: scaleY(1.05); } 22% { transform: scaleY(0.6); }
  27% { transform: scaleY(1); } 32% { transform: scaleY(0.5); } 38% { transform: scaleY(1); }
}
@keyframes hw-wave {
  0%, 55%, 100% { transform: rotate(0deg); }
  63% { transform: rotate(-9deg); }
  71% { transform: rotate(5deg); }
  79% { transform: rotate(-7deg); }
  88% { transform: rotate(2deg); }
}
@keyframes hw-rise {
  0% { opacity: 0; transform: translate(var(--x0), 0) scale(0.7); }
  12% { opacity: 1; transform: translate(calc(var(--x0) * 0.8), -20px) scale(1); }
  45% { opacity: 1; transform: translate(var(--x1), -68px) scale(0.85); }
  85% { opacity: 1; transform: translate(var(--x2), calc(var(--y2) * 0.92)) scale(1); }
  100% { opacity: 0; transform: translate(var(--x2), var(--y2)) scale(0.6); }
}
@keyframes hw-flip {
  0% { transform: rotate(0deg) scale(1); }
  15% { transform: rotate(14deg) scale(0.96); }
  100% { transform: rotate(-360deg) scale(1); }
}
@keyframes hw-zap { 0% { transform: scale(1) rotate(0deg); } 30% { transform: scale(1.45) rotate(-30deg); } 100% { transform: scale(1) rotate(0deg); } }
@keyframes wiz-star { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.14) rotate(14deg); } }
@keyframes wiz-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.6); } }
@keyframes pop { from { opacity: 0; transform: scale(0.85) translateY(10px); } 60% { opacity: 1; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes verdict { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* template page */
.template-block { white-space: pre-wrap; overflow-x: auto; background: var(--surface-2, rgba(127,127,127,.12)); border-radius: 14px; padding: 18px 20px; font-size: .92rem; line-height: 1.55; }
.prose ol li { margin-bottom: 8px; }

/* ---------- video companion pages (/v/) ---------- */
.vpage h3 { font-weight: 800; font-size: 1.12rem; margin: 26px 0 6px; }
.vpage code { font-size: 0.92em; }
.v-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.v-wiz { width: 56px; flex: none; }
.v-wiz .wiz-mark { width: 100%; height: auto; }
.v-kicker {
  margin: 0; display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--yellow); color: var(--night);
  font: 800 0.85rem/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
}
.v-kicker span { font-weight: 600; text-transform: none; letter-spacing: 0; }
@media (max-width: 420px) { .v-kicker span { display: none; } }
.v-lede { font-size: 1.15rem; color: var(--text); }
.v-note {
  margin: 14px 0; padding: 12px 16px; border-radius: 14px;
  border-left: 4px solid var(--violet); background: var(--line); color: var(--text-2); font-size: 0.97rem;
}
.v-note strong { color: var(--text); }
.v-rule { font-size: 1.12rem; padding: 14px 18px; border-radius: 14px; background: var(--yellow); color: var(--night); }
.v-disclaimer, .v-disclosure { color: var(--text-2); font-size: 0.95rem; }
.v-disclaimer { font-weight: 700; color: var(--text); }
.v-download { margin: 20px 0; }
.v-download .btn { white-space: normal; text-align: center; line-height: 1.2; min-height: 52px; padding-block: 10px; }
.v-steps { padding-left: 1.4em; }
.v-steps > li { padding-left: 4px; }
.v-steps > li::marker { font: 900 1.05em var(--display); color: var(--violet); }
@media (prefers-color-scheme: dark) { .v-steps > li::marker { color: var(--cyan); } }
.v-steps ul { margin-top: 8px; }
.v-checklist > li { margin-bottom: 12px; }
.v-sources { padding-left: 1.4em; font-size: 0.97rem; }
.v-sources span { color: var(--text-2); }
.v-back { margin-top: 32px; font-weight: 700; }
.v-apps li + li, .v-warn li + li { margin-top: 10px; }

/* copy-paste blocks */
.template-block { position: relative; margin: 10px 0 18px; border: 1px solid var(--line); }
.template-block .copy-btn {
  position: absolute; top: 8px; right: 8px;
  padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--text); color: var(--bg); font: 700 0.85rem/1 var(--body);
}
.template-block.has-copy { padding-top: 44px; }

/* tables: scroll inside their own box on small screens, never the page */
.table-wrap { overflow-x: auto; margin: 14px 0 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); }
.v-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.v-table caption { text-align: left; padding: 12px 14px 4px; font-weight: 700; color: var(--text-2); font-size: 0.9rem; }
.v-table th, .v-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
.v-table thead th { font: 800 0.85rem/1.3 var(--display); text-transform: uppercase; letter-spacing: 0.03em; border-top: 0; }
.v-table tbody th { font-weight: 700; }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .v-table, .v-table tbody, .v-table tr, .v-table th, .v-table td { display: block; }
  .v-table caption { display: block; padding-bottom: 8px; }
  .v-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .v-table tr { padding: 12px 14px; border-top: 1px solid var(--line); }
  .v-table tbody th { padding: 0 0 6px; border: 0; font-family: var(--display); font-weight: 800; font-size: 1.02rem; }
  .v-table td { padding: 4px 0; border: 0; }
  .v-table td::before { content: attr(data-label); display: block; font: 800 0.72rem/1.4 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
}

/* wide tables (5+ columns): card layout at every width, label/value grid on desktop */
.v-table-cards, .v-table-cards tbody, .v-table-cards tr, .v-table-cards th, .v-table-cards td { display: block; }
.v-table-cards caption { display: block; padding-bottom: 8px; }
.v-table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.v-table-cards tr { padding: 14px 16px; border-top: 1px solid var(--line); }
.v-table-cards tbody th { padding: 0 0 8px; border: 0; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.v-table-cards td { padding: 4px 0; border: 0; }
.v-table-cards td::before { content: attr(data-label); display: block; font: 800 0.72rem/1.4 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
@media (min-width: 641px) {
  .v-table-cards td { position: relative; padding-left: 10.5rem; min-height: 1.6em; }
  .v-table-cards td::before { position: absolute; left: 0; top: 7px; width: 9.5rem; }
}

/* interview card + verdict */
.v-card { margin: 18px 0; padding: 22px 22px 18px; border-radius: var(--r-tile); background: var(--night); color: var(--cream); box-shadow: var(--shadow); }
.v-card-title { margin: 0 0 6px; font: 900 1.3rem/1.1 var(--display); color: var(--yellow); }
.v-card .v-steps > li::marker { color: var(--yellow); }
.v-card strong { color: var(--cream); }
.v-verdict { margin: 16px 0 0; display: grid; gap: 8px; }
.v-verdict div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 10px; align-items: baseline; }
.v-verdict dt { font: 900 0.95rem/1 var(--display); text-transform: uppercase; padding: 7px 10px; border-radius: 10px; text-align: center; color: var(--night); }
.v-verdict dd { margin: 0; }
.v-verdict .is-hire dt { background: #7CF3D2; }
.v-verdict .is-probation dt { background: var(--yellow); }
.v-verdict .is-fire dt { background: var(--red); }
.v-card-foot { margin: 14px 0 0; font-weight: 700; color: var(--yellow); }

/* reminder ladder */
.v-ladder { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.v-ladder li { margin: 0; display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); }
.v-ladder b { font-family: var(--display); }
.v-ladder i { font-style: normal; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--night); background: #7CF3D2; }
.v-ladder li:nth-child(2) i { background: var(--yellow); }
.v-ladder li:nth-child(3) i { background: var(--orange); }
@media (max-width: 480px) {
  .v-ladder li { grid-template-columns: 1fr auto; }
  .v-ladder span { grid-column: 1 / -1; grid-row: 2; }
  .v-verdict div { grid-template-columns: 1fr; gap: 4px; }
  .v-verdict dt { justify-self: start; }
}

/* /v/ index */
.v-index { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.v-index > li > a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 20px; background: var(--field); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.v-index > li > a:hover { border-color: var(--violet); }
.v-index-show { font: 800 0.78rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.v-index-title { font: 900 1.15rem/1.2 var(--display); }
.v-index-sum { color: var(--text-2); font-size: 0.97rem; }

/* ---------- Wizard host images (2026-10-12; replaces the SVG hourglass rig) ---------- */
.wiz-img { display: block; width: 100%; height: auto; border-radius: 12%; }
.wiz-mark { display: block; object-fit: contain; border-radius: 22%; }
.issue-wiz .wiz-mark, .status-wiz .wiz-mark { width: 100%; height: auto; }

/* ---------- watch links + profile links (2026-10-15: every live video links to its posts; profiles on every page) ---------- */
.nav-list .nav-yt { display: inline-flex; align-items: center; gap: 8px; }
.nav-yt .brand-icon { width: 22px; height: 22px; color: #FF0033; }
@media (max-width: 420px) { .nav-yt-label { display: none; } }
.v-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 22px; }
.btn.v-watch-yt, .btn.lv-yt { --lip: #8A001C; background: #CC0029; color: #FFFFFF; min-height: 48px; padding: 0 22px; font-size: 1rem; }
.v-watch-yt .brand-icon, .lv-yt .brand-icon { width: 22px; height: 22px; }
.v-watch-alt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--line); color: var(--text); font-weight: 700; text-decoration: none;
}
.v-watch-alt:hover { border-color: var(--text); }
.v-watch-alt .brand-icon { width: 18px; height: 18px; }
.v-watch-compact { margin: 10px 0 0; }
.v-watch-compact .btn.v-watch-yt { min-height: 44px; font-size: 0.95rem; }
.v-follow { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.v-follow a {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--field);
  color: var(--text); text-decoration: none;
}
.v-follow a:hover { border-color: var(--text); }
.v-follow .brand-icon { grid-row: span 2; width: 24px; height: 24px; }
.v-follow-name { font-weight: 800; }
.v-follow-handle { font-size: 0.875rem; color: var(--text-2); overflow-wrap: anywhere; }
.tile-next a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-alt { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* homepage "Latest videos" */
.latest-videos { padding-block: clamp(32px, 5vw, 64px) 0; }
.lv-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lv-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 22px;
  background: var(--field); border: 2px solid var(--text); box-shadow: 0 5px 0 var(--text);
}
.lv-meta {
  margin: 0; align-self: start; padding: 4px 10px; border-radius: 10px; background: var(--yellow); color: var(--night);
  font: 800 0.75rem/1.2 var(--display); letter-spacing: 0.05em; text-transform: uppercase;
}
.lv-title { margin: 0; font: 900 1.15rem/1.2 var(--display); letter-spacing: -0.01em; }
.lv-title a { color: var(--text); text-decoration: none; }
.lv-title a:hover { text-decoration: underline; }
.lv-links { margin: auto 0 0; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.lv-alt { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--line); color: var(--text); }
.lv-alt:hover { border-color: var(--text); }
.lv-alt .brand-icon { width: 20px; height: 20px; }
.lv-notes { font-weight: 700; color: var(--link); text-decoration: none; }
.lv-notes:hover { text-decoration: underline; }
.lv-all { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }

/* ---------- 2026-10-15 redesign: video-first hero, 3 channels, calmer mobile ---------- */
.btn-yt { --lip: #8A001C; background: #CC0029; color: #FFFFFF; }
.btn-yt .brand-icon { width: 24px; height: 24px; }
.btn-ghost { --lip: var(--text); background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text), 0 5px 0 var(--lip); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--text), 0 2px 0 var(--lip); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 22px; }
.hero .latest { margin: 0; }
/* the old inline hero links are gone */
.hero-alt { display: none; }

/* channels: exactly three, YouTube first and loudest */
.channels { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: auto; }
.channel-youtube { grid-column: auto; grid-row: auto; }
.channel a { min-height: 168px; }

@media (max-width: 860px) {
  .hero { padding-top: 8px; }
  .hero-grid { gap: 0; position: relative; }
  /* the wizard sits top-right beside the headline instead of on its own row */
  .hero-wiz { position: absolute; top: -4px; right: 0; width: 104px; max-width: 104px; margin: 0; order: 0; z-index: 0; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-title { font-size: clamp(2.1rem, 1.2rem + 5vw, 3.2rem); max-width: 10.5ch; }
  .hero-sub { margin: 16px 0 20px; font-size: 1.0625rem; }
}
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero .latest { max-width: none; }

  .latest-videos { padding-top: 40px; }
  .lv-list { margin-top: 18px; gap: 12px; }
  .lv-card { padding: 16px; gap: 6px; box-shadow: 0 4px 0 var(--text); }
  .lv-title { font-size: 1.05rem; }
  .lv-links { padding-top: 6px; gap: 8px; }
  .lv-links .btn { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
  .lv-notes { margin-left: auto; font-size: 0.95rem; }
  .lv-all { flex-direction: column; gap: 2px; }

  .shows { padding-block: 48px; }
  .bento { margin-top: 22px; gap: 12px; }
  .tile { min-height: 0; padding: 20px; border-radius: 22px; }
  .tile-visual { display: none; }
  .tile-body { font-size: 1rem; }

  .newsletter .panel { padding: 22px; border-radius: 24px; }
  .issue { display: none; }
  .perks { margin: 18px 0 22px; gap: 10px; }

  .follow { padding-block: 48px; }
  .channels { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .channel a { min-height: 0; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 14px; padding: 14px 16px; }
  .channel .brand-icon, .channel-youtube .brand-icon { grid-row: span 2; width: 32px; height: 32px; margin: 0; align-self: center; }
  .channel-name, .channel-youtube .channel-name { margin: 0; font-size: 1.1rem; }
  .channel-youtube a { padding: 16px; }
  .channel-note { display: none; }

  .sponsor { padding-block: 48px; }
  .site-footer { padding-block: 36px 28px; }
}
@media (max-width: 900px) and (min-width: 521px) {
  .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) { .lv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lv-title { font-size: 1.25rem; } .lv-notes { margin-left: auto; } }
