:root {
  --ink: #090b10;
  --ink-soft: #10141c;
  --paper: #f3f1ea;
  --paper-dim: #c8c8c3;
  --line: rgba(255, 255, 255, 0.13);
  --lime: #baf568;
  --violet: #a58bfa;
  --cyan: #74d8ef;
  --plum: #2e142e;
  --wine: #7a284c;
  --gold: #f3ca78;
  --orange: #f08457;
  --sans: "Roboto", system-ui, sans-serif;
  --display: "Roboto Condensed", "Roboto", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "Roboto Mono", ui-monospace, monospace;
  --header: 84px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --radius: 1.4rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; background: var(--ink); overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}
h1, h2, h3, .brand { font-family: var(--display); }
body.music-world { background: #170d18; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: var(--ink); }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: -5rem;
  padding: .8rem 1rem;
  background: var(--lime);
  color: var(--ink);
  border-radius: .5rem;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 2;
  width: 28rem;
  height: 28rem;
  margin: -14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165,139,250,.08), transparent 66%);
  transform: translate3d(var(--x, 50vw), var(--y, 50vh), 0);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, height .3s;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(9,11,16,.82);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.music-world .site-header.scrolled { background: rgba(23,13,24,.84); }
.resume-world:not(.menu-open) .site-header:not(.scrolled) { color: #15181e; }
.resume-world:not(.menu-open) .site-header:not(.scrolled) .brand-mark,
.resume-world:not(.menu-open) .site-header:not(.scrolled) .menu-toggle { border-color: rgba(20,23,29,.3); }
.resume-world:not(.menu-open) .site-header:not(.scrolled) .site-nav a { color: rgba(20,23,29,.68); }
.resume-world:not(.menu-open) .site-header:not(.scrolled) .menu-toggle i,
.resume-world:not(.menu-open) .site-header:not(.scrolled) .menu-toggle i::after { background: #15181e; }
.brand { display: flex; align-items: center; gap: .75rem; width: fit-content; }
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  font: 500 .68rem var(--mono);
  letter-spacing: .08em;
  transition: background .3s, color .3s, transform .3s;
}
.brand:hover .brand-mark { background: var(--lime); color: var(--ink); transform: rotate(-8deg); }
.music-world .brand:hover .brand-mark { background: var(--gold); }
.brand-name { font-size: .69rem; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.4rem); }
.site-nav a {
  position: relative;
  color: rgba(255,255,255,.67);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color .25s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.55rem;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: white; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header-action {
  justify-self: end;
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  transition: background .25s, color .25s, border-color .25s;
}
.header-action-short { display: none; }
.header-action:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.music-world .header-action { border-color: rgba(243,202,120,.6); color: var(--gold); }
.music-world .header-action:hover { background: var(--gold); color: var(--plum); }
.menu-toggle { display: none; }

main { position: relative; z-index: 3; min-height: 100vh; }
.page { overflow: clip; }
.section {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
}
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr); gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.section-head { max-width: 54rem; margin-bottom: clamp(2.7rem, 6vw, 5rem); }
.section-head h2, .display {
  margin: .6rem 0 1.2rem;
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.075em;
}
.section-head h2 em, .display em { color: var(--violet); font-family: var(--serif); font-weight: 600; }
.music-section .section-head h2 em, .music-world .section-head h2 em { color: var(--gold); }
.section-head p, .lead {
  max-width: 42rem;
  color: var(--paper-dim);
  font-size: clamp(1.04rem, 1.7vw, 1.35rem);
  line-height: 1.7;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--lime);
  font: 500 .68rem var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: currentColor; }
.music-world .eyebrow, .music-section .eyebrow { color: var(--gold); }
.micro-label { font: 400 .65rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.46); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2rem; }
.button {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: .8rem 1.25rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: white;
  background: transparent;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.button span { transition: transform .25s; }
.button:hover { transform: translateY(-2px); border-color: white; }
.button:hover span { transform: translateX(3px); }
.button.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.button.primary:hover { background: white; border-color: white; }
.button.violet { background: var(--violet); border-color: var(--violet); color: var(--ink); }
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--plum); }
.button.ghost { border-color: transparent; padding-inline: .4rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
  font-size: .86rem;
  font-weight: 600;
}
.text-link span { transition: transform .25s; }
.text-link:hover span { transform: translate(3px,-3px); }
.muted { color: rgba(255,255,255,.52); }
.dark-button { color: #111; border-color: #777; }
.long-copy { line-height: 1.8; }
.dark-copy { color: #5f5d59; }
.centered { justify-content: center; }
.centered-note { margin-inline: auto; }
.layered-content { position: relative; z-index: 2; }

/* Home */
.home-hero {
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: calc(var(--header) + 4rem) var(--gutter) clamp(3rem, 6vw, 5.5rem);
  background:
    radial-gradient(circle at 78% 25%, rgba(165,139,250,.16), transparent 27%),
    radial-gradient(circle at 15% 65%, rgba(116,216,239,.08), transparent 30%),
    var(--ink);
}
.hero-kicker { display: flex; justify-content: flex-start; align-items: center; gap: clamp(1.2rem, 3vw, 3rem); max-width: 43rem; margin-bottom: 1.5rem; }
.hero-kicker .status { display: flex; align-items: center; gap: .55rem; font: .67rem var(--mono); color: rgba(255,255,255,.56); text-transform: uppercase; letter-spacing: .08em; }
.status-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 .28rem rgba(186,245,104,.11); }
.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 11ch;
  font-size: clamp(4rem, 11.5vw, 11rem);
  font-weight: 700;
  line-height: .77;
  letter-spacing: -.085em;
}
.hero-title.name-title {
  max-width: 9ch;
  font-family: var(--display);
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 800;
  line-height: .72;
  letter-spacing: -.085em;
}
.hero-title.name-title .outline { -webkit-text-stroke-color: rgba(255,255,255,.72); }
.hero-title .outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.64); }
.hero-title .serif { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--violet); }
.hero-title .indent { display: inline-block; margin-left: 13vw; }
.hero-orbit {
  position: absolute;
  top: 15vh;
  right: 1.5vw;
  width: min(35vw, 33rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  animation: orbit 30s linear infinite;
}
.hero-orbit::before, .hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(165,139,250,.22);
}
.hero-orbit::before { inset: 12%; }
.hero-orbit::after { inset: 31%; background: rgba(165,139,250,.05); }
.orbit-core {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: var(--violet);
  background: rgba(9,11,16,.76);
  box-shadow: 0 0 4rem rgba(165,139,250,.2);
  transform: translate(-50%,-50%);
  animation: counterOrbit 30s linear infinite;
}
.mind-anchor {
  padding: 0;
  font: inherit;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: opacity .2s, border-color .2s, box-shadow .2s;
}
.mind-anchor:hover, .mind-anchor:focus-visible {
  border-color: var(--violet);
  box-shadow: 0 0 5rem rgba(165,139,250,.34);
  outline: 0;
}
.mind-anchor:active { cursor: grabbing; }
.mind-anchor.mind-away {
  border-style: dashed;
  background: rgba(9,11,16,.2);
  box-shadow: none;
  opacity: .35;
  pointer-events: none;
}
.mind-drag-label {
  position: absolute;
  left: 50%;
  bottom: -1.3rem;
  color: rgba(255,255,255,.48);
  font: 500 .52rem var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}
.mind-projectile {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(165,139,250,.75);
  border-radius: 50%;
  color: var(--violet);
  background: rgba(9,11,16,.92);
  box-shadow: 0 0 0 .4rem rgba(165,139,250,.07), 0 1rem 3rem rgba(0,0,0,.4);
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform;
}
.mind-projectile.is-dragging {
  border-color: var(--lime);
  color: var(--lime);
  cursor: grabbing;
  box-shadow: 0 0 0 .6rem rgba(186,245,104,.08), 0 1.3rem 4rem rgba(0,0,0,.45);
}
.mind-projectile.is-flying svg { animation: mindSpin .85s linear infinite; }
.mind-projectile.is-settling {
  border-color: var(--violet);
  box-shadow: 0 0 0 .5rem rgba(165,139,250,.08), 0 1rem 3rem rgba(0,0,0,.34);
  pointer-events: none;
}
.mind-projectile.is-settling svg { animation: mindSettleSpin 1.4s var(--ease) both; }
.mind-projectile:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.orbit-icon {
  --orbit-radius: clamp(8rem, 15vw, 15.2rem);
  --orbit-angle: calc(360deg / var(--orbit-count) * var(--orbit-index));
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  margin: -1.425rem;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: .85rem;
  color: white;
  background: rgba(13,16,23,.86);
  box-shadow: 0 .8rem 2rem rgba(0,0,0,.25);
  transform: rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(var(--orbit-angle) * -1));
}
.orbit-icon svg { animation: counterOrbit 30s linear infinite; }
.orbit-lime { color: var(--lime); }
.orbit-cyan { color: var(--cyan); }
.orbit-violet { color: var(--violet); }
.orbit-gold { color: var(--gold); }
.orbit-orange { color: var(--orange); }
.hero-bottom {
  display: block;
  width: min(29rem, 42vw);
  margin-top: 2.2rem;
}
.hero-bottom .hero-intro {
  max-width: 28rem;
  padding: .2rem 0 .2rem 1.25rem;
  border-left: 2px solid rgba(165,139,250,.7);
}
.hero-bottom .scroll-cue { display: none; }
.scroll-line { height: 1px; width: 4rem; background: rgba(255,255,255,.35); overflow: hidden; }
.scroll-line::after { content: ""; display: block; height: 100%; width: 50%; background: var(--lime); animation: scan 2s ease-in-out infinite; }
.hero-intro p { margin: 0; color: rgba(255,255,255,.68); font-size: clamp(.92rem, 1.1vw, 1.04rem); line-height: 1.65; }
.world-entries {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 2.2rem;
  max-width: 78rem;
}
.world-entry {
  min-height: 7rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(13,16,23,.76);
  backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.world-entry:hover { transform: translateY(-4px); background: rgba(20,24,32,.94); }
.engineering-entry:hover { border-color: rgba(186,245,104,.6); }
.music-entry:hover { border-color: rgba(243,202,120,.6); }
.world-entry-icon { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .8rem; }
.engineering-entry .world-entry-icon { color: var(--lime); }
.music-entry .world-entry-icon { color: var(--gold); }
.world-entry span:not(.world-entry-icon) { display: flex; flex-direction: column; gap: .2rem; }
.world-entry small { color: rgba(255,255,255,.4); font: .58rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.world-entry strong { font: 700 1.2rem var(--display); }
.world-entry em { color: rgba(255,255,255,.52); font-size: .7rem; font-style: normal; }
.world-entry > svg { color: rgba(255,255,255,.45); transition: transform .3s; }
.world-entry:hover > svg { transform: translateX(4px); color: white; }

.manifesto-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: #0c0f15;
}
.manifesto-strip > div { min-height: 10rem; padding: 1.5rem var(--gutter); border-right: 1px solid var(--line); }
.manifesto-strip > div:last-child { border: 0; }
.manifesto-strip strong { display: block; margin-bottom: 2.5rem; font: 400 1.5rem var(--mono); color: var(--lime); }
.manifesto-strip strong { display: flex; align-items: center; justify-content: space-between; }
.manifesto-strip strong small { color: rgba(255,255,255,.25); font: .6rem var(--mono); }
.manifesto-strip span { display: flex; flex-direction: column; gap: .35rem; color: rgba(255,255,255,.72); font: 600 .77rem var(--display); text-transform: uppercase; letter-spacing: .08em; line-height: 1.5; }
.manifesto-strip span small { color: rgba(255,255,255,.35); font: .58rem var(--mono); }

.mind-section {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #0d1118;
  background-size: 48px 48px;
}
.mind-domain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .55rem; }
.mind-domain {
  position: relative;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: rgba(255,255,255,.025);
  transition: transform .25s, background .25s, border-color .25s;
}
.mind-domain:hover { transform: translateY(-3px); background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.28); }
.mind-domain > span { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border: 1px solid currentColor; border-radius: .7rem; }
.mind-domain strong { max-width: 9rem; font: 600 .8rem var(--display); }
.mind-domain small { position: absolute; right: .8rem; top: .8rem; color: rgba(255,255,255,.2); font: .55rem var(--mono); }
.domain-lime { color: var(--lime); }
.domain-cyan { color: var(--cyan); }
.domain-violet { color: var(--violet); }
.domain-gold { color: var(--gold); }
.domain-orange { color: var(--orange); }
.mind-domain strong { color: var(--paper); }

.engineering-section { background: #e7e7e1; color: #10131a; }
.engineering-section .eyebrow { color: #416700; }
.engineering-section .section-head p { color: #5d626a; }
.engineering-section .section-head h2 em { color: #614db3; }
.code-stage {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: #10141b;
  color: white;
  box-shadow: 0 2rem 5rem rgba(16,19,26,.18);
}
.code-stage-bar { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); font: .63rem var(--mono); color: rgba(255,255,255,.48); }
.code-stage-dots { display: flex; gap: .4rem; }
.code-stage-dots i { width: .45rem; height: .45rem; border-radius: 50%; background: rgba(255,255,255,.25); }
.code-copy { padding: clamp(2rem, 5vw, 4.5rem); font: clamp(.72rem, 1vw, .88rem)/2 var(--mono); color: #c8cad0; }
.code-copy .num { display: inline-block; width: 2.5rem; color: #535b68; user-select: none; }
.code-copy .key { color: var(--violet); }
.code-copy .string { color: var(--lime); }
.code-copy .comment { color: #697386; }
.code-badge {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 8rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(186,245,104,.45);
  border-radius: 50%;
  color: var(--lime);
  font: .67rem/1.4 var(--mono);
  text-align: center;
  transform: rotate(8deg);
}
.skill-cloud { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2.5rem; }
.skill-cloud span { padding: .65rem .8rem; border: 1px solid rgba(16,19,26,.18); border-radius: 999px; font: .65rem var(--mono); }

.music-section {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(122,40,76,.5), transparent 30%),
    linear-gradient(145deg, #211022, #3a1734 55%, #17101d);
}
.piano-visual {
  position: relative;
  height: clamp(24rem, 55vw, 48rem);
  border-radius: var(--radius);
  overflow: hidden;
  background: #130b14;
  border: 1px solid rgba(243,202,120,.2);
}
.piano-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  transform: scale(1.025);
  animation: pianoPortrait 16s ease-in-out infinite alternate;
  will-change: transform;
}
.piano-glow { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,17,38,.06), rgba(18,8,21,.82)); }
.piano-visual blockquote {
  position: absolute;
  z-index: 4;
  left: clamp(1.5rem, 5vw, 4rem);
  bottom: clamp(2rem, 7vw, 5rem);
  max-width: 10ch;
  margin: 0;
  font: italic 600 clamp(2.2rem, 6vw, 5.5rem)/.98 var(--serif);
  color: var(--gold);
}
@keyframes pianoPortrait {
  from { transform: scale(1.025) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(-.7%, -.5%, 0); }
}
.music-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 1px; background: rgba(243,202,120,.18); }
.music-facts div { padding: 2rem; background: #241226; }
.music-facts strong { display: block; color: var(--gold); font-size: clamp(1.5rem, 3vw, 3rem); letter-spacing: -.05em; }
.music-facts strong { display: flex; align-items: center; gap: .8rem; }
.music-facts span { color: rgba(255,255,255,.55); font: .66rem/1.5 var(--mono); text-transform: uppercase; }

.lab-section { background: #101b1d; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.project-card {
  position: relative;
  min-height: 25rem;
  grid-column: span 6;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  transition: transform .35s var(--ease), background .35s;
}
.project-card:first-child { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); }
.project-card .project-index { display: flex; align-items: center; gap: .55rem; font: .65rem var(--mono); color: var(--lime); }
.project-card h3 { margin: 8rem 0 .7rem; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.06em; }
.project-card p { max-width: 28rem; color: rgba(255,255,255,.56); line-height: 1.7; }
.project-card .project-ring { position: absolute; right: -8rem; top: -9rem; width: 22rem; aspect-ratio: 1; border: 1px solid rgba(186,245,104,.2); border-radius: 50%; box-shadow: inset 0 0 0 3rem rgba(186,245,104,.02), inset 0 0 0 6rem rgba(186,245,104,.02); }
.project-card:nth-child(2) .project-ring { border-color: rgba(116,216,239,.3); }

.life-section { background: #d9d5ca; color: #11141a; }
.life-section .eyebrow { color: #623e00; }
.life-section .section-head p { color: #5b5c5c; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgba(17,20,26,.2); }
.principle { min-height: 23rem; padding: 2rem 1.5rem; border-right: 1px solid rgba(17,20,26,.2); display: flex; flex-direction: column; justify-content: space-between; }
.principle:last-child { border: 0; }
.principle i { display: flex; align-items: center; justify-content: space-between; font: italic 600 4rem var(--serif); color: #7a5a25; }
.principle i small { color: rgba(17,20,26,.26); font: .65rem var(--mono); }
.principle h3 { margin: 0 0 .8rem; font-size: 1.35rem; }
.principle p { margin: 0; color: #666560; font-size: .86rem; line-height: 1.65; }

/* Route heroes */
.route-hero {
  min-height: 82svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header) + 5rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.route-hero.engineering {
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(116,216,239,.12), transparent 25%),
    var(--ink);
  background-size: 64px 64px, 64px 64px, auto, auto;
}
.route-hero.music {
  background:
    radial-gradient(circle at 77% 23%, rgba(243,202,120,.17), transparent 24%),
    radial-gradient(circle at 22% 60%, rgba(122,40,76,.6), transparent 35%),
    #170d18;
}
.route-hero-content { position: relative; z-index: 2; max-width: 78rem; }
.route-hero h1 { margin: .8rem 0 1.6rem; max-width: 12ch; font-size: clamp(3.8rem, 9.5vw, 9.5rem); line-height: .85; letter-spacing: -.08em; }
.route-hero h1 em { font-family: var(--serif); font-weight: 600; color: var(--violet); }
.route-hero.music h1 em { color: var(--gold); }
.route-hero .lead { max-width: 53rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.hero-meta span { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 999px; font: .64rem var(--mono); color: rgba(255,255,255,.68); }
.route-number { position: absolute; right: var(--gutter); bottom: 3rem; color: rgba(255,255,255,.06); font: 300 clamp(7rem, 20vw, 20rem)/.7 var(--mono); }

.stat-row { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.stat { min-height: 11rem; padding: 2rem var(--gutter); border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.8rem; color: var(--lime); font-size: clamp(1.6rem, 3vw, 3rem); letter-spacing: -.05em; }
.stat span { color: rgba(255,255,255,.5); font: .67rem/1.5 var(--mono); text-transform: uppercase; }
.music-world .stat strong { color: var(--gold); }

.experience-list { border-top: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: .4fr 1.1fr 1.4fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.experience-item time { display: flex; align-items: center; gap: .55rem; color: var(--lime); font: .68rem var(--mono); }
.experience-item h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.8rem); }
.experience-item p { margin: 0; color: rgba(255,255,255,.57); line-height: 1.7; }
.career-timeline { max-width: 78rem; margin-left: auto; border-top: 1px solid var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 3.2rem 10rem minmax(0,1fr); gap: 1.5rem; padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.timeline-rail { position: relative; display: flex; justify-content: center; }
.timeline-rail::after { content: ""; position: absolute; z-index: 0; top: 2.9rem; bottom: -2.45rem; width: 1px; background: linear-gradient(var(--lime), rgba(186,245,104,.08)); }
.timeline-item:last-child .timeline-rail::after { display: none; }
.timeline-rail > span { position: relative; z-index: 1; width: 2.65rem; height: 2.65rem; display: grid; place-items: center; border: 1px solid rgba(186,245,104,.38); border-radius: .75rem; background: #10151d; color: var(--lime); box-shadow: 0 0 2rem rgba(186,245,104,.07); }
.timeline-item time { padding-top: .82rem; color: var(--lime); font: 600 .66rem var(--mono); letter-spacing: .08em; }
.timeline-kind { display: block; margin-bottom: .55rem; color: rgba(255,255,255,.4); font: 500 .59rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.timeline-content h3 { margin: 0; font-size: clamp(1.5rem, 2.7vw, 2.5rem); line-height: 1; letter-spacing: -.05em; }
.timeline-content > strong { display: block; margin-top: .55rem; color: var(--violet); font-size: .86rem; }
.timeline-content p { max-width: 58rem; margin: 1rem 0; color: rgba(255,255,255,.62); font-size: .9rem; line-height: 1.7; }
.timeline-content ul { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .55rem 1.2rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.timeline-content li { position: relative; padding-left: .85rem; color: rgba(255,255,255,.77); font-size: .72rem; line-height: 1.55; }
.timeline-content li::before { content: "+"; position: absolute; left: 0; color: var(--lime); font-family: var(--mono); }
.timeline-stack { display: flex; flex-wrap: wrap; gap: .38rem; }
.timeline-stack span { padding: .38rem .52rem; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.5); font: .57rem var(--mono); }
.academic-proof { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 2rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.academic-proof > div { min-height: 9rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.academic-proof strong { color: var(--lime); font-size: clamp(1.8rem, 4vw, 3.5rem); letter-spacing: -.06em; }
.academic-proof span { color: rgba(255,255,255,.5); font: .61rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.case-card { min-height: 27rem; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; background: rgba(255,255,255,.025); }
.case-card .case-type { display: flex; align-items: center; gap: .55rem; color: var(--lime); font: .64rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.case-card h3 { margin: auto 0 .8rem; font-size: clamp(1.65rem, 2.5vw, 2.5rem); line-height: 1; letter-spacing: -.05em; }
.case-card p { margin: 0; color: rgba(255,255,255,.55); font-size: .87rem; line-height: 1.7; }
.case-card .case-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.5rem; }
.case-tags span { padding: .38rem .5rem; border: 1px solid var(--line); border-radius: 999px; font: .58rem var(--mono); color: rgba(255,255,255,.58); }

.beyond { background: #e5e1d9; color: #12151b; }
.beyond .eyebrow { color: #5c3b00; }
.beyond .section-head p { color: #5f5d59; }
.gateway-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .8rem; }
.gateway {
  min-height: 19rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid rgba(18,21,27,.17);
  border-radius: 1rem;
  transition: color .3s, background .3s, transform .3s;
}
.gateway:hover { background: #12151b; color: white; transform: translateY(-4px); }
.gateway span { font: .64rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.gateway h3 { margin: 0; font-size: 1.55rem; letter-spacing: -.04em; }

.service-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: rgba(243,202,120,.15); border: 1px solid rgba(243,202,120,.15); }
.service { min-height: 17rem; padding: 2rem; background: #1b0e1d; }
.service .service-no { display: flex; align-items: center; gap: .55rem; font: .63rem var(--mono); color: var(--gold); }
.service h3 { margin: 4rem 0 .7rem; font-size: clamp(1.5rem,3vw,2.5rem); letter-spacing: -.05em; }
.service p { margin: 0; color: rgba(255,255,255,.52); line-height: 1.7; }
.quote-band { padding: clamp(5rem, 10vw, 10rem) var(--gutter); background: var(--gold); color: var(--plum); }
.quote-band blockquote { max-width: 16ch; margin: 0 auto; text-align: center; font: italic 600 clamp(2.5rem, 7vw, 7rem)/.95 var(--serif); }

.social-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.social-card { min-height: 18rem; padding: 1.7rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s, background .3s; }
.social-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.05); }
.social-card .social-icon { width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: .7rem var(--mono); }
.social-card h3 { margin: auto 0 .5rem; font-size: 1.55rem; }
.social-card p { margin: 0; color: rgba(255,255,255,.52); font-size: .82rem; line-height: 1.6; }
.social-card.unconfigured { opacity: .42; cursor: not-allowed; }
.social-card small { margin-top: .8rem; color: var(--gold); font: .6rem var(--mono); text-transform: uppercase; }

/* Forms */
.form-page { min-height: 100vh; padding: calc(var(--header) + 4rem) var(--gutter) 7rem; background: #170d18; }
.form-page.engineering-form-page { background: var(--ink); }
.form-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; margin-bottom: 4rem; }
.form-intro h1 { margin: .6rem 0 1.2rem; max-width: 10ch; font-size: clamp(3.5rem,8vw,8rem); line-height: .86; letter-spacing: -.075em; }
.form-intro h1 em { color: var(--gold); font-family: var(--serif); }
.engineering-form-page .form-intro h1 em { color: var(--violet); }
.form-intro-copy { align-self: end; max-width: 40rem; color: rgba(255,255,255,.61); line-height: 1.8; }
.booking-form {
  max-width: 76rem;
  margin: 0 auto;
  counter-reset: fieldset;
}
.booking-form fieldset { margin: 0; padding: 3rem 0; border: 0; border-top: 1px solid var(--line); counter-increment: fieldset; }
.booking-form legend { width: 100%; margin-bottom: 2rem; padding: 0; font-size: clamp(1.5rem,3vw,2.3rem); font-weight: 700; letter-spacing: -.04em; }
.booking-form legend::before { content: "0" counter(fieldset) " / "; color: var(--gold); font: .65rem var(--mono); letter-spacing: .1em; }
.engineering-form-page .booking-form legend::before { color: var(--lime); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .55rem; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { color: rgba(255,255,255,.75); font-size: .75rem; font-weight: 600; }
.optional { color: rgba(255,255,255,.35); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3.6rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: .65rem;
  outline: 0;
  background: rgba(255,255,255,.035);
  color: white;
  transition: border .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.06); box-shadow: 0 0 0 3px rgba(243,202,120,.08); }
.engineering-form-page .field input:focus, .engineering-form-page .field select:focus, .engineering-form-page .field textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(186,245,104,.08); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.26); }
.field select { appearance: none; background-image: linear-gradient(45deg,transparent 50%,#aaa 50%),linear-gradient(135deg,#aaa 50%,transparent 50%); background-position: calc(100% - 19px) 50%,calc(100% - 14px) 50%; background-size:5px 5px; background-repeat:no-repeat; }
.field select option { color: #111; }
.choice-group { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; padding: .7rem .9rem; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: rgba(255,255,255,.62); font-size: .72rem; cursor: pointer; transition: all .2s; }
.choice input:checked + label { background: var(--gold); border-color: var(--gold); color: var(--plum); }
.engineering-form-page .choice input:checked + label { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.choice input:focus-visible + label { outline: 2px solid white; outline-offset: 2px; }
.form-note { display: flex; gap: .8rem; max-width: 45rem; margin: 1.5rem 0; color: rgba(255,255,255,.45); font-size: .72rem; line-height: 1.6; }
.form-error { display: none; margin: 1rem 0; padding: 1rem; border: 1px solid rgba(255,100,100,.35); border-radius: .6rem; background: rgba(255,50,50,.08); color: #ffb7b7; font-size: .8rem; }
.form-error.visible { display: block; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; }
.submit-row p { max-width: 36rem; color: rgba(255,255,255,.48); font-size: .72rem; line-height: 1.6; }
.button[disabled] { opacity: .55; cursor: wait; }

.confirmation {
  max-width: 64rem;
  margin: 8vh auto 0;
  text-align: center;
}
.confirmation-mark { width: 6rem; aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 2rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 2rem; animation: confirmIn .7s var(--ease); }
.confirmation h1 { margin: 0 0 1rem; font-size: clamp(3rem, 8vw, 7rem); line-height: .9; letter-spacing: -.07em; }
.confirmation > p { max-width: 40rem; margin: 0 auto; color: rgba(255,255,255,.6); line-height: 1.8; }
.receipt { display: grid; grid-template-columns: repeat(3,1fr); margin: 3rem 0; border-block: 1px solid var(--line); text-align: left; }
.receipt div { padding: 1.5rem; border-right: 1px solid var(--line); }
.receipt div:last-child { border: 0; }
.receipt small { display: block; margin-bottom: .6rem; color: rgba(255,255,255,.4); font: .62rem var(--mono); text-transform: uppercase; }
.receipt strong { color: var(--gold); font-size: .9rem; }
.engineering-confirmation { border-color: var(--lime); color: var(--lime); }
.engineering-receipt strong { color: var(--lime); }

/* Résumé document */
.resume-sheet { min-height: 100vh; padding: calc(var(--header) + 2.5rem) var(--gutter) 6rem; background: #d9dde2; color: #15191f; }
.resume-toolbar { width: min(100%, 210mm); display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 0 auto 1.2rem; padding: .85rem 1rem; border: 1px solid rgba(20,25,31,.14); border-radius: 1rem; background: rgba(255,255,255,.72); box-shadow: 0 .8rem 2.5rem rgba(31,39,48,.08); backdrop-filter: blur(12px); }
.resume-toolbar > div:first-child { display: flex; flex-direction: column; gap: .2rem; }
.resume-toolbar > div:first-child span { font-size: .82rem; font-weight: 800; }
.resume-toolbar small { color: #6d747b; font: .57rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.resume-toolbar .button-row { margin: 0; }
.resume-toolbar .dark-button { border-color: rgba(20,25,31,.28); color: #15191f; }
.resume-document { width: min(100%, 210mm); margin: 0 auto; }
.cv-page { min-height: 297mm; padding: 12mm 13mm; overflow: hidden; background: #fff; box-shadow: 0 1.4rem 4rem rgba(31,39,48,.15); }
.cv-page + .cv-page { margin-top: 2rem; }
.cv-header { display: grid; grid-template-columns: 3.3rem minmax(0,1fr) auto; align-items: start; gap: 1.1rem; }
.cv-monogram { width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: .8rem; background: #17221a; color: #c6ff78; font: 700 .7rem var(--mono); letter-spacing: .12em; }
.cv-name > span { color: #637345; font: 600 .55rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.cv-name h1 { margin: .28rem 0 .3rem; font-size: clamp(2.25rem, 5vw, 3.65rem); line-height: .9; letter-spacing: -.065em; }
.cv-name p { margin: 0; color: #565f68; font-size: .72rem; font-weight: 600; }
.cv-name i { padding-inline: .28rem; color: #82a54c; font-style: normal; }
.cv-contact { display: flex; flex-direction: column; align-items: flex-end; gap: .28rem; padding-top: .15rem; color: #48515a; font: .58rem var(--mono); }
.cv-contact a { color: #2e541e; font-weight: 600; }
.cv-accent-rule { height: 4px; margin: 1.2rem 0 1.35rem; background: #e5e9e4; }
.cv-accent-rule span { display: block; width: 32%; height: 100%; background: linear-gradient(90deg,#a7eb56,#607e3f); }
.cv-summary { display: grid; grid-template-columns: 8.5rem minmax(0,1fr); gap: 1.4rem; padding-bottom: 1.35rem; }
.cv-section-label, .cv-section h2 { color: #637345; font: 700 .57rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.cv-summary p { margin: 0; color: #353d45; font-size: .78rem; line-height: 1.65; }
.cv-layout { display: grid; grid-template-columns: minmax(10rem,.34fr) minmax(0,1fr); gap: 1.8rem; border-top: 1px solid #d9ddd8; padding-top: 1.35rem; }
.cv-sidebar { padding-right: 1.4rem; border-right: 1px solid #d9ddd8; }
.cv-section { margin-bottom: 1.35rem; }
.cv-section h2 { margin: 0 0 .85rem; }
.cv-personal dl { margin: 0; }
.cv-detail { padding: .48rem 0; border-top: 1px solid #e4e6e2; }
.cv-detail dt { margin-bottom: .14rem; color: #8a9094; font: .5rem var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.cv-detail dd { margin: 0; color: #333a40; font-size: .68rem; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.cv-skill-groups > div { margin-bottom: .65rem; }
.cv-skill-groups strong { display: block; margin-bottom: .15rem; color: #20262c; font-size: .66rem; }
.cv-skill-groups p, .cv-compact-copy, .cv-reference-note p { margin: 0; color: #687078; font-size: .61rem; line-height: 1.55; }
.cv-strengths ul { margin: 0; padding: 0; list-style: none; }
.cv-strengths li { position: relative; margin-bottom: .36rem; padding-left: .75rem; color: #4d555c; font-size: .63rem; }
.cv-strengths li::before { content: "+"; position: absolute; left: 0; color: #759847; font-family: var(--mono); }
.cv-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cv-section-heading span { color: #92979b; font: .48rem var(--mono); text-transform: uppercase; }
.cv-role { padding: .82rem 0; border-top: 1px solid #dfe2df; break-inside: avoid; }
.cv-role-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cv-role h3 { margin: 0 0 .18rem; font-size: .9rem; letter-spacing: -.02em; }
.cv-role-heading strong { color: #587334; font-size: .62rem; }
.cv-role time { flex: 0 0 auto; color: #747c82; font: 600 .51rem var(--mono); text-transform: uppercase; }
.cv-role ul { margin: .52rem 0 .58rem; padding-left: .9rem; }
.cv-role li { margin-bottom: .25rem; padding-left: .12rem; color: #555d64; font-size: .61rem; line-height: 1.48; }
.cv-role li::marker { color: #86ac50; }
.cv-tags, .cv-result-list { display: flex; flex-wrap: wrap; gap: .25rem; }
.cv-tags span { padding: .25rem .38rem; border-radius: 999px; background: #edf1ea; color: #526245; font: .47rem var(--mono); }
.cv-continuation { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; padding-bottom: .8rem; border-bottom: 4px solid #a7eb56; }
.cv-continuation span { font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.cv-continuation strong { color: #59636b; font-size: .65rem; }
.cv-continuation small { color: #6a794f; font: .55rem var(--mono); }
.cv-page-grid { display: grid; grid-template-columns: minmax(0,1fr) 13.5rem; gap: 2rem; }
.cv-page-grid > aside { padding-left: 1.5rem; border-left: 1px solid #d9ddd8; }
.cv-education { position: relative; margin-bottom: .8rem; padding: .9rem 1rem; border: 1px solid #dde1dc; border-radius: .65rem; break-inside: avoid; }
.cv-education time { color: #718157; font: 600 .5rem var(--mono); text-transform: uppercase; }
.cv-education h3 { margin: .38rem 0 .12rem; font-size: .95rem; }
.cv-education > strong { color: #587334; font-size: .64rem; }
.cv-education p { margin: .48rem 0; color: #646c73; font-size: .62rem; line-height: 1.5; }
.cv-result-list span { padding: .3rem .4rem; border-radius: .3rem; background: #f0f3ed; color: #4b5d3d; font: .5rem var(--mono); }
.cv-projects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; }
.cv-projects article { min-height: 9rem; display: flex; flex-direction: column; padding: .75rem; border-radius: .6rem; background: #17221a; color: white; break-inside: avoid; }
.cv-projects article > span { color: #baf568; font: .47rem var(--mono); text-transform: uppercase; }
.cv-projects h3 { margin: auto 0 .4rem; font-size: .78rem; }
.cv-projects p { margin: 0; color: rgba(255,255,255,.68); font-size: .52rem; line-height: 1.45; }
.cv-achievements { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.cv-achievements h2 { grid-column: 1 / -1; }
.cv-achievements > div { min-height: 5.8rem; display: flex; flex-direction: column; justify-content: space-between; padding: .7rem; border: 1px solid #dde1dc; border-radius: .55rem; }
.cv-achievements strong { color: #3f5e28; font-size: 1.15rem; letter-spacing: -.05em; }
.cv-achievements span { color: #6b7379; font: .49rem/1.4 var(--mono); text-transform: uppercase; }
.cv-reference-note { margin-top: 1.5rem; padding: .9rem; border-radius: .6rem; background: #edf1ea; }

.lab-hero { min-height: 86vh; display: grid; place-items: center; padding: calc(var(--header) + 3rem) var(--gutter) 4rem; text-align: center; background: radial-gradient(circle at center, #17383b 0, #0c1618 52%, #090b10 100%); }
.lab-hero h1 { margin: .6rem auto 1.5rem; max-width: 10ch; font-size: clamp(4rem,11vw,11rem); line-height: .8; letter-spacing: -.09em; }
.lab-hero h1 em { color: var(--lime); font-family: var(--serif); }
.lab-hero .lead { margin-inline: auto; }
.lab-orb { position: absolute; width: min(62vw, 42rem); aspect-ratio: 1; border: 1px solid rgba(186,245,104,.15); border-radius: 50%; box-shadow: inset 0 0 5rem rgba(116,216,239,.05); animation: breathe 5s ease-in-out infinite; }

/* Footer */
.site-footer { position: relative; z-index: 3; overflow: hidden; padding: clamp(5rem,10vw,9rem) var(--gutter) 2rem; background: #07080c; border-top: 1px solid var(--line); }
.site-footer > div:not(.footer-orbit) { position: relative; z-index: 2; }
.site-footer h2 { margin: .8rem 0 4rem; font-size: clamp(3rem,8vw,8rem); line-height: .88; letter-spacing: -.075em; }
.site-footer h2 em { color: var(--violet); font-family: var(--serif); }
.music-world .site-footer h2 em { color: var(--gold); }
.footer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; max-width: 56rem; }
.footer-socials { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.footer-socials a { padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.62); font: .62rem var(--mono); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: rgba(255,255,255,.35); font: .59rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.footer-orbit { position: absolute; right: -15rem; top: 2rem; width: 40rem; aspect-ratio: 1; border: 1px solid rgba(165,139,250,.14); border-radius: 50%; }
.footer-orbit::before { content: ""; position: absolute; inset: 20%; border: inherit; border-radius: inherit; }
.toast { position: fixed; z-index: 500; right: 1rem; bottom: 1rem; max-width: 22rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #171a21; color: white; font-size: .77rem; box-shadow: 0 1rem 3rem rgba(0,0,0,.35); transform: translateY(150%); opacity: 0; transition: .35s var(--ease); }
.toast.visible { transform: translateY(0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counterOrbit { to { rotate: -360deg; } }
@keyframes mindSpin { to { transform: rotate(360deg); } }
@keyframes mindSettleSpin { to { transform: rotate(360deg) scale(.94); } }
@keyframes scan { 0%,100% { transform: translateX(-100%); } 50% { transform: translateX(200%); } }
@keyframes breathe { 50% { transform: scale(1.04); opacity: .65; } }
@keyframes confirmIn { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }

@media (max-width: 960px) {
  :root { --header: 72px; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border: 0; background: none; color: white; font-size: .7rem; cursor: pointer; }
  .menu-toggle i, .menu-toggle i::after { display: block; width: 1.3rem; height: 1px; background: white; transition: transform .3s; }
  .menu-toggle i { position: relative; }
  .menu-toggle i::after { content: ""; position: absolute; top: .35rem; }
  .menu-open .menu-toggle i { transform: rotate(45deg); }
  .menu-open .menu-toggle i::after { top: 0; transform: rotate(90deg); }
  .site-nav { position: fixed; inset: var(--header) 0 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem; padding: var(--gutter); background: rgba(9,11,16,.98); transform: translateX(100%); transition: transform .4s var(--ease); }
  .menu-open .site-nav { transform: none; }
  .site-nav a { font-size: clamp(2rem, 8vw, 4rem); letter-spacing: -.05em; color: white; }
  .header-action { position: fixed; z-index: 101; left: 50%; bottom: max(.8rem, env(safe-area-inset-bottom)); transform: translateX(-50%); white-space: nowrap; background: rgba(9,11,16,.88); backdrop-filter: blur(12px); box-shadow: 0 .5rem 2rem rgba(0,0,0,.25); }
  .menu-open .header-action { display: none; }
  .home-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: calc(var(--header) + 3rem);
  }
  .hero-kicker { order: 1; max-width: none; }
  .hero-kicker .status { display: none; }
  .hero-title { order: 2; }
  .hero-bottom { order: 3; width: min(100%, 32rem); margin-top: 2rem; }
  .hero-bottom .hero-intro { max-width: 32rem; }
  .hero-orbit {
    position: relative;
    order: 4;
    top: auto;
    right: auto;
    width: min(76vw, 30rem);
    margin: 4rem auto;
    opacity: 1;
  }
  .orbit-icon { --orbit-radius: clamp(8rem, 26vw, 12.5rem); }
  .world-entries { order: 5; width: 100%; max-width: none; }
  .section-grid, .form-intro { grid-template-columns: 1fr; }
  .manifesto-strip, .principles { grid-template-columns: repeat(2,1fr); }
  .manifesto-strip > div:nth-child(2) { border-right: 0; }
  .music-facts { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .case-grid, .social-cards { grid-template-columns: 1fr; }
  .case-card { min-height: 20rem; }
  .gateway-grid { grid-template-columns: repeat(2,1fr); }
  .route-number { opacity: .5; }
  .mind-domain-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 680px) {
  :root { --gutter: 1.1rem; --header: 64px; }
  .cursor-glow { display: none; }
  .site-header {
    height: var(--header);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-inline: var(--gutter);
  }
  .site-header.scrolled { height: var(--header); }
  .brand-name { display: none; }
  .brand { order: 1; flex: 0 0 auto; }
  .brand-mark { width: 2.15rem; height: 2.15rem; }
  .menu-toggle {
    position: static !important;
    order: 2;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    transform: none !important;
  }
  .menu-toggle span { display: none; }
  .header-action {
    display: none;
  }
  .header-action-full { display: none; }
  .header-action-short { display: inline; }
  .site-nav { inset: var(--header) 0 0; padding: 1.4rem; }
  .site-nav a { font-size: clamp(2.2rem, 12vw, 3.4rem); }
  .home-hero {
    padding-top: calc(var(--header) + 3.2rem);
    padding-bottom: 4.5rem;
  }
  .hero-kicker { margin-top: 0; }
  .hero-kicker .eyebrow { font-size: .58rem; letter-spacing: .11em; }
  .hero-title.name-title {
    max-width: 100%;
    font-size: clamp(3.65rem, 16.4vw, 4.45rem);
    line-height: .78;
    letter-spacing: -.072em;
  }
  .hero-title .indent { margin-left: 6vw; }
  .hero-bottom {
    width: 100%;
    margin-top: 1.8rem;
  }
  .hero-bottom .hero-intro {
    width: 100%;
    max-width: none;
    padding: .1rem .2rem .1rem 1rem;
  }
  .hero-intro p {
    max-width: 31ch;
    font-size: .94rem;
    line-height: 1.58;
  }
  .hero-orbit { order: 5; width: min(72vw, 18rem); right: auto; top: auto; margin: 3.4rem auto 3rem; }
  .orbit-icon { --orbit-radius: min(28vw, 7rem); width: 2.1rem; height: 2.1rem; margin: -1.05rem; border-radius: .62rem; }
  .orbit-icon svg { width: 16px; height: 16px; }
  .orbit-core { width: 4.25rem; height: 4.25rem; }
  .orbit-core svg { width: 29px; height: 29px; }
  .mind-drag-label { bottom: -1.05rem; font-size: .45rem; }
  .world-entries { order: 4; grid-template-columns: 1fr; margin-top: 2rem; }
  .world-entry {
    min-height: 5.7rem;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: .8rem;
    padding: .9rem;
  }
  .world-entry-icon { width: 2.7rem; height: 2.7rem; }
  .world-entry strong { font-size: 1.05rem; }
  .world-entry em { font-size: .64rem; }
  .world-entry small { font-size: .5rem; }
  .manifesto-strip { grid-template-columns: 1fr 1fr; }
  .manifesto-strip > div { min-height: 7.4rem; padding: 1rem; }
  .manifesto-strip strong { margin-bottom: 1.2rem; }
  .mind-domain-grid { grid-template-columns: repeat(2,1fr); }
  .mind-domain { min-height: 7rem; padding: .85rem; }
  .section { padding-block: 4.5rem; }
  .section-head { margin-bottom: 2.6rem; }
  .section-head h2, .display { font-size: clamp(2.65rem, 13.2vw, 3.45rem); line-height: .92; }
  .section-head p, .lead { font-size: .98rem; line-height: 1.62; }
  .code-stage { min-height: 24rem; border-radius: 1rem; }
  .code-stage-bar { padding: .9rem; }
  .code-stage-bar > span:last-child { display: none; }
  .code-copy { padding: 1.15rem; font-size: .63rem; overflow: hidden; }
  .code-badge { right: 1rem; bottom: 1rem; width: 6.5rem; }
  .skill-cloud { margin-top: 1.8rem; }
  .piano-visual { height: 23rem; border-radius: 1rem; }
  .piano-visual blockquote { font-size: clamp(2.25rem, 12vw, 3.1rem); }
  .music-facts div { padding: 1.35rem; }
  .project-grid { display: block; }
  .project-card { min-height: 18rem; margin-bottom: .8rem; padding: 1.25rem; border-radius: 1rem; }
  .project-card h3 { margin-top: 6rem; font-size: 2rem; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 13rem; padding: 1.35rem 1rem; border-right: 0; border-bottom: 1px solid rgba(17,20,26,.2); }
  .route-hero {
    min-height: auto;
    align-items: start;
    padding-top: calc(var(--header) + 3.5rem);
    padding-bottom: 3.5rem;
  }
  .route-hero-content, .timeline-section .section-head, .career-timeline { width: 100%; max-width: 100%; min-width: 0; }
  .route-hero h1 { font-size: clamp(3.05rem, 14.5vw, 4.25rem); line-height: .88; }
  .route-hero .lead { max-width: 34ch; }
  .route-hero .button-row { display: grid; grid-template-columns: 1fr; width: 100%; }
  .route-hero .button-row .button { min-width: 0; padding-inline: .7rem; text-align: center; }
  .route-hero .button-row .button.ghost { grid-column: auto; justify-self: center; }
  .hero-meta { gap: .4rem; margin-top: 1.8rem; }
  .hero-meta span { padding: .45rem .58rem; font-size: .55rem; }
  .route-number { display: none; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { min-height: auto; display: grid; grid-template-columns: minmax(7rem,.7fr) 1fr; align-items: center; gap: 1rem; padding: 1.1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .stat strong { margin-bottom: 0; font-size: 1.45rem; }
  .stat span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .experience-item { grid-template-columns: 1fr; gap: .6rem; }
  .timeline-item { grid-template-columns: 2.7rem minmax(0,1fr); gap: .8rem; padding: 1.8rem 0; }
  .timeline-rail { grid-row: 1 / span 2; }
  .timeline-rail::after { top: 2.7rem; bottom: -1.85rem; }
  .timeline-item time { grid-column: 2; padding-top: .7rem; }
  .timeline-content { grid-column: 2; min-width: 0; }
  .timeline-content h3 { font-size: 1.55rem; }
  .timeline-content p { font-size: .82rem; }
  .timeline-content ul { grid-template-columns: 1fr; gap: .35rem; }
  .timeline-section .section-head h2 { font-size: clamp(2.45rem, 11.8vw, 3.1rem); overflow-wrap: break-word; }
  .academic-proof > div { min-height: 7rem; padding: .9rem; }
  .academic-proof strong { font-size: 1.65rem; }
  .gateway-grid, .service-list { grid-template-columns: 1fr; }
  .gateway { min-height: 13rem; }
  .service { min-height: 14rem; padding: 1.35rem; }
  .service h3 { margin-top: 3.5rem; }
  .quote-band { padding-block: 5rem; }
  .form-page { padding-top: calc(var(--header) + 3rem); padding-bottom: 5rem; }
  .form-intro { gap: 1.5rem; margin-bottom: 2.5rem; }
  .form-intro h1 { font-size: clamp(3.1rem,14.5vw,4.2rem); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .booking-form fieldset { padding: 2.2rem 0; }
  .booking-form legend { margin-bottom: 1.4rem; font-size: 1.5rem; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .choice label { padding: .68rem .78rem; }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-row .button { width: 100%; }
  .receipt { grid-template-columns: 1fr; }
  .receipt div { border-right: 0; border-bottom: 1px solid var(--line); }
  .resume-sheet { width: 100%; max-width: 100vw; padding: calc(var(--header) + 1.5rem) .7rem 4rem; overflow: hidden; }
  .resume-toolbar { align-items: stretch; flex-direction: column; gap: .8rem; }
  .resume-toolbar .button-row { display: grid; grid-template-columns: 1fr; }
  .resume-toolbar .button { width: 100%; }
  .resume-document, .cv-page { width: calc(100vw - 1.4rem); max-width: calc(100vw - 1.4rem); min-width: 0; }
  .cv-page, .cv-page * { min-width: 0; }
  .cv-page { min-height: 0; padding: 1.2rem; }
  .cv-header { grid-template-columns: 2.8rem minmax(0,1fr); gap: .8rem; }
  .cv-monogram { width: 2.7rem; height: 2.7rem; }
  .cv-name { min-width: 0; }
  .cv-name h1 { max-width: 100%; font-size: clamp(2rem, 9.8vw, 2.65rem); line-height: .94; overflow-wrap: break-word; }
  .cv-name p { font-size: .65rem; line-height: 1.5; }
  .cv-contact { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: .35rem; padding: .75rem 0 0; border-top: 1px solid #dde1dc; text-align: left; }
  .cv-contact > * { min-width: 0; overflow-wrap: anywhere; }
  .cv-page p, .cv-page li, .cv-page dd, .cv-page h3 { max-width: 100%; overflow-wrap: anywhere; }
  .cv-summary, .cv-layout, .cv-page-grid { grid-template-columns: 1fr; }
  .cv-summary { gap: .6rem; }
  .cv-sidebar { padding-right: 0; border-right: 0; }
  .cv-section-heading { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .cv-role-heading { flex-direction: column; gap: .3rem; }
  .cv-page-grid > aside { padding: 1.2rem 0 0; border-top: 1px solid #d9ddd8; border-left: 0; }
  .cv-projects { grid-template-columns: 1fr; }
  .cv-projects article { min-height: 8rem; }
  .cv-continuation { grid-template-columns: 1fr auto; }
  .cv-continuation strong { grid-column: 1; grid-row: 2; }
  .cv-continuation small { grid-column: 2; grid-row: 1 / span 2; }
  .footer-actions { grid-template-columns: 1fr; }
  .footer-socials { grid-column: auto; }
  .site-footer { padding-top: 4.5rem; }
  .site-footer h2 { margin-bottom: 2.5rem; font-size: clamp(2.8rem, 14vw, 3.8rem); }
  .footer-base { align-items: flex-start; flex-direction: column; margin-top: 4rem; padding-bottom: 1rem; }
}

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

@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { width: 210mm; min-width: 210mm; margin: 0; padding: 0; background: white !important; }
  .site-header, .site-footer, .cursor-glow, .skip-link, .resume-toolbar { display: none !important; }
  main { background: white !important; overflow: visible !important; }
  .resume-sheet { width: 210mm; max-width: none; margin: 0; padding: 0; overflow: visible; background: white !important; color: black !important; }
  .resume-document { width: 210mm; margin: 0; }
  .cv-page { width: 210mm; height: 297mm; min-height: 297mm; max-height: 297mm; margin: 0 !important; padding: 12mm 13mm; overflow: hidden; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .cv-second-page { break-before: page; page-break-before: always; }
  .cv-role, .cv-education, .cv-projects article, .cv-section { break-inside: avoid; page-break-inside: avoid; }
  .cv-name h1 { font-size: 34pt; }
}
