/* ============================================
   MBA Portfolio: Stylesheet
   Design: clean, editorial, consulting-grade
   ============================================ */

:root {
  --navy: #111214;
  --navy-light: #202226;
  --gold: #8687FA;
  --gold-light: #DCDCFF;
  --gold-dark: #5A5BD6;
  --teal: #00A876;
  --teal-light: #BFFAE6;
  --teal-dark: #00805A;
  --wine: #FE5694;
  --wine-light: #FFD3E3;
  --wine-dark: #D63D74;
  --cream: #F5F6F8;
  --paper: #FFFFFF;
  --recess: #EEF1F5;
  --ink: #101114;
  --ink-soft: #5B5D66;
  --line: #E4E6EC;
  --on-accent: #101114;
  --on-pastel: #101114;
  --on-dark: #FFFFFF;
  --shadow: 0 16px 32px -18px rgba(16, 17, 20, 0.22);
  --shadow-lg: 0 24px 48px -20px rgba(16, 17, 20, 0.28);
  --shadow-btn: 3px 3px 0 rgba(16, 17, 20, 0.95);
  --shadow-btn-lg: 5px 5px 0 rgba(16, 17, 20, 0.95);
  --radius: 14px;
  --max-width: 1120px;
  --font-display: 'Poppins', 'Inter', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --track-accent: var(--gold);
  --track-accent-light: var(--gold-light);
  --track-accent-dark: var(--gold-dark);
  --track-accent-soft: rgba(134, 135, 250, 0.12);
  /* aliases: decorative dots across the pages reference these names */
  --periwinkle: var(--gold);
  --mint: var(--teal);
  --pink: var(--wine);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(43,42,56,0.05) 1px, transparent 0) 0 0/26px 26px,
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Progress bar ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ===== Scroll nudge (site-wide; injected by script.js on any page with
   more content below the fold, fades out once the person starts scrolling) ===== */
.scroll-nudge {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(6px);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 16px 11px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.scroll-nudge.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.scroll-nudge:not(.is-visible) { pointer-events: none; }
.scroll-nudge.is-visible:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}
.scroll-nudge:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}
.scroll-nudge-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform: rotate(45deg);
  animation: scroll-nudge-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-nudge-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-nudge-arrow { animation: none; }
}
@media (max-width: 560px) {
  .scroll-nudge { bottom: 14px; padding: 7px 14px 9px; font-size: 0.62rem; }
}

/* ===== Header / Nav (floating split pill) ===== */
.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  width: calc(100% - 36px);
  max-width: 1120px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 60px;
  padding: 0 10px 0 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled .nav { border-color: rgba(134, 135, 250, 0.35); }

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-cluster-right { justify-content: flex-end; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.005em;
  padding: 0 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand-dot { color: var(--gold); }
.brand-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.brand:hover .brand-icon { color: var(--gold-dark); }

.nav-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: rgba(20,22,30,0.05); }
.nav-link.is-current { color: var(--on-pastel); background: var(--gold-light); }
.nav-link.is-current:hover { background: var(--gold-light); }

.nav-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Cross-page transitions (progressive enhancement) ===== */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: page-out 0.22s ease-in forwards;
}
::view-transition-new(root) {
  animation: page-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes page-out {
  to { opacity: 0; transform: translateY(-10px); }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Decorative floating accents ===== */
.deco-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: deco-float 7s ease-in-out infinite;
  z-index: 0;
}
@keyframes deco-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
  .deco-dot { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ===== Section title swipe-in accent ===== */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title:before {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 4px;
  height: 14px;
  background: var(--teal-light);
  opacity: 1;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
.section-title.is-swiped:before { transform: scaleX(1); }

/* ===== Hero entrance stagger ===== */
.hero-copy > * {
  opacity: 0;
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.41s; }
.hero-visual { animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; opacity: 0; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sub-page headers (first section on every non-home page) get the same rise-in */
#top .section-kicker,
#top .section-title,
#top .section-hint {
  opacity: 0;
  animation: hero-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#top .section-kicker { animation-delay: 0.05s; }
#top .section-title { animation-delay: 0.12s; }
#top .section-hint { animation-delay: 0.19s; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual,
  #top .section-kicker,
  #top .section-title,
  #top .section-hint { animation: none; opacity: 1; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 .highlight { color: var(--gold-dark); }

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid var(--ink);
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: var(--ink);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-btn-lg); }
.btn-primary:active { transform: translate(0, 0); box-shadow: none; }
.btn-ghost {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-btn);
}
.btn-ghost:hover { background: var(--gold-light); transform: translate(-2px, -2px); box-shadow: var(--shadow-btn-lg); }
.btn-ghost:active { transform: translate(0, 0); box-shadow: none; }

.hero-meta {
  display: flex;
  gap: 40px;
}
.hero-meta > div { display: flex; flex-direction: column; }
.meta-num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-dark);
}
.meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-visual { position: relative; display: flex; justify-content: center; z-index: 1; padding: 14px 0 22px 22px; }

.hero-visual:before {
  content: '';
  position: absolute;
  inset: 22px 0 0 0;
  max-width: 320px;
  aspect-ratio: 4/5;
  margin: 0 auto;
  transform: translate(16px, 16px);
  background: linear-gradient(135deg, var(--teal-light), var(--gold-light) 65%, var(--wine-light));
  border-radius: 26px;
  z-index: 0;
}

.portrait-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/5;
  position: relative;
  z-index: 1;
  background: var(--navy);
  border-radius: 22px;
  overflow: hidden;
  border: 7px solid var(--paper);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-visual:hover .portrait-frame { transform: translate(-4px, -4px); }
.portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ===== Home: route grid ===== */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.route-grid > .route-card:last-child:nth-child(3n+1) { grid-column: 2 / 3; }
.route-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.route-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow); }
.route-card-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 14px;
}
.route-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.route-card p { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 18px; }
.route-card-arrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.route-card:hover .route-card-arrow { color: var(--gold-dark); transform: translateX(4px); }

/* ===== Section shared ===== */
.section { padding: 100px 0; position: relative; overflow: hidden; }
.section-alt { background: var(--paper); }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-kicker:before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.section-hint {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 36px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  margin-top: 36px;
  align-items: start;
}
.about-text p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 8px 0 4px;
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.about-card {
  background: var(--navy);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: 32px;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--gold-light);
}
.fact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(250,248,244,0.12);
}
.fact-list li:last-child { border-bottom: none; }
.fact-list strong {
  color: rgba(250,248,244,0.5);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fact-list span { text-align: left; font-size: 0.92rem; line-height: 1.4; }

/* ===== Journey story (horizontal, scroll-linked) ===== */
/* Compact the whole section so a story beat card is fully visible on one
   screen instead of running past the bottom of the viewport. */
.story-section { padding: 54px 0 70px; }
.story-section .section-kicker { margin-bottom: 8px; }
.story-section .section-title { font-size: clamp(1.5rem, 2.8vw, 2.15rem); margin-bottom: 8px; }
.story-section .section-hint { margin-bottom: 16px; }

.story-h { margin-top: 18px; }
.story-h-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.story-h-info {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.story-h-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.story-h-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.story-h-sub {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.story-h-road {
  position: relative;
  height: 60px;
  margin: 18px 0;
}
.story-h-road-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--line);
  border-radius: 2px;
}
.story-h-road-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  width: 0%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--wine));
  border-radius: 2px;
  transition: width 0.12s linear;
}
.story-h-stops { position: absolute; inset: 0; }
.story-h-stop {
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
  z-index: 2;
  transition: all 0.2s ease;
}
.story-h-stop:hover { border-color: var(--ink); transform: translate(-50%, -50%) scale(1.12); }
.story-h-stop.is-passed { background: var(--accent); border-color: var(--accent); color: #fff; }
.story-h-stop.is-active {
  width: 32px;
  height: 32px;
  border-color: var(--ink);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
  transform: translate(-50%, -50%) scale(1.05);
}
.story-h-sprite {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 108px;
  height: auto;
  transform: translate(-50%, -84%) rotate(-1.5deg);
  filter: drop-shadow(0 10px 14px rgba(16, 17, 20, 0.3));
  transition: left 0.12s linear;
  animation: story-ride-bounce 1.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes story-ride-bounce {
  0%, 100% { transform: translate(-50%, -84%) rotate(-1.5deg); }
  50% { transform: translate(-50%, -92%) rotate(1.5deg); }
}

.story-h-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 10px 10px 24px;
  margin: 0 -10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.story-h-track::-webkit-scrollbar { height: 6px; }
.story-h-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.story-beat {
  position: relative;
  flex: 0 0 340px;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.story-beat.is-active {
  border-color: var(--accent);
  border-top-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px) scale(1.02);
}
.story-beat-num {
  position: absolute;
  top: -4px;
  right: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--cream);
  z-index: 0;
  pointer-events: none;
}
.story-beat-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent);
  box-shadow: 0 6px 14px -6px rgba(16, 17, 20, 0.35);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.story-beat-tag {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.story-beat-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.story-beat-text {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.86rem;
}
.story-beat-quote {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--ink);
  font-size: 0.82rem;
}
.story-beat-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.story-beat-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.story-beat-final { background: var(--ink); border-color: var(--ink); border-top-color: var(--accent); }
.story-beat-final.is-active { border-color: var(--accent); }
.story-beat-final .story-beat-tag { color: var(--wine-light); }
.story-beat-final .story-beat-title { color: #fff; }
.story-beat-final .story-beat-text { color: rgba(255, 255, 255, 0.72); }
.story-beat-final .story-beat-num { color: rgba(255, 255, 255, 0.06); }
.story-signpost span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.story-beat-tagline {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--wine-light);
}

.story-h-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.story-h-arrow:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-btn); }

@media (max-width: 900px) {
  .story-beat { flex-basis: 280px; }
  .story-beat-num { font-size: 2.9rem; }
}

@media (max-width: 560px) {
  .story-section { padding: 40px 0 56px; }
  .story-beat { flex-basis: 258px; padding: 18px 16px 16px; }
  .story-h-title { font-size: 1.15rem; }
  .story-h-sprite { width: 80px; }
  .story-h-road { height: 66px; margin: 22px 0; }
  .story-h-stop { width: 22px; height: 22px; font-size: 0.6rem; }
  .story-h-stop.is-active { width: 27px; height: 27px; }
  .story-h-top { gap: 8px; }
  .story-h-arrow { width: 34px; height: 34px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .story-h-sprite { animation: none; }
}

/* ===== Tabs / Tracks ===== */
.tab-buttons {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: none;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}
.tab-btn:after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.tab-btn.active { color: var(--ink); }
.tab-btn.active:after { transform: scaleX(1); }
.tab-btn:hover { color: var(--ink); }

.tab-panel { display: none; animation: fadeUp 0.4s ease; }
.tab-panel.active { display: block; }

/* Per-track accent scoping: Product Management (gold, default),
   Consulting (teal), General Management (wine) */
.tab-panel[data-color="teal"] {
  --track-accent: var(--teal);
  --track-accent-light: var(--teal-light);
  --track-accent-dark: var(--teal-dark);
  --track-accent-soft: rgba(0, 168, 118, 0.1);
}
.tab-panel[data-color="wine"] {
  --track-accent: var(--wine);
  --track-accent-light: var(--wine-light);
  --track-accent-dark: var(--wine-dark);
  --track-accent-soft: rgba(254, 86, 148, 0.1);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Sub-focus chip nav (Product Management only) */
.subtrack-chips--nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.subtrack-chip-btn {
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.subtrack-chip-btn:hover {
  border-color: var(--track-accent);
  color: var(--ink);
}
.subtrack-chip-btn.active {
  background: var(--track-accent);
  border-color: var(--track-accent);
  color: var(--on-accent);
}

/* Track card */
.track-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.track-card-top {
  position: relative;
  padding: 36px 40px 28px;
  background: linear-gradient(150deg, var(--track-accent-soft), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.track-card-top:before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--track-accent), var(--track-accent-light));
}
.transfer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--track-accent-soft);
  color: var(--track-accent-dark);
  border: 1px solid var(--track-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.track-card-top h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.track-pitch-text {
  color: var(--ink-soft);
  max-width: 76ch;
  font-size: 1rem;
}

.track-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.track-skillset {
  padding: 32px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.skillset-block h4 {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--track-accent-dark);
  margin-bottom: 12px;
}
.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.subtrack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-skill {
  background: var(--track-accent-soft);
  color: var(--ink);
  border: 1px solid var(--track-accent);
}
.chip-tool {
  background: var(--navy);
  color: var(--on-dark);
  border: 1px solid var(--navy);
  letter-spacing: 0.02em;
}

.btn-sm { padding: 11px 22px; font-size: 0.85rem; }
.resume-download-btn { align-self: flex-start; }

.track-evidence {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.evidence-card h4 {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--track-accent-dark);
  margin-bottom: 14px;
}
.evidence-card ul li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 7px 0;
  padding-left: 20px;
  position: relative;
}
.evidence-card ul li:before {
  content: '›';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--track-accent);
  font-weight: 700;
  font-size: 1.1em;
}
.evidence-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* ===== Skills Snapshot (all-track skills panorama) ===== */
.skill-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.skill-category-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
  --track-accent: var(--gold);
  --track-accent-light: var(--gold-light);
  --track-accent-dark: var(--gold-dark);
  --track-accent-soft: rgba(134, 135, 250, 0.12);
}
.skill-category-card:before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--track-accent), var(--track-accent-light));
}
.skill-category-card[data-color="teal"] {
  --track-accent: var(--teal);
  --track-accent-light: var(--teal-light);
  --track-accent-dark: var(--teal-dark);
  --track-accent-soft: rgba(0, 168, 118, 0.1);
}
.skill-category-card[data-color="wine"] {
  --track-accent: var(--wine);
  --track-accent-light: var(--wine-light);
  --track-accent-dark: var(--wine-dark);
  --track-accent-soft: rgba(254, 86, 148, 0.1);
}
.skill-category-card h4 {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--track-accent-dark);
  margin-bottom: 16px;
}
.skill-category-card .subtrack-chips { gap: 8px; }

/* ===== Role summaries ===== */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 36px 0 60px;
}
.role-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.role-company {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.role-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-summary {
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 18px 0 20px;
}
.role-scale {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.role-scale strong { color: var(--ink); }
.subsection-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 4px;
}

/* ===== Achievements (flip cards) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.achieve-card {
  perspective: 1200px;
  height: 220px;
  cursor: pointer;
  outline: none;
}
.achieve-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0.15, 0.2, 1);
  transform-style: preserve-3d;
}
.achieve-card.is-flipped .achieve-card-inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .achieve-card:not(.is-flipped):hover .achieve-card-inner { transform: rotateY(180deg); }
}
.achieve-card:focus-visible .achieve-card-inner { outline: 2px solid var(--gold); outline-offset: 4px; }

.achieve-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  border-top: 5px solid var(--cat, var(--gold));
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.achieve-front {
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-btn);
}
.achieve-card:hover .achieve-front, .achieve-card.is-flipped .achieve-front { transform: translate(-2px, -2px); box-shadow: var(--shadow-btn-lg); }
.achieve-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cat, var(--gold-light));
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
.achieve-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cat, var(--gold-light));
  border: 2px solid var(--ink);
  margin-bottom: 14px;
}
.achieve-front h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.achieve-sub { font-size: 0.82rem; color: var(--ink-soft); font-weight: 500; }
.achieve-back {
  background: var(--navy);
  color: rgba(250,248,244,0.88);
  transform: rotateY(180deg);
  border-color: var(--navy);
  box-shadow: var(--shadow-btn);
}
.achieve-back p { font-size: 0.96rem; line-height: 1.55; }

.section-next-link {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  background: var(--recess);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-style 0.2s ease, background 0.2s ease;
}
.section-next-link:hover { transform: translateY(-3px); border-style: solid; background: var(--teal-light); }
.section-next-text { font-size: 0.96rem; color: var(--ink); }
.section-next-text strong { font-family: var(--font-display); }
.section-next-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-weight: 700;
  animation: bounceDown 1.8s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (max-width: 600px) {
  .section-next-link { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ===== Hobbies ===== */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.hobby-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hobby-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hobby-photo-placeholder {
  aspect-ratio: 1 / 1;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  background: var(--cream);
}
.hobby-photo-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.hobby-card:hover .hobby-photo-placeholder img { transform: scale(1.05); }
.hobby-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin: 20px 24px 8px;
}
.hobby-card p { color: var(--ink-soft); font-size: 0.86rem; margin: 0 24px 22px; }

/* ===== Projects ===== */
.project-spotlight {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px 40px;
  margin-top: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.project-spotlight:before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}
.project-spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.project-spotlight-header h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
  margin: 8px 0 6px;
}
.project-subtitle { color: var(--ink-soft); font-size: 1rem; max-width: 50ch; }
.project-spotlight-links { display: flex; gap: 12px; flex-wrap: wrap; }

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-blurb {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 80ch;
  margin-bottom: 8px;
}

/* ---- Prototype cards (secondary projects) ---- */
.prototype-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.prototype-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --track-accent: var(--teal);
  --track-accent-light: var(--teal-light);
}
.prototype-card:before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--track-accent), var(--track-accent-light));
}
.prototype-card[data-color="gold"] { --track-accent: var(--gold); --track-accent-light: var(--gold-light); }
.prototype-card[data-color="wine"] { --track-accent: var(--wine); --track-accent-light: var(--wine-light); }
.prototype-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
  margin: 6px 0 8px;
}
.prototype-subtitle { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 18px; }
.prototype-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.prototype-blurb { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 4px; }

/* ---- Projects jump bar (scales to any number of prototype cards) ---- */
.page-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.page-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px 10px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.page-jump-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); }
.page-jump-num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.page-jump-link.is-current .page-jump-num { background: var(--teal); color: #fff; }
.page-jump-text { display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.page-jump-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.page-jump-arrow { margin-left: auto; padding-left: 8px; font-weight: 700; color: var(--gold-dark); }
.prototype-more { display: flex; margin: 28px auto 0; }
.prototype-card[hidden] { display: none; }
.project-spotlight, .prototype-card, #prototypes { scroll-margin-top: 90px; }

/* ---- Frameworks & visualizations (ISB Hangout) ---- */
.frameworks-block {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.frameworks-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.frameworks-intro {
  color: var(--ink-soft);
  font-size: 0.94rem;
  max-width: 70ch;
  margin-bottom: 22px;
}
/* ---- Framework stepper ---- */
.framework-stepper {
  display: grid;
  grid-template-columns: 250px 1fr;
  border: 1px solid var(--line);
  background: var(--recess);
  margin-bottom: 8px;
}
.framework-steps {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.framework-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  padding: 18px 20px;
  cursor: pointer;
  font: inherit;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.framework-step + .framework-step { border-top: 1px solid var(--line); }
.framework-step-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: inherit;
  flex-shrink: 0;
}
.framework-step-name { font-size: 0.92rem; font-weight: 600; }
.framework-step:hover { color: var(--ink); }
.framework-step.is-active {
  color: var(--ink);
  background: var(--paper);
  border-left-color: var(--teal);
}
.framework-step.is-active .framework-step-num { color: var(--teal); }

.framework-panels { position: relative; padding: 34px 38px; }
.framework-panel { display: none; }
.framework-panel.is-active { display: block; animation: fadeUp 0.35s ease; }
.framework-panel p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 66ch;
}
.framework-panel h5 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 8px 0 12px;
}
.framework-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(0,168,118,0.16);
  padding: 5px 10px;
  border-radius: 999px;
}

.viz-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.viz-footnote {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 12px;
}

/* ---- Activation funnel (data readout) ---- */
.funnel { margin: 26px 0 4px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 440px; }
.funnel-stage {
  display: grid;
  grid-template-columns: 84px 1fr 96px;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.funnel-bar-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.funnel-track { background: var(--line); height: 8px; border-radius: 4px; overflow: hidden; }
.funnel-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal));
  transition: width 0.6s ease;
}
.funnel-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

/* ---- Reach & Impact stat tiles (live product metrics) ---- */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 28px;
  margin: 28px 0 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.impact-stats > div { display: flex; flex-direction: column; }

/* ---- Build-Measure-Learn loop (circular SVG diagram) ---- */
.loop-viz {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 30px auto 10px;
  aspect-ratio: 1;
}
.loop-ring { width: 100%; height: 100%; display: block; }
.loop-ring-track { fill: none; stroke: var(--line); stroke-width: 10; }
.loop-arc {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 153.36 336.73;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.25s ease, stroke-width 0.25s ease;
}
.loop-arc-build { stroke: var(--gold); stroke-dashoffset: 0; }
.loop-arc-measure { stroke: var(--teal); stroke-dashoffset: -163.36; }
.loop-arc-learn { stroke: var(--wine); stroke-dashoffset: -326.73; }
.loop-arc.is-active { opacity: 1; stroke-width: 12; }

.loop-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 26%;
  pointer-events: none;
}
.loop-center-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.loop-center-desc { font-size: 0.74rem; color: var(--ink-soft); line-height: 1.35; }

.loop-point {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.loop-point:hover { transform: scale(1.06); }
.loop-point-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.loop-point-name { font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.loop-point.is-active .loop-point-name { color: var(--ink); }
.loop-point-build { top: 4%; right: 0; }
.loop-point-build .loop-point-dot { background: var(--gold); }
.loop-point-build.is-active { border-color: var(--gold); }
.loop-point-measure { bottom: 0; left: 50%; transform: translateX(-50%); }
.loop-point-measure .loop-point-dot { background: var(--teal); }
.loop-point-measure.is-active { border-color: var(--teal); }
.loop-point-learn { top: 4%; left: 0; }
.loop-point-learn .loop-point-dot { background: var(--wine); }
.loop-point-learn.is-active { border-color: var(--wine); }

.case-study-toggle, .read-more-toggle, .evidence-toggle {
  background: var(--recess);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  transition: all 0.2s ease;
}
.case-study-toggle:hover { border-color: var(--teal); color: var(--teal-dark); background: rgba(0,168,118,0.14); }
.read-more-toggle:hover { border-color: var(--gold); color: var(--gold-dark); background: rgba(134,135,250,0.14); }
.evidence-toggle { margin-top: 0; margin-bottom: 14px; padding: 10px 18px; font-size: 0.8rem; }
.evidence-toggle:hover { border-color: var(--track-accent); color: var(--track-accent-dark); background: var(--track-accent-soft); }

.about-more {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.about-more p { color: var(--ink-soft); margin-bottom: 16px; font-size: 0.98rem; }
.about-more p:last-child { margin-bottom: 0; }
.toggle-arrow { transition: transform 0.2s ease; }

.case-study-full {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 80ch;
}
.case-study-full h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: 22px 0 8px;
}
.case-study-full h4:first-child { margin-top: 0; }
.case-study-full p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 4px; }
.case-study-full code {
  background: var(--recess);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.85em;
}

/* ===== Résumé (single featured) ===== */
.resume-feature {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.resume-feature:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.resume-preview {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resume-preview img { display: block; width: 100%; height: auto; }
.resume-preview:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-btn-lg); }
.resume-preview-hint {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.resume-preview:hover .resume-preview-hint,
.resume-preview:focus-visible .resume-preview-hint { opacity: 1; }
.resume-feature-body h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 6px 0 12px;
  color: var(--ink);
}
.resume-feature-summary { color: var(--ink-soft); line-height: 1.7; margin: 0 0 22px; max-width: 56ch; }
.resume-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.resume-highlights li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink);
}
.resume-highlight-key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
}
.resume-feature-actions { display: flex; flex-wrap: wrap; gap: 14px; }

code {
  background: var(--recess);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85em;
}

/* ===== Contact ===== */
body.contact-page { display: flex; flex-direction: column; min-height: 100vh; }
body.contact-page .site-footer { flex-shrink: 0; }
.contact-section { background: var(--navy); color: var(--on-dark); flex: 1 0 auto; display: grid; align-items: center; padding: 64px 0; }
.contact-section > .container { width: 100%; max-width: 1320px; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
  align-items: center;
}
.contact-section .section-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.contact-section .section-kicker { color: var(--gold-light); }
.contact-section .section-title { color: var(--on-dark); }
.contact-section .section-hint { color: rgba(250,248,244,0.65); margin-bottom: 0; font-size: 1.05rem; }

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.contact-links > .contact-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.contact-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 22px;
  background: rgba(250,248,244,0.04);
  border: 2px solid rgba(250,248,244,0.2);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.contact-item:hover {
  transform: translate(-3px, -3px);
  border-color: var(--cat, var(--gold));
  background: rgba(250,248,244,0.07);
  box-shadow: 7px 7px 0 rgba(0,0,0,0.3);
}
.contact-item-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 10px;
  background: var(--cat, var(--gold-light));
}
.contact-item-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-item-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(250,248,244,0.35);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.contact-item:hover .contact-item-arrow { color: var(--on-dark); transform: translate(2px, -2px); }
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(250,248,244,0.5);
  flex-shrink: 0;
}
.contact-value {
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .contact-links { grid-template-columns: 1fr; }
}

/* ===== Footer ===== */
.site-footer { background: var(--navy); border-top: 1px solid rgba(250,248,244,0.1); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  color: rgba(250,248,244,0.5);
  font-size: 0.82rem;
}
.back-to-top { color: rgba(250,248,244,0.7); font-weight: 500; }
.back-to-top:hover { color: var(--gold-light); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, .role-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto 34px; }
  .cards-grid, .hobbies-grid, .route-grid { grid-template-columns: repeat(2, 1fr); }
  .resume-feature { gap: 32px; padding: 28px; }
  .project-spotlight { padding: 28px; }
  .track-layout { grid-template-columns: 1fr; }
  .track-skillset { border-right: none; border-bottom: 1px solid var(--line); }
  .track-card-top, .track-skillset, .track-evidence { padding-left: 24px; padding-right: 24px; }
  .framework-stepper { grid-template-columns: 1fr; }
  .framework-steps { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .framework-step { flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .framework-step + .framework-step { border-top: none; border-left: 1px solid var(--line); }
  .framework-step.is-active { border-left-color: transparent; border-bottom-color: var(--teal); }
  .framework-panels { padding: 28px 24px; }
}

@media (max-width: 940px) {
  .nav-cluster { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile {
    position: fixed;
    top: 90px; right: 18px;
    width: 78%;
    max-width: 300px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 2px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: var(--shadow-lg);
    z-index: 899;
  }
  .nav-mobile.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-mobile a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
  }
  .nav-mobile a.is-current { color: var(--gold-dark); background: var(--recess); }
  .nav-mobile a:hover { color: var(--ink); background: var(--recess); }
}

@media (max-width: 720px) {
  .hero { padding: 130px 0 70px; }
  .hero-meta { gap: 26px; flex-wrap: wrap; }
  .impact-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; max-width: none; }
  .prototype-grid { grid-template-columns: 1fr; }
  .page-jump-link { flex: 1 1 100%; }
  .cards-grid, .hobbies-grid, .route-grid { grid-template-columns: 1fr; }
  .resume-feature { grid-template-columns: 1fr; padding: 22px; gap: 26px; }
  .resume-preview { max-width: 320px; margin: 0 auto; width: 100%; }
  .resume-highlights li { grid-template-columns: 1fr; gap: 2px; }
  .resume-feature-body h3 { font-size: 1.6rem; }
  .section { padding: 70px 0; }
  .tab-buttons { gap: 4px; }
  .tab-btn { padding: 10px 14px; font-size: 0.85rem; }
  .project-spotlight-links { width: 100%; }
  .project-spotlight-links .btn { flex: 1; justify-content: center; }
  .footer-grid { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .brand { font-size: 0.92rem; padding: 0 8px; gap: 5px; }
  .brand-icon { width: 14px; height: 14px; }
  .hero-meta { gap: 20px 28px; }
}
