/* ==========================================================================
   ASHISH KHARBANDA · AI SECURITY RESEARCHER · APPLIED AI ENGINEER
   Apple Studio White × High-Clarity Interactive Hardware Monograph
   Zero AI Blue · Zero Heavy Left Boxes · Progressive Interactive Disclosure
   ========================================================================== */

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plex400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plex500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-hover: #ebebef;
  --bg-stage: #f7f7f9;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);

  /* Grounded industrial accents (ZERO AI blue) */
  --gold: #9a7228;
  --gold-soft: rgba(154, 114, 40, 0.10);
  --gold-line: rgba(154, 114, 40, 0.30);
  --emerald: #1d7a52;
  --emerald-soft: rgba(29, 122, 82, 0.10);
  --crimson: #c9372c;
  --crimson-soft: rgba(201, 55, 44, 0.10);

  --f-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(20px, 3.8vw, 52px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}

body.is-stage-focus {
  overflow: hidden;
  overscroll-behavior: none;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* ==========================================================================
   APPLE FROSTED STICKY NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand__name {
  font-family: var(--f-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.brand__loc {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}

.site-nav__links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.site-nav__links a.is-current {
  color: var(--ink);
  background: var(--bg-soft);
  font-weight: 600;
}

.site-nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-email-btn__short {
  display: none;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.status-bar-mark {
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--emerald);
}

/* ==========================================================================
   APPLE BUTTON SYSTEM (MONOCHROME CARBON + SOFT GALLERY PILLS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--bg-soft);
  border-color: rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn--primary:hover {
  background: #333336;
  border-color: #333336;
  color: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.28);
}

.btn--ghost {
  background: var(--bg-soft);
  border-color: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--bg-hover);
  border-color: transparent;
}

.btn--sm {
  padding: 7px 15px;
  min-height: 34px;
  font-size: 0.78rem;
}

/* ==========================================================================
   CONTINUOUS 8-ACT APPLE STUDIO SPLIT: BOXLESS LEFT RAIL + PERSISTENT 3D STAGE
   ========================================================================== */
.world-section {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.world-shell {
  width: min(1440px, calc(100% - var(--gutter) * 1.6));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(380px, 41%) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 68px);
  align-items: start;
}

.narrative-rail {
  position: relative;
  z-index: 2;
  padding-bottom: 12vh;
}

/* Pure Boxless Apple Keynote Chapters floating cleanly on white */
.chapter {
  min-height: 112svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6.5vh, 80px) 0;
  opacity: 0.24;
  transition: opacity 0.45s var(--ease);
}

.chapter:first-child {
  min-height: calc(100svh - 60px);
  padding-top: clamp(24px, 4vh, 48px);
}

.chapter.is-active {
  opacity: 1;
}

/* Subtle hair-thin editorial kicker */
.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.chapter-kicker__bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-3);
  transition: width 0.35s var(--ease), background 0.35s;
}

.chapter.is-active .chapter-kicker__bar {
  width: 28px;
  background: var(--gold);
}
.chapter.is-active .chapter-kicker__bar--emerald { background: var(--emerald); }
.chapter.is-active .chapter-kicker__bar--crimson { background: var(--crimson); }

/* Hero Apple Keynote Title */
.hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(3.1rem, 5.4vw, 4.9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.042em;
  color: var(--ink);
}

.hero__title .hero__surname {
  display: block;
  color: var(--ink-3);
}

.hero__role {
  margin: 16px 0 0;
  font-family: var(--f-display);
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__thesis {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.18vw, 1.12rem);
  line-height: 1.56;
  letter-spacing: -0.012em;
  color: var(--ink-3);
}

.hero__thesis strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-spiral-drawer {
  margin-top: 18px;
}

/* Borderless Floating Hero Stat Strip (ZERO boxes!) */
.hero-metrics-strip {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.stat-naked {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-naked__val {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.036em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-naked__val--gold { color: var(--gold); }
.stat-naked__val--emerald { color: var(--emerald); }
.stat-naked__val--crimson { color: var(--crimson); }

.stat-naked__label {
  font-size: 0.78rem;
  line-height: 1.38;
  color: var(--ink-3);
}

.hero__footnote {
  margin: 24px 0 0;
  font-size: 0.82rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.hero__footnote a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s, color 0.2s;
}
.hero__footnote a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Mobile-only native Retina "Journey So Far" path (hidden on desktop where full 9-step 3D path is large) */
.mobile-journey {
  display: none;
}

.scroll-cue {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.scroll-cue__line {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* ==========================================================================
   BOXLESS CHAPTER TYPOGRAPHY (APPLE TWO-TONE STATEMENT + NAKED METRICS)
   ========================================================================== */
.chapter-headline {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 3.2vw, 2.95rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.036em;
  color: var(--ink);
}

.chapter-headline .muted {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--ink-3);
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.chapter-lead {
  margin: 18px 0 0;
  max-width: 44ch;
  font-size: clamp(1rem, 1.12vw, 1.08rem);
  line-height: 1.56;
  letter-spacing: -0.01em;
  color: var(--ink-3);
}

.chapter-lead strong {
  color: var(--ink);
  font-weight: 600;
}

/* Crisp borderless 3-point keynote list (no boxes, pure Apple clarity) */
.key-points {
  margin: 22px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.key-points li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 0.96rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-3);
}

.key-points__num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
}

.key-points strong {
  color: var(--ink);
  font-weight: 600;
}

/* Clean borderless inline chapter figures */
.chapter-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cmetric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cmetric__v {
  font-family: var(--f-display);
  font-size: clamp(1.38rem, 1.8vw, 1.68rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cmetric__k {
  font-size: 0.74rem;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}

/* ==========================================================================
   CREATIVE INTERACTIVE `+` EXPANDABLE KEYWORD CAPSULES (3D-COUPLED!)
   Inspired by Apple's interactive "Take a closer look" feature pills
   ========================================================================== */
.exp-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.exp-item {
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.exp-item:hover {
  background: var(--bg-hover);
}

.exp-item.is-open {
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.12);
}

.exp-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 14px 18px;
  border: none;
  background: transparent;
  text-align: left;
  border-radius: 18px;
}

.exp-trigger__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}

.exp-trigger__title {
  font-family: var(--f-display);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.exp-trigger__kw {
  font-family: var(--f-mono);
  font-size: 0.69rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.exp-item.is-open .exp-trigger__kw {
  color: var(--gold);
}

/* Iconic Apple circular `+` icon that rotates cleanly into `×` */
.exp-plus {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background 0.28s var(--ease), border-color 0.28s, transform 0.34s var(--ease);
}

.exp-plus::before,
.exp-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  border-radius: 1px;
  transition: background 0.25s;
}

.exp-plus::before {
  width: 11px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}

.exp-plus::after {
  width: 1.6px;
  height: 11px;
  transform: translate(-50%, -50%);
}

.exp-item.is-open .exp-plus {
  background: var(--ink);
  border-color: var(--ink);
  transform: rotate(45deg);
}

.exp-item.is-open .exp-plus::before,
.exp-item.is-open .exp-plus::after {
  background: #ffffff;
}

/* Silky Grid Accordion Reveal */
.exp-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease);
}

.exp-item.is-open .exp-panel {
  grid-template-rows: 1fr;
}

.exp-panel__wrap {
  overflow: hidden;
}

.exp-panel__body {
  padding: 0 18px 18px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.exp-panel__body p {
  margin: 0 0 10px;
}

.exp-panel__body p:last-child {
  margin-bottom: 0;
}

.exp-panel__body strong {
  color: var(--ink);
  font-weight: 600;
}

.exp-sync-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exp-sync-note--emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.exp-sync-note--crimson {
  background: var(--crimson-soft);
  color: var(--crimson);
}

.exp-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.exp-bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 0.88rem;
  line-height: 1.56;
  color: var(--ink-2);
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1.5px;
  background: var(--gold);
}

/* Inline minimal keywords / tags inside expanded panels */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

/* Clean editorial text links beneath chapter */
.chapter-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.link-arrow:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.link-note {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}

/* ==========================================================================
   STICKY APPLE STUDIO WHITE 3D VIEWPORT & DOCKED TIMELINE SCRUBBER
   ========================================================================== */
.world-sticky {
  position: sticky;
  top: 60px;
  height: calc(100svh - 60px);
  padding: 16px 0 18px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}

/* Apple Segmented 8-Act Horizontal Scrubber Docked Above 3D Stage */
.timeline-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 10px;
  padding: 4px 5px 7px;
  border-radius: 14px;
  background: var(--bg-soft);
}

.timeline-track {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
  overflow: hidden;
  border-radius: 2px;
}

.timeline-fill {
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0.06);
}

.timeline-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 5px 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: var(--f-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.timeline-btn:hover {
  color: var(--ink);
}

.timeline-btn.is-active {
  color: var(--ink);
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.timeline-btn__num {
  font-family: var(--f-mono);
  font-size: 0.56rem;
  opacity: 0.65;
}

/* Seamless Apple White Studio Canvas Container */
.world-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg-stage);
  overflow: hidden;
}

#world-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
#world-canvas.is-dragging { cursor: grabbing; }

/* Frosted Light Glass HUD Overlays */
.stage-hud-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 5;
}

.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

#hud-plate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-tag__bar {
  flex: none;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.stage-hint {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.stage-hud-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 6;
  pointer-events: none;
}

/* Apple Segmented Control Pill for Live 3D Modes */
.stage-modes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.10);
  pointer-events: auto;
}

.stage-modes.is-empty {
  display: none;
}

.hud-pill {
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--f-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.hud-pill:hover {
  color: var(--ink);
}

.hud-pill.is-active {
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

.stage-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  pointer-events: auto;
}

.hud-icon-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 2px 10px -4px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, transform 0.2s;
}

.hud-icon-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

/* Focus 3D Full-Viewport White Gallery Lightbox */
.world-section.is-focus .world-sticky {
  position: fixed;
  inset: 0;
  height: 100svh;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(14px, 3vw, 32px) calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 90;
}

.world-section.is-focus #world-canvas {
  touch-action: none;
}

/* ==========================================================================
   LOWER EDITORIAL SECTIONS (ALTERNATING PURE WHITE & #F5F5F7 APPLE BANDS)
   ========================================================================== */
.section {
  padding: clamp(72px, 10vh, 118px) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 68px;
}

.section--tint {
  background: var(--bg-soft);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(36px, 5vh, 54px);
}

.sec-num {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.sec-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.036em;
  color: var(--ink);
}

.sec-desc {
  margin: 0;
  max-width: 44ch;
  font-size: 0.98rem;
  line-height: 1.56;
  color: var(--ink-3);
}

.sec-head__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* ==========================================================================
   02 · PUBLISHED WRITING (APPLE BENTO CARDS)
   ========================================================================== */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.paper-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.paper-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -22px rgba(0, 0, 0, 0.12);
}

.paper-card__kind {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.paper-card__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.22rem, 1.7vw, 1.52rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.024em;
  color: var(--ink);
}

.paper-card__takeaway {
  margin: 12px 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-3);
}

.paper-card__takeaway strong {
  color: var(--ink);
  font-weight: 600;
}

.paper-card__thumb {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.paper-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.paper-card .exp-item {
  margin-top: 16px;
  background: var(--bg-soft);
}

.paper-card .exp-item.is-open {
  background: var(--bg-soft);
  border-color: var(--line-strong);
  box-shadow: none;
}

/* ==========================================================================
   03 · CAREER RECORD (CLEAN EXPANDABLE APPLE HAIRLINE ROWS)
   ========================================================================== */
.record-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.record-item {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: background 0.2s;
}

.record-item:hover {
  background: rgba(0, 0, 0, 0.015);
}

.record-item.is-open {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.record-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(220px, 1fr) minmax(0, 1.45fr) auto;
  gap: 16px 28px;
  align-items: center;
  padding: 24px 8px;
  border: none;
  background: transparent;
  text-align: left;
}

.record-row__dates {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.record-row__loc {
  font-size: 0.69rem;
  color: var(--ink-3);
}

.record-row__role {
  margin: 0;
  font-family: var(--f-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.record-row__org {
  margin: 3px 0 0;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.record-row__brief {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.record-row__brief strong {
  color: var(--ink);
  font-weight: 600;
}

.record-panel__inner {
  padding: 0 8px 28px;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 2.45fr);
  gap: 28px;
}

.record-panel__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 2px;
}

.record-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--ink-2);
}

.record-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 1.5px;
  background: var(--gold);
}

.record-bullets strong {
  color: var(--ink);
  font-weight: 600;
}

/* Technical Specifications Grid & Education Cards */
.specs-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.spec-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--bg-soft);
}

.spec-card__head {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.spec-card__body {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.62;
  color: var(--ink-2);
}

.edu-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.edu-card {
  padding: 26px;
  border-radius: 22px;
  background: var(--bg-soft);
}

.edu-card__tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.edu-card h3 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.edu-card h3 a:hover {
  color: var(--gold);
}

.edu-card p {
  margin: 0 0 10px;
  font-size: 0.89rem;
  line-height: 1.58;
  color: var(--ink-2);
}

.edu-card p:last-child { margin-bottom: 0; }
.edu-card strong { color: var(--ink); font-weight: 600; }
.edu-card a { border-bottom: 1px solid var(--line-strong); }
.edu-card a:hover { color: var(--gold); border-color: var(--gold); }

/* ==========================================================================
   04 · EDITORIAL PORTRAIT & DIRECT CONTACT
   ========================================================================== */
.contact-spread {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.portrait-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.portrait-card figcaption {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  background: #ffffff;
}

.contact-panel__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.036em;
  color: var(--ink);
  max-width: 22ch;
}

.contact-panel__copy {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.contact-panel__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}

.contact-panel__channels a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  font-size: 0.78rem;
  color: var(--ink-3);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 500;
}
.site-footer a:hover { color: var(--gold); }

/* ==========================================================================
   SUBTLE SCROLL REVEAL
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET, SMARTPHONE & TOUCH OPTIMIZATION)
   ========================================================================== */
@media (hover: none) {
  .btn:hover,
  .hud-icon-btn:hover,
  .paper-card:hover {
    transform: none;
    box-shadow: none;
  }
  .exp-item:hover {
    background: var(--bg-soft);
  }
  .exp-item.is-open:hover {
    background: #ffffff;
  }
  .record-item:hover,
  .record-item.is-open:hover {
    background: transparent;
  }
}

@media (max-width: 1080px) {
  :root {
    --mobile-header-h: 60px;
    --mobile-stage-h: clamp(290px, 42svh, 410px);
  }

  .world-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .world-sticky,
  .narrative-rail {
    min-width: 0;
    max-width: 100%;
  }

  .world-sticky {
    order: -1;
    top: calc(var(--mobile-header-h) + env(safe-area-inset-top, 0px));
    height: var(--mobile-stage-h);
    padding: 8px 0 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 90%, rgba(255, 255, 255, 0) 100%);
    z-index: 25;
  }

  /* Compact horizontally scrollable 8-act pill scrubber on mobile & tablet */
  .timeline-rail {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 4px;
    margin-bottom: 7px;
    border-radius: 12px;
  }
  .timeline-rail::-webkit-scrollbar { display: none; }
  .timeline-track { display: none; }

  .timeline-btn {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 5px;
    padding: 5px 10px;
    min-height: 28px;
    border-radius: 9px;
    font-size: 0.72rem;
    scroll-snap-align: center;
  }

  .timeline-btn__num {
    font-size: 0.62rem;
  }

  .narrative-rail {
    padding-bottom: 44px;
  }

  .chapter {
    min-height: 54svh;
    opacity: 1;
    padding: 26px 0 32px;
    scroll-margin-top: calc(var(--mobile-header-h) + var(--mobile-stage-h) + env(safe-area-inset-top, 0px) + 14px);
  }

  .chapter + .chapter {
    border-top: 1px solid var(--line);
  }

  .chapter:first-child {
    min-height: auto;
    padding-top: 16px;
  }

  .world-section.is-focus .world-sticky {
    inset: 0;
    height: 100svh;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
  }

  .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .papers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu-grid { grid-template-columns: minmax(0, 1fr); }

  .record-trigger {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    padding: 20px 0;
  }
  .record-row__dates {
    grid-column: 1 / 2;
    grid-row: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }
  .record-trigger > div:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2;
  }
  .record-trigger .exp-plus {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: center;
  }
  .record-row__brief {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 4px;
  }
  .record-panel__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 0 0 22px;
  }
}

@media (max-width: 820px) {
  :root {
    --mobile-header-h: 52px;
  }

  .site-nav {
    min-height: 52px;
    gap: 8px;
  }
  .site-nav__links {
    gap: 2px;
  }
  .site-nav__links a {
    padding: 7px 10px;
    min-height: 36px;
    font-size: 0.8rem;
  }
  .status-chip { display: none; }

  .section {
    scroll-margin-top: 56px;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .sec-head__actions { align-items: flex-start; }
  .papers-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .portrait-card { max-width: 240px; }
  .stage-hint { display: none; }
}

@media (max-width: 680px) {
  .nav-email-btn__full { display: none; }
  .nav-email-btn__short { display: inline; }
  .nav-email-btn {
    padding: 6px 12px;
    min-height: 34px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  /* Crisp native Retina "Journey So Far" stepped path on mobile phones */
  .mobile-journey {
    display: block;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .mobile-journey__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  .mobile-journey__kicker {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
  }

  .mobile-journey__hint {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    color: var(--ink-3);
  }

  .mobile-journey__list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
    border-left: 1.5px solid var(--line-strong);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-journey__list li {
    position: relative;
  }

  .mobile-journey__list li::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c4c5cc;
    border: 1.5px solid #ffffff;
  }

  .mobile-journey__list li:last-child::before {
    background: var(--emerald);
    width: 7px;
    height: 7px;
    left: -18.5px;
  }

  .mj-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    text-align: left;
    min-height: 46px;
  }

  .mj-row--static {
    background: var(--bg-soft);
    border-color: transparent;
  }

  .mj-row--now {
    border-color: rgba(29, 122, 82, 0.28);
    background: rgba(29, 122, 82, 0.04);
  }

  .mj-step {
    flex: none;
    width: 28px;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-3);
  }

  .mj-step--now {
    color: var(--emerald);
  }

  .mj-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .mj-copy strong {
    font-family: var(--f-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    line-height: 1.2;
  }

  .mj-copy span {
    font-size: 0.78rem;
    color: var(--ink-2);
    line-height: 1.3;
  }

  .mj-badge {
    flex: none;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line-strong);
    font-family: var(--f-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
  }

  .mj-badge--now {
    background: var(--emerald-soft);
    border-color: transparent;
    color: var(--emerald);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --radius-lg: 20px;
    --mobile-stage-h: clamp(276px, 41svh, 355px);
  }

  .world-shell {
    width: calc(100% - 24px);
  }

  .world-sticky {
    padding: 6px 0 8px;
  }

  .timeline-rail {
    margin-bottom: 6px;
    padding: 3px;
  }

  .timeline-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
  }

  .timeline-btn__num {
    font-size: 0.64rem;
  }

  .stage-hud-top {
    top: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }

  .stage-tag {
    padding: 5px 11px;
    font-size: 0.66rem;
    font-weight: 600;
    gap: 6px;
    letter-spacing: 0.04em;
  }

  .stage-hud-bottom {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 6px;
  }

  .stage-modes {
    padding: 3px;
    gap: 2px;
    max-width: calc(100% - 96px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .stage-modes::-webkit-scrollbar { display: none; }

  .hud-pill {
    padding: 5px 10px;
    min-height: 30px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .stage-tools {
    gap: 4px;
    flex: none;
  }

  .hud-icon-btn {
    padding: 5px 10px;
    min-height: 32px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .chapter {
    padding: 22px 0 28px;
  }

  .chapter-kicker {
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  .hero__title {
    font-size: clamp(2.45rem, 10.8vw, 3.1rem);
    line-height: 1.0;
  }

  .hero__role {
    font-size: 1.04rem;
    margin-top: 12px;
  }

  .hero__thesis {
    font-size: 0.98rem;
    margin-top: 12px;
  }

  .hero__actions {
    margin-top: 20px;
    gap: 8px;
  }

  .hero__actions .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .hero-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin-top: 20px;
    padding-top: 16px;
  }

  .stat-naked__val {
    font-size: clamp(1.5rem, 6.4vw, 1.85rem);
  }

  .stat-naked__label {
    font-size: 0.78rem;
  }

  .hero__footnote {
    margin-top: 18px;
    font-size: 0.8rem;
    gap: 4px 8px;
    overflow-wrap: anywhere;
  }

  .chapter-headline {
    font-size: clamp(1.75rem, 7.2vw, 2.15rem);
  }

  .chapter-headline .muted {
    font-size: clamp(1.05rem, 4.2vw, 1.28rem);
  }

  .chapter-lead {
    font-size: 0.95rem;
    margin-top: 14px;
  }

  .key-points {
    margin-top: 18px;
    padding-top: 16px;
    gap: 11px;
  }

  .key-points li {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    font-size: 0.91rem;
  }

  .chapter-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .cmetric__v {
    font-size: clamp(1.04rem, 4.3vw, 1.32rem);
  }

  .cmetric__k {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .exp-stack {
    margin-top: 18px;
    gap: 8px;
  }

  .exp-item {
    border-radius: 15px;
  }

  .exp-trigger {
    padding: 13px 13px 13px 15px;
    gap: 10px;
    min-height: 52px;
    border-radius: 15px;
  }

  .exp-trigger__title {
    font-size: 0.92rem;
  }

  .exp-trigger__kw {
    font-size: 0.66rem;
  }

  .exp-panel__body {
    padding: 0 15px 15px;
    font-size: 0.88rem;
  }

  .chapter-links {
    gap: 10px 16px;
    margin-top: 16px;
  }

  .link-arrow {
    padding: 4px 0 3px;
  }

  .section {
    padding: 52px 0;
  }

  .sec-head {
    margin-bottom: 28px;
  }

  .sec-title {
    font-size: clamp(1.75rem, 7.2vw, 2.2rem);
  }

  .sec-desc {
    font-size: 0.92rem;
  }

  .paper-card {
    padding: 20px;
    border-radius: 20px;
    gap: 16px;
  }

  .specs-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 34px;
    gap: 12px;
  }

  .spec-card,
  .edu-card {
    padding: 20px;
    border-radius: 18px;
  }

  .record-row__role {
    font-size: 1.04rem;
  }

  .record-row__brief,
  .record-bullets li {
    font-size: 0.89rem;
  }

  .contact-panel__title {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
  }

  .contact-panel__copy {
    font-size: 0.95rem;
  }

  .contact-panel__actions {
    margin-top: 20px;
    gap: 8px;
  }

  .contact-panel__actions .btn {
    max-width: 100%;
    font-size: 0.82rem;
    padding: 10px 16px;
  }

  .contact-panel__channels {
    gap: 10px 18px;
    margin-top: 20px;
    padding-top: 16px;
  }

  .contact-panel__channels a {
    padding: 4px 0;
  }
}

@media (max-width: 400px) {
  .site-nav__links a {
    padding: 6px 7px;
    font-size: 0.75rem;
  }
  .nav-email-btn {
    padding: 5px 10px;
    font-size: 0.73rem;
  }
  .stage-tag {
    font-size: 0.57rem;
    padding: 4px 8px;
  }
  .contact-panel__actions .btn--primary {
    font-size: 0.77rem;
    padding: 10px 13px;
  }
}

@media (max-width: 330px) {
  .hero-metrics-strip { grid-template-columns: 1fr; }
  .chapter-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Landscape mobile phones (short viewport height) */
@media (max-width: 1080px) and (max-height: 520px) {
  :root {
    --mobile-stage-h: clamp(195px, 50svh, 240px);
  }
  .timeline-rail {
    margin-bottom: 4px;
    padding: 2px 3px;
  }
  .chapter {
    min-height: 70svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapter { opacity: 1; transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .exp-panel { transition: none; }
}
