/* ════════════════════════════════════════════════════════════════════════════
   PALETTE — same DNA as the resume
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --paper:      #fff6eb;
  --ink:        #2E2A24;
  --accent:     #8A6A35;
  --ink-soft:   #6C6254;

  --paper-soft:    color-mix(in srgb, var(--paper) 92%, var(--ink));
  --paper-deep:    color-mix(in srgb, var(--paper) 85%, var(--ink));
  --accent-soft:   color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-warm:   color-mix(in srgb, var(--accent) 80%, #c44a1a);
  --hairline:      color-mix(in srgb, var(--ink) 28%, transparent);
  --hairline-soft: color-mix(in srgb, var(--ink) 13%, transparent);
  --chip-bg:       color-mix(in srgb, var(--ink) 8%, transparent);

  --serif: 'Fraunces', 'Georgia', 'Liberation Serif', 'Times New Roman', serif;
  --sans:  'Inter Tight', 'Helvetica Neue', 'Liberation Sans', 'Arial', sans-serif;

  --max-w: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  --timeline-w: 220px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   SCROLL PROGRESS — thin accent line along the top of the page
   ════════════════════════════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%);
  transition: width 80ms linear;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-warm) 50%, transparent);
}

/* ════════════════════════════════════════════════════════════════════════════
   WATERMARK — persistent name + current stage, appears after masthead scrolls
   ════════════════════════════════════════════════════════════════════════════ */
.watermark {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  z-index: 50;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 16px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-soft);
  border-radius: 999px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease, transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
  white-space: nowrap;
}
.watermark.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.watermark-name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 18, "SOFT" 50;
  font-size: 13px;
}
.watermark-sep { color: var(--hairline); }
.watermark-stage {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  transition: opacity 200ms ease;
  font-size: 12.5px;
}
.watermark-stage.is-changing { opacity: 0; }

/* ════════════════════════════════════════════════════════════════════════════
   CAREER COMPASS — trajectory overview right under the masthead
   ════════════════════════════════════════════════════════════════════════════ */
.compass {
  margin: 0 0 clamp(48px, 6vw, 80px);
  padding: 32px 0 16px;
  border-top: 1px dashed var(--hairline-soft);
  border-bottom: 1px dashed var(--hairline-soft);
  position: relative;
}
.compass-head {
  margin-bottom: 24px;
}
.compass-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.compass-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 60, "SOFT" 50;
}
.compass-title em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 60, "SOFT" 50;
}

.compass-canvas {
  position: relative;
  width: 100%;
  margin: 8px 0 14px;
}
.compass-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.compass-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.compass.is-drawn .compass-path {
  stroke-dashoffset: 0;
}
.compass-dot {
  fill: var(--paper);
  stroke: var(--ink-soft);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transition: all 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.compass-stop.is-reached .compass-dot {
  fill: var(--accent);
  stroke: var(--accent);
  opacity: 1;
}
.compass-stop.is-current .compass-dot,
.compass-dot-current {
  fill: var(--accent-warm);
  stroke: var(--accent-warm);
  opacity: 1;
}
.compass.is-drawn .compass-dot {
  opacity: 1;
}
.compass-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  fill: var(--ink-soft);
  letter-spacing: 0.04em;
  opacity: 0;
  transition: all 400ms ease;
}
.compass-label-current {
  fill: var(--accent-warm);
  font-weight: 600;
}
.compass.is-drawn .compass-label { opacity: 1; }
.compass-stop.is-reached .compass-label { fill: var(--accent); font-weight: 600; }
.compass-year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10px;
  fill: var(--ink-soft);
  font-variation-settings: "opsz" 18, "SOFT" 50;
  opacity: 0;
  transition: opacity 400ms ease;
}
.compass.is-drawn .compass-year { opacity: 0.75; }
.compass-year-current {
  fill: var(--accent-warm);
  opacity: 1 !important;
  font-weight: 600;
  font-style: normal;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compass-marker {
  fill: var(--accent-warm);
  opacity: 0;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-warm) 60%, transparent));
  transition: cx 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
              cy 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 350ms ease;
}
.compass.is-scrolling .compass-marker {
  opacity: 1;
  animation: marker-pulse 1.8s ease-in-out infinite;
}
@keyframes marker-pulse {
  0%, 100% { r: 8; }
  50%      { r: 10; }
}

.compass-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  font-variation-settings: "opsz" 24, "SOFT" 50;
  opacity: 0.6;
  margin-top: 18px;
  animation: hint-bob 2.4s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(3px); opacity: 0.8; }
}

/* ════════════════════════════════════════════════════════════════════════════
   CHAPTER INTRO — appears at the top of each role card
   ════════════════════════════════════════════════════════════════════════════ */
.chapter-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.js .chapter-intro {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.role-card.is-revealed .chapter-intro {
  opacity: 1;
  transform: translateY(0);
}
.chapter-num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.chapter-divider {
  flex: 0 0 32px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 800ms 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.role-card.is-revealed .chapter-divider { transform: scaleX(1); }
.chapter-stage {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  letter-spacing: 0.01em;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "calt", "kern";
  min-height: 100vh;
  /* subtle paper grain */
  background-image:
    radial-gradient(at 25% 15%, color-mix(in srgb, var(--accent) 5%, transparent) 0px, transparent 60%),
    radial-gradient(at 85% 80%, color-mix(in srgb, var(--ink) 4%, transparent) 0px, transparent 50%);
  background-attachment: fixed;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 100; font-size: 13px;
}
.skip-link:focus { top: 0; }

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gutter) 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   MASTHEAD
   ════════════════════════════════════════════════════════════════════════════ */
.masthead {
  padding-bottom: 28px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.accent-mark {
  width: 56px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 18px;
}

.name-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 500;
}

.years-tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 2vw, 22px);
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  letter-spacing: 0.003em;
  line-height: 1.35;
  margin-bottom: 22px;
}
.kicker-sub {
  display: block;
  margin-top: 8px;
  font-size: 0.82em;
  color: var(--ink-soft);
  font-style: normal;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}
.kicker-sub em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  font-weight: 500;
}

.masthead-rule {
  height: 1px;
  background: var(--ink);
  margin-bottom: 18px;
}

.contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.contact li { display: inline-flex; align-items: center; gap: 8px; }
.contact .icon { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.contact a:hover { color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════════
   JOURNEY — timeline + content split
   ════════════════════════════════════════════════════════════════════════════ */
.journey {
  display: grid;
  grid-template-columns: var(--timeline-w) 1fr;
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: clamp(56px, 8vw, 96px);
  position: relative;
}

/* ════════ TIMELINE ════════ */
.timeline {
  position: relative;
}

.timeline-inner {
  position: sticky;
  top: 32px;
  padding-top: 8px;
  /* Sticky timeline ends before the section runs out — let scope-indicator breathe */
}

.college-toggle {
  appearance: none;
  background: transparent;
  border: 1px dashed var(--hairline);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  transition: all 200ms ease;
  margin-bottom: 16px;
}
.college-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.college-toggle-arrow {
  display: inline-block;
  transition: transform 250ms ease;
  font-size: 14px;
}
.college-toggle[aria-expanded="true"] .college-toggle-arrow {
  transform: rotate(180deg);
}
.college-toggle-label {
  font-weight: 500;
  flex: 1;
  text-align: left;
}

/* Mobile toggle is hidden on desktop, shown on mobile */
.college-toggle-mobile { display: none; }
@media (max-width: 880px) {
  .college-toggle-mobile {
    display: flex;
    margin-bottom: 24px;
  }
}

.timeline-segment {
  position: relative;
  padding: 20px 0 16px 28px;
}
.college-segment[hidden] { display: none; }

.timeline-segment::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--hairline);
}

.college-segment::before {
  background: repeating-linear-gradient(
    to bottom,
    var(--hairline) 0,
    var(--hairline) 4px,
    transparent 4px,
    transparent 8px
  );
}

/* Scope line — sits on top of the base line, grows as you go */
.scope-line {
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: transparent;
  pointer-events: none;
}
.scope-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--accent) 30%, transparent) 0%,
    var(--accent) 60%,
    var(--accent-warm) 100%);
  border-radius: 2px;
  transition: height 220ms linear;
}

.segment-stations {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.station {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 4px 10px;
  align-items: center;
  padding-left: 0;
}
.station-dot {
  position: absolute;
  left: -25px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink-soft);
  transform: translateY(-50%);
  transition: all 250ms ease;
  z-index: 2;
}
.station.is-pro .station-dot {
  border-color: var(--accent);
}
.station.is-current .station-dot {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-warm) 18%, transparent);
}

.station.is-active .station-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.25);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent),
              0 0 16px color-mix(in srgb, var(--accent) 25%, transparent);
  animation: station-pulse 2s ease-in-out infinite;
}
@keyframes station-pulse {
  0%, 100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent), 0 0 16px color-mix(in srgb, var(--accent) 20%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 24px color-mix(in srgb, var(--accent) 30%, transparent); }
}

/* Station labels slide in when active */
.station-year {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  grid-row: 1;
  transition: color 300ms ease, transform 300ms ease;
}
.station.is-active .station-year {
  color: var(--accent);
  transform: translateX(2px);
}

.station-label {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 36;
  grid-row: 1;
  grid-column: 2 / -1;
  transition: color 250ms ease, transform 300ms ease, letter-spacing 300ms ease;
}
.station.is-active .station-label {
  color: var(--accent);
  transform: translateX(3px);
  letter-spacing: 0.01em;
}
.station.is-current .station-label {
  color: var(--accent-warm);
}

/* Station bridge — fade in only when station above is active */
.station-bridge {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  padding: 2px 0 2px 4px;
  opacity: 0.25;
  letter-spacing: 0.01em;
  line-height: 1.3;
  display: block;
  transition: opacity 600ms ease, transform 400ms ease;
  transform: translateY(-2px);
}
.station-bridge.is-visible {
  opacity: 0.85;
  transform: translateY(0);
}

/* Scope indicator — small text at bottom of pro segment that tracks current scope */
.scope-indicator {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: -28px;
  padding-left: 28px;
}
.scope-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scope-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  transition: color 300ms ease;
  min-height: 1.4em;
}

/* ════════ CONTENT COLUMN ════════ */
.content {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
  min-width: 0;
}

.content-college[hidden] { display: none; }

.role-head {
  margin-bottom: 18px;
}
/* Reveal animation: only when JS has loaded (body gets .js class) and only inside role-card */
.js .role-card .role-head {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms 150ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 700ms 150ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.role-card.is-revealed .role-head {
  opacity: 1;
  transform: translateY(0);
}
/* Apply same reveal to role-narrative */
.role-narrative {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  max-width: 62ch;
  margin: 14px 0 6px;
  padding-left: 14px;
  border-left: 2px solid var(--accent-soft);
}
.js .role-card .role-narrative {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms 250ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 700ms 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.role-card.is-revealed .role-narrative {
  opacity: 1;
  transform: translateY(0);
}
.role-meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.role-meta-tag {
  color: var(--ink-soft);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}
.role-card h2,
.role-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-variation-settings: "opsz" 72, "SOFT" 50;
  margin-bottom: 10px;
}
.role-sep {
  color: var(--hairline);
  font-weight: 400;
  margin: 0 4px;
}
.role-position {
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 400;
  font-size: 0.78em;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.role-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  line-height: 1.5;
  max-width: 60ch;
}
.role-sub strong {
  font-style: normal;
  color: var(--ink);
  font-weight: 600;
}

.role-body { font-size: 15.5px; }

.role-takeaway {
  margin-top: 20px;
  padding: 14px 18px;
  background: transparent;
  border-top: 1px dashed var(--hairline-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  max-width: 62ch;
}
.role-takeaway em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.takeaway-label {
  display: inline-block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-right: 10px;
  vertical-align: 1px;
}

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.55;
}
.js .role-card .bullets li {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.role-card.is-revealed .bullets li {
  opacity: 1;
  transform: translateX(0);
}
.role-card.is-revealed .bullets li:nth-child(1) { transition-delay: 350ms; }
.role-card.is-revealed .bullets li:nth-child(2) { transition-delay: 450ms; }
.role-card.is-revealed .bullets li:nth-child(3) { transition-delay: 550ms; }
.role-card.is-revealed .bullets li:nth-child(4) { transition-delay: 650ms; }
.role-card.is-revealed .bullets li:nth-child(5) { transition-delay: 750ms; }
.role-card.is-revealed .bullets li:nth-child(6) { transition-delay: 850ms; }
.role-card.is-revealed .bullets li:nth-child(7) { transition-delay: 950ms; }
.bullets li::before {
  content: "›";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
}
.bullets strong { font-weight: 600; color: var(--ink); }

.hl {
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* Stack chips */
.role-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline-soft);
}
.stack-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 6px;
}
.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--chip-bg);
  color: var(--ink);
  white-space: nowrap;
}
.chip.is-primary {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* Badges */
.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.badge {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--ink-soft);
  background: transparent;
}
.badge-award {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Headline role gets a subtle paper-deep card treatment */
.role-card.is-headline {
  position: relative;
}
.role-card.is-headline::before {
  content: "";
  position: absolute;
  left: -16px;
  top: -8px;
  bottom: -8px;
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ════════ LATENCY VIZ (BlackRock 10×) ════════ */
.latency-viz {
  margin: 22px 0 4px;
  padding: 18px 20px;
  background: var(--paper-soft);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
.latency-row {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 12px;
}
.latency-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.latency-bar {
  height: 8px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.latency-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%);
  transition: width 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.latency-bar.is-animated .latency-bar-fill { width: var(--target-w, 100%); }
.latency-value {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ════════ PHASES (DP World sub-timeline) ════════ */
.phases {
  margin: 28px 0 8px;
  padding: 4px 0 4px 0;
  position: relative;
}
.phases-head {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline-soft);
}

.phase {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--hairline-soft);
}
.js .phase {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.phase.is-in {
  opacity: 1;
  transform: translateY(0);
}
.phase:last-child { border-bottom: none; }
.phase::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}
.phase::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 18px;
  width: 9px;
  height: 9px;
  background: var(--paper);
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  transition: all 250ms ease;
}
.phase.is-pivotal::after {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.phase.is-current::after {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-warm) 16%, transparent);
}
.phase-date {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.phase-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.phase.is-pivotal .phase-title,
.phase.is-current .phase-title {
  color: var(--accent);
}
.phase-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 64ch;
}

/* ════════ SCOUT CARD — the "currently building" highlight ════════ */
.scout-card {
  margin: 32px 0 8px;
  padding: 24px 26px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-warm) 5%, var(--paper)) 0%,
    color-mix(in srgb, var(--accent) 6%, var(--paper)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.scout-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%);
}

.scout-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 10px;
}
.scout-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
  position: relative;
  flex-shrink: 0;
}
.scout-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-warm);
  opacity: 0;
  animation: scout-pulse 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
@keyframes scout-pulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

.scout-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 500;
  color: var(--ink);
  font-variation-settings: "opsz" 48, "SOFT" 50;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.scout-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}
.scout-body + .scout-body { margin-top: 10px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px 32px;
  margin: 18px 0 8px;
  padding: 24px 24px;
  background: var(--paper-soft);
  border-radius: 3px;
  position: relative;
}
.metrics::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 1px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-number {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1;
  color: var(--accent);
  font-variation-settings: "opsz" 72, "SOFT" 50;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.metric-number.metric-text {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}
.metric-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION HEADS
   ════════════════════════════════════════════════════════════════════════════ */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* ════════════════════════════════════════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════════════════════════════════════════ */
.projects {
  margin-bottom: clamp(48px, 7vw, 80px);
}
.projects-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  margin-bottom: 28px;
  max-width: 50ch;
}
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.proj-card {
  padding: 20px 22px;
  background: var(--paper-soft);
  border: 1px solid var(--hairline-soft);
  border-radius: 3px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.proj-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(138,106,53,.08);
}
.proj-card-feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(138,106,53,.04), rgba(176,120,48,.06));
  border-color: rgba(138,106,53,.15);
}
.proj-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--accent);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  display: block;
  margin-bottom: 6px;
}
.proj-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 20px);
  margin-bottom: 8px;
  font-variation-settings: "opsz" 48, "SOFT" 50;
}
.proj-card h4 a {
  border-bottom: 1px solid transparent;
  transition: all 200ms ease;
}
.proj-card h4 a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.proj-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 56ch;
}
.proj-stats {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.proj-stats span { font-size: 13px; color: var(--ink-soft); }
.proj-stats strong {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  font-weight: 500;
  margin-right: 4px;
}

/* ════════════════════════════════════════════════════════════════════════════
   SKILLS
   ════════════════════════════════════════════════════════════════════════════ */
.skills { margin-bottom: clamp(40px, 6vw, 64px); }
.skill-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.skill-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hairline-soft);
}
.skill-row:last-child { border-bottom: none; }
.skill-row dt {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.skill-row dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

/* ════════════════════════════════════════════════════════════════════════════
   CLOSING (education + focus)
   ════════════════════════════════════════════════════════════════════════════ */
.closing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.closing-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.closing-content .degree {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.closing-content .org {
  font-style: italic;
  font-family: var(--serif);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.closing-focus { line-height: 1.7; }

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════════ */
.footer {
  padding: 24px 0 56px;
  text-align: center;
}
.footer-rule {
  height: 1px;
  background: var(--ink);
  width: 80px;
  margin: 0 auto 22px;
}
.footer-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.footer-sep { color: var(--hairline); }
.footer-line a:hover { color: var(--accent); }
.footer-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.footer-sig {
  letter-spacing: 0.05em;
  color: var(--accent);
}
.footer-curious {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  opacity: 0.75;
}

/* ════════════════════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ════════════════════════════════════════════════════════════════════════════ */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  :root { --timeline-w: 0px; }

  .journey {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Timeline aside hidden on mobile — replaced by .mob-rail strip */
  .timeline { display: none; }
  .station-bridge { display: none; }

  /* Watermark gets simpler on mobile — sits below the mob-rail strip */
  .watermark {
    padding: 5px 12px;
    top: 50px;
    font-size: 11px;
  }
  .watermark-name { display: none; }
  .watermark-sep { display: none; }

  /* Compass — keep but compact on mobile */
  /* Compass — fully responsive on mobile, no scroll */
  .compass-canvas {
    overflow: hidden;
    margin: 0;
    padding: 0;
  }
  .compass-svg {
    width: 100%;
    height: auto;
    min-width: unset;
  }
  /* Hide year labels above dots on mobile to reduce clutter */
  .compass-year { font-size: 7px; }
  .compass-label { font-size: 8px; }
  .compass-label-current { font-size: 8px; }
  .compass-year-current { font-size: 8px; }
  .compass-dot { r: 4; }
  .compass-dot-current { r: 5; }
  .compass-marker { r: 6; }
  .compass-mobile { display: none; }
  .compass-label { font-size: 9.5px; }
  .compass-title { font-size: 22px; }

  /* Inject a left-edge line on each role for visual continuity on mobile */
  .content {
    position: relative;
    padding-left: 24px;
  }
  .content::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--hairline);
  }
  .role-card {
    position: relative;
  }
  .role-card::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid var(--accent);
  }
  .role-card.is-headline::before {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
    width: 13px; height: 13px;
    left: -23px;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-warm) 14%, transparent);
  }
  .role-card.is-headline {
    /* override the desktop ::before stripe */
  }
  .role-card.is-headline::before {
    /* already styled above */
  }
  /* Remove desktop's left-stripe on headline since we now use a dot */
  .role-card.is-headline {
    border-left: none;
  }

  .content-college:not([hidden]) {
    position: relative;
  }
  .content-college:not([hidden])::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px dashed var(--ink-soft);
  }
}

@media (max-width: 880px) {
  .proj-grid { grid-template-columns: 1fr; }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .closing {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .name-block { gap: 12px; }

  .contact { gap: 6px 18px; font-size: 13px; }
}

@media (max-width: 540px) {
  .page { padding-top: 24px; }
  .accent-mark { margin-bottom: 14px; }
  .kicker { font-size: 17px; margin-bottom: 18px; }
  .kicker-sub { font-size: 13.5px; }
  .role-head h2 { font-size: 24px; }
  .metrics { padding: 18px; gap: 18px 24px; }
  .metric-number { font-size: 32px; }
  .metric-number.metric-text { font-size: 19px; }
  .latency-row { grid-template-columns: 48px 1fr 48px; gap: 8px; }
  .role-narrative { font-size: 15px; padding-left: 12px; }
  .role-takeaway { font-size: 13.5px; padding: 12px 14px; }
  .phase { padding-left: 22px; }
  .phase-title { font-size: 16.5px; }
  .phase-body { font-size: 14px; }
  .scout-card { padding: 20px; }
  .scout-title { font-size: 21px; }
  .scout-body { font-size: 14.5px; }
}

/* Mobile-only: show year tag inline above each role */
@media (max-width: 880px) {
  .role-meta { font-size: 11px; }
}
/* ════════════════════════════════════════════════════════════════════════════
   ADDITIONAL ENGAGEMENT STYLES
   ════════════════════════════════════════════════════════════════════════════ */

/* ═══ STACK EVOLUTION VIZ ═══ */
.stack-evo {
  margin: 56px 0 32px;
  padding: 0;
}
.stack-evo-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.stack-evo-head h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stack-evo-head .rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.evo-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evo-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
}
.js .evo-row {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.evo-row.is-in {
  opacity: 1;
  transform: translateX(0);
}

.evo-label {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  text-align: right;
}
.evo-label em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.evo-bar-wrap {
  position: relative;
  height: 28px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border-radius: 2px;
  overflow: hidden;
}
.evo-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.evo-row.is-in .evo-bar {
  width: var(--target-w);
}
.evo-bar-text {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 400ms 800ms ease;
}
.evo-row.is-in .evo-bar-text {
  opacity: 1;
}

.evo-bar-nagarro   { background: color-mix(in srgb, var(--ink-soft) 80%, var(--accent)); }
.evo-bar-blackrock { background: color-mix(in srgb, var(--accent) 60%, var(--ink)); }
.evo-bar-telekom   { background: var(--accent); }
.evo-bar-dpworld   { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-warm) 100%); }

/* ═══ QUOTE CREATION LIVE DEMO ═══ */
.quote-demo {
  margin: 24px 0 12px;
  padding: 20px 24px;
  background: var(--paper-soft);
  border-radius: 3px;
  max-width: 560px;
  position: relative;
  overflow: hidden;
}
.quote-demo::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--accent);
}
.quote-demo-head {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quote-demo-label { color: var(--accent); }

.quote-demo-tracks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-track {
  display: grid;
  grid-template-columns: 56px 1fr 64px;
  gap: 10px;
  align-items: center;
}
.demo-track-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.demo-track-bar {
  height: 6px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.demo-track-progress {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--accent);
  transition: none;
}
.demo-track-progress.is-slow {
  background: color-mix(in srgb, var(--ink-soft) 70%, var(--accent));
}
.demo-track-timer {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "opsz" 36;
}
.demo-track-timer.is-done {
  color: var(--accent);
}

.quote-demo-btn {
  margin-top: 16px;
  appearance: none;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 200ms ease;
}
.quote-demo-btn:hover {
  background: var(--accent);
}
.quote-demo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.quote-demo-btn:disabled:hover {
  background: var(--ink);
}

/* ═══ CAREER STATS TICKER (before footer) ═══ */
.career-stats {
  margin: 0 0 48px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px 40px;
  text-align: center;
}
.career-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.js .career-stat {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.career-stat.is-in {
  opacity: 1;
  transform: translateY(0);
}
.career-stat-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  color: var(--accent);
  font-variation-settings: "opsz" 72, "SOFT" 50;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.career-stat-label {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ═══ COMPASS — clickable stops ═══ */
.compass-stop { cursor: pointer; }
.compass-stop:hover .compass-dot { r: 7; }

/* ═══ Mobile compass — SVG stays, is scrollable (set in main responsive block) ═══ */
/* The compass-mobile vertical list is no longer needed */
.compass-mobile { display: none; }

/* ═══ Stagger for evo-rows ═══ */
.evo-row:nth-child(1) { transition-delay: 0ms; }
.evo-row:nth-child(2) { transition-delay: 150ms; }
.evo-row:nth-child(3) { transition-delay: 300ms; }
.evo-row:nth-child(4) { transition-delay: 450ms; }

/* ═══ Career stats stagger ═══ */
.career-stat:nth-child(1) { transition-delay: 0ms; }
.career-stat:nth-child(2) { transition-delay: 120ms; }
.career-stat:nth-child(3) { transition-delay: 240ms; }
.career-stat:nth-child(4) { transition-delay: 360ms; }
.career-stat:nth-child(5) { transition-delay: 480ms; }
.career-stat:nth-child(6) { transition-delay: 600ms; }

/* ═══ Fix phase stagger ═══ */
.js .phase {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.phase.is-in {
  opacity: 1;
  transform: translateY(0);
}
.phase:nth-child(2) { transition-delay: 0ms; }
.phase:nth-child(3) { transition-delay: 120ms; }
.phase:nth-child(4) { transition-delay: 240ms; }
.phase:nth-child(5) { transition-delay: 360ms; }
.phase:nth-child(6) { transition-delay: 480ms; }

/* ═══ Mobile responsive for new elements ═══ */
@media (max-width: 540px) {
  .evo-row { grid-template-columns: 100px 1fr; gap: 10px; }
  .evo-label { font-size: 11.5px; }
  .career-stats { gap: 18px 24px; padding: 24px 0; }
  .career-stat-num { font-size: 26px; }
  .quote-demo { padding: 16px 18px; }
  .demo-track { grid-template-columns: 48px 1fr 52px; gap: 8px; }
}


/* ════════════════════════════════════════════════════════════════════════════
   WELCOME MODAL
   ════════════════════════════════════════════════════════════════════════════ */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(46,42,36,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 1; transition: opacity 500ms ease;
}
.welcome-overlay.is-condensing { opacity: 0; }
.welcome-card {
  background: var(--paper); border-radius: 6px; padding: 48px 40px 40px;
  max-width: 420px; width: 100%; text-align: center; position: relative;
  box-shadow: 0 24px 64px -12px rgba(46,42,36,.35);
  transition: transform 600ms cubic-bezier(.22,.61,.36,1), opacity 400ms ease,
              border-radius 400ms ease;
}
.welcome-overlay.is-condensing .welcome-card {
  transform: translate(calc(50vw - 60px), calc(50vh - 60px)) scale(.1);
  opacity: 0; border-radius: 50%;
}
.welcome-accent { width: 48px; height: 2px; background: var(--accent); margin: 0 auto 24px; }
.welcome-name {
  font-family: var(--serif); font-size: clamp(28px,5vw,38px); font-weight: 500;
  letter-spacing: -.015em; font-variation-settings: "opsz" 72,"SOFT" 50; margin-bottom: 6px;
}
.welcome-sub {
  font-family: var(--serif); font-style: italic; font-size: 16px;
  color: var(--ink-soft); font-variation-settings: "opsz" 36,"SOFT" 50; margin-bottom: 16px;
}
.welcome-summary {
  font-family: var(--sans); font-size: 13.5px; line-height: 1.6;
  color: var(--ink-soft); max-width: 34ch; margin: 0 auto 28px; text-align: center;
}
.welcome-actions { display: flex; flex-direction: column; gap: 12px; }
.welcome-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .03em;
  padding: 14px 24px; border-radius: 3px; border: none; cursor: pointer;
  transition: all 200ms ease; text-decoration: none;
}
.welcome-btn-primary  { background: var(--ink);  color: var(--paper); }
.welcome-btn-primary:hover  { background: var(--accent); color: var(--paper); }
.welcome-btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--hairline); }
.welcome-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ════════════════════════════════════════════════════════════════════════════
   PDF FAB
   ════════════════════════════════════════════════════════════════════════════ */
.pdf-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2px;
  box-shadow: 0 4px 16px rgba(46,42,36,.3);
  opacity: 0; transform: translateY(16px) scale(.9);
  transition: all 300ms ease; pointer-events: none; text-decoration: none;
}
.pdf-fab.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.pdf-fab:hover {
  background: var(--accent); color: var(--paper);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(138,106,53,.35);
}
.pdf-fab-label { font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }

/* ════════════════════════════════════════════════════════════════════════════
   MOBILE HORIZONTAL TIMELINE RAIL
   Slides in from top after compass scrolls out. 5 stops, horizontal.
   ════════════════════════════════════════════════════════════════════════════ */
.mob-rail {
  display: none; /* desktop: hidden */
}
@media (max-width: 880px) {
  .mob-rail {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 70;
    padding: 10px 20px 9px;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline-soft);
    align-items: center;
    gap: 0;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 350ms ease, transform 350ms cubic-bezier(.22,.61,.36,1);
    pointer-events: none;
  }
  .mob-rail.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Track line running between dots */
  .mob-rail-track {
    position: absolute;
    left: 20px; right: 20px;
    top: 50%;
    height: 1px;
    background: var(--hairline-soft);
    transform: translateY(-50%);
    z-index: 0;
  }
  .mob-rail-fill {
    position: absolute;
    left: 0; top: 0; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    border-radius: 1px;
    transition: width 400ms cubic-bezier(.22,.61,.36,1);
  }
  /* Each stop: flex column, dot + label */
  .mob-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid var(--ink-soft);
    transition: all 250ms ease;
    flex-shrink: 0;
  }
  .mob-stop.is-passed .mob-dot {
    background: var(--accent);
    border-color: var(--accent);
  }
  .mob-stop.is-active .mob-dot {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
    animation: mob-pulse 2s ease-in-out infinite;
  }
  .mob-stop.is-current .mob-dot {
    background: var(--accent-warm);
    border-color: var(--accent-warm);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-warm) 14%, transparent);
  }
  @keyframes mob-pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
    50%       { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 8%, transparent); }
  }
  .mob-label {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink-soft);
    white-space: nowrap;
    transition: color 200ms ease;
    line-height: 1;
  }
  .mob-stop.is-active .mob-label,
  .mob-stop.is-passed .mob-label { color: var(--accent); }
  .mob-stop.is-current .mob-label { color: var(--accent-warm); }
}