/* =============================================================
   DePaul AI · Board Application, Winter 2026
   Theme system: body[data-theme="winter|projects|social"]
   All theme colors are registered custom properties (@property) so
   they interpolate smoothly over --theme-dur. Backdrops are stacked
   layers that crossfade by opacity.
   Type: Open Sauce Sans (structure, body) + Instrument Serif
   (italic accents, role names, answers, numerals). Contemporary
   maximalism: oversized mixed type, halftone + grain texture,
   stickers, marquee, hard offset shadows.
   ============================================================= */

/* ---- Fonts (self-hosted, OFL; see public/fonts) ---- */
@font-face { font-family: "Open Sauce Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sauce-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/open-sauce-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sauce-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/open-sauce-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sauce Sans"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/open-sauce-sans-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

/* ---- Registered color tokens (enables smooth transitions) ---- */
@property --c-text      { syntax: '<color>'; inherits: true; initial-value: #e2eeff; }
@property --c-muted     { syntax: '<color>'; inherits: true; initial-value: #a5bfe0; }
@property --c-accent    { syntax: '<color>'; inherits: true; initial-value: #38bdf8; }
@property --c-accent-2  { syntax: '<color>'; inherits: true; initial-value: #818cf8; }
@property --c-btn-a     { syntax: '<color>'; inherits: true; initial-value: #2563eb; }
@property --c-btn-b     { syntax: '<color>'; inherits: true; initial-value: #1d4ed8; }
@property --c-btn-text  { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --c-error     { syntax: '<color>'; inherits: true; initial-value: #fca5a5; }
@property --c-focus     { syntax: '<color>'; inherits: true; initial-value: #7dd3fc; }
@property --c-surface   { syntax: '<color>'; inherits: true; initial-value: rgba(148, 197, 255, 0.06); }
@property --c-surface-on{ syntax: '<color>'; inherits: true; initial-value: rgba(56, 189, 248, 0.12); }
@property --c-border    { syntax: '<color>'; inherits: true; initial-value: rgba(186, 230, 253, 0.18); }
@property --c-line      { syntax: '<color>'; inherits: true; initial-value: rgba(186, 230, 253, 0.14); }
@property --c-placeholder { syntax: '<color>'; inherits: true; initial-value: rgba(186, 230, 253, 0.34); }
@property --c-glow      { syntax: '<color>'; inherits: true; initial-value: rgba(0, 0, 0, 0); }
@property --c-option-bg { syntax: '<color>'; inherits: true; initial-value: #0d1f42; }

:root {
  --theme-dur: 800ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --f-sans: "Open Sauce Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ink: #0b0d1a; /* dark ink for text on accent fills (marquee, stickers) */
}

/* ---- Theme: winter (default night sky) ---- */
body[data-theme="winter"] {
  --c-text: #e2eeff;
  --c-muted: #a5bfe0;
  --c-accent: #38bdf8;
  --c-accent-2: #818cf8;
  --c-btn-a: #2563eb;
  --c-btn-b: #1d4ed8;
  --c-btn-text: #ffffff;
  --c-error: #fca5a5;
  --c-focus: #7dd3fc;
  --c-surface: rgba(148, 197, 255, 0.06);
  --c-surface-on: rgba(56, 189, 248, 0.12);
  --c-border: rgba(186, 230, 253, 0.18);
  --c-line: rgba(186, 230, 253, 0.14);
  --c-placeholder: rgba(186, 230, 253, 0.34);
  --c-glow: rgba(0, 0, 0, 0);
  --c-option-bg: #0d1f42;
}

/* ---- Theme: projects (dreamlike dusk) ---- */
body[data-theme="projects"] {
  --c-text: #fdf8ff;
  --c-muted: #ebe1fa;
  --c-accent: #f9c2e3;
  --c-accent-2: #c3cbff;
  --c-btn-a: #e9d5ff;
  --c-btn-b: #fbcfe8;
  --c-btn-text: #2b1a45;
  --c-error: #ffd6e0;
  --c-focus: #fbcfe8;
  --c-surface: rgba(233, 213, 255, 0.07);
  --c-surface-on: rgba(249, 194, 227, 0.14);
  --c-border: rgba(233, 213, 255, 0.24);
  --c-line: rgba(233, 213, 255, 0.2);
  --c-placeholder: rgba(235, 225, 250, 0.42);
  --c-glow: rgba(233, 213, 255, 0.5);
  --c-option-bg: #3b2d63;
}

/* ---- Theme: social (chaos settles into bright, confident cobalt) ----
   Electric blue is the base; coral and warm yellow are the accents. */
body[data-theme="social"] {
  --c-text: #ffffff;
  --c-muted: #d3d9f7;
  --c-accent: #ffd23f;
  --c-accent-2: #ff8a7a;
  --c-btn-a: #ffd23f;
  --c-btn-b: #ff9a6b;
  --c-btn-text: #12131f;
  --c-error: #ffc4bb;
  --c-focus: #ffffff;
  --c-surface: rgba(255, 255, 255, 0.07);
  --c-surface-on: rgba(255, 210, 63, 0.14);
  --c-border: rgba(255, 255, 255, 0.3);
  --c-line: rgba(255, 255, 255, 0.24);
  --c-placeholder: rgba(211, 217, 247, 0.5);
  --c-glow: rgba(0, 0, 0, 0);
  --c-option-bg: #13239a;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
* { -webkit-tap-highlight-color: transparent; }

/* Focus: visible for keyboard users in every theme */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}
.step-input:focus-visible,
.step-textarea:focus-visible,
.step-select:focus-visible { outline: none; }

/* ---- Kill autofill background ---- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--c-text);
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  background-color: transparent !important;
}

/* ---- Page shell ---- */
body.page-shell {
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #060d1f;
  color: var(--c-text);
  transition:
    --c-text var(--theme-dur) ease, --c-muted var(--theme-dur) ease,
    --c-accent var(--theme-dur) ease, --c-accent-2 var(--theme-dur) ease,
    --c-btn-a var(--theme-dur) ease, --c-btn-b var(--theme-dur) ease,
    --c-btn-text var(--theme-dur) ease, --c-error var(--theme-dur) ease,
    --c-focus var(--theme-dur) ease, --c-surface var(--theme-dur) ease,
    --c-surface-on var(--theme-dur) ease, --c-border var(--theme-dur) ease,
    --c-line var(--theme-dur) ease, --c-placeholder var(--theme-dur) ease,
    --c-glow var(--theme-dur) ease, --c-option-bg var(--theme-dur) ease,
    background-color var(--theme-dur) ease;
}
body.page-shell[data-theme="projects"] { background-color: #1e1b4b; }
body.page-shell[data-theme="social"]   { background-color: #0b1561; }

/* ---- Backdrops ---- */
.theme-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.bg-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--theme-dur) ease;
}

body[data-theme="winter"]   .bg-winter   { opacity: 1; }
body[data-theme="projects"] .bg-projects { opacity: 1; }
body[data-theme="social"]   .bg-social   { opacity: 1; }

.bg-winter {
  background:
    radial-gradient(ellipse 70% 55% at 18% 14%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 82% 82%, rgba(14, 165, 233, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 50% 50%, rgba(30, 64, 175, 0.09) 0%, transparent 70%),
    linear-gradient(168deg, #060d1f 0%, #0d1f42 42%, #0a1628 72%, #060d1f 100%);
}

/* Static star field */
.bg-winter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px   1px   at 12% 10%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px   1px   at 30% 40%, rgba(255,255,255,0.28) 0%, transparent 100%),
    radial-gradient(1px   1px   at 65% 22%, rgba(255,255,255,0.32) 0%, transparent 100%),
    radial-gradient(1px   1px   at 83% 65%, rgba(255,255,255,0.22) 0%, transparent 100%),
    radial-gradient(1px   1px   at 47% 76%, rgba(255,255,255,0.26) 0%, transparent 100%),
    radial-gradient(1px   1px   at 20% 88%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70%  8%, rgba(186,230,253,0.45) 0%, transparent 100%),
    radial-gradient(1px   1px   at 88% 33%, rgba(186,230,253,0.32) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at  4% 53%, rgba(186,230,253,0.38) 0%, transparent 100%),
    radial-gradient(1px   1px   at 58% 86%, rgba(255,255,255,0.22) 0%, transparent 100%),
    radial-gradient(1px   1px   at 37% 28%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px   1px   at 93% 13%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px   1px   at  2% 76%, rgba(186,230,253,0.25) 0%, transparent 100%),
    radial-gradient(1px   1px   at 75% 52%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 52% 18%, rgba(255,255,255,0.35) 0%, transparent 100%);
}

.bg-projects {
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(165, 180, 252, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 80% 85%, rgba(244, 114, 182, 0.11) 0%, transparent 60%),
    linear-gradient(168deg, #1e1b4b 0%, #33285f 38%, #432c66 68%, #4a2b58 100%);
}

/* Slow-moving dusk haze, projects only */
.bg-haze {
  position: absolute;
  inset: -25%;
  opacity: 0;
  transition: opacity var(--theme-dur) ease;
  background:
    radial-gradient(30% 26% at 30% 38%, rgba(196, 181, 253, 0.16) 0%, transparent 70%),
    radial-gradient(28% 24% at 70% 64%, rgba(249, 168, 212, 0.13) 0%, transparent 70%),
    radial-gradient(22% 20% at 55% 22%, rgba(165, 180, 252, 0.12) 0%, transparent 70%);
  filter: blur(40px);
}
body[data-theme="projects"] .bg-haze { opacity: 1; }

.bg-social {
  background:
    radial-gradient(ellipse 50% 40% at 10% 8%, rgba(255, 138, 122, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(40, 70, 220, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 50% 100%, rgba(255, 210, 63, 0.06) 0%, transparent 60%),
    linear-gradient(168deg, #0b1561 0%, #13239a 50%, #0b1561 100%);
}

/* Halftone dots in diagonal bands, strongest in social */
.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.13) 1.1px, transparent 1.6px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(115deg, transparent 6%, #000 20%, transparent 36%, transparent 56%, #000 72%, transparent 90%);
  mask-image: linear-gradient(115deg, transparent 6%, #000 20%, transparent 36%, transparent 56%, #000 72%, transparent 90%);
  opacity: 0.55;
  transition: opacity var(--theme-dur) ease;
}
body[data-theme="projects"] .bg-dots { opacity: 0.3; }
body[data-theme="social"]   .bg-dots { opacity: 1; }

/* Film grain over everything (static SVG noise) */
.bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* ---- Particle canvas ---- */
#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---- Progress bar ---- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-2), var(--c-accent));
  background-size: 200% 100%;
  transition: width 0.6s var(--ease-out);
  z-index: 30;
  border-radius: 0 2px 2px 0;
  animation: barShimmer 3s linear infinite;
  box-shadow: 0 0 10px var(--c-accent);
}

@keyframes barShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ---- Top bar ---- */
.top-bar {
  position: fixed;
  top: 2px;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.top-bar-name {
  display: inline-block;
  font-size: 22px;
  font-weight: 900;
  color: var(--c-text);
  letter-spacing: -0.03em;
}

.top-bar-ai {
  background: linear-gradient(125deg, var(--c-accent), var(--c-accent-2));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 5s ease-in-out infinite;
  /* The "DePaul AI" logo is always Open Sauce, never the serif */
  font-family: var(--f-sans);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.top-bar-counter {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Social burst: playful header jitter */
@keyframes jitter {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  15% { transform: translate(-2px, 1px) rotate(-2deg); }
  30% { transform: translate(2px, -1px) rotate(2deg); }
  45% { transform: translate(-1px, -2px) rotate(-1deg); }
  60% { transform: translate(2px, 1px) rotate(1.5deg); }
  75% { transform: translate(-1px, 1px) rotate(-0.5deg); }
}
body.fx-burst .top-bar-name { animation: jitter 0.3s linear 4; }

/* ---- Steps shell ---- */
.steps-shell { position: fixed; inset: 0; z-index: 2; }
.steps-form, .steps-viewport { width: 100%; height: 100%; position: relative; }
.steps-viewport { overflow: hidden; }
.hidden-honeypot { display: none; }

/* ---- Step ---- */
.step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 70px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* content fades as it scrolls up under the fixed top bar */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 52px, #000 80px);
  mask-image: linear-gradient(to bottom, transparent 0, transparent 52px, #000 80px);
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.step.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.step.is-leaving-fwd  { opacity: 0; transform: translateY(-22px); transition: opacity 0.28s ease, transform 0.28s ease; }
.step.is-leaving-back { opacity: 0; transform: translateY(22px);  transition: opacity 0.28s ease, transform 0.28s ease; }

/* margin-block auto centers when there is room, scrolls from the top when not */
.step-inner { width: 100%; max-width: 640px; margin-block: auto; position: relative; isolation: isolate; }
.step--wide .step-inner { max-width: 860px; }

/* Step number badge */
.step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
  background: var(--c-surface-on);
  border: 1px solid var(--c-border);
  padding: 3px 12px;
  border-radius: 999px;
}
.step-num-sep { color: var(--c-muted); font-weight: 500; letter-spacing: 0.06em; }

/* Giant outlined serif numeral behind each question (decorative) */
.step-bignum {
  position: absolute;
  right: -12px;
  top: -0.36em;
  z-index: -1;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 300px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-accent);
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}

/* Small letterspaced caption, MHacks-style */
.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* Question: heavy grotesk with one oversized serif-italic accent */
.step-question,
.intro-title {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  text-shadow: 0 0 22px var(--c-glow);
  cursor: default;
}
.step-question em,
.intro-title em,
.celebration-heading em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
  letter-spacing: -0.01em;
  color: var(--c-accent);
  padding-right: 0.04em;
}
.intro-title { font-size: 46px; line-height: 0.98; letter-spacing: -0.045em; }
/* The long role question reads as an editorial serif pull quote */
.step-question--long {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.step-subtext {
  display: block;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 28px;
  font-weight: 500;
  line-height: 1.5;
}

.step-field { position: relative; }

.step-hint {
  display: block;
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 10px;
}

.step-error {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-error);
  min-height: 20px;
  margin-top: 8px;
}

/* ---- Inputs: fully invisible, text floats on the sky ---- */
.step-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--c-text);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  padding: 6px 0 6px;
  caret-color: var(--c-accent);
}
.step-input--sm {
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 18px;
  padding: 6px 0;
  border-bottom: 1px solid var(--c-line);
}
.step-input::placeholder { color: var(--c-placeholder); font-weight: 400; }

.step-textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
  font-size: 18px;
  font-weight: 400;
  font-family: inherit;
  padding: 4px 0 16px;
  min-height: 110px;
  max-height: 42vh;
  resize: none;
  caret-color: var(--c-accent);
  line-height: 1.7;
}
.step-textarea::placeholder { color: var(--c-placeholder); }

.step-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  padding: 4px 34px 6px 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1.5l4 4 4-4' stroke='%23c9d6ee' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}
.step-select:focus { border-bottom-color: var(--c-accent); }
.step-select option { background: var(--c-option-bg); color: var(--c-text); }

.step-grad-group { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; }

/* Role-only extra fields */
.role-extra { margin-top: 22px; }
.role-extra[hidden] { display: none; }
.role-extra-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
}
.role-extra-label span { font-weight: 500; color: var(--c-muted); }

/* ---- Intro ---- */
.intro-para {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--c-text);
  margin: 22px 0 34px;
  max-width: 640px;
}

/* Countdown to applications closing (intro, top right) */
.intro-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.intro-top .eyebrow { margin: 6px 0 0; }
.countdown { text-align: left; }
.countdown-label {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.countdown-units { display: flex; gap: 8px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cd-num {
  min-width: 54px;
  padding: 8px 8px 7px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  border: 1.5px solid var(--c-border);
  box-shadow: 0 4px 0 0 var(--ink);
  font-family: var(--f-sans);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--c-text);
}
.cd-cap {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.countdown.is-placeholder .cd-num { color: var(--c-muted); }
.countdown.is-closed .cd-num { color: var(--c-muted); }

/* Rotating seal sticker (thanks page) */
.seal {
  position: relative;
  width: 150px;
  height: 150px;
  transform: rotate(-10deg);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-btn-a), var(--c-btn-b));
  color: var(--c-btn-text);
  box-shadow: 5px 6px 0 0 var(--ink);
  z-index: 2;
}
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-ring text {
  font-family: var(--f-sans);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: currentColor;
}
.seal-core {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 0.85;
  text-align: center;
}
.seal-check { width: 40%; height: 40%; }

/* Tilted ticker band */
.marquee {
  width: 112vw;
  margin: 46px calc(50% - 56vw) 8px;
  overflow: hidden;
  transform: rotate(-2deg);
  background: var(--c-accent);
  color: var(--ink);
  border-block: 2px solid var(--ink);
  padding: 10px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  white-space: nowrap;
}
.marquee-track span {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.marquee-track span.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0;
  text-transform: none;
}
.marquee-track i { font-style: normal; font-size: 16px; }

/* ---- Role cards ---- */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.role-card,
.role-select {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 22px;
  color: var(--c-text);
  font-family: inherit;
  text-align: left;
  box-shadow: 6px 6px 0 0 color-mix(in srgb, var(--c-accent) 55%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.role-card { padding: 22px 24px 16px; }

.role-card-kicker {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.role-card-name {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--c-text);
}

.role-card-vibe {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.5;
}

/* Full-width disclosure row at the bottom of each intro card */
.role-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% + 12px);
  margin: 18px -6px 0;
  padding: 14px 6px 4px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--c-line);
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  text-align: left;
  cursor: pointer;
}
.role-toggle:focus-visible { border-radius: 8px; }
.role-toggle-chevron {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  transition: transform 0.4s var(--ease-out), background-color 0.2s ease;
}
.role-toggle:hover .role-toggle-chevron { background: var(--c-surface-on); }
.role-toggle[aria-expanded="true"] .role-toggle-chevron { transform: rotate(180deg); }
/* "this one's me": primary button at the bottom of the expanded details.
   Margin leaves room for its shadow and focus ring inside the clipped panel. */
.role-pick { margin: 8px 6px 14px; padding: 11px 20px; font-size: 14px; }

.intro-hint {
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
}

/* Choice cards (step 1) */
.role-option { min-width: 0; }
.role-select {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  padding: 22px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.role-select { transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.25s ease, border-color 0.25s ease; }
.role-select:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 color-mix(in srgb, var(--c-accent) 55%, transparent); }
.role-option.is-selected .role-select {
  background: var(--c-surface-on);
  border-color: var(--c-accent);
  box-shadow: 8px 8px 0 0 var(--c-accent);
}
.role-select-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid var(--c-muted);
  position: relative;
  transition: border-color 0.25s ease;
}
.role-select-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: scale(0);
  transition: transform 0.25s var(--ease-out);
}
.role-option.is-selected .role-select-mark { border-color: var(--c-accent); }
.role-option.is-selected .role-select-mark::after { transform: scale(1); }

/* Expandable expectations (height + opacity, ~400ms) */
.role-exp {
  height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: height 0.4s var(--ease-out), opacity 0.4s ease;
}
.role-exp-body { padding: 6px 4px 2px; }
.role-option .role-exp-body { padding: 14px 8px 4px; }
.role-exp-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 14px 0 8px;
}
.role-exp-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-text);
}
.role-exp-list li { margin-bottom: 6px; }
.role-exp-list li::marker { color: var(--c-accent); }
.role-exp-list--shared { color: var(--c-muted); }

/* Acknowledgement checkbox */
.ack-wrap { margin-top: 4px; padding: 0 8px 8px; margin-inline: -8px; }
.ack {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  padding: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  cursor: pointer;
  border-radius: 10px;
}
.ack input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ack-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid var(--c-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-btn-text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ack-box svg { width: 16px; height: 16px; opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.2s var(--ease-out); }
.ack input:checked + .ack-box { background: var(--c-accent); border-color: var(--c-accent); }
.ack input:checked + .ack-box svg { opacity: 1; transform: scale(1); }
.ack input:focus-visible + .ack-box { outline: 2px solid var(--c-focus); outline-offset: 3px; }

/* ---- Review ---- */
.review-list { margin: 0; display: grid; gap: 2px; }
.review-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.review-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.review-value {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 9.5em;
  overflow-y: auto;
}
.review-value.is-empty { color: var(--c-muted); font-style: italic; }
.review-edit {
  background: none;
  border: none;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--c-accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Navigation ---- */
.step-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--c-btn-a) 0%, var(--c-btn-b) 100%);
  color: var(--c-btn-text);
  border: 2px solid var(--ink);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 5px 0 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
}
.btn-continue:hover { transform: translateY(-2px); box-shadow: 0 7px 0 0 var(--ink); }
.btn-continue:active { transform: translateY(4px); box-shadow: 0 1px 0 0 var(--ink); }
.btn-continue:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-continue-icon { width: 17px; height: 17px; flex-shrink: 0; }

.btn-enter-hint {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 6px;
}
.btn-back:hover { color: var(--c-accent); }

@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

/* ---- Footer watermark ---- */
.steps-footer {
  position: fixed;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-muted);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
  margin: 0;
  transition: opacity 0.3s ease;
}
body.step-overflows .steps-footer { opacity: 0; }

.noscript-note {
  position: fixed;
  inset: auto 16px 50px;
  z-index: 40;
  text-align: center;
  color: var(--c-text);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .step-question { font-size: 50px; }
  .intro-title   { font-size: 76px; }
  .step-question--long { font-size: 36px; }
  .step-input    { font-size: 52px; }
  .step-input--sm { font-size: 19px; }
  .step-select   { font-size: 42px; }
  .step          { padding: 84px 48px 70px; }
  .intro-para    { font-size: 19px; }
  .role-card-name { font-size: 40px; }
}

@media (min-width: 960px) {
  .step-question { font-size: 60px; }
  .intro-title   { font-size: 100px; }
  .step-question--long { font-size: 40px; }
  .step-inner { max-width: 720px; }
  .step--wide .step-inner { max-width: 900px; }
  .step-bignum { font-size: 360px; right: -80px; }
}

@media (max-width: 720px) {
  .role-grid { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 639px) {
  .intro-top .eyebrow { line-height: 1.8; }
  .cd-num { min-width: 48px; font-size: 24px; }
  .seal--thanks { width: 130px; height: 130px; }
  .step-bignum { font-size: 190px; opacity: 0.2; right: -18px; }
}

@media (max-width: 440px) {
  .btn-enter-hint { display: none; }
  .top-bar { padding: 16px 18px; }
  .step { padding: 84px 18px 60px; }
  .intro-title { font-size: 42px; }
}

/* ---- Motion that only runs when the user is fine with motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .bg-haze { animation: hazeDrift 28s ease-in-out infinite alternate; }
  @keyframes hazeDrift {
    0%   { transform: translate3d(-4%, -2%, 0) scale(1); }
    50%  { transform: translate3d(3%, 3%, 0) scale(1.08); }
    100% { transform: translate3d(5%, -3%, 0) scale(1.02); }
  }
  body[data-theme="projects"] .step.is-active .step-question,
  body[data-theme="projects"] .step.is-active .intro-title {
    animation: floaty 7s ease-in-out infinite;
  }
  @keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
  }
  .seal-ring { animation: sealSpin 24s linear infinite; }
  @keyframes sealSpin { to { transform: rotate(360deg); } }
  .marquee-track { animation: marquee 34s linear infinite; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  /* social: the sticker wobbles during the burst */
  body.fx-burst .seal { animation: sealJitter 0.3s linear 4; }
  @keyframes sealJitter {
    0%, 100% { transform: rotate(-10deg); }
    25% { transform: rotate(-16deg) scale(1.06); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(-13deg) scale(0.97); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .step, .step.is-active, .step.is-leaving-fwd, .step.is-leaving-back { transform: none !important; }
  .role-exp { transition: opacity 0.2s ease; }
  .top-bar-ai, #progress-bar { animation: none; }
  body.fx-burst .top-bar-name { animation: none; }
  .role-select:hover, .btn-continue:hover { transform: none; }
}


/* =============================================================
   Thank-you page
   ============================================================= */
body.page-shell.thanks-page { overflow: auto; }

.celebration-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 20px;
  position: relative;
  z-index: 2;
}

.celebration-content { max-width: 760px; text-align: center; }

.seal--thanks {
  margin: 0 auto 34px;
  animation: popIn 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
}

@keyframes popIn {
  from { transform: rotate(-10deg) scale(0); opacity: 0; }
  to   { transform: rotate(-10deg) scale(1); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.celebration-heading {
  font-weight: 800;
  color: var(--c-text);
  font-size: 44px;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  text-shadow: 0 0 22px var(--c-glow);
  animation: fadeUp 0.7s var(--ease-out) 0.22s both;
}
@media (min-width: 640px) { .celebration-heading { font-size: 68px; } }
@media (min-width: 960px) { .celebration-heading { font-size: 84px; } }
.celebration-content .eyebrow { animation: fadeUp 0.7s var(--ease-out) 0.16s both; }

.celebration-sub,
.celebration-role-line {
  color: var(--c-muted);
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  animation: fadeUp 0.7s var(--ease-out) 0.36s both;
}
.celebration-role-line { color: var(--c-text); font-weight: 600; margin-bottom: 32px; }

.celebration-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-surface-on);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.15s ease;
  animation: fadeUp 0.7s var(--ease-out) 0.5s both;
}
.celebration-back:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .seal--thanks, .celebration-content .eyebrow, .celebration-heading, .celebration-sub,
  .celebration-role-line, .celebration-back { animation: none; }
}

.site-footer {
  padding: 20px;
  text-align: center;
  color: var(--c-muted);
  font-size: 13px;
  position: relative;
  z-index: 2;
}
.site-footer p { margin: 0; }
