:root {
  --paper: #f6f7f3;
  --paper-2: #e9ece6;
  --ink: #261d26;
  --plum: #443944;
  --aubergine: #261d26;
  --green: #003911;
  --deep-green: #001d09;
  --lime: #6fe45d;
  --amber: #ffc20e;
  --white: #fff;
  --glass: rgba(255, 255, 255, 0.76);
  --footer-glass: rgba(38, 29, 38, 0.9);
  --line: rgba(38, 29, 38, 0.18);
  --line-light: rgba(255, 255, 255, 0.25);
  --radius: 18px;
  --gutter: clamp(18px, 3.3vw, 50px);
  --header-height: 96px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-morph: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --motion-fast: 160ms;
  --motion-ui: 280ms;
  --motion-component: 480ms;
  --motion-scene: 820ms;
  --shadow: 0 30px 90px rgba(18, 11, 18, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.intro-open { overflow: hidden; }
body.drawer-overlay-open { overflow: hidden; }

::selection { background: var(--amber); color: var(--ink); }

a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
figure, h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

[id] { scroll-margin-top: 110px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 11px 15px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 200ms;
}
.skip-link:focus { transform: translateY(0); }

.page-wipe {
  position: fixed;
  z-index: 440;
  inset: 0;
  background: var(--aubergine);
  pointer-events: none;
  transform: translateY(105%);
  border-radius: 50% 50% 0 0;
  transition: transform var(--motion-component) var(--ease-morph), border-radius var(--motion-component) var(--ease-morph);
}
.page-leaving .page-wipe { transform: translateY(0); border-radius: 0; }

::view-transition-old(root) { animation: 260ms var(--ease-out) both fade-out; }
::view-transition-new(root) { animation: 520ms var(--ease-morph) both fade-in; }
html.is-filtering::view-transition-old(root),
html.is-filtering::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@keyframes fade-out { to { opacity: .35; transform: scale(.985); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } }

.tone-light { background: var(--paper); color: var(--ink); }
.tone-dark { background: var(--deep-green); color: var(--white); }
.tone-aubergine { background: var(--aubergine); color: var(--white); }

/* Header and navigation */
.site-header {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  color: var(--ink);
  pointer-events: none;
  transition: color 300ms var(--ease-out), transform 500ms var(--ease-out);
}

.site-header::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  border-bottom: 1px solid rgba(38, 29, 38, .08);
  background: rgba(246, 247, 243, .72);
  box-shadow: 0 14px 36px rgba(38, 29, 38, .06);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-morph), background-color 360ms var(--ease-out), border-color 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; transform: none; }
.site-header.is-scrolled.on-dark::before {
  border-bottom-color: rgba(255, 255, 255, .11);
  background: rgba(5, 5, 5, .68);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .2);
}
.site-header.on-dark { color: var(--white); }
.site-header.is-scrolled { color: var(--ink); }
.site-header.is-scrolled.on-dark { color: var(--white); }
.site-header > * { position: relative; z-index: 1; pointer-events: auto; }

.site-brand {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  width: max-content;
  padding: 0 4px;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  transition: color 240ms, transform 360ms var(--ease-morph), text-shadow 360ms;
}

.header-home-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.back-home-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: none;
  transition: color 240ms, transform 360ms var(--ease-morph), text-shadow 360ms;
}

.back-home-link > span:first-child {
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  font-size: 17px;
  transition: transform 300ms var(--ease-out);
}

.on-dark .back-home-link {
  border-color: transparent;
  background: transparent;
  color: inherit;
}

.mm-mark {
  --mm-size: 27px;
  display: inline-flex;
  width: 1.38em;
  height: 1em;
  flex: 0 0 1.38em;
  align-items: center;
  overflow: visible;
  color: currentColor;
  font: 600 var(--mm-size)/1 "Inter Tight", Arial, sans-serif;
  letter-spacing: -.08em;
  white-space: nowrap;
}
.mm-mark > span {
  display: block;
  transition: opacity 280ms var(--ease-out), transform 360ms var(--ease-morph);
}
.mm-mark > span + span { margin-left: -.31em; opacity: .62; }
.mm-mark--header { --mm-size: 27px; }
.mm-mark--intro { --mm-size: 42px; }
.site-header.on-dark .mm-mark > span + span { opacity: .76; }
.site-header.is-scrolled .mm-mark > span + span { opacity: .62; }
.site-header.is-scrolled.on-dark .mm-mark > span + span { opacity: .76; }
.site-brand:focus-visible .mm-mark > span:first-child { transform: translateX(-1.5px); }
.site-brand:focus-visible .mm-mark > span:last-child { opacity: 1; transform: translateX(1.5px); }

.header-actions { display: flex; align-items: center; gap: 24px; transition: opacity 250ms, transform 350ms var(--ease-out); }
.drawer-overlay-open .header-actions { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.availability-pill,
.menu-pill,
.pill-button,
.action-pill,
.filter-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: -.01em;
}

.availability-pill {
  position: relative;
  gap: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: none;
  transition: color 240ms, transform 360ms var(--ease-morph), text-shadow 360ms, opacity 200ms;
}

.menu-open .availability-pill { opacity: 0; transform: translateX(16px); pointer-events: none; }

.availability-pill i { display: none; }

.menu-pill {
  position: relative;
  gap: 0;
  min-width: auto;
  min-height: 44px;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transition: color 240ms, transform 360ms var(--ease-morph), text-shadow 360ms;
}

.on-dark .menu-pill { background: transparent; color: inherit; }
.menu-pill b { display: none; width: 22px; height: 22px; place-items: center; }
.menu-pill b i {
  grid-area: 1 / 1;
  width: 15px;
  height: 1px;
  background: currentColor;
  transition: transform 400ms var(--ease-morph);
}
.menu-pill b i:first-child { transform: translateY(-3px); }
.menu-pill b i:last-child { transform: translateY(3px); }
.menu-open .menu-pill b i:first-child { transform: rotate(45deg); }
.menu-open .menu-pill b i:last-child { transform: rotate(-45deg); }
.menu-open .menu-pill { background: transparent; color: var(--amber); }

.site-brand::after,
.back-home-link::after,
.availability-pill::after,
.menu-pill::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 420ms var(--ease-morph);
}

.site-brand:focus-visible::after,
.back-home-link:focus-visible::after,
.availability-pill:focus-visible::after,
.menu-pill:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

.site-brand:active,
.back-home-link:active,
.availability-pill:active,
.menu-pill:active { transform: translateY(1px) scale(.985); }

.site-menu {
  position: fixed;
  z-index: -1;
  inset: 0;
  color: var(--white);
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 500ms;
}

.menu-open .site-menu {
  z-index: -1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 15, .38);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity 400ms var(--ease-out);
}
.menu-open .menu-backdrop { opacity: 1; }

.menu-shell {
  position: absolute;
  top: 14px;
  right: var(--gutter);
  display: flex;
  width: min(420px, calc(100vw - 28px));
  height: min(580px, calc(100svh - 28px));
  flex-direction: column;
  padding: 25px 26px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  background: var(--green);
  box-shadow: var(--shadow);
  clip-path: inset(0 0 calc(100% - 54px) calc(100% - 126px) round 27px);
  transform-origin: top right;
  transition: clip-path 500ms var(--ease-morph);
}
.menu-open .menu-shell { clip-path: inset(0 round 27px); }

.menu-topline,
.menu-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu-topline { padding-right: 112px; padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.menu-topline span:last-child { display: none; }
.menu-shell ul { margin: auto 0; }
.menu-shell li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.menu-shell li:first-child { border-top: 1px solid var(--line-light); }
.menu-shell li a {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  gap: 6px;
  min-height: 58px;
  transform: translateY(104%);
  transition: transform 500ms var(--ease-out), color 200ms;
}
.menu-open .menu-shell li a { transform: translateY(0); }
.menu-open .menu-shell li:nth-child(1) a { transition-delay: 90ms; }
.menu-open .menu-shell li:nth-child(2) a { transition-delay: 130ms; }
.menu-open .menu-shell li:nth-child(3) a { transition-delay: 170ms; }
.menu-open .menu-shell li:nth-child(4) a { transition-delay: 210ms; }
.menu-open .menu-shell li:nth-child(5) a { transition-delay: 250ms; }
.menu-open .menu-shell li:nth-child(6) a { transition-delay: 290ms; }
.menu-shell li small { font: 10px "IBM Plex Mono", monospace; opacity: .62; }
.menu-shell li span { font-size: 26px; letter-spacing: -.035em; }
.menu-shell li b { font-size: 18px; font-weight: 400; transition: transform 250ms; }
.menu-shell li a.active { color: var(--amber); }
.menu-footer { align-items: end; opacity: .78; text-transform: none; letter-spacing: 0; }
.menu-footer p { max-width: 210px; }
.menu-footer a { color: var(--amber); white-space: nowrap; }

/* Intro */
.site-intro {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  overflow: hidden;
  min-height: 100svh;
  padding: clamp(24px, 4.15vw, 80px);
  grid-template-rows: auto 1fr;
  background: #e9ddd5;
  color: var(--ink);
  isolation: isolate;
  opacity: 1;
  visibility: visible;
  transition: clip-path 900ms var(--ease-morph), opacity 500ms, visibility 0s;
  clip-path: inset(0 round 0);
}
.site-intro::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(249, 246, 239, .67) 0%, rgba(249, 246, 239, .4) 39%, rgba(249, 246, 239, .08) 72%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(38, 29, 38, .08));
  content: "";
  pointer-events: none;
}
.site-intro.is-leaving { clip-path: inset(0 0 100% 0 round 0); }
.site-intro.is-hidden { visibility: hidden; pointer-events: none; }
.site-intro.is-hidden .intro-ambient *,
.site-intro.is-hidden .intro-ambient::after,
.skill-cosmos.is-motion-paused .skill-cosmos__ambient *,
.skill-cosmos.is-motion-paused .skill-cosmos__ambient::after,
.skill-cosmos.is-motion-paused .skill-cosmos__galaxy *,
.skill-cosmos.is-motion-paused .skill-cosmos__galaxy::after { animation-play-state: paused; }
.site-intro > *:not(.intro-ambient) { position: relative; z-index: 2; }
.intro-ambient {
  position: absolute;
  z-index: 0;
  inset: -14%;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 8%, rgba(255, 224, 190, .88), transparent 35%),
    linear-gradient(132deg, #f0ded0 3%, #c59497 43%, #70608f 68%, #3f8790 100%);
  transform: scale(1.04);
}
.intro-ambient::after {
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .34) 0 14%, transparent 31% 49%, rgba(255, 221, 180, .2) 62%, transparent 80%),
    linear-gradient(148deg, transparent 25%, rgba(232, 244, 234, .24) 43%, transparent 60%);
  content: "";
  animation: intro-sheen 26s ease-in-out infinite alternate;
  will-change: transform;
}
.intro-ambient__field {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .9;
  will-change: transform;
}
.intro-ambient__field--apricot {
  top: -16%;
  left: -9%;
  width: 78%;
  height: 82%;
  background: radial-gradient(ellipse at 42% 44%, #ffd7ae 0%, #e9916d 35%, rgba(219, 118, 101, .56) 57%, transparent 76%);
  animation: intro-drift-apricot 18s ease-in-out infinite;
}
.intro-ambient__field--violet {
  top: -19%;
  right: -13%;
  width: 79%;
  height: 90%;
  background: radial-gradient(ellipse at 52% 46%, #cbb8df 0%, #826aa1 39%, rgba(81, 76, 132, .64) 61%, transparent 78%);
  animation: intro-drift-violet 23s ease-in-out infinite;
}
.intro-ambient__field--mineral {
  right: -8%;
  bottom: -30%;
  width: 108%;
  height: 83%;
  background: radial-gradient(ellipse at 54% 45%, #9cd7c9 0%, #4a9e9a 34%, rgba(35, 108, 121, .72) 60%, transparent 79%);
  animation: intro-drift-mineral 29s ease-in-out infinite;
}
.intro-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}
.intro-lockup strong {
  font: 500 12px/1.12 "IBM Plex Mono", monospace;
  letter-spacing: .045em;
}
.intro-message {
  display: flex;
  width: min(1210px, 93vw);
  align-self: center;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(30px, 3.3vw, 52px);
  padding: clamp(24px, 5vh, 70px) 0 clamp(10px, 4vh, 48px);
}
.intro-message p {
  max-width: 1210px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(54px, 5.75vw, 96px);
  font-weight: 300;
  line-height: .94;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.intro-enter {
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 15px 40px rgba(38, 29, 38, .16);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
.intro-enter:focus-visible {
  outline-color: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 5px rgba(38, 29, 38, .42), 0 15px 40px rgba(38, 29, 38, .16);
}
@keyframes intro-drift-apricot {
  0%, 100% { transform: translate3d(-2%, -1%, 0) scale(1.02) rotate(-4deg); }
  50% { transform: translate3d(11%, 9%, 0) scale(1.16) rotate(5deg); }
}
@keyframes intro-drift-violet {
  0%, 100% { transform: translate3d(2%, 1%, 0) scale(1.05) rotate(3deg); }
  50% { transform: translate3d(-12%, 12%, 0) scale(1.18) rotate(-6deg); }
}
@keyframes intro-drift-mineral {
  0%, 100% { transform: translate3d(0, 2%, 0) scale(1.08) rotate(-2deg); }
  50% { transform: translate3d(-8%, -14%, 0) scale(1.2) rotate(5deg); }
}
@keyframes intro-sheen {
  from { transform: translate3d(-3%, -2%, 0) scale(1.03) rotate(-1deg); }
  to { transform: translate3d(4%, 3%, 0) scale(1.1) rotate(2deg); }
}

/* Type and shared components */
.display-title {
  font-size: clamp(62px, 10.6vw, 172px);
  font-weight: 500;
  line-height: .79;
  letter-spacing: -.072em;
  text-transform: uppercase;
}
.display-title > span { display: block; }
.hero-eyebrow,
.phase-label,
.project-meta,
.chapter-meta,
.role-kicker,
.work-tile > span,
.work-tile > b,
.phase-card-top,
.page-hero-media figcaption,
.hero-media figcaption,
.project-image figcaption,
.filter-controls,
.contact-channels span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.hero-eyebrow { display: block; }
.phase-label {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
}
.phase-label.dark { border-color: rgba(38,29,38,.34); color: var(--ink); }

/* Institution and company marks */
.entity-logo {
  position: relative;
  display: grid;
  width: 64px;
  height: 56px;
  flex: none;
  place-items: center;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.entity-logo.wide { width: 152px; }
.entity-logo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(38, 29, 38, .16));
}

:where(.story-sequence, .role-stack, .recognition-feature, .research-pipeline) .entity-logo::before {
  position: absolute;
  inset: -5px -8px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .91), rgba(255, 255, 255, .72));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:where(.story-sequence, .role-stack, .recognition-feature, .research-pipeline) .entity-logo img {
  filter: drop-shadow(0 3px 8px rgba(38, 29, 38, .18));
}

.education-record .entity-logo img[src$="polytechnic-tirana.png"] {
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: brightness(0) opacity(.84) drop-shadow(0 1px 2px rgba(38, 29, 38, .14));
}

.recognition-feature:nth-child(2) .entity-logo img {
  filter: drop-shadow(0 3px 8px rgba(38, 29, 38, .18));
}
.entity-logo-row,
.timeline-logos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entity-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.entity-lockup strong { min-width: 0; }
.timeline-logos { margin-top: 24px; }
.timeline-logos .entity-logo { width: 184px; height: 82px; }

.section-lead {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(360px, 1.75fr);
  gap: var(--gutter);
  padding: 0 var(--gutter) clamp(55px, 8vw, 120px);
}
.section-lead h2 {
  grid-column: 2;
  max-width: 1000px;
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 500;
  line-height: .87;
  letter-spacing: -.065em;
}
.section-lead > .phase-label { grid-row: 1; grid-column: 1; align-self: start; justify-self: start; }
.section-lead > p { grid-column: 2; max-width: 620px; font-size: clamp(17px, 1.45vw, 23px); line-height: 1.3; opacity: .76; }
.section-lead.inverse > p { opacity: .72; }

.action-pill {
  gap: 28px;
  min-width: 190px;
  justify-content: space-between;
  padding: 0 9px 0 22px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 280ms var(--ease-out), background 280ms, color 280ms;
}
.action-pill b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
}
.action-pill.light { background: var(--paper); color: var(--ink); }
.action-pill.light b { background: var(--amber); }
.action-pill.dark { background: var(--ink); color: var(--white); }
.action-pill.dark b { background: var(--amber); color: var(--ink); }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 500;
}
.scroll-cue i {
  position: relative;
  width: 31px;
  height: 31px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.scroll-cue i::after {
  position: absolute;
  top: 9px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
  animation: cue 1800ms var(--ease-soft) infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(-2px) rotate(45deg); } 50% { transform: translateY(3px) rotate(45deg); } }
.scroll-cue.light { color: var(--white); }

/* Reveal choreography */
.js .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity var(--motion-component) var(--ease-out), transform 680ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .display-title.reveal { opacity: 1; transform: none; }
.js .display-title.reveal > span {
  padding-block: .16em .22em;
  padding-inline: .025em .10em;
  overflow: hidden;
  margin-block: -.16em -.22em;
  margin-inline: -.025em -.10em;
  transform: translate3d(0, 108%, 0);
  transition: transform var(--motion-scene) var(--ease-out);
}
.js .display-title.reveal.is-visible > span { transform: translateY(0); }
.js .display-title.reveal > span:nth-child(2) { transition-delay: 110ms; }
.js .display-title.reveal > span:nth-child(3) { transition-delay: 220ms; }

.headline-sweep { overflow: visible; }
.headline-sweep__word {
  position: relative;
  display: inline-block;
  padding-block: .16em .22em;
  padding-inline: .025em .10em;
  margin-block: -.16em -.22em;
  margin-inline: -.025em -.10em;
  color: var(--headline-base-color, inherit);
  vertical-align: baseline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.headline-sweep.is-sweeping .headline-sweep__word {
  animation: headline-yellow-sweep var(--sweep-duration, 620ms) cubic-bezier(.33,.02,.2,1) var(--sweep-delay, 0ms) both;
  background-image: linear-gradient(90deg,
    var(--headline-base-color, currentColor) 0%,
    var(--headline-base-color, currentColor) 43%,
    var(--headline-sweep-color, var(--amber)) 47%,
    var(--headline-sweep-color, var(--amber)) 55%,
    var(--headline-base-color, currentColor) 59%,
    var(--headline-base-color, currentColor) 100%);
  background-position: 100% 50%;
  background-repeat: no-repeat;
  background-size: 270% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  will-change: background-position;
}
@keyframes headline-yellow-sweep {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

/* Home hero and generic page hero */
.home-hero,
.page-hero { padding-top: var(--header-height); }
.hero-stage,
.page-hero-copy {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-height));
  flex-direction: column;
  padding: 26px var(--gutter) 42px;
}
.hero-stage .display-title,
.page-hero-copy .display-title { margin-top: clamp(70px, 10vh, 130px); }
.hero-support {
  align-self: flex-end;
  width: min(510px, 39vw);
  margin-top: auto;
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.hero-stage .scroll-cue,
.page-hero-copy .scroll-cue { position: absolute; bottom: 47px; left: var(--gutter); }

.hero-media,
.page-hero-media {
  position: relative;
  height: min(78svh, 850px);
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  clip-path: inset(0 var(--hero-inset, var(--gutter)) round var(--hero-radius, var(--radius)));
  will-change: clip-path;
  background: var(--plum);
}
.hero-media img,
.page-hero-media img {
  height: 100%;
  object-fit: cover;
  transform: scale(var(--hero-image-scale, 1.09));
  will-change: transform;
}
.hero-media::after,
.page-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,7,6,.58));
  content: "";
}
.hero-media figcaption,
.page-hero-media figcaption {
  position: absolute;
  z-index: 2;
  right: calc(var(--hero-inset, var(--gutter)) + 24px);
  bottom: 21px;
  left: calc(var(--hero-inset, var(--gutter)) + 24px);
  display: flex;
  justify-content: space-between;
  color: var(--white);
}
.page-hero-dark { background: var(--aubergine); color: var(--white); }

/* Personal introduction */
.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  min-height: 112svh;
  padding: clamp(100px, 13vw, 190px) var(--gutter);
  background: var(--paper);
}
.home-about-copy { min-width: 0; }
.home-about-copy h2 {
  max-width: 830px;
  margin: 28px 0 44px;
  font-size: clamp(50px, 6.7vw, 104px);
  font-weight: 500;
  line-height: .87;
  letter-spacing: -.065em;
}
.home-about-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--gutter); }
.home-about-body p { max-width: 540px; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; opacity: .72; }
.home-about-body p:first-child { grid-column: 1 / 3; max-width: 760px; font-size: clamp(20px, 1.7vw, 27px); line-height: 1.35; opacity: 1; }
.home-about-copy > .tag-row { margin-top: 38px; }
.home-about-portrait { height: min(90svh, 900px); min-height: 620px; overflow: hidden; border-radius: var(--radius); background: var(--plum); }
.home-about-portrait img { height: 100%; object-fit: cover; object-position: 58% center; transform: scale(1.055); transition: transform 1400ms var(--ease-out), filter 600ms; }
.js .home-about-portrait.reveal img { transform: scale(1.09); }
.js .home-about-portrait.reveal.is-visible img { transform: scale(1.02); }

/* Scroll-driven systems campus */
.story-sequence {
  position: relative;
  min-height: calc(var(--story-count, 4) * 100svh);
  overflow: visible;
  background: #020202;
}
.story-sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  min-height: 0;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 26% 40%, rgba(255,255,255,.055), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(255,194,14,.028), transparent 30%),
    linear-gradient(150deg, #020202, #090909 56%, #000);
}
.campus-atmosphere { position: absolute; z-index: 0; inset: -18%; overflow: hidden; pointer-events: none; }
.campus-atmosphere i {
  position: absolute;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.065), rgba(255,255,255,.012) 48%, transparent 72%);
  opacity: .42;
  animation: campus-atmosphere-drift 18s ease-in-out infinite alternate;
}
.campus-atmosphere i:nth-child(1) { top: -16%; left: -6%; }
.campus-atmosphere i:nth-child(2) { right: -15%; bottom: -22%; animation-delay: -7s; animation-duration: 23s; }
.campus-atmosphere i:nth-child(3) { top: 26%; left: 28%; width: 34vw; height: 34vw; animation-delay: -12s; animation-duration: 27s; }
@keyframes campus-atmosphere-drift {
  to { transform: translate3d(7%, -5%, 0) scale(1.12); opacity: .78; }
}

.campus-viewport { position: absolute; z-index: 1; inset: 0; perspective: 1400px; perspective-origin: 42% 48%; pointer-events: none; contain: paint; }
.campus-camera {
  position: absolute;
  top: 54%;
  left: 42%;
  width: 1200px;
  height: 820px;
  transform: translate3d(calc(-50% - 40px), calc(-50% + 70px), -30px) scale(.74);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.campus-pointer,
.campus-world,
.campus-plane,
.campus-zone,
.campus-block { position: absolute; inset: 0; transform-style: preserve-3d; }
.campus-pointer { transform: translate3d(0,0,0); }
.campus-world { transform: rotateX(61deg) rotateZ(-32deg); transform-origin: 50% 50%; backface-visibility: hidden; }
.campus-plane {
  width: 1200px;
  height: 820px;
  overflow: visible;
  border: 1px solid rgba(225,238,225,.14);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 34%),
    #0b2915;
  box-shadow: 0 0 0 12px rgba(1,14,5,.28), 0 60px 110px rgba(0,0,0,.38);
}
.campus-plane::after {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(111,228,93,.08);
  border-radius: 28px;
  content: "";
  transform: translateZ(2px);
}
.campus-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(229,238,229,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,238,229,.055) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .72;
  transform: translateZ(1px);
}
.campus-road { position: absolute; display: block; background: rgba(1,16,5,.8); transform: translateZ(3px); }
.campus-road::after { position: absolute; inset: 48%; border-top: 2px dashed rgba(255,255,255,.17); content: ""; }
.campus-road--horizontal { top: 384px; left: 20px; width: 1160px; height: 58px; }
.campus-road--vertical { top: 20px; left: 574px; width: 58px; height: 780px; }
.campus-road--vertical::after { inset: 0 48%; border-top: 0; border-left: 2px dashed rgba(255,255,255,.17); }
.campus-ring {
  position: absolute;
  top: 324px;
  left: 514px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,194,14,.44);
  border-radius: 50%;
  box-shadow: inset 0 0 0 14px rgba(1,16,5,.78), 0 0 38px rgba(255,194,14,.08);
  transform: translateZ(5px);
}

.campus-zone {
  inset: auto;
  width: 360px;
  height: 280px;
  transition: transform 900ms var(--ease-morph);
}
.campus-zone::before {
  position: absolute;
  inset: -30px;
  border: 1px solid transparent;
  border-radius: 36px;
  background: radial-gradient(circle at 50% 50%, rgba(255,194,14,.12), transparent 67%);
  content: "";
  opacity: 0;
  transform: translateZ(1px);
  transition: opacity 620ms var(--ease-soft), border-color 620ms;
}
.campus-zone.is-active::before { border-color: rgba(255,194,14,.24); opacity: 1; }
.campus-zone--foundation { transform: translate3d(82px,72px,0); }
.campus-zone--evidence { transform: translate3d(744px,74px,0); }
.campus-zone--twin { transform: translate3d(744px,480px,0); }
.campus-zone--operations { transform: translate3d(82px,480px,0); }
.campus-zone--foundation.is-active { transform: translate3d(82px,72px,22px); }
.campus-zone--evidence.is-active { transform: translate3d(744px,74px,22px); }
.campus-zone--twin.is-active { transform: translate3d(744px,480px,22px); }
.campus-zone--operations.is-active { transform: translate3d(82px,480px,22px); }
.campus-zone-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,29,9,.86);
  color: rgba(255,255,255,.55);
  font: 9px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateZ(92px);
  transition: color 420ms, border-color 420ms, background 420ms;
}
.campus-zone.is-active .campus-zone-label { border-color: rgba(255,194,14,.7); background: var(--amber); color: var(--ink); }

.campus-block {
  inset: auto;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  height: var(--d);
  transform: translateZ(var(--base, 0px));
}
.campus-block > i { position: absolute; display: block; border: 1px solid rgba(9,29,14,.25); backface-visibility: hidden; transition: opacity 520ms, background 520ms; }
.campus-block > i:nth-child(1) { inset: 0; background: var(--block-top, #e9ece6); transform: translateZ(var(--h)); }
.campus-block > i:nth-child(2) { top: var(--d); left: 0; width: var(--w); height: var(--h); background: var(--block-front, #bcc9bc); transform: rotateX(90deg); transform-origin: 0 0; }
.campus-block > i:nth-child(3) { top: 0; left: var(--w); width: var(--d); height: var(--h); background: var(--block-side, #94a794); transform: rotateZ(90deg) rotateX(90deg); transform-origin: 0 0; }
.campus-zone:not(.is-active) .campus-block > i,
.campus-zone:not(.is-active) .campus-media-panel,
.campus-zone:not(.is-active) .campus-tank,
.campus-zone:not(.is-active) .campus-solar,
.campus-zone:not(.is-active) .campus-bars,
.campus-zone:not(.is-active) .campus-arm,
.campus-zone:not(.is-active) .campus-racks,
.campus-zone:not(.is-active) .campus-agv { opacity: .46; }
.campus-block--light { --block-top: #edf0eb; --block-front: #bac7ba; --block-side: #8da18f; }
.campus-block--glass { --block-top: rgba(111,228,93,.38); --block-front: rgba(51,129,58,.62); --block-side: rgba(24,87,36,.76); }
.campus-block--dark { --block-top: #3e4940; --block-front: #202c23; --block-side: #142018; }
.campus-block--signal { --block-top: #ffc20e; --block-front: #b47c00; --block-side: #765200; }
.campus-block--screen { --block-top: #443944; --block-front: #261d26; --block-side: #171117; }
.campus-block--warehouse { --block-top: repeating-linear-gradient(90deg, #e8ece7 0 24px, #d5ddd5 24px 29px); --block-front: #aebcaf; --block-side: #829786; }

.campus-media-panel {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  height: var(--d);
  overflow: hidden;
  border: 4px solid #dfe7df;
  border-radius: 4px;
  background: #16271a;
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.2);
  transform: translateZ(var(--z));
  transition: opacity 520ms;
}
.campus-media-panel img { width: 100%; height: 100%; object-fit: cover; opacity: .84; }
.campus-media-panel::after { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,194,14,.18), transparent 54%); content: ""; }

.campus-tank {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border: 5px solid #bdcbbb;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #8dd6c2, #276d62 68%, #163a35);
  box-shadow: inset 0 0 0 7px rgba(0,29,9,.3), 0 0 0 1px rgba(0,0,0,.3);
  transform: translateZ(var(--z));
  transition: opacity 520ms;
}
.campus-solar { position: absolute; top: var(--y); left: var(--x); display: flex; gap: 8px; transform: translateZ(18px) rotateZ(var(--angle)); transition: opacity 520ms; }
.campus-solar i { width: 54px; height: 72px; border: 3px solid #b9c7ba; background: repeating-linear-gradient(90deg, #234961 0 12px, #386c81 12px 14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.campus-bars { position: absolute; top: var(--y); left: var(--x); display: flex; gap: 9px; align-items: flex-end; height: 90px; transform: translateZ(12px); transition: opacity 520ms; }
.campus-bars i { width: 18px; height: var(--bar); background: linear-gradient(#ffc20e, #7a5700); box-shadow: 6px 6px 0 rgba(0,0,0,.22); }

.campus-arm { position: absolute; top: var(--y); left: var(--x); width: 120px; height: 90px; transform: translateZ(72px); transition: opacity 520ms; }
.campus-arm i { position: absolute; display: block; height: 12px; border-radius: 999px; background: #ffc20e; box-shadow: 0 4px 0 #8f6400; transform-origin: 7px 50%; }
.campus-arm i:nth-child(1) { top: 56px; left: 4px; width: 62px; transform: rotateZ(-58deg); }
.campus-arm i:nth-child(2) { top: 12px; left: 37px; width: 58px; transform: rotateZ(28deg); }
.campus-arm i:nth-child(3) { top: 34px; left: 82px; width: 40px; transform: rotateZ(78deg); }
.campus-arm b { position: absolute; top: 61px; left: 0; width: 26px; height: 26px; border: 6px solid #b6c4b7; border-radius: 50%; background: #263127; }
.campus-twin-outline { position: absolute; top: 26px; left: 14px; width: 322px; height: 224px; border: 2px dashed rgba(111,228,93,.7); border-radius: 14px; box-shadow: 0 0 26px rgba(111,228,93,.14); transform: translateZ(116px); animation: campus-twin-pulse 2.8s ease-in-out infinite; }
@keyframes campus-twin-pulse { 50% { border-color: rgba(255,194,14,.8); box-shadow: 0 0 40px rgba(255,194,14,.18); } }

.campus-racks { position: absolute; top: var(--y); left: var(--x); display: grid; grid-template-columns: repeat(4, 46px); gap: 12px; transform: translateZ(18px); transition: opacity 520ms; }
.campus-racks i { width: 46px; height: 62px; border: 2px solid #6b7d6d; background: repeating-linear-gradient(0deg, #263128 0 7px, #86b789 7px 9px); box-shadow: 7px 7px 0 rgba(0,0,0,.26); }
.campus-agv { position: absolute; top: var(--y); left: var(--x); width: 52px; height: 30px; border: 3px solid #392a00; border-radius: 8px; background: #ffc20e; box-shadow: 0 8px 0 #684900; transform: translateZ(12px); transition: opacity 520ms; }
.campus-agv i { position: absolute; inset: 6px; border: 1px solid rgba(38,29,38,.6); border-radius: 4px; }

.campus-route {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--length);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,194,14,.25), #ffc20e, rgba(111,228,93,.7));
  box-shadow: 0 0 16px rgba(255,194,14,.28);
  opacity: .16;
  transform: translateZ(9px) rotateZ(var(--angle)) scaleX(.16);
  transform-origin: 0 50%;
  transition: opacity 500ms, transform 900ms var(--ease-morph);
}
.campus-zone.is-active .campus-route { opacity: 1; transform: translateZ(9px) rotateZ(var(--angle)) scaleX(1); }
.campus-packet {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: #ffc20e;
  box-shadow: 0 0 16px rgba(255,194,14,.55);
  opacity: 0;
  transform: translate3d(0,0,12px);
}
.campus-zone.is-active .campus-packet { animation: campus-packet-run 3.6s linear var(--delay) infinite; }
@keyframes campus-packet-run {
  0% { opacity: 0; transform: translate3d(0,0,12px) scale(.7); }
  8%, 84% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--travel),0,12px) scale(1.15); }
}

/* Generated 3D engineering town */
.campus-viewport { perspective: none; perspective-origin: 50% 50%; }
.campus-camera {
  top: 52%;
  left: 37%;
  width: 1320px;
  height: 743px;
  transform: translate3d(calc(-50% - 34px), calc(-50% + 26px), 0) scale(.78);
}
.campus-pointer,
.campus-world,
.campus-plane,
.campus-zone { transform-style: flat; }
.campus-world { transform: none; transform-origin: 50% 50%; }
.campus-plane {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: #00300f;
  box-shadow: 0 38px 120px rgba(0,0,0,.38), 0 0 0 1px rgba(226,239,225,.1);
}
.campus-plane::after {
  z-index: 8;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0,19,6,.04), transparent 56%, rgba(0,13,4,.28)),
    linear-gradient(180deg, rgba(0,18,6,.08), transparent 26%, rgba(0,12,4,.22));
  transform: none;
}
.town-scene__master {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}
.town-scene__master img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.004);
  animation: town-scene-breathe 16s ease-in-out infinite alternate;
}
@keyframes town-scene-breathe { to { transform: scale(1.012); } }
.town-scene__depth {
  position: absolute;
  z-index: 2;
  inset: -8%;
  display: block;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.12), transparent 24%),
    radial-gradient(circle at 74% 74%, rgba(255,194,14,.055), transparent 25%);
  opacity: .48;
  animation: town-depth-drift 14s ease-in-out infinite alternate;
}
@keyframes town-depth-drift { to { transform: translate3d(1.4%, -.9%, 0); opacity: .64; } }
.campus-grid,
.campus-road,
.campus-ring,
.campus-block,
.campus-media-panel,
.campus-tank,
.campus-solar,
.campus-bars,
.campus-arm,
.campus-twin-outline,
.campus-racks,
.campus-agv,
.campus-route,
.campus-packet,
.campus-zone > * { display: none; }
.campus-zone {
  z-index: 6;
  inset: auto;
  width: 47%;
  height: 47%;
  border-radius: 50%;
  transform: none !important;
  transition: none;
}
.campus-zone--foundation { top: 1%; left: 1%; --town-pulse-x: 47%; --town-pulse-y: 43%; }
.campus-zone--evidence { top: 1%; right: 1%; --town-pulse-x: 57%; --town-pulse-y: 54%; }
.campus-zone--twin { right: 1%; bottom: 1%; --town-pulse-x: 43%; --town-pulse-y: 47%; }
.campus-zone--operations { bottom: 1%; left: 1%; --town-pulse-x: 55%; --town-pulse-y: 48%; }
.campus-zone::before {
  position: absolute;
  inset: 2%;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,194,14,.22), rgba(255,194,14,.06) 34%, transparent 68%);
  content: "";
  opacity: 0;
  transform: none;
  transition: opacity 720ms var(--ease-soft);
}
.campus-zone::after {
  position: absolute;
  top: var(--town-pulse-y);
  left: var(--town-pulse-x);
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255,194,14,.5), 0 0 24px rgba(255,194,14,.8);
  content: "";
  opacity: 0;
  transition: opacity 420ms;
}
.campus-zone.is-active::before,
.campus-zone.is-active::after { opacity: 1; }
.campus-zone.is-active::after { animation: town-district-pulse 2.4s ease-out infinite; }
@keyframes town-district-pulse {
  70%, 100% { box-shadow: 0 0 0 18px rgba(255,194,14,0), 0 0 30px rgba(255,194,14,.55); }
}
.town-core {
  position: absolute;
  z-index: 5;
  top: 48.2%;
  left: 50%;
  display: block;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,194,14,.48);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255,194,14,.16), inset 0 0 24px rgba(255,194,14,.1);
  transform: translate3d(-50%,-50%,0);
  animation: town-core-breathe 3.8s ease-in-out infinite;
}
@keyframes town-core-breathe { 50% { transform: translate3d(-50%,-50%,0) scale(1.12); opacity: .72; } }
.town-flow {
  position: absolute;
  z-index: 4;
  top: 48.2%;
  left: 50%;
  display: block;
  width: 27%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,194,14,.08), rgba(255,194,14,.76), rgba(111,228,93,.28));
  opacity: .08;
  transform-origin: 0 50%;
  transition: opacity 520ms var(--ease-soft);
}
.town-flow::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255,194,14,.8);
  content: "";
  opacity: 0;
  transform: translate3d(-50%,-50%,0);
}
.town-flow--education { transform: rotate(-139deg); }
.town-flow--professional { transform: rotate(-41deg); }
.town-flow--research { transform: rotate(41deg); }
.town-flow--skills { transform: rotate(139deg); }
.campus-sequence[data-campus-active="0"] .town-flow--education,
.campus-sequence[data-campus-active="1"] .town-flow--professional,
.campus-sequence[data-campus-active="2"] .town-flow--research,
.campus-sequence[data-campus-active="3"] .town-flow--skills { opacity: .92; }
.campus-sequence[data-campus-active="0"] .town-flow--education::after,
.campus-sequence[data-campus-active="1"] .town-flow--professional::after,
.campus-sequence[data-campus-active="2"] .town-flow--research::after,
.campus-sequence[data-campus-active="3"] .town-flow--skills::after {
  opacity: 1;
  animation: town-flow-travel 2.8s linear infinite;
}
@keyframes town-flow-travel { to { left: 100%; } }

/* Scroll-assembled town sequence */
.campus-camera {
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(.92);
}
.campus-plane {
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.campus-plane::after {
  z-index: 30;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.04), transparent 48%, rgba(0,0,0,.18)),
    linear-gradient(180deg, rgba(0,0,0,.06), transparent 72%, rgba(0,0,0,.28));
}
.town-scene__master {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 26;
  overflow: hidden;
  opacity: 1;
}
.town-scene__master img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: none;
  animation: none;
}
.town-scene__depth { z-index: 27; }
.town-core,
.town-flow { z-index: 28; }
.campus-zone { z-index: 29; }
.story-shade {
  opacity: var(--town-copy-opacity, 0);
  transition: none;
  will-change: opacity;
}
.campus-sequence:not(.is-copy-visible):not([data-campus-overview="true"]) .campus-hotspots { pointer-events: none; }

/* Real-time 3D engineering town */
.town-3d-stage {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  background: #010603;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms var(--ease-soft);
}
.town-3d-stage::before {
  position: absolute;
  z-index: 0;
  inset: -28px;
  background: linear-gradient(rgba(0,12,8,.46), rgba(0,5,3,.7)), url("../images/town/marcel-systems-town-empty.webp") center / cover no-repeat;
  content: "";
  filter: blur(18px) saturate(.78) brightness(.72);
  transform: scale(1.06);
}
.town-3d-stage canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: 0;
  pointer-events: none;
  touch-action: pan-y;
}
.campus-sequence.is-town-3d-ready .town-3d-stage { opacity: 1; }
.campus-sequence.is-town-3d-ready .town-3d-stage::before { content: none; }
.campus-sequence.is-town-3d-ready .campus-atmosphere { display: none; }
.town-3d-fallback {
  z-index: 1;
  opacity: 1;
  transition: opacity 800ms var(--ease-soft), visibility 800ms;
}
.town-3d-fallback.campus-camera { top: 0; left: 0; width: 100%; height: 100%; transform: none; }
.campus-sequence.is-town-3d-ready .town-3d-fallback {
  opacity: 0;
  visibility: hidden;
}
.town-3d-fallback .campus-plane {
  overflow: hidden;
  background: #020202;
  box-shadow: none;
}
.js .town-3d-fallback .town-scene__master { opacity: 1; }
.town-3d-fallback .town-scene__master img {
  object-fit: cover;
  filter: none;
  transform: translate3d(var(--fallback-x, 0), var(--fallback-y, 0), 0) scale(var(--fallback-scale, 1));
  transform-origin: 50% 50%;
  will-change: transform;
  -webkit-mask-image: none;
  mask-image: none;
}
.campus-sequence.is-town-3d-ready .town-core,
.campus-sequence.is-town-3d-ready .town-flow,
.campus-sequence.is-town-3d-ready .campus-zone { display: none; }

.campus-hotspots { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.campus-hotspot {
  position: absolute;
  top: var(--hotspot-y, 43%);
  left: var(--hotspot-x, 18%);
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 17px 8px 8px;
  border: 1px solid rgba(112,220,255,.56);
  border-radius: 999px;
  background: rgba(3,13,20,.86);
  color: var(--white);
  box-shadow: 0 16px 45px rgba(0,0,0,.28), 0 0 26px rgba(54,184,232,.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font: inherit;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate3d(-50%, calc(-50% + 20px), 0) scale(.94);
  transition: opacity 420ms var(--ease-out), transform 700ms var(--ease-morph), box-shadow 300ms;
}
.campus-hotspot:nth-child(1) { --hotspot-x: 27%; --hotspot-y: 32%; }
.campus-hotspot:nth-child(2) { --hotspot-x: 73%; --hotspot-y: 31%; }
.campus-hotspot:nth-child(3) { --hotspot-x: 73%; --hotspot-y: 69%; }
.campus-hotspot:nth-child(4) { --hotspot-x: 27%; --hotspot-y: 70%; }
.campus-hotspot[data-offscreen] { opacity: 0 !important; pointer-events: none !important; }
.campus-hotspot.is-active { opacity: 1; pointer-events: auto; transform: translate3d(-50%,-50%,0) scale(1); }
.campus-hotspot.is-active[aria-hidden="true"] { pointer-events: none; }
.campus-hotspot.is-selected {
  border-color: #70dcff;
  box-shadow: 0 0 0 3px rgba(112,220,255,.18), 0 24px 68px rgba(0,0,0,.34), 0 0 36px rgba(54,184,232,.18);
  transform: translate3d(-50%,-50%,0) scale(1.035);
}
.campus-hotspot:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.campus-hotspot > i { position: relative; display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 50%; background: #70dcff; box-shadow: 0 0 20px rgba(112,220,255,.35); }
.campus-hotspot > i::before { width: 8px; height: 8px; border-radius: 50%; background: #04131c; content: ""; }
.campus-hotspot > i::after { position: absolute; inset: 0; border: 1px solid #70dcff; border-radius: 50%; content: ""; animation: campus-hotspot-pulse 2.5s ease-out infinite; }
@keyframes campus-hotspot-pulse { to { inset: -13px; opacity: 0; } }
.campus-hotspot span { display: grid; gap: 2px; }
.campus-hotspot small { font: 8px "IBM Plex Mono", monospace; letter-spacing: .09em; text-transform: uppercase; opacity: .55; }
.campus-hotspot strong { max-width: 190px; font-size: 13px; line-height: 1.05; }

.campus-hud { position: absolute; z-index: 6; bottom: 34px; left: var(--gutter); display: flex; align-items: flex-end; gap: 34px; color: var(--white); }
.campus-hud > p { display: grid; gap: 4px; min-width: 126px; }
.campus-hud > p span { font: 8px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.campus-hud > p strong { font-size: 15px; font-weight: 500; }
.campus-sequence[data-campus-overview="true"] .campus-hud { opacity: 0; pointer-events: none; transform: translateY(-8px); }

.story-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.01) 0%, rgba(0,0,0,.06) 44%, rgba(0,0,0,.76) 72%, rgba(0,0,0,.96) 100%),
    linear-gradient(180deg, rgba(0,0,0,.18), transparent 26%, transparent 70%, rgba(0,0,0,.58));
}
.story-steps {
  position: absolute;
  z-index: 4;
  inset: 0;
  height: auto;
  margin: 0;
  pointer-events: none;
}
.story-step {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(660px, 48vw);
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  padding: 108px var(--gutter) 82px 0;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0,48px,0);
  transition: none;
  will-change: opacity, transform;
}
.story-step.active { opacity: 1; pointer-events: auto; transform: translate3d(0,0,0); }
.campus-sequence[data-campus-overview="true"] .story-step {
  transition: opacity 460ms var(--ease-out), transform 680ms var(--ease-morph);
}
.campus-sequence[data-campus-overview="true"].is-copy-visible .story-steps { z-index: 7; }
.campus-sequence[data-campus-overview="true"].is-copy-visible .campus-hud { z-index: 8; }
.campus-sequence[data-campus-overview="true"] .story-step.active {
  padding-left: clamp(28px, 3.5vw, 62px);
  border-left: 1px solid rgba(255,194,14,.28);
  background: linear-gradient(90deg, rgba(2,2,2,.84), rgba(2,2,2,.96) 22%, #020202 100%);
  box-shadow: -34px 0 80px rgba(0,0,0,.3);
}
.story-step h2 { margin: 22px 0 24px; font-size: clamp(50px, 5.7vw, 92px); font-weight: 500; line-height: .86; letter-spacing: -.065em; }
.story-step p { max-width: 520px; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.3; }
.story-step .timeline-logos,
.story-step .action-pill { pointer-events: auto; }
.story-step .timeline-logos .entity-logo { width: 118px; height: 58px; }
.story-step .action-pill { margin-top: 38px; align-self: flex-start; }
.story-step__close {
  display: none;
  min-height: 44px;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.5);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: 9px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color 220ms, color 220ms, transform 320ms var(--ease-out);
}
.campus-sequence[data-campus-overview="true"] .story-step__close { display: inline-flex; }
.story-step__close:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
@media (min-width: 761px) and (min-height: 561px) {
  .story-step:last-child { top: 20px; }
}
.campus-sequence.is-motion-paused .campus-atmosphere i,
.campus-sequence.is-motion-paused .campus-packet,
.campus-sequence.is-motion-paused .campus-twin-outline,
.campus-sequence.is-motion-paused .campus-hotspot > i::after,
.campus-sequence.is-motion-paused .town-scene__master img,
.campus-sequence.is-motion-paused .town-scene__depth,
.campus-sequence.is-motion-paused .town-core,
.campus-sequence.is-motion-paused .town-flow::after,
.campus-sequence.is-motion-paused .campus-zone::after { animation-play-state: paused; }

@media (hover: hover) and (pointer: fine) {
  .campus-hotspot:hover { box-shadow: 0 20px 58px rgba(0,0,0,.28); transform: translate3d(-50%,calc(-50% - 4px),0) scale(1.015); }
  .story-step__close:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
}

/* Home chapters */
.process-section { padding: clamp(110px, 14vw, 220px) 0 var(--gutter); }
.phase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); padding: 0 var(--gutter); }
.phase-card--wide { grid-column: 1 / -1; }
.phase-card {
  position: relative;
  display: flex;
  min-height: 690px;
  flex-direction: column;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: background 350ms, color 350ms, transform 500ms var(--ease-out);
}
.phase-card figure { height: 390px; overflow: hidden; border-radius: 12px; }
.phase-card figure img { height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.phase-card-top { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; margin: 20px 2px 42px; }
.phase-card-top i { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-style: normal; font-size: 18px; transition: transform 500ms var(--ease-morph); }
.phase-card h3 { max-width: 560px; margin-bottom: 20px; font-size: clamp(28px, 3.1vw, 48px); font-weight: 500; line-height: .98; letter-spacing: -.05em; }
.phase-card p { max-width: 470px; margin-top: auto; opacity: .65; }

.selected-work { padding: clamp(110px, 13vw, 200px) 0 var(--gutter); }
.work-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 70px var(--gutter); padding: 0 var(--gutter); }
.work-tile { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; }
.work-tile img { grid-column: 1 / 3; height: min(61vw, 650px); max-height: 650px; object-fit: cover; border-radius: var(--radius); filter: saturate(.82); transition: filter 500ms, transform 700ms var(--ease-out); }
.work-tile:nth-child(even) { margin-top: 120px; }
.work-tile > span { margin-top: 14px; color: var(--amber); }
.work-tile > b { margin-top: 14px; opacity: .6; text-align: right; font-weight: 400; }
.work-tile h3 { grid-column: 1 / 3; font-size: clamp(32px, 4vw, 63px); font-weight: 500; line-height: .94; letter-spacing: -.055em; }

.outcomes-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: clamp(80px, 10vw, 150px) var(--gutter); }
.outcomes-strip > div { min-height: 185px; padding: 0 25px; border-left: 1px solid var(--line); }
.outcomes-strip > div:first-child { padding-left: 0; border-left: 0; }
.outcomes-strip strong { display: block; font-size: clamp(44px, 5.2vw, 82px); font-weight: 500; line-height: 1; letter-spacing: -.065em; }
.outcomes-strip span { display: block; max-width: 170px; margin-top: 20px; font-size: 14px; opacity: .63; }

/* Experience */
.experience-sequence { position: relative; background: var(--paper); }
.experience-chapter-intro {
  position: relative;
  display: flex;
  min-height: min(74svh, 760px);
  align-items: flex-end;
  padding-top: clamp(110px, 14vw, 190px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 191, 55, .2), transparent 31%),
    linear-gradient(135deg, var(--paper) 0%, #eceee7 100%);
}
.experience-chapter-intro .section-lead { position: relative; z-index: 1; width: 100%; }
.experience-chapter-intro__index {
  position: absolute;
  top: clamp(45px, 7vw, 100px);
  right: var(--gutter);
  color: transparent;
  font-size: clamp(150px, 25vw, 390px);
  font-weight: 600;
  line-height: .72;
  letter-spacing: -.09em;
  opacity: .12;
  -webkit-text-stroke: 1px var(--ink);
  pointer-events: none;
  user-select: none;
}
.chapter-dock {
  position: fixed;
  z-index: 60;
  top: 108px;
  right: var(--gutter);
  width: 270px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 17px;
  background: rgba(246,247,243,.82);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(.96);
  backdrop-filter: blur(18px);
  transition: opacity 350ms, transform 500ms var(--ease-morph);
}
.chapter-dock.is-active { opacity: 1; transform: translateY(0) scale(1); }
.drawer-overlay-open .chapter-dock { opacity: 0; transform: translateY(-12px) scale(.96); }
.chapter-dock > span { font: 9px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .58; }
.chapter-dock > strong { display: grid; grid-template-columns: 35px 1fr; margin: 10px 0 13px; font-size: 13px; }
.chapter-dock > strong i { font-style: normal; color: var(--green); }
.chapter-dock > strong b { font-weight: 600; }
.chapter-dock > div { display: grid; grid-template-columns: repeat(var(--dock-count, 6), 1fr); gap: 5px; }
.chapter-dock > div i { height: 2px; background: rgba(38,29,38,.2); transition: background 250ms; }
.chapter-dock > div i.active { background: var(--green); }

.role-stack { position: relative; height: calc(var(--role-count, 6) * 100svh); overflow: clip; background: var(--deep-green); }
.role-track { position: sticky; top: 0; display: flex; width: max-content; height: 100svh; will-change: transform; }
.role-panel { position: relative; flex: 0 0 100vw; width: 100vw; height: 100svh; overflow: hidden; background: var(--deep-green); }
.role-panel::after { position: absolute; z-index: 4; inset: 0; background: rgba(0, 8, 3, .46); content: ""; opacity: 0; pointer-events: none; transition: opacity 360ms var(--ease-out); }
.role-panel.drawer-open::after { opacity: 1; pointer-events: auto; }
.role-media { position: absolute; inset: 0; }
.role-media img { height: 100%; object-fit: cover; transform: scale(1.09) translate3d(var(--role-x, 0), var(--role-y, 0), 0); will-change: transform; }
.role-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,20,6,.82), rgba(0,18,5,.23) 64%, rgba(0,18,5,.54)); }
.role-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) 62px;
  color: var(--white);
}
.role-kicker { display: flex; justify-content: space-between; width: min(800px, 63vw); padding-bottom: 13px; border-bottom: 1px solid var(--line-light); }
.role-content h2 { max-width: 1050px; margin: 27px 0 31px; font-size: clamp(55px, 7.9vw, 128px); font-weight: 500; line-height: .82; letter-spacing: -.068em; }
.role-summary { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(130px, .5fr) minmax(300px, 1.4fr); gap: 24px; width: min(1050px, 76vw); align-items: start; }
.role-summary strong { font-size: 17px; }
.role-summary .entity-logo { width: 136px; height: 56px; }
.role-summary span, .role-summary p { font-size: 14px; line-height: 1.4; }
.role-summary span { opacity: .65; }
.role-content .action-pill { align-self: flex-start; margin-top: 29px; }
.role-drawer {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  width: min(540px, calc(100vw - 28px));
  flex-direction: column;
  padding: 58px 36px 35px;
  overflow-y: auto;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 30px));
  transition: transform 600ms var(--ease-morph);
}
.role-panel.drawer-open .role-drawer { transform: translateX(0); }
.drawer-close { position: absolute; top: 18px; right: 18px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 25px; line-height: 1; }
.drawer-overlay-open .site-header > * { pointer-events: none; }
.role-drawer h3 { margin: 24px 0 20px; font-size: clamp(36px, 4vw, 58px); font-weight: 500; line-height: .95; letter-spacing: -.055em; }
.role-drawer > p { font-size: 17px; line-height: 1.45; opacity: .72; }
.role-drawer ul { margin: 28px 0; border-top: 1px solid var(--line); }
.role-drawer li { padding: 15px 0 15px 24px; border-bottom: 1px solid var(--line); font-size: 14px; position: relative; }
.role-drawer li::before { position: absolute; left: 0; content: "↳"; color: var(--green); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span { padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; font: 10px "IBM Plex Mono", monospace; line-height: 1; text-transform: uppercase; }
.supervisor { margin-top: 20px; font-size: 12px !important; }

.organizations { padding: clamp(110px, 14vw, 210px) 0; }
.organization-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); padding: 0 var(--gutter); }
.organization-grid > .organization-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.organization-card { min-height: 390px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.organization-card > span { font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.organization-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.organization-card h3 { max-width: 580px; margin: 80px 0 20px; font-size: clamp(38px, 4.7vw, 72px); font-weight: 500; line-height: .9; letter-spacing: -.06em; }
.organization-card p { max-width: 520px; opacity: .68; }

/* Education */
.education-record { padding: clamp(110px, 14vw, 210px) 0; }
.education-page .education-record { padding-bottom: 0; }
.education-chapter {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: var(--gutter);
  align-items: stretch;
  padding: 0 var(--gutter) clamp(100px, 12vw, 180px);
}
.education-chapter.reverse { grid-template-columns: .92fr 1.08fr; }
.education-page .education-chapter:last-child { padding-bottom: 0; }
.education-chapter.reverse figure { order: 2; }
.education-chapter figure { min-height: 680px; overflow: hidden; border-radius: var(--radius); }
.education-chapter figure img { height: 100%; object-fit: cover; transition: transform 1000ms var(--ease-out); }
.education-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 10px 12px; }
.chapter-meta { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.education-copy h3 { margin: 32px 0 17px; font-size: clamp(42px, 5.2vw, 80px); font-weight: 500; line-height: .89; letter-spacing: -.063em; }
.education-copy > strong { margin-bottom: 27px; font-size: 16px; color: var(--green); }
.education-affiliation { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 27px; }
.education-affiliation > strong { font-size: 16px; color: var(--green); }
.education-affiliation .entity-logo-row { max-width: 100%; }
.education-copy > p { max-width: 610px; margin-top: 13px; font-size: 17px; line-height: 1.46; opacity: .72; }
.education-copy dl { margin-top: 40px; border-top: 1px solid var(--line); }
.education-copy dl div { display: grid; grid-template-columns: 110px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.education-copy dt { font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.education-copy dd { font-size: 14px; }

.recognition-section { padding: clamp(110px, 14vw, 200px) 0; }
.education-page .cv-achievements-section { padding-top: clamp(72px, 8vw, 120px); }
.recognition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); padding: 0 var(--gutter); }
.recognition-feature { position: relative; min-height: 670px; overflow: hidden; border-radius: var(--radius); }
.recognition-feature img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease-out); }
.recognition-feature::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,22,7,.84)); content: ""; }
.recognition-feature > div { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 30px; }
.recognition-feature .entity-logo-row { margin-bottom: 18px; }
.recognition-feature span { font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; color: var(--amber); text-transform: uppercase; }
.recognition-feature h3 { max-width: 630px; margin: 16px 0; font-size: clamp(38px, 4vw, 62px); font-weight: 500; line-height: .92; letter-spacing: -.056em; }
.recognition-feature p { max-width: 520px; opacity: .75; }
.recognition-feature strong { position: absolute; right: 27px; bottom: 28px; font-size: 28px; }

.cv-achievements-section { background: var(--paper); color: var(--ink); }
.cv-achievement-list {
  margin: 0 var(--gutter);
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.cv-achievement-row {
  display: grid;
  min-height: 144px;
  grid-template-columns: 48px minmax(150px, 210px) minmax(0, 1fr) minmax(130px, .34fr);
  gap: clamp(14px, 2vw, 30px);
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.cv-achievement-row > span:first-child {
  align-self: start;
  padding-top: 6px;
  color: var(--green);
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}
.cv-achievement-logos {
  display: flex;
  min-height: 58px;
  grid-column: 2;
  align-items: center;
  gap: 7px;
}
.cv-achievement-logos .entity-logo { width: 92px; height: 56px; }
.cv-achievement-logos .entity-logo.entity-logo--csu { width: 180px; height: 68px; }
.cv-achievement-row h3 {
  min-width: 0;
  grid-column: 3;
  font-size: clamp(25px, 2.7vw, 42px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.cv-achievement-row--no-logo h3 { grid-column: 2 / 4; }
.cv-achievement-row h3 small {
  display: block;
  margin-top: 10px;
  font: 9px "IBM Plex Mono", monospace;
  letter-spacing: .06em;
  line-height: 1.45;
  text-transform: uppercase;
  opacity: .65;
}
.cv-achievement-meta {
  display: flex;
  grid-column: 4;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
  justify-self: end;
  text-align: right;
}
.cv-achievement-meta time,
.cv-achievement-meta strong { font: 10px "IBM Plex Mono", monospace; letter-spacing: .07em; line-height: 1.4; text-transform: uppercase; }
.cv-achievement-meta time { opacity: .65; }
.cv-achievement-meta strong { color: var(--green); font-weight: 500; }

.certification-section { padding: clamp(110px, 14vw, 200px) 0; }
.education-light-panel { border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.certification-list { padding: 0 var(--gutter); }
.cert-row { display: grid; grid-template-columns: 70px 1.4fr 1fr; gap: 20px; align-items: center; min-height: 112px; border-top: 1px solid var(--line); }
.cert-row:last-child { border-bottom: 1px solid var(--line); }
.cert-row h3 { font-family: "Inter Tight", Arial, sans-serif; font-size: clamp(22px, 2.5vw, 37px); font-weight: 500; letter-spacing: -.04em; text-transform: none; }
.cert-row p { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; justify-self: end; text-align: right; opacity: .75; }
.issuer-logos { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cert-row .entity-logo { height: 44px; width: 116px; padding: 5px 7px; }

/* Skills directory */
.skills-rows-page main { background: #06130d; }
.skills-directory-hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  padding-top: var(--header-height);
  background: #050a08;
  color: var(--white);
  isolation: isolate;
}
.skills-directory-hero__galaxy,
.skills-directory-hero__galaxy::after,
.skills-directory-hero__ambient { position: absolute; inset: 0; }
.skills-directory-hero__galaxy { z-index: -3; overflow: hidden; }
.skills-directory-hero__galaxy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: brightness(.34) contrast(1.16) saturate(.62);
  animation: skills-galaxy-drift 24s ease-in-out infinite alternate;
  transform: scale(1.06);
  will-change: transform;
}
.skills-directory-hero__galaxy::after {
  background:
    radial-gradient(circle at 38% 45%, transparent 0 18%, rgba(2, 8, 5, .16) 47%, rgba(2, 8, 5, .72) 100%),
    linear-gradient(90deg, rgba(2, 9, 6, .78), rgba(2, 9, 6, .12) 61%, rgba(2, 9, 6, .52)),
    linear-gradient(180deg, rgba(1, 7, 4, .52), transparent 31%, #06130d 100%);
  content: "";
}
.skills-directory-hero__galaxy i {
  position: absolute;
  z-index: 2;
  width: 70%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(226, 226, 221, .17), rgba(160, 166, 163, .07) 42%, transparent 72%);
  filter: blur(58px);
  mix-blend-mode: screen;
  opacity: .44;
  will-change: transform;
}
.skills-directory-hero__galaxy i:first-of-type { top: 3%; left: -21%; animation: skills-fog-one 18s ease-in-out infinite alternate; }
.skills-directory-hero__galaxy i:last-of-type { right: -24%; bottom: -8%; animation: skills-fog-two 25s ease-in-out infinite alternate; }
.skills-directory-hero__ambient { z-index: -2; overflow: hidden; pointer-events: none; }
.skills-directory-hero__ambient i {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  filter: blur(2px);
  opacity: .34;
  animation: skills-star-pulse 7s ease-in-out infinite alternate;
}
.skills-directory-hero__ambient i:nth-child(1) { top: 24%; left: 72%; width: 2px; height: 2px; box-shadow: -31vw 11vh rgba(255,255,255,.5), 11vw 22vh rgba(255,255,255,.55), -45vw 38vh rgba(255,255,255,.38), 19vw -5vh rgba(255,255,255,.4); }
.skills-directory-hero__ambient i:nth-child(2) { top: 48%; left: 43%; width: 3px; height: 3px; box-shadow: 38vw -22vh rgba(255,255,255,.38), -32vw 8vh rgba(255,255,255,.48), 27vw 23vh rgba(255,255,255,.35); animation-delay: -2.7s; }
.skills-directory-hero__ambient i:nth-child(3) { top: 17%; left: 21%; width: 1px; height: 1px; box-shadow: 59vw 37vh rgba(255,255,255,.6), 23vw 9vh rgba(255,255,255,.44), -8vw 49vh rgba(255,255,255,.32); animation-delay: -4.1s; }
.skills-directory-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(82svh - var(--header-height));
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(65px, 9vw, 125px) var(--gutter) 48px;
}
.skills-directory-hero__copy .display-title { max-width: 1320px; font-size: clamp(76px, 11.2vw, 176px); }
.skills-directory-hero__copy .display-title span { display: block; }
.skills-directory-hero__copy > p { width: min(560px, 42vw); margin: 42px 0 0 auto; font-size: clamp(18px, 1.7vw, 25px); line-height: 1.28; letter-spacing: -.025em; }
.skills-directory-hero__copy .scroll-cue { margin-top: 42px; }

.skills-directory { padding: 0 var(--gutter) clamp(110px, 13vw, 190px); background: #06130d; color: var(--white); }
.skill-row {
  --carousel-gap: 14px;
  position: relative;
  display: grid;
  min-height: clamp(500px, 58svh, 680px);
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
  border-top: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
}
.skill-row:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.skill-row::before {
  position: absolute;
  z-index: 2;
  top: -1px;
  left: 0;
  width: min(220px, 24%);
  height: 2px;
  background: var(--skill-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out) 120ms;
}
.skill-row.is-visible::before { transform: scaleX(1); }
.skill-row__copy { display: flex; min-width: 0; flex-direction: column; padding: clamp(48px, 6vw, 82px) clamp(36px, 5.5vw, 88px) clamp(48px, 6vw, 82px) 0; }
.skill-row__index { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--skill-accent); font: 10px "IBM Plex Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.skill-row__index small { color: var(--white); opacity: .48; }
.skill-row h2 { max-width: 9ch; margin: auto 0 23px; font-size: clamp(64px, 7.2vw, 116px); font-weight: 500; line-height: .82; letter-spacing: -.068em; text-wrap: balance; }
#skill-simulation-optimization h2 { max-width: 12ch; font-size: clamp(54px, 6.4vw, 104px); line-height: .84; }
.skill-row__copy > p { max-width: 650px; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; opacity: .7; }
.skill-row__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; padding: 0; list-style: none; }
.skill-row__tags li { min-height: 31px; padding: 8px 11px 7px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: rgba(255,255,255,.72); font: 9px "IBM Plex Mono", monospace; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }

.skill-row__carousel { display: grid; min-width: 0; grid-template-rows: auto 1fr auto; overflow: hidden; padding: clamp(48px, 6vw, 82px) 0 clamp(48px, 6vw, 82px) clamp(30px, 4vw, 64px); border-left: 1px solid rgba(255,255,255,.14); }
.skill-row__carousel-head { display: flex; min-height: 44px; align-items: flex-start; justify-content: space-between; gap: 20px; padding-right: 2px; font: 10px "IBM Plex Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.skill-row__carousel-head > span { color: var(--skill-accent); }
.skill-row__carousel-head button { visibility: hidden; min-width: 70px; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white); cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color 220ms, border-color 220ms; }
.skill-row__carousel.has-loop .skill-row__carousel-head button { visibility: visible; }
.skill-row__viewport {
  align-self: center;
  min-width: 0;
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.skill-row__track { display: flex; width: max-content; gap: var(--carousel-gap); transform: translate3d(0,0,0); will-change: transform; }
.skill-row__carousel.has-loop .skill-row__track { animation: skill-row-marquee var(--carousel-duration, 24s) linear infinite; }
.skill-row:nth-child(even) .skill-row__track { animation-direction: reverse; }
.skill-row__logo-set { display: flex; flex: none; gap: var(--carousel-gap); margin: 0; padding: 0; list-style: none; }
.skill-row__logo-set li { flex: none; }
.skill-row__logo-set a {
  display: flex;
  width: clamp(128px, 10.4vw, 164px);
  height: clamp(102px, 8.3vw, 128px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  padding: 15px 12px 11px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  transition: border-color 260ms, background 260ms, transform 420ms var(--ease-out);
}
.skill-row__logo-set img { width: auto; max-width: 104px; height: 47px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); transition: transform 420ms var(--ease-out); }
.skill-row__logo-set span { max-width: 100%; overflow: hidden; font: 9px "IBM Plex Mono", monospace; letter-spacing: .06em; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; opacity: .66; }
.skill-row__carousel:hover .skill-row__track,
.skill-row__carousel:focus-within .skill-row__track,
.skill-row__carousel.is-paused .skill-row__track,
.skill-row__carousel.is-offscreen .skill-row__track,
.skill-row__carousel.is-document-hidden .skill-row__track { animation-play-state: paused; }
.skill-row__carousel-head button:disabled { cursor: default; opacity: .45; }
.skill-row__logo-set a.is-logo-missing img { display: none; }
.skill-row__logo-set a.is-logo-missing span { font-size: 11px; opacity: 1; white-space: normal; }

@media (hover: hover) and (pointer: fine) {
  .skill-row__carousel-head button:hover { color: var(--skill-accent); border-color: var(--skill-accent); }
  .skill-row__logo-set a:hover { border-color: var(--skill-accent); background: color-mix(in srgb, var(--skill-accent), transparent 93%); transform: translateY(-5px); }
  .skill-row__logo-set a:hover img { transform: scale(1.08); }
}
@keyframes skill-row-marquee { to { transform: translate3d(var(--loop-distance, -420px), 0, 0); } }
@keyframes skills-galaxy-drift { from { transform: scale(1.06) translate3d(-1%, -.5%, 0); } to { transform: scale(1.12) translate3d(1.2%, .8%, 0); } }
@keyframes skills-fog-one { from { opacity: .24; transform: translate3d(-5%, 2%, 0) scale(.95); } to { opacity: .5; transform: translate3d(10%, -5%, 0) scale(1.14); } }
@keyframes skills-fog-two { from { opacity: .2; transform: translate3d(4%, -4%, 0) scale(1); } to { opacity: .45; transform: translate3d(-9%, 7%, 0) scale(1.16); } }
@keyframes skills-star-pulse { from { opacity: .18; } to { opacity: .52; } }

@media (max-width: 900px) {
  .skills-directory-hero__copy > p { width: min(620px, 80%); }
  .skill-row { min-height: 0; grid-template-columns: 1fr; }
  .skill-row__copy { min-height: 540px; padding-right: 0; }
  .skill-row__carousel { min-height: 300px; padding: 30px 0 46px; border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .skill-row__carousel-head { padding: 0 2px; }
}

@media (max-width: 760px) {
  .skills-directory-hero { min-height: 78svh; }
  .skills-directory-hero__copy { min-height: calc(78svh - var(--header-height)); padding: 52px var(--gutter) 31px; }
  .skills-directory-hero__copy .display-title { font-size: clamp(56px, 16vw, 92px); }
  .skills-directory-hero__copy > p { width: 100%; margin: 32px 0 0; font-size: 17px; }
  .skills-directory-hero__copy .scroll-cue { margin-top: 34px; }
  .skills-directory { padding-right: var(--gutter); padding-left: var(--gutter); }
  .skill-row__copy { min-height: 500px; padding: 54px 0 48px; }
  .skill-row h2 { margin-top: auto; font-size: clamp(54px, 15vw, 82px); }
  .skill-row__copy > p { font-size: 16px; }
  .skill-row__carousel { min-height: 260px; padding: 24px 0 36px; }
  .skill-row__viewport { margin-right: calc(var(--gutter) * -1); margin-left: calc(var(--gutter) * -1); padding-right: var(--gutter); padding-left: var(--gutter); }
  .skill-row__logo-set a { width: 128px; height: 100px; }
  .skill-row__logo-set img { max-width: 88px; height: 39px; }
}

/* Light skills orbit */
.skills-page.skills-rows-page main,
.skills-rows-page main { background: var(--paper); }
.skills-rows-page .skill-row__carousel { grid-template-rows: 1fr auto; }
.skills-directory-hero {
  min-height: 78svh;
  background:
    radial-gradient(circle at 84% 15%, rgba(111, 228, 93, .13), transparent 34%),
    radial-gradient(circle at 12% 70%, rgba(255, 194, 14, .14), transparent 38%),
    linear-gradient(135deg, var(--paper), var(--paper-2));
  color: var(--ink);
}
.skills-directory-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(38,29,38,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,29,38,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%, transparent 92%);
  mask-image: linear-gradient(90deg, transparent, #000 38%, transparent 92%);
}
.skills-directory-hero__galaxy { display: none; }
.skills-directory-hero__ambient { z-index: -2; background: transparent; }
.skills-directory-hero__ambient i {
  width: 54vw !important;
  height: 54vw !important;
  border-radius: 50%;
  box-shadow: none !important;
  filter: blur(72px);
  opacity: .22;
}
.skills-directory-hero__ambient i:nth-child(1) { top: -35% !important; left: 60% !important; background: rgba(111, 228, 93, .44); }
.skills-directory-hero__ambient i:nth-child(2) { top: 42% !important; left: -17% !important; background: rgba(255, 194, 14, .38); animation-delay: -3s; }
.skills-directory-hero__ambient i:nth-child(3) { top: 20% !important; left: 37% !important; width: 35vw !important; height: 35vw !important; background: rgba(68, 57, 68, .14); animation-delay: -5s; }
.skills-directory-hero__copy { min-height: calc(78svh - var(--header-height)); }
.skills-directory-hero__copy > p { color: rgba(38,29,38,.72); }

.skills-directory { background: var(--paper); color: var(--ink); }
.skill-row {
  min-height: clamp(510px, 59svh, 690px);
  border-color: var(--line);
  background: linear-gradient(90deg, transparent, rgba(233,236,230,.4));
}
.skill-row:last-child { border-color: var(--line); }
#skill-design h2 { max-width: 12ch; font-size: clamp(54px, 6.2vw, 102px); line-height: .84; }
.skill-row__index { color: var(--skill-accent); }
.skill-row__index small { color: var(--ink); opacity: .5; }
.skill-row__copy > p { color: rgba(38,29,38,.72); opacity: 1; }
.skill-row__tags li { border-color: var(--line); color: rgba(38,29,38,.72); }
.skill-row__carousel {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: clamp(46px, 5.5vw, 76px) 0 clamp(38px, 5vw, 68px) clamp(28px, 3.8vw, 58px);
  border-color: var(--line);
}
.skill-row__carousel-head { position: relative; z-index: 130; align-items: center; color: var(--ink); }
.skill-row__carousel-head > span { color: var(--skill-accent); }
.skill-row__controls {
  position: relative;
  z-index: 130;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  padding-top: 8px;
}
.skill-row__controls button,
.skill-row__carousel-head .skill-row__controls button {
  visibility: visible;
  display: inline-flex;
  min-width: auto;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(38,29,38,.3);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 9px "IBM Plex Mono", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: color 220ms, border-color 220ms, transform 300ms var(--ease-out);
}
.skill-row__controls button i { font-size: 14px; font-style: normal; }
.skill-row__controls button:disabled { cursor: default; opacity: .42; }
.skill-row__viewport {
  position: relative;
  align-self: stretch;
  width: 100%;
  height: auto;
  min-height: 320px;
  overflow: visible;
  padding: 0;
  perspective: 900px;
  -webkit-mask-image: none;
  mask-image: none;
}
.skill-row__viewport::before,
.skill-row__viewport::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(var(--orbit-width, 650px), 92%);
  height: var(--orbit-height, 132px);
  border: 1px solid rgba(38,29,38,.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.skill-row__viewport::before { z-index: 1; box-shadow: 0 18px 45px rgba(38,29,38,.055); }
.skill-row__viewport::after {
  z-index: 64;
  border-color: transparent transparent color-mix(in srgb, var(--skill-accent), transparent 46%) color-mix(in srgb, var(--skill-accent), transparent 46%);
  clip-path: inset(50% -3px -3px -3px);
}
.skill-row__track,
.skill-row__carousel.has-loop .skill-row__track {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  animation: none;
  transform: none;
  will-change: auto;
}
.skill-row__logo-set {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}
.skill-row__logo-set li {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(82px, 8.4vw, 124px);
  height: 78px;
  transform-origin: center;
  will-change: transform, opacity, filter;
}
.skill-row__logo-set a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: visible;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: none;
}
.skill-row__logo-set img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgba(38,29,38,.14));
  transition: transform 320ms var(--ease-out), filter 320ms;
}
.skill-row__logo-set a[href*="anylogic"] img,
.skill-row__logo-set a[href*="solidworks"] img { max-width: 122%; }
.skill-row__logo-set a[href*="arena-simulation"] img { max-width: 150%; }
.skill-row__logo-set a[href*="flexsim.com"] img { max-width: 142%; max-height: 52px; }
.skill-row__logo-set a[href*="tableau.com"] img { max-height: 62px; }
.skill-row__logo-set a[href*="sap.com"] img { max-height: 52px; }
.skill-row__logo-set a[href*="verosim"] img { filter: contrast(1.25) drop-shadow(0 5px 9px rgba(38,29,38,.14)); }
.skill-row__logo-set a[href*="vosviewer"] img { max-width: 138%; filter: brightness(0) saturate(100%) opacity(.8); }
.skill-row__logo-set span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skill-row__logo-set a.is-logo-missing span { position: static; width: auto; height: auto; clip: auto; clip-path: none; color: var(--ink); }
.skill-row__logo-set li.is-inspected img { transform: scale(1.14); filter: drop-shadow(0 10px 17px rgba(38,29,38,.2)); }

@media (hover: hover) and (pointer: fine) {
  .skill-row__controls button:hover { color: var(--skill-accent); border-color: var(--skill-accent); transform: translateY(-2px); }
  .skill-row__logo-set a:hover { border: 0; background: transparent; transform: none; }
  .skill-row__logo-set a:hover img { transform: scale(1.14); }
}

@media (max-width: 900px) {
  .skill-row__carousel { border-color: var(--line); }
  .skill-row__viewport { min-height: 300px; }
}

@media (max-width: 760px) {
  .skills-directory-hero { min-height: 74svh; }
  .skills-directory-hero__copy { min-height: calc(74svh - var(--header-height)); }
  #skill-design h2 { max-width: 11ch; font-size: clamp(50px, 13.5vw, 74px); }
  .skill-row__carousel { min-height: 0; padding: 24px 0 30px; }
  .skill-row__carousel-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .skill-row__controls { justify-content: center; gap: 18px; }
  .skill-row__viewport { min-height: 250px; margin: 0; padding: 0; }
  .skill-row__logo-set li { width: 88px; height: 62px; }
  .skill-row__logo-set img { max-height: 46px; }
}

/* Skills */
.skills-page main { background: #06130d; }
.skill-cosmos {
  --skill-cosmos-progress: 0;
  --skill-copy-opacity: 1;
  --skill-copy-y: 0px;
  --skill-galaxy-opacity: 1;
  --skill-galaxy-scale: 1;
  --skill-galaxy-x: 0px;
  --skill-galaxy-y: 0px;
  --skill-earth-x: 40vw;
  --skill-earth-y: 63vh;
  --skill-earth-scale: 1;
  --skill-earth-opacity: 1;
  --skill-earth-label-opacity: 1;
  position: relative;
  z-index: 1;
  height: 300svh;
  background: #080909;
  color: var(--white);
}
.skill-cosmos__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #080909;
  isolation: isolate;
}
.skill-cosmos__ambient {
  position: absolute;
  z-index: 0;
  inset: -14%;
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 8%, rgba(255, 255, 255, .28), transparent 32%),
    linear-gradient(128deg, #050606 2%, #151616 34%, #5e6060 67%, #e3e4e4 112%);
  transform: scale(1.04);
}
.skill-cosmos__ambient::after {
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, .22) 0 12%, transparent 30% 54%, rgba(236, 237, 237, .16) 68%, transparent 84%),
    linear-gradient(150deg, transparent 22%, rgba(171, 174, 174, .22) 43%, transparent 61%);
  content: "";
  animation: cosmos-sheen 28s ease-in-out infinite alternate;
  will-change: transform;
}
.skill-cosmos__field {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  will-change: transform;
}
.skill-cosmos__field--charcoal {
  top: -20%;
  left: -11%;
  width: 85%;
  height: 92%;
  background: radial-gradient(ellipse at 43% 45%, #4b4d4d 0%, #1b1c1c 42%, rgba(3, 4, 4, .68) 62%, transparent 79%);
  animation: cosmos-drift-charcoal 22s ease-in-out infinite;
}
.skill-cosmos__field--silver {
  top: -22%;
  right: -15%;
  width: 82%;
  height: 94%;
  background: radial-gradient(ellipse at 50% 46%, #c4c6c6 0%, #747676 37%, rgba(45, 47, 47, .58) 61%, transparent 79%);
  opacity: .78;
  animation: cosmos-drift-silver 29s ease-in-out infinite;
}
.skill-cosmos__field--pearl {
  right: -9%;
  bottom: -31%;
  width: 111%;
  height: 86%;
  background: radial-gradient(ellipse at 55% 44%, #fff 0%, #d8dada 31%, rgba(135, 138, 138, .52) 59%, transparent 80%);
  opacity: .54;
  animation: cosmos-drift-pearl 36s ease-in-out infinite;
}
.skill-cosmos__sticky::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 39% 58%, transparent 0 17%, rgba(0, 0, 0, .08) 48%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .08) 58%, rgba(0, 0, 0, .2)),
    linear-gradient(180deg, rgba(0, 0, 0, .42), transparent 26%, rgba(0, 0, 0, .34));
  content: "";
  pointer-events: none;
}
.skill-cosmos__galaxy {
  position: absolute;
  z-index: 2;
  inset: -6%;
  overflow: hidden;
  opacity: var(--skill-galaxy-opacity);
  transform: translate3d(var(--skill-galaxy-x), var(--skill-galaxy-y), 0) scale(var(--skill-galaxy-scale));
  transform-origin: 46% 52%;
  will-change: opacity, transform;
}
.skill-cosmos__galaxy::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 46% 48%, transparent 0 19%, rgba(0, 0, 0, .08) 43%, rgba(0, 0, 0, .38) 81%),
    linear-gradient(90deg, rgba(0, 0, 0, .38), transparent 44%, rgba(0, 0, 0, .3));
  content: "";
  pointer-events: none;
}
.skill-cosmos__galaxy > img {
  position: absolute;
  inset: -3%;
  width: 106%;
  max-width: none;
  height: 106%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: brightness(.58) contrast(1.13) saturate(.78);
  animation: galaxy-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
.skill-cosmos__fog {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(48px);
  mix-blend-mode: screen;
  opacity: .25;
  pointer-events: none;
  will-change: transform, opacity;
}
.skill-cosmos__fog--near {
  inset: 7% -18% -28% 6%;
  background:
    radial-gradient(ellipse at 22% 48%, rgba(234, 226, 240, .48), transparent 42%),
    radial-gradient(ellipse at 70% 64%, rgba(155, 175, 184, .3), transparent 47%);
  animation: galaxy-fog-near 19s ease-in-out infinite alternate;
}
.skill-cosmos__fog--far {
  inset: -24% 0 14% -22%;
  background:
    radial-gradient(ellipse at 45% 54%, rgba(165, 147, 172, .34), transparent 45%),
    radial-gradient(ellipse at 78% 28%, rgba(200, 211, 215, .21), transparent 39%);
  filter: blur(68px);
  opacity: .2;
  animation: galaxy-fog-far 27s ease-in-out infinite alternate;
}
.skill-cosmos__stars {
  position: absolute;
  z-index: 2;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.58) 0 1px, transparent 1.6px),
    radial-gradient(circle at 88% 69%, rgba(255,255,255,.48) 0 1px, transparent 1.5px);
  background-size: 173px 149px, 229px 197px, 311px 271px;
  opacity: .22;
  animation: galaxy-stars 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.skill-cosmos__earth small {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  color: rgba(255, 255, 255, .72);
  font: 8px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}
.skill-cosmos__earth {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 66px;
  aspect-ratio: 1;
  opacity: var(--skill-earth-opacity);
  transform: translate3d(var(--skill-earth-x), var(--skill-earth-y), 0) translate(-50%, -50%) scale(var(--skill-earth-scale));
  will-change: opacity, transform;
}
.skill-cosmos__earth > span {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(194, 241, 231, .48);
  border-radius: 50%;
  background: #07170f url("../images/earth-blue-marble.jpg") 51% center / 205% 100% repeat-x;
  box-shadow: inset -15px -8px 24px rgba(0, 0, 0, .84), inset 8px 5px 16px rgba(255, 255, 255, .14), 0 0 34px rgba(185, 226, 219, .28);
}
.skill-cosmos__earth > span::before {
  position: absolute;
  inset: -4%;
  border: 1px solid rgba(222, 246, 241, .27);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(194, 241, 231, .2);
  content: "";
}
.skill-cosmos__earth > span::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 29% 25%, transparent 0 25%, rgba(0, 0, 0, .08) 48%, rgba(0, 0, 0, .73) 100%);
  content: "";
}
.skill-cosmos__earth small { opacity: var(--skill-earth-label-opacity); transition: opacity 180ms linear; }
.skill-cosmos__copy {
  position: absolute;
  z-index: 4;
  inset: var(--header-height) 0 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 34px var(--gutter) 46px;
  opacity: var(--skill-copy-opacity);
  pointer-events: none;
  text-shadow: 0 3px 25px rgba(0, 0, 0, .34);
  transform: translate3d(0, var(--skill-copy-y), 0);
  will-change: opacity, transform;
}
@keyframes cosmos-drift-charcoal {
  0%, 100% { transform: translate3d(-2%, -1%, 0) scale(1.03) rotate(-4deg); }
  50% { transform: translate3d(10%, 8%, 0) scale(1.17) rotate(5deg); }
}
@keyframes cosmos-drift-silver {
  0%, 100% { transform: translate3d(2%, 1%, 0) scale(1.05) rotate(3deg); }
  50% { transform: translate3d(-11%, 11%, 0) scale(1.18) rotate(-6deg); }
}
@keyframes cosmos-drift-pearl {
  0%, 100% { transform: translate3d(0, 2%, 0) scale(1.08) rotate(-2deg); }
  50% { transform: translate3d(-8%, -13%, 0) scale(1.2) rotate(5deg); }
}
@keyframes cosmos-sheen {
  from { transform: translate3d(-3%, -2%, 0) scale(1.03) rotate(-1deg); }
  to { transform: translate3d(4%, 3%, 0) scale(1.1) rotate(2deg); }
}
@keyframes galaxy-drift {
  from { transform: translate3d(-1.3%, -.8%, 0) scale(1.035); }
  to { transform: translate3d(1.4%, 1.1%, 0) scale(1.075); }
}
@keyframes galaxy-fog-near {
  from { opacity: .18; transform: translate3d(-5%, 3%, 0) scale(.96) rotate(-3deg); }
  to { opacity: .31; transform: translate3d(7%, -4%, 0) scale(1.12) rotate(4deg); }
}
@keyframes galaxy-fog-far {
  from { transform: translate3d(4%, -3%, 0) scale(1.02) rotate(2deg); }
  to { transform: translate3d(-7%, 6%, 0) scale(1.15) rotate(-4deg); }
}
@keyframes galaxy-stars {
  from { opacity: .14; transform: translate3d(0, 0, 0); }
  to { opacity: .28; transform: translate3d(.35%, -.25%, 0); }
}
.skill-cosmos__eyebrow { font: 10px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.skill-cosmos__title {
  align-self: center;
  max-width: 1250px;
  font-size: clamp(78px, 12.6vw, 196px);
  font-weight: 500;
  line-height: .79;
  letter-spacing: -.072em;
}
.skill-cosmos__title span { display: block; }
.skill-cosmos__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.skill-cosmos__footer .scroll-cue { pointer-events: auto; }
.skill-cosmos__footer p { width: min(470px, 38vw); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.18; letter-spacing: -.025em; }
.skills-manifesto { padding: clamp(110px, 14vw, 200px) 0; }
.skills-manifesto--atlas {
  position: relative;
  z-index: 6;
  margin-top: -100svh;
  padding: calc(var(--header-height) + 50px) 0 clamp(110px, 12vw, 180px);
  background: linear-gradient(180deg, rgba(6, 19, 13, 0) 0%, rgba(6, 19, 13, .24) 42%, #06130d 84%);
}
.js .skills-manifesto--atlas .skill-world {
  opacity: var(--skill-atlas-opacity, 1);
  pointer-events: none;
  transform: translate3d(0, var(--skill-atlas-y, 0px), 0);
  will-change: opacity, transform;
}
.js .skills-manifesto--atlas .skill-world.is-atlas-ready { pointer-events: auto; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.skill-world {
  --region-accent: var(--amber);
  position: relative;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  box-shadow: none;
  isolation: isolate;
}
.skill-world__topline {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 62px;
  padding: 0 var(--gutter);
  border-bottom: 0;
  background: transparent;
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.skill-world__topline h2 { font: inherit; }
.skill-world__topline p { opacity: .52; }
.skill-world__experience {
  position: relative;
  display: block;
}
.skill-world__stage {
  position: relative;
  z-index: 1;
  height: clamp(650px, 78svh, 820px);
  min-width: 0;
  overflow: hidden;
  background: transparent;
}
.skill-world__stage::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(156, 215, 201, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 215, 201, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 31% 48%, #000 0 25%, transparent 64%);
  mask-image: radial-gradient(circle at 31% 48%, #000 0 25%, transparent 64%);
}
.skill-world__stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: radial-gradient(circle at 31% 48%, transparent 26%, rgba(0, 8, 3, .08) 53%, rgba(0, 8, 3, .68) 100%);
  content: "";
  pointer-events: none;
}
.skill-world__canvas { position: absolute; z-index: 2; inset: 0 auto 0 0; width: 60%; opacity: 0; transition: opacity 620ms var(--ease-out), width 620ms var(--ease-morph); }
.skill-world.is-webgl-ready .skill-world__canvas { opacity: 1; }
.skill-world__canvas > div,
.skill-world__canvas canvas { display: block !important; width: 100% !important; height: 100% !important; }
.skill-world__canvas canvas { cursor: grab; touch-action: pan-y; }
.skill-world__canvas canvas:active { cursor: grabbing; }
.skill-world__stage-copy {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.skill-world__stage-copy small,
.skill-world__status {
  font: 9px "IBM Plex Mono", monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.skill-world__stage-copy small { color: var(--region-accent); transition: color 450ms; }
.skill-world__stage-copy strong { font-size: 15px; font-weight: 500; line-height: 1.12; }
.skill-world__status {
  position: absolute;
  z-index: 5;
  bottom: 22px;
  left: 24px;
  opacity: .58;
  pointer-events: none;
}
.skill-world__fallback { position: absolute; z-index: 2; inset: 0 auto 0 0; display: grid; width: 60%; place-items: center; opacity: 1; visibility: visible; transition: opacity 600ms var(--ease-out), visibility 0s linear 600ms; }
.skill-world.is-webgl-ready .skill-world__fallback { opacity: 0; visibility: hidden; }
.skill-world__fallback span {
  width: min(68%, 600px);
  aspect-ratio: 1;
  border: 1px solid rgba(156, 215, 201, .38);
  border-radius: 50%;
  background: #07170f url("../images/earth-blue-marble.jpg") center / 205% 100% repeat-x;
  box-shadow: inset -45px -18px 75px rgba(0, 0, 0, .7), inset 20px 12px 35px rgba(156, 215, 201, .12), 0 0 80px rgba(111, 228, 93, .12);
  animation: fallback-earth 42s linear infinite;
}
.skill-world.is-fallback .skill-world__fallback { display: grid; opacity: 1; visibility: visible; }
.skill-world.is-fallback .skill-world__canvas { display: none; }
@keyframes fallback-earth { to { background-position: 200% center; } }

.skill-world__detail {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(43%, 640px);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-margin-top: calc(var(--header-height) + 12px);
  border-left: 1px solid rgba(255, 255, 255, .15);
  background: rgba(9, 24, 16, .94);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(36px, 0, 0);
  transition: opacity 360ms var(--ease-out), transform 720ms var(--ease-morph);
}
.skill-world.is-active .skill-world__detail { opacity: 1; pointer-events: auto; transform: none; }
.skill-world__detail-inner {
  display: flex;
  width: 100%;
  min-width: 390px;
  height: 100%;
  flex-direction: column;
  padding: 21px clamp(20px, 2vw, 30px) 18px;
}
.skill-world__detail.is-changing .skill-world__detail-inner { animation: continent-detail-swap 520ms var(--ease-out); }
@keyframes continent-detail-swap {
  0% { opacity: .25; transform: translateY(16px); }
  100% { opacity: 1; transform: none; }
}
.skill-world__detail-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-bottom: 11px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.skill-world__detail-head > span { color: var(--region-accent); font: 10px "IBM Plex Mono", monospace; letter-spacing: .09em; transition: color 450ms; }
.skill-world__detail-head button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 58px;
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color 250ms, transform 350ms var(--ease-out);
}
.skill-world__detail-head button i { font-size: 20px; font-style: normal; font-weight: 300; line-height: 0; }
.skill-world__detail h3 { max-width: 9.5ch; margin-top: 16px; font-size: clamp(40px, 3.3vw, 57px); font-weight: 500; line-height: .91; letter-spacing: -.055em; text-transform: none; text-wrap: balance; }
.skill-world__continent-copy { max-width: 520px; margin-top: 12px; font-size: 14px; line-height: 1.38; opacity: .74; }
.skill-world__tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .13); }
.skill-world__tags li { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .13); font: 8.5px "IBM Plex Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.skill-world__tags li::before { margin-right: 7px; color: var(--region-accent); content: "↳"; transition: color 450ms; }

.software-orbit { min-width: 0; margin-top: auto; padding-top: 13px; }
.software-orbit__meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; font: 9px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.software-orbit__meta span { color: var(--region-accent); transition: color 450ms; }
.software-orbit__meta small { font: inherit; opacity: .46; }
.software-orbit__stage {
  position: relative;
  height: 205px;
  overflow: hidden;
  perspective: 1000px;
  touch-action: pan-y;
  cursor: ew-resize;
  outline-offset: -5px;
}
.software-orbit__stage::before {
  position: absolute;
  top: 50%;
  right: 2%;
  left: 2%;
  height: 1px;
  background: rgba(255, 255, 255, .1);
  content: "";
}
.software-orbit__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.software-orbit__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 94px;
  height: 72px;
  will-change: transform, opacity;
}
.software-orbit__item.is-inspecting,
.software-orbit__item:focus-within { z-index: 100 !important; }
.software-orbit__card {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: 1fr auto;
  gap: 5px;
  place-items: center;
  padding: 10px 9px 7px;
  border: 1px solid rgba(6, 19, 13, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 15px 32px rgba(0, 0, 0, .28);
  cursor: pointer;
  text-decoration: none;
  touch-action: pan-y;
  transform: translateY(0) scale(1);
  transition: transform 420ms var(--ease-morph), box-shadow 420ms var(--ease-out), border-color 300ms;
}
.software-orbit__item.is-inspecting .software-orbit__card,
.software-orbit__item:focus-within .software-orbit__card {
  border-color: color-mix(in srgb, var(--region-accent), #fff 28%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .38), 0 0 0 2px color-mix(in srgb, var(--region-accent), transparent 62%);
  transform: translateY(-4px) scale(1.08);
}
.software-orbit__card:focus-visible { outline: 2px solid var(--region-accent); outline-offset: 4px; }
.software-orbit__card img { width: 100%; height: 43px; object-fit: contain; }
.software-orbit__card span { overflow: hidden; max-width: 100%; font: 8px "IBM Plex Mono", monospace; letter-spacing: .035em; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.software-orbit__item.image-missing .software-orbit__card { grid-template-rows: 1fr; }
.software-orbit__item.image-missing img { display: none; }
.software-orbit__item.image-missing .software-orbit__card span { align-self: center; white-space: normal; }
.software-orbit__controls { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .14); }
.software-orbit__controls button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 9px "IBM Plex Mono", monospace;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  transition: color 250ms, transform 300ms var(--ease-out);
}
.software-orbit__controls button:nth-child(2) { padding: 0 12px; color: var(--region-accent); text-align: center; transition: color 450ms; }
.software-orbit__controls button:last-child { text-align: right; }
.software-orbit__controls button:disabled { cursor: default; opacity: .48; transform: none; }

.skill-world__segments { position: relative; z-index: 9; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); background: rgba(2, 15, 9, .22); }
.skill-world__segments button {
  position: relative;
  display: grid;
  min-height: 92px;
  align-content: space-between;
  gap: 10px;
  padding: 15px 43px 14px 18px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .14);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--motion-ui), color var(--motion-fast), transform 320ms var(--ease-morph);
}
.skill-world__segments button:last-child { border-right: 0; }
.skill-world__segments button::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--region-accent); content: ""; transform: scaleX(.24); transform-origin: left; transition: transform 520ms var(--ease-morph); }
.skill-world__segments button[aria-pressed="true"] { background: color-mix(in srgb, var(--region-accent), transparent 91%); }
.skill-world__segments button[aria-pressed="true"]::before { transform: scaleX(1); }
.skill-world__segments small { display: flex; gap: 11px; font: 9px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.skill-world__segments small span { color: var(--region-accent); opacity: 1; }
.skill-world__segments strong { max-width: 13ch; font-size: clamp(17px, 1.35vw, 21px); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.skill-world__segments i { position: absolute; right: 18px; bottom: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--region-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--region-accent), transparent 84%); transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out); }
.skill-world__segments button.is-hovered { background: color-mix(in srgb, var(--region-accent), transparent 94%); }
.skill-world__segments button.is-hovered::before { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .skill-world__detail-head button:hover,
  .software-orbit__controls button:not(:disabled):hover { color: var(--region-accent); transform: translateY(-2px); }
  .skill-world__segments button:hover { background: rgba(255, 255, 255, .045); }
  .skill-world__segments button:hover::before { transform: scaleX(1); }
  .skill-world__segments button:hover i { box-shadow: 0 0 0 8px color-mix(in srgb, var(--region-accent), transparent 86%); transform: scale(1.08); }
}

.tool-index { padding: clamp(110px, 14vw, 200px) 0; }
.tool-accordion { padding: 0 var(--gutter); }
.tool-group { border-top: 1px solid var(--line-light); }
.tool-group:last-child { border-bottom: 1px solid var(--line-light); }
.tool-toggle { display: grid; grid-template-columns: 70px 1fr 45px; width: 100%; min-height: 120px; align-items: center; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.tool-toggle > span { font: 10px "IBM Plex Mono", monospace; }
.tool-toggle .tool-question { font-size: clamp(31px, 4vw, 59px); font-weight: 500; letter-spacing: -.055em; }
.tool-toggle b { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; font-size: 22px; font-weight: 400; transition: transform 500ms var(--ease-morph), background 250ms, color 250ms; }
.tool-group.is-open .tool-toggle b { background: var(--amber); color: var(--ink); }
.tool-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 600ms var(--ease-morph), opacity 400ms; }
.tool-body > * { overflow: hidden; }
.tool-group.is-open .tool-body { grid-template-rows: 1fr; opacity: 1; }
.tool-body > p { display: none; }
.tool-body .tag-row { padding: 0 0 35px 70px; }
.tool-index--faq .tool-toggle .tool-question {
  max-width: 31ch;
  padding: 24px 0;
  font-size: clamp(27px, 3.25vw, 50px);
  line-height: .98;
}
.tool-index--faq .tool-body > p {
  display: block;
  width: min(1020px, calc(100% - 70px));
  margin: 0 0 0 70px;
  padding: 0 0 40px;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.48;
  letter-spacing: -.018em;
  opacity: .78;
}

/* Projects */
.projects-hero { overflow: hidden; }
.portfolio-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 var(--gutter) clamp(90px, 11vw, 160px);
}
.portfolio-metrics article {
  position: relative;
  display: flex;
  min-height: clamp(230px, 22vw, 330px);
  overflow: hidden;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 10%, rgba(244, 194, 14, .12), transparent 34%),
    var(--paper-2);
}
.portfolio-metrics article::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out);
}
.portfolio-metrics.is-counting article::before { transform: scaleX(1); }
.portfolio-metrics article > span:first-child,
.portfolio-metrics article > small {
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portfolio-metrics article > span:first-child { color: var(--green); }
.portfolio-metrics strong {
  margin: auto 0 13px;
  font-size: clamp(70px, 8vw, 126px);
  font-weight: 500;
  line-height: .74;
  letter-spacing: -.075em;
  font-variant-numeric: tabular-nums;
}
.portfolio-metrics small { max-width: 15ch; line-height: 1.35; opacity: .55; }
.project-index { padding: clamp(110px, 14vw, 200px) 0; }
.filter-controls { display: flex; gap: 8px; padding: 0 var(--gutter) 45px; }
.filter-btn { min-height: 42px; padding: 0 17px; border: 1px solid var(--line); background: transparent; transition: background 250ms, color 250ms, transform 250ms; }
.filter-btn.active { background: var(--ink); color: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); padding: 0 var(--gutter); align-items: stretch; }
.project-card { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); transition: opacity 400ms, transform 600ms var(--ease-morph); }
.project-card.is-filtered { display: none; }
.project-image { position: relative; height: clamp(320px, 31vw, 470px); overflow: hidden; }
.project-image img { height: 100%; object-fit: cover; transition: transform 1000ms var(--ease-out); }
.project-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(0,18,5,.54)); content: ""; }
.project-image figcaption { position: absolute; z-index: 2; right: 17px; bottom: 15px; left: 17px; color: var(--white); }
.project-card-copy { display: flex; min-height: 360px; flex-direction: column; padding: 24px; }
.project-meta { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.project-meta b { color: var(--green); font-weight: 500; }
.project-title { margin: 30px 0 17px; font-size: clamp(33px, 3.5vw, 53px); font-weight: 500; line-height: .9; letter-spacing: -.06em; }
.project-card-copy > p { max-width: 600px; opacity: .68; }
.project-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: auto; padding: 17px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; cursor: pointer; font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.project-toggle b { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 18px; font-weight: 400; transition: transform 500ms var(--ease-morph), background 250ms; }
.project-detail { display: none; }
.project-detail > div > span { font: 10px "IBM Plex Mono", monospace; color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.project-affiliation { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.project-affiliation > span { font: 10px "IBM Plex Mono", monospace; color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.project-detail p { max-width: 850px; margin: 15px 0 25px; font-size: 17px; line-height: 1.45; }

.project-modal {
  width: min(940px, calc(100vw - 34px));
  max-height: min(88svh, 900px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  background: transparent;
  color: var(--white);
  opacity: 0;
  transform: translateY(26px) scale(.975);
  transition: opacity 260ms var(--ease-out), transform 540ms var(--ease-morph);
}
.project-modal::backdrop { background: rgba(5, 12, 8, .76); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.project-modal.is-visible { opacity: 1; transform: none; }
.project-modal__shell {
  position: relative;
  max-height: min(88svh, 900px);
  overflow: auto;
  padding: clamp(28px, 5vw, 68px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: inherit;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,194,14,.14), transparent 30%),
    #081c13;
  box-shadow: 0 38px 100px rgba(0,0,0,.5);
  overscroll-behavior: contain;
}
.project-modal__close {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin: 0 0 38px auto;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-modal__close b { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: 20px; font-weight: 400; }
.project-modal__meta { color: var(--amber); font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.project-modal h2 { max-width: 11ch; margin: 18px 0 24px; font-size: clamp(49px, 7vw, 104px); font-weight: 500; line-height: .83; letter-spacing: -.067em; text-wrap: balance; }
.project-modal__summary { max-width: 720px; font-size: clamp(18px, 2vw, 25px); line-height: 1.34; opacity: .76; }
.project-modal__body { margin-top: clamp(42px, 6vw, 76px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.project-modal__body > div { display: grid; gap: 18px; }
.project-modal__body > div > span { color: var(--amber); font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.project-modal__body p { max-width: 760px; font-size: 17px; line-height: 1.55; opacity: .78; }
.project-modal .entity-logo { border-color: rgba(255,255,255,.14); }
.project-modal .tag-row { margin-top: 8px; }
.project-modal .tag-row span { border-color: rgba(255,255,255,.2); }
body.project-modal-open { overflow: hidden; }
/* Contact */
.scholar-impact { padding: clamp(110px, 14vw, 200px) 0; }
.scholar-dashboard { display: grid; grid-template-columns: .82fr 1.18fr; gap: var(--gutter); padding: 0 var(--gutter); align-items: stretch; }
.scholar-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
.scholar-metrics article {
  display: flex;
  min-width: 0;
  min-height: 215px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
}
.scholar-metrics article > span,
.scholar-metrics article > small { font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.scholar-metrics article > span { opacity: .64; }
.scholar-metrics article > strong { margin: auto 0 10px; color: var(--amber); font-size: clamp(58px, 6vw, 94px); font-weight: 500; line-height: .8; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.scholar-metrics article > small { opacity: .5; }
.scholar-metrics .action-pill { grid-column: 1 / 4; justify-self: start; margin-top: 18px; }

.citation-chart { min-height: 540px; padding: 25px; border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.citation-chart figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--line-light); }
.citation-chart figcaption > span { font-size: clamp(24px, 2.5vw, 38px); font-weight: 500; letter-spacing: -.04em; }
.citation-chart figcaption > small { max-width: 330px; font: 9px "IBM Plex Mono", monospace; line-height: 1.5; text-align: right; text-transform: uppercase; opacity: .55; }
.chart-stage { position: relative; height: 355px; margin-top: 27px; padding: 0 24px 30px 48px; }
.chart-axis { position: absolute; inset: 0 0 30px; display: grid; grid-template-rows: auto 1fr auto 1fr auto; align-items: center; }
.chart-axis span { width: 34px; font: 9px "IBM Plex Mono", monospace; opacity: .45; }
.chart-axis i { display: block; margin-left: 40px; border-top: 1px solid rgba(255,255,255,.16); }
.chart-bars { position: relative; z-index: 2; display: grid; height: 100%; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 5vw, 75px); align-items: end; }
.citation-bar { position: relative; display: flex; height: 100%; flex-direction: column; justify-content: flex-end; align-items: center; }
.citation-bar i { width: min(74px, 72%); height: var(--bar-height); min-height: 2px; border-radius: 8px 8px 0 0; background: var(--amber); box-shadow: 0 0 28px rgba(255,194,14,.14); transform: none; transform-origin: bottom; transition: transform 820ms var(--ease-out); }
.js .citation-bar i { transform: scaleY(0); }
.js .citation-chart.is-visible .citation-bar i { transform: scaleY(1); }
.citation-bar b { margin-bottom: 8px; font: 10px "IBM Plex Mono", monospace; font-weight: 500; font-variant-numeric: tabular-nums; }
.citation-bar span { position: absolute; bottom: -27px; font: 10px "IBM Plex Mono", monospace; opacity: .62; }
.citation-chart > p { margin-top: 16px; font: 9px "IBM Plex Mono", monospace; line-height: 1.4; text-transform: uppercase; opacity: .48; }

.publication-ledger { padding: clamp(110px, 14vw, 210px) 0; }
.publication-list { padding: 0 var(--gutter); list-style: none; }
.publication-record { border-top: 1px solid var(--line); }
.publication-record:last-child { border-bottom: 1px solid var(--line); }
.publication-record article {
  display: grid;
  grid-template-columns: minmax(90px, .28fr) minmax(0, 1.72fr);
  gap: var(--gutter);
  padding: clamp(44px, 6vw, 90px) 0;
}
.publication-index {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.publication-index span { color: var(--green); }
.publication-index time { opacity: .55; }
.publication-copy { min-width: 0; }
.publication-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.publication-status strong { color: var(--green); font-weight: 500; }
.publication-copy h3 {
  max-width: 1100px;
  margin: 30px 0 19px;
  font-size: clamp(43px, 6.3vw, 98px);
  font-weight: 500;
  line-height: .89;
  letter-spacing: -.063em;
}
.publication-citation { font: 11px "IBM Plex Mono", monospace; color: var(--green); text-transform: uppercase; }
.publication-summary-copy { max-width: 750px; margin-top: 25px; font-size: 17px; line-height: 1.48; opacity: .7; }
.publication-authors { display: grid; grid-template-columns: 115px minmax(0, 820px); gap: 26px; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.publication-authors > span { font: 10px "IBM Plex Mono", monospace; color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.publication-authors p { font-size: 14px; line-height: 1.65; color: rgba(38,29,38,.72); }
.publication-author--self { position: relative; z-index: 0; color: var(--ink); font-weight: 700; white-space: nowrap; }
.publication-author--self::after { position: absolute; z-index: -1; right: -.08em; bottom: .05em; left: -.08em; height: .48em; border-radius: 2px; background: rgba(244,191,55,.62); content: ""; transform: skewX(-7deg); }
.publication-abstract { display: grid; grid-template-columns: 115px minmax(0, 820px); gap: 26px; margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--line); }
.publication-abstract > span,
.paper-funding > span { font: 10px "IBM Plex Mono", monospace; color: var(--green); letter-spacing: .08em; text-transform: uppercase; }
.publication-abstract p { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.55; opacity: .75; }
.paper-funding { display: grid; grid-template-columns: 115px minmax(0, 820px); gap: 26px; margin-top: 28px; padding-top: 27px; border-top: 1px solid var(--line); }
.funder-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.funder-lockup { display: flex; min-width: 0; min-height: 104px; align-items: center; gap: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.36); }
.funder-lockup .entity-logo { flex: 0 0 auto; width: 132px; height: 68px; padding: 0; }
.funder-lockup .entity-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.funder-lockup strong { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.25; }
.funder-lockup p,
.paper-funding.is-none > p { max-width: 680px; font-size: 13px; line-height: 1.45; opacity: .62; }
.paper-funding.is-none > p { padding: 14px 17px; border: 1px dashed var(--line); border-radius: 10px; }
.publication-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-top: 38px; }
.publication-bottom .entity-lockup > span:last-child,
.pipeline-card .entity-lockup > span:last-child { font: 10px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; opacity: .62; }
.publication-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background 250ms, color 250ms, transform 250ms;
}
.paper-citations { display: inline-flex; align-items: baseline; gap: 8px; font: 10px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; opacity: .62; }
.paper-citations b { color: var(--green); font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -.04em; }

.research-pipeline { padding: clamp(110px, 14vw, 200px) 0; }
.pipeline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); padding: 0 var(--gutter); }
.pipeline-card { display: flex; min-height: 500px; flex-direction: column; padding: 28px; border: 1px solid var(--line-light); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.pipeline-card .publication-status { border-color: var(--line-light); }
.pipeline-card .publication-status strong { color: var(--amber); }
.pipeline-card h3 { max-width: 650px; margin: 70px 0 20px; font-size: clamp(42px, 5.2vw, 80px); font-weight: 500; line-height: .9; letter-spacing: -.06em; }
.pipeline-card > p { max-width: 590px; opacity: .7; }
.pipeline-card .entity-lockup { margin-top: auto; padding-top: 34px; }

.achievement-section { padding: clamp(110px, 14vw, 210px) 0; }
.achievement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); padding: 0 var(--gutter); }
.achievement-card { display: flex; min-height: 500px; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.achievement-meta { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.achievement-card .entity-logo-row { margin: 24px 0 auto; }
.achievement-value { display: block; margin-top: 45px; color: var(--green); font-size: clamp(48px, 6vw, 92px); font-weight: 500; line-height: .85; letter-spacing: -.065em; }
.achievement-card h3 { max-width: 600px; margin: 21px 0 14px; font-size: clamp(31px, 3.7vw, 55px); font-weight: 500; line-height: .94; letter-spacing: -.052em; }
.achievement-card > p { max-width: 560px; opacity: .67; }
.recognition-ledger { margin: clamp(80px, 9vw, 135px) var(--gutter) 0; border-top: 1px solid var(--line); }
.recognition-row { display: grid; grid-template-columns: 115px 120px 1fr auto; gap: 24px; min-height: 104px; align-items: center; border-bottom: 1px solid var(--line); }
.recognition-row time,
.recognition-row strong { font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.recognition-row time { opacity: .55; }
.recognition-row strong { color: var(--green); text-align: right; }
.recognition-row h3 { font-size: clamp(23px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.04em; }
.recognition-row .entity-logo { width: 118px; height: 44px; }

.entity-logo.entity-logo--csu {
  width: 220px;
  height: 72px;
}
.entity-logo.entity-logo--csu img { transform: scale(1.08); transform-origin: 50% 50%; }
.timeline-logos .entity-logo--csu { width: 236px; height: 88px; }
.role-summary .entity-logo--csu { width: 210px; height: 68px; }

.publication-next { display: flex; min-height: 82svh; align-items: flex-end; padding: 100px var(--gutter) 70px; }
.publication-next-copy { width: 100%; }
.publication-next h2 { max-width: 1100px; margin: 22px 0 28px; font-size: clamp(56px, 8.5vw, 132px); font-weight: 500; line-height: .84; letter-spacing: -.068em; }
.publication-next p { max-width: 580px; margin: 0 0 36px auto; font-size: 18px; opacity: .7; }

/* Contact */
.contact-hero { position: relative; display: flex; min-height: 100svh; align-items: flex-end; overflow: hidden; }
.contact-background { position: absolute; inset: 0; height: 100%; object-fit: cover; transform: scale(var(--contact-scale, 1.05)); }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,18,5,.76), rgba(0,20,6,.18) 62%, rgba(0,15,4,.48)); }
.contact-title-wrap { position: relative; z-index: 2; width: 100%; padding: 125px var(--gutter) 52px; color: var(--white); }
.contact-title-wrap .display-title { max-width: 1250px; }
.contact-title-wrap > p { width: min(500px, 42vw); margin: 38px 0 0 auto; font-size: clamp(18px, 1.6vw, 24px); }
.contact-hero > .scroll-cue { position: absolute; z-index: 3; bottom: 54px; left: var(--gutter); }
.contact-panel { padding: clamp(110px, 14vw, 210px) var(--gutter); }
.contact-intro { display: grid; grid-template-columns: .72fr 1.3fr; gap: var(--gutter); }
.contact-intro h2 { font-size: clamp(54px, 7.8vw, 124px); font-weight: 500; line-height: .85; letter-spacing: -.067em; }
.contact-intro > p { grid-column: 2; max-width: 620px; font-size: 19px; opacity: .68; }
.contact-grid { display: grid; grid-template-columns: .72fr 1.3fr; gap: var(--gutter); margin-top: 110px; }
.contact-channels { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.contact-channels > span { margin-bottom: 14px; opacity: .55; }
.contact-channels a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 20px;
  width: 100%;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-2);
  transition: background 250ms, color 250ms, transform 300ms var(--ease-out);
}
.contact-channels a > span { font: 9px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.contact-channels a > strong { min-width: 0; overflow-wrap: anywhere; font-size: clamp(17px, 1.8vw, 25px); font-weight: 500; letter-spacing: -.035em; }
.contact-channels a > b { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 18px; font-weight: 400; }
.contact-form { padding: 30px; border-radius: var(--radius); background: var(--paper-2); }
.form-head { display: flex; justify-content: space-between; margin-bottom: 30px; }
.form-head span { font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.form-head strong { font-weight: 500; }
.contact-form label { display: block; margin-top: 17px; font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); outline: 2px solid transparent; outline-offset: 4px; transition: border-color 180ms, outline-color 180ms; }
.contact-form textarea { min-height: 135px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green); }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline-color: var(--green); }
.form-error { margin-top: 14px; color: #8f1820; font-size: 13px; font-weight: 600; }
.contact-form .action-pill { margin-top: 28px; }
.contact-form > small { display: block; margin-top: 14px; opacity: .55; }
.contact-form.has-error input:invalid,
.contact-form.has-error textarea:invalid { border-color: #a32128; }
.contact-image-strip { display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: 3px; padding: 3px; }
.contact-image-strip figure { position: relative; height: 65svh; min-height: 480px; overflow: hidden; }
.contact-image-strip img { height: 100%; object-fit: cover; transition: transform 1000ms var(--ease-out); }
.contact-image-strip figcaption { position: absolute; right: 18px; bottom: 17px; left: 18px; color: var(--white); font: 10px "IBM Plex Mono", monospace; text-transform: uppercase; }

/* Footer */
.site-footer { padding: clamp(58px, 7vw, 96px) var(--gutter) 28px; }
.site-footer.tone-aubergine {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: var(--footer-glass);
}
.contact-channels a { overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gutter); padding: 0 0 64px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid strong { font-size: 18px; }
.footer-grid p, .footer-grid a { font-size: 13px; opacity: .68; }
.footer-grid > div > span { margin-bottom: 8px; font: 10px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .5; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font: 10px "IBM Plex Mono", monospace; letter-spacing: .05em; text-transform: uppercase; opacity: .58; }

/* Hover states */
@media (hover: hover) and (pointer: fine) {
  .site-brand:hover .mm-mark > span:first-child { transform: translateX(-1.5px); }
  .site-brand:hover .mm-mark > span:last-child { opacity: 1; transform: translateX(1.5px); }
  .site-brand:hover,
  .availability-pill:hover,
  .menu-pill:hover,
  .back-home-link:hover {
    color: var(--amber);
    text-shadow: 0 10px 24px rgba(38, 29, 38, .2);
    transform: translateY(-3px) scale(1.035);
  }
  .site-brand:hover::after,
  .availability-pill:hover::after,
  .menu-pill:hover::after,
  .back-home-link:hover::after { transform: scaleX(1); transform-origin: left center; }
  .intro-enter:hover, .action-pill:hover, .filter-btn:hover { transform: translateY(-2px); }
  .availability-pill:hover, .menu-pill:hover { transform: translateY(-3px) scale(1.035); }
  .back-home-link:hover > span:first-child { transform: translateX(-3px); }
  .menu-shell li a:hover b { transform: translate(3px, -3px); }
  .menu-shell li a:hover { color: var(--amber); }
  .phase-card:is(:hover, :focus-visible) { background: var(--green); color: var(--paper); transform: translateY(-3px); }
  .phase-card:is(:hover, :focus-visible) .headline-sweep__word {
    --headline-base-color: var(--paper) !important;
    color: var(--paper);
  }
  .phase-card:hover figure img, .work-tile:hover img, .education-chapter:hover figure img, .recognition-feature:hover img, .project-card:hover .project-image img, .contact-image-strip figure:hover img { transform: scale(1.02); }
  .phase-card:hover .phase-card-top i { transform: rotate(90deg); background: var(--amber); color: var(--ink); }
  .work-tile:hover img { filter: saturate(1.05); }
  .publication-link:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
  .contact-channels a:hover { background: var(--green); color: var(--white); transform: translateX(5px); }
}

/* Tablet */
@media (max-width: 980px) {
  :root { --header-height: 82px; }
  .display-title { font-size: clamp(62px, 12vw, 116px); }
  .hero-support { width: min(520px, 55vw); }
  .section-lead { grid-template-columns: 1fr 2fr; }
  .phase-card { min-height: 580px; }
  .phase-card figure { height: 300px; }
  .role-summary { grid-template-columns: 1fr .6fr 1.4fr; width: 90vw; }
  .education-chapter figure { min-height: 560px; }
  .recognition-feature { min-height: 580px; }
  .skill-world__detail-inner { min-width: 340px; padding-right: 20px; padding-left: 20px; }
  .skill-world__detail h3 { font-size: clamp(40px, 5vw, 56px); }
  .skill-world__tags { grid-template-columns: 1fr; }
  .skill-world__tags li { padding: 7px 0; }
  .software-orbit__stage { height: 250px; }
  .software-orbit__item { width: 91px; height: 70px; }
  .software-orbit__card img { height: 37px; }
  .portfolio-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication-record article { grid-template-columns: 80px 1fr; }
  .recognition-row { grid-template-columns: 95px 110px 1fr auto; gap: 17px; }
  .scholar-dashboard { grid-template-columns: 1fr; }
  .home-about { grid-template-columns: 1fr 1fr; gap: 38px; }
  .home-about-body { grid-template-columns: 1fr; }
  .home-about-body p:first-child { grid-column: 1; }
  .skill-world__stage { height: clamp(620px, 72svh, 760px); }
  .skill-world__canvas,
  .skill-world__fallback { width: 100%; }
  .skill-world__stage::before {
    -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0 30%, transparent 73%);
    mask-image: radial-gradient(circle at 50% 48%, #000 0 30%, transparent 73%);
  }
  .skill-world__stage::after { background: radial-gradient(circle at 50% 48%, transparent 40%, rgba(0, 8, 3, .1) 63%, rgba(0, 8, 3, .7) 100%); }
  .skill-world__detail {
    position: relative;
    inset: auto;
    width: auto;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .15);
    border-left: 0;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: max-height 720ms var(--ease-morph), opacity 360ms var(--ease-out), transform 520ms var(--ease-morph);
  }
  .skill-world.is-active .skill-world__detail { max-height: 1040px; opacity: 1; transform: none; }
  .skill-world__detail-inner { min-width: 0; height: auto; }
  .software-orbit__stage { height: 230px; }
}

/* Mobile */
@media (max-width: 760px) {
  :root { --header-height: 100px; --radius: 14px; }
  .site-header { align-items: center; padding-block: 10px; }
  .mm-mark--header { --mm-size: 23px; }
  .mm-mark--intro { --mm-size: 35px; }
  .site-brand { gap: 8px; }
  .site-brand-name { display: inline; }
  .header-home-group { gap: 12px; }
  .header-home-group .site-brand { display: inline-flex; }
  .header-home-group .site-brand-name { display: none; }
  .back-home-link { min-height: 43px; padding: 0 4px; font-size: 12px; }
  .header-actions { gap: 16px; }
  .availability-pill { font-size: 12px; }
  .menu-pill { min-width: auto; min-height: 44px; padding: 0 4px; }
  .menu-shell { top: 8px; right: 8px; width: calc(100vw - 16px); height: min(610px, calc(100svh - 16px)); padding: 22px 20px; }
  .menu-topline { padding-right: 105px; padding-left: 52px; }
  .menu-topline span:last-child { display: none; }
  .menu-shell li a { min-height: 57px; }
  .menu-shell li span { font-size: 25px; }
  .menu-footer p { max-width: 180px; }
  .site-intro { padding: 22px 18px 28px; }
  .intro-lockup { gap: 11px; }
  .intro-lockup strong { max-width: 210px; font-size: 10px; }
  .intro-message { width: 100%; gap: 30px; padding: 34px 0 10px; }
  .intro-message p { max-width: 12.8ch; font-size: clamp(45px, 13.2vw, 67px); line-height: .96; letter-spacing: -.043em; text-wrap: pretty; }
  .intro-enter { min-height: 50px; padding: 0 21px; }
  .display-title { font-size: clamp(49px, 15.1vw, 91px); line-height: .81; }
  .hero-stage, .page-hero-copy { min-height: calc(100svh - var(--header-height)); padding-top: 18px; padding-bottom: 29px; }
  .hero-stage .display-title, .page-hero-copy .display-title { margin-top: clamp(75px, 15vh, 130px); }
  .hero-support { width: min(430px, 92%); margin-top: auto; font-size: 17px; }
  .hero-stage .scroll-cue, .page-hero-copy .scroll-cue { bottom: 29px; }
  .hero-stage .hero-support, .page-hero-copy .hero-support { margin-bottom: 72px; }
  .hero-media, .page-hero-media { height: 68svh; min-height: 470px; }
  .hero-media figcaption, .page-hero-media figcaption { right: calc(var(--hero-inset, var(--gutter)) + 15px); bottom: 14px; left: calc(var(--hero-inset, var(--gutter)) + 15px); }
  .hero-media figcaption small, .page-hero-media figcaption small { display: none; }
  .skill-cosmos {
    --skill-earth-x: 45vw;
    --skill-earth-y: 64vh;
    height: 270svh;
  }
  .skill-cosmos__copy { inset: var(--header-height) 0 0; padding: 23px var(--gutter) 27px; }
  .skill-cosmos__title { align-self: center; font-size: clamp(59px, 17.5vw, 82px); line-height: .83; }
  .skill-cosmos__footer { display: grid; gap: 18px; }
  .skill-cosmos__footer p { width: 100%; max-width: 420px; font-size: 16px; }
  .skill-cosmos__ambient { inset: -18%; }
  .skill-cosmos__galaxy { inset: -10%; transform-origin: 50% 52%; }
  .skill-cosmos__galaxy > img { object-position: 48% 50%; }
  .skill-cosmos__earth { width: 58px; }
  .skill-cosmos__earth small { display: none; }
  .home-about { grid-template-columns: 1fr; min-height: 0; gap: 58px; padding-top: 95px; padding-bottom: 95px; }
  .home-about-copy h2 { font-size: clamp(47px, 13vw, 76px); }
  .home-about-body { grid-template-columns: 1fr; gap: 20px; }
  .home-about-body p:first-child { grid-column: 1; font-size: 19px; }
  .home-about-portrait { height: 76svh; min-height: 520px; }
  .section-lead { display: flex; flex-direction: column; gap: 24px; padding-bottom: 55px; }
  .section-lead h2 { font-size: clamp(46px, 13vw, 76px); }
  .section-lead > p { font-size: 17px; }
  .story-step { width: 100%; padding: 100px var(--gutter) 75px; justify-content: flex-end; opacity: .12; }
  .story-step.active { opacity: 1; }
  .story-step h2 { font-size: clamp(47px, 13vw, 76px); }
  .story-shade { background: linear-gradient(180deg, rgba(0,15,4,.12), rgba(0,16,4,.82)); }
  .timeline-logos .entity-logo { width: min(184px, calc(50% - 4px)); }
  .timeline-logos .entity-logo--csu { width: min(206px, calc(60% - 4px)); height: 72px; }
  .phase-grid, .work-gallery, .recognition-grid, .projects-grid, .organization-grid { grid-template-columns: 1fr; }
  .organization-grid > .organization-card:last-child:nth-child(odd) { grid-column: auto; }
  .phase-card--wide { grid-column: auto; }
  .phase-card { min-height: 560px; padding: 14px; }
  .phase-card figure { height: 300px; }
  .phase-card-top { margin: 17px 2px 30px; }
  .work-gallery { gap: 62px; }
  .work-tile:nth-child(even) { margin-top: 0; }
  .work-tile img { height: 105vw; max-height: 650px; }
  .work-tile > b { display: none; }
  .outcomes-strip { grid-template-columns: repeat(2, 1fr); gap: 52px 0; }
  .outcomes-strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .outcomes-strip > div { min-height: 130px; }
  .experience-chapter-intro { min-height: auto; padding-top: 118px; }
  .experience-chapter-intro__index { top: 42px; font-size: clamp(118px, 40vw, 180px); opacity: .09; }
  .chapter-dock { display: none; }
  .role-stack { height: auto; }
  .role-track { position: static; display: block; width: 100%; height: auto; transform: none !important; will-change: auto; }
  .role-panel { height: auto; min-height: 100svh; }
  .role-panel + .role-panel { border-top: 3px solid var(--paper); }
  .role-content { min-height: 100svh; padding-top: 100px; padding-bottom: 35px; }
  .role-kicker { width: 100%; }
  .role-content h2 { font-size: clamp(48px, 14vw, 78px); }
  .role-summary { grid-template-columns: 1fr; gap: 9px; width: 100%; }
  .role-summary p { max-width: 480px; }
  .role-drawer { position: fixed; z-index: 170; top: 8px; right: 8px; bottom: 8px; width: calc(100vw - 16px); }
  .organization-card { min-height: 320px; }
  .organization-card h3 { margin-top: 55px; }
  .education-chapter, .education-chapter.reverse { grid-template-columns: 1fr; padding-bottom: 95px; }
  .education-chapter.reverse figure { order: 0; }
  .education-chapter figure { min-height: 58svh; }
  .education-copy { padding: 6px 0; }
  .education-copy h3 { font-size: clamp(43px, 12vw, 68px); }
  .recognition-feature { min-height: 620px; }
  .recognition-feature strong { position: static; display: block; margin-top: 18px; }
  .cv-achievement-row {
    min-height: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 26px 0;
  }
  .cv-achievement-row > span:first-child { grid-row: 1 / span 3; grid-column: 1; }
  .cv-achievement-logos { min-height: 0; grid-row: 1; grid-column: 2; }
  .cv-achievement-logos .entity-logo { width: 88px; height: 48px; }
  .cv-achievement-logos .entity-logo.entity-logo--csu { width: 158px; height: 58px; }
  .cv-achievement-row h3 { grid-row: 2; grid-column: 2; font-size: clamp(25px, 8vw, 36px); }
  .cv-achievement-meta {
    grid-row: 3;
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    justify-self: start;
    text-align: left;
  }
  .cv-achievement-row--no-logo > span:first-child { grid-row: 1 / span 2; }
  .cv-achievement-row--no-logo h3 { grid-row: 1; grid-column: 2; }
  .cv-achievement-row--no-logo .cv-achievement-meta { grid-row: 2; grid-column: 2; }
  .cert-row { grid-template-columns: 45px 1fr; gap: 12px; padding: 20px 0; }
  .cert-row p { grid-column: 2; justify-self: start; text-align: left; }
  .cert-row p { align-items: flex-start; }
  .issuer-logos { justify-content: flex-start; }
  .skill-world { margin: 0; border-radius: 0; }
  .skill-world__topline { grid-template-columns: 1fr; gap: 4px; min-height: 72px; padding: 13px 16px; }
  .skill-world__topline p { max-width: 34ch; line-height: 1.35; }
  .skill-world__experience,
  .skill-world.is-active .skill-world__experience { display: block; }
  .skill-world__stage {
    height: 66svh;
    min-height: 520px;
    max-height: 650px;
  }
  .skill-world__stage-copy { top: 17px; left: 17px; }
  .skill-world__status { bottom: 16px; left: 17px; }
  .skill-world__stage::before { -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0 30%, transparent 73%); mask-image: radial-gradient(circle at 50% 48%, #000 0 30%, transparent 73%); }
  .skill-world__stage::after { background: radial-gradient(circle at 50% 48%, transparent 40%, rgba(0, 8, 3, .1) 63%, rgba(0, 8, 3, .7) 100%); }
  .skill-world__canvas,
  .skill-world__fallback { width: 100%; }
  .skill-world__fallback span { width: min(84%, 470px); }
  .skill-world__detail { transform: translate3d(0, 18px, 0); }
  .skill-world.is-active .skill-world__detail { max-height: 1040px; }
  .skill-world__detail-inner { min-width: 0; height: auto; padding: 22px 17px 18px; }
  .skill-world__detail h3 { max-width: 8.6ch; font-size: clamp(44px, 13vw, 70px); }
  .skill-world__continent-copy { font-size: 16px; }
  .skill-world__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .software-orbit { margin-top: 30px; }
  .software-orbit__stage { height: 240px; }
  .software-orbit__item { width: 88px; height: 70px; }
  .software-orbit__card { padding: 8px 7px 6px; }
  .software-orbit__card img { height: 37px; }
  .software-orbit__controls button { min-height: 49px; }
  .skill-world__segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-world__segments button { min-height: 96px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .skill-world__segments button:nth-child(2) { border-right: 0; }
  .skill-world__segments button:nth-last-child(-n + 2) { border-bottom: 0; }
  .skill-world__segments strong { font-size: 20px; }
  .tool-toggle { grid-template-columns: 43px 1fr 40px; min-height: 105px; }
  .tool-toggle .tool-question { font-size: clamp(28px, 8vw, 46px); }
  .tool-body .tag-row { padding-left: 43px; }
  .tool-index--faq .tool-toggle .tool-question { padding: 22px 10px 22px 0; font-size: clamp(24px, 7vw, 38px); }
  .tool-index--faq .tool-body > p { width: calc(100% - 43px); margin-left: 43px; padding-bottom: 32px; font-size: 16px; line-height: 1.5; }
  .filter-controls { overflow-x: auto; padding-bottom: 30px; scrollbar-width: none; }
  .filter-controls::-webkit-scrollbar { display: none; }
  .filter-btn { flex: none; }
  .portfolio-metrics { gap: 8px; padding-bottom: 95px; }
  .portfolio-metrics article { min-height: 210px; padding: 17px; }
  .portfolio-metrics strong { font-size: clamp(66px, 19vw, 105px); }
  .project-image { height: auto; min-height: 410px; }
  .project-card-copy { min-height: 360px; }
  .project-title { font-size: clamp(37px, 10.5vw, 58px); }
  .project-modal { width: calc(100vw - 16px); max-height: calc(100svh - 16px); }
  .project-modal__shell { max-height: calc(100svh - 16px); padding: 22px 18px 40px; }
  .project-modal__close { margin-bottom: 27px; }
  .publication-record article { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 48px 0; }
  .publication-index { min-height: 100%; }
  .publication-copy h3 { font-size: clamp(39px, 11vw, 60px); }
  .publication-status { align-items: flex-start; flex-direction: column; gap: 7px; }
  .scholar-metrics { gap: 7px; }
  .scholar-metrics article { min-height: 170px; padding: 14px 10px; }
  .scholar-metrics article > strong { font-size: 55px; }
  .scholar-metrics article > span,
  .scholar-metrics article > small { font-size: 8px; }
  .scholar-metrics .action-pill { grid-column: 1 / 4; }
  .citation-chart { min-height: 500px; padding: 18px 14px; }
  .citation-chart figcaption { flex-direction: column; }
  .citation-chart figcaption > small { text-align: left; }
  .chart-stage { height: 330px; padding-right: 10px; padding-left: 42px; }
  .chart-bars { gap: 17px; }
  .publication-authors,
  .publication-abstract,
  .paper-funding { grid-template-columns: 1fr; gap: 12px; }
  .publication-authors { padding: 16px 0; }
  .publication-authors p { font-size: 13px; line-height: 1.6; }
  .publication-abstract p { font-size: 16px; }
  .funder-list { grid-template-columns: 1fr; }
  .funder-lockup { min-height: 92px; align-items: center; flex-direction: row; }
  .funder-lockup .entity-logo { width: 108px; height: 58px; }
  .publication-bottom { align-items: flex-start; flex-direction: column; }
  .pipeline-grid, .achievement-grid { grid-template-columns: 1fr; }
  .pipeline-card, .achievement-card { min-height: 500px; padding: 21px; }
  .pipeline-card h3 { font-size: clamp(41px, 11.5vw, 65px); }
  .recognition-row { grid-template-columns: 85px 1fr auto; gap: 12px; padding: 18px 0; }
  .recognition-row .entity-logo { grid-row: 1 / 3; grid-column: 1; width: 78px; }
  .recognition-row time { grid-column: 2; }
  .recognition-row h3 { grid-column: 2 / 4; }
  .recognition-row strong { grid-row: 1; grid-column: 3; }
  .publication-next { min-height: 75svh; padding-bottom: 45px; }
  .publication-next h2 { font-size: clamp(51px, 14vw, 82px); }
  .publication-next p { margin-left: 0; }
  .contact-title-wrap { padding-bottom: 34px; }
  .contact-title-wrap > p { width: 100%; margin: 30px 0 73px; font-size: 17px; }
  .contact-hero > .scroll-cue { bottom: 32px; }
  .contact-intro, .contact-grid { grid-template-columns: 1fr; }
  .contact-intro h2 { font-size: clamp(52px, 14vw, 81px); }
  .contact-intro > p { grid-column: 1; }
  .contact-grid { margin-top: 70px; }
  .contact-form { padding: 21px 17px; }
  .contact-image-strip { grid-template-columns: 1fr; }
  .contact-image-strip figure { height: 70svh; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / 3; margin-bottom: 20px; }
}

@media (max-height: 560px) {
  .menu-shell { bottom: 8px; height: auto; max-height: calc(100svh - 16px); }
  .menu-shell li a { min-height: 49px; }
  .menu-footer { padding-top: 18px; }
}

@media (max-width: 440px) {
  .phase-card figure { height: 250px; }
  .organization-head { align-items: flex-start; flex-direction: column; }
  .organization-card h3 { margin-top: 38px; }
  .outcomes-strip { grid-template-columns: 1fr; gap: 0; }
  .outcomes-strip > div { padding: 28px 0; border-top: 1px solid var(--line); border-left: 0; }
  .outcomes-strip > div:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .role-drawer { padding-right: 23px; padding-left: 23px; }
}

@media (max-width: 360px) {
  .availability-pill { display: none; }
  .back-home-link > span:last-child { display: none; }
  .header-home-group { gap: 8px; }
}

@media (max-width: 1120px) and (min-width: 761px) {
  .campus-camera { left: 34%; }
  .story-step { width: 54vw; }
  .campus-hud { gap: 18px; }
  .campus-hud > p { display: none; }
}

/* Scroll World narrow layout: keep the world pinned and move copy over the live scene. */
@media (max-width: 760px), (max-height: 560px) {
  .story-sequence { overflow: visible; }
  .story-sticky { position: sticky; top: 0; height: 100dvh; min-height: 0; overflow: hidden; }
  .campus-viewport { position: absolute; inset: 0; height: auto; min-height: 0; perspective: none; }
  .campus-camera { top: 50%; left: 50%; transform: translate3d(-50%,-50%,0) scale(.62); }

  .campus-hud {
    top: calc(var(--header-height) + 12px);
    right: var(--gutter);
    bottom: auto;
    left: auto;
    align-items: center;
    gap: 0;
  }
  .campus-hud > p { display: none; }

  .campus-hotspot { min-height: 48px; gap: 7px; padding: 6px 12px 6px 6px; }
  .campus-hotspot > i { width: 34px; height: 34px; }
  .campus-hotspot strong { max-width: 122px; font-size: 11px; }
  .campus-hotspot small { font-size: 7px; }
  .campus-sequence[data-campus-overview="true"] .campus-hotspots { display: block; }
  .campus-sequence[data-campus-overview="true"] .campus-hotspot { min-width: 112px; min-height: 44px; padding: 5px 9px 5px 5px; }
  .campus-sequence[data-campus-overview="true"] .campus-hotspot > i { width: 31px; height: 31px; }
  .campus-sequence[data-campus-overview="true"] .campus-hotspot small { display: none; }
  .campus-sequence[data-campus-overview="true"] .campus-hotspot strong { max-width: 92px; font-size: 10px; }

  .story-shade {
    inset: 0;
    height: auto;
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,.08) 0%, transparent 28%, rgba(0,0,0,.25) 48%, rgba(0,0,0,.92) 78%, #020202 100%),
      linear-gradient(90deg, rgba(0,0,0,.14), transparent 72%);
  }
  .story-steps { position: absolute; inset: 0; height: auto; margin: 0; pointer-events: none; }
  .story-step,
  .story-step.active {
    position: absolute;
    top: auto;
    right: auto;
    bottom: clamp(68px, 10svh, 94px);
    left: 0;
    width: 100%;
    min-height: 0;
    justify-content: flex-end;
    padding: 0 var(--gutter);
    border: 0;
    background: transparent;
  }
  .story-step h2 { max-width: 12ch; margin: 13px 0 15px; font-size: clamp(36px, 10.6vw, 58px); line-height: .9; }
  .story-step p { max-width: 36ch; font-size: clamp(14px, 3.8vw, 17px); line-height: 1.38; }
  .story-step .timeline-logos { margin-top: 16px; gap: 8px; }
  .story-step .timeline-logos .entity-logo { width: 78px; height: 38px; }
  .story-step .timeline-logos .entity-logo--csu { width: 126px; }
  .story-step .action-pill { min-height: 44px; margin-top: 17px; }
  .campus-sequence[data-campus-overview="true"] .story-step.active {
    bottom: 70px;
    max-height: calc(100svh - var(--header-height) - 96px);
    padding: 22px var(--gutter) 26px;
    overflow-y: auto;
    border: 1px solid rgba(255,194,14,.26);
    border-radius: 18px 18px 0 0;
    background: rgba(2,2,2,.93);
    box-shadow: 0 -24px 70px rgba(0,0,0,.38);
  }
}

/* Motion preference is the only intentional static presentation. */
@media (prefers-reduced-motion: reduce) {
  .story-sequence { min-height: auto !important; overflow: hidden; }
  .story-sticky { position: relative; top: auto; height: auto; min-height: 0; overflow: visible; }
  .campus-viewport { position: relative; height: min(56svh, 520px); min-height: min(430px, 100svh); perspective: none; }
  .campus-camera { top: 50%; left: 50%; transform: translate3d(-50%,-50%,0) scale(.3) !important; will-change: auto !important; }
  .campus-pointer,
  .campus-world { transform: none !important; will-change: auto !important; }
  .campus-hotspots,
  .campus-hud { display: none !important; }
  .story-shade { top: 0; bottom: auto; height: min(56svh, 520px); min-height: min(430px, 100svh); }
  .story-steps { position: relative; inset: auto; height: auto; margin: 0; pointer-events: auto; }
  .story-step,
  .story-step.active {
    position: static;
    inset: auto;
    width: 100%;
    min-height: auto;
    justify-content: flex-start;
    padding: 78px var(--gutter);
    border-top: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(255,255,255,.025), transparent 64%);
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .story-step h2 { max-width: 720px; font-size: clamp(47px, 13vw, 76px); }
  .story-step p { max-width: 650px; }
}

@supports not (transform-style: preserve-3d) {
  .story-sequence { min-height: auto; }
  .story-sticky { position: relative; top: auto; height: auto; min-height: 0; overflow: visible; }
  .campus-viewport { position: relative; height: 560px; perspective: none; }
  .campus-camera { top: 50%; left: 50%; transform: translate3d(-50%,-50%,0) scale(.72) !important; }
  .campus-world { transform: none !important; }
  .campus-hotspots,
  .campus-hud { display: none; }
  .story-shade { top: 0; bottom: auto; height: 560px; }
  .story-steps { position: relative; top: auto; height: auto; margin-top: 0; }
  .story-step { position: static; width: 100%; min-height: auto; padding: 78px var(--gutter); opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .headline-sweep.is-sweeping .headline-sweep__word { animation: none !important; background: none !important; color: var(--headline-base-color, inherit) !important; }
  .js .reveal, .js .display-title.reveal > span { opacity: 1; transform: none; }
  .role-media img, .hero-media img, .page-hero-media img { transform: none !important; }
  .role-stack { height: auto !important; }
  .role-track { position: static !important; display: block !important; width: 100% !important; height: auto !important; transform: none !important; }
  .role-panel { height: auto !important; min-height: 100svh; }
  .role-panel + .role-panel { border-top: 3px solid var(--paper); }
  .role-content { min-height: 100svh; }
  .chapter-dock { display: none !important; }
  .skill-cosmos { height: 100svh; }
  .skill-cosmos__galaxy { opacity: 1 !important; transform: none !important; }
  .skill-cosmos__earth { display: block !important; opacity: 1 !important; }
  .skill-cosmos__copy { opacity: 1 !important; transform: none !important; }
  .skills-manifesto--atlas { margin-top: 0; }
  .js .skills-manifesto--atlas .skill-world { opacity: 1 !important; pointer-events: auto; transform: none !important; }
  .skill-world__fallback span { animation: none !important; }
  .skill-world__experience,
  .skill-world__detail { transition-duration: .01ms !important; }
  .software-orbit__item { transition: none !important; }
  .skills-directory-hero__galaxy img { transform: scale(1.06) !important; }
  .skill-row__carousel.has-loop .skill-row__track { animation: none !important; transform: none !important; }
  .skill-row__viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .skill-row__logo-set[aria-hidden="true"] { display: none; }
  .skill-row__controls button { display: inline-flex; }
  .skill-row__controls [data-carousel-toggle] { display: none; }
  .js .citation-bar i { transform: none !important; }
}
