/* ============================================================
   HBCUx prototype — styles
   Palette: deep ink/navy base, warm gold/amber, electric violet,
   magenta accent, cream surfaces. Editorial serif (Fraunces) +
   warm grotesque (Hanken Grotesk). Graceful fallback to system fonts.
   ============================================================ */

/* ============================================================
   Design tokens
   Two tiers: raw palette (the actual brand colors) → semantic
   tokens (how they're used). Components should prefer semantic
   tokens; raw tokens exist so gradients/status can reference them.
   Direction: deep ink/navy base, cream surfaces, warm gold brand,
   electric violet/magenta accent. Not a generic SaaS palette.
   ============================================================ */
:root {
  /* ---- Raw: ink / navy (dark surfaces) ---- */
  --ink: #0d0e1a;        /* page background */
  --ink-2: #141627;      /* deep card base */
  --navy: #1a1c33;       /* banner base */
  --surface: #1b1d31;    /* dark card */
  --surface-2: #232640;  /* elevated dark / inset */

  /* ---- Raw: cream (light surfaces) ---- */
  --cream: #fbf6ec;      /* primary light surface */
  --cream-2: #f3e9d6;    /* tinted light / chip */
  --cream-3: #ece0c8;    /* hover tint */

  /* ---- Raw: brand gold/amber ---- */
  --gold: #e8a33d;       /* brand accent / primary action */
  --gold-bright: #f4c25a;/* hover / bright text on dark */
  --gold-deep: #c98225;  /* deep gold (non-text uses) */
  --gold-ink: #8a5a12;   /* AA text on gold-tinted cream */

  /* ---- Raw: accent violet / magenta ---- */
  --violet: #7c5cff;     /* secondary action / match */
  --violet-bright: #9a7dff;
  --magenta: #d6409f;    /* accent glow */

  /* ---- Raw: status ---- */
  --green: #4caf7d;      /* vetted / success */
  --green-deep: #2f8a5e;

  /* ---- Semantic: status aliases ---- */
  --vetted: var(--green);
  --vetted-deep: var(--green-deep);
  --pending: var(--gold);       /* pending = amber warning */
  --pending-ink: var(--gold-ink);

  /* ---- Semantic: text ---- */
  --text-dark: #1a1b2e;          /* on cream */
  --text-dim: #5b5d78;           /* muted on cream */
  --text-light: #f4ecdd;         /* default on dark */
  --text-light-dim: #a9abc4;     /* muted on dark */
  --text: var(--text-light);
  --text-muted: var(--text-light-dim);
  --text-on-cream: var(--text-dark);
  --text-on-cream-muted: var(--text-dim);

  /* ---- Semantic: borders ---- */
  --border-dark: rgba(244, 236, 221, 0.10);
  --border-dark-strong: rgba(244, 236, 221, 0.20);
  --border-light: rgba(26, 27, 46, 0.12);
  --border-cream-strong: rgba(26, 27, 46, 0.20);
  --border: var(--border-dark);
  --border-strong: var(--border-dark-strong);

  /* ---- Gradients (intentional, reusable) ---- */
  --grad-rail: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  --grad-surface: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  --grad-surface-tilt: linear-gradient(160deg, var(--surface) 0%, var(--ink-2) 100%);
  --grad-talent-banner: linear-gradient(135deg, var(--navy) 0%, var(--violet) 120%);
  --grad-accent: linear-gradient(135deg, var(--violet), var(--magenta));
  --grad-bar: linear-gradient(90deg, var(--gold), var(--gold-bright));
  --grad-hero:
    radial-gradient(60% 50% at 18% 20%, rgba(124, 92, 255, 0.30), transparent 60%),
    radial-gradient(55% 45% at 85% 25%, rgba(232, 163, 61, 0.22), transparent 60%),
    radial-gradient(50% 50% at 60% 95%, rgba(214, 64, 159, 0.18), transparent 60%);

  /* ---- Elevation ---- */
  --shadow-soft: 0 10px 40px -12px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 18px 50px -20px rgba(13, 14, 26, 0.65);
  --shadow-glow: 0 0 0 1px rgba(232, 163, 61, 0.25), 0 20px 60px -22px rgba(232, 163, 61, 0.35);

  /* ---- Radii ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --card-radius: var(--r-lg);
  --card-radius-sm: var(--r-md);

  /* ---- Type scale ---- */
  --fs-h1: clamp(40px, 6.2vw, 76px);
  --fs-h2: clamp(30px, 4vw, 44px);
  --fs-h3: 24px;
  --fs-h4: 19px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-label: 12px;
  --fs-micro: 11px;

  /* ---- Type families ---- */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- Layout ---- */
  --rail-w: 280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text-light);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
em { font-style: italic; }

/* visible focus everywhere */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- App shell ---------- */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
}

/* ============================================================
   JOURNEY RAIL
   ============================================================ */
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--grad-rail);
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  padding: 26px 22px 20px;
  z-index: 50;
}
.rail-head { margin-bottom: 30px; }
.brand { display: inline-block; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--cream);
  font-variation-settings: "opsz" 120;
}
.brand-x { color: var(--gold); font-style: italic; }
.brand-tag {
  font-size: 12.5px;
  color: var(--text-light-dim);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.stepper ol { display: flex; flex-direction: column; gap: 2px; }
.stepper-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 11px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
  width: 100%;
  text-align: left;
}
.stepper-item:hover { background: rgba(244, 236, 221, 0.04); }
.stepper-item .sp-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border-dark-strong);
  color: var(--text-light-dim);
  background: transparent;
  transition: all 0.25s ease;
  font-family: var(--sans);
}
.stepper-item .sp-text { display: flex; flex-direction: column; gap: 1px; padding-top: 1px; }
.stepper-item .sp-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light-dim);
  transition: color 0.2s ease;
}
.stepper-item .sp-sub {
  font-size: 11.5px;
  color: var(--text-light-dim);
  opacity: 0.7;
}
.stepper-item.done .sp-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.stepper-item.done .sp-num::after { content: "✓"; }
.stepper-item.done .sp-num .sp-num-text { display: none; }
.stepper-item.active .sp-num {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(251, 246, 236, 0.12);
}
.stepper-item.active .sp-label { color: var(--cream); }
.stepper-item.active { background: rgba(244, 236, 221, 0.05); }

/* connector line */
.stepper-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 38px;
  bottom: -2px;
  width: 1.5px;
  background: var(--border-dark-strong);
}
.stepper-item.done:not(:last-child)::before { background: var(--gold); opacity: 0.5; }

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border-dark);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 16px; min-height: 52px; }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 24px -10px rgba(232, 163, 61, 0.7);
}
.btn-primary:hover { background: var(--gold-bright); box-shadow: 0 12px 30px -10px rgba(232, 163, 61, 0.85); }

.btn-violet {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(124, 92, 255, 0.7);
}
.btn-violet:hover { background: var(--violet-bright); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-dark-strong);
}
.btn-outline:hover { border-color: var(--cream); background: rgba(244, 236, 221, 0.05); }

.btn-ghost { color: var(--cream-2); background: rgba(244, 236, 221, 0.035); }
.btn-ghost:hover { color: var(--cream); background: rgba(244, 236, 221, 0.08); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   MAIN / SCREENS
   ============================================================ */
.main {
  position: relative;
  min-width: 0;
  background: var(--ink);
}
.screen {
  display: none;
  padding: 48px 56px 80px;
  max-width: 1180px;
  margin: 0 auto;
  animation: fadeUp 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.screen.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-head { margin-bottom: 34px; max-width: 640px; }
.screen-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 8px 0 10px;
  font-variation-settings: "opsz" 120;
}
.screen-sub { color: var(--text-light-dim); font-size: 16px; max-width: 580px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.2);
}
.dot-violet { background: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25); }
.dot-gold { background: var(--gold); }

/* ============================================================
   LANDING / HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 40px 0 30px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% -5% -10% -5%;
  z-index: -1;
  background: var(--grad-hero);
  filter: blur(8px);
}
.hero-inner { max-width: 660px; position: relative; z-index: 2; }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--cream);
  margin: 18px 0 22px;
  font-variation-settings: "opsz" 144;
}
.hero-title em,
.hero-emphasis {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  margin-right: 0.18em;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-light-dim);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.role-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 310px;
}
.role-help {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-light-dim);
  max-width: 280px;
}
.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-light-dim);
}
.trust svg { color: var(--gold); }
.hero-admin { font-size: 13.5px; }
.hero-admin a {
  color: var(--text-light-dim);
  border-bottom: 1px dashed var(--border-dark-strong);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.hero-admin a:hover { color: var(--cream); border-color: var(--cream); }

/* collage */
.collage {
  position: absolute;
  right: 28px;
  top: 30px;
  width: 340px;
  height: 380px;
  z-index: 1;
  pointer-events: none;
}
.mini-card {
  position: absolute;
  background: var(--cream);
  color: var(--text-dark);
  padding: 14px 16px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(232, 163, 61, 0.3);
  animation: floaty 6s ease-in-out infinite;
}
.mini-card .mc-name { font-family: var(--serif); font-weight: 600; font-size: 17px; }
.mini-card .mc-meta { font-size: 11.5px; color: var(--text-dim); }
.mc1 { top: 10px; right: 120px; transform: rotate(-4deg); animation-delay: 0s; }
.mc2 { top: 130px; right: 0px; transform: rotate(5deg); animation-delay: 1.4s; }
.mc3 { top: 250px; right: 90px; transform: rotate(-2deg); animation-delay: 2.8s; }
.vetted-chip {
  position: absolute;
  bottom: 0; right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(76, 175, 125, 0.8);
  transform: rotate(-3deg);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}
.mc1 { --r: -4deg; } .mc2 { --r: 5deg; } .mc3 { --r: -2deg; }

/* schools row */
.schools-row {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-dark);
}
.schools-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-dim);
  margin-bottom: 14px;
  display: block;
}
.schools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.schools li {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--cream-2);
  font-variation-settings: "opsz" 120;
  position: relative;
}
.schools li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -16px;
  color: var(--text-light-dim);
  opacity: 0.5;
}

/* ============================================================
   WIZARD
   ============================================================ */
.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.reassure li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(251, 246, 236, 0.06);
  color: var(--cream-2);
  border: 1px solid var(--border-dark);
  font-size: 12.5px;
  font-weight: 600;
}
.reassure svg { color: var(--gold); }
.wizard { max-width: 760px; }
.wiz-progress { margin-bottom: 26px; }
.wiz-bar {
  height: 5px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.wiz-bar span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--grad-bar);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.wiz-steps {
  display: flex;
  gap: 6px;
}
.wiz-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-light-dim);
  flex: 1;
}
.wiz-steps .ws-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--surface);
  color: var(--text-light-dim);
  border: 1px solid var(--border-dark);
  flex: none;
  transition: all 0.25s ease;
}
.wiz-steps .ws-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-steps li.active .ws-num { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.wiz-steps li.active .ws-label { color: var(--cream); font-weight: 600; }
.wiz-steps li.done .ws-num { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.wiz-steps li.done .ws-num::after { content: "✓"; }
.wiz-steps li.done .ws-num .ws-num-text { display: none; }
.wiz-steps li.done .ws-label { color: var(--text-light); }

.wiz-card {
  background: var(--grad-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--card-radius);
  padding: 34px 36px 26px;
  box-shadow: var(--shadow-card);
}
.wiz-step { display: none; animation: fadeUp 0.4s ease both; }
.wiz-step.active { display: block; }
.wiz-h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 8px;
  font-variation-settings: "opsz" 120;
}
.wiz-help { color: var(--text-light-dim); font-size: 15px; margin-bottom: 22px; max-width: 540px; }

.field { margin-bottom: 18px; }
.field label, .field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream-2);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.field-label { margin-top: 22px; }
.muted { color: var(--text-light-dim); font-weight: 400; }
.req, .opt {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.req { background: rgba(232, 163, 61, 0.16); color: var(--gold-bright); }
.opt { background: rgba(244, 236, 221, 0.08); color: var(--text-light-dim); }
.field input, .field select {
  width: 100%;
  background: var(--ink);
  border: 1.5px solid var(--border-dark-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--cream);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--text-light-dim); opacity: 0.7; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9abc4' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* google button */
.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #fff;
  color: #3c4043;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  margin-bottom: 22px;
  border: 1px solid #dadce0;
  transition: box-shadow 0.2s, transform 0.15s;
}
.google-btn:hover { box-shadow: 0 6px 18px -8px rgba(0,0,0,0.4); }
.google-btn.done { background: var(--green); color: #fff; border-color: var(--green); }
.google-btn.done svg path { fill: #fff; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 6px; }
.chips.compact { gap: 7px; }
.chip {
  background: var(--ink);
  border: 1.5px solid var(--border-dark-strong);
  color: var(--text-light);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--gold); color: var(--cream); }
.chip.chip-soft { background: var(--surface-2); border-color: transparent; color: var(--text-light-dim); }
.chip.chip-soft:hover { color: var(--cream); border-color: var(--border-dark-strong); }
.chip.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.chip.chip-soft.selected {
  background: rgba(124, 92, 255, 0.18);
  border-color: var(--violet);
  color: var(--violet-bright);
}
.chip-toggle { background: transparent; border-color: var(--border-dark-strong); color: var(--text-light-dim); }
.chip-toggle.active { background: var(--cream); border-color: var(--cream); color: var(--ink); }

/* reel toggle */
.reel-toggle {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-top: 22px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.reel-toggle:hover { border-color: rgba(124, 92, 255, 0.5); }
.reel-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.reel-box {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--violet);
  margin-top: 1px;
  position: relative;
  transition: background 0.2s;
}
.reel-toggle input:checked + .reel-box { background: var(--violet); }
.reel-toggle input:checked + .reel-box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.reel-text { display: flex; flex-direction: column; gap: 4px; }
.reel-text strong { color: var(--cream); font-size: 15px; }
.reel-note {
  font-size: 13.5px;
  color: var(--text-light-dim);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
}
.reel-toggle input:checked ~ .reel-text .reel-note { max-height: 120px; margin-top: 3px; }

/* review */
.review {
  background: var(--ink);
  border: 1px solid var(--border-dark);
  border-radius: var(--card-radius-sm);
  padding: 20px 22px;
  margin-top: 24px;
}
.review-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.review-body { font-size: 14.5px; color: var(--text-light); }
.review-body .rb-name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--cream); }
.review-body .rb-row { margin-top: 6px; color: var(--text-light-dim); }
.review-body .rb-row b { color: var(--cream-2); font-weight: 600; }
.review-body .rb-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.review-body .rb-tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--cream-2); }

/* wizard nav */
.wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-dark);
}
.wiz-nav-right { display: flex; align-items: center; gap: 16px; }
.wiz-step-count { font-size: 13px; color: var(--text-light-dim); }

/* ============================================================
   PROFILE / MATCHES
   ============================================================ */
.profile-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}

/* talent card (reused in directory) */
.talent-card {
  background: var(--cream);
  color: var(--text-dark);
  border-radius: var(--card-radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 163, 61, 0.25);
}
.talent-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: var(--grad-talent-banner);
}
.tc-avatar {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  border: 3px solid var(--cream);
  margin-bottom: 14px;
}
.tc-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  font-variation-settings: "opsz" 120;
}
.tc-school { font-size: 14px; color: var(--text-dim); margin-bottom: 4px; }
.tc-discipline {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-ink);
  background: rgba(232, 163, 61, 0.16);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tc-bio { font-size: 14.5px; color: var(--text-dim); margin-bottom: 16px; font-style: italic; }
.tc-section-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 8px;
}
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tc-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--text-dark);
  font-weight: 500;
}
.tc-chip.goal { background: rgba(124, 92, 255, 0.14); color: var(--violet); }
.tc-completion {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.tc-ring { flex: none; }
.tc-completion-text { font-size: 13px; color: var(--text-dim); }
.tc-completion-text b { color: var(--text-dark); font-size: 15px; }
.tc-nudge {
  font-size: 12.5px;
  color: var(--gold-ink);
  margin-top: 3px;
}

/* matches */
.matches-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.matches-head h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--cream);
  font-variation-settings: "opsz" 120;
}
.matches-count { font-size: 13px; color: var(--text-light-dim); }
.trust-explainer {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(76, 175, 125, 0.28);
  background: rgba(76, 175, 125, 0.09);
  color: var(--cream-2);
  font-size: 13.5px;
}
.trust-explainer strong { color: var(--green); }

.opp-list { display: flex; flex-direction: column; gap: 16px; }

/* opportunity card */
.opp-card {
  background: var(--grad-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--card-radius);
  padding: 22px 24px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.opp-card:hover { border-color: var(--border-dark-strong); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.opp-card.new-opp { border-color: var(--gold); box-shadow: var(--shadow-glow); animation: popIn 0.5s ease both; }
@keyframes popIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

.opp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}
.opp-org { font-size: 12.5px; color: var(--text-light-dim); font-weight: 600; letter-spacing: 0.02em; }
.opp-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 2px 0 10px;
  font-variation-settings: "opsz" 120;
}
.opp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--text-light-dim);
  margin-bottom: 14px;
}
.opp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.opp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.match-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light-dim);
  padding: 4px 2px;
}
.match-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  color: var(--violet-bright);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.match-tag.tag-new {
  background: rgba(232, 163, 61, 0.18);
  color: var(--gold-bright);
  border-color: rgba(232, 163, 61, 0.4);
}
/* ---- Status system (trust / moderation) ----
   One coherent family so trust reads as state, not decoration.
   vetted = solid success (the trust mark on student-facing cards);
   pending = amber tint (warning); live = success tint (post-approval).
   Always icon + label. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status svg { width: 12px; height: 12px; flex: none; }
.status--vetted { background: var(--vetted); color: #fff; border-color: var(--vetted); }
.status--pending { background: rgba(232, 163, 61, 0.16); color: var(--gold-bright); border-color: rgba(232, 163, 61, 0.35); }
.status--live { background: rgba(76, 175, 125, 0.16); color: var(--vetted); border-color: rgba(76, 175, 125, 0.35); }
.opp-actions { display: flex; gap: 10px; align-items: center; }
.opp-state {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.saved-state { color: var(--gold); }

.journey-cta {
  margin-top: 28px;
  padding: 22px 24px;
  background: rgba(124, 92, 255, 0.08);
  border: 1px dashed rgba(124, 92, 255, 0.4);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.journey-cta p { color: var(--cream-2); font-size: 15px; }

/* ============================================================
   WAYMAKER
   ============================================================ */
.waymaker-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; flex-wrap: wrap; }
.filters { margin-bottom: 26px; }
.filter-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light-dim); font-weight: 600; }
.directory-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -10px 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  background: rgba(244, 236, 221, 0.04);
}
.result-count { color: var(--text-light-dim); font-size: 13.5px; }
.result-count strong { color: var(--cream); }
.applied-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--cream-2);
}
.applied-filter span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--violet-bright);
  font-weight: 600;
}
.clear-filter {
  color: var(--gold-bright);
  font-size: 12.5px;
  font-weight: 700;
  border-bottom: 1px dashed rgba(244, 194, 90, 0.65);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.dir-card {
  background: var(--cream);
  color: var(--text-dark);
  border-radius: var(--card-radius-sm);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative;
}
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.dir-card.recommended { border-color: var(--gold); box-shadow: var(--shadow-glow); }
.rec-flag {
  position: absolute;
  top: -9px; right: 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.dir-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}
.dir-name { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h4); color: var(--text-dark); }
.dir-meta { font-size: 12.5px; color: var(--text-dim); margin-bottom: 10px; }
.dir-disc {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold-ink);
  background: rgba(232, 163, 61, 0.14);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.dir-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.dir-skill { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--cream-2); color: var(--text-dim); }
.dir-why {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-dim);
}
.dir-why strong { color: var(--text-dark); }

.pending-note {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(232, 163, 61, 0.10);
  border: 1px solid rgba(232, 163, 61, 0.3);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: var(--cream-2);
  font-size: 14px;
}
.pending-note svg { color: var(--gold); flex: none; }
.pending-note[hidden] { display: none; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-stats {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--card-radius-sm);
  padding: 16px 22px;
  min-width: 130px;
}
.stat-num { font-family: var(--serif); font-weight: 600; font-size: 32px; color: var(--cream); line-height: 1; }
.stat-num.gold { color: var(--gold); }
.stat-num.green { color: var(--green); }
.stat-label { font-size: 12.5px; color: var(--text-light-dim); margin-top: 4px; }

.queue { margin-bottom: 30px; }
.queue-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.queue-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.queue-title-soft::before { background: var(--green); }
.queue-list { display: flex; flex-direction: column; gap: 12px; }

.mod-card {
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--card-radius-sm);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.mod-card.pending { border-left: 3px solid var(--gold); }
.mod-card.approved { border-left: 3px solid var(--green); opacity: 0.85; }
.mod-info { flex: 1; min-width: 200px; }
.mod-org { font-size: 12px; color: var(--text-light-dim); font-weight: 600; }
.mod-title { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--cream); margin: 2px 0 6px; }
.mod-flow { font-size: 12.5px; color: var(--cream-2); margin-bottom: 8px; }
.mod-meta { font-size: 12.5px; color: var(--text-light-dim); display: flex; gap: 14px; flex-wrap: wrap; }
.mod-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--text-light-dim);
  font-size: 14px;
  border: 1px dashed var(--border-dark-strong);
  border-radius: var(--r-md);
}

/* ============================================================
   OUTCOME
   ============================================================ */
.outcome-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}
.new-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(232, 163, 61, 0.12);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(232,163,61,0.6);
  animation: pulse 1.8s infinite;
}
.flow-receipt {
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(232, 163, 61, 0.35);
  border-radius: var(--r-sm);
  background: rgba(232, 163, 61, 0.09);
  color: var(--cream-2);
  font-size: 13.5px;
}
.flow-receipt strong { color: var(--gold-bright); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,163,61,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(232,163,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,163,61,0); }
}

.mentor-stub {
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--card-radius);
  padding: 22px 24px;
}
.mentor-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.mentor-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600; font-size: 15px;
  flex: none;
}
.mentor-name { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--cream); }
.mentor-role { font-size: 12.5px; color: var(--text-light-dim); }
.mentor-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--violet-bright);
  background: rgba(124,92,255,0.14);
  padding: 4px 10px;
  border-radius: 999px;
}
.mentor-msg {
  font-size: 15px;
  color: var(--cream-2);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 16px;
}
.mentor-actions { display: flex; gap: 10px; }

.journey-done {
  background: var(--grad-surface-tilt);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--card-radius);
  padding: 30px 26px;
  text-align: center;
  position: sticky;
  top: 30px;
}
.done-ring { margin: 0 auto 18px; }
.done-check {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: var(--vetted);
}
.done-check svg { filter: drop-shadow(0 10px 24px rgba(76,175,125,0.18)); }
.journey-done h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--cream);
  margin-bottom: 10px;
}
.done-text { font-size: 14px; color: var(--text-light-dim); margin-bottom: 20px; }
.done-actions { display: flex; flex-direction: column; gap: 8px; }
.done-actions .btn { width: 100%; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 18, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 3000;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--cream);
  color: var(--text-dark);
  border-radius: var(--card-radius);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  animation: modalIn 0.3s cubic-bezier(0.2,0.7,0.2,1);
}
body.modal-is-open { overflow: hidden; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-dim);
  background: var(--cream-2);
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: var(--cream-3); color: var(--text-dark); }

/* modal talent detail */
.modal .mtc-discipline { color: var(--gold-ink); font-weight: 600; font-size: 13px; }
.modal .mtc-name { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--text-dark); margin: 4px 0 2px; }
.modal .mtc-school { color: var(--text-dim); margin-bottom: 18px; }
.modal .mtc-section { margin-top: 18px; }
.modal .mtc-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin-bottom: 8px; }
.modal .mtc-match {
  background: rgba(124, 92, 255, 0.08);
  border: 1px solid rgba(124, 92, 255, 0.16);
  border-radius: var(--r-sm);
  padding: 12px;
}
.modal .mtc-match p:last-child { color: var(--text-dark); font-weight: 600; }
.modal .mtc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.modal .mtc-chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--cream-2); color: var(--text-dark); }
.modal .mtc-chip.goal { background: rgba(124,92,255,0.14); color: var(--violet); }
.modal .mtc-actions { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light); }

/* modal form */
.modal h3.mf-title { font-family: var(--serif); font-weight: 600; font-size: var(--fs-h3); color: var(--text-dark); margin-bottom: 6px; }
.modal .mf-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.modal .field input, .modal .field select, .modal .field textarea {
  background: var(--cream-2);
  border-color: var(--border-light);
  color: var(--text-dark);
}
.modal .field input:focus, .modal .field select:focus, .modal .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,163,61,0.15); }
.modal .field label { color: var(--text-dark); }
.modal .mf-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.modal .chip { background: var(--cream-2); border-color: var(--border-light); color: var(--text-dim); }
.modal .chip:hover { border-color: var(--gold); color: var(--text-dark); }
.modal .chip.selected { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.modal textarea { resize: vertical; min-height: 70px; border-radius: var(--r-sm); border: 1.5px solid var(--border-light); padding: 12px 14px; width: 100%; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 26px;
  right: 24px;
  transform: translateY(20px);
  background: var(--cream);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(420px, calc(100vw - 32px));
}
.toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
.modal-is-open .toast.show { opacity: 0; transform: translateY(20px); }
.toast svg { color: var(--green); flex: none; }
.modal .btn-ghost { color: #4b5063; background: rgba(26, 27, 46, 0.06); }
.modal .btn-ghost:hover { color: var(--text-dark); background: rgba(26, 27, 46, 0.1); }

/* ============================================================
   DEMO PANEL
   ============================================================ */
.demo-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--grad-surface);
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--card-radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
  z-index: 900;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.demo-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.demo-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.demo-panel-head h3 { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--cream); }
.demo-close { color: var(--text-light-dim); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.demo-close:hover { color: var(--cream); background: rgba(244,236,221,0.06); }
.demo-steps { display: flex; flex-direction: column; gap: 11px; counter-reset: step; }
.demo-steps li {
  font-size: 13.5px;
  color: var(--text-light-dim);
  line-height: 1.5;
  padding-left: 30px;
  position: relative;
  counter-increment: step;
}
.demo-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
}
.demo-steps li strong { color: var(--cream); }
.demo-steps li em { color: var(--gold-bright); font-style: normal; font-weight: 600; }
.demo-tip { font-size: 12.5px; color: var(--text-light-dim); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-dark); }
.demo-tip em { color: var(--cream-2); font-style: normal; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .collage { display: none; }
  .profile-layout { grid-template-columns: 1fr; }
  .outcome-layout { grid-template-columns: 1fr; }
  .journey-done { position: static; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: sticky;
    top: 0;
    z-index: 1100;
    grid-row: 1;
    max-width: 100vw;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    overflow-x: auto;
    box-shadow: 0 10px 30px -22px rgba(0,0,0,0.85);
  }
  .main { grid-row: 2; }
  .rail-head { margin-bottom: 0; flex: none; }
  .brand-mark { font-size: 22px; }
  .brand-tag { display: none; }
  .stepper { flex: 1; min-width: 0; overflow-x: auto; }
  .stepper ol { flex-direction: row; gap: 4px; }
  .stepper-item { width: auto; padding: 6px 8px; }
  .stepper-item .sp-text { display: none; }
  .stepper-item:not(:last-child)::before { display: none; }
  .rail-foot { flex-direction: row; margin-top: 0; padding-top: 0; border-top: 0; flex: none; }
  .rail-foot .btn { padding: 6px 10px; font-size: 12px; }
  .rail-foot .btn svg { display: none; }
  .screen { padding: 32px 22px 60px; }
  .waymaker-head { flex-direction: column; align-items: stretch; }
  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateY(16px);
    max-width: none;
    width: auto;
    justify-content: flex-start;
    border-radius: 18px;
  }
  .toast.show { transform: translateY(0); }
}
@media (max-width: 480px) {
  .screen { padding: 26px 18px 50px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .wiz-card { padding: 24px 20px 22px; }
  .wiz-steps .ws-label { display: none; }
  .wiz-nav { flex-direction: column; gap: 14px; align-items: stretch; }
  .wiz-nav-right { justify-content: space-between; }
  .directory-grid { grid-template-columns: 1fr; gap: 12px; }
  .dir-card { padding: 14px 14px; min-height: auto; }
  .dir-avatar { width: 38px; height: 38px; font-size: 16px; margin-bottom: 8px; }
  .dir-meta { margin-bottom: 8px; }
  .dir-disc { margin-bottom: 8px; }
  .dir-why { margin-top: 9px; padding-top: 8px; }
  .opp-actions { flex-wrap: wrap; }
  .mod-card { padding: 16px; align-items: stretch; }
  .mod-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .mod-actions > * { width: 100%; justify-content: center; }
  .modal-overlay { align-items: flex-start; overflow-y: auto; padding: 16px; }
  .modal { max-height: calc(100dvh - 32px); padding: 24px 20px 20px; border-radius: var(--card-radius-sm); }
  .modal .mf-actions { flex-direction: column-reverse; gap: 10px; }
  .modal .mf-actions .btn { width: 100%; }
  .demo-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}
@media (max-width: 390px) {
  .hero-title { font-size: 38px; }
  .schools li { font-size: 16px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .mini-card { animation: none; }
  .pulse { animation: none; }
}
