/* ==========================================================================
   kinetic.css — Study-Buddy V2 design system (kinetic typography)
   Loaded AFTER bento.css / resume_style.css, so it overrides them.
   Font pairing (all OFL, via Google Fonts):
     Display  : Barlow Condensed — oversized, condensed, expressive headings
     Body     : Inter            — readable UI / long-form text
     Technical: IBM Plex Mono    — labels, code, counts, technical UI
   No gradients, no glassmorphism, no glowing cards, no floating badges.
   Three modes share these tokens:
     Mode A editorial  : black ground, white type, blue / acid-lime accents
     Mode B workspace  : paper ground, black type, blue actions, calm motion
     Mode C dashboard  : compact, same tokens (applied by later screens)
   Motion is transform/opacity only, gated on prefers-reduced-motion.
   ========================================================================== */

/* Self-hosted OFL fonts (latin subsets, from Google Fonts). No external
   font request at runtime; system stacks remain as fallbacks. */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/caveat-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-variable.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2"); }

:root {
  --sb-ink: #0a0a0a;
  --sb-paper: #ffffff;
  --sb-paper-2: #f2f1ea;
  --sb-line: #0a0a0a;
  --sb-line-soft: #d8d6cc;
  --sb-muted-dark: #6b6b66;
  --sb-muted-light: #a3a3a0;
  --sb-blue: #2447ff;
  --sb-blue-dark: #1a33c2;
  --sb-lime: #c8ff2e;
  --sb-lime-ink: #0a0a0a;
  --sb-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sb-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sb-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --sb-max: 1240px;
  --sb-work-max: 1080px;
}

/* ---------- shared navigation (keeps bento.js hooks: .b-nav-toggle,
   #b-nav-menu, .b-dropdown / .b-dropbtn) ---------- */
.b-nav {
  background: #0a0a0a !important;
  border-bottom: 2px solid #0a0a0a;
  backdrop-filter: none;
}
[data-theme="resume"] .b-nav,
[data-theme="research"] .b-nav { background: #0a0a0a !important; }
.b-nav-in { height: 64px; }
.b-brand {
  font-family: var(--sb-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  gap: 12px;
}
.b-brand img { border-radius: 0 !important; }
/* a11y (Eval 4, 2026-11-08): --sb-blue #2447ff is 3.22:1 on the dark nav
   (#0a0a0a) — fails WCAG AA 4.5:1 at mobile widths where the brand is
   18.4px bold (below the large-text bar). #6b8aff is 6.32:1 on the same
   background. --sb-blue itself is kept for cursor/gradient use.
   Exception: the landing page (body.sb-editorial) has a cream nav
   background (#f2f1ea) where #6b8aff is only 2.76:1, so the landing
   keeps the original blue (5.39:1 on cream). Every other page's nav
   sits on #0a0a0a. */
.b-brand .sb-brand-accent { color: #6b8aff; }
body.sb-editorial .b-brand .sb-brand-accent { color: var(--sb-blue); }
.b-nav-links { gap: 26px; }
.b-nav-links a,
.b-nav-links .b-dropbtn {
  color: #e8e8e4;
  font-family: var(--sb-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.b-nav-links a:hover, .b-nav-links a.b-active,
.b-nav-links .b-dropbtn:hover, .b-nav-links .b-dropbtn.b-active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--sb-lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.b-nav-links .b-dropdown-menu {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 0;
}
.b-nav-links .b-dropdown-menu a { color: #e8e8e4; text-transform: none;
  font-family: var(--sb-body); letter-spacing: 0; font-size: 0.92rem; }
.b-nav-links .b-dropdown-menu a:hover { background: #1c1c1c; color: #fff; }
.b-nav .b-btn--primary { background: var(--sb-blue); color: #fff; border-radius: 0; box-shadow: none; }
.b-nav .b-btn--ghost { background: transparent; border-color: #555; color: #fff; border-radius: 0; }
.b-nav-user { color: #fff; }
@media (max-width: 1024px) {
  #b-nav-menu, [data-theme="resume"] #b-nav-menu, [data-theme="research"] #b-nav-menu {
    background: #0a0a0a !important;
  }
  .b-nav-links .b-dropdown-menu { border: 0; }
}

/* ---------- nav crowding fix (2026-10-30): bar items must never wrap/merge ----------
   With 10+ links + brand + lang switch, mid-width viewports ran out of room and
   flex wrapped "STUDY-BUDDY" / "ULTIMATE LAB" / the lang switch onto two lines.
   Keep every item on one line and tighten spacing progressively instead. */
.b-nav-in { flex-wrap: nowrap; }
.b-brand { white-space: nowrap; flex-shrink: 0; }
.b-nav-links { flex-wrap: nowrap; }
.b-nav-links > li { flex-shrink: 0; }
.b-nav-links a, .b-nav-links .b-dropbtn { white-space: nowrap; }
.b-lang-switch { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 1450px) {
  .b-nav-links { gap: 14px; }
  .b-brand { font-size: 1.3rem; }
}
@media (max-width: 1150px) {
  .b-nav-links { gap: 10px; }
  .b-nav-links a, .b-nav-links .b-dropbtn { font-size: 0.72rem; }
  .b-brand { font-size: 1.15rem; }
  .b-brand img { width: 30px; height: 30px; }
}

/* SEC-09 consent nudge: single-line nav item, never wraps into the lang switch. */
.b-consent-nudge {
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
  color: #ffd166;
  font-family: var(--sb-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: #ffd166;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.b-consent-nudge:hover { color: #ffe1a1; }
@media (max-width: 1150px) {
  /* Bar is ~3px over budget here; drop the nudge's left margin to fit. */
  .b-consent-nudge { margin-left: 0; }
}

/* ---------- kill the generic-AI decorations on V2 pages ---------- */
.sb-editorial .b-ambient, .sb-workspace .b-ambient, .sb-workspace .particles,
.sb-editorial .b-scroll-progress { display: none !important; }
.sb-editorial .b-grad, .sb-workspace .b-grad, .sb-workspace .gradient-text {
  background: none !important; -webkit-background-clip: initial !important;
  background-clip: initial !important; color: inherit !important;
}

/* ---------- kinetic motion primitives (transform / opacity only) ---------- */
/* Masked headline reveal: lines emerge through clipping, not opacity fades. */
.sb-mask { overflow: hidden; display: block; }
.sb-mask > span {
  display: block;
  transform: translateY(112%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--sb-delay, 0ms);
}
.sb-mask.in > span, .no-js .sb-mask > span { transform: translateY(0); }
/* Scroll reveal for sections: small rise, no layout thrash. */
.sb-reveal { opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.sb-reveal.in, .no-js .sb-reveal { opacity: 1; transform: none; }
/* Interactive typography: a heading word changes emphasis on hover/focus. */
.sb-emphasis { transition: color 0.2s ease, background-color 0.2s ease; }
a:hover .sb-emphasis, a:focus-visible .sb-emphasis,
.sb-emphasis:hover { background: var(--sb-lime); color: var(--sb-lime-ink); }
/* Directional text transition: used on the editorial ticker only. */
.sb-ticker-track { animation: sb-ticker 28s linear infinite; }
.sb-ticker:hover .sb-ticker-track, .sb-ticker:focus-within .sb-ticker-track {
  animation-play-state: paused;
}
@keyframes sb-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .sb-mask > span, .sb-reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
  .sb-ticker-track { animation: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ---------- Mode A: editorial (homepage) ---------- */
body.sb-editorial {
  background: #0a0a0a; color: #fff;
  font-family: var(--sb-body);
}
.sb-editorial .b-wrap { max-width: var(--sb-max); }
.sb-editorial .b-footer { border-top: 1px solid #2a2a2a; color: #a3a3a0; background: #0a0a0a; }
.sb-editorial .b-foot-in a { color: #a3a3a0; }
.sb-editorial .b-foot-in a:hover { color: #fff; }
.sb-kicker {
  font-family: var(--sb-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sb-lime);
}
.sb-hero { padding: 64px 0 32px; }
.sb-hero-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end;
}
.sb-display {
  font-family: var(--sb-display); font-weight: 800; text-transform: uppercase;
  line-height: 0.88; letter-spacing: -0.01em; margin: 16px 0 0;
  font-size: clamp(4.2rem, 11vw, 10.5rem);
}
.sb-display .sb-accent { color: var(--sb-blue); }
.sb-display .sb-accent-lime { background: var(--sb-lime); color: var(--sb-lime-ink); padding: 0 0.08em; }
.sb-hero-side { padding-bottom: 12px; }
.sb-lede { font-size: 1.12rem; line-height: 1.65; color: #d4d4cf; max-width: 520px; margin: 0 0 28px; }
.sb-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sb-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 12px 22px; font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 2px solid transparent; border-radius: 0; cursor: pointer; font-family: var(--sb-body);
}
.sb-btn:focus-visible { outline: 3px solid var(--sb-lime); outline-offset: 3px; }
.sb-btn--primary { background: var(--sb-blue); color: #fff; }
.sb-btn--primary:hover { background: var(--sb-blue-dark); color: #fff; }
.sb-btn--outline { background: transparent; border-color: #fff; color: #fff; }
.sb-btn--outline:hover { background: #fff; color: #0a0a0a; }
.sb-btn--dark { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.sb-btn--dark:hover { background: #222; }
.sb-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; margin-top: 56px;
}
.sb-stat { padding: 22px 20px 22px 0; border-right: 1px solid #2a2a2a; }
.sb-stat:last-child { border-right: 0; }
.sb-stat b { display: block; font-family: var(--sb-display); font-size: 2.6rem; line-height: 1; font-weight: 800; }
.sb-stat span { font-size: 0.85rem; color: #a3a3a0; display: block; margin-top: 6px; }
.sb-ticker {
  overflow: hidden; border-bottom: 1px solid #2a2a2a; padding: 18px 0;
  white-space: nowrap; background: #0a0a0a;
}
.sb-ticker-track { display: inline-flex; gap: 0; will-change: transform; }
.sb-ticker-track span {
  font-family: var(--sb-display); font-size: 2.2rem; font-weight: 800; text-transform: uppercase;
  padding-right: 28px; color: #fff;
}
.sb-ticker-track span i { font-style: normal; color: var(--sb-blue); padding-right: 28px; }
.sb-section { padding: 72px 0 8px; }
.sb-section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.sb-section-title {
  font-family: var(--sb-display); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.92;
  font-weight: 800; text-transform: uppercase; margin: 0;
}
.sb-section-note { max-width: 360px; color: #a3a3a0; line-height: 1.6; margin: 0; padding-bottom: 8px; }
.sb-tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid #fff; }
.sb-tool {
  border-bottom: 1px solid #2a2a2a; border-right: 1px solid #2a2a2a; padding: 28px 24px 32px;
  color: #fff; text-decoration: none; display: block; min-height: 230px;
}
.sb-tool:nth-child(3n) { border-right: 0; }
.sb-tool:hover, .sb-tool:focus-visible { background: #151515; }
.sb-tool:hover .sb-tool-title, .sb-tool:focus-visible .sb-tool-title { color: var(--sb-lime); }
.sb-tool-num { font-family: var(--sb-mono); font-size: 0.78rem; color: var(--sb-lime); letter-spacing: 0.1em; }
.sb-tool-title { display: block; font-family: var(--sb-display); font-size: 2.1rem; font-weight: 800; text-transform: uppercase; line-height: 0.95; margin: 18px 0 10px; }
.sb-tool-num { display: block; }
.sb-tool p { color: #a3a3a0; line-height: 1.6; margin: 0; }
.sb-tool .sb-tool-link { display: block; margin-top: 18px; font-family: var(--sb-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.sb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sb-step { border-top: 2px solid #fff; padding-top: 20px; }
.sb-step b { font-family: var(--sb-display); font-size: 1.9rem; font-weight: 800; text-transform: uppercase; display: block; line-height: 1; }
.sb-step p { color: #a3a3a0; line-height: 1.65; }
.sb-cta-band { background: var(--sb-blue); color: #fff; padding: 64px 48px; margin: 72px 0 0; }
.sb-cta-band .sb-section-title { color: #fff; }
.sb-cta-band p { color: #dbe2ff; max-width: 560px; line-height: 1.65; }
.sb-outline-word {
  font-family: var(--sb-display); font-weight: 800; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 2.5px #3a3a3a; line-height: 0.9;
  font-size: clamp(3rem, 8vw, 7rem); user-select: none;
}
@media (max-width: 900px) {
  .sb-hero-grid, .sb-tool-grid, .sb-steps { grid-template-columns: 1fr; }
  .sb-hero { padding-top: 40px; }
  .sb-stats { grid-template-columns: repeat(2, 1fr); }
  .sb-stat:nth-child(2n) { border-right: 0; }
  .sb-tool { border-right: 0; min-height: 0; }
  .sb-section-head { flex-direction: column; align-items: flex-start; }
  .sb-cta-band { padding: 40px 24px; }
}
@media (max-width: 520px) {
  .sb-stats { grid-template-columns: 1fr; }
  .sb-stat { border-right: 0; border-bottom: 1px solid #2a2a2a; }
  .sb-stat:last-child { border-bottom: 0; }
}

/* ---------- Mode B: workspace (Resume Studio) ----------
   Expressive intro stays black; the working area is paper, calm and readable.
   All existing form / result element IDs and classes are preserved. */
body.sb-workspace { background: var(--sb-paper-2); color: var(--sb-ink); font-family: var(--sb-body); }
.sb-workspace .b-footer { background: var(--sb-paper-2); color: var(--sb-muted-dark); border-top: 1px solid var(--sb-line-soft); }
.sb-workspace .b-foot-in a { color: var(--sb-muted-dark); }
.sb-workspace .b-foot-in a:hover { color: var(--sb-ink); }
.sb-work-intro { background: #0a0a0a; color: #fff; }
.sb-work-intro .b-wrap { max-width: var(--sb-work-max); padding-top: 56px; padding-bottom: 48px; }
.sb-work-intro .sb-display { font-size: clamp(3.4rem, 9vw, 7.5rem); color: #fff; }
.sb-work-intro .sb-display .sb-accent { color: var(--sb-blue); }
.sb-work-intro .sb-lede { color: #d4d4cf; }
.sb-work-meta { font-family: var(--sb-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sb-lime); }
.sb-work { max-width: var(--sb-work-max); margin: 0 auto; padding: 0 22px 72px; }
.sb-work .hero { background: none !important; padding: 40px 0 8px !important; }
.sb-work .hero::before { display: none !important; }
.sb-work .hero-content { max-width: none; }
.sb-work .hero h1 { font-family: var(--sb-display) !important; font-size: 2rem !important; text-transform: uppercase; color: var(--sb-ink) !important; }
.sb-work .hero p { color: var(--sb-muted-dark) !important; max-width: 720px; }
.sb-work .upload-container { max-width: 720px; }
.sb-work .upload-card {
  background: #fff !important; border: 2px dashed #0a0a0a !important; border-radius: 0 !important;
  box-shadow: none !important; color: var(--sb-ink) !important; padding: 32px !important;
}
.sb-work .upload-card h3 { color: var(--sb-ink) !important; font-family: var(--sb-display); font-size: 1.8rem; text-transform: uppercase; }
.sb-work .upload-card p { color: var(--sb-muted-dark) !important; }
.sb-work .file-type-badge { background: #0a0a0a !important; color: #fff !important; border-radius: 0 !important; }
.sb-work .btn-analyze, .sb-work .jd-submit {
  background: var(--sb-blue) !important; color: #fff !important; border: 2px solid var(--sb-blue) !important;
  border-radius: 0 !important; box-shadow: none !important; font-weight: 600 !important;
  min-height: 48px; padding: 12px 22px; cursor: pointer; font-family: var(--sb-body) !important;
}
.sb-work .btn-analyze:hover, .sb-work .jd-submit:hover { background: var(--sb-blue-dark) !important; }
.sb-work .jd-section { padding: 0 !important; margin: 84px 0 0 !important; }
.sb-work .jd-card {
  background: #fff !important; border: 1px solid var(--sb-line-soft) !important; border-radius: 0 !important;
  box-shadow: none !important; color: var(--sb-ink) !important; padding: 32px !important;
}
.sb-work .jd-card h2 { font-family: var(--sb-display) !important; font-size: 2.1rem !important; text-transform: uppercase; line-height: 0.95; color: var(--sb-ink) !important; }
.sb-work .jd-card > p { color: var(--sb-muted-dark) !important; line-height: 1.65; max-width: 720px; }
.sb-work .jd-label { color: var(--sb-ink) !important; font-weight: 600 !important; }
.sb-work .jd-textarea, .sb-work .jd-file {
  background: #fff !important; border: 1.5px solid #0a0a0a !important; border-radius: 0 !important;
  color: var(--sb-ink) !important; font: inherit !important; padding: 12px 14px !important;
}
.sb-work .jd-textarea:focus-visible, .sb-work .jd-file:focus-visible {
  outline: 3px solid var(--sb-blue) !important; outline-offset: 2px;
}
.sb-work .jd-login-cta { background: var(--sb-paper-2) !important; border: 1px solid var(--sb-line-soft) !important; padding: 20px !important; }
.sb-work .jd-login-cta p { color: var(--sb-muted-dark) !important; }
.sb-work .jd-login-cta a { background: var(--sb-blue) !important; color: #fff !important; font-weight: 600; border-radius: 0 !important; padding: 12px 20px !important; display: inline-block !important; text-decoration: none !important; box-shadow: none !important; }
.sb-work .jd-saved-link a { color: var(--sb-blue) !important; font-weight: 600; }
.sb-work .upload-icon { background: #0a0a0a !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important; }
.sb-work .upload-icon svg { stroke: #fff !important; }
.sb-work .b-icon { background: #fff !important; border: 1px solid var(--sb-line-soft) !important; }
.sb-work .b-icon svg { stroke: #0a0a0a !important; }
.sb-work .jd-error, .sb-work .error-message { color: #b00020 !important; }
.sb-work .b-card { background: #fff; border: 1px solid var(--sb-line-soft); border-radius: 0; box-shadow: none; color: var(--sb-ink); }
.sb-work .b-card:hover { transform: none !important; box-shadow: none !important; }
.sb-work .b-card h3 { color: var(--sb-ink) !important; }
.sb-work .b-card p { color: var(--sb-muted-dark) !important; }
.sb-work .b-sec-head h2 { font-family: var(--sb-display); text-transform: uppercase; color: var(--sb-ink); }
.sb-work .b-sec-head p { color: var(--sb-muted-dark); }
.sb-work-num {
  font-family: var(--sb-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sb-blue); display: block; margin-bottom: 12px; font-weight: 600;
}
.sb-work .loading-overlay { background: rgba(255,255,255,0.95) !important; color: var(--sb-ink) !important; }
.sb-work .loading-spinner { border-color: var(--sb-line-soft) !important; border-top-color: var(--sb-blue) !important; }
.sb-work .loading-text { color: var(--sb-ink) !important; }
@media (max-width: 900px) {
  .sb-work .jd-card, .sb-work .upload-card { padding: 22px !important; }
  .sb-work-intro .b-wrap { padding-top: 36px; padding-bottom: 32px; }
}

/* ---------- Homepage editorial visual panel (original SVG, no photo) ---------- */
.sb-hero-visual {
  position: relative; min-height: 340px; border: 1px solid #2a2a2a; padding: 24px;
  background: #0f0f0f; overflow: hidden;
}
.sb-hero-visual .sb-brush { position: absolute; right: -20px; top: 18px; width: 78%; opacity: 0.95; }
.sb-hero-visual .sb-note {
  position: absolute; font-style: italic; font-size: 1.05rem; color: #d4d4cf; max-width: 220px; line-height: 1.4;
}
.sb-hero-visual .sb-note--a { left: 24px; top: 28px; transform: rotate(-3deg); }
.sb-hero-visual .sb-note--b { right: 24px; bottom: 64px; transform: rotate(2deg); text-align: right; }
.sb-hero-visual .sb-marker {
  position: absolute; left: 24px; bottom: 24px; font-family: var(--sb-display);
  font-size: 4.5rem; font-weight: 800; line-height: 0.8; color: #fff;
}
.sb-hero-visual .sb-marker i { font-style: normal; color: var(--sb-blue); }
.sb-hero-below { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; margin-top: 32px; align-items: start; }
@media (max-width: 900px) {
  .sb-hero-visual { min-height: 280px; }
  .sb-hero-below { grid-template-columns: 1fr; }
}

/* ---------- Mode C: dashboard (history.html, extends base.html) ---------- */
.sb-dash { background: #0a0a0a; color: #fff; }
.sb-dash .b-card { background: #111 !important; border: 1px solid #2a2a2a !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important; }
.sb-dash .b-card:hover { transform: none !important; box-shadow: none !important; }
.sb-dash .b-card p, .sb-dash .b-lede { color: #a3a3a0 !important; }
.sb-dash .b-sec-head h2 { font-family: var(--sb-display); text-transform: uppercase; color: #fff; font-size: 2rem; line-height: 0.95; }
.sb-dash .b-sec-head p { color: #a3a3a0; }
.sb-dash .b-stat-num { font-family: var(--sb-display); background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: #fff !important; }
.sb-dash .b-stat-label { color: #a3a3a0; }
.sb-dash .b-tag { background: #1c1c1c !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important; }
.sb-dash .b-btn--primary { background: var(--sb-blue) !important; border-radius: 0 !important; box-shadow: none !important; }
.sb-dash .b-btn--ghost { border-radius: 0 !important; color: #fff !important; border-color: #555 !important; }
.sb-dash .b-input { background: #111 !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important; }
.sb-dash .b-bar { background: #222 !important; }
.sb-dash .b-bar i { background: var(--sb-blue) !important; }
.sb-dash a { color: #fff; }
.sb-dash-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; margin-top: 32px; }
.sb-dash-side { border: 1px solid #2a2a2a; padding: 24px; position: sticky; top: 84px; }
.sb-dash-side h2 { font-family: var(--sb-display); font-size: 1.6rem; text-transform: uppercase; margin: 0 0 16px; }
.sb-dash-side ul { list-style: none; margin: 0; padding: 0; }
.sb-dash-side li { border-bottom: 1px solid #222; }
.sb-dash-side a { display: flex; justify-content: space-between; padding: 12px 0; text-decoration: none; color: #e8e8e4; font-weight: 500; }
.sb-dash-side a:hover { color: var(--sb-lime); }
.sb-dash-side a span { font-family: var(--sb-mono); font-size: 0.75rem; color: #a3a3a0; }
@media (max-width: 900px) { .sb-dash-layout { grid-template-columns: 1fr; } .sb-dash-side { position: static; } }

/* ---------- Results page (dashboard.html): real score ring, solid blue ---------- */
body.sb-results { background: #0a0a0a; color: #fff; font-family: var(--sb-body); }
.sb-results .dashboard, .sb-results .dashboard-container { max-width: var(--sb-max); margin: 0 auto; padding: 0 22px; }
.sb-results .dashboard-header h1 { font-family: var(--sb-display); font-size: clamp(2.4rem, 6vw, 4.5rem); text-transform: uppercase; line-height: 0.92; color: #fff; }
.sb-results .summary-text { color: #a3a3a0; line-height: 1.65; max-width: 720px; }
.sb-results .ats-score-card, .sb-results .ats-breakdown, .sb-results .dash-card, .sb-results .full-section, .sb-results .job-card, .sb-results .career-card, .sb-results .roadmap-item {
  background: #111 !important; border: 1px solid #2a2a2a !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important;
}
.sb-results .ats-breakdown h3, .sb-results .dash-card h3, .sb-results .full-section h3 { font-family: var(--sb-display); text-transform: uppercase; color: #fff; }
.sb-results .bg-circle { stroke: #222 !important; fill: none !important; stroke-width: 10 !important; }
.sb-results .progress-circle { stroke: url("#scoreGradient") !important; fill: none !important; stroke-width: 10 !important; stroke-linecap: butt !important; }
.sb-results .score-number { font-family: var(--sb-display); color: #fff; }
.sb-results .score-label, .sb-results .breakdown-label, .sb-results .breakdown-details { color: #a3a3a0 !important; }
.sb-results .breakdown-bar { background: #222 !important; }
.sb-results .breakdown-fill, .sb-results .match-fill { background: var(--sb-blue) !important; }
.sb-results .skill-tag, .sb-results .job-skill-tag, .sb-results .resource-tag { background: #1c1c1c !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important; }
.sb-results .btn-analyze { background: var(--sb-blue) !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important; }
.sb-results .b-footer { background: #0a0a0a; border-top: 1px solid #2a2a2a; color: #a3a3a0; }

/* ---------- DSA (dark workspace, list-first) ---------- */
body.sb-dsa { background: #0a0a0a; color: #fff; font-family: var(--sb-body); }
.sb-dsa-wrap { max-width: var(--sb-max); margin: 0 auto; padding: 48px 22px 72px; }
.sb-dsa .dsa-head h1 { font-family: var(--sb-display); font-size: clamp(3rem, 8vw, 6.5rem); text-transform: uppercase; line-height: 0.9; margin: 0; }
.sb-dsa .dsa-head h1 .sb-accent { color: var(--sb-lime); }
.sb-dsa .dsa-head p { color: #a3a3a0; line-height: 1.65; max-width: 720px; }
/* DSA hero photo: B&W photo on pure black, screen-blended into the ink
   ground (the dark-page mirror of the homepage's multiply treatment)
   so no box or panel edge ever shows. */
.sb-dsa .dsa-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); gap: 2.5rem; align-items: center; }
.sb-dsa .dsa-hero-art img { width: 100%; height: auto; display: block; mix-blend-mode: screen; filter: grayscale(1) contrast(1.05); }
@media (max-width: 900px) {
    .sb-dsa .dsa-hero { grid-template-columns: 1fr; gap: 1.2rem; }
    .sb-dsa .dsa-hero-art { max-width: 360px; }
}
.sb-dsa .dsa-head a { color: #fff; font-weight: 600; }
.sb-dsa .dsa-card { background: #111 !important; border: 1px solid #2a2a2a !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important; }
.sb-dsa .dsa-field label { color: #a3a3a0; font-family: var(--sb-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sb-dsa .dsa-field select { background: #111 !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important; }
.sb-dsa .dsa-field select option { background: #111; }
.sb-dsa .dsa-prob { background: #111 !important; border: 1px solid #2a2a2a !important; border-radius: 0 !important; color: #fff !important; }
.sb-dsa .dsa-prob:hover { border-color: var(--sb-lime) !important; }
.sb-dsa .dsa-prob .t { font-family: var(--sb-display); font-size: 1.4rem; text-transform: uppercase; }
.sb-dsa .dsa-prob .tags { color: #a3a3a0 !important; }
.sb-dsa .dsa-chip { border-radius: 0 !important; }
.sb-dsa .dsa-count { color: #a3a3a0; font-family: var(--sb-mono); font-size: 0.8rem; }
.sb-dsa .sb-badge { background: #1c1c1c !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important; }

/* ---------- Mock interview (focused, calm during the session) ---------- */
body.sb-iv { background: #0a0a0a; color: #fff; font-family: var(--sb-body); }
.sb-iv-wrap { max-width: 900px; margin: 0 auto; padding: 48px 22px 72px; }
.sb-iv .iv-head h1 { font-family: var(--sb-display); font-size: clamp(3rem, 9vw, 7rem); text-transform: uppercase; line-height: 0.88; margin: 0; }
.sb-iv .iv-head h1 .sb-accent { color: var(--sb-blue); }
.sb-iv .iv-head p { color: #a3a3a0; line-height: 1.65; }
.sb-iv .iv-card { background: #111 !important; border: 1px solid #2a2a2a !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important; }
.sb-iv .iv-field label { color: #a3a3a0; font-family: var(--sb-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sb-iv .iv-field select, .sb-iv .iv-answer { background: #111 !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important; }
.sb-iv .iv-btn { background: var(--sb-blue) !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important; }
.sb-iv .iv-btn-ghost { background: transparent !important; border: 1px solid #555 !important; color: #fff !important; }
.sb-iv .iv-chip { background: #1c1c1c !important; color: #fff !important; border: 1px solid #333 !important; border-radius: 0 !important; }
.sb-iv .iv-progress { background: #222 !important; border-radius: 0 !important; }
.sb-iv .iv-progress > div { background: var(--sb-blue) !important; border-radius: 0 !important; }
.sb-iv .iv-q { font-family: var(--sb-body); font-size: 1.25rem; line-height: 1.55; color: #fff; }
.sb-iv .iv-bar { background: #222 !important; border-radius: 0 !important; }
.sb-iv .iv-bar > div { background: var(--sb-blue) !important; border-radius: 0 !important; }
.sb-iv .iv-score-ring { border: 3px solid var(--sb-blue) !important; border-radius: 0 !important; color: #fff !important; }
.sb-iv .iv-error { color: #ff6b6b !important; }
.sb-iv .iv-login-cta a { color: #fff; font-weight: 600; }

/* ---------- Research hub (dark editorial, sections preserved) ---------- */
body.sb-research { background: #0a0a0a; color: #fff; font-family: var(--sb-body); }
.sb-research .b-nav { background: #0a0a0a !important; }
.sb-research .hero h1 { font-family: var(--sb-display); font-size: clamp(3rem, 8vw, 6.5rem); text-transform: uppercase; line-height: 0.9; color: #fff; }
.sb-research .hero h1 .sb-accent { color: #2ee6a8; }
.sb-research .hero p { color: #a3a3a0; line-height: 1.65; max-width: 680px; }
.sb-research .feature-card, .sb-research .form-container, .sb-research .chat-sidebar, .sb-research .chat-main, .sb-research .result-card {
  background: #111 !important; border: 1px solid #2a2a2a !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important;
}
.sb-research .feature-card h3, .sb-research .section-header h2 { font-family: var(--sb-display); text-transform: uppercase; color: #fff; }
.sb-research .feature-card p, .sb-research .section-header p { color: #a3a3a0 !important; }
.sb-research .btn, .sb-research .btn-primary { background: var(--sb-blue) !important; border-radius: 0 !important; color: #fff !important; box-shadow: none !important; }
.sb-research .btn-outline { background: transparent !important; border: 1px solid #fff !important; color: #fff !important; }
.sb-research input, .sb-research textarea { background: #111 !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important; }
.sb-research input::placeholder, .sb-research textarea::placeholder { color: #777; }
.sb-research .nav-link { color: #e8e8e4 !important; font-family: var(--sb-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sb-research .nav-link.active { color: #fff !important; text-decoration: underline; text-decoration-color: var(--sb-lime); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.sb-research .upload-zone { border: 2px dashed #fff !important; background: #111 !important; }
.sb-research .bubble { background: #1c1c1c !important; color: #fff !important; border-radius: 0 !important; }
/* Kill ambient glows on kinetic pages (base.html still renders them for dashboard) */
body:has(.sb-dash) .b-ambient, body.sb-dsa .b-ambient, body.sb-iv .b-ambient, body.sb-research .b-ambient, body.sb-results .b-ambient { display: none !important; }
body.sb-dsa, body.sb-iv, body.sb-research, body.sb-results { background: #0a0a0a !important; background-image: none !important; }
body:has(.sb-dash) { background: #0a0a0a !important; }
/* DSA list layout (was inline in dsa.html, now in kinetic) */
.sb-dsa .dsa-card { padding: 1.6rem; margin-bottom: 1.2rem; }
.sb-dsa .dsa-filters { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: end; }
.sb-dsa .dsa-prob { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; text-decoration: none; }
.sb-dsa .dsa-chip { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; white-space: nowrap; }
.sb-dsa .diff-Easy { background: rgba(16,185,129,0.15); color: #34d399; }
.sb-dsa .diff-Medium { background: rgba(245,158,11,0.15); color: #f59e0b; }
.sb-dsa .diff-Hard { background: rgba(239,68,68,0.15); color: #f87171; }
/* a11y (Eval 3, 2026-10-31): #ef4444 on the red tint was 4.33:1 — #f87171
   keeps the red hue and reaches 5.9:1 on the blended chip background. */
.sb-dsa .st-solved { background: rgba(16,185,129,0.2); color: #34d399; }
.sb-dsa .st-attempted { background: rgba(59,130,246,0.2); color: #60a5fa; }
.sb-dsa .st-stuck { background: rgba(239,68,68,0.2); color: #f87171; }
/* a11y (Eval 3, 2026-10-31): same failing red pair as .diff-Hard above. */
/* Interview layout (was inline in interview.html, now in kinetic) */
.sb-iv .iv-card { padding: 2rem; margin-bottom: 1.2rem; }
.sb-iv .iv-field { margin-bottom: 1rem; }
.sb-iv .iv-field select { width: 100%; padding: 0.8rem 1rem; font-size: 0.95rem; }
.sb-iv .iv-progress { height: 8px; margin-bottom: 1.2rem; overflow: hidden; }
.sb-iv .iv-qmeta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; align-items: center; }
.sb-iv .iv-timer { font-size: 0.85rem; color: #a3a3a0; font-variant-numeric: tabular-nums; }
.sb-iv .iv-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; gap: 0.8rem; flex-wrap: wrap; }
.sb-iv .iv-kp { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed #333; }
.sb-iv .iv-score-ring { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; margin: 0 auto 1rem; }
.sb-iv .iv-bar-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 0.7rem; align-items: center; margin-bottom: 0.55rem; font-size: 0.85rem; }
@media (max-width: 700px) { .sb-dsa .dsa-prob { flex-direction: column; align-items: flex-start; } .sb-iv .iv-card { padding: 1.4rem; } .sb-iv .iv-bar-row { grid-template-columns: 100px 1fr 40px; } }

/* ---------- Mode D: app workspace (sweep for the standalone tool pages) ----------
   aptitude / assessment / coach / tracker / salary / star / practice /
   opportunities / portfolio / reports / dsa_problem — pages that pair
   bento.css + resume_style.css with inline styles. The resume_style
   variables are re-mapped to the kinetic palette at body scope; display
   headings, buttons and form atoms follow the same rules as Modes A–C. */
body.sb-app {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1c1c1c;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.07);
  --accent-primary: #6e86ff;
  --accent-secondary: #c8ff2e;
  --accent-tertiary: #f59e0b;
  --accent-warning: #f59e0b;
  --accent-danger: #ff6b6b;
  --accent-info: #6e86ff;
  --gradient-primary: linear-gradient(135deg, #2447ff 0%, #2447ff 100%);
  --gradient-secondary: linear-gradient(135deg, #1c1c1c 0%, #1c1c1c 100%);
  --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
  --gradient-card: linear-gradient(145deg, rgba(36, 71, 255, 0.08), rgba(255, 255, 255, 0.02));
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(36, 71, 255, 0.12) 0%, transparent 60%);
  --text-primary: #ffffff;
  --text-secondary: #d4d4cf;
  --text-muted: #a3a3a0;
  --text-main: #ffffff;
  --text-accent: #6e86ff;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(36, 71, 255, 0.45);
  --border-glow: rgba(36, 71, 255, 0.55);
  background: #0a0a0a !important;
  background-image: none !important;
  color: #fff;
  font-family: var(--sb-body);
}
body.sb-app .b-ambient { display: none !important; }
body.sb-app .gradient-text {
  background: none !important; -webkit-background-clip: initial !important;
  background-clip: initial !important; color: var(--sb-lime) !important;
}
body.sb-app h1 {
  font-family: var(--sb-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.005em; line-height: 0.95; color: #fff;
}
body.sb-app h2, body.sb-app h3 { color: #fff; }
body.sb-app h2 { font-family: var(--sb-display); text-transform: uppercase; letter-spacing: 0.01em; }
body.sb-app .b-footer { background: #0a0a0a; border-top: 1px solid #2a2a2a; color: #a3a3a0; }
body.sb-app input, body.sb-app select, body.sb-app textarea {
  background: #111 !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important;
}
body.sb-app select option { background: #111; color: #fff; }
body.sb-app input::placeholder, body.sb-app textarea::placeholder { color: #777; }
body.sb-app table thead th { color: #a3a3a0; border-bottom-color: #2a2a2a; }
body.sb-app table tbody td { border-bottom-color: #222; }
body.sb-app a { color: #fff; }
/* sb-app primary buttons: several tool pages paired a near-black text
   color with the old emerald gradient; on the kinetic blue they must be
   white on flat blue, square corners (Modes A–C language). */
body.sb-app .ap-btn, body.sb-app .ch-btn, body.sb-app .cr-btn,
body.sb-app .dp-btn, body.sb-app .st-btn, body.sb-app .opp-btn,
body.sb-app .pb-btn, body.sb-app .sal-btn, body.sb-app .si-btn,
body.sb-app .tk-btn {
  background: var(--sb-blue) !important; color: #fff !important;
  border-radius: 0 !important; box-shadow: none !important; border-color: var(--sb-blue) !important;
}
body.sb-app .ap-btn:hover, body.sb-app .ch-btn:hover, body.sb-app .cr-btn:hover,
body.sb-app .dp-btn:hover, body.sb-app .st-btn:hover, body.sb-app .opp-btn:hover,
body.sb-app .pb-btn:hover, body.sb-app .sal-btn:hover, body.sb-app .si-btn:hover,
body.sb-app .tk-btn:hover { background: var(--sb-blue-dark) !important; }
/* [hidden] must always win: several tool pages style their modal
   backdrops with display:flex, which (author origin) overrides the UA
   [hidden] rule and leaves dialogs visible on load (tracker bug found
   during the sweep; the JS toggles .hidden correctly). */
[hidden] { display: none !important; }

/* ---------- Mode E: base pages (the 43 templates extending base.html) ----------
   base.html now puts .sb-base on <body>. The bento variables are
   re-mapped to the kinetic palette at body scope (they inherit to every
   descendant, so all var-driven bento components shift at once) and the
   shared components get the Modes A–C treatment: flat #111 cards,
   square corners, blue primaries, Barlow display headings, no ambient
   glows, no gradient text. Page-scoped V2 rules (sb-editorial,
   sb-workspace, sb-dash, sb-results) keep their higher specificity. */
body.sb-base {
  --b-bg: #0a0a0a;
  --b-surface: #0a0a0a;
  --b-card: #111111;
  --b-card-solid: #111111;
  --b-border: #2a2a2a;
  --b-text: #ffffff;
  --b-muted: #a3a3a0;
  --b-radius: 0px;
  --b-radius-sm: 0px;
  --b-a1: #2447ff;
  --b-a2: #c8ff2e;
  --b-a3: #2ee6a8;
  --b-glow-1: transparent;
  --b-glow-2: transparent;
  --b-glow-3: transparent;
  --b-grad: linear-gradient(92deg, #c8ff2e, #c8ff2e);
  --b-btn-grad: linear-gradient(135deg, #2447ff, #2447ff);
  --b-accent-soft: rgba(36, 71, 255, 0.12);
  --b-accent-border: rgba(36, 71, 255, 0.45);
  --b-danger: #ff6b6b;
  --b-danger-border: rgba(255, 107, 107, 0.45);
  --b-ok: #2ee6a8;
  --b-warn: #f59e0b;
  background: #0a0a0a;
  color: #fff;
  font-family: var(--sb-body);
}
body.sb-base .b-ambient { display: none !important; }
body.sb-base .b-card {
  background: #111 !important; border: 1px solid #2a2a2a !important;
  border-radius: 0 !important; box-shadow: none !important; color: #fff !important;
}
body.sb-base .b-card:hover { transform: none !important; box-shadow: none !important; }
body.sb-base .b-card p, body.sb-base .b-lede { color: #a3a3a0 !important; }
body.sb-base h1 {
  font-family: var(--sb-display); font-weight: 800; text-transform: uppercase;
  line-height: 0.95; letter-spacing: 0.005em; color: #fff;
}
body.sb-base h2 { font-family: var(--sb-display); text-transform: uppercase; letter-spacing: 0.01em; color: #fff; }
body.sb-base .b-sec-head h2 { font-size: 2rem; line-height: 0.95; }
body.sb-base .b-sec-head p { color: #a3a3a0; }
body.sb-base .b-btn--primary {
  background: var(--sb-blue) !important; border-radius: 0 !important; box-shadow: none !important; color: #fff !important;
}
body.sb-base .b-btn--ghost { border-radius: 0 !important; color: #fff !important; border-color: #555 !important; background: transparent !important; }
body.sb-base .b-input, body.sb-base input, body.sb-base select, body.sb-base textarea {
  background: #111 !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important;
}
body.sb-base select option { background: #111; color: #fff; }
body.sb-base .b-tag {
  background: #1c1c1c !important; border: 1px solid #333 !important; color: #fff !important; border-radius: 0 !important;
}
body.sb-base .b-stat-num {
  font-family: var(--sb-display); background: none !important;
  -webkit-background-clip: initial !important; background-clip: initial !important; color: #fff !important;
}
body.sb-base .b-stat-label { color: #a3a3a0; }
body.sb-base .b-bar { background: #222 !important; border-radius: 0 !important; }
body.sb-base .b-bar i { background: var(--sb-blue) !important; border-radius: 0 !important; }
body.sb-base .b-footer { background: #0a0a0a; border-top: 1px solid #2a2a2a; color: #a3a3a0; }
body.sb-base table thead th { color: #a3a3a0; border-bottom-color: #2a2a2a; }
body.sb-base table tbody td { border-bottom-color: #222; }
body.sb-base .b-pill, body.sb-app .b-pill { border-radius: 0 !important; }

/* ---------- Cross-verify alignment with the six reference boards ----------
   Board 1 home is CREAM editorial (not black); Board 3's resume intro
   band is paper with a lime accent word; Board 2 greets by name. The
   rules below flip those surfaces while keeping the V2 layouts. */
body.sb-editorial { background: var(--sb-paper-2); color: var(--sb-ink); }
body.sb-editorial .b-nav { background: var(--sb-paper-2) !important; border-bottom: 2px solid var(--sb-ink); }
body.sb-editorial .b-brand { color: var(--sb-ink); }
body.sb-editorial .b-nav-links a, body.sb-editorial .b-nav-links .b-dropbtn { color: #2a2a26; }
body.sb-editorial .b-nav-links a:hover, body.sb-editorial .b-nav-links a.b-active,
body.sb-editorial .b-nav-links .b-dropbtn:hover, body.sb-editorial .b-nav-links .b-dropbtn.b-active { color: var(--sb-ink); }
body.sb-editorial .b-nav .b-btn--ghost { border-color: var(--sb-ink) !important; color: var(--sb-ink) !important; }
body.sb-editorial .b-nav-user { color: var(--sb-ink); }
body.sb-editorial #b-nav-menu { background: var(--sb-paper-2) !important; }
body.sb-editorial .sb-kicker { color: var(--sb-blue); }
body.sb-editorial .sb-display { color: var(--sb-ink); }
body.sb-editorial .sb-lede { color: #3f3f3a; }
body.sb-editorial .sb-btn--outline { border-color: var(--sb-ink); color: var(--sb-ink); }
body.sb-editorial .sb-btn--outline:hover { background: var(--sb-ink); color: #fff; }
/* a11y contrast fixes (Eval 3, 2026-10-31) — light "paper" editorial theme.
   These elements kept the global dark-theme colors (#22d3ee links, #ffd166
   nudge, ink outline button) which fail on #f2f1ea / the blue CTA band.
   Same hues, only lightened/darkened to reach 4.5:1. */
body.sb-editorial .b-lang-switch a { color: #0c6b83; }
body.sb-editorial .b-consent-nudge { color: #7c4d00; text-decoration-color: #7c4d00; }
body.sb-editorial .b-consent-nudge:hover { color: #5f3b00; text-decoration-color: #5f3b00; }
body.sb-editorial .sb-cta-band .sb-btn--outline { color: #fff; border-color: #fff; }
body.sb-editorial .sb-cta-band .sb-btn--outline:hover { background: #fff; color: var(--sb-blue); }
body.sb-editorial .sb-hero-visual { border-color: var(--sb-ink); }
body.sb-editorial .sb-stats { border-color: #d8d6cc; }
body.sb-editorial .sb-stat { border-color: #d8d6cc; }
body.sb-editorial .sb-stat b { color: var(--sb-ink); }
body.sb-editorial .sb-stat span { color: var(--sb-muted-dark); }
body.sb-editorial .sb-ticker { border-bottom-color: var(--sb-ink); }
body.sb-editorial .sb-section-title { color: var(--sb-ink); }
body.sb-editorial .sb-section-note { color: var(--sb-muted-dark); }
body.sb-editorial .sb-tool-grid { border-top-color: var(--sb-ink); }
body.sb-editorial .sb-tool { color: var(--sb-ink); border-color: #d8d6cc; }
body.sb-editorial .sb-tool:hover, body.sb-editorial .sb-tool:focus-visible { background: #e9e7dd; }
body.sb-editorial .sb-tool:hover .sb-tool-title, body.sb-editorial .sb-tool:focus-visible .sb-tool-title { color: var(--sb-blue); }
body.sb-editorial .sb-tool p { color: var(--sb-muted-dark); }
body.sb-editorial .sb-tool .sb-tool-link { color: var(--sb-ink); }
body.sb-editorial .sb-tool-num { color: var(--sb-blue); }
body.sb-editorial .sb-step { border-top-color: var(--sb-ink); }
body.sb-editorial .sb-step b { color: var(--sb-ink); }
body.sb-editorial .sb-step p { color: var(--sb-muted-dark); }
body.sb-editorial .sb-outline-word { -webkit-text-stroke-color: #c4c1b4; }
.sb-workspace .sb-work-intro { background: var(--sb-paper-2); color: var(--sb-ink); }
.sb-workspace .sb-work-intro .sb-display { color: var(--sb-ink); }
.sb-workspace .sb-work-intro .sb-display .sb-accent { color: var(--sb-lime); }
.sb-workspace .sb-work-intro .sb-lede { color: #3f3f3a; }
.sb-workspace .sb-work-meta { color: var(--sb-blue); }
.sb-iv .iv-btn { padding: 12px 22px; min-height: 48px; font-weight: 600; font-size: 0.98rem; font-family: var(--sb-body); cursor: pointer; }
.sb-research .b-brand { white-space: nowrap; }
.sb-research .b-grad { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: var(--sb-blue) !important; }
.sb-research #btn-cta { background: var(--sb-blue) !important; color: #fff !important; border: 2px solid var(--sb-blue) !important; border-radius: 0 !important; box-shadow: none !important; padding: 10px 18px; font-weight: 600; white-space: nowrap; margin-left: 1rem; }
body.sb-app {
  --b-bg: #0a0a0a; --b-surface: #0a0a0a; --b-card: #111111; --b-card-solid: #111111;
  --b-border: #2a2a2a; --b-text: #ffffff; --b-muted: #a3a3a0;
  --b-radius: 0px; --b-radius-sm: 0px;
  --b-a1: #2447ff; --b-a2: #c8ff2e; --b-a3: #2ee6a8;
  --b-grad: linear-gradient(92deg, #c8ff2e, #c8ff2e);
  --b-btn-grad: linear-gradient(135deg, #2447ff, #2447ff);
}
body.sb-app .b-btn { border-radius: 0 !important; }
body.sb-app .b-card { border-radius: 0 !important; }
.sb-research .b-brand { flex: 0 0 auto; }
.sb-research .b-nav-in { flex-wrap: wrap; }

/* Board 1 fidelity: tilted display block, photo hero panel with the big
   brush stroke, floating resume card, trusted-by strip (real counts). */
body.sb-editorial .sb-display { transform: rotate(-1.6deg); transform-origin: left top; }
.sb-hero-visual { padding: 0; background: #e8e6df; }
.sb-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: grayscale(1) contrast(1.05); }
.sb-hero-visual .sb-brush--big { right: -8px; top: 0; width: auto; height: 100%; opacity: 0.95; }
.sb-hero-visual .sb-note--a { color: #0a0a0a; }
.sb-hero-visual .sb-note--b { color: #fff; left: 24px; right: auto; bottom: 92px; text-align: left; }
.sb-hero-card {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  display: flex; align-items: center; gap: 14px; max-width: 264px;
  background: #fff; color: #0a0a0a; text-decoration: none;
  padding: 14px 16px; box-shadow: 0 14px 34px rgba(10, 10, 10, 0.22);
}
.sb-hero-card-t b { display: block; font-size: 0.95rem; line-height: 1.25; }
.sb-hero-card-t span { display: block; color: #6b6b66; font-size: 0.84rem; margin-top: 2px; }
.sb-hero-card-arrow {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: #0a0a0a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.sb-hero-card:hover .sb-hero-card-arrow { background: var(--sb-blue); }
.sb-trust { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.sb-avatars { display: flex; flex: 0 0 auto; }
.sb-avatars span {
  width: 38px; height: 38px; border-radius: 50%; margin-left: -10px;
  border: 2px solid var(--sb-paper-2); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
}
.sb-avatars span:first-child { margin-left: 0; }
.sb-av-1 { background: #0a0a0a; } .sb-av-2 { background: #2447ff; }
.sb-av-3 { background: #7c5cff; } .sb-av-4 { background: #0e7490; }
.sb-trust-k { font-family: var(--sb-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sb-muted-dark); margin: 0; }
.sb-trust-t { margin: 3px 0 0; font-size: 0.95rem; color: #3f3f3a; }
.sb-trust-t strong { color: var(--sb-ink); }
@media (max-width: 700px) { .sb-hero-card { max-width: 220px; } .sb-trust { flex-wrap: wrap; } }

/* === User batch 2026-10-22 (late): dropdown contrast, full-width, app shell === */

/* 1) Dropdown menus (image-6 bug): panels are dark on EVERY nav, so their
   links stay WHITE with a slide-in hover — the light homepage nav no longer
   recolours them ink-on-black. */
.b-dropdown-menu a,
body.sb-editorial .b-nav-links .b-dropdown-menu a,
body.sb-base .b-dropdown-menu a { color: #f2f2ee !important; transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease; }
.b-dropdown-menu a:hover { color: #ffffff !important; transform: translateX(3px); }
.b-dropdown:hover .b-dropdown-menu,
.b-dropdown:focus-within .b-dropdown-menu { animation: sbMenuIn 0.18s ease-out; }
@keyframes sbMenuIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .b-dropdown:hover .b-dropdown-menu, .b-dropdown:focus-within .b-dropdown-menu { animation: none; }
  .b-dropdown-menu a:hover { transform: none; }
}

/* 2) Full-width: containers span the page instead of a narrow centre column. */
:root { --sb-max: 1600px; --sb-work-max: 1480px; }
body.sb-base, body.sb-app { --b-maxw: 1600px; }
.sb-dsa-wrap, .sb-iv-wrap { max-width: 1480px; }
body.sb-app .ap-wrap, body.sb-app .ch-wrap, body.sb-app .cr-wrap { max-width: 1120px; }
body.sb-app .as-wrap { max-width: 1040px; }
body.sb-app .rp-wrap { max-width: 1120px; }
body.sb-app .st-wrap { max-width: 1120px; }
body.sb-app .dg-wrap, body.sb-app .dp-wrap { max-width: 1480px; }
body.sb-app .opp-wrap, body.sb-app .sal-wrap { max-width: 1560px; }
body.sb-app .pb-wrap { max-width: 1560px; }
body.sb-app .tk-wrap { max-width: 1560px; }
.sb-hero-visual .sb-note--b { text-shadow: 0 1px 10px rgba(10, 10, 10, 0.45); }

/* 3) App shell (boards 2/4/5/6): fixed left sidebar + topbar. When a page
   includes _app_sidebar.html, the top site nav steps aside. */
.sb-side {
  position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 70;
  background: #0a0a0a; border-right: 1px solid #23232b;
  display: flex; flex-direction: column; padding: 22px 16px;
}
.sb-side-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--sb-display); font-weight: 700; font-size: 1.28rem;
  letter-spacing: 0.02em; color: #fff; padding: 2px 8px;
}
.sb-side-brand img { border-radius: 7px; }
.sb-side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 30px; }
.sb-side-nav a, .sb-side-foot a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  color: #b9b9b4; text-decoration: none; font-weight: 550; font-size: 0.97rem;
  border-radius: 10px; transition: background 0.15s ease, color 0.15s ease;
}
.sb-side-nav a svg, .sb-side-foot a svg {
  width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sb-side-nav a:hover, .sb-side-foot a:hover { color: #fff; background: #15151c; }
.sb-side-nav a.active { background: var(--sb-blue); color: #fff; }
.sb-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #23232b; padding-top: 14px; }
.sb-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0 6px;
}
.sb-topbar-title {
  font-family: var(--sb-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 1.05rem; margin: 0; opacity: 0.9;
}
.sb-topbar-user { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.sb-topbar-av {
  width: 38px; height: 38px; border-radius: 50%; background: #7c5cff; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.sb-topbar-name { font-weight: 650; line-height: 1.15; }
.sb-topbar-name small { display: block; font-weight: 500; opacity: 0.55; font-size: 0.76rem; }
body:has(.sb-side) { padding-left: 240px; }
body:has(.sb-side) > .b-nav, body:has(.sb-side) .b-nav#navbar { display: none; }
body.sb-research:has(.sb-side) .res-nav { display: none; }
@media (max-width: 920px) {
  .sb-side { display: none; }
  body:has(.sb-side) { padding-left: 0; }
  body:has(.sb-side) > .b-nav, body:has(.sb-side) .b-nav#navbar { display: block; }
  body.sb-research:has(.sb-side) .res-nav { display: block; }
}

/* Topbar inset on standalone shell pages (it is a direct body child there;
   on base pages it already inherits the wrap padding). */
body > .sb-topbar { padding-left: 24px; padding-right: 24px; }

/* Lighthouse fixes: self-hosted mono alias (Google Fonts @import removed
   from resume_style.css), deep-lime accent on the paper resume band,
   white text on the light-nav primary button, hero h2 parity. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2"); }
body.sb-workspace .sb-work-intro .sb-display .sb-accent { color: #4d7c0f; }
body.sb-editorial .b-nav .b-btn--primary { color: #fff; }
body.sb-workspace .hero h2.hero-h {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1;
  margin-bottom: var(--space-lg); animation: fadeInUp 0.8s ease 0.2s both;
}

/* Hero photo v2 (user feedback): the FULL figure sits directly on the page —
   no grey panel, no border. The photo's white background is blended away
   with multiply so only the student remains on the paper. */
.sb-hero-visual { background: transparent; border: 0; box-shadow: none; min-height: 540px; overflow: visible; }
.sb-hero-photo {
  object-fit: contain; object-position: center bottom;
  mix-blend-mode: multiply; filter: grayscale(1) contrast(1.06);
}
.sb-hero-visual .sb-note--b {
  color: #0a0a0a; text-shadow: none; bottom: 118px;
}
@media (max-width: 900px) { .sb-hero-visual { min-height: 420px; } }

/* Hero photo v2 polish: figure shifts right so the left handwritten note
   never slides under it; the note wraps inside the free space. */
.sb-hero-photo { object-position: 84% bottom; }
.sb-hero-visual .sb-note--b { max-width: 168px; }

/* Hero v2 layering: brush behind the figure (photo blends over it via
   multiply), notes and card above; second note sits mid-left in open space. */
.sb-hero-visual .sb-brush--big { z-index: 1; }
.sb-hero-photo { z-index: 2; object-position: 88% bottom; }
.sb-hero-visual .sb-note { z-index: 3; }
.sb-hero-visual .sb-note--b { bottom: 250px; max-width: 180px; }
.sb-hero-card { z-index: 4; }

/* Hero figure scale (user): the student now spans the full display block —
   top at LEARN, bottom at GET HIRED. The source photo is pre-trimmed to
   the figure, so a headline-height panel renders him at full size. */
.sb-hero-visual { min-height: 608px; }
@media (max-width: 900px) { .sb-hero-visual { min-height: 440px; } }

/* Note B wraps inside the free strip left of the enlarged figure. */
.sb-hero-visual .sb-note--b { max-width: 136px; }

/* Learn hub — editorial conversion (issue #41): display headline, real
   stats, sb-tool-grid tracks, numbered connection steps. */
.sb-learn-h2 {
  font-family: var(--sb-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.02; color: #fff; margin: 0 0 0.6rem;
}
.sb-learn-sub { color: #a3a3a0; margin: 0 0 1.6rem; }
.sb-learn-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #26262e; margin-top: 0.5rem; }
/* Learn hero: headline left, wide B&W study-desk photo stretched
   BEHIND the headline — it reaches left until the end of
   "Not by accident." and melts into the ink ground via screen
   blending, so no border or box edge ever shows (Vivek, 2026-10-24:
   "image ko accident ke NT tak stretch kardo and peeche blend
   kardo"). The photo's own left third is near-black wall, so the
   white headline stays readable over it. On load it materialises
   through the ripple-dissolve SVG filter (JS-driven); without JS
   it simply shows, blended. */
.sb-learn-hero { position: relative; min-height: 430px; display: flex; align-items: center; }
.sb-learn-hero-text { position: relative; z-index: 1; max-width: 660px; }
.sb-learn-desk { margin: 0; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(70%, 1120px); z-index: 0; pointer-events: none;
    /* Feather every edge so the photo's near-black ground melts into
       the page with zero visible rectangle seam. */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 13%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-composite: intersect; }
@media (max-width: 900px) {
    .sb-learn-hero { min-height: 0; display: block; }
    .sb-learn-desk { position: static; transform: none; width: 100%; margin-top: 1.4rem; }
}
.sb-learn-desk img { width: 100%; height: auto; display: block; mix-blend-mode: screen; filter: grayscale(1) contrast(1.04); }
.sb-learn-desk img.sb-rippling { will-change: filter, opacity; }
.sb-learn-stat { padding: 20px 18px 4px 0; }
.sb-learn-stat b { font-family: var(--sb-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: #fff; display: block; }
.sb-learn-stat span { color: #a3a3a0; font-size: 0.9rem; }
.sb-learn-steps { border-top: 1px solid #26262e; margin-top: 1.4rem; }
.sb-learn-step { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 2px; border-bottom: 1px solid #26262e; }
.sb-learn-step p { margin: 0; color: #a3a3a0; }
.sb-learn-step b { font-family: var(--sb-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; color: #fff; font-weight: 700; }
.sb-learn-step b i { font-style: normal; color: var(--sb-blue); margin-right: 12px; }
.sb-learn-step a { font-family: var(--sb-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; text-decoration: none; white-space: nowrap; }
.sb-learn-step a:hover { color: var(--sb-lime); }
@media (max-width: 800px) {
  .sb-learn-stats { grid-template-columns: repeat(2, 1fr); }
  .sb-learn-step { flex-wrap: wrap; }
}

/* Hero stretch (user): the figure reaches further left — wider visual
   column, tighter gap, photo anchored left-of-centre. The empty strip
   between headline and student shrinks by roughly a third. */
@media (min-width: 901px) {
  .sb-hero-grid { grid-template-columns: 6.3fr 5.7fr; gap: 32px; }
}
.sb-hero-photo { object-position: 58% bottom; }

/* Outline word -> full-width marquee band: the phrase stretches to the
   page width and drifts (motion rules live in cursor.css, so reduced-
   motion / no-JS keeps this static stretched layout). */
.sb-outline-band {
  overflow: hidden; margin-top: 56px; padding: 12px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.sb-outline-track { display: flex; width: max-content; }
.sb-outline-band .sb-outline-word {
  font-size: clamp(4.2rem, 10.5vw, 11.5rem);
  white-space: nowrap; padding-right: 0.55em; margin: 0;
}

/* Outline stage: the slogan as three placeable blocks, centred, with a
   blocky character who sets them (JS choreography in cursor.js; without
   it — or with reduced motion — everything is simply visible). */
.sb-outline-stage {
  position: relative; display: flex; justify-content: center; align-items: baseline;
  gap: 0.32em; font-size: clamp(3.4rem, 8.6vw, 9.5rem); line-height: 0.95;
}
.sb-outline-stage .sb-outline-word {
  font-size: 1em; white-space: nowrap; margin: 0; padding: 0;
}
.sb-outline-band.is-live .sb-blk { opacity: 0; }
.sb-outline-band.is-live .sb-blk.is-placed {
  opacity: 1; animation: sbBlkPop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.sb-outline-band.is-clearing .sb-blk { opacity: 0; transition: opacity 0.5s ease; }
@keyframes sbBlkPop {
  0% { transform: scale(0.4) translateY(30px); }
  60% { transform: scale(1.07) translateY(-4px); }
  100% { transform: scale(1) translateY(0); }
}
.sb-puff { position: absolute; width: 9px; height: 9px; background: #c9c6ba; z-index: 6; pointer-events: none; }
.sb-puff--blue { background: #2447ff; }
.sb-puff--ink { background: #0a0a0a; }

/* The stage variant is centred, not a marquee — no edge fade. */
.sb-outline-band { -webkit-mask-image: none; mask-image: none; }

.sb-outline-band.is-live .sb-blk.is-placed { animation: sbBlkPopMc 0.5s steps(6, end) both; }
@keyframes sbBlkPopMc {
  0% { transform: scale(1.07) translateY(8px); color: #0a0a0a; -webkit-text-stroke-color: #0a0a0a; opacity: 1; }
  45% { transform: scale(1.0) translateY(0); color: #0a0a0a; -webkit-text-stroke-color: #0a0a0a; opacity: 1; }
  70% { color: #0a0a0a; -webkit-text-stroke-color: #0a0a0a; }
  100% { transform: scale(1) translateY(0); color: transparent; opacity: 1; }
}

/* Letter-by-letter building: tight letter groups, each letter its own
   placeable block. */
.sb-outline-stage .sb-grp { display: inline-flex; letter-spacing: 0.02em; }
.sb-outline-stage .sb-blk { display: inline-block; }

.sb-outline-band.is-live .sb-blk.is-placed { animation-duration: 0.3s; }

/* Resume Studio intro split: intro text left, the annotated-resume
   photo right, filling the old blank half. Like the homepage hero,
   the photo sits on a pure-white ground and uses mix-blend multiply,
   so it melts into the page paper with no box or border — only the
   sheet, its shadow, notes and pen show. Its generation canvas uses
   the same multiply (full colour, no hero grayscale) to match. */
.sb-work-intro--split { position: relative; }
.sb-work-intro--split .b-wrap { max-width: 1280px; }
.sb-intro-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr; gap: 44px; align-items: center;
}
.sb-work-intro--split .sb-display { font-size: clamp(2.8rem, 5.8vw, 5.2rem); }
.sb-resume-visual { position: relative; margin: 0; }
.sb-resume-photo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1580 / 1220; object-fit: cover;
  mix-blend-mode: multiply;
}
/* Photo entrance (this page has no pixel reveal): a soft rise + fade
   when the visual first comes into view. */
.sb-resume-visual.sb-photo-in .sb-resume-photo { animation: sbPhotoIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes sbPhotoIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* The writing pen: the photo's blue pen, lifted out as its own
   element (white ground, multiply — invisible over the paper). It
   rests beside the slogan line, glides to the start and hand-writes
   the line in cursive while the text wipes in under its tip. */
/* The writing band: a full-width strip under the intro grid, filling
   the blank under the headline. The pen writes the slogan across it
   left to right, large, then flies back up to rest on the photo. */
.sb-write { position: relative; padding: 30px 4px 6px; min-height: clamp(150px, 16vw, 228px); }
.sb-write-text {
  display: inline-block; white-space: nowrap;
  font-family: "Caveat", cursive; font-weight: 600;
  font-size: clamp(3.4rem, 8.8vw, 8rem); line-height: 1.15;
  color: var(--sb-blue); transform: rotate(-1.4deg);
  padding: 0 0.12em;
}
@media (max-width: 600px) {
  .sb-write-text { font-size: 2.55rem; }
  .sb-write { min-height: 96px; }
}
.sb-work-intro--split.sb-write-live .sb-write-text { opacity: 0; }
.sb-pen-wrap {
  position: absolute; left: 0; top: 0; width: clamp(96px, 8.5vw, 128px); z-index: 5;
  pointer-events: none; opacity: 0;
  mix-blend-mode: multiply;
  transform-origin: 12% 97%;
}
.sb-work-intro--split.sb-write-live .sb-pen-wrap { opacity: 1; transition: opacity 0.5s ease; }
.sb-write-pen {
  display: block; width: 100%; height: auto;
  transform-origin: 12% 97%;
}
.sb-pen-wrap.is-writing .sb-write-pen { animation: sbPenBob 0.16s ease-in-out infinite alternate; }
@keyframes sbPenBob {
  from { transform: rotate(-1.6deg) translateY(0); }
  to { transform: rotate(1.8deg) translateY(1.5px); }
}
@media (max-width: 900px) {
  .sb-intro-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Resume feature demo panels ----------
   Each feature card (02-06) becomes form-left + living demo-right on
   desktop; the demos are honest samples (labelled as such) that loop
   while in view and settle to their final state under reduced
   motion. All animation is transform/opacity/clip-path only. */
.jd-demo {
  /* Blends into the card: no background, no border — the demos play
     directly on the card's own surface, the way the intro photo
     melts into the page paper. */
  position: relative; margin-top: 28px; overflow: hidden;
  background: transparent; border: 0;
  padding: 4px 2px; min-height: 300px;
}
.dm-tag {
  display: inline-block; font-family: var(--sb-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sb-blue);
  border: 1px solid currentColor; padding: 3px 8px; margin-bottom: 16px;
}
.dm-note { margin-top: 16px; font-size: 0.86rem; line-height: 1.55; color: var(--sb-muted-dark); }

/* 02 — match ring + keyword chips */
.dm-ring-wrap { position: relative; width: 148px; height: 148px; margin: 4px auto 6px; }
.dm-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.dm-ring circle { fill: none; stroke-width: 10; }
.dm-ring-bg { stroke: #e3e1d8; }
.dm-ring-fg { stroke: var(--sb-blue); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; }
.dm-score {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
}
.dm-score b { font-family: var(--sb-display); font-size: 2.9rem; font-weight: 800; color: var(--sb-ink); }
.dm-score span { font-family: var(--sb-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--sb-muted-dark); margin-top: 4px; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 12px; }
.dm-chip {
  font-family: var(--sb-mono); font-size: 0.74rem; padding: 4px 9px;
  border: 1.5px solid var(--sb-ink); background: #fff; color: var(--sb-ink);
  opacity: 0; transform: scale(0.5);
}
.dm-chip.is-miss { border-style: dashed; color: var(--sb-muted-dark); border-color: #b9b6a9; }
.dm-chip.is-in { animation: dmChipPop 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
@keyframes dmChipPop { from { opacity: 0; transform: scale(0.5) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* 03 — bullet rewrite sheet + pen */
.dm-sheet {
  position: relative; background: var(--sb-paper-2); border: 1px solid var(--sb-line-soft);
  padding: 18px 18px 22px; min-height: 158px;
}
.dm-line { font-size: 0.98rem; line-height: 1.55; margin: 0; }
.dm-line--weak { color: var(--sb-muted-dark); transition: opacity 0.5s ease, transform 0.5s ease; }
.dm-line--weak .dm-cut { position: relative; white-space: nowrap; }
.dm-line--weak .dm-cut::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 54%;
  height: 2px; background: #d43d2a; transform: scaleX(0); transform-origin: left center;
}
.dm-sheet.is-struck .dm-cut::after { transform: scaleX(1); transition: transform 0.55s ease 0.1s; }
.dm-sheet.is-done .dm-line--weak { opacity: 0.38; }
.dm-line--strong { margin-top: 12px; font-weight: 600; color: var(--sb-ink); }
.dm-line--strong [data-dm-strong] { display: inline-block; }
.dm-pen {
  position: absolute; left: 0; top: 0; width: 46px; z-index: 3;
  pointer-events: none; opacity: 0; mix-blend-mode: multiply;
  transform-origin: 12% 97%; will-change: transform;
}
.dm-pen img { display: block; width: 100%; height: auto; transform-origin: 12% 97%; }
.dm-pen.is-writing img { animation: sbPenBob 0.16s ease-in-out infinite alternate; }
.dm-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.dm-badge {
  font-family: var(--sb-mono); font-size: 0.72rem; padding: 4px 9px;
  background: var(--sb-ink); color: var(--sb-lime);
  opacity: 0; transform: translateY(8px);
}
.dm-badge.is-in { animation: dmChipPop 0.35s ease both; }

/* 04 — version spotlight rows */
.dm-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.dm-vs {
  position: relative; background: #fff; border: 1.5px solid #c9c6ba;
  padding: 11px 16px 12px; opacity: 0.5;
  transition: opacity 0.5s ease, border-color 0.5s ease, transform 0.5s ease;
}
.dm-vs b { display: block; font-family: var(--sb-display); font-size: 1.18rem; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }
.dm-vs span { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--sb-muted-dark); }
.dm-vs em {
  position: absolute; right: 12px; top: 12px; font-style: normal;
  font-family: var(--sb-mono); font-size: 0.78rem; font-weight: 600;
  background: #e3e1d8; color: var(--sb-ink); padding: 3px 8px;
  transition: background 0.4s ease;
}
.dm-vs::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--sb-blue); transform: scaleY(0); transform-origin: top center;
}
.dm-vs.is-active { opacity: 1; border-color: var(--sb-ink); transform: translateX(6px); }
.dm-vs.is-active em { background: var(--sb-lime); }
.dm-vs.is-active::before { transform: scaleY(1); transition: transform 2.55s linear; }

/* 05 — cover letter typewriter */
.dm-letter {
  background: var(--sb-paper-2); border: 1px solid var(--sb-line-soft);
  padding: 18px; min-height: 196px;
}
.dm-type { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--sb-ink); white-space: pre-wrap; min-height: 158px; }
.dm-caret {
  display: inline-block; width: 8px; height: 1.05em; margin-left: 2px;
  background: var(--sb-blue); vertical-align: text-bottom;
  animation: dmCaret 0.85s steps(1) infinite;
}
@keyframes dmCaret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* 06 — LinkedIn grader */
.dm-profile { display: flex; gap: 12px; align-items: flex-start; }
.dm-avatar {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: var(--sb-blue); color: #fff; display: flex; align-items: center;
  justify-content: center; font-family: var(--sb-display); font-weight: 700;
  transition: background 0.3s ease;
}
.dm-profile-main { min-width: 0; flex: 1; }
.dm-name { font-size: 1.02rem; transition: color 0.3s ease; }
.dm-headline { margin: 2px 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--sb-muted-dark); transition: color 0.3s ease; }
.dm-headline [data-dm-headline] { display: inline-block; }
.dm-grade {
  flex: 0 0 auto; width: 44px; height: 44px; border: 2px solid var(--sb-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sb-display); font-size: 1.5rem; font-weight: 800;
  background: #fff; color: var(--sb-ink);
}
.dm-grade.is-pop { animation: dmChipPop 0.35s ease both; }
.dm-bar { height: 10px; background: #e3e1d8; margin-top: 18px; overflow: hidden; }
.dm-bar i { display: block; height: 100%; width: 38%; background: var(--sb-blue); transform-origin: left center; }
.jd-demo { transition: opacity 0.35s ease; }
.jd-demo.is-resetting { opacity: 0.12; }

/* Demo rail: on wide screens the workspace widens and each feature
   section becomes card (left) + demo (right, in the page's open
   paper area beside the card). Below that the demo stacks under
   its card at a capped width. */
.jd-demo { max-width: 540px; }
@media (min-width: 1280px) {
  .sb-work { max-width: 1600px; }
  .sb-work .hero { max-width: 1112px; }
  /* The old stylesheet caps every section at 900px — lift it here
     so the CARD takes the widened space (the rail comes out of the
     new width, never out of the card). */
  .sb-work .jd-section { max-width: none; }
  .sb-work .jd-section {
    display: grid; grid-template-columns: minmax(0, 1fr) 400px;
    gap: 44px; align-items: stretch;
  }
  .sb-work .jd-section .jd-card { align-self: start; }
  .sb-work .jd-section .jd-demo {
    margin-top: 0; max-width: none; position: relative;
  }
  .sb-work #features .b-wrap { max-width: none; padding-left: 0; padding-right: 0; }
}

/* Full-length rail scenes: the demo is a flex column as tall as
   its card — first group at the top, last group pinned to the
   bottom, so the animation spans the card's whole length while
   sitting directly on the page paper. */
.jd-demo { display: flex; flex-direction: column; }
.jd-demo > :last-child { margin-top: auto; }
.dm-group + .dm-group, .dm-group + .dm-note { margin-top: 26px; }
.jd-demo > .dm-note { margin-top: 18px; }
.jd-demo > .dm-note:last-child { margin-top: auto; padding-top: 18px; }
.dm-sub {
  font-family: var(--sb-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sb-muted-dark); margin: 0 0 4px;
}
.dm-meter, .dm-check {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) 42px;
  align-items: center; gap: 10px; margin-top: 10px;
}
.dm-check { grid-template-columns: 104px minmax(0, 1fr) 78px; opacity: 0.35; transition: opacity 0.45s ease; }
.dm-check.is-in { opacity: 1; }
.dm-meter > span, .dm-check > span { font-size: 0.82rem; font-weight: 600; color: var(--sb-ink); }
.dm-track { height: 8px; background: rgba(10, 10, 10, 0.1); overflow: hidden; }
.dm-track i { display: block; height: 100%; width: 0; background: var(--sb-blue); }
.dm-meter b { font-family: var(--sb-mono); font-size: 0.78rem; text-align: right; color: var(--sb-ink); }
.dm-check em {
  font-style: normal; font-family: var(--sb-mono); font-size: 0.64rem;
  padding: 3px 6px; text-align: center; white-space: nowrap;
}
.dm-check em.is-ok { background: var(--sb-ink); color: var(--sb-lime); }
.dm-check em.is-warn { border: 1px dashed #a09d8f; color: var(--sb-muted-dark); }
/* versions timeline thread */
.dm-timeline { position: relative; padding-left: 20px; }
.dm-timeline::before {
  content: ""; position: absolute; left: 6px; top: 16px; bottom: 16px;
  width: 2px; background: rgba(10, 10, 10, 0.14);
}
.dm-timeline .dm-vs::after {
  content: ""; position: absolute; left: -19px; top: 50%; width: 9px; height: 9px;
  margin-top: -5px; border-radius: 50%; background: var(--sb-paper);
  border: 2px solid rgba(10, 10, 10, 0.35); transition: background 0.3s ease, border-color 0.3s ease;
}
.dm-timeline .dm-vs.is-active { transform: none; }
.dm-timeline .dm-vs.is-active::after { background: var(--sb-blue); border-color: var(--sb-blue); }
/* bullet: second sheet spacing */
.dm-sheet + .dm-sheet { margin-top: 14px; }
/* cover: taller letter + outreach slip */
.dm-letter .dm-type { min-height: 212px; }
.dm-slip {
  background: #fff; border: 1px solid var(--sb-line-soft);
  padding: 14px 16px; transform: rotate(-1.1deg);
}
.dm-slip-tag {
  display: block; font-family: var(--sb-mono); font-size: 0.64rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sb-blue);
  margin-bottom: 8px;
}
.dm-type--sm { font-size: 0.88rem; min-height: 76px; }
[data-dm-caret2] { display: none; }
.jd-demo--cover.is-note [data-dm-caret] { display: none; }
.jd-demo--cover.is-note [data-dm-caret2] { display: inline-block; }
/* A trailing group (e.g. the LinkedIn audit) pins to the rail's
   bottom — declared after the group-spacing rule it overrides. */
.jd-demo > .dm-group:last-child { margin-top: auto; }

/* Card separation: a printed dashed rule floats in the wide gap
   before every feature section, spanning card + rail, so the five
   sections read as clearly separate chapters on the paper. */
.sb-work .jd-section { position: relative; }
.sb-work .jd-section::before {
  content: ""; position: absolute; left: 0; right: 0; top: -42px;
  border-top: 2px dashed rgba(10, 10, 10, 0.16); pointer-events: none;
}
.sb-work #features { margin-top: 84px; }

/* Upload section sits in the middle of the page width. */
.sb-work .hero { margin-inline: auto; }

/* Upload card background life: a scanner sweep glides down the
   card (it IS an analyser), over a soft breathing glow — both
   behind the content, click-through, off under reduced motion. */
.sb-work .upload-card { position: relative; overflow: hidden; isolation: isolate; }
.sb-work .upload-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34%;
  background: linear-gradient(180deg, rgba(36, 71, 255, 0) 0%, rgba(36, 71, 255, 0.07) 55%, rgba(36, 71, 255, 0.16) 88%, rgba(36, 71, 255, 0.3) 100%);
  border-bottom: 2px solid rgba(36, 71, 255, 0.35);
  transform: translateY(-110%); animation: sbScan 7s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
@keyframes sbScan {
  0% { transform: translateY(-110%); }
  26% { transform: translateY(320%); }
  100% { transform: translateY(320%); }
}
.sb-work .upload-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(420px 200px at 12% 0%, rgba(200, 255, 46, 0.13), transparent 60%),
    radial-gradient(520px 260px at 88% 100%, rgba(36, 71, 255, 0.1), transparent 60%);
  animation: sbGlow 9s ease-in-out infinite alternate;
}
@keyframes sbGlow { from { opacity: 0.5; } to { opacity: 1; } }
.sb-work .upload-card > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .sb-work .upload-card::before, .sb-work .upload-card::after { animation: none; }
}

/* ---------- Opposite-sweep card transitions (site-wide) ----------
   Tile cards flood with the OPPOSITE colour on hover: light cards
   flood ink (text turns paper, accents go lime), and the same
   cards on dark surfaces (DSA, research theme) flood paper (text
   turns ink). Form cards and data panels are deliberately not
   tiles and keep their calm hover states. */
.b-card--feature, .b-card--lite, .b-card--stat, .b-card--cta,
.dsa-card, .dg-card, .dp-card {
  position: relative; z-index: 0; overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.b-card--feature::before, .b-card--lite::before, .b-card--stat::before,
.b-card--cta::before, .dsa-card::before, .dg-card::before, .dp-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sb-ink); transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.b-card--feature:hover::before, .b-card--feature:focus-visible::before,
.b-card--lite:hover::before, .b-card--lite:focus-visible::before,
.b-card--stat:hover::before, .b-card--stat:focus-visible::before,
.b-card--cta:hover::before, .b-card--cta:focus-visible::before,
.dsa-card:hover::before, .dsa-card:focus-visible::before,
.dg-card:hover::before, .dg-card:focus-visible::before,
.dp-card:hover::before, .dp-card:focus-visible::before { transform: translateY(0); }
.b-card--feature:hover, .b-card--lite:hover, .b-card--stat:hover,
.b-card--cta:hover, .dsa-card:hover, .dg-card:hover, .dp-card:hover { border-color: var(--sb-ink); }
.b-card--feature :is(h2, h3, h4, p), .b-card--lite :is(h2, h3, h4, p),
.b-card--stat :is(h2, h3, h4, p), .b-card--cta :is(h2, h3, h4, p),
.dsa-card :is(h2, h3, h4, p), .dg-card :is(h2, h3, h4, p), .dp-card :is(h2, h3, h4, p) {
  transition: color 0.3s ease;
}
.b-card--feature:hover :is(h2, h3, h4), .b-card--lite:hover :is(h2, h3, h4),
.b-card--stat:hover :is(h2, h3, h4), .b-card--cta:hover :is(h2, h3, h4),
.dsa-card:hover :is(h2, h3, h4), .dg-card:hover :is(h2, h3, h4), .dp-card:hover :is(h2, h3, h4) { color: #fff !important; }
.b-card--feature:hover p, .b-card--lite:hover p, .b-card--stat:hover p,
.b-card--cta:hover p, .dsa-card:hover p, .dg-card:hover p, .dp-card:hover p { color: #d7d7d0 !important; }
.b-card--feature:hover .b-icon, .b-card--lite:hover .b-icon,
.dsa-card:hover .b-icon, .dg-card:hover .b-icon, .dp-card:hover .b-icon {
  background: var(--sb-lime) !important; color: var(--sb-ink) !important; border-color: var(--sb-lime) !important;
}
.b-card--stat:hover :is(b, strong) { color: var(--sb-lime) !important; }
/* Dark surfaces: the flood reverses to paper. */
body.sb-dsa .b-card--feature::before, body.sb-dsa .b-card--lite::before,
body.sb-dsa .b-card--stat::before, body.sb-dsa .b-card--cta::before,
body.sb-dsa .dsa-card::before, body.sb-dsa .dg-card::before, body.sb-dsa .dp-card::before,
[data-theme="research"] .b-card--feature::before, [data-theme="research"] .b-card--lite::before,
[data-theme="research"] .b-card--stat::before, [data-theme="research"] .b-card--cta::before {
  background: var(--sb-paper);
}
body.sb-dsa .b-card--feature:hover, body.sb-dsa .b-card--lite:hover,
body.sb-dsa .b-card--stat:hover, body.sb-dsa .b-card--cta:hover,
body.sb-dsa .dsa-card:hover, body.sb-dsa .dg-card:hover, body.sb-dsa .dp-card:hover,
[data-theme="research"] .b-card--feature:hover, [data-theme="research"] .b-card--lite:hover,
[data-theme="research"] .b-card--stat:hover, [data-theme="research"] .b-card--cta:hover { border-color: var(--sb-paper); }
body.sb-dsa .b-card--feature:hover :is(h2, h3, h4), body.sb-dsa .b-card--lite:hover :is(h2, h3, h4),
body.sb-dsa .b-card--stat:hover :is(h2, h3, h4), body.sb-dsa .b-card--cta:hover :is(h2, h3, h4),
body.sb-dsa .dsa-card:hover :is(h2, h3, h4), body.sb-dsa .dg-card:hover :is(h2, h3, h4),
body.sb-dsa .dp-card:hover :is(h2, h3, h4),
[data-theme="research"] .b-card--feature:hover :is(h2, h3, h4),
[data-theme="research"] .b-card--lite:hover :is(h2, h3, h4),
[data-theme="research"] .b-card--stat:hover :is(h2, h3, h4),
[data-theme="research"] .b-card--cta:hover :is(h2, h3, h4) { color: var(--sb-ink) !important; }
body.sb-dsa .b-card--feature:hover p, body.sb-dsa .b-card--lite:hover p,
body.sb-dsa .b-card--stat:hover p, body.sb-dsa .b-card--cta:hover p,
body.sb-dsa .dsa-card:hover p, body.sb-dsa .dg-card:hover p, body.sb-dsa .dp-card:hover p,
[data-theme="research"] .b-card--feature:hover p, [data-theme="research"] .b-card--lite:hover p,
[data-theme="research"] .b-card--stat:hover p, [data-theme="research"] .b-card--cta:hover p { color: #4c4c46 !important; }
body.sb-dsa .b-card--feature:hover .b-icon, body.sb-dsa .b-card--lite:hover .b-icon,
body.sb-dsa .dsa-card:hover .b-icon, body.sb-dsa .dg-card:hover .b-icon, body.sb-dsa .dp-card:hover .b-icon,
[data-theme="research"] .b-card--feature:hover .b-icon, [data-theme="research"] .b-card--lite:hover .b-icon {
  background: var(--sb-ink) !important; color: var(--sb-paper) !important; border-color: var(--sb-ink) !important;
}
body.sb-dsa .b-card--stat:hover :is(b, strong),
[data-theme="research"] .b-card--stat:hover :is(b, strong) { color: var(--sb-blue) !important; }

/* Sweep corrections: .dsa-card is the DSA filter FORM (not a tile)
   — unsweep it. The real DSA tiles are .dsa-prob rows, and the
   diagnosis/problem cards (.dg-card/.dp-card) live on dark glass
   pages, so their flood is paper, with their own inner accents. */
.sb-dsa .dsa-card { overflow: visible; }
.sb-dsa .dsa-card::before { display: none; }
.sb-dsa .dsa-card:hover { border-color: var(--b-border); }
.dsa-prob { position: relative; z-index: 0; overflow: hidden; }
.dsa-prob::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sb-paper); transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dsa-prob:hover::before, .dsa-prob:focus-visible::before { transform: translateY(0); }
.dsa-prob:hover .t { color: var(--sb-ink) !important; }
.dsa-prob:hover .tags { color: #4c4c46 !important; }
.dg-card::before, .dp-card::before { background: var(--sb-paper); }
body .dg-card:hover :is(h2, h3, h4), body .dp-card:hover :is(h2, h3, h4) { color: var(--sb-ink) !important; }
body .dg-card:hover p, body .dp-card:hover p { color: #4c4c46 !important; }
.dg-card:hover, .dp-card:hover { border-color: var(--sb-paper); }
.dg-card:hover .dg-h3 { color: var(--sb-ink) !important; }
.dg-card:hover .dg-stat .v { color: var(--sb-blue) !important; }
.dg-card:hover .dg-stat .l { color: #4c4c46 !important; }

/* body.sb-app is a dark scope (Mode D remaps every surface to
   ink): its tile cards take the PAPER flood like the other dark
   contexts, with ink text and ink icon chips on hover. */
body.sb-app .b-card--feature::before, body.sb-app .b-card--lite::before,
body.sb-app .b-card--stat::before, body.sb-app .b-card--cta::before { background: var(--sb-paper); }
body.sb-app .b-card--feature:hover, body.sb-app .b-card--lite:hover,
body.sb-app .b-card--stat:hover, body.sb-app .b-card--cta:hover { border-color: var(--sb-paper); }
body.sb-app .b-card--feature:hover :is(h2, h3, h4), body.sb-app .b-card--lite:hover :is(h2, h3, h4),
body.sb-app .b-card--stat:hover :is(h2, h3, h4), body.sb-app .b-card--cta:hover :is(h2, h3, h4) { color: var(--sb-ink) !important; }
body.sb-app .b-card--feature:hover p, body.sb-app .b-card--lite:hover p,
body.sb-app .b-card--stat:hover p, body.sb-app .b-card--cta:hover p { color: #4c4c46 !important; }
body.sb-app .b-card--feature:hover .b-icon, body.sb-app .b-card--lite:hover .b-icon {
  background: var(--sb-ink) !important; color: var(--sb-paper) !important; border-color: var(--sb-ink) !important;
}
body.sb-app .b-card--stat:hover :is(b, strong) { color: var(--sb-blue) !important; }
/* Practice hub company cards: the name/count are plain divs and
   the logos are filtered white — flip all three with the flood,
   or the logo would vanish on paper. */
.company-grid .company-card:hover .company-name { color: var(--sb-ink) !important; }
.company-grid .company-card:hover .company-count { color: #4c4c46 !important; }
.company-grid .company-card:hover .company-focus { color: #4c4c46 !important; }
.company-grid .company-card:hover .company-mock-link { color: var(--sb-blue) !important; }

/* Roadmaps gap analyzer: steps, toolbar, priority bars, result entrance. */
.gap-steps { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.gap-step { display: flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .5rem; border: 1px solid var(--b-line, rgba(255,255,255,.12)); border-radius: 999px; font-size: .88rem; color: var(--b-muted); }
.gap-step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(255,255,255,.08); font-weight: 700; color: inherit; }
.gap-step.is-active .gap-step-n { background: var(--sb-blue); color: #fff; }
.gap-step.is-done { color: inherit; border-color: var(--sb-lime); }
.gap-step.is-done .gap-step-n { background: var(--sb-lime); color: var(--sb-ink); }
.gap-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.gap-search { flex: 1 1 260px; max-width: 420px; }
.gap-domain-count { color: var(--sb-lime); font-size: .85rem; font-weight: 600; }
.gap-prio-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin: .6rem 0 .2rem; }
.gap-prio-bar span { display: block; height: 100%; background: var(--sb-lime); border-radius: 999px; }
.gap-result-card { animation: gapFadeUp .45s ease both; }
@keyframes gapFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.quiz-q-in { animation: gapFadeUp .4s ease both; }

/* Roadmaps hero (2026-10-24 redesign): heading centred, materialising
   through the same Ripple Dissolve filter as the Learn hero, flanked
   by skill artwork streaming in from both edges. Both artworks are
   white line art on pure black, so mix-blend-mode: screen melts them
   into the ink page with zero box edge; feather masks dissolve their
   inner ends before they reach the heading. A soft white radial glow
   sits behind the heading ("shady white effect"). Reduced-motion and
   no-JS keep the still, blended composition. */
/* Roadmaps hero (2026-10-24): background skill effects dropped at
   the user's call — the hero is now just the heading, kept exactly
   as it was: centred, enlarged, with the Ripple Dissolve entrance.
   Plain ink background, nothing behind the text. */
.roadmap-hero { position: relative; overflow: hidden; padding: 3.4rem 1rem 2.6rem; display: flex; justify-content: center; }
.roadmap-hero-text { position: relative; z-index: 1; text-align: center; max-width: 780px; }
.roadmap-hero-text h1 { font-size: clamp(2.75rem, 6vw, 4.6rem); line-height: 1.02; }
.roadmap-hero-text .b-lede { margin-left: auto; margin-right: auto; font-size: 1.14rem; }
.roadmap-hero-text.sb-rippling { will-change: filter, opacity; }
/* Quizzes hero: same centred, enlarged, ripple-dissolve heading as the
   roadmaps hero (Vivek, 2026-10-25) — plain ink background, no extra
   background effects, heading only. */
.quiz-hero { position: relative; overflow: hidden; padding: 3.4rem 1rem 2.6rem; display: flex; justify-content: center; }
.quiz-hero-text { position: relative; z-index: 1; text-align: center; max-width: 780px; }
.quiz-hero-text h1 { font-size: clamp(2.75rem, 6vw, 4.6rem); line-height: 1.02; }
.quiz-hero-text .b-lede { margin-left: auto; margin-right: auto; font-size: 1.14rem; }
.quiz-hero-text.sb-rippling { will-change: filter, opacity; }
/* Certs hero: headline left, graduation-cap + diplomas photo on the
   right, melting into the ink ground via screen blending (pure-black
   photo ground, same rule as the Learn hero). The photo's own left
   side is empty black space, so the headline sits over darkness and
   stays readable. Heading is slightly larger than the roadmaps hero
   and enters through the same Ripple Dissolve filter (JS-driven);
   without JS it simply shows, blended. */
.sb-cert-hero { position: relative; min-height: 430px; display: flex; align-items: center; padding-top: 2.6rem; }
.sb-cert-hero-text { position: relative; z-index: 1; max-width: 640px; }
.sb-cert-hero-text h1 { font-size: clamp(2.9rem, 6.5vw, 5rem); line-height: 1.02; }
.sb-cert-hero-text.sb-rippling { will-change: filter, opacity; }
.sb-cert-stats { display: flex; gap: 1.6rem; border-top: 1px solid #26262e; margin-top: 1.4rem; padding-top: 1rem; }
.sb-cert-stat b { font-family: var(--sb-display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: #fff; display: block; }
.sb-cert-stat span { color: #a3a3a0; font-size: 0.85rem; }
.sb-cert-desk { margin: 0; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(52%, 680px); z-index: 0; pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 13%), linear-gradient(to bottom, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-composite: intersect; }
@media (max-width: 900px) {
    .sb-cert-hero { min-height: 0; display: block; }
    .sb-cert-desk { position: static; transform: none; width: 100%; margin-top: 1.4rem; }
}
.sb-cert-desk img { width: 100%; height: auto; display: block; mix-blend-mode: screen; filter: grayscale(1) contrast(1.04); }
.sb-cert-desk img.sb-rippling { will-change: filter, opacity; }
/* Centred section heads (roadmaps browse) + calm gap-form rows: the
   per-skill labels stop behaving like tiles — flat rows with a
   hairline, no opposite-sweep flood — so the 30-checkbox form reads
   as one organised list instead of a wall of boxes. */
.b-sec-head--center { text-align: center; }
.b-sec-head--center .b-lede, .b-sec-head--center p { margin-left: auto; margin-right: auto; }
.gap-skill-card { background: transparent !important; border: none !important; border-bottom: 1px solid rgba(255,255,255,.09) !important; border-radius: 0 !important; box-shadow: none !important; }
.gap-skill-card::before { display: none !important; }
.gap-skill-card:hover { border-bottom-color: rgba(255,255,255,.22) !important; }
.stage-rail { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; }
.stage-rail a { padding: .4rem .9rem; border: 1px solid var(--b-line, rgba(255,255,255,.12)); border-radius: 999px; font-size: .88rem; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.company-grid .company-card:hover .company-logo { background: rgba(10, 10, 10, 0.06); border-color: rgba(10, 10, 10, 0.14); }
.company-grid .company-card:hover .company-logo img { filter: brightness(0); opacity: 1; }

/* body.sb-base tool pages (roadmaps, quizzes, learn grids) are
   dark bento scopes too: same paper flood as sb-app/sb-dsa, plus
   flips for the card atoms that are not h/p elements — domain
   tags, key-value rows and the inline-muted topic lines. */
body.sb-base .b-card--feature::before, body.sb-base .b-card--lite::before,
body.sb-base .b-card--stat::before, body.sb-base .b-card--cta::before { background: var(--sb-paper); }
body.sb-base .b-card--feature:hover, body.sb-base .b-card--lite:hover,
body.sb-base .b-card--stat:hover, body.sb-base .b-card--cta:hover { border-color: var(--sb-paper); }
body.sb-base .b-card--feature:hover :is(h2, h3, h4), body.sb-base .b-card--lite:hover :is(h2, h3, h4),
body.sb-base .b-card--stat:hover :is(h2, h3, h4), body.sb-base .b-card--cta:hover :is(h2, h3, h4) { color: var(--sb-ink) !important; }
body.sb-base .b-card--feature:hover p, body.sb-base .b-card--lite:hover p,
body.sb-base .b-card--stat:hover p, body.sb-base .b-card--cta:hover p { color: #4c4c46 !important; }
body.sb-base .b-card--feature:hover .b-icon, body.sb-base .b-card--lite:hover .b-icon {
  background: var(--sb-ink) !important; color: var(--sb-paper) !important; border-color: var(--sb-ink) !important;
}
body.sb-base .b-card--stat:hover :is(b, strong) { color: var(--sb-blue) !important; }
/* Card atoms: tags flip with the flood (paper text on ink flood,
   ink text on paper flood); KV rows and muted lines follow. */
.b-card--feature:hover .b-tag, .b-card--lite:hover .b-tag {
  color: var(--sb-paper) !important; border-color: rgba(242, 241, 234, 0.45) !important;
}
:is(body.sb-app, body.sb-base, body.sb-dsa) .b-card--feature:hover .b-tag,
:is(body.sb-app, body.sb-base, body.sb-dsa) .b-card--lite:hover .b-tag {
  color: var(--sb-ink) !important; border-color: rgba(10, 10, 10, 0.35) !important;
}
:is(body.sb-app, body.sb-base, body.sb-dsa) .b-card--feature:hover .b-kv-label,
:is(body.sb-app, body.sb-base, body.sb-dsa) .b-card--lite:hover .b-kv-label { color: #4c4c46 !important; }
:is(body.sb-app, body.sb-base, body.sb-dsa) .b-card--feature:hover .b-kv-val,
:is(body.sb-app, body.sb-base, body.sb-dsa) .b-card--lite:hover .b-kv-val { color: var(--sb-ink) !important; }
:is(body.sb-app, body.sb-base, body.sb-dsa) .b-card--lite:hover > div { color: #4c4c46 !important; }

/* Salary range cards (standalone dark page, own inline styles):
   paper flood as well — the range bar keeps its data colours,
   only its pale track darkens so it stays visible on paper. */
.sal-card { position: relative; z-index: 0; overflow: hidden; }
.sal-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sb-paper); transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.sal-card:hover::before, .sal-card:focus-visible::before { transform: translateY(0); }
.sal-card:hover { border-color: var(--sb-paper); }
.sal-card:hover h3 { color: var(--sb-ink) !important; }
.sal-card:hover .sal-sub, .sal-card:hover .sal-nums .lo { color: #4c4c46 !important; }
.sal-card:hover .sal-bar { background: rgba(10, 10, 10, 0.12); }
.sal-card:hover .sal-bar .you { background: var(--sb-ink); }

/* Opportunity cards ride the sb-app paper flood (they are
   b-card--lite); their inner atoms flip too, while the type
   badges deepen to print-safe shades, the countdown keeps its
   accent, and a closing-soon card keeps its amber edge. */
.opp-card:hover .opp-org, .opp-card:hover .opp-elig { color: #4c4c46 !important; }
.opp-card:hover .opp-deadline { color: var(--sb-ink) !important; }
.opp-card:hover .opp-badge.hackathon { color: #7c3aed; }
.opp-card:hover .opp-badge.internship { color: #047857; }
.opp-card:hover .opp-badge.scholarship { color: #0369a1; }
.opp-card:hover .opp-badge.exam { color: #b45309; }
.opp-card:hover .opp-badge.competition { color: #be185d; }
.opp-card:hover .opp-soon { color: #b45309; }
.opp-card.soon:hover { border-color: rgba(245, 158, 11, 0.55) !important; }
.opp-card:hover .opp-link { color: #047857; border-color: rgba(4, 120, 87, 0.5); }
.opp-card:hover .opp-bm { color: var(--sb-ink); border-color: rgba(10, 10, 10, 0.35); }
.opp-card:hover .opp-bm.saved { color: #b45309; border-color: #b45309; }

/* Research pages (body.sb-research) are a dark scope as well:
   same paper flood for their bento tiles; the feature icon
   keeps a blue accent on paper. Tracker kanban cards (.tk-card)
   are dark-board tiles and flood the same way, and stat-card
   labels follow their numbers onto paper. */
body.sb-research .b-card--feature::before, body.sb-research .b-card--lite::before,
body.sb-research .b-card--stat::before, body.sb-research .b-card--cta::before { background: var(--sb-paper); }
body.sb-research .b-card--feature:hover, body.sb-research .b-card--lite:hover,
body.sb-research .b-card--stat:hover, body.sb-research .b-card--cta:hover { border-color: var(--sb-paper); }
body.sb-research .b-card--feature:hover :is(h2, h3, h4), body.sb-research .b-card--lite:hover :is(h2, h3, h4),
body.sb-research .b-card--stat:hover :is(h2, h3, h4), body.sb-research .b-card--cta:hover :is(h2, h3, h4) { color: var(--sb-ink) !important; }
body.sb-research .b-card--feature:hover p, body.sb-research .b-card--lite:hover p,
body.sb-research .b-card--stat:hover p, body.sb-research .b-card--cta:hover p { color: #4c4c46 !important; }
body.sb-research .b-card--feature:hover .b-icon, body.sb-research .b-card--lite:hover .b-icon {
  background: var(--sb-ink) !important; color: var(--sb-paper) !important; border-color: var(--sb-ink) !important;
}
body.sb-research .b-card--stat:hover :is(b, strong) { color: var(--sb-blue) !important; }
.feature-card:hover .feature-icon { color: var(--sb-blue) !important; }
:is(body.sb-app, body.sb-base, body.sb-dsa, body.sb-research) .b-card--stat:hover span { color: #4c4c46 !important; }
.tk-card { position: relative; z-index: 0; overflow: hidden; }
.tk-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sb-paper); transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tk-card:hover::before { transform: translateY(0); }
.tk-card:hover :is(h3, h4, b, strong) { color: var(--sb-ink) !important; }
.tk-card:hover :is(p, span, small) { color: #4c4c46 !important; }
/* Ultimate Lab cards expand a working form inside the card:
   while a tool is open the flood drains back out and the text
   stays on the dark theme, so the form remains usable. The
   collapsed card's Open button inverts with the flood. */
.lab-card:not(:has(.lab-form.b-open)):hover > .b-btn {
  background: var(--sb-ink) !important; color: var(--sb-paper) !important; border-color: var(--sb-ink) !important;
}
.lab-card:has(.lab-form.b-open)::before { transform: translateY(101%) !important; }
.lab-card:has(.lab-form.b-open):hover { border-color: var(--b-border); }
.lab-card:has(.lab-form.b-open):hover h3 { color: #fff !important; }
.lab-card:has(.lab-form.b-open):hover p { color: #fff !important; }
.lab-card:has(.lab-form.b-open):hover .b-tag {
  color: var(--sb-paper) !important; border-color: rgba(242, 241, 234, 0.45) !important;
}

/* ---------- Liquid progress gauge ----------
   The tracker hero: a circle that fills like water. Two wave
   layers drift in opposite directions on the surface, bubbles
   rise through the fill, and the level eases up with a slosh
   when the percentage changes. Colours and motion calm down
   under prefers-reduced-motion. */
.sb-liquid { position: relative; width: min(260px, 68vw); aspect-ratio: 1; margin-inline: auto; }
.sb-liquid svg { display: block; width: 100%; height: 100%; }
.sb-liquid .lq-wave-a { animation: lqDriftA 5.5s linear infinite; }
.sb-liquid .lq-wave-b { animation: lqDriftB 9s linear infinite; }
.sb-liquid .lq-water { transition: transform 1.5s cubic-bezier(0.25, 0.9, 0.25, 1); }
.sb-liquid .lq-bubble { animation: lqRise 3.6s ease-in infinite; }
.sb-liquid .lq-bubble.b2 { animation-duration: 4.7s; animation-delay: -1.4s; }
.sb-liquid .lq-bubble.b3 { animation-duration: 5.6s; animation-delay: -2.6s; }
.sb-liquid .lq-bubble.b4 { animation-duration: 4.1s; animation-delay: -0.8s; }
.sb-liquid .lq-pulse { opacity: 0; transform-origin: 100px 100px; }
.sb-liquid.is-splash .lq-pulse { animation: lqPulse 0.9s ease-out 1; }
.sb-liquid-num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  pointer-events: none; color: #fff; text-shadow: 0 1px 14px rgba(4, 10, 40, 0.45);
}
.sb-liquid-num b { font-family: var(--sb-display); font-size: 3.4rem; line-height: 0.95; font-weight: 700; }
.sb-liquid-num span { font-family: var(--sb-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; }
@keyframes lqDriftA { from { transform: translateX(0); } to { transform: translateX(-100px); } }
@keyframes lqDriftB { from { transform: translateX(-100px); } to { transform: translateX(0); } }
@keyframes lqRise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.75; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-118px); opacity: 0; }
}
@keyframes lqPulse {
  0% { opacity: 0.7; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.13); }
}
@media (prefers-reduced-motion: reduce) {
  .sb-liquid .lq-wave-a, .sb-liquid .lq-wave-b, .sb-liquid .lq-bubble { animation: none; }
  .sb-liquid .lq-water { transition: none; }
}

/* ---------- Striver A2Z sheet + DSA tracker ---------- */
.sb-dsa .az-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.2rem 0 0.4rem; }
.sb-dsa .az-nav a {
  font-family: var(--sb-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #d8d8d2; text-decoration: none;
  border: 1px solid #333; padding: 0.35rem 0.65rem;
}
.sb-dsa .az-nav a:hover { border-color: var(--sb-lime); color: var(--sb-lime); }
.sb-dsa .az-tools { display: flex; gap: 0.8rem; align-items: center; margin-top: 1.1rem; flex-wrap: wrap; }
.sb-dsa .az-tools input {
  flex: 1; min-width: 220px; background: #111; border: 1px solid #333; color: #fff;
  padding: 0.65rem 0.9rem; font-family: var(--sb-mono); font-size: 0.85rem;
}
.sb-dsa .az-tools input:focus { outline: none; border-color: var(--sb-lime); }
.sb-dsa .az-step { margin-top: 1.6rem; border: 1px solid #262626; background: #0d0d0d; }
.sb-dsa .az-step > summary {
  cursor: pointer; list-style: none; padding: 1rem 1.2rem; display: flex;
  align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.sb-dsa .az-step > summary::-webkit-details-marker { display: none; }
.sb-dsa .az-step > summary h2 { font-family: var(--sb-display); font-size: 1.55rem; text-transform: uppercase; margin: 0; color: #fff; }
.sb-dsa .az-step .az-stepno { font-family: var(--sb-mono); color: var(--sb-lime); font-size: 0.8rem; }
.sb-dsa .az-step .az-count { font-family: var(--sb-mono); font-size: 0.72rem; color: #a3a3a0; margin-left: auto; }
.sb-dsa .az-bar { height: 6px; background: #1e1e1e; margin: 0 1.2rem; }
.sb-dsa .az-bar i { display: block; height: 100%; background: var(--sb-blue); }
.sb-dsa .az-body { padding: 0.6rem 1.2rem 1.2rem; }
.sb-dsa .az-sub {
  font-family: var(--sb-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8f8f8a; margin: 1.1rem 0 0.55rem;
}
.sb-dsa .az-row {
  display: flex; align-items: center; gap: 0.8rem; background: #111;
  border: 1px solid #2a2a2a; padding: 0.6rem 0.9rem; margin-bottom: 0.45rem;
}
.sb-dsa .az-row:hover { border-color: #3d3d3d; }
.sb-dsa .az-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #555; flex: none; }
.sb-dsa .az-dot.is-solved { background: var(--sb-lime); border-color: var(--sb-lime); }
.sb-dsa .az-dot.is-attempted { background: var(--sb-blue); border-color: var(--sb-blue); }
.sb-dsa .az-dot.is-stuck { background: #f87171; border-color: #f87171; }
.sb-dsa .az-title { flex: 1; color: #f2f1ea; font-weight: 600; font-size: 0.98rem; }
.sb-dsa .az-theory {
  font-family: var(--sb-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #8f8f8a; border: 1px dashed #444; padding: 0.14rem 0.45rem;
}
.sb-dsa .az-diff {
  font-family: var(--sb-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid; padding: 0.18rem 0.55rem; white-space: nowrap;
}
.sb-dsa .az-diff--easy { color: #4ade80; border-color: #4ade80; }
.sb-dsa .az-diff--medium { color: #fbbf24; border-color: #fbbf24; }
.sb-dsa .az-diff--hard { color: #f87171; border-color: #f87171; }
.sb-dsa .az-solve {
  font-family: var(--sb-mono); font-size: 0.72rem; color: #d8d8d2; text-decoration: none;
  border: 1px solid #444; padding: 0.4rem 0.7rem; white-space: nowrap;
}
.sb-dsa .az-solve:hover { border-color: var(--sb-lime); color: var(--sb-lime); }
.sb-dsa .az-mark {
  font-family: var(--sb-mono); font-size: 0.72rem; cursor: pointer; white-space: nowrap;
  background: transparent; color: #f2f1ea; border: 1px solid #444; padding: 0.42rem 0.75rem;
}
.sb-dsa .az-mark:hover { border-color: var(--sb-lime); color: var(--sb-lime); }
.sb-dsa .az-mark.is-done { background: var(--sb-lime); border-color: var(--sb-lime); color: #0a0a0a; font-weight: 700; }
.sb-dsa .az-mark.is-done:hover { color: #0a0a0a; }
.sb-dsa .az-empty { display: none; color: #a3a3a0; font-family: var(--sb-mono); font-size: 0.85rem; padding: 1rem 0; }
.sb-dsa a.az-title { text-decoration: none; }
.sb-dsa a.az-title:hover { color: var(--sb-lime); }
.sb-dsa .az-learn {
  font-family: var(--sb-mono); font-size: 0.72rem; color: #0a0a0a; text-decoration: none;
  background: var(--sb-lime); border: 1px solid var(--sb-lime); padding: 0.4rem 0.7rem;
  white-space: nowrap; font-weight: 700;
}
.sb-dsa .az-learn:hover { background: transparent; color: var(--sb-lime); }
/* --- A2Z lesson pages --- */
.sb-dsa .azl-back { font-family: var(--sb-mono); font-size: 0.78rem; color: #a3a3a0; text-decoration: none; }
.sb-dsa .azl-back:hover { color: var(--sb-lime); }
.sb-dsa .azl-head h1 { font-family: var(--sb-display); font-size: clamp(2.2rem, 5.5vw, 3.8rem); text-transform: uppercase; line-height: 0.95; margin: 0.4rem 0 0.8rem; color: #fff; }
.sb-dsa .azl-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.6rem 0 1.2rem; }
.sb-dsa .azl-intro { color: #d8d8d2; font-size: 1.05rem; line-height: 1.7; max-width: 780px; }
.sb-dsa .azl-sec { margin-top: 2.2rem; max-width: 820px; }
.sb-dsa .azl-sec h2 { font-family: var(--sb-display); font-size: 1.45rem; text-transform: uppercase; color: #fff; margin: 0 0 0.7rem; }
.sb-dsa .azl-sec p { color: #c9c9c2; line-height: 1.75; margin: 0 0 0.9rem; font-size: 0.98rem; }
.sb-dsa .azl-code {
  background: #0d0d0d; border: 1px solid #2c2c2c; border-left: 3px solid var(--sb-lime);
  padding: 1rem 1.1rem; overflow-x: auto; margin: 0.4rem 0 1.1rem;
}
.sb-dsa .azl-code code { font-family: var(--sb-mono); font-size: 0.85rem; line-height: 1.6; color: #e8e8e2; white-space: pre; }
.sb-dsa .azl-diagram {
  background: #0d0d0d; border: 1px solid #2c2c2c; padding: 1.1rem 1.2rem; overflow-x: auto; margin-top: 1.4rem;
}
.sb-dsa .azl-diagram pre { font-family: var(--sb-mono); font-size: 0.95rem; line-height: 1.45; color: var(--sb-lime); margin: 0; white-space: pre; }
.sb-dsa .azl-diagram figcaption { font-family: var(--sb-mono); font-size: 0.7rem; color: #a3a3a0; margin-top: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sb-dsa .azl-keys { border: 1px solid #2c2c2c; background: #0d0d0d; padding: 1.2rem 1.4rem; margin-top: 2.4rem; max-width: 820px; }
.sb-dsa .azl-keys h2 { font-family: var(--sb-display); font-size: 1.3rem; text-transform: uppercase; color: #fff; margin: 0 0 0.7rem; }
.sb-dsa .azl-keys ul { margin: 0; padding-left: 1.2rem; color: #d8d8d2; line-height: 1.7; font-size: 0.95rem; }
.sb-dsa .azl-sug { margin-top: 2.4rem; max-width: 820px; }
.sb-dsa .azl-sug h2 { font-family: var(--sb-display); font-size: 1.3rem; text-transform: uppercase; color: #fff; margin: 0 0 0.8rem; }
.sb-dsa .azl-sugrow { display: flex; gap: 0.8rem; align-items: baseline; border: 1px solid #262626; background: #0d0d0d; padding: 0.75rem 1rem; margin-bottom: 0.55rem; flex-wrap: wrap; }
.sb-dsa .azl-sugrow a { color: #f2f1ea; font-weight: 600; text-decoration: none; }
.sb-dsa .azl-sugrow a:hover { color: var(--sb-lime); }
.sb-dsa .azl-sugrow span { color: #a3a3a0; font-size: 0.86rem; line-height: 1.5; }
.sb-dsa .azl-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.6rem; align-items: center; }
.sb-dsa .azl-msg { font-family: var(--sb-mono); font-size: 0.8rem; color: #fca5a5; display: none; }
.dt-hero { display: flex; gap: 2.6rem; align-items: center; flex-wrap: wrap; }
.dt-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 1.4rem 2.4rem; flex: 1; min-width: 260px; }
.dt-stat b { display: block; font-family: var(--sb-display); font-size: 2.3rem; line-height: 1; color: #fff; }
.dt-stat span { font-family: var(--sb-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a3a0; }
.dt-h { font-family: var(--sb-display); font-size: 1.6rem; text-transform: uppercase; color: #fff; margin: 2.2rem 0 1rem; }
.dt-row { display: grid; grid-template-columns: 210px 1fr 120px; gap: 1rem; align-items: center; padding: 0.42rem 0; }
.dt-row .dt-name { color: #e8e8e2; font-weight: 600; font-size: 0.92rem; }
.dt-row .dt-num { font-family: var(--sb-mono); font-size: 0.74rem; color: #a3a3a0; text-align: right; }
.dt-track { height: 10px; background: #1e1e1e; }
.dt-fill { height: 100%; background: linear-gradient(90deg, #2447ff, #3d6bff); }
.dt-fill--easy { background: #4ade80; }
.dt-fill--medium { background: #fbbf24; }
.dt-fill--hard { background: #f87171; }
.dt-embed-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
body.sb-dsa .dsa-tracker-embed h2, body.sb-dsa .dsa-tracker-embed h3 { color: #fff; }
.dt-embed-head h2 { font-family: var(--sb-display); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 0.95; text-transform: uppercase; margin: 0.15rem 0 0; }
.dt-embed-link { font-family: var(--sb-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #0a0a0a; background: var(--sb-lime); padding: 0.65rem 0.85rem; text-decoration: none; font-weight: 800; white-space: nowrap; }
.dsa-tracker-embed .sb-liquid { width: min(208px, 62vw); }
.dt-embed-hero { display: grid; grid-template-columns: 208px 1fr; gap: 2.8rem; align-items: center; }
.dt-embed-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.5rem; }
.dt-embed-stats .dt-stat b { font-size: 2rem; }
.dt-diff-row { display: grid; grid-template-columns: 58px 1fr 100px; gap: 0.9rem; align-items: center; padding: 0.38rem 0; }
.dt-diff-row .dt-name { color: #e8e8e2; font-weight: 600; font-size: 0.92rem; }
.dt-diff-row .dt-num { font-family: var(--sb-mono); font-size: 0.74rem; color: #a3a3a0; text-align: right; }
.dt-track { display: block; }
.dt-mini-h { font-family: var(--sb-display); font-size: 1.2rem; text-transform: uppercase; color: #fff; margin: 0 0 0.75rem; }
.dt-module-h { margin-top: 2rem; }
.dt-module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.05rem 2rem; }
.dt-mod-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; margin-bottom: 0.4rem; }
.dt-mod-name { color: #e8e8e2; font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.dt-mod-num { font-family: var(--sb-mono); font-size: 0.72rem; color: #a3a3a0; white-space: nowrap; }
.dt-classic-line { margin-top: 1.9rem; padding-top: 1.1rem; border-top: 1px solid #262626; color: #a3a3a0; }
.dt-classic-line strong { color: #fff; }
.dt-classic-line a { color: var(--accent-primary); font-weight: 700; }
@media (max-width: 1100px) {
  .dt-module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .dt-embed-hero { grid-template-columns: 1fr; gap: 1.6rem; }
  .dt-embed-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dt-module-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sb-dsa .az-row { flex-wrap: wrap; }
  .dt-row { grid-template-columns: 120px 1fr 92px; }
}

/* ---------- Mock interview setup (redesign + resume mode) ---------- */
.sb-iv .iv-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 1.3rem; }
.sb-iv .iv-stat b { display: block; font-family: var(--sb-display); font-size: 1.9rem; color: #fff; line-height: 1; }
.sb-iv .iv-stat span { font-family: var(--sb-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a3a3a0; }
.sb-iv .iv-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0 1.2rem; }
.sb-iv .iv-mode {
  text-align: left; cursor: pointer; background: #111; border: 1px solid #2c2c2c;
  color: #f2f1ea; padding: 1.1rem 1.2rem; font: inherit;
}
.sb-iv .iv-mode:hover { border-color: #4a4a4a; }
.sb-iv .iv-mode.is-active { border-color: var(--sb-lime); background: #141410; }
.sb-iv .iv-mode h3 { font-family: var(--sb-display); font-size: 1.35rem; text-transform: uppercase; margin: 0 0 0.3rem; color: #fff; }
.sb-iv .iv-mode p { margin: 0; color: #a3a3a0; font-size: 0.88rem; line-height: 1.45; }
.sb-iv .iv-mode .iv-new {
  font-family: var(--sb-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  background: var(--sb-lime); color: #0a0a0a; font-weight: 700; padding: 0.14rem 0.45rem;
  vertical-align: super; margin-left: 0.4rem;
}
.sb-iv .iv-companies { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.sb-iv .iv-co {
  cursor: pointer; background: transparent; border: 1px solid #3a3a3a; color: #e8e8e2;
  font-family: var(--sb-mono); font-size: 0.74rem; padding: 0.42rem 0.7rem;
}
.sb-iv .iv-co small { color: #8f8f8a; margin-left: 0.3rem; }
.sb-iv .iv-co:hover { border-color: var(--sb-lime); }
.sb-iv .iv-co.is-active { background: var(--sb-lime); border-color: var(--sb-lime); color: #0a0a0a; font-weight: 700; }
.sb-iv .iv-co.is-active small { color: #333; }
.sb-iv .iv-seg { display: inline-flex; border: 1px solid #3a3a3a; }
.sb-iv .iv-seg button {
  cursor: pointer; background: transparent; border: 0; color: #d8d8d2; font: inherit;
  font-family: var(--sb-mono); font-size: 0.82rem; padding: 0.5rem 1rem;
}
.sb-iv .iv-seg button.is-active { background: var(--sb-blue); color: #fff; font-weight: 700; }
.sb-iv .iv-intel { border: 1px dashed #3d3d3d; padding: 1rem 1.1rem; margin: 0 0 1.2rem; display: none; }
.sb-iv .iv-intel h4 { margin: 0 0 0.4rem; font-family: var(--sb-display); font-size: 1.15rem; text-transform: uppercase; color: #fff; }
.sb-iv .iv-intel p { color: #c9c9c2; font-size: 0.88rem; margin: 0.2rem 0; }
.sb-iv .iv-intel ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: #a3a3a0; font-size: 0.85rem; }
.sb-iv .iv-drop {
  display: block; border: 2px dashed #3d3d3d; padding: 1.6rem 1.2rem; text-align: center;
  cursor: pointer; color: #d8d8d2; margin-bottom: 1rem;
}
.sb-iv .iv-drop:hover, .sb-iv .iv-drop.is-over { border-color: var(--sb-lime); color: #fff; }
.sb-iv .iv-drop b { font-family: var(--sb-display); font-size: 1.2rem; text-transform: uppercase; display: block; color: #fff; }
.sb-iv .iv-drop input { display: none; }
.sb-iv .iv-aspects { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.1rem; }
.sb-iv .iv-aspects span {
  font-family: var(--sb-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid #3a3a3a; color: #c9c9c2; padding: 0.3rem 0.6rem;
}
.sb-iv .iv-profile { display: none; border: 1px solid var(--sb-lime); padding: 1rem 1.1rem; margin-top: 1rem; }
.sb-iv .iv-profile h4 { margin: 0 0 0.5rem; font-family: var(--sb-display); font-size: 1.2rem; text-transform: uppercase; color: #fff; }
.sb-iv .iv-profile .iv-aspects { margin-bottom: 0.6rem; }
.sb-iv .iv-recent-row {
  display: flex; gap: 1rem; align-items: baseline; padding: 0.55rem 0;
  border-bottom: 1px dashed #2c2c2c; flex-wrap: wrap;
}
.sb-iv .iv-recent-row b { color: #fff; }
.sb-iv .iv-recent-row .iv-score { font-family: var(--sb-mono); color: var(--sb-lime); }
.sb-iv .iv-recent-row a { color: var(--accent-primary); font-weight: 700; margin-left: auto; }
.sb-iv .iv-recent-row time { color: #8f8f8a; font-family: var(--sb-mono); font-size: 0.72rem; }
@media (max-width: 700px) { .sb-iv .iv-modes { grid-template-columns: 1fr; } }

/* ---- Phase 0 foundations: honesty-label pills ----
   BLEND rule: borderless, transparent, no boxes/borders/shadows — a
   colored dot + small uppercase letter-spaced text that melts into dark
   surfaces. The dot carries the meaning; the text stays quiet. */
.pill-indicative, .pill-hypothesis, .pill-illustrative, .pill-verified {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1; padding: 0; vertical-align: middle;
}
.pill-indicative::before, .pill-hypothesis::before,
.pill-illustrative::before, .pill-verified::before {
  content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; flex: none;
}
.pill-indicative { color: #fcd34d; }
.pill-indicative::before { background: #f59e0b; }
.pill-hypothesis { color: #c4b5fd; }
.pill-hypothesis::before { background: #8b5cf6; }
.pill-illustrative { color: #93c5fd; }
.pill-illustrative::before { background: #64748b; }
.pill-verified { color: #6ee7b7; }
.pill-verified::before { background: #10b981; }

/* Phase 0 freshness line (salary + opportunity pages): unboxed, muted. */
.fresh-line {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  margin: 0 0 1rem; font-size: 0.85rem; color: var(--text-muted, #94a3b8);
}
.fresh-line .fresh-msg { color: var(--text-muted, #94a3b8); }

/* Phase 0 tracker deadlines: plain unboxed list above the board. */
.tk-deadlines { margin: 0 0 1.4rem; }
.tk-deadlines h2 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.tk-deadlines ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.tk-deadlines li { font-size: 0.9rem; }
.tk-deadlines .tk-dl-meta { color: var(--text-muted, #94a3b8); }
