/* =====================================================================
   SPAZAI "NIGHT SHIFT" DESIGN LAYER (css/nova.css)
   Loads after css/style.css on every page. It re-points the design tokens
   and restyles shared components; page markup and copy stay as they are.

   Art direction: a support desk at 3am. Dark cinematic base, coffee-amber
   neon, an electric-cyan second light, slow aurora, film grain, glass
   panels lit by your cursor. Expensive-looking. Deeply ridiculous.

   Motion rules: every animation is transform/opacity/filter only (no layout
   shift), heavy effects start after load (js/fx.js), and everything goes
   calm under prefers-reduced-motion.
   ===================================================================== */

/* ---- FONTS: self-hosted, Latin subset, swap ---- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Metric-matched fallbacks so the swap does not move text around.
   Measured against Arial: Bricolage runs 94.1% of Arial's width at bold,
   DM Sans 103.2% at regular. Overrides are divided by size-adjust. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  font-weight: 500 800;
  size-adjust: 94.1%;
  ascent-override: 98.8%;
  descent-override: 28.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Times New Roman");
  font-style: italic;
  size-adjust: 87.9%;
  ascent-override: 112.6%;
  descent-override: 35.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "DM Sans Fallback";
  src: local("Arial");
  size-adjust: 103.2%;
  ascent-override: 96%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* ---- TOKENS: daylight (light) ---- */
:root {
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --font-body: "DM Sans", "DM Sans Fallback", system-ui, sans-serif;
  --font-accent: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;

  --bg: #f6f2ea;
  --bg2: #efe8dc;
  --bg3: #e5dccd;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-solid: #fffdf8;
  --surface2: #f1eadf;
  --border: rgba(52, 33, 8, 0.10);
  --border-bright: rgba(52, 33, 8, 0.20);
  --text: #18130c;
  --text-muted: #554b3e;
  --text-faint: #6c6152;
  --accent: #9a5a00;          /* AA on --bg */
  --accent2: #c0750a;
  --accent-ink: #1a1000;      /* text on amber fills */
  --accent-fill: #ffb547;     /* amber used as a fill, not as text */
  --electric: #0b7a93;
  --hot: #c2185b;
  --violet: #6a4fd8;
  --accent-glow: rgba(255, 168, 46, 0.16);
  --green: #13803d;
  --green-dim: rgba(19, 128, 61, 0.10);
  --header-bg: rgba(246, 242, 234, 0.72);
  --shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 10px 30px -12px rgba(60, 35, 0, 0.25);
  --shadow-lg: 0 30px 80px -30px rgba(60, 35, 0, 0.35);
  --glow: 0 0 0 1px rgba(255, 168, 46, 0.25), 0 10px 40px -10px rgba(255, 150, 20, 0.45);
  --orb1-color: rgba(255, 170, 60, 0.35);
  --orb2-color: rgba(61, 200, 255, 0.18);
  --orb3-color: rgba(255, 77, 141, 0.12);
  --grid-line: rgba(40, 25, 5, 0.05);
  --aurora-a: rgba(255, 176, 70, 0.30);
  --aurora-b: rgba(60, 200, 255, 0.16);
  --aurora-c: rgba(255, 80, 140, 0.12);
  --grain-opacity: 0.035;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px; --space-9: 112px;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.6vw, 4.6rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.25s var(--ease-out);
}

/* ---- TOKENS: night shift (dark, the default) ---- */
body.dark {
  --bg: #07070b;
  --bg2: #0c0c12;
  --bg3: #12121a;
  --surface: rgba(20, 20, 30, 0.62);
  --surface-solid: #14141d;
  --surface2: #1b1b27;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.16);
  --text: #f5f1e8;
  --text-muted: #b6b0bf;
  --text-faint: #8f8a9c;
  --accent: #ffb547;
  --accent2: #ffd08a;
  --accent-fill: #ffb547;
  --electric: #3de8ff;
  --hot: #ff4d8d;
  --violet: #9d86ff;
  --accent-glow: rgba(255, 181, 71, 0.14);
  --green: #4ade80;
  --green-dim: rgba(74, 222, 128, 0.12);
  --header-bg: rgba(7, 7, 11, 0.62);
  --shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  --glow: 0 0 0 1px rgba(255, 181, 71, 0.35), 0 10px 50px -8px rgba(255, 160, 40, 0.55);
  --orb1-color: rgba(255, 170, 60, 0.30);
  --orb2-color: rgba(61, 232, 255, 0.18);
  --orb3-color: rgba(255, 77, 141, 0.14);
  --grid-line: rgba(255, 255, 255, 0.035);
  --aurora-a: rgba(255, 168, 46, 0.20);
  --aurora-b: rgba(61, 232, 255, 0.12);
  --aurora-c: rgba(157, 134, 255, 0.14);
  --grain-opacity: 0.045;
}

/* ---- BASE ---- */
html { background: #07070b; color-scheme: dark light; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
body:not(.dark) { color-scheme: light; }
::selection { background: var(--accent-fill); color: var(--accent-ink); }

/* Aurora: two big blurred gradient fields drifting behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 15% 10%, var(--aurora-a), transparent 60%),
    radial-gradient(35vmax 30vmax at 85% 20%, var(--aurora-b), transparent 60%),
    radial-gradient(45vmax 35vmax at 60% 95%, var(--aurora-c), transparent 60%);
  animation: aurora 38s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3vmax, -2vmax, 0) rotate(6deg) scale(1.06); }
  100% { transform: translate3d(-3vmax, 2vmax, 0) rotate(-4deg) scale(1.02); }
}
/* Film grain. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---- TYPE ---- */
h1, h2, h3, .hero-title, .features-title, .home-spin-title, .spin-title,
.article-title, .resource-hub-title, .faq-section h2, .spaz-guides-header h2,
.iv-title, .box h2, .card-title, .feature-card h3, .spaz-cta-label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;
}
.hero-title em, .features-title em, .home-spin-title em, .spin-title em,
.article-title em, .iv-title em, .kinetic em, h1 em, h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--accent-fill) 0%, #ff8a3d 35%, var(--hot) 70%, var(--accent-fill) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2.6s ease-out 0.6s 1 both;
}
body:not(.dark) .hero-title em, body:not(.dark) h1 em, body:not(.dark) h2 em,
body:not(.dark) .iv-title em, body:not(.dark) .home-spin-title em, body:not(.dark) .spin-title em {
  background-image: linear-gradient(100deg, #b35f00 0%, #c2410c 40%, var(--hot) 75%, #b35f00 100%);
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--accent-fill); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---- HEADER: glass bar with a neon hairline ---- */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(255,181,71,0.45), rgba(61,232,255,0.35), transparent) 1;
}
.header-inner { max-width: 1240px; height: 68px; }
.header-nav { gap: 6px; }
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: var(--accent-glow); }
.nav-link-interview { color: var(--text); display: inline-flex; align-items: center; gap: 7px; }
.nav-link-interview .live-dot {
  position: relative; width: 7px; height: 7px; border-radius: 50%; background: #ff3b4e;
}
.nav-link-interview .live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #ff3b4e;
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3); opacity: 0; } }
.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--text); }
.nav-cta {
  background: var(--accent-fill);
  color: var(--accent-ink) !important;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--glow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,181,71,0.6), 0 14px 50px -8px rgba(255,160,40,0.75); }
.logo-badge { border-color: rgba(255,181,71,0.45); color: var(--accent); }

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .header-nav { gap: 4px; }
  .header-nav .nav-link-interview { display: inline-flex; font-size: 0.82rem; padding: 6px 10px; }
  .header-nav .nav-link-resources { padding: 6px 8px; }
}
@media (max-width: 420px) {
  .header-nav .nav-link-resources { display: none; }
}

/* ---- BUTTONS: one family ---- */
.btn, .spin-submit-btn, .iv-btn, .coffee-btn, .result-link-btn, .spaz-cta-btn {
  font-family: var(--font-body);
}
.btn {
  --b-bg: var(--accent-fill);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--b-bg); color: var(--accent-ink);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; box-shadow: var(--glow);
  transition: transform 0.35s var(--ease-spring), box-shadow var(--transition), background var(--transition);
}
.btn:hover { box-shadow: 0 0 0 1px rgba(255,181,71,0.7), 0 16px 60px -8px rgba(255,160,40,0.8); }
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: var(--surface); color: var(--text); box-shadow: none;
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 0 30px -10px var(--accent-fill); }
.btn-xl { min-height: 60px; padding: 0 36px; font-size: 1.1rem; }

/* Magnetic buttons get their offset from js/fx.js through --mag-x/--mag-y. */
.magnetic { transform: translate3d(var(--mag-x, 0), var(--mag-y, 0), 0); }

/* ---- THE HIRING PILL (homepage badge) ---- */
.hire-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 12px;
  border-radius: 999px;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box,
              linear-gradient(100deg, var(--accent-fill), var(--hot) 55%, var(--electric)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 24px -4px rgba(255, 168, 46, 0.55), 0 0 60px -10px rgba(255, 77, 141, 0.45);
  transition: transform 0.35s var(--ease-spring);
}
.hire-pill::before {
  content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 34px 2px rgba(255,168,46,0.75), 0 0 80px -6px rgba(255,77,141,0.6);
  opacity: 0; animation: pillPulse 2.4s ease-in-out infinite;
}
.hire-pill:hover { transform: scale(1.04); }
.hire-pill .hp-tag {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent-fill); color: var(--accent-ink);
  border-radius: 999px; padding: 3px 8px;
}
.hire-pill .hp-arrow { transition: transform 0.3s var(--ease-out); }
.hire-pill:hover .hp-arrow { transform: translateX(4px); }
.hire-pill .hp-quiet { color: var(--text-muted); font-weight: 500; }
@keyframes pillPulse { 50% { opacity: 1; } }

/* ---- HERO ---- */
.hero { min-height: min(100svh, 920px); padding: 128px 24px 72px; isolation: isolate; }
.hero-content { max-width: 860px; gap: 26px; }
.hero-title {
  font-size: var(--step-4);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-title em { display: inline-block; font-size: 1.06em; }
.hero-subtitle { color: var(--text-muted); font-size: var(--step-0); max-width: 640px; text-wrap: pretty; }
.hero-orb { opacity: 0.7; }
.hero-grid { opacity: 0.8; }
.steam-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.6s ease;
  pointer-events: none;
}
.steam-canvas.on { opacity: 1; }
/* A soft light that follows the pointer across the hero. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 30%), rgba(255,181,71,0.10), transparent 60%);
}

/* ---- PROMPT BOX: animated gradient border ---- */
.prompt-wrapper { max-width: 760px; }
.prompt-box {
  position: relative;
  border-radius: 22px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
              linear-gradient(120deg, rgba(255,181,71,0.9), rgba(255,77,141,0.55) 45%, rgba(61,232,255,0.6)) border-box;
  box-shadow: 0 30px 90px -30px rgba(255,160,40,0.45), var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.prompt-box:focus-within {
  box-shadow: 0 0 0 4px rgba(61,232,255,0.18), 0 30px 100px -24px rgba(255,160,40,0.65);
}
.prompt-input { font-size: 1.05rem; color: var(--text); }
.prompt-input::placeholder { color: var(--text-faint); }
.prompt-submit {
  background: var(--accent-fill); color: var(--accent-ink);
  box-shadow: var(--glow);
  transition: transform 0.35s var(--ease-spring), box-shadow var(--transition);
}
.prompt-submit:hover { transform: scale(1.08) rotate(-6deg); }
.prompt-disclaimer { color: var(--text-faint); }
.suggestion-chip {
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  transition: transform 0.35s var(--ease-spring), border-color var(--transition), color var(--transition), background var(--transition);
}
.suggestion-chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); background: var(--accent-glow); }

/* ---- GLASS CARDS with a cursor spotlight ---- */
.feature-card, .faq-item, .resource-card, .spaz-cta-card, .tip-card, .glass,
.result-panel, .response-panel, .article-note, .box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.feature-card::before, .resource-card::before, .spaz-cta-card::before, .glass.spot::before, .tip-card::before, .faq-item::before {
  content: "";
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255,181,71,0.16), transparent 45%);
  opacity: 0; transition: opacity 0.35s ease;
}
.feature-card:hover::before, .resource-card:hover::before, .spaz-cta-card:hover::before,
.glass.spot:hover::before, .tip-card:hover::before, .faq-item:hover::before { opacity: 1; }
.feature-card, .resource-card, .spaz-cta-card {
  transition: transform 0.5s var(--ease-out), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover, .resource-card:hover, .spaz-cta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,181,71,0.35);
  box-shadow: 0 30px 80px -30px rgba(255,150,30,0.35), var(--shadow);
}
.feature-icon {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,181,71,0.25), rgba(61,232,255,0.12));
  border: 1px solid var(--border-bright);
}

/* ---- SECTIONS ---- */
.features, .home-spin-section, .faq-section, .spaz-guides, .spaz-recommends { background: transparent; }
.features-title, .home-spin-title, .faq-section h2, .spaz-guides-header h2 { font-size: var(--step-3); line-height: 1.02; }
.features-sub, .home-spin-sub, .spaz-guides-intro, .spaz-recommends-intro { color: var(--text-muted); }
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 0.74rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.section-kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.trust-bar {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.trust-logo-link { color: var(--text-muted); transition: color var(--transition); }
.trust-logo-link:hover { color: var(--accent); }

/* FAQ: a bento of answer cards. */
.faq-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.faq-item { padding: 22px 22px 20px; border-bottom: 1px solid var(--border); }
.faq-item dt { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--text); }
.faq-item dd { color: var(--text-muted); }
.faq-item dd a { color: var(--accent); }

/* Resource + CTA cards */
.card-tag, .spaz-cta-tag, .article-eyebrow {
  color: var(--accent); letter-spacing: 0.14em; font-weight: 700;
}
.card-cta, .spaz-cta-btn { color: var(--accent); font-weight: 700; }
.spaz-cta-img-wrap { border-radius: calc(var(--radius-lg) - 6px); overflow: hidden; }

/* ---- RESPONSE OVERLAY (the chat answer) ---- */
.response-overlay { backdrop-filter: blur(10px); background: rgba(5,5,9,0.55); }
body:not(.dark) .response-overlay { background: rgba(240,232,220,0.55); }
.response-panel { border-radius: var(--radius-xl); border-color: rgba(255,181,71,0.25); box-shadow: 0 60px 140px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,181,71,0.08); }
.response-avatar { background: linear-gradient(135deg, var(--accent-fill), var(--hot)); color: var(--accent-ink); box-shadow: var(--glow); }
.coffee-btn {
  background: var(--accent-fill); color: var(--accent-ink) !important; border-radius: 999px; box-shadow: var(--glow);
}
.coffee-nudge { background: var(--accent-glow); border-color: rgba(255,181,71,0.3); border-radius: var(--radius); }
.step-dot { background: var(--accent-fill); }

/* ---- ARTICLES + RESOURCE PAGES ---- */
.article-page, .resource-hub { position: relative; }
.article-title, .resource-hub-title { font-size: var(--step-4); line-height: 1; text-wrap: balance; }
.article-standfirst { font-size: var(--step-1); color: var(--text-muted); text-wrap: pretty; }
.article-body h2 { font-size: var(--step-2); margin-top: 2.2em; }
.article-body h3 { font-size: var(--step-1); }
.article-body a, .article-body p a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tip-card { padding: 26px; }
.tip-card .tip-num { background: var(--accent-fill); color: var(--accent-ink); }
.tip-takeaway { border-left-color: var(--accent-fill); background: var(--accent-glow); }
.article-meta { color: var(--text-faint); }

/* ---- ANSWER-FIRST BLOCKS (quotable definitions) ---- */
.answer-first {
  position: relative;
  margin: 0 auto;
  max-width: 820px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,181,71,0.10), rgba(61,232,255,0.06));
  border: 1px solid rgba(255,181,71,0.28);
  color: var(--text);
  font-size: var(--step-0);
  line-height: 1.65;
}
.answer-first strong { color: var(--accent); }
.answer-first .af-label {
  display: block; margin-bottom: 6px;
  font: 800 0.7rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}

/* ---- FOOTER ---- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(255,181,71,0.05) 40%, transparent);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.site-footer::before {
  content: "SPAZAI";
  position: absolute; left: 50%; bottom: -0.32em; transform: translateX(-50%);
  font: 800 clamp(5rem, 22vw, 18rem)/1 var(--font-display);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-bright);
  pointer-events: none; white-space: nowrap; opacity: 0.6;
}
.footer-inner { position: relative; }
.footer-links a { color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-fine { color: var(--text-faint); }

/* ---- SCROLL REVEALS (js/fx.js adds .fx to <html> and .in to elements) ---- */
html.fx .reveal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
html.fx .reveal.in { opacity: 1; transform: none; }

/* ---- MURRY SHOWCASE (homepage) ---- */
.murry-show { position: relative; padding: 32px 24px 96px; }
.murry-show-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.cubicle {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border-bright);
  box-shadow: 0 60px 140px -50px rgba(255,150,30,0.45), 0 0 0 1px rgba(255,181,71,0.08), var(--shadow-lg);
  transform: perspective(1400px) rotateY(var(--tilt-y, -4deg)) rotateX(var(--tilt-x, 2deg));
  transition: transform 0.8s var(--ease-out);
}
.cubicle-screen {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius-xl) - 10px);
  aspect-ratio: 640 / 357;
  background: #1b1d22;
}
.cubicle-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cubicle-screen .m-blink { opacity: 0; animation: murryBlink 5.2s steps(1, end) infinite; }
@keyframes murryBlink { 0%, 93% { opacity: 0; } 94%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }
.cubicle-screen .m-mood { opacity: 0; transition: opacity 0.6s ease; }
.cubicle-screen .m-mood.on { opacity: 1; }
/* Webcam vignette, scanlines and a slow sway. */
.cubicle-screen::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
}
.cubicle-screen .m-stack { position: absolute; inset: 0; animation: camSwayHome 9s ease-in-out infinite; transform-origin: 50% 40%; }
@keyframes camSwayHome {
  0%, 100% { transform: scale(1.04) translate(0, 0) rotate(0deg); }
  50% { transform: scale(1.06) translate(-0.5%, 0.3%) rotate(-0.4deg); }
}
/* Headset glow: two soft lights on the ear cups, plus a mic pulse. */
.m-headset { position: absolute; z-index: 4; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; }
.m-headset.l { left: 39%; top: 37%; width: 7%; aspect-ratio: 1; background: radial-gradient(circle, rgba(61,232,255,0.85), transparent 65%); animation: headsetGlow 2.8s ease-in-out infinite; }
.m-headset.r { left: 60.5%; top: 37.5%; width: 7%; aspect-ratio: 1; background: radial-gradient(circle, rgba(61,232,255,0.85), transparent 65%); animation: headsetGlow 2.8s ease-in-out infinite 0.4s; }
.m-headset.mic { left: 41.5%; top: 53%; width: 4%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255,59,78,0.9), transparent 65%); animation: headsetGlow 1.2s ease-in-out infinite; }
@keyframes headsetGlow { 0%, 100% { opacity: 0.35; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.2); } }
/* The MURRY name badge flickers like a cheap neon sign. */
.m-badge {
  position: absolute; z-index: 5; left: 57.5%; top: 92.5%;
  transform: translate(-50%, -50%);
  font: 800 clamp(0.55rem, 1.3vw, 0.85rem)/1 var(--font-display); letter-spacing: 0.2em;
  color: #fff6e0; padding: 3px 8px; border-radius: 4px;
  background: rgba(255,181,71,0.18); border: 1px solid rgba(255,181,71,0.7);
  text-shadow: 0 0 6px #ffb547, 0 0 14px #ff8a3d, 0 0 26px #ff4d8d;
  box-shadow: 0 0 18px rgba(255,181,71,0.55);
  animation: neonFlicker 6s infinite;
}
@keyframes neonFlicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.35; }
}
.m-rec {
  position: absolute; z-index: 5; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 0.72rem/1 var(--font-body); letter-spacing: 0.14em; color: #fff;
  background: rgba(0,0,0,0.55); border-radius: 6px; padding: 6px 9px;
}
.m-rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 10px #ff3b4e; animation: recBlink 1.2s steps(1, end) infinite; }
@keyframes recBlink { 50% { opacity: 0.15; } }
.m-time {
  position: absolute; z-index: 5; top: 14px; right: 14px;
  font: 600 0.72rem/1 ui-monospace, Menlo, Consolas, monospace; color: #fff;
  background: rgba(0,0,0,0.55); border-radius: 6px; padding: 6px 9px;
  contain: layout paint style; font-variant-numeric: tabular-nums;
}
.m-caption {
  position: relative; margin: 12px 4px 2px; padding-right: clamp(70px, 11vw, 120px);
  font: 500 clamp(0.85rem, 1.4vw, 1rem)/1.45 var(--font-body); color: var(--text);
  /* Fixed height and containment: typing a line never moves anything else. */
  height: 4.4em; overflow: hidden; contain: layout paint style;
}
.m-caption b { color: var(--accent-fill); font-weight: 700; margin-right: 6px; }
.m-caption .typing::after { content: "\258C"; margin-left: 2px; color: var(--accent-fill); animation: recBlink 0.9s steps(1, end) infinite; }
/* The coffee cup: on the desk, in front of the monitor, steaming. */
.m-coffee { position: absolute; z-index: 6; right: -18px; bottom: -26px; width: clamp(84px, 12vw, 128px); pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6)); }
.m-coffee .steam path { stroke: rgba(255,240,220,0.75); stroke-width: 3; fill: none; stroke-linecap: round; opacity: 0; animation: steamRise 3.2s ease-in-out infinite; }
.m-coffee .steam path:nth-child(2) { animation-delay: 1s; }
.m-coffee .steam path:nth-child(3) { animation-delay: 2s; }
@keyframes steamRise {
  0% { opacity: 0; transform: translateY(10px) scaleY(0.8); }
  30% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-22px) scaleY(1.2); }
}
.m-sticky {
  position: absolute; z-index: 6; left: -16px; top: 18%;
  width: clamp(92px, 12vw, 130px); padding: 10px 10px 12px;
  background: #ffe27a; color: #3a2b00; border-radius: 3px;
  font: 600 0.72rem/1.3 var(--font-body);
  transform: rotate(-7deg); box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6);
}
.murry-copy { display: grid; gap: 18px; justify-items: start; }
.murry-copy h2 { font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.05em; }
.murry-copy p { color: var(--text-muted); font-size: var(--step-0); max-width: 520px; }
.murry-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 520px; }
.murry-stats div { padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.murry-stats b { display: block; font: 800 1.6rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent); }
.murry-stats span { font-size: 0.8rem; color: var(--text-muted); }
.murry-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.murry-fine { font-size: 0.8rem; color: var(--text-faint); }
.murry-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.88rem; }
.murry-links a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .murry-show-inner { grid-template-columns: 1fr; gap: 34px; }
  .cubicle { transform: none; }
  .m-sticky { display: none; }
  .m-coffee { right: -6px; bottom: -18px; }
}

/* ---- REDUCED MOTION: calm, still, fully usable ---- */
/* The first screen paints at once: no fade-in on the hero or the interview
   intro (an entrance animation holds back Largest Contentful Paint). */
.hero-content, .iv-wrap { animation: none; }

/* Phones: a still aurora on a small layer, no grain and no backdrop blur.
   These are the costliest things to rasterize on a slow phone GPU. */
@media (max-width: 768px) {
  body::before { animation: none; inset: 0; will-change: auto; }
  body::after { display: none; }
  *, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  body::before { animation: none; }
  html.fx .reveal { opacity: 1; transform: none; }
  .hire-pill, .prompt-box { animation: none; }
  .cubicle { transform: none; }
  .steam-canvas { display: none; }
  .m-coffee .steam path { opacity: 0.5; animation: none; }
  .m-blink { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .feature-card, .faq-item, .resource-card, .spaz-cta-card, .tip-card, .glass, .result-panel, .response-panel, .box { backdrop-filter: none; background: var(--surface-solid); }
}

/* ---- PAINT BUDGET ----
   The aurora and the steam replace the old blurred hero orbs, and cards sit on
   a smooth gradient, where a backdrop blur costs a lot and shows nothing. The
   header and the answer overlay keep their blur: they sit over real content. */
.hero-orb { display: none; }
.feature-card, .faq-item, .resource-card, .spaz-cta-card, .tip-card, .suggestion-chip, .btn-ghost, .glass, .box {
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
