/* =====================================================================
   MerlAI HOME-PAGE MOCKUP — self-contained stylesheet (Zach review 2026-10-31)
   MG blue brand (#0051d0) · Apple design language · ONE accent.
   Merges the design tokens + selectors from TWO Zach-approved scenes so both
   scroll animations run on one page:
     A) FOLD-OPEN résumé   (from projects/mg-apple-site/apple.css)
     B) READY ROOM explode (from projects/redesign-mockup/apple.css)
   GOTCHA (documented): NEVER overflow-x:hidden on html/body — it kills
   position:sticky and blanks the scroll scenes. We use overflow-x:clip +
   per-element width caps instead.
   ===================================================================== */
:root {
  /* MG COLOUR LANGUAGE — brand blue is the one accent */
  --accent: #0051d0;          /* MG primary blue (on-brand) — THE accent */
  --accent-2: #4c86e8;        /* MG light blue (Signal on-dark) */
  --accent-press: #0a3da6;    /* MG dark/pressed blue (Signal) */
  --accent-soft: #e7f0fe;     /* MG Blue wash (Signal) */
  --accent-glow: rgba(0,81,208,.40);
  /* Signal AI-signal cyan — ONLY for AI/live moments (Ready Room, Scout, scores) */
  --ai: #00c2d1;              /* AI Signal cyan */
  --ai-soft: #e6fafc;         /* AI cyan soft tint */
  --ai-glow: rgba(0,194,209,.55);

  /* Apple near-monochrome canvas (light-first) */
  --ink: #0b0c0e;             /* primary text AND the one dark surface (Ready Room bg) */
  --ink-2: #44474e;           /* secondary */
  --ink-3: #83868d;           /* tertiary / captions */
  --line: #e6e7ea;            /* hairline */
  --bg: #ffffff;
  --bg-2: #fafbfc;            /* subtle section tint */
  --bg-3: #f4f5f7;            /* Apple-grey panel */
  --ink-dark: #0a0b0d;        /* alt dark surface */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-display: clamp(46px, 6.6vw, 96px);
  --fs-h1: clamp(34px, 4.6vw, 64px);
  --fs-h2: clamp(27px, 3.1vw, 42px);
  --fs-lead: clamp(18px, 1.5vw, 23px);

  --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 96px; --sp-7: 140px;
  --radius: 20px; --radius-sm: 13px; --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(11,12,14,.04), 0 14px 44px rgba(11,12,14,.07);
  --shadow-lift: 0 2px 6px rgba(11,12,14,.05), 0 28px 80px rgba(11,12,14,.11);
  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* ============================================================
   "LONG PULL" PILL NAVBAR (Zach 2026-10-31 — restoring the look lost in the
   Mac Mini migration). Floating lozenge, detached from the edges, pill-shaped,
   with a CONTRASTING border: white border while the bar is dark; black/dark
   border once it flips to light (.navbar-on-light on scroll/over-white).
   Overrides the prod shared-nav rules (which use !important), mockup-only. */
nav#navbar {
  top: 22px !important;   /* lowered slightly to emphasise the floating nav (Zach 2026-11-01) */
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 40px) !important;
  max-width: 1180px !important;
  border-radius: 14px !important;   /* squared-off ends (rounded rectangle, not a pill) */
  border: 1.5px solid rgba(255,255,255,.9) !important;   /* contrast on dark */
  border-bottom: 1.5px solid rgba(255,255,255,.9) !important;
  box-shadow: none !important;   /* removed the dark "black box" halo around the pill */
  background: rgba(10,11,13,.72) !important;
  backdrop-filter: saturate(180%) blur(22px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
  overflow: visible !important;
  /* smooth light<->dark fade as the bar crosses each section colour boundary
     (shared-nav.js flips navbar-on-light/dark on scroll — this makes it glide,
     not snap). (Zach 2026-11-04) */
  transition: background-color .5s var(--ease), border-color .5s var(--ease),
              box-shadow .5s var(--ease) !important;
}
nav#navbar .nav-container { padding: 0 26px !important; }
/* fade the nav's foreground bits (links, brand, logo, pill buttons) in step
   with the bar so the whole navbar cross-fades at each hero colour change */
nav#navbar .nav-links a,
nav#navbar .logo,
nav#navbar .brand,
nav#navbar .auth-buttons .btn,
nav#navbar .logo-image-dark,
nav#navbar .logo-image-light {
  transition: color .5s var(--ease), background-color .5s var(--ease),
              border-color .5s var(--ease), opacity .5s var(--ease) !important;
}
/* light state → black/dark contrasting border + white pill */
nav#navbar.navbar-on-light,
nav#navbar.navbar-scrolled {
  border: 1.5px solid rgba(210,210,215,.9) !important;       /* hairline so the white pill reads on white; no dark box (Zach 2026-11-01) */
  border-bottom: 1.5px solid rgba(210,210,215,.9) !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 1px 3px rgba(11,12,14,.06) !important;       /* whisper-soft, no black box */
}
@media (max-width: 640px){
  nav#navbar { top: 16px !important; width: calc(100% - 20px) !important; border-radius: 12px !important; }
  nav#navbar .nav-container { padding: 0 16px !important; }
}

/* GOTCHA: width cap via max-width + overflow-x:clip (NEVER hidden on html/body) */
html { max-width: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  line-height: 1.5; overflow-x: clip;    /* clip not hidden -> keeps sticky alive */
  opacity: 0; transition: opacity .5s var(--ease);
  /* close the top air-gap: prod shared-nav-footer.css sets body{margin-top:56px}
     to clear its fixed navbar, but our floating navbar sits OVER the hero, so the
     hero should reach the very top. (Zach 2026-11-03) */
  margin-top: 0 !important;
}
body.page-ready { opacity: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: var(--sp-7) 0; position: relative; }
h1,h2,h3 { letter-spacing: -.025em; line-height: 1.07; font-weight: 680; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.5; }
.eyebrow { font-size: 13.5px; font-weight: 640; letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
a { color: inherit; text-decoration: none; }

/* ---- NAV (glass chrome; static inline bar for standalone mockup) ---- */
.nav { position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(230,231,234,.8); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-size: 19px; font-weight: 680; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { font-size: 14.5px; color: var(--ink-2); transition: color .2s var(--ease); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 560;
  padding: 11px 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease); }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); transform: translateY(-1px); box-shadow: 0 12px 30px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-3); transform: translateY(-1px); }
.btn-text { color: var(--accent); font-weight: 560; font-size: 15px; }
.btn-text:hover { color: var(--accent-press); }

/* ---- HERO (live copy, MG dark hero) ---- */
.hero { text-align: center; color: #fff; background: #000;
  padding: calc(var(--sp-6) + 58px) 0 var(--sp-6); position: relative; overflow: hidden;
  /* full-viewport hero — fills the screen before the next section (Zach 2026-11-07) */
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; box-sizing: border-box; }
.hero::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 760px; max-width: 120vw;
  background: radial-gradient(ellipse, rgba(0,81,208,.30) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.hero h1 { font-size: var(--fs-display); max-width: 16ch; margin: 0 auto; color: #fff; }
.hero .lead { max-width: 56ch; margin: 22px auto 0; color: rgba(255,255,255,.82); }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---- LOGO / TRUST STRIP ---- */
.trust { text-align: center; padding: var(--sp-4) 0; }
.trust p { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.trust-logos { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; color: var(--ink-2); font-weight: 600; font-size: 17px; opacity: .72; }

/* ---- SCROLL REVEAL (explode-style entrance, carries the page's motion feel) ---- */
.reveal {
  opacity: 0; transform: perspective(1200px) translate3d(0,40px,-120px) rotateX(8deg) scale(.94);
  transition: opacity .8s var(--ease), transform .9s cubic-bezier(.16,.84,.34,1);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: perspective(1200px) translate3d(0,0,0) rotateX(0) scale(1); }
.reveal.d1 { transition-delay: .09s; } .reveal.d2 { transition-delay: .18s; }
.reveal.d3 { transition-delay: .27s; } .reveal.d4 { transition-delay: .36s; }
.reveal.xreveal { transform: perspective(1200px) translate3d(0,64px,-320px) rotateX(16deg) rotateY(-6deg) scale(.86); }
.reveal.xreveal.in {
  transform: perspective(1200px) translate3d(0,0,0) rotateX(0) rotateY(0) scale(1);
  animation: xRevealGlow 1.1s var(--ease) .1s 1;
}
@keyframes xRevealGlow {
  0%   { box-shadow: 0 0 0 0 rgba(0,81,208,0); }
  45%  { box-shadow: 0 30px 70px rgba(0,81,208,.4), 0 0 44px rgba(90,144,255,.5); }
  100% { box-shadow: var(--shadow, 0 20px 50px rgba(0,0,0,.18)); }
}

/* ---- PANELS / chips (shared) ---- */
.panel { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-pad { padding: 26px; }
.ai-chip { display: inline-flex; gap: 7px; align-items: center; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 580; padding: 7px 13px; border-radius: var(--radius-pill); margin-bottom: 16px; }

/* =====================================================================
   SCENE A — FOLD-OPEN RÉSUMÉ  (verbatim selectors from mg-apple-site/apple.css)
   ===================================================================== */
.fold { position: relative; background: var(--bg); }
.fold-track { height: 720vh; position: relative; }
.fold-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
/* heads sit LOWER — an air-gap below the navbar, roughly equidistant between the
   top (nav) and the figure, so the scene feels vertically balanced (Zach 2026-11-06) */
.fold-head { position: absolute; top: clamp(90px, 22vh, 220px); left: 0; right: 0; text-align: center; padding: 0 24px; z-index: 5; transition: opacity .5s var(--ease); }
.fold-head h2 { max-width: 20ch; margin: 10px auto 0; }
.fold-head .sub { color: var(--ink-3); font-size: 15.5px; margin-top: 12px; }
/* "One tap. Fully formed." promoted from eyebrow → headline title (Zach 2026-10-31) */
.fold-title { font-size: var(--fs-h2); font-weight: 680; letter-spacing: -.025em;
  line-height: 1.07; max-width: 20ch; margin: 0 auto; color: var(--ink); }
/* "Your résumé, unfolded." demoted to animated sub-headline under the title */
.fold-subhead { font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em;
  color: var(--accent); max-width: 20ch; margin: 10px auto 0; }
.fold-word { display: inline-block; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fold-word.in { opacity: 1; transform: none; }

.fold-scene { perspective: 2000px; perspective-origin: 50% 50%; margin-top: clamp(150px, 26vh, 260px); }
.book { position: relative; width: min(760px, 90vw); height: min(440px, 52vw);
  transform-style: preserve-3d; display: flex; }
.leaf { flex: 0 0 50%; height: 100%; position: relative; transform-style: preserve-3d; }
.leaf-face { position: absolute; inset: 0; border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  overflow: hidden; backface-visibility: hidden; background: #fff; }
.leaf-l { transform-origin: right center; }
.leaf-l .leaf-face { border-radius: 16px 0 0 16px; border-right: none; }
.leaf-r { transform-origin: left center; }
.leaf-r .leaf-face { border-radius: 0 16px 16px 0; border-left: none; }

.book.thick .leaf::before,
.book.thick .leaf::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: #eef0f3; box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.book.thick .leaf-l .leaf-face, .book.thick .leaf-r .leaf-face { z-index: 2; }
.book.thick .leaf-l::before { border-radius: 16px 0 0 16px; transform: translate3d(0,0,-4px) translateY(3px); background:#e9ebef; }
.book.thick .leaf-l::after  { border-radius: 16px 0 0 16px; transform: translate3d(0,0,-8px) translateY(6px); background:#dfe2e7; }
.book.thick .leaf-r::before { border-radius: 0 16px 16px 0; transform: translate3d(0,0,-4px) translateY(3px); background:#e9ebef; }
.book.thick .leaf-r::after  { border-radius: 0 16px 16px 0; transform: translate3d(0,0,-8px) translateY(6px); background:#dfe2e7; }
.book.thick::before { content:""; position:absolute; left:50%; top:3%; bottom:3%; width:6px; z-index:3;
  transform: translateX(-50%); border-radius:3px;
  background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.02) 50%, rgba(0,0,0,.10));
  opacity:0; transition: opacity .5s var(--ease); pointer-events:none; }
.book.open.thick::before { opacity:1; }

.cover { background: linear-gradient(160deg, var(--accent), var(--accent-press)); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.cover-mark { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 580; opacity: .9; }
.cover-mark .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.cover-title { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -.03em; margin-top: 18px; }
.cover-sub { font-size: 15px; opacity: .85; margin-top: 8px; }

.sheet { background: #fff; padding: 0; }
.sheet-inner { position: absolute; inset: 0; padding: 26px 30px; transition: transform .45s var(--ease); }
.sheet .r-name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sheet .r-title { color: var(--accent); font-weight: 560; font-size: 14px; margin-top: 2px; }
.sheet .r-contact { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink-3); font-size: 12px; margin-top: 6px; }
.sheet .rsec h6 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 14px 0 6px; }
.sheet .r-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.sheet .r-job { font-size: 12.5px; font-weight: 640; margin-top: 8px; }
.sheet .r-bul { font-size: 11.5px; color: var(--ink-2); margin: 4px 0 0 12px; }
.sheet .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.sheet .chip { font-size: 11px; padding: 4px 9px; border-radius: var(--radius-pill); background: var(--bg-3); color: var(--ink-2); }
.sheet-ats { display: flex; justify-content: space-between; align-items: center; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.sheet-ats strong { color: var(--accent); font-size: 20px; }

.sheet .rsec { opacity: .34; transition: opacity .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border: 2px solid transparent; border-radius: 10px; padding: 6px 9px; margin: 2px -9px; }
.sheet[data-mhi="header"] .sec-header,
.sheet[data-mhi="profile"] .sec-profile,
.sheet[data-mhi="experience"] .sec-experience,
.sheet[data-mhi="skills"] .sec-skills,
.sheet[data-mhi="education"] .sec-education {
  opacity: 1; border: 2px solid rgba(0,81,208,.9);
  background: linear-gradient(90deg, rgba(0,81,208,.10), rgba(0,81,208,.03));
  box-shadow: 0 0 0 1px rgba(0,81,208,.3), 0 0 22px var(--accent-glow); }
.sheet:not([data-mhi]) .rsec, .sheet[data-mhi=""] .rsec { opacity: 1; }

/* Floating caption chip retired (Zach 2026-10-31): the active section now connects
   to the RHS feature list with a blue line connector instead. */
.fold-scene .m-caption { display: none !important; }

/* blue line connector — spans the whole fold-stage, drawn per-frame in JS */
.fold-wire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6;
  pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); overflow: visible; }
.fold-wire.show { opacity: 1; }
.fold-wire path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(0,81,208,.45)); }

.fold .feat-list { position: absolute; left: clamp(16px, 5vw, 80px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; z-index: 6; opacity: 0; transition: opacity .5s var(--ease);
  text-align: left; align-items: flex-start; }  /* moved to LEFT (Zach 2026-11-03) */
.fold .feat-list li { flex-direction: row; }   /* dot stays left of the label */
.fold .feat-list.show { opacity: 1; }
.fold .feat-list li { list-style: none; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 560;
  color: var(--ink-3); opacity: .5; transition: opacity .4s var(--ease), color .4s var(--ease),
  border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
  /* each feature is a blue-bordered box; the connector wire stops a few px short of it */
  padding: 9px 14px; border: 1.5px solid var(--accent-soft); border-radius: 10px;
  background: rgba(255,255,255,.6); }
.fold .feat-list li .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .4s var(--ease), box-shadow .4s var(--ease); flex: 0 0 auto; }
.fold .feat-list li.on { opacity: 1; color: var(--ink);
  border-color: var(--accent); background: var(--accent-wash, #e7f0fe);
  box-shadow: 0 0 0 1px rgba(0,81,208,.25), 0 6px 18px rgba(0,81,208,.12); }
.fold .feat-list li.on .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.book::after { content: ""; position: absolute; left: 50%; top: 6%; bottom: 6%; width: 2px;
  transform: translateX(-50%); background: linear-gradient(180deg, transparent, rgba(0,81,208,.25), transparent);
  opacity: 0; transition: opacity .5s var(--ease); z-index: 4; pointer-events: none; }
.book.open::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fold-track { height: auto; } .fold-stage { position: static; height: auto; display: block; padding: var(--sp-6) 0; }
  .fold-word { opacity: 1; transform: none; }
  .leaf-l, .leaf-r { transform: none !important; }
  .sheet .rsec { opacity: 1; }
}
@media (max-width: 820px) {
  .fold-scene { margin-top: clamp(170px, 30vh, 240px); }
  .book { height: min(460px, 108vw); }
  .fold .feat-list { display: none; }
  /* MOBILE FEATURE BUBBLE (Zach 2026-11-19): on phones the RHS feature list is
     hidden, so the floating caption chip is the ONLY label for the highlighted
     section. It was globally force-hidden (desktop retired it for the blue
     connector); re-enable it on mobile only, styled on-brand and pinned just
     under the heading so it names the active section without clipping. */
  .fold-stage .m-caption, .fold-scene .m-caption, .explode .m-caption {
    display: inline-flex !important; align-items: center; gap: 7px;
    position: absolute; left: 50%; transform: translateX(-50%);
    top: calc(118px + env(safe-area-inset-top, 0px)); z-index: 7;
    background: var(--accent); color: #fff; font-weight: 600; font-size: 13.5px;
    letter-spacing: -.01em; padding: 8px 15px; border-radius: var(--radius-pill);
    box-shadow: 0 8px 22px var(--accent-glow, rgba(0,43,115,.4));
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity .35s var(--ease); max-width: 86vw; }
  /* hide the connector line too — with no RHS list it drew a wild diagonal
     across the hero on phones (Zach 2026-11-02) */
  .fold-wire, #foldWire { display: none !important; }

  /* --- MOBILE ANIM BREATHING ROOM (Zach 2026-11-04) ---
     On short phone viewports the sticky stage centres a large figure while the
     head is absolute-pinned at the top, so the figure collided with the heading
     / sub-text. Push both figures to the BOTTOM of the stage and shrink them so
     the heading always has clear air above the artwork. */
  /* SCENE A (fold): give the blue résumé cards room to BREATHE below the heading
     (Zach 2026-11-23). Keep the card bottom-anchored, drop it a touch lower and
     shrink it slightly so its top edge clears the "One tap. Fully formed." title
     with clear air between them — the cards were riding up into the heading. */
  .fold-stage { place-items: end center !important; padding-bottom: 4vh !important; }
  .book { height: min(360px, 84vw) !important; }
  /* SCENE B (explode): bring the Ready Room card UP to sit directly under its
     title — the old end-anchor + big bottom pad left a large empty void between
     "The Ready Room" heading and the interview card (Zach 2026-11-23). Centre it
     (with nav clearance) so the animation and title read as one tight unit. */
  .explode-stage { place-items: center !important;
    padding-top: calc(132px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 2vh !important; perspective-origin: 50% 50% !important; }
  .explode-figure { width: min(440px, 82vw) !important; }
  /* give the pinned heads a hard floor BELOW the navbar so the artwork can never
     ride up into them, and the heading itself clears the nav pill */
  .fold-head, .explode-head { top: calc(84px + env(safe-area-inset-top, 0px)) !important; }
  .fold-head .sub, .explode-head .sub { font-size: 14px !important; }
  /* more internal padding so the résumé content isn't crammed against the box edge */
  .sheet-inner { padding: 30px 26px !important; }
  /* blue cover: the 40px pad is huge on a narrow phone leaf, bunching the
     "Résumé / Tailored & ATS-ready" text toward the spine. Tighten it so the
     cover copy sits comfortably LEFT, not crammed to the right. */
  .cover { padding: 26px 20px !important; }
}
/* Extra-tight phones (short height): shrink figures more + hide the long
   descriptive sub during the pinned animation so a tall card can't overlap it. */
@media (max-width: 820px) and (max-height: 760px) {
  .explode-figure { width: min(360px, 76vw) !important; }
  .book { height: min(360px, 86vw) !important; }
  /* centred-low with nav clearance — card sits below the nav + heading, no void */
  .explode-stage { place-items: end center !important;
    padding-top: calc(84px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 7vh !important; }
  .fold-stage { padding-bottom: 8vh !important; }
  /* breathing room inside the shrunken résumé so chips + education card aren't jammed at the top */
  .sheet-inner { padding: 34px 24px !important; }
  /* even tighter cover padding on small phones so the blue copy sits left */
  .cover { padding: 24px 18px !important; }
  /* the multi-line descriptive sub is what collides with a spreading card —
     drop it on tight phones; the headline + eyebrow still carry the message */
  .fold-head .sub, .explode-head .sub { display: none !important; }
}

/* =====================================================================
   SCENE B — READY ROOM EXPLODE  (verbatim selectors from redesign-mockup/apple.css)
   ===================================================================== */
.explode { position: relative; background: var(--bg-2); }
/* Track length tuned to the animation: LEAD+SPAN finish the explosion within the
   first ~2 viewports of scroll, so a 760vh track left ~750vh of dead scroll after
   it completed. 340vh = the explosion (~1.9vh) + a short dwell on the finished
   scene, then release to the next section — no long residual gap. (Zach 2026-11-07) */
.explode-track { height: 340vh; position: relative; }
.explode-stage {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center; overflow: hidden;
  perspective: 1600px; perspective-origin: 50% 42%;
}
.explode-figure { transform-style: preserve-3d; position: relative; width: min(620px, 88vw); }
.piece { transform-style: preserve-3d; backface-visibility: hidden;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 18px 20px; will-change: transform, opacity;
  transition: box-shadow .4s var(--ease); }
/* The long descriptive sub paragraph collided with the (now-lowered) interview
   card; the rr-title + rr-subhead carry the message, so retire it here too.
   (Zach 2026-11-06) */
.explode-head .sub { display: none; }
.explode-head {
  position: absolute; top: clamp(90px, 22vh, 220px); left: 0; right: 0;
  text-align: center; padding: 0 24px; z-index: 5;
  transition: opacity .5s var(--ease);
}
.explode-head .eyebrow { justify-content: center; }
.explode-head h2 { max-width: 20ch; margin: 10px auto 0; }
.explode-head .sub { color: var(--ink-3); font-size: 15px; margin-top: 10px; }

/* Callout label that fades in once the piece has drifted out */
.piece .tag {
  position: absolute; top: 14px;
  font-size: 12px; font-weight: 640; letter-spacing: .02em;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 10px; border-radius: var(--radius-pill);
  white-space: nowrap; opacity: 0; transition: opacity .45s var(--ease);
}
.piece .tag.right { right: -12px; transform: translateX(100%); }
.piece .tag.left  { left: -12px;  transform: translateX(-100%); }
.piece .note {
  display: block; font-size: 12.5px; color: var(--ink-3);
  margin-top: 6px; max-width: 30ch; opacity: 0; transition: opacity .45s var(--ease);
}
.piece.lit .tag, .piece.lit .note { opacity: 1; }
.piece h6 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }

/* Dark variant of the explode stage (Ready Room) */
.explode.dark { background: var(--ink); color: #fff; }
.explode.dark .explode-head h2 { color: #fff; }
.explode.dark .explode-head .eyebrow { color: var(--ai); }
.explode.dark .explode-head .sub { color: rgba(255,255,255,.6); }
/* "New · Pro feature · The Ready Room" promoted from eyebrow → headline title (Zach 2026-10-31) */
.explode-head .rr-title { font-size: var(--fs-h2); font-weight: 680; letter-spacing: -.025em;
  line-height: 1.08; max-width: 22ch; margin: 0 auto; color: #fff; }
.explode-head .rr-subhead { font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em;
  color: var(--ai); max-width: 24ch; margin: 12px auto 0; }
@media (max-width: 820px){ .explode-head .rr-title { font-size: clamp(26px, 8vw, 40px); } }
.explode.dark .piece {
  background: #1c1d21; border-color: rgba(0,194,209,.28); color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(0,194,209,.12);
  transition: box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.explode.dark .piece.lit {
  border-color: rgba(0,194,209,.65);
  box-shadow: 0 0 0 1px rgba(0,194,209,.4), 0 22px 60px rgba(0,0,0,.5),
              0 0 42px rgba(0,194,209,.38);
}
.explode.dark .piece h6 { color: rgba(255,255,255,.5); }
.explode.dark .piece .tag { color: #9df0f6; background: rgba(0,194,209,.16); }
.explode.dark .piece .note { color: rgba(255,255,255,.55); }
.explode.dark .rr-q { font-size: 16px; line-height: 1.45; color: #fff; }
.explode.dark .rr-wave { display:flex; align-items:flex-end; gap:4px; height:38px; }
.explode.dark .rr-wave span { flex:1; background: var(--ai); border-radius: 3px; opacity:.9; }
.explode.dark .rr-stat { display:flex; justify-content:space-between; align-items:center; }
.explode.dark .rr-stat .v { font-weight:680; color:var(--ai); font-size:20px; }

/* AI-SCORE EMPHASIS (the "Your answer score" card is the hero of the explosion) */
.explode.dark .piece[data-piece="3"] {
  border-color: rgba(0,194,209,.5);
  transition: border-color .4s var(--ease), box-shadow .5s var(--ease), background .4s var(--ease);
}
.explode.dark .piece.rr-hero {
  border-color: rgba(0,194,209,.95);
  background: linear-gradient(180deg, #06303a, #0d1420);
  box-shadow: 0 0 0 1.5px rgba(0,194,209,.6), 0 26px 70px rgba(0,0,0,.55),
              0 0 60px rgba(0,194,209,.5);
}
.explode.dark .piece.rr-hero h6 { color: rgba(150,240,246,.9); }
.explode.dark .piece.rr-hero .rr-stat .v {
  color: #5ef0fa; font-size: 30px; letter-spacing: -.01em;
  text-shadow: 0 0 22px rgba(0,194,209,.75);
  transition: font-size .45s var(--ease), color .45s var(--ease);
}
.explode.dark .piece[data-piece="3"] .ai-badge {
  position: absolute; top: 14px; right: 14px; opacity: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--ai); color: #002b30;
  border: 1px solid rgba(0,194,209,.9);
  transition: opacity .45s var(--ease);
}
.explode.dark .piece.rr-hero .ai-badge { opacity: 1; }

/* Reduced-motion / no-JS: show the panel whole, stacked, labels visible */
.explode.no-motion .explode-track { height: auto; }
.explode.no-motion .explode-stage { position: static; height: auto; display: block; padding: var(--sp-6) 0; }
.explode.no-motion .explode-figure { margin: 40px auto 0; display: grid; gap: 14px; }
.explode.no-motion .piece { position: relative !important; transform: none !important; opacity: 1 !important; }
.explode.no-motion .piece .tag { position: static; display:inline-block; transform:none; opacity:1; margin-bottom: 8px; }
.explode.no-motion .piece .note { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .explode-track { height: auto; }
  .explode-stage { position: static; height: auto; display:block; padding: var(--sp-6) 0; }
  .explode-figure { margin: 40px auto 0; display:grid; gap:14px; }
  .piece { position: relative !important; transform:none !important; opacity:1 !important; }
  .piece .tag { position: static; display:inline-block; transform:none; opacity:1; margin-bottom:8px; }
  .piece .note { opacity:1; }
}
/* Mobile: Ready Room stage stays dark, headline legible */
@media (max-width: 760px) {
  .explode.dark .explode-head h2 { font-size: clamp(26px, 8vw, 40px); }
}

/* =====================================================================
   MG-STYLED INTERSTITIAL SECTIONS (respect live content/tone/brand)
   ===================================================================== */
/* Tailoring band */
.tailorband { position: relative; padding: 76px 20px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg,#001a4d 0%,#003a9b 55%,#0051d0 100%); color:#fff; }
.tailorband::after { content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(1200px 300px at 50% -20%, rgba(90,162,255,.35), transparent 70%); }
.tailorband-inner { position:relative; z-index:1; max-width:900px; margin:0 auto; }
.tailorband-eyebrow { display:inline-block; font-size:12px; font-weight:700; letter-spacing:.18em;
  text-transform:uppercase; color:#cfe0ff; background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.22); padding:6px 15px; border-radius:999px; margin-bottom:18px; }
.tailorband-title { font-size: clamp(26px,3.4vw,34px); line-height:1.18; font-weight:800; letter-spacing:-.02em; margin:0 0 14px; }
.tailorband-title em { font-style:normal; background: linear-gradient(90deg,#8ec5ff,#ffffff);
  -webkit-background-clip:text; background-clip:text; color:transparent; }
.tailorband-sub { font-size:18px; line-height:1.55; color:#dce6fb; max-width:660px; margin:0 auto 28px; }
.tailorband-cta { display:inline-flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.tailorband-cta .tb-primary { background:#fff; color:#003a9b; font-weight:700; border:none; }
.tailorband-cta .tb-primary:hover { filter:brightness(.96); }
.tailorband-cta .tb-ghost { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.5); font-weight:600; }
.tailorband-cta .tb-ghost:hover { background:rgba(255,255,255,.10); }

/* Integrations band */
.mgint { padding:72px 20px; background: linear-gradient(180deg,#ffffff 0%,#f5f7fb 100%); border-bottom:1px solid rgba(0,0,0,.06); }
.mgint-inner { max-width:1080px; margin:0 auto; text-align:center; }
.mgint-eyebrow { display:inline-block; font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:#0051d0; background:rgba(0,81,208,.08); border:1px solid rgba(0,81,208,.18); padding:6px 14px; border-radius:999px; margin-bottom:16px; }
.mgint-title { font-size: clamp(24px,2.8vw,30px); line-height:1.15; font-weight:700; letter-spacing:-.02em; color:#1d1d1f; margin:0 0 10px; }
.mgint-sub { font-size:17px; line-height:1.5; color:#4b4f56; max-width:600px; margin:0 auto 30px; }
.mgint-chips { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }
.mgint-chip { display:inline-flex; align-items:center; gap:10px; font-size:16px; font-weight:600; color:#1d1d1f;
  background:#fff; border:1px solid rgba(0,0,0,.12); border-radius:999px; padding:12px 22px; box-shadow:0 6px 18px -12px rgba(0,0,0,.35); }
.mgint-chip .mgint-dot { width:9px; height:9px; border-radius:50%; background:#0051d0; box-shadow:0 0 8px 1px rgba(0,81,208,.4); }
.mgint-tick { color:#12a150; font-weight:800; }
.mgint-foot { margin:26px 0 0; font-size:14px; color:#6b6f76; }

/* Selling points grid */
.selling { background: var(--bg); }
.selling .head { max-width: 760px; margin: 0 auto var(--sp-4); text-align: center; }
.selling .head h2 { margin-bottom: 14px; }
.selling-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.sp-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); box-shadow: var(--shadow); }
.sp-card--dark { background: linear-gradient(135deg,#000 0%,#1d1d1f 100%); color:#fff; border-color: rgba(0,81,208,.36); }
.sp-kicker { display:inline-flex; margin-bottom:14px; padding:4px 10px; border-radius:999px;
  background: rgba(0,81,208,.1); color: var(--accent); font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.sp-card--dark .sp-kicker { background: rgba(0,81,208,.22); color:#cfe0ff; }
.sp-card h3 { margin-bottom: 8px; font-size: 1.35rem; line-height: 1.2; color: inherit; }
.sp-card p { color: inherit; opacity: .9; line-height: 1.6; }
.sp-card ul { margin-top: 18px; display: grid; gap: 10px; list-style: none; }
.sp-card li { font-size: .95rem; line-height: 1.45; color: inherit; padding-left: 24px; position: relative; }
.sp-card li::before { content:"✓"; position:absolute; left:0; color:#30d158; font-weight:800; }

/* Scout / features / security helpers */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat-row.flip .feat-copy { order: 2; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-cell { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feat-cell .ico { width: 44px; height: 44px; border-radius: 12px; display:grid; place-items:center; font-size: 20px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feat-cell h3 { font-size: 19px; margin-bottom: 8px; }
.feat-cell p { color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }
.security { background: var(--ink); color: #fff; }
.security h2 { color: #fff; }
.security .lead { color: rgba(255,255,255,.62); }
.security .eyebrow { color: var(--accent-2); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: var(--sp-4); }
.sec-cell { background: #141620; border: 1px solid rgba(90,140,255,.22); border-radius: var(--radius); padding: 28px; }
.sec-cell h3 { font-size: 18px; margin-bottom: 8px; }
.sec-cell p { color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.5; }

/* Pricing teaser */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.price-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lift); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 620; padding: 6px 14px; border-radius: var(--radius-pill); }
.price-card .name { font-size: 20px; font-weight: 640; }
.price-card .amt { font-size: 44px; font-weight: 700; letter-spacing: -.03em; margin: 14px 0 4px; }
.price-card .per { color: var(--ink-3); font-size: 14px; }
.price-feats { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-feats li { font-size: 14.5px; color: var(--ink-2); padding-left: 26px; position: relative; }
.price-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Final CTA */
.cta-final { text-align: center; background: linear-gradient(180deg,#000 0%,#0a0b14 100%); color: #fff; }
.cta-final h2 { color: #fff; max-width: 18ch; margin: 0 auto 16px; }
.cta-final .lead { color: rgba(255,255,255,.7); max-width: 48ch; margin: 0 auto 28px; }

/* Footer */
footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: var(--sp-5) 0 var(--sp-4); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 16px; }
.foot-grid a { display: block; font-size: 14.5px; color: var(--ink-2); margin-bottom: 10px; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { margin-top: var(--sp-4); padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* =====================================================================
   MOBILE — per-element width caps only (NO overflow-x:hidden on html/body)
   ===================================================================== */
@media (max-width: 820px) {
  .selling-grid, .feat-row, .feat-grid, .sec-grid, .price-grid, .foot-grid { grid-template-columns: 1fr; }
  .feat-row.flip .feat-copy { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: var(--sp-6) 0; }
  .panel, .panel-pad, .sp-card, .feat-cell, .price-card { max-width: 100%; }
  img, svg, video { max-width: 100%; height: auto; }
}
@media (max-width: 640px) {
  .tailorband-sub { font-size: 16px; }
  .mgint-sub { font-size: 15.5px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO PILL LIST + EXPAND-ON-SCROLL PILLAR SHOWCASE (Zach 2026-11-02)
   9 MerlAI pillars. The hero carries a scannable chip list; the
   #pillars section expands each feature as it scrolls into view.
   AI-cyan accent reserved for the 3 genuinely-AI pillars (data-accent="ai").
   ============================================================ */
.hero-pills{
  list-style:none; display:flex; flex-wrap:wrap; justify-content:center;
  gap:10px; margin:28px auto 0; max-width:760px; padding:0;
}
.hero-pills li a{
  display:inline-block; font-size:13px; font-weight:550; color:var(--ink-2);
  background:var(--bg-3); border:1px solid var(--hairline,#e2e4e8);
  padding:7px 14px; border-radius:var(--radius-pill);
  transition:background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.hero-pills li a:hover{ background:var(--accent-soft); color:var(--accent-press); transform:translateY(-1px); }

.pillars{ background:var(--bg-2); }
.pillars-head{ text-align:center; max-width:760px; margin:0 auto var(--sp-6); }

.pillar-list{ list-style:none; padding:0; margin:0 auto; max-width:920px;
  counter-reset:pillar; display:flex; flex-direction:column; gap:20px; }

.pillar{
  display:flex; gap:26px; align-items:flex-start;
  background:var(--bg); border:1px solid var(--hairline,#e4e6ea);
  border-radius:var(--radius); padding:30px 32px;
  box-shadow:0 1px 2px rgba(11,12,14,.03);
  /* reveal-from-below baseline (the .reveal/.in system animates this) */
  transition:transform .7s var(--ease), opacity .7s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.pillar:hover{ box-shadow:0 2px 6px rgba(11,12,14,.05), 0 24px 60px rgba(11,12,14,.07); border-color:#d7dade; }

.pillar-ico{
  flex:0 0 auto; width:62px; height:62px; border-radius:18px;
  display:flex; align-items:center; justify-content:center; font-size:28px;
  background:var(--accent-soft); color:var(--accent);
  transition:transform .6s var(--ease), background .35s var(--ease);
}
.pillar[data-accent="ai"] .pillar-ico{ background:var(--ai-soft); box-shadow:0 0 0 1px rgba(0,194,209,.25); }
.pillar.in .pillar-ico{ transform:scale(1); }

.pillar-body{ flex:1 1 auto; min-width:0; }
.pillar-n{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.1em;
  color:var(--ink-3); margin-bottom:6px;
}
.pillar[data-accent="ai"] .pillar-n{ color:var(--ai); }
.pillar-body h3{ font-size:22px; letter-spacing:-.02em; margin:0 0 8px; color:var(--ink); }
.pillar-lead{ font-size:16px; color:var(--ink-2); line-height:1.55; margin:0; }
.pillar-lead em{ font-style:normal; font-weight:600; color:var(--ink); }

/* the "expand as you scroll" payoff: the detail is collapsed until the row
   reveals (.in), then it unfolds. Pure CSS grid-rows trick — smooth + no JS. */
.pillar-more{
  display:grid; grid-template-rows:0fr; opacity:0;
  transition:grid-template-rows .6s var(--ease) .1s, opacity .5s var(--ease) .15s;
}
.pillar-more > p{ overflow:hidden; margin:14px 0 0; font-size:15px; color:var(--ink-2); line-height:1.6;
  border-top:1px solid var(--hairline,#eef0f3); padding-top:14px; }
.pillar.in .pillar-more{ grid-template-rows:1fr; opacity:1; }
.pillar[data-accent="ai"].in .pillar-more > p{ border-top-color:rgba(0,194,209,.28); }

@media (max-width:640px){
  .pillar{ flex-direction:column; gap:16px; padding:24px; }
  .pillar-ico{ width:54px; height:54px; font-size:24px; }
  .pillar-body h3{ font-size:19px; }
}
@media (prefers-reduced-motion:reduce){
  .pillar,.pillar-more,.pillar-ico{ transition:none; }
  .pillar-more{ grid-template-rows:1fr; opacity:1; }
}

/* ============================================================
   PILLAR DOCK — macOS-style magnifying TEXT navigator, right edge (Zach 2026-11-02, B)
   A vertical list of feature NAMES snapped to the right; JS scales each
   label by cursor proximity (true dock magnify). Active item tracks scroll.
   Shown only within the #pillars section on fine pointers.
   ============================================================ */
.pillar-dock{
  position:fixed; right:22px; top:50%; transform:translateY(-50%);
  display:flex; flex-direction:column; gap:4px; align-items:flex-end;
  z-index:60; text-align:right;
  opacity:0; pointer-events:none; transition:opacity .4s var(--ease);
  /* THE BLACK BAR FIX (Zach 2026-11-03): prod shared-nav-footer.css has a bare
     `nav { background: rgba(0,0,0,.8); backdrop-filter: blur } ` rule that was
     painting this <nav class="pillar-dock"> with a black glass panel on every
     surface. Force it fully transparent — pure floating text, no bar. */
  background:none !important; backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important; border:none !important;
  box-shadow:none !important; width:auto !important; top:50% !important;
  left:auto !important;
}
.pillar-dock.ready{ opacity:0; }
.pillar-dock.ready.visible{ opacity:1; pointer-events:auto; }

.pdock-item{
  position:relative; display:block; flex:0 0 auto;
  padding:5px 2px; line-height:1.15; text-decoration:none;
  transform-origin:right center;              /* grow toward the content, anchored to the edge */
  will-change:transform;
}
/* ---- PER-LINE SPLIT contrast (Zach 2026-11-02) ----
   Three perfectly-stacked copies of each label: a DARK layer, a LIGHT layer,
   and a BLUE layer. JS clip-paths the dark & light layers at the live light/dark
   boundary, so a single word splits mid-glyph: top half one colour, bottom the
   other. The blue layer shows only when the line is active (overrides both). */
.pdock-text{
  font-size:15.5px; font-weight:650; letter-spacing:-.01em;
  line-height:1.15; white-space:nowrap;
}
/* stack the three colour layers in the same box */
.pdock-dark, .pdock-light, .pdock-blue{
  position:absolute; right:2px; top:5px;        /* match .pdock-item padding */
  pointer-events:none;
}
.pdock-dark { color:var(--ink); text-shadow:0 1px 8px rgba(255,255,255,.7); }  /* over LIGHT bg — white halo */
.pdock-light{ color:#fff; text-shadow:0 1px 10px rgba(0,0,0,.65); }            /* over DARK bg — dark halo */
/* SELECTED (Zach 2026-11-03): default to the bright light-blue #4c86e8 with a
   strong dual halo — legible on white, dark AND blue (blue-on-blue was the
   failure case; the lighter blue + dark outline fixes it). Only when the
   sampler CONFIRMS a light bg do we drop to the deep MG blue. This way the
   worst case (unsure / blue section) always stays readable. */
/* default (dark/blue bg): WHITE text + a blue glow — reads as "selected" via the
   glow but stays fully legible (blue-on-blue was unwinnable). */
.pdock-blue { color:#fff; opacity:0;
  text-shadow:0 0 3px rgba(0,81,208,1), 0 0 12px rgba(76,134,232,1), 0 1px 8px rgba(0,0,0,.55); }
/* only on a confirmed LIGHT bg: the deep MG blue (which reads great on white). */
.pdock-item.onlight .pdock-blue{ color:var(--accent);
  text-shadow:0 1px 6px rgba(255,255,255,.5), 0 0 8px rgba(0,81,208,.35); }

/* the measure span reserves the box size but is invisible */
.pdock-measure{
  font-size:15.5px; font-weight:650; letter-spacing:-.01em; line-height:1.15;
  white-space:nowrap; visibility:hidden;
}

/* crisp by default (no muddy band); a hair brighter when magnified/hovered */
.pdock-dark, .pdock-light{ opacity:1; transition:opacity .2s var(--ease); }  /* fully opaque = more contrast/obvious (Zach 2026-11-03) */
.pdock-item:hover .pdock-dark, .pdock-item.near .pdock-dark,
.pdock-item:hover .pdock-light, .pdock-item.near .pdock-light{ opacity:1; }

/* ACTIVE = BLUE wins: reveal the blue layer (full-glyph), hide the split layers */
.pdock-item.active .pdock-blue{ opacity:1; }
.pdock-item.active .pdock-dark,
.pdock-item.active .pdock-light{ opacity:0; }
.pdock-item.active::after{
  content:""; position:absolute; right:-12px; top:50%; width:6px; height:6px; margin-top:-3px;
  border-radius:50%; background:var(--accent-2); box-shadow:0 0 6px rgba(76,134,232,.7);
}

/* give wide screens headroom so the fixed text dock (now on the LEFT) never
   overlaps the centred cards — reserve left space to clear the dock. (Zach 2026-11-23) */
@media (min-width:1280px){ .pillars .wrap{ padding-left:150px; } }

/* SCENE A (fold): with the ToC dock on the LEFT, shift the résumé book to the
   RIGHT on desktop so it clears the dock instead of sitting dead-centre over it.
   Transform the SCENE container (not .book — motion.js drives .book's transform).
   Desktop/fine-pointer only; mobile stays exactly as-is. (Zach 2026-11-23) */
@media (min-width:1100px) and (pointer:fine){
  /* LAYOUT (Zach 2026-11-24): dock on the far LEFT · résumé CENTRED · feature cards
     on the RIGHT. Shrink the book so it sits comfortably centred (a hair right of
     true-centre to balance the left dock) and clears the dock. */
  .fold .book{ width:min(540px,40vw) !important; height:min(350px,30vw) !important; }
  .fold-scene{ transform:translateX(4vw); }
  /* feature cards → to the RIGHT of the centred résumé (they used to be far-left,
     which collided with the dock). The JS-drawn connector wire re-tracks to the
     active item automatically. */
  .fold .feat-list{ left:auto !important; right:clamp(16px,4vw,72px) !important;
    top:50% !important; bottom:auto !important; transform:translateY(-50%) !important; }
}

/* hide on narrow / touch — magnify-on-hover is meaningless there; the cards carry it */
@media (max-width:1180px), (pointer:coarse){
  .pillar-dock{ display:none !important; }
  .pillars .wrap{ padding-left:0; }
}
@media (prefers-reduced-motion:reduce){
  .pdock-item,.pdock-text{ transition:none; }
}

/* ============================================================================
   HOMEPAGE DOCK → MOVE TO LEFT + COLLAPSIBLE  (Zach 2026-11-23, REVISED)
   REVERTED the legal-ToC panel restyle. That forced a single text colour + a
   wash, which broke the "good" behaviour Zach approved: the ORIGINAL split-
   contrast dock (pdock-dark/light/blue layers) samples the real background
   per-line and flips colour at the live light/dark boundary, so each label
   stays readable on ANY section (white, dark, blue) with no simultaneous
   fade-on-bg-change. We keep ALL of that intact — this block ONLY:
     • moves the floating text dock to the LEFT edge (was right:22px),
     • left-aligns the labels + anchors the genie magnify to the left,
     • adds the collapse toggle affordance (the one new thing Zach liked).
   No background, no border, no single-colour forcing — pure floating text. */
.pillar-dock{
  left:22px !important; right:auto !important;
  align-items:flex-start !important; text-align:left !important;
}
/* labels grow toward the content (to the RIGHT) from the left edge */
.pdock-item{ transform-origin:left center !important; }
.pdock-dark, .pdock-light, .pdock-blue{ right:auto !important; left:2px !important; }
.pdock-measure{ right:auto !important; left:2px !important; }

/* collapse-toggle header: minimal, floats above the labels; inherits the dock's
   transparent treatment (no panel). "On this page" + a – / + toggle. */
.pdock-head{
  display:flex; align-items:center; gap:10px;
  font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  font-weight:700; margin-bottom:8px; color:var(--ink-3, #83868d);
  text-shadow:0 1px 8px rgba(255,255,255,.7);
}
:root[data-theme="dark"] .pdock-head,
.explode .pdock-head{ color:#c6c9cf; text-shadow:0 1px 10px rgba(0,0,0,.6); }
.pdock-toggle{
  appearance:none; border:none; background:transparent; cursor:pointer;
  color:inherit; width:20px; height:20px; border-radius:6px; line-height:1;
  display:inline-flex; align-items:center; justify-content:center; font-size:15px; font-weight:700;
  transition:background .15s ease, color .15s ease;
}
.pdock-toggle:hover{ background:rgba(0,81,208,.12); color:var(--accent, #0051d0); }
/* COLLAPSED: hide the labels, keep the header pill (toggle stays clickable) */
.pillar-dock.collapsed .pdock-item{ display:none !important; }
.pillar-dock.collapsed .pdock-head .pdock-title{ display:none; }
.pillar-dock.collapsed .pdock-head{ margin-bottom:0; }
.pillar-dock.collapsed .pdock-head .pdock-title{ display:none; }

@media (max-width:1180px){ .pillar-dock{ display:none !important; } }
