:root {
  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-soft: #eaf3f8;
  --text: #111722;
  --muted: #536274;
  --line: #d7e3ec;
  --accent: #128ad8;
  --accent-strong: #076eb5;
  --accent-soft: #e7f4ff;
  --accent-green: #43c947;
  --accent-warm: #43c947;
  --ink-soft: #dfe9f1;
  --shadow: 0 18px 48px rgba(16, 21, 34, 0.08);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 21, 34, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 360px);
  background-size: 72px 72px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 252, 254, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--text);
}

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

.bubble-nav {
  position: fixed;
  top: 104px;
  right: 36px;
  z-index: 30;
  width: 82px;
  height: 82px;
  pointer-events: none;
}

.bubble-toggle {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(160, 188, 214, 0.5);
  border-radius: 30px;
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(224, 238, 248, 0.58)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 42px rgba(16, 21, 34, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: rgba(18, 33, 49, 0.86);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    scale 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bubble-toggle i {
  font-size: 2.05rem;
}

.bubble-toggle:hover,
.bubble-toggle:focus-visible,
.bubble-nav.is-open .bubble-toggle {
  border-color: rgba(8, 118, 215, 0.32);
  box-shadow:
    0 24px 56px rgba(8, 118, 215, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  color: var(--text);
  scale: 1.035;
}

.bubble-toggle:focus-visible {
  outline: 2px solid rgba(8, 118, 215, 0.34);
  outline-offset: 5px;
}

.bubble-nav.is-open .bubble-toggle {
  transform: none;
}

.bubble-links {
  position: absolute;
  top: 36px;
  right: 34px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.bubble-nav.is-open .bubble-links {
  pointer-events: auto;
}

.bubble-link {
  --bubble-x: -660px;
  --bubble-y: -18px;
  --closed-y: -92px;
  --open-delay: 0ms;
  --float-delay: 980ms;
  --float-duration: 4700ms;
  --wobble-duration: 3600ms;
  --drift-name: bubble-drift-a;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 282px;
  height: 84px;
  border: 0;
  border-radius: 30px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  color: #263445;
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: none;
  translate: 88px var(--closed-y);
  scale: 0.48;
  rotate: 7deg;
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  transition:
    color 180ms ease,
    filter 180ms ease,
    opacity 260ms ease var(--open-delay),
    scale 760ms cubic-bezier(0.16, 1.22, 0.24, 1) var(--open-delay),
    translate 820ms cubic-bezier(0.16, 1.22, 0.22, 1) var(--open-delay),
    rotate 760ms cubic-bezier(0.16, 1.22, 0.22, 1) var(--open-delay);
}

.bubble-nav.is-open .bubble-link {
  opacity: 1;
  pointer-events: auto;
  translate: var(--bubble-x) var(--bubble-y);
  scale: 1;
  rotate: 0deg;
  animation: var(--drift-name) var(--float-duration) ease-in-out calc(var(--open-delay) + var(--float-delay)) infinite;
}

.bubble-link:nth-child(1) {
  --bubble-x: -545px;
  --bubble-y: -28px;
  --closed-y: -126px;
  --open-delay: 0ms;
  --float-duration: 6200ms;
  --wobble-duration: 3900ms;
  --drift-name: bubble-drift-a;
}

.bubble-link:nth-child(2) {
  --bubble-x: -575px;
  --bubble-y: 116px;
  --closed-y: -108px;
  --open-delay: 110ms;
  --float-delay: 1160ms;
  --float-duration: 5600ms;
  --wobble-duration: 3400ms;
  --drift-name: bubble-drift-b;
  width: 268px;
  height: 84px;
  border-radius: 30px;
}

.bubble-link:nth-child(2)::before {
  left: 59%;
  bottom: 20%;
  animation-delay: 180ms;
}

.bubble-link:nth-child(3) {
  --bubble-x: -565px;
  --bubble-y: 260px;
  --closed-y: -80px;
  --open-delay: 220ms;
  --float-delay: 1040ms;
  --float-duration: 6800ms;
  --wobble-duration: 4300ms;
  --drift-name: bubble-drift-c;
  width: 306px;
  height: 84px;
  border-radius: 30px;
}

.bubble-link:nth-child(3)::before {
  left: 47%;
  bottom: 16%;
  animation-delay: 90ms;
}

.bubble-link:nth-child(4) {
  --bubble-x: -505px;
  --bubble-y: 404px;
  --closed-y: -52px;
  --open-delay: 330ms;
  --float-delay: 1260ms;
  --float-duration: 5100ms;
  --wobble-duration: 3200ms;
  --drift-name: bubble-drift-d;
  width: 182px;
  height: 78px;
  border-radius: 28px;
}

.bubble-link:nth-child(4)::before {
  left: 56%;
  bottom: 15%;
  animation-delay: 240ms;
}

.bubble-link::before {
  content: "";
  position: absolute;
  left: 52%;
  bottom: 18%;
  z-index: 2;
  width: 13px;
  height: 20px;
  border-radius: 54% 46% 64% 36% / 58% 48% 52% 42%;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.96) 0 18%, rgba(255, 255, 255, 0) 33%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(158, 216, 255, 0.54) 46%, rgba(54, 139, 212, 0.34));
  box-shadow:
    inset -3px -5px 8px rgba(46, 120, 183, 0.18),
    0 8px 14px rgba(45, 107, 157, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -2px) scale(0.5);
  transform-origin: center top;
  display: none;
}

.bubble-link::after {
  content: "";
  position: absolute;
  inset: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(201, 229, 250, 0.2) 52%, transparent 68%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.bubble-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0 28px 0 52px;
  justify-items: start;
  text-align: left;
}

.bubble-label::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(52, 71, 210, 0.9), rgba(212, 138, 40, 0.82));
  box-shadow:
    0 0 0 5px rgba(52, 71, 210, 0.1),
    0 0 22px rgba(212, 138, 40, 0.2);
  transform: translateY(-50%);
}

.bubble-skin {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
  clip-path: polygon(9% 0, 100% 8%, 91% 92%, 0 100%, 4% 50%);
  border: 1px solid rgba(170, 198, 222, 0.56);
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.92) 0 16%, rgba(255, 255, 255, 0.18) 17% 28%, transparent 29%),
    radial-gradient(circle at 23% 38%, rgba(212, 138, 40, 0.14), transparent 34%),
    linear-gradient(142deg, rgba(255, 255, 255, 0.74), rgba(217, 233, 246, 0.38) 48%, rgba(255, 255, 255, 0.46)),
    rgba(248, 251, 254, 0.42);
  box-shadow:
    0 24px 48px rgba(16, 45, 74, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    inset 0 -18px 34px rgba(105, 156, 198, 0.11);
  backdrop-filter: blur(16px) saturate(1.08);
  filter: none;
  transform-origin: center center;
  animation: capsule-breathe var(--wobble-duration) ease-in-out infinite;
  animation-play-state: paused;
  will-change: transform, box-shadow;
  pointer-events: none;
}

.bubble-skin::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(105deg, transparent 0 30%, rgba(255, 255, 255, 0.78) 42%, transparent 56%),
    radial-gradient(circle at 92% 28%, rgba(52, 71, 210, 0.12), transparent 28%);
  opacity: 0.55;
  pointer-events: none;
  transform: translateX(-18%);
  animation: capsule-shimmer 4200ms ease-in-out infinite;
}

.bubble-nav.is-open .bubble-skin {
  animation-play-state: running;
}

.bubble-link:nth-child(2) .bubble-skin {
  animation-delay: 160ms;
}

.bubble-link:nth-child(3) .bubble-skin {
  animation-delay: 320ms;
}

.bubble-link:nth-child(4) .bubble-skin {
  animation-delay: 90ms;
}

.bubble-link:hover,
.bubble-link:focus-visible {
  color: var(--text);
  scale: 1.13;
  animation-play-state: paused;
}

.bubble-link:hover .bubble-skin,
.bubble-link:focus-visible .bubble-skin {
  border-color: rgba(52, 71, 210, 0.46);
  box-shadow:
    0 30px 66px rgba(52, 71, 210, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.96),
    inset 0 -18px 34px rgba(53, 190, 142, 0.12);
}

.bubble-link:focus-visible {
  outline: 2px solid rgba(8, 118, 215, 0.32);
  outline-offset: 4px;
}

.bubble-link:hover::before,
.bubble-link:focus-visible::before {
  animation: none;
}

.bubble-link.is-bursting::after {
  animation: bubble-burst 540ms ease-out;
}

.bubble-link.is-bursting {
  scale: 0.94;
}

.bubble-link.is-bursting .bubble-skin {
  border-color: rgba(212, 138, 40, 0.42);
  box-shadow:
    0 18px 34px rgba(212, 138, 40, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

.bubble-nav {
  top: 96px;
  right: 42px;
  width: 248px;
  min-height: 86px;
  height: auto;
}

.bubble-toggle {
  width: 92px;
  height: 92px;
  margin-left: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(16, 21, 34, 0.9);
  backdrop-filter: none;
}

.bubble-toggle i {
  font-size: 3.08rem;
  filter: drop-shadow(0 14px 20px rgba(16, 21, 34, 0.14));
}

.bubble-toggle:hover,
.bubble-toggle:focus-visible,
.bubble-nav.is-open .bubble-toggle {
  border-color: transparent;
  box-shadow: none;
  color: var(--accent);
  scale: 1.08;
}

.bubble-toggle:focus-visible {
  outline: 2px solid rgba(52, 71, 210, 0.36);
  outline-offset: 2px;
}

.bubble-links {
  top: 88px;
  right: 6px;
  display: grid;
  justify-items: end;
  gap: 8px;
  width: 232px;
  height: auto;
}

.bubble-link {
  --open-delay: 0ms;
  position: relative;
  top: auto;
  right: auto;
  display: flex;
  justify-content: flex-end;
  width: 224px;
  height: auto;
  min-height: 38px;
  padding: 2px 0;
  border-radius: 0;
  color: rgba(16, 21, 34, 0.8);
  font-size: 1rem;
  text-align: right;
  translate: none;
  rotate: none;
  scale: 1;
  transform: translate3d(18px, -20px, 0) scale(0.92);
  transition:
    color 180ms ease,
    filter 180ms ease,
    opacity 260ms ease var(--open-delay),
    transform 620ms cubic-bezier(0.16, 1.08, 0.2, 1) var(--open-delay);
}

.bubble-nav.is-open .bubble-link {
  translate: none;
  rotate: none;
  scale: 1;
  transform: translate3d(0, 0, 0) scale(1);
  animation: none;
}

.bubble-link:nth-child(1) {
  --open-delay: 0ms;
}

.bubble-link:nth-child(2) {
  --open-delay: 95ms;
  width: 224px;
  height: auto;
  border-radius: 0;
}

.bubble-link:nth-child(3) {
  --open-delay: 190ms;
  width: 224px;
  height: auto;
  border-radius: 0;
}

.bubble-link:nth-child(4) {
  --open-delay: 285ms;
  width: 224px;
  height: auto;
  border-radius: 0;
}

.bubble-link::before,
.bubble-link:nth-child(2)::before,
.bubble-link:nth-child(3)::before,
.bubble-link:nth-child(4)::before {
  content: none;
  display: none;
}

.bubble-link::after {
  inset: auto -4px auto auto;
  top: 50%;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(212, 138, 40, 0.36);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62), rgba(212, 138, 40, 0.13) 44%, transparent 70%);
  transform: translateY(-50%) scale(0);
}

.bubble-label {
  position: relative;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0;
  text-align: right;
}

.bubble-label::before {
  position: static;
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 71, 210, 0.2), var(--accent-warm));
  box-shadow: 0 0 18px rgba(212, 138, 40, 0.2);
  transform: scaleX(0.78);
  transform-origin: right center;
  transition: transform 220ms ease, background 220ms ease;
}

.bubble-skin,
.bubble-skin::before {
  display: none;
}

.bubble-link:hover,
.bubble-link:focus-visible {
  color: var(--text);
  scale: 1;
  transform: translate3d(-8px, 0, 0) scale(1.08);
}

.bubble-link:hover .bubble-label::before,
.bubble-link:focus-visible .bubble-label::before {
  transform: scaleX(1.25);
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.bubble-link:focus-visible {
  outline: 2px solid rgba(52, 71, 210, 0.28);
}

.bubble-link.is-bursting {
  scale: 1;
  transform: translate3d(-4px, 0, 0) scale(0.96);
}

.bubble-nav {
  width: 448px;
  right: 38px;
}

.bubble-toggle {
  width: 104px;
  height: 104px;
}

.bubble-toggle i {
  font-size: 3.45rem;
}

.bubble-links {
  top: 104px;
  right: 4px;
  gap: 24px;
  width: 460px;
}

.bubble-link,
.bubble-link:nth-child(2),
.bubble-link:nth-child(3),
.bubble-link:nth-child(4) {
  width: 450px;
  min-height: 74px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(17, 23, 34, 0.9);
  font-size: clamp(2.34rem, 3vw, 3.1rem);
  line-height: 1;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 38px rgba(7, 110, 181, 0.14);
  transform: translate3d(42px, -24px, 0) scale(0.88);
  backdrop-filter: none;
}

.bubble-nav.is-open .bubble-link {
  transform: translate3d(0, 0, 0) scale(1);
}

.bubble-label {
  width: 100%;
  gap: 20px;
}

.bubble-label::before {
  width: 58px;
  height: 3px;
  background: linear-gradient(90deg, rgba(18, 138, 216, 0.22), var(--accent-green));
}

.bubble-link:hover,
.bubble-link:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--accent-strong);
  transform: translate3d(-24px, 0, 0) scale(1.12);
}

.bubble-link::after {
  width: 118px;
  height: 118px;
  border-color: rgba(67, 201, 71, 0.32);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(67, 201, 71, 0.18) 48%, transparent 70%);
}

.bubble-link.is-bursting {
  transform: translate3d(-10px, 0, 0) scale(0.96);
}

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 76px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-page .page-shell {
  width: min(1320px, calc(100% - 40px));
}

.page-exit .page-shell {
  opacity: 0;
  transform: translateY(8px);
}

.sub-page .prose-page,
.sub-page .post-page,
.sub-page .blog-row {
  animation: page-soft-drop 980ms cubic-bezier(0.16, 0.86, 0.22, 1) both;
}

.sub-page .cv-block,
.sub-page .project-group {
  opacity: 0;
  animation: page-soft-drop 920ms cubic-bezier(0.16, 0.86, 0.22, 1) both;
}

.sub-page .cv-block:nth-of-type(1),
.sub-page .project-group:nth-of-type(1) {
  animation-delay: 160ms;
}

.sub-page .cv-block:nth-of-type(2),
.sub-page .project-group:nth-of-type(2) {
  animation-delay: 260ms;
}

.sub-page .cv-block:nth-of-type(3) {
  animation-delay: 360ms;
}

.sub-page .cv-block:nth-of-type(4) {
  animation-delay: 460ms;
}

.sub-page .cv-block:nth-of-type(n + 5) {
  animation-delay: 560ms;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: 28px;
  align-items: start;
  min-height: calc(100vh - 112px);
  padding: 70px 0 54px;
}

.hero-copy,
.paper-body,
.timeline-body,
.project-card-body,
.page-title,
.post-content,
.cv-block,
.blog-row div {
  min-width: 0;
  overflow-wrap: break-word;
}

.hero-copy--lab {
  position: relative;
  z-index: 2;
  padding-top: 96px;
}

.home-page .hero-copy--lab > * {
  opacity: 0;
  transform: translateX(-36px);
  animation: hero-copy-in 720ms cubic-bezier(0.2, 0.78, 0.18, 1) both;
}

.home-page .hero-copy--lab > *:nth-child(1) {
  animation-delay: 180ms;
}

.home-page .hero-copy--lab > *:nth-child(2) {
  animation-delay: 320ms;
}

.home-page .hero-copy--lab > *:nth-child(3) {
  animation-delay: 460ms;
}

.home-page .hero-copy--lab > *:nth-child(4) {
  animation-delay: 600ms;
}

.home-page .hero-copy--lab > *:nth-child(5) {
  animation-delay: 700ms;
}

.home-page .hero-copy--lab > *:nth-child(6) {
  animation-delay: 810ms;
}

.home-page .hero-copy--lab > *:nth-child(7) {
  animation-delay: 910ms;
}

.home-page .hero-copy--lab > *:nth-child(8) {
  animation-delay: 1020ms;
}

.hero-ghost-allex {
  position: absolute;
  top: -18px;
  left: -650px;
  z-index: 0;
  width: min(90vw, 1200px);
  height: calc(100vh - 82px);
  display: grid;
  place-items: end;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(82px, 36px, 0) scale(0.98);
  animation: ghost-allex-in 2400ms ease-out 360ms both;
}

.hero-ghost-allex img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  opacity: 0.2;
  filter: grayscale(0.14) contrast(1.06) drop-shadow(0 28px 56px rgba(16, 21, 34, 0.1));
  transform: scaleX(-1) scale(1.1);
  transform-origin: center bottom;
}

.hero-visual {
  align-self: stretch;
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-soft);
}

.hero-visual-caption {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual-caption span {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero-visual-caption strong {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.hero-visual-caption p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.eyebrow,
.section-heading p,
.project-status,
.post-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.85rem, 7.4vw, 6.95rem);
  line-height: 0.9;
  font-weight: 850;
}

.hero h1 span {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 1.62rem;
  font-weight: 600;
}

.affiliation,
.advisor,
.venue,
.authors {
  color: var(--muted);
}

.hero-headline {
  max-width: 670px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1.38rem, 1.62vw, 1.7rem);
  font-weight: 740;
  line-height: 1.18;
}

.affiliation {
  margin: 12px 0 0;
  font-weight: 650;
}

.advisor {
  margin: 2px 0 18px;
}

.intro {
  max-width: 720px;
  margin: 20px 0 20px;
  font-size: 1.26rem;
  line-height: 1.55;
}

.hero-allex {
  position: relative;
  display: grid;
  place-items: end center;
  align-self: end;
  justify-self: end;
  width: min(66vw, 980px);
  min-height: calc(100vh - 78px);
  margin-right: -66px;
  margin-bottom: -78px;
  opacity: 0;
  transform: translate3d(42px, 16px, 0) scale(0.92);
  animation: allex-appear 920ms cubic-bezier(0.18, 0.86, 0.2, 1) 1040ms both;
}

.hero-allex::before {
  content: "";
  position: absolute;
  inset: 4% 0 6%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.94), rgba(233, 240, 247, 0.55) 42%, transparent 72%);
  filter: blur(12px);
}

.hero-allex img {
  display: block;
  width: min(68vw, 1020px);
  height: min(96vh, 1080px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 34px 48px rgba(16, 21, 34, 0.24));
  transform: scale(1.52);
  transform-origin: left bottom;
}

.work-index-no {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.keyword-row,
.tag-row,
.link-row,
.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-row span,
.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #f9fbfd;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.link-row {
  margin-top: 18px;
}

.link-row a,
.mini-links a,
.primary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 11px;
  background: var(--surface);
  color: var(--text);
  font-weight: 620;
  font-size: 0.92rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.link-row a:hover,
.mini-links a:hover,
.primary-link:hover,
.text-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: 38px 0 10px;
  border-top: 1px solid var(--line);
}

.section--revealed,
.cv-block.section--revealed,
.project-group.section--revealed {
  animation: section-reveal 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.22;
}

.wide-heading {
  max-width: 780px;
}

.section-lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  text-transform: none;
}

.section-heading .section-lead {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  text-transform: none;
}

.work-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-map-item {
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}

.work-map-item h3 {
  margin: 0;
  line-height: 1.3;
}

.work-map-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.work-index {
  display: grid;
  border-top: 1px solid var(--text);
}

.work-index-row {
  display: grid;
  grid-template-columns: 54px minmax(210px, 0.72fr) minmax(0, 1fr) minmax(210px, 0.72fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.work-index-row:hover {
  color: inherit;
}

.work-index-row p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.work-index-row h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.16;
}

.work-index-row em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.detailed-work-index .work-index-row {
  grid-template-columns: 54px minmax(230px, 0.72fr) minmax(0, 1fr);
}

.detailed-work-index .work-index-row .tag-row,
.detailed-work-index .work-index-row ul {
  grid-column: 2 / -1;
}

.detailed-work-index .work-index-row ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.paper-list,
.timeline,
.recent-posts,
.blog-list {
  display: grid;
  gap: 14px;
}

.paper-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.paper-year,
.timeline-date {
  color: var(--accent);
  font-weight: 750;
}

.paper-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.paper-body h3,
.timeline-body h3,
.award-card h3,
.project-card h3,
.recent-posts a,
.blog-row h2,
.cv-block h2,
.post-header h1 {
  margin: 0;
  line-height: 1.3;
}

.paper-body p,
.timeline-body p,
.award-card p,
.project-card p,
.recent-posts p,
.blog-row p {
  margin: 7px 0 0;
}

.status-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--accent-soft);
  color: #176aa6;
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-links {
  margin-top: 10px;
}

.mini-links a {
  min-height: 28px;
  padding: 3px 9px;
  font-size: 0.82rem;
}

.section-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.award-grid,
.project-grid {
  display: grid;
  gap: 16px;
}

.award-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.award-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-title {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.project-title-copy {
  opacity: 1;
  animation: project-copy-in 1120ms cubic-bezier(0.16, 0.86, 0.2, 1) 120ms both;
}

.project-title h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.95;
  font-weight: 850;
}

.project-title p:not(.eyebrow) {
  max-width: 710px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.project-topic-strip button {
  position: relative;
  min-height: 40px;
  border: 1px solid rgba(154, 178, 202, 0.5);
  border-radius: 999px;
  padding: 9px 15px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.74), rgba(239, 245, 250, 0.58)) padding-box,
    linear-gradient(135deg, rgba(154, 178, 202, 0.42), rgba(255, 255, 255, 0.42)) border-box;
  color: rgba(59, 73, 89, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 780;
  opacity: 0.72;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow:
    0 12px 28px rgba(16, 21, 34, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  animation: topic-chip-in 720ms cubic-bezier(0.16, 0.98, 0.2, 1) backwards;
  transition:
    border-color 520ms ease,
    background 520ms ease,
    box-shadow 520ms ease,
    color 240ms ease,
    filter 280ms ease,
    opacity 280ms ease,
    transform 360ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-topic-strip button:nth-child(1) {
  animation-delay: 520ms;
}

.project-topic-strip button:nth-child(2) {
  animation-delay: 620ms;
}

.project-topic-strip button:nth-child(3) {
  animation-delay: 720ms;
}

.project-topic-strip button:nth-child(4) {
  animation-delay: 820ms;
}

.project-topic-strip button:nth-child(5) {
  animation-delay: 920ms;
}

.project-topic-strip button:nth-child(6) {
  animation-delay: 1020ms;
}

.project-topic-strip button:hover,
.project-topic-strip button:focus-visible {
  color: var(--text);
  opacity: 1;
  transform: translate3d(0, -2px, 0) scale(1.04);
}

.project-topic-strip button.is-active {
  border-color: transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(242, 244, 255, 0.8)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-warm)) border-box;
  color: #11172b;
  opacity: 1;
  filter: none;
  transform: translate3d(0, -2px, 0) scale(1.08);
  box-shadow:
    0 18px 36px rgba(52, 71, 210, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.project-topic-strip button.is-available {
  border-color: rgba(52, 71, 210, 0.32);
  color: #26328f;
  opacity: 0.82;
}

.project-topic-strip button.is-unavailable {
  color: rgba(86, 97, 113, 0.5);
  opacity: 0.44;
  filter: grayscale(0.86);
}

.project-topic-strip button:focus-visible,
.project-year-rail button:focus-visible {
  outline: 2px solid rgba(52, 71, 210, 0.32);
  outline-offset: 3px;
}

.project-year-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  padding-bottom: 8px;
  white-space: nowrap;
}

.project-year-rail::before {
  content: "";
  flex: 1 1 120px;
  height: 1px;
  min-width: 80px;
  background: linear-gradient(90deg, transparent, rgba(52, 71, 210, 0.42));
  transform: scaleX(0);
  transform-origin: left center;
  animation: rail-line-in 980ms cubic-bezier(0.16, 0.86, 0.2, 1) 520ms forwards;
}

.project-year-rail button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  opacity: 0.64;
  transform: translateX(0) scale(1);
  border: 1px solid rgba(154, 178, 202, 0.48);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 760;
  box-shadow: 0 14px 34px rgba(16, 21, 34, 0.06);
  backdrop-filter: blur(8px);
  animation: rail-item-in 740ms cubic-bezier(0.16, 0.98, 0.2, 1) backwards;
  animation-delay: 640ms;
  transition:
    border-color 520ms ease,
    background 520ms ease,
    box-shadow 520ms ease,
    color 240ms ease,
    filter 280ms ease,
    opacity 280ms ease,
    transform 360ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-year-rail button i {
  font-size: 0.82rem;
}

.project-year-rail button:hover {
  border-color: rgba(52, 71, 210, 0.36);
  color: var(--text);
  opacity: 1;
  transform: translateX(0) scale(1.04);
}

.project-year-rail button.is-active {
  border-color: transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(242, 244, 255, 0.8)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-warm)) border-box;
  color: #11172b;
  opacity: 1;
  filter: none;
  transform: translateX(0) scale(1.12);
  box-shadow:
    0 20px 40px rgba(52, 71, 210, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.project-year-rail button.is-available {
  border-color: rgba(52, 71, 210, 0.42);
  background:
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(239, 242, 255, 0.82)),
    rgba(241, 243, 255, 0.84);
  color: #26328f;
  opacity: 0.96;
  transform: translateX(0) scale(1.08);
  box-shadow:
    0 18px 34px rgba(52, 71, 210, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.project-year-rail button.is-unavailable {
  color: rgba(86, 97, 113, 0.48);
  opacity: 0.36;
  filter: grayscale(0.9);
}

.project-year-rail :nth-child(1) {
  animation-delay: 640ms;
}

.project-year-rail :nth-child(2) {
  animation-delay: 760ms;
}

.project-year-rail :nth-child(3) {
  animation-delay: 880ms;
}

.project-year-rail :nth-child(4) {
  animation-delay: 1000ms;
}

.project-year-rail :nth-child(5) {
  animation-delay: 1120ms;
}

.award-card {
  padding: 16px;
}

.award-card span {
  color: var(--accent);
  font-weight: 720;
}

.project-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 62px 0 82px;
}

.project-control-panel {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding: 0 28px 28px 0;
  border-right: 1px solid rgba(207, 217, 228, 0.92);
  opacity: 1;
  animation: project-copy-in 1120ms cubic-bezier(0.16, 0.86, 0.2, 1) 120ms both;
}

.project-control-panel h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.95;
  font-weight: 850;
}

.project-control-panel p:not(.eyebrow) {
  max-width: 34rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.project-control-panel .project-topic-strip {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 28px;
}

.project-control-panel .project-topic-strip button {
  justify-self: start;
  min-width: min(100%, 260px);
  text-align: left;
}

.project-control-panel .project-year-rail {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  padding-bottom: 0;
  border-top: 1px solid rgba(207, 217, 228, 0.82);
  white-space: normal;
}

.project-control-panel .project-year-rail::before {
  display: none;
}

.project-projects {
  min-width: 0;
  padding-top: 92px;
}

.project-board {
  position: relative;
  padding: 8px 0 72px;
}

.project-board-heading {
  max-width: 720px;
  opacity: 1;
  animation: project-copy-in 900ms cubic-bezier(0.16, 0.86, 0.2, 1) 320ms both;
}

.project-node-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.project-node-grid::before {
  content: "";
  position: absolute;
  inset: -22px -18px auto 10%;
  z-index: -1;
  height: 160px;
  background:
    linear-gradient(90deg, transparent, rgba(52, 71, 210, 0.11), rgba(212, 138, 40, 0.08), transparent);
  filter: blur(18px);
  opacity: 0.72;
}

.anchor-point {
  display: block;
  grid-column: 1 / -1;
  height: 1px;
}

.project-node {
  position: relative;
  grid-column: auto;
  min-height: 316px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(196, 209, 221, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.86), rgba(242, 247, 251, 0.74)) padding-box,
    linear-gradient(135deg, rgba(196, 209, 221, 0.84), rgba(255, 255, 255, 0.7)) border-box;
  box-shadow: 0 18px 44px rgba(16, 21, 34, 0.07);
  overflow: hidden;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  animation: project-node-in 880ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
  transition:
    border-color 560ms ease,
    background 560ms ease,
    box-shadow 560ms ease,
    filter 340ms ease,
    opacity 340ms ease,
    scale 360ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-node::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 78px;
  height: 78px;
  border-left: 1px solid rgba(196, 209, 221, 0.72);
  border-bottom: 1px solid rgba(196, 209, 221, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 241, 248, 0.42));
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: 0.9;
}

.project-node::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(52, 71, 210, 0), rgba(52, 71, 210, 0.84), rgba(212, 138, 40, 0.72));
  opacity: 0;
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: opacity 520ms ease, transform 720ms ease;
}

.project-node:nth-of-type(2) {
  animation-delay: 160ms;
}

.project-node:nth-of-type(3) {
  animation-delay: 260ms;
}

.project-node:nth-of-type(4) {
  animation-delay: 360ms;
}

.project-node:nth-of-type(5) {
  animation-delay: 460ms;
}

.project-node:nth-of-type(6) {
  animation-delay: 560ms;
}

.project-node:nth-of-type(n + 7) {
  animation-delay: 660ms;
}

.project-node:nth-of-type(1),
.project-node:nth-of-type(2) {
  grid-column: auto;
}

.project-node:nth-of-type(4) {
  grid-column: auto;
}

.project-node:nth-of-type(5) {
  grid-column: auto;
}

.project-node:nth-of-type(6) {
  grid-column: auto;
}

.project-node-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.project-node-topline span {
  color: rgba(8, 118, 215, 0.86);
  letter-spacing: 0;
}

.project-node-topline em {
  border: 1px solid rgba(154, 178, 202, 0.46);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(86, 97, 113, 0.82);
  font-style: normal;
}

.project-node-track {
  margin: 22px 0 8px;
  color: rgba(8, 118, 215, 0.9);
  font-size: 0.8rem;
  font-weight: 820;
  text-transform: uppercase;
}

.project-node h2 {
  max-width: 92%;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.project-node-summary {
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.52;
}

.project-node .tag-row {
  margin-top: auto;
}

.project-node .tag-row span {
  background: rgba(255, 255, 255, 0.64);
}

.project-node ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(86, 97, 113, 0.9);
  font-size: 0.94rem;
  line-height: 1.55;
}

.project-workspace.is-filtered .project-node {
  opacity: 0.3;
  filter: grayscale(0.86);
  scale: 0.985;
}

.project-workspace.is-filtered .project-node.is-selected {
  border-color: transparent;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.95), rgba(241, 243, 255, 0.84)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-warm)) border-box;
  box-shadow:
    0 26px 60px rgba(52, 71, 210, 0.13),
    0 16px 36px rgba(16, 21, 34, 0.07);
  filter: none;
  opacity: 1;
  scale: 1.018;
  z-index: 2;
}

.project-workspace.is-filtered .project-node.is-selected::after {
  opacity: 1;
  transform: scaleX(1);
}

.project-workspace.is-filtered .project-node.is-selected .project-node-topline em {
  border-color: rgba(52, 71, 210, 0.38);
  color: #26328f;
}

.project-workspace {
  display: block;
  padding: 58px 0 82px;
}

.project-control-panel {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  padding: 0 0 34px;
  border-right: 0;
  border-bottom: 1px solid rgba(213, 221, 232, 0.92);
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.project-control-copy {
  min-width: 0;
}

.project-control-panel h1 {
  font-size: clamp(3.2rem, 6.2vw, 6.2rem);
}

.project-control-panel p:not(.eyebrow) {
  max-width: 27rem;
}

.project-axis-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
  justify-items: stretch;
}

.project-control-panel .project-year-rail {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  padding: 0;
  border-top: 0;
  white-space: normal;
}

.project-control-panel .project-year-rail::before {
  display: block;
  flex: 0 0 58px;
  min-width: 58px;
  background: linear-gradient(90deg, rgba(52, 71, 210, 0), rgba(52, 71, 210, 0.44));
}

.project-control-panel .project-topic-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.project-control-panel .project-topic-strip button {
  justify-self: auto;
  min-width: 0;
  text-align: center;
}

.project-topic-strip button,
.project-year-rail button {
  border-color: rgba(150, 160, 180, 0.44);
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(245, 247, 252, 0.62)) padding-box,
    linear-gradient(135deg, rgba(170, 178, 198, 0.46), rgba(255, 255, 255, 0.42)) border-box;
  color: rgba(50, 58, 78, 0.78);
  box-shadow:
    0 12px 28px rgba(16, 21, 34, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.project-topic-strip button:hover,
.project-topic-strip button:focus-visible,
.project-year-rail button:hover,
.project-year-rail button:focus-visible {
  border-color: rgba(52, 71, 210, 0.36);
  color: var(--text);
}

.project-topic-strip button.is-active,
.project-year-rail button.is-active {
  border-color: transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(242, 244, 255, 0.82)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-warm)) border-box;
  color: #11172b;
  opacity: 1;
  filter: none;
  box-shadow:
    0 18px 36px rgba(52, 71, 210, 0.13),
    0 10px 26px rgba(212, 138, 40, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.project-topic-strip button.is-available,
.project-year-rail button.is-available {
  border-color: rgba(52, 71, 210, 0.42);
  background:
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(239, 242, 255, 0.82)),
    rgba(241, 243, 255, 0.84);
  color: #26328f;
  opacity: 0.94;
  transform: translateX(0) scale(1.06);
  box-shadow:
    0 18px 34px rgba(52, 71, 210, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.project-topic-strip button.is-unavailable,
.project-year-rail button.is-unavailable {
  color: rgba(86, 97, 113, 0.46);
  opacity: 0.34;
  filter: grayscale(0.9);
}

.project-topic-strip button:focus-visible,
.project-year-rail button:focus-visible {
  outline: 2px solid rgba(52, 71, 210, 0.32);
}

.project-projects {
  padding-top: 34px;
}

.project-board-heading {
  max-width: 760px;
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.project-node-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-node-grid::before {
  background:
    linear-gradient(90deg, transparent, rgba(52, 71, 210, 0.11), rgba(212, 138, 40, 0.08), transparent);
}

.project-node {
  min-height: 288px;
}

.project-node::after {
  background: linear-gradient(90deg, rgba(52, 71, 210, 0), rgba(52, 71, 210, 0.84), rgba(212, 138, 40, 0.72));
}

.project-node-topline span,
.project-node-track {
  color: rgba(52, 71, 210, 0.88);
}

.project-node .tag-row {
  margin-top: 16px;
}

.project-node-details {
  margin-top: auto;
  padding-top: 14px;
}

.project-node-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(213, 221, 232, 0.92);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(50, 58, 78, 0.84);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 780;
  list-style: none;
}

.project-node-details summary::-webkit-details-marker {
  display: none;
}

.project-node-details summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 900;
}

.project-node-details[open] summary {
  border-color: rgba(52, 71, 210, 0.34);
  color: var(--text);
}

.project-node-details[open] summary::before {
  content: "-";
}

.project-node-details ul {
  margin: 12px 0 0;
  padding: 14px 16px 14px 30px;
  border: 1px solid rgba(213, 221, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.project-node ul {
  color: rgba(86, 97, 113, 0.92);
}

.project-workspace.is-filtered .project-node.is-selected {
  border-color: transparent;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.95), rgba(241, 243, 255, 0.84)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-warm)) border-box;
  box-shadow:
    0 26px 60px rgba(52, 71, 210, 0.13),
    0 16px 36px rgba(16, 21, 34, 0.07);
}

.project-workspace.is-filtered .project-node.is-selected .project-node-topline em {
  border-color: rgba(52, 71, 210, 0.38);
  color: #26328f;
}

.project-explorer {
  --project-ink: #121820;
  --project-muted: #65717f;
  --project-line: #d8d2ca;
  --project-paper: rgba(255, 255, 255, 0.66);
  --project-accent: #2f4b66;
  --project-warm: #b7794a;
  display: block;
  min-height: calc(100vh - 58px);
  padding: 82px 0 96px;
}

.project-stage {
  display: block;
  margin-bottom: 28px;
  opacity: 1;
  animation: project-lateral-in 900ms cubic-bezier(0.16, 0.86, 0.2, 1) 120ms both;
}

.project-stage-title h1 {
  margin: 0;
  color: var(--project-ink);
  font-size: clamp(5.6rem, 12vw, 12.5rem);
  line-height: 0.78;
  font-weight: 880;
}

.project-stage-copy {
  max-width: 46rem;
  margin: 22px 0 0;
  color: var(--project-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.project-topic-deck {
  display: grid;
  grid-template-columns: repeat(6, minmax(124px, 1fr));
  gap: 12px;
  margin: 26px 0 42px;
  opacity: 1;
  animation: project-lateral-in 900ms cubic-bezier(0.16, 0.86, 0.2, 1) 260ms both;
}

.project-topic-deck button {
  position: relative;
  min-height: 96px;
  border: 1px solid rgba(161, 150, 137, 0.32);
  border-radius: 8px;
  padding: 16px 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(246, 244, 241, 0.48)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    0 18px 46px rgba(18, 24, 32, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  color: rgba(18, 24, 32, 0.76);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 820;
  line-height: 1.18;
  text-align: left;
  text-transform: uppercase;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    color 220ms ease,
    opacity 220ms ease,
    transform 360ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-topic-deck button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--project-accent), var(--project-warm));
  opacity: 0.22;
  transform: scaleX(0.42);
  transform-origin: left center;
  transition: opacity 260ms ease, transform 360ms ease;
}

.project-topic-deck button:hover,
.project-topic-deck button:focus-visible {
  border-color: rgba(47, 75, 102, 0.34);
  color: var(--project-ink);
  transform: translateY(-4px);
}

.project-topic-deck button.is-active {
  border-color: rgba(183, 121, 74, 0.5);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(247, 239, 231, 0.64)),
    rgba(255, 255, 255, 0.5);
  box-shadow:
    0 28px 70px rgba(18, 24, 32, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: var(--project-ink);
  transform: translateX(-16px) scale(1.08);
}

.project-topic-deck button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.project-topic-deck button.is-unavailable {
  opacity: 0.34;
  filter: grayscale(0.86);
}

.project-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 28px;
  align-items: end;
  margin: 0 0 42px;
  padding: 4px 0 34px;
  opacity: 1;
  animation: project-lateral-in 900ms cubic-bezier(0.16, 0.86, 0.2, 1) 380ms both;
}

.project-timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--project-accent), rgba(47, 75, 102, 0.34) 42%, rgba(183, 121, 74, 0.56));
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 700ms cubic-bezier(0.16, 0.86, 0.2, 1), opacity 360ms ease;
}

.project-timeline button {
  position: relative;
  display: grid;
  justify-items: start;
  border: 0;
  padding: 0 0 26px;
  background: transparent;
  color: rgba(18, 24, 32, 0.56);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color 240ms ease, opacity 260ms ease, transform 520ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-timeline button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(47, 75, 102, 0.3);
  border-radius: 999px;
  background: #f7f9fb;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.46);
  transition:
    border-color 280ms ease,
    background 280ms ease,
    box-shadow 280ms ease,
    transform 420ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-timeline button span {
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  font-weight: 860;
  line-height: 0.9;
}

.project-timeline button:hover,
.project-timeline button:focus-visible {
  color: var(--project-ink);
  transform: translateX(8px);
}

.project-timeline button.is-active {
  color: var(--project-ink);
  transform: translateX(-10px) scale(1.08);
}

.project-timeline button.is-active::after {
  border-color: var(--project-warm);
  background: #fff8ef;
  box-shadow:
    0 0 0 10px rgba(183, 121, 74, 0.12),
    0 14px 28px rgba(18, 24, 32, 0.12);
  transform: scale(1.18);
}

.project-explorer.is-filtered .project-timeline-line {
  transform: scaleX(0.56);
}

.project-explorer.is-filtered .project-timeline button:not(.is-active) {
  opacity: 0.38;
  transform: translateX(-18px) scale(0.92);
}

.project-focus-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.42fr) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  min-height: 420px;
}

.project-focus-panel {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding-top: 8px;
  color: var(--project-ink);
}

.project-focus-panel > p:first-child {
  margin: 0 0 10px;
  color: var(--project-warm);
  font-size: 0.84rem;
  font-weight: 820;
  text-transform: uppercase;
}

.project-focus-panel h2 {
  margin: 0;
  font-size: clamp(3.8rem, 8vw, 8.2rem);
  line-height: 0.82;
  font-weight: 880;
  overflow-wrap: normal;
  word-break: normal;
  transform-origin: left center;
  transition: transform 580ms cubic-bezier(0.16, 0.98, 0.2, 1), color 280ms ease;
}

.project-explorer.is-topic-mode .project-focus-panel h2 {
  font-size: clamp(3.5rem, 6vw, 6.4rem);
  line-height: 0.86;
}

.project-focus-panel p:not(:first-child) {
  max-width: 25rem;
  margin: 22px 0 0;
  color: var(--project-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.project-explorer.is-filtered .project-focus-panel h2 {
  transform: scale(1.04);
}

.project-projects {
  min-width: 0;
  padding-top: 0;
}

.project-empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(161, 150, 137, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(246, 244, 241, 0.28)),
    rgba(255, 255, 255, 0.2);
  color: rgba(101, 113, 127, 0.78);
  text-align: center;
}

.project-empty-state span {
  width: min(78%, 520px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(47, 75, 102, 0.24), rgba(183, 121, 74, 0.2), transparent);
}

.project-empty-state p {
  margin: 18px 0 0;
  font-weight: 700;
}

.project-explorer .project-node-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.project-explorer .project-node-grid::before {
  display: none;
}

.project-explorer .project-node {
  min-height: 0;
  padding: 24px 26px;
  border-color: rgba(161, 150, 137, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(246, 244, 241, 0.54)) padding-box,
    linear-gradient(135deg, rgba(196, 188, 177, 0.5), rgba(255, 255, 255, 0.58)) border-box;
  box-shadow: 0 22px 54px rgba(18, 24, 32, 0.07);
  animation: project-card-land 720ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.project-explorer .project-node:nth-of-type(2) {
  animation-delay: 80ms;
}

.project-explorer .project-node:nth-of-type(3) {
  animation-delay: 160ms;
}

.project-explorer .project-node:nth-of-type(4) {
  animation-delay: 240ms;
}

.project-explorer .project-node:nth-of-type(n + 5) {
  animation-delay: 320ms;
}

.project-explorer .project-node::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(238, 232, 224, 0.34));
}

.project-explorer .project-node::after {
  background: linear-gradient(90deg, rgba(47, 75, 102, 0), rgba(47, 75, 102, 0.72), rgba(183, 121, 74, 0.68));
  opacity: 1;
  transform: scaleX(1);
}

.project-explorer .project-node-topline span,
.project-explorer .project-node-track {
  color: var(--project-accent);
}

.project-explorer .project-node h2 {
  max-width: 88%;
  font-size: clamp(1.42rem, 2.3vw, 2.3rem);
}

.project-explorer .project-node-summary {
  max-width: 54rem;
}

.project-explorer .project-node[hidden],
.project-empty-state[hidden] {
  display: none;
}

.project-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid.wide {
  grid-template-columns: 1fr;
}

.project-card {
  overflow: hidden;
}

.featured-work {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.featured-work .project-card:first-child {
  grid-row: span 2;
}

.featured-work .project-card:first-child .project-card-body {
  padding: 18px;
}

.featured-work .project-card:first-child .project-media img {
  aspect-ratio: 4 / 3;
}

.project-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.project-card-link:hover {
  color: inherit;
}

.project-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.project-card-body {
  padding: 16px;
}

.project-card--text {
  border-top: 1px solid var(--line);
}

.project-card--text .project-card-body {
  padding-top: 18px;
}

.project-grid.wide .project-card:not(.project-card--text) {
  display: grid;
  grid-template-columns: minmax(230px, 34%) minmax(0, 1fr);
}

.project-grid.wide .project-media img {
  height: 100%;
  min-height: 240px;
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.project-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 4px;
}

.project-meta-line .project-status {
  margin-bottom: 0;
}

.project-meta-line span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.project-subtitle {
  color: var(--muted);
  font-weight: 650;
}

.project-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-card ul,
.timeline ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.project-group + .project-group {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbfd;
}

.project-overview h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.project-overview p:not(.eyebrow) {
  max-width: 610px;
  margin: 10px 0 0;
  color: var(--muted);
}

.project-overview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.compact-work-list {
  display: grid;
  gap: 10px;
}

.compact-work-row {
  display: grid;
  grid-template-columns: 150px minmax(180px, 0.65fr) minmax(0, 1fr);
  gap: 12px 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.compact-work-row:hover {
  color: inherit;
}

.compact-work-row span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.compact-work-row strong {
  line-height: 1.3;
}

.compact-work-row em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.compact-work-row .tag-row {
  grid-column: 2 / -1;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.recent-posts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recent-posts article,
.blog-row,
.prose-page,
.post-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.recent-posts article {
  padding: 16px;
}

.recent-posts time,
.blog-row time {
  color: var(--muted);
  font-size: 0.88rem;
}

.prose-page,
.post-page {
  padding: 28px;
}

.page-title {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.blog-intro {
  margin-bottom: 18px;
  color: var(--muted);
}

.blog-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.blog-row h2 {
  font-size: 1.12rem;
}

.small-tags span {
  font-size: 0.78rem;
}

.cv-block {
  margin: 28px 0;
}

.cv-block:first-of-type {
  margin-top: 0;
}

.link-row.inline {
  margin-top: 12px;
}

.cv-project-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cv-project-columns h3 {
  margin: 0 0 8px;
  line-height: 1.3;
}

.cv-project-columns ul {
  margin: 0;
  padding-left: 18px;
}

.paper-list.slim .paper-item {
  padding: 12px 0;
}

.compact-timeline .timeline-item {
  padding: 12px 0;
}

.post-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.post-header h1 {
  font-size: 2rem;
}

.post-content {
  margin-top: 24px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  line-height: 1.3;
}

.post-content img {
  margin: 18px auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.post-content pre {
  overflow-x: auto;
  border-radius: 8px;
  padding: 14px;
  background: #1f2421;
  color: #f5f5f0;
}

.post-content code {
  font-size: 0.92em;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}

.post-content th,
.post-content td {
  border: 1px solid var(--line);
  padding: 8px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.not-found {
  min-height: 45vh;
  display: grid;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #111827;
  color: #e9eef5;
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

@keyframes hero-copy-in {
  0% {
    opacity: 0;
    transform: translateX(-36px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes allex-appear {
  0% {
    opacity: 0;
    transform: translate3d(42px, 16px, 0) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes ghost-allex-in {
  0% {
    opacity: 0;
    transform: translate3d(82px, 36px, 0) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes page-soft-drop {
  0% {
    opacity: 0;
    transform: translate3d(0, -26px, 0);
    filter: blur(8px);
  }
  58% {
    opacity: 0.82;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes project-copy-in {
  0% {
    opacity: 0;
    transform: translate3d(-52px, 0, 0);
    filter: blur(9px);
  }
  62% {
    opacity: 0.86;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes rail-line-in {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes rail-item-in {
  0% {
    opacity: 0;
    transform: translateX(-42px) scale(0.92);
    filter: blur(6px);
  }
  64% {
    opacity: 0.9;
    transform: translateX(8px) scale(1.02);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes topic-chip-in {
  0% {
    opacity: 0;
    transform: translate3d(-28px, 0, 0) scale(0.94);
    filter: blur(5px);
  }
  62% {
    opacity: 0.86;
    transform: translate3d(7px, 0, 0) scale(1.02);
    filter: blur(1px);
  }
  100% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes project-node-in {
  0% {
    transform: translate3d(-42px, 0, 0);
  }
  64% {
    transform: translate3d(8px, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes project-lateral-in {
  0% {
    transform: translate3d(-54px, 0, 0);
  }
  70% {
    transform: translate3d(10px, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes project-card-land {
  0% {
    opacity: 0;
    transform: translate3d(96px, 0, 0) scale(0.96);
    filter: blur(10px);
  }
  62% {
    opacity: 0.96;
    transform: translate3d(-10px, 0, 0) scale(1.01);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes capsule-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1, 1);
    border-radius: 999px;
  }
  24% {
    transform: translate3d(0, -2px, 0) scale(1.045, 0.965);
    border-radius: 58% 42% 52% 48% / 54% 48% 52% 46%;
  }
  52% {
    transform: translate3d(0, 2px, 0) scale(0.972, 1.06);
    border-radius: 45% 55% 50% 50% / 48% 57% 43% 52%;
  }
  78% {
    transform: translate3d(0, -1px, 0) scale(1.025, 0.984);
    border-radius: 53% 47% 57% 43% / 50% 45% 55% 50%;
  }
}

@keyframes capsule-shimmer {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-26%) skewX(-8deg);
  }
  46% {
    opacity: 0.78;
    transform: translateX(18%) skewX(-8deg);
  }
  72% {
    opacity: 0.52;
    transform: translateX(4%) skewX(-8deg);
  }
}

@keyframes bubble-fly-in {
  0% {
    opacity: 0;
    transform: translateX(220px) scale(0.78);
  }
  72% {
    opacity: 1;
    transform: translateX(-18px) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes bubble-float {
  0%,
  100% {
    translate: 0 0;
  }
  35% {
    translate: -8px 10px;
  }
  70% {
    translate: 5px -6px;
  }
}

@keyframes bubble-drift-a {
  0%,
  100% {
    translate: var(--bubble-x) var(--bubble-y);
    rotate: -1deg;
  }
  28% {
    translate: calc(var(--bubble-x) + 42px) calc(var(--bubble-y) - 34px);
    rotate: 3deg;
  }
  58% {
    translate: calc(var(--bubble-x) - 28px) calc(var(--bubble-y) + 30px);
    rotate: -2.4deg;
  }
  82% {
    translate: calc(var(--bubble-x) + 20px) calc(var(--bubble-y) + 16px);
    rotate: 1.2deg;
  }
}

@keyframes bubble-drift-b {
  0%,
  100% {
    translate: var(--bubble-x) var(--bubble-y);
    rotate: 1.4deg;
  }
  22% {
    translate: calc(var(--bubble-x) - 34px) calc(var(--bubble-y) - 28px);
    rotate: -3deg;
  }
  52% {
    translate: calc(var(--bubble-x) + 46px) calc(var(--bubble-y) + 26px);
    rotate: 2.6deg;
  }
  78% {
    translate: calc(var(--bubble-x) - 18px) calc(var(--bubble-y) + 38px);
    rotate: -1.2deg;
  }
}

@keyframes bubble-drift-c {
  0%,
  100% {
    translate: var(--bubble-x) var(--bubble-y);
    rotate: -0.8deg;
  }
  26% {
    translate: calc(var(--bubble-x) + 56px) calc(var(--bubble-y) - 18px);
    rotate: 2.8deg;
  }
  50% {
    translate: calc(var(--bubble-x) + 8px) calc(var(--bubble-y) + 42px);
    rotate: -2.8deg;
  }
  76% {
    translate: calc(var(--bubble-x) - 44px) calc(var(--bubble-y) - 12px);
    rotate: 1.8deg;
  }
}

@keyframes bubble-drift-d {
  0%,
  100% {
    translate: var(--bubble-x) var(--bubble-y);
    rotate: 1deg;
  }
  24% {
    translate: calc(var(--bubble-x) + 30px) calc(var(--bubble-y) + 34px);
    rotate: -3.2deg;
  }
  54% {
    translate: calc(var(--bubble-x) - 46px) calc(var(--bubble-y) - 28px);
    rotate: 2.4deg;
  }
  80% {
    translate: calc(var(--bubble-x) + 18px) calc(var(--bubble-y) - 40px);
    rotate: -1.4deg;
  }
}

@keyframes bubble-wobble-a {
  0%,
  100% {
    transform: scale(1, 1) skew(0deg, 0deg) rotate(0deg);
    border-radius: 55% 45% 52% 48% / 48% 57% 43% 52%;
  }
  24% {
    transform: scale(1.08, 0.94) skew(-2.2deg, 1.2deg) rotate(1.4deg);
    border-radius: 48% 52% 56% 44% / 56% 43% 57% 44%;
  }
  54% {
    transform: scale(0.95, 1.07) skew(1.8deg, -1.6deg) rotate(-1deg);
    border-radius: 60% 40% 47% 53% / 44% 58% 42% 56%;
  }
  78% {
    transform: scale(1.04, 0.98) skew(-1deg, 0.8deg) rotate(0.7deg);
    border-radius: 51% 49% 45% 55% / 52% 46% 54% 48%;
  }
}

@keyframes bubble-wobble-b {
  0%,
  100% {
    transform: scale(1, 1) skew(0deg, 0deg) rotate(0deg);
    border-radius: 46% 54% 45% 55% / 54% 42% 58% 46%;
  }
  30% {
    transform: scale(0.92, 1.1) skew(2.4deg, -1.2deg) rotate(-1.6deg);
    border-radius: 58% 42% 49% 51% / 45% 58% 42% 55%;
  }
  62% {
    transform: scale(1.09, 0.93) skew(-2deg, 1.8deg) rotate(1.4deg);
    border-radius: 43% 57% 56% 44% / 58% 44% 56% 42%;
  }
}

@keyframes bubble-wobble-c {
  0%,
  100% {
    transform: scale(1, 1) skew(0deg, 0deg) rotate(0deg);
    border-radius: 58% 42% 50% 50% / 42% 54% 46% 58%;
  }
  22% {
    transform: scale(1.07, 0.95) skew(1.5deg, -2deg) rotate(1deg);
    border-radius: 50% 50% 58% 42% / 50% 45% 55% 50%;
  }
  48% {
    transform: scale(0.94, 1.08) skew(-2.2deg, 1.2deg) rotate(-1.8deg);
    border-radius: 63% 37% 46% 54% / 40% 58% 42% 60%;
  }
  82% {
    transform: scale(1.05, 0.97) skew(1deg, -0.8deg) rotate(0.8deg);
    border-radius: 54% 46% 53% 47% / 46% 52% 48% 54%;
  }
}

@keyframes bubble-wobble-d {
  0%,
  100% {
    transform: scale(1, 1) skew(0deg, 0deg) rotate(0deg);
    border-radius: 50% 50% 45% 55% / 48% 55% 45% 52%;
  }
  38% {
    transform: scale(0.93, 1.1) skew(-1.8deg, 2deg) rotate(-1.5deg);
    border-radius: 57% 43% 52% 48% / 44% 58% 42% 56%;
  }
  68% {
    transform: scale(1.1, 0.92) skew(2deg, -1.4deg) rotate(1.8deg);
    border-radius: 44% 56% 48% 52% / 56% 44% 56% 44%;
  }
}

@keyframes bubble-burst {
  0% {
    opacity: 0.72;
    transform: translateY(-50%) scale(0);
  }
  38% {
    opacity: 0.82;
    transform: translateY(-50%) scale(1.8);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(5.2);
  }
}

@keyframes bubble-press {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  36% {
    opacity: 1;
    transform: scale(0.93);
  }
  68% {
    opacity: 1;
    transform: scale(1.045);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes droplet-drip {
  0% {
    opacity: 0;
    transform: translate(-50%, -2px) scale(0.42);
  }
  18% {
    opacity: 0.9;
    transform: translate(-50%, 1px) scale(0.74);
  }
  58% {
    opacity: 0.82;
    transform: translate(-50%, 22px) scale(0.58);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 42px) scale(0.22);
  }
}

@keyframes section-reveal {
  0% {
    opacity: 0.68;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .bubble-nav {
    display: none;
  }
}

@media (min-width: 981px) and (max-width: 1240px) {
  .bubble-nav {
    top: 78px;
    right: 38px;
    transform: scale(0.86);
    transform-origin: top right;
  }
}

@media (min-width: 981px) {
  .nav-wrap {
    justify-content: flex-start;
  }

  .home-page .nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bubble-link,
  .bubble-skin,
  .home-page .hero-copy--lab > *,
  .home-page .hero-ghost-allex,
  .home-page .hero-allex,
  .sub-page .prose-page,
  .sub-page .post-page,
  .sub-page .blog-row,
  .sub-page .cv-block,
  .sub-page .project-group,
  .project-control-panel,
  .project-title-copy,
  .project-topic-strip button,
  .project-year-rail::before,
  .project-year-rail button,
  .project-board-heading,
  .project-node,
  .section--revealed,
  .cv-block.section--revealed,
  .project-group.section--revealed {
    animation: none;
    opacity: 1;
    transform: none;
    translate: none;
    rotate: none;
    filter: none;
  }

  .bubble-link,
  .bubble-toggle,
  .project-topic-strip button,
  .project-year-rail button,
  .project-node {
    transition: none;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .nav-wrap,
  .footer-inner {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero,
  .hero-copy,
  .hero-ghost-allex,
  .hero-allex,
  .hero-visual,
  .section,
  .project-overview,
  .featured-work,
  .compact-work-list {
    max-width: 100%;
  }

  .nav-wrap {
    min-height: 56px;
  }

  .brand-name {
    white-space: nowrap;
  }

  .brand-sub {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 18px;
    border-top: 1px solid var(--line);
  }

  .hero,
  .work-index-row,
  .project-title,
  .project-workspace,
  .project-overview,
  .featured-work,
  .project-grid.wide .project-card:not(.project-card--text),
  .paper-item,
  .timeline-item,
  .blog-row,
  .cv-project-columns,
  .compact-work-row {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-ghost-allex {
    display: none;
  }

  .hero-copy--lab {
    padding-top: 42px;
  }

  .home-page .hero-copy--lab > * {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-visual,
  .hero-allex {
    width: 100%;
    max-width: none;
  }

  .hero-visual img {
    width: 100%;
  }

  .hero-allex {
    justify-self: center;
    min-height: 320px;
    margin-right: 0;
    margin-bottom: 0;
  }

  .hero-allex img {
    width: min(100%, 360px);
    height: 330px;
    transform: scale(1);
  }

  .hero h1 {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }

  .affiliation,
  .intro,
  .section-lead,
  .project-overview p:not(.eyebrow),
  .project-title p:not(.eyebrow),
  .project-control-panel p:not(.eyebrow) {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .project-workspace {
    gap: 26px;
    padding: 48px 0 64px;
  }

  .project-control-panel {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(207, 217, 228, 0.92);
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .project-control-panel h1 {
    font-size: 3rem;
  }

  .project-projects {
    padding-top: 0;
  }

  .project-board-heading,
  .project-topic-strip button,
  .project-year-rail button,
  .project-node {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .project-control-panel .project-topic-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-control-panel .project-topic-strip button {
    justify-self: stretch;
    min-width: 0;
  }

  .project-year-rail {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 0;
  }

  .project-year-rail::before {
    flex-basis: 100%;
    min-width: 100%;
  }

  .project-topic-strip {
    gap: 8px;
  }

  .project-topic-strip button,
  .project-year-rail button {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.8rem;
  }

  .project-node-grid {
    grid-template-columns: 1fr;
  }

  .project-node,
  .project-node:nth-of-type(1),
  .project-node:nth-of-type(2),
  .project-node:nth-of-type(4),
  .project-node:nth-of-type(5),
  .project-node:nth-of-type(6) {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .hero h1 span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }

  .split-heading {
    align-items: start;
    flex-direction: column;
  }

  .link-row {
    width: 100%;
  }

  .link-row a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-width: 0;
  }

  .work-index-row {
    gap: 10px;
    padding: 18px 0;
  }

  .work-index-row .tag-row,
  .detailed-work-index .work-index-row .tag-row,
  .detailed-work-index .work-index-row ul {
    grid-column: auto;
  }

  .award-grid,
  .project-grid.compact,
  .recent-posts,
  .work-map {
    grid-template-columns: 1fr;
  }

  .compact-work-row .tag-row {
    grid-column: auto;
  }

  .project-grid.wide .project-media img {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .paper-topline {
    flex-direction: column;
  }

  .prose-page,
  .post-page {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .nav-wrap,
  .footer-inner {
    max-width: 366px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .hero-headline,
  .section-heading h2,
  .project-overview h2 {
    overflow-wrap: anywhere;
  }

  .hero-headline {
    font-size: 1.12rem;
  }

  .hero-copy--lab::before {
    font-size: 2.65rem;
  }

  .hero-allex {
    min-height: 280px;
  }

  .hero-allex img {
    width: min(100%, 330px);
    height: 300px;
  }

  .link-row a {
    flex-basis: calc(50% - 8px);
  }

  .hero h1,
  .project-title h1,
  .project-control-panel h1 {
    font-size: 3rem;
  }

  .work-index-row h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 980px) {
  .project-explorer {
    padding: 48px 0 70px;
  }

  .project-stage,
  .project-focus-layout {
    grid-template-columns: 1fr;
  }

  .project-stage {
    gap: 18px;
    margin-bottom: 22px;
  }

  .project-stage-title h1 {
    font-size: clamp(4.4rem, 18vw, 7.2rem);
  }

  .project-topic-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 34px;
  }

  .project-topic-deck button {
    min-height: 78px;
  }

  .project-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .project-timeline button span {
    font-size: clamp(1.75rem, 8vw, 2.8rem);
  }

  .project-focus-panel {
    position: relative;
    top: auto;
  }

  .project-focus-panel h2 {
    font-size: clamp(3.2rem, 16vw, 5.8rem);
  }

  .project-empty-state {
    min-height: 220px;
  }

  .project-explorer .project-node h2 {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .project-stage-title h1 {
    font-size: clamp(3.7rem, 18vw, 4.55rem);
  }

  .project-topic-deck {
    grid-template-columns: 1fr;
  }

  .project-timeline {
    gap: 10px;
    padding-bottom: 30px;
  }

  .project-timeline button span {
    font-size: 1.6rem;
  }

  .project-timeline button.is-active {
    transform: none;
  }

  .project-explorer .project-node {
    padding: 20px;
  }
}

.project-timeline-page {
  --project-blue: var(--accent);
  --project-green: var(--accent-green);
  --project-ink: var(--text);
  --project-muted: var(--muted);
  position: relative;
  display: block;
  min-height: calc(100vh - 58px);
  padding: 76px 0 104px;
  overflow: visible;
}

.project-timeline-page::before {
  content: "";
  position: absolute;
  inset: 8% -12% auto;
  z-index: -1;
  height: 360px;
  background:
    linear-gradient(90deg, transparent, rgba(18, 138, 216, 0.11), rgba(67, 201, 71, 0.1), transparent);
  filter: blur(32px);
  opacity: 0.72;
  pointer-events: none;
}

.project-intro {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.16, 0.86, 0.2, 1),
    filter 520ms ease;
}

.project-intro > * {
  opacity: 0;
  transform: translate3d(0, -36px, 0);
  filter: blur(12px);
  animation: project-top-reveal 860ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.project-intro > *:nth-child(1) {
  animation-delay: 90ms;
}

.project-intro > *:nth-child(2) {
  animation-delay: 200ms;
}

.project-intro > *:nth-child(3) {
  animation-delay: 330ms;
}

.project-intro > *:nth-child(4) {
  animation-delay: 470ms;
}

.project-intro > *:nth-child(5) {
  animation-delay: 610ms;
}

.project-intro h1 {
  margin: 0;
  color: var(--project-ink);
  font-size: clamp(6.4rem, 17vw, 16.5rem);
  font-weight: 890;
  line-height: 0.74;
  letter-spacing: 0;
}

.project-intro-copy {
  max-width: 800px;
  margin: 0;
  color: var(--project-muted);
  font-size: clamp(1.02rem, 1.2vw, 1.2rem);
  line-height: 1.62;
}

.project-mode-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto 52px auto;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border: 1px solid rgba(18, 138, 216, 0.22);
  border-radius: 999px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 18px 42px rgba(17, 23, 34, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: rgba(17, 23, 34, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 840;
  text-transform: uppercase;
  transition:
    border-color 220ms ease,
    color 220ms ease,
    transform 260ms cubic-bezier(0.16, 0.86, 0.2, 1),
    box-shadow 260ms ease;
}

.project-mode-toggle i {
  position: relative;
  width: 52px;
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(18, 138, 216, 0.22), rgba(67, 201, 71, 0.3)),
    rgba(231, 244, 255, 0.82);
}

.project-mode-toggle i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-green);
  box-shadow: 0 8px 18px rgba(67, 201, 71, 0.25);
  transition: transform 260ms cubic-bezier(0.16, 0.86, 0.2, 1), background 220ms ease;
}

.project-mode-toggle:hover,
.project-mode-toggle:focus-visible,
.project-mode-toggle.is-active {
  border-color: rgba(67, 201, 71, 0.46);
  color: var(--project-ink);
  transform: translateY(-2px);
  box-shadow:
    0 24px 52px rgba(18, 138, 216, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.project-mode-toggle.is-active i::after {
  transform: translateX(24px);
  background: var(--accent);
}

.year-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  width: min(1120px, 100%);
  margin: 52px auto 0;
  padding: 18px 0 48px;
}

.year-timeline-line {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 28px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--project-blue), rgba(18, 138, 216, 0.55) 48%, var(--project-green));
  box-shadow: 0 14px 28px rgba(18, 138, 216, 0.14);
  transform-origin: left center;
  transition:
    opacity 260ms ease,
    transform 560ms cubic-bezier(0.16, 0.86, 0.2, 1),
    filter 260ms ease;
}

.year-timeline button {
  position: relative;
  display: grid;
  justify-items: center;
  border: 0;
  padding: 0 0 48px;
  background: transparent;
  color: rgba(17, 23, 34, 0.58);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition:
    color 220ms ease,
    opacity 240ms ease,
    filter 240ms ease,
    transform 520ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.year-timeline button::after {
  content: "";
  position: absolute;
  bottom: 17px;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(18, 138, 216, 0.4);
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 0 0 9px rgba(255, 255, 255, 0.7),
    0 12px 24px rgba(17, 23, 34, 0.1);
  transform: translateX(-50%);
  transition:
    border-color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease,
    transform 480ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.year-timeline button span {
  display: inline-block;
  font-size: clamp(2.25rem, 4vw, 4.45rem);
  font-weight: 880;
  line-height: 0.86;
  transform-origin: center bottom;
  transition:
    color 220ms ease,
    transform 520ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.year-timeline button[data-project-year="before"] span {
  font-size: clamp(2.05rem, 3.55vw, 4rem);
}

.year-timeline:hover .year-timeline-line {
  opacity: 0.48;
  filter: grayscale(0.55);
  transform: scaleX(0.92);
}

.year-timeline:hover button {
  opacity: 0.32;
  filter: grayscale(0.9);
  transform: scale(0.88);
}

.year-timeline button:hover,
.year-timeline button:focus-visible,
.year-timeline button.is-active {
  color: var(--project-ink);
  opacity: 1;
  filter: none;
  transform: translateY(-8px) scale(1.12);
  z-index: 2;
}

.year-timeline button:hover span,
.year-timeline button:focus-visible span,
.year-timeline button.is-active span {
  color: var(--project-blue);
  transform: translateY(-8px) scale(1.12);
}

.year-timeline button:hover::after,
.year-timeline button:focus-visible::after,
.year-timeline button.is-active::after {
  border-color: var(--project-green);
  background: #f6fff5;
  box-shadow:
    0 0 0 14px rgba(67, 201, 71, 0.12),
    0 18px 34px rgba(67, 201, 71, 0.18);
  transform: translateX(-50%) scale(1.34);
}

.project-timeline-page.is-year-open .project-intro {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -64px, 0) scale(0.96);
  filter: blur(14px);
}

.project-timeline-page.is-year-open {
  min-height: 1180px;
}

.project-year-view {
  position: absolute;
  inset: 70px 0 auto;
  opacity: 0;
  transform: translate3d(90px, 36px, 0);
  transition:
    opacity 560ms ease,
    transform 820ms cubic-bezier(0.16, 0.86, 0.2, 1),
    filter 560ms ease;
  filter: blur(14px);
}

.project-year-view[hidden] {
  display: none;
}

.project-timeline-page.is-year-settled .project-year-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.project-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 6px 0;
  background: transparent;
  color: rgba(17, 23, 34, 0.68);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 820;
  text-transform: uppercase;
  transition: color 180ms ease, transform 220ms ease;
}

.project-back-button:hover,
.project-back-button:focus-visible {
  color: var(--accent-strong);
  transform: translateX(-6px);
}

.project-year-view .eyebrow {
  margin-top: 30px;
}

.project-year-view h2 {
  margin: 0;
  color: var(--project-ink);
  font-size: clamp(6rem, 16vw, 14rem);
  font-weight: 900;
  line-height: 0.76;
}

.project-year-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--project-muted);
  font-size: 1.05rem;
}

.project-timeline-page .project-node-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin-top: 42px;
}

.project-timeline-page .project-node-grid::before {
  display: none;
}

.project-timeline-page .project-node {
  min-height: 270px;
  border-color: rgba(18, 138, 216, 0.18);
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 252, 0.82)) padding-box,
    linear-gradient(135deg, rgba(18, 138, 216, 0.36), rgba(67, 201, 71, 0.34)) border-box;
  box-shadow:
    0 22px 54px rgba(17, 23, 34, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  animation: project-card-snap 780ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.project-timeline-page .project-node:nth-of-type(2) {
  animation-delay: 90ms;
}

.project-timeline-page .project-node:nth-of-type(3) {
  animation-delay: 170ms;
}

.project-timeline-page .project-node:nth-of-type(4) {
  animation-delay: 250ms;
}

.project-timeline-page .project-node:nth-of-type(n + 5) {
  animation-delay: 320ms;
}

.project-timeline-page .project-node::after {
  height: 5px;
  background: linear-gradient(90deg, var(--project-blue), var(--project-green));
  opacity: 1;
  transform: scaleX(1);
}

.project-timeline-page .project-node-topline span,
.project-timeline-page .project-node-track {
  color: var(--project-blue);
}

.project-timeline-page .project-node-topline em {
  border-color: rgba(67, 201, 71, 0.36);
  color: rgba(17, 23, 34, 0.72);
}

.project-timeline-page .project-node h2 {
  max-width: 100%;
  font-size: clamp(1.42rem, 2.25vw, 2.15rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-timeline-page .project-node[hidden],
.project-timeline-page .anchor-point[hidden] {
  display: none;
}

.project-timeline-page .anchor-point {
  display: none;
}

@keyframes project-top-reveal {
  0% {
    opacity: 0;
    transform: translate3d(0, -36px, 0);
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes project-card-snap {
  0% {
    opacity: 0;
    transform: translate3d(54px, 22px, 0) scale(0.96);
    filter: blur(10px);
  }
  66% {
    opacity: 1;
    transform: translate3d(-5px, 0, 0) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 980px) {
  .bubble-links {
    width: 360px;
  }

  .bubble-link,
  .bubble-link:nth-child(2),
  .bubble-link:nth-child(3),
  .bubble-link:nth-child(4) {
    width: 350px;
    font-size: clamp(1.8rem, 4vw, 2.34rem);
  }

  .project-timeline-page {
    padding: 56px 0 84px;
  }

  .project-intro h1 {
    font-size: clamp(4.5rem, 20vw, 9rem);
  }

  .year-timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .year-timeline button span {
    font-size: clamp(1.8rem, 8vw, 3.6rem);
  }

  .project-year-view {
    inset: 48px 0 auto;
  }

  .project-timeline-page.is-year-open {
    min-height: 1380px;
  }

  .project-timeline-page .project-node-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .project-mode-toggle {
    grid-template-columns: 1fr;
    gap: 6px;
    border-radius: 16px;
  }

  .project-mode-toggle i {
    justify-self: center;
  }

  .year-timeline {
    margin-top: 34px;
    padding-bottom: 38px;
  }

  .year-timeline-line {
    left: 6%;
    right: 6%;
  }

  .year-timeline button {
    padding-bottom: 42px;
  }

  .year-timeline button span {
    font-size: clamp(1.2rem, 7.5vw, 2.2rem);
  }

  .project-year-view h2 {
    font-size: clamp(4.2rem, 24vw, 7rem);
  }
}

.project-timeline-page .project-node-grid:has(.project-node:hover) .project-node:not(:hover) {
  opacity: 0.26;
  filter: grayscale(1);
  transform: scale(0.985);
}

.project-timeline-page .project-node-grid:has(.project-node:hover) .project-node:hover {
  opacity: 1;
  filter: none;
  transform: translateX(8px) scale(1.018);
  border-color: rgba(67, 201, 71, 0.5);
  box-shadow:
    0 28px 70px rgba(67, 201, 71, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.project-timeline-page.is-card-hover .project-node:not(.is-hovered) {
  opacity: 0.26;
  filter: grayscale(1);
  transform: scale(0.985);
}

.project-timeline-page.is-card-hover .project-node.is-hovered {
  opacity: 1;
  filter: none;
  transform: translateX(8px) scale(1.018);
  border-color: rgba(67, 201, 71, 0.5);
  box-shadow:
    0 28px 70px rgba(67, 201, 71, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.project-timeline-page .project-node {
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    filter 260ms ease,
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-node-link {
  display: inline-flex;
  justify-self: start;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 2px;
  border: 1px solid rgba(67, 201, 71, 0.28);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.62);
  color: #269b31;
  font-size: 0.88rem;
  font-weight: 820;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 220ms ease;
}

.project-node-link:hover,
.project-node-link:focus-visible {
  border-color: rgba(67, 201, 71, 0.72);
  background: rgba(239, 255, 239, 0.88);
  color: var(--accent-green);
  transform: translateX(4px);
}

.project-detail-page {
  position: relative;
  padding: 58px 0 112px;
}

.project-detail-back {
  text-decoration: none;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 54px;
  align-items: end;
  min-height: 58vh;
  padding: 38px 0 64px;
}

.project-detail-hero--text {
  grid-template-columns: minmax(0, 900px);
  justify-content: start;
  min-height: 52vh;
}

.project-detail-copy {
  max-width: 820px;
  animation: project-top-reveal 900ms cubic-bezier(0.16, 0.86, 0.2, 1) 90ms both;
}

.project-detail-copy h1 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.82;
}

.project-detail-fulltitle {
  margin: 18px 0 0;
  color: #269b31;
  font-size: clamp(1.05rem, 1.4vw, 1.34rem);
  font-weight: 820;
}

.project-detail-summary {
  max-width: 720px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.42vw, 1.28rem);
  line-height: 1.65;
}

.project-detail-media {
  margin: 0;
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 76px rgba(17, 23, 34, 0.11);
  animation: project-card-snap 940ms cubic-bezier(0.16, 0.86, 0.2, 1) 220ms both;
}

.project-detail-media img {
  display: block;
  width: 100%;
  height: min(46vh, 460px);
  object-fit: cover;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}

.project-detail-section,
.project-detail-meta {
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 249, 0.84)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    0 24px 62px rgba(17, 23, 34, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.project-detail-section {
  padding: 34px 36px 38px;
}

.project-detail-section h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  line-height: 1;
}

.project-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.project-detail-note {
  margin: 24px 0 0;
  border-left: 4px solid var(--accent-green);
  padding: 12px 0 12px 16px;
  color: rgba(17, 23, 34, 0.72);
  font-weight: 680;
}

.project-detail-meta {
  position: sticky;
  top: 98px;
  padding: 26px;
}

.project-detail-meta dl {
  display: grid;
  gap: 22px;
  margin: 0;
}

.project-detail-meta dt {
  margin-bottom: 5px;
  color: #269b31;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-detail-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 760;
}

@media (max-width: 980px) {
  .project-detail-hero,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-media img {
    height: 360px;
  }

  .project-detail-meta {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .project-detail-copy h1 {
    font-size: clamp(3.5rem, 20vw, 6.8rem);
  }

  .project-detail-section {
    padding: 28px 24px 32px;
  }
}

.page-shell--wide {
  width: min(1360px, calc(100% - 40px));
  max-width: none;
}

.nav-wrap {
  justify-content: flex-start;
}

.bubble-nav {
  top: 82px;
  right: 34px;
  width: 390px;
}

.bubble-toggle:hover,
.bubble-toggle:focus-visible,
.bubble-nav.is-open .bubble-toggle {
  color: var(--accent-green);
}

.bubble-links {
  top: 104px;
  gap: 36px;
  width: 390px;
}

.bubble-link,
.bubble-link:nth-child(2),
.bubble-link:nth-child(3),
.bubble-link:nth-child(4) {
  width: 382px;
  min-height: 60px;
  color: rgba(17, 23, 34, 0.84);
  font-size: clamp(1.76rem, 2.4vw, 2.48rem);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 38px rgba(67, 201, 71, 0.13);
}

.bubble-label::before {
  background: linear-gradient(90deg, rgba(67, 201, 71, 0.2), var(--accent-green));
  box-shadow: 0 0 24px rgba(67, 201, 71, 0.26);
}

.bubble-link:hover,
.bubble-link:focus-visible {
  color: #2fae38;
  transform: translate3d(-22px, 0, 0) scale(1.18);
}

.bubble-link:hover .bubble-label::before,
.bubble-link:focus-visible .bubble-label::before {
  background: var(--accent-green);
}

.bubble-link::after {
  border-color: rgba(67, 201, 71, 0.36);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78), rgba(67, 201, 71, 0.2) 48%, transparent 70%);
}

.bubble-link.is-bursting {
  color: var(--accent-green);
  transform: translate3d(-24px, 0, 0) scale(1.24);
}

.hero-allex {
  animation: allex-appear 1600ms cubic-bezier(0.18, 0.86, 0.2, 1) 340ms both;
}

.project-timeline-page {
  min-height: calc(100vh - 58px);
  padding: 58px 0 108px;
}

.project-intro {
  gap: 18px;
  min-height: calc(100vh - 170px);
  align-content: center;
}

.project-intro > *:nth-child(1) {
  animation-delay: 130ms;
}

.project-intro > *:nth-child(2) {
  animation-delay: 260ms;
}

.project-intro > *:nth-child(3) {
  animation-delay: 400ms;
}

.project-intro > *:nth-child(4) {
  animation-delay: 540ms;
}

.project-intro > *:nth-child(5) {
  animation-delay: 540ms;
}

.project-intro h1 {
  font-size: clamp(4.2rem, 9vw, 8.8rem);
  line-height: 0.8;
}

.project-intro-copy {
  max-width: 720px;
  font-size: clamp(0.98rem, 1.05vw, 1.12rem);
}

.project-mode-toggle {
  border-color: rgba(67, 201, 71, 0.28);
}

.project-mode-toggle i {
  background:
    linear-gradient(90deg, rgba(67, 201, 71, 0.18), rgba(67, 201, 71, 0.34)),
    rgba(244, 255, 244, 0.82);
}

.project-mode-toggle.is-active i::after {
  background: var(--accent-green);
}

.year-timeline {
  width: min(1280px, 100%);
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-top: 48px;
  padding: 96px 0 38px;
}

.year-timeline-line {
  left: 6%;
  right: 6%;
  bottom: 38px;
  height: 5px;
  background: rgba(17, 23, 34, 0.82);
  box-shadow: none;
}

.year-timeline button {
  min-height: 136px;
  padding: 0 0 34px;
  color: rgba(17, 23, 34, 0.72);
}

.year-timeline button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 47px;
  width: 0;
  height: 58px;
  border-left: 2px dashed rgba(17, 23, 34, 0.34);
  transform: translateX(-50%);
  transition: border-color 240ms ease, height 360ms ease;
}

.year-timeline button::after {
  bottom: 28px;
  width: 28px;
  height: 28px;
  border: 0;
  background: rgba(17, 23, 34, 0.9);
  box-shadow:
    0 0 0 8px var(--bg),
    inset 0 0 0 7px rgba(255, 255, 255, 0.94);
}

.year-timeline button span {
  position: absolute;
  left: 50%;
  bottom: 112px;
  font-size: clamp(1.8rem, 3.1vw, 3.3rem);
  color: inherit;
  transform: translateX(-50%);
  white-space: nowrap;
}

.year-timeline button[data-project-year="before"] span {
  font-size: clamp(1.55rem, 2.7vw, 2.8rem);
}

.year-timeline:hover .year-timeline-line {
  opacity: 0.42;
  filter: grayscale(0.9);
  transform: scaleX(1);
}

.year-timeline:hover button {
  opacity: 0.3;
  filter: grayscale(1);
  transform: scale(0.94);
}

.year-timeline button:hover,
.year-timeline button:focus-visible,
.year-timeline button.is-active {
  color: var(--accent-green);
  opacity: 1;
  filter: none;
  transform: translateY(-8px) scale(1.08);
}

.year-timeline button:hover span,
.year-timeline button:focus-visible span,
.year-timeline button.is-active span {
  color: var(--accent-green);
  transform: translateX(-50%) translateY(-4px) scale(1.08);
}

.year-timeline button:hover::before,
.year-timeline button:focus-visible::before,
.year-timeline button.is-active::before {
  height: 66px;
  border-color: rgba(67, 201, 71, 0.72);
}

.year-timeline button:hover::after,
.year-timeline button:focus-visible::after,
.year-timeline button.is-active::after {
  background: var(--accent-green);
  box-shadow:
    0 0 0 8px var(--bg),
    0 0 0 16px rgba(67, 201, 71, 0.14),
    0 18px 36px rgba(67, 201, 71, 0.24);
  transform: translateX(-50%) scale(1.22);
}

.project-topic-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  width: min(1040px, 100%);
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-90px, 18px, 0);
  animation: none;
  transition:
    max-height 640ms cubic-bezier(0.16, 0.86, 0.2, 1),
    margin-top 640ms cubic-bezier(0.16, 0.86, 0.2, 1),
    opacity 560ms ease,
    transform 820ms cubic-bezier(0.16, 0.86, 0.2, 1),
    filter 560ms ease;
  filter: blur(14px);
}

.project-topic-panel button {
  position: relative;
  min-height: 82px;
  border: 1px solid rgba(17, 23, 34, 0.12);
  border-radius: 8px;
  padding: 18px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 248, 0.76)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 20px 52px rgba(17, 23, 34, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: rgba(17, 23, 34, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    color 220ms ease,
    opacity 240ms ease,
    filter 240ms ease,
    transform 420ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-topic-panel button::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-green);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
  transition: opacity 240ms ease, transform 420ms ease;
}

.project-topic-panel:hover button {
  opacity: 0.26;
  filter: grayscale(1);
}

.project-topic-panel button:hover,
.project-topic-panel button:focus-visible,
.project-topic-panel button.is-active {
  border-color: rgba(67, 201, 71, 0.58);
  color: #269b31;
  opacity: 1;
  filter: none;
  transform: translateY(-6px) scale(1.06);
  box-shadow:
    0 26px 66px rgba(67, 201, 71, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.project-topic-panel button:hover::after,
.project-topic-panel button:focus-visible::after,
.project-topic-panel button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.project-topic-panel button.is-pressed {
  animation: topic-press 520ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-timeline-page.is-topic-mode .year-timeline {
  animation: none;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(80px, 0, 0);
  filter: grayscale(1) blur(12px);
}

.project-timeline-page.is-topic-mode .project-topic-panel {
  animation: none;
  max-height: 260px;
  margin-top: 40px;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.project-timeline-page.is-year-open .project-intro {
  opacity: 0;
  transform: translate3d(0, -58px, 0) scale(0.96);
}

.project-timeline-page.is-year-open {
  min-height: 1080px;
}

.project-focus-view {
  position: absolute;
  inset: 58px 0 auto;
  opacity: 0;
  transform: translate3d(64px, 36px, 0);
  transition:
    opacity 620ms ease,
    transform 900ms cubic-bezier(0.16, 0.86, 0.2, 1),
    filter 620ms ease;
  filter: blur(14px);
}

.project-focus-view[hidden] {
  display: none;
}

.project-timeline-page.is-year-settled .project-focus-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.project-back-button {
  min-height: 44px;
  font-size: 1.06rem;
}

.project-focus-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
  margin-top: 34px;
}

.project-focus-title {
  position: sticky;
  top: 116px;
  min-width: 0;
}

.project-focus-title h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(4.6rem, 10vw, 9.4rem);
  font-weight: 900;
  line-height: 0.78;
  transform-origin: left center;
  animation: focus-title-in 980ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.project-timeline-page .project-node-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 820px;
  margin-top: 0;
}

.project-timeline-page .project-node {
  min-height: 0;
  padding: 22px 24px 20px;
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 249, 0.86)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 22px 54px rgba(17, 23, 34, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  animation: project-card-snap 980ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
  animation-delay: var(--card-delay, 0ms);
}

.project-timeline-page .project-node:nth-of-type(n) {
  animation-delay: var(--card-delay, 0ms);
}

.project-timeline-page .project-node::after {
  height: 4px;
  background: var(--accent-green);
}

.project-timeline-page .project-node-topline span,
.project-timeline-page .project-node-track {
  color: #269b31;
}

.project-node-fulltitle {
  margin: 8px 0 0;
  color: rgba(83, 98, 116, 0.82);
  font-size: 0.93rem;
  font-weight: 650;
}

.project-timeline-page .project-node-summary {
  margin: 10px 0 14px;
}

@keyframes topic-press {
  0% {
    transform: translateY(-6px) scale(1.06);
  }
  42% {
    transform: translateY(-5px) scale(1.13);
  }
  100% {
    transform: translateY(-6px) scale(1.06);
  }
}

@keyframes focus-title-in {
  0% {
    opacity: 0;
    transform: translate3d(-64px, 18px, 0) scale(0.94);
    filter: blur(12px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 980px) {
  .bubble-nav {
    display: block;
    top: 62px;
    right: 14px;
    width: 310px;
    transform: scale(0.82);
    transform-origin: top right;
  }

  .bubble-links {
    width: 310px;
    gap: 26px;
  }

  .bubble-link,
  .bubble-link:nth-child(2),
  .bubble-link:nth-child(3),
  .bubble-link:nth-child(4) {
    width: 300px;
    font-size: clamp(1.42rem, 6vw, 1.9rem);
  }

  .project-topic-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-timeline-page.is-topic-mode .project-topic-panel {
    max-height: 360px;
  }

  .project-focus-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-focus-title {
    position: relative;
    top: auto;
  }

  .project-focus-title h2 {
    font-size: clamp(3.8rem, 18vw, 6.8rem);
  }
}

@media (max-width: 760px) {
  .page-shell--wide {
    width: calc(100vw - 24px);
  }

  .project-intro h1 {
    font-size: clamp(3.6rem, 18vw, 6.5rem);
  }

  .year-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
    padding-top: 74px;
  }

  .year-timeline-line {
    display: none;
  }

  .year-timeline button span,
  .year-timeline button[data-project-year="before"] span {
    font-size: clamp(1.5rem, 10vw, 2.4rem);
  }

  .project-topic-panel {
    grid-template-columns: 1fr;
  }

  .project-timeline-page.is-topic-mode .project-topic-panel {
    max-height: 720px;
  }
}

/* Final project explorer overrides. Kept at the end so older iteration rules cannot override the shared axis stage. */
.project-axis-stage {
  position: relative;
  width: min(1280px, 100%);
  min-height: 286px;
  margin: 46px auto 0;
  overflow: visible;
}

.project-axis-stage .year-timeline {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 96px 0 50px;
  transition:
    opacity 720ms ease,
    transform 980ms cubic-bezier(0.16, 0.86, 0.2, 1),
    filter 720ms ease;
}

.project-axis-stage .project-topic-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1040px, 100%);
  max-height: none;
  margin: 0;
  overflow: visible;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  filter: blur(14px);
  transform: translateX(-50%) translate3d(-110px, -42%, 0) scale(0.92);
  transition:
    visibility 0ms linear 760ms,
    opacity 720ms ease,
    transform 980ms cubic-bezier(0.16, 0.86, 0.2, 1),
    filter 720ms ease;
}

.project-axis-stage .project-topic-panel button {
  opacity: 0;
  transform: translate3d(-92px, 34px, 0) scale(0.84);
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    color 220ms ease,
    opacity 560ms ease,
    filter 240ms ease,
    transform 900ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-axis-stage .project-topic-panel button:nth-child(1) {
  transition-delay: 0ms;
}

.project-axis-stage .project-topic-panel button:nth-child(2) {
  transition-delay: 120ms;
}

.project-axis-stage .project-topic-panel button:nth-child(3) {
  transition-delay: 240ms;
}

.project-axis-stage .project-topic-panel button:nth-child(4) {
  transition-delay: 360ms;
}

.project-axis-stage .project-topic-panel button:nth-child(5) {
  transition-delay: 480ms;
}

.project-axis-stage .project-topic-panel button:nth-child(6) {
  transition-delay: 600ms;
}

.project-timeline-page.is-topic-mode .project-axis-stage .year-timeline {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(96px, 0, 0) scale(0.96);
  filter: grayscale(1) blur(12px);
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
  transform: translateX(-50%) translate3d(0, -42%, 0) scale(1);
  transition-delay: 0ms;
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel button {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.project-timeline-page.is-topic-mode .project-topic-panel:hover button {
  opacity: 0.24;
  filter: grayscale(1);
  transform: translate3d(0, 0, 0) scale(0.94);
}

.project-timeline-page.is-topic-mode .project-topic-panel button:hover,
.project-timeline-page.is-topic-mode .project-topic-panel button:focus-visible,
.project-timeline-page.is-topic-mode .project-topic-panel button.is-active {
  opacity: 1;
  filter: none;
  transform: translateY(-12px) scale(1.1);
}

.project-timeline-page .project-node {
  animation-fill-mode: backwards;
}

.project-timeline-page.is-card-hover .project-node:not(.is-hovered) {
  opacity: 0.26;
  filter: grayscale(1);
  transform: scale(0.985);
}

.project-timeline-page.is-card-hover .project-node.is-hovered {
  opacity: 1;
  filter: none;
  transform: translateX(8px) scale(1.018);
  border-color: rgba(67, 201, 71, 0.5);
  box-shadow:
    0 28px 70px rgba(67, 201, 71, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

@media (max-width: 980px) {
  .project-axis-stage {
    min-height: 300px;
  }

  .project-axis-stage .project-topic-panel {
    width: min(720px, 100%);
    max-height: none;
  }
}

@media (max-width: 760px) {
  .project-axis-stage {
    min-height: 520px;
    margin-top: 28px;
  }

  .project-axis-stage .year-timeline {
    position: relative;
    inset: auto;
  }

  .project-axis-stage .project-topic-panel {
    top: 0;
    max-height: none;
    transform: translateX(-50%) translate3d(-72px, 18px, 0) scale(0.92);
  }

  .project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel {
    max-height: none;
    transform: translateX(-50%) translate3d(0, 18px, 0) scale(1);
  }
}

/* Portfolio interaction pass: topic filtering, editorial project cards, and global nav hover behavior. */
.bubble-links:hover .bubble-link {
  opacity: 0.28;
  filter: grayscale(1);
  transform: translate3d(14px, 0, 0) scale(0.86);
}

.bubble-links .bubble-link:hover,
.bubble-links .bubble-link:focus-visible {
  opacity: 1;
  filter: none;
  color: var(--accent-green);
  transform: translate3d(-32px, 0, 0) scale(1.26);
}

.bubble-links .bubble-link:hover .bubble-label::before,
.bubble-links .bubble-link:focus-visible .bubble-label::before {
  transform: scaleX(1.42);
  background: var(--accent-green);
}

.project-axis-stage {
  width: min(1320px, 100%);
}

.project-axis-stage .project-topic-panel {
  width: min(1220px, 100%);
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 28px;
  transform: translateX(-50%) translate3d(-180px, -42%, 0) scale(0.88);
}

.project-axis-stage .project-topic-panel button {
  min-height: 118px;
  border: 1px solid rgba(17, 23, 34, 0.16);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 249, 246, 0.76)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    0 18px 44px rgba(17, 23, 34, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 1.28vw, 1.26rem);
  letter-spacing: 0;
  opacity: 0;
  transform: translate3d(-220px, 44px, 0) scale(0.74);
}

.project-axis-stage .project-topic-panel button:nth-child(1),
.project-axis-stage .project-topic-panel button:nth-child(2),
.project-axis-stage .project-topic-panel button:nth-child(3) {
  transition-delay: 0ms;
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel button {
  animation: topic-card-stack-in 980ms cubic-bezier(0.16, 0.86, 0.2, 1) both;
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel button:nth-child(1) {
  animation-delay: 120ms;
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel button:nth-child(2) {
  animation-delay: 360ms;
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel button:nth-child(3) {
  animation-delay: 600ms;
}

.project-timeline-page.is-topic-mode .project-topic-panel:hover button {
  opacity: 0.22;
  filter: grayscale(1);
  transform: translateY(0) scale(0.92);
}

.project-timeline-page.is-topic-mode .project-topic-panel button:hover,
.project-timeline-page.is-topic-mode .project-topic-panel button:focus-visible,
.project-timeline-page.is-topic-mode .project-topic-panel button.is-active {
  opacity: 1;
  filter: none;
  transform: translateY(-14px) scale(1.12);
}

.project-timeline-page[data-project-kind="topic"] .project-focus-layout {
  grid-template-columns: minmax(170px, 300px) minmax(0, 1fr);
  gap: 34px;
}

.project-timeline-page[data-project-kind="topic"] .project-focus-title h2 {
  max-width: 300px;
  font-size: clamp(2.55rem, 5.2vw, 5.7rem);
  line-height: 0.84;
  overflow-wrap: anywhere;
}

.project-timeline-page[data-project-kind="topic"] .project-node-grid {
  max-width: 980px;
}

.project-timeline-page .project-node {
  cursor: pointer;
  border-color: rgba(31, 40, 52, 0.16);
  border-left: 4px solid rgba(67, 201, 71, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 16px 48px rgba(17, 23, 34, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.project-timeline-page .project-node::before {
  content: none;
  display: none;
}

.project-timeline-page .project-node::after {
  height: 3px;
  background: var(--accent-green);
}

.project-timeline-page .project-node:focus-visible {
  outline: 2px solid rgba(67, 201, 71, 0.56);
  outline-offset: 4px;
}

.project-timeline-page.is-card-hover .project-node.is-hovered,
.project-timeline-page .project-node-grid:has(.project-node:hover) .project-node:hover {
  border-color: rgba(67, 201, 71, 0.56);
  border-left-color: var(--accent-green);
}

.tag-row button,
.tag-row a {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #f9fbfd;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  line-height: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 220ms ease;
}

.tag-row button:hover,
.tag-row button:focus-visible,
.tag-row a:hover,
.tag-row a:focus-visible {
  border-color: rgba(67, 201, 71, 0.58);
  background: rgba(239, 255, 239, 0.88);
  color: var(--accent-green);
  transform: translateY(-2px);
}

.project-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  align-items: stretch;
}

.project-progress-section {
  min-height: 230px;
}

.project-progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(17, 23, 34, 0.12);
  padding-bottom: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 760;
}

.project-progress-line strong {
  color: var(--accent-green);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.9;
}

.project-detail-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  border-top: 1px solid rgba(17, 23, 34, 0.1);
  padding-top: 22px;
}

.project-detail-links a {
  color: var(--accent-green);
  font-weight: 820;
  text-decoration: none;
}

.project-collage-board {
  display: grid;
  gap: 28px;
  margin-top: 42px;
}

.project-collage-section {
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-radius: 10px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 62px rgba(17, 23, 34, 0.07);
}

.project-collage-section h2 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.95;
}

.project-gallery-grid,
.project-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-gallery-grid figure {
  margin: 0;
}

.project-gallery-grid img,
.project-video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(17, 23, 34, 0.06);
}

.project-gallery-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes topic-card-stack-in {
  0% {
    opacity: 0;
    transform: translate3d(-220px, 44px, 0) scale(0.74);
    filter: blur(14px);
  }
  68% {
    opacity: 1;
    transform: translate3d(12px, -4px, 0) scale(1.03);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (max-width: 980px) {
  .project-axis-stage .project-topic-panel {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
  }

  .project-timeline-page[data-project-kind="topic"] .project-focus-layout {
    grid-template-columns: 1fr;
  }

  .project-timeline-page[data-project-kind="topic"] .project-focus-title h2 {
    max-width: none;
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .project-gallery-grid,
  .project-video-grid {
    grid-template-columns: 1fr;
  }
}

/* Home profile-first layout and shared sub-page ALLEX watermark. */
.home-page .hero {
  grid-template-columns: 1fr;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 74px 0 58px;
}

.home-page .hero-ghost-allex {
  top: -18px;
  right: -650px;
  left: auto;
  width: min(90vw, 1200px);
  opacity: 0;
  transform: translate3d(-82px, 36px, 0) scale(0.98);
}

.home-page .hero-ghost-allex img {
  object-position: right bottom;
  opacity: 0.18;
  transform: scaleX(1) scale(1.1);
}

.hero-profile-panel {
  display: grid;
  grid-template-columns: minmax(160px, 224px) minmax(0, 1fr);
  gap: 36px 22px;
  align-items: end;
  width: min(1100px, 100%);
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-radius: 10px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.29);
  box-shadow:
    0 26px 72px rgba(17, 23, 34, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
}

.hero-copy--lab.hero-profile-panel {
  padding-top: 0;
}

.hero-avatar {
  width: min(20vw, 224px);
  min-width: 170px;
  aspect-ratio: 1;
  border: 1px solid rgba(17, 23, 34, 0.12);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(17, 23, 34, 0.12);
}

.hero-identity {
  align-self: end;
  margin-left: -16px;
}

.hero-identity > * {
  position: relative;
  top: 22px;
}

.hero-identity h1 {
  max-width: 720px;
}

.hero-identity .hero-headline {
  margin-top: 14px;
}

.hero-identity .advisor {
  margin-bottom: 14px;
}

.github-activity-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-radius: 8px;
  padding: 16px 18px 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.github-activity-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.github-activity-topline a {
  color: var(--accent-green);
  text-decoration: none;
}

.github-activity-panel img {
  display: block;
  width: 100%;
  min-width: 660px;
  height: auto;
}

.bubble-nav.is-open .bubble-links:hover .bubble-link,
.bubble-nav.is-open .bubble-links:hover .bubble-link:nth-child(2),
.bubble-nav.is-open .bubble-links:hover .bubble-link:nth-child(3),
.bubble-nav.is-open .bubble-links:hover .bubble-link:nth-child(4) {
  transition:
    color 80ms ease,
    filter 90ms ease,
    opacity 100ms ease,
    transform 140ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.bubble-nav.is-open .bubble-link,
.bubble-nav.is-open .bubble-link:nth-child(2),
.bubble-nav.is-open .bubble-link:nth-child(3),
.bubble-nav.is-open .bubble-link:nth-child(4),
.bubble-nav.is-open .bubble-links .bubble-link:hover,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible {
  transition:
    color 80ms ease,
    filter 90ms ease,
    opacity 100ms ease,
    transform 120ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.sub-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/img/allex/hero-allex.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: min(62vw, 960px) auto;
  opacity: 0.055;
  filter: grayscale(0.08) drop-shadow(0 36px 68px rgba(17, 23, 34, 0.12));
}

.sub-page .site-header,
.sub-page .page-shell,
.sub-page .bubble-nav,
.sub-page .site-footer {
  position: relative;
  z-index: 1;
}

.project-detail-grid > .project-progress-section,
.project-detail-grid > .project-detail-section:not(.project-progress-section) {
  grid-column: 1;
}

.project-detail-grid > .project-detail-meta {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 980px) {
  .hero-profile-panel {
    grid-template-columns: 1fr;
    align-items: start;
    width: min(680px, 100%);
  }

  .hero-avatar {
    width: 190px;
    min-width: 0;
  }

  .github-activity-panel {
    overflow-x: auto;
  }

  .sub-page::before {
    background-size: min(92vw, 760px) auto;
    opacity: 0.045;
  }

  .project-detail-grid > .project-progress-section,
  .project-detail-grid > .project-detail-section:not(.project-progress-section),
  .project-detail-grid > .project-detail-meta {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Final interaction tuning for the profile card, GitHub activity chart, and project card hover. */
.home-page .hero-profile-panel {
  justify-self: start;
  width: min(1188px, calc(100% + 36px));
  margin-left: clamp(-62px, -3vw, -28px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(17, 23, 34, 0.075);
  box-shadow:
    0 24px 70px rgba(17, 23, 34, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(5px);
}

.hero-identity {
  margin-left: -22px;
}

.hero-identity h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 18px;
  max-width: none;
}

.hero-identity h1 span {
  margin-left: 0;
  padding-top: 0.08em;
  font-size: clamp(1.55rem, 2.25vw, 2.3rem);
  line-height: 1;
  vertical-align: top;
}

.github-activity-panel {
  background: rgba(255, 255, 255, 0.28);
}

.github-activity-chart {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px;
  gap: 4px;
  min-width: 844px;
  min-height: 108px;
  align-items: center;
  padding: 4px 0 0;
  opacity: 0.42;
  transition: opacity 360ms ease, filter 360ms ease;
  filter: saturate(0.88);
}

.github-activity-panel.is-loaded .github-activity-chart {
  opacity: 1;
  filter: none;
}

.github-day {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(17, 23, 34, 0.07);
  box-shadow: inset 0 0 0 1px rgba(17, 23, 34, 0.035);
}

.github-day--level-1 {
  background: rgba(67, 201, 71, 0.24);
}

.github-day--level-2 {
  background: rgba(67, 201, 71, 0.46);
}

.github-day--level-3 {
  background: rgba(51, 172, 59, 0.74);
}

.github-day--level-4 {
  background: #24922d;
}

.github-day--outside {
  opacity: 0.28;
}

.github-day--loading {
  opacity: 0.46;
}

.github-activity-footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  color: rgba(83, 98, 116, 0.78);
  font-size: 0.82rem;
  font-weight: 680;
}

.github-activity-scale {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.github-activity-scale i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(17, 23, 34, 0.07);
}

.github-activity-scale i:nth-child(2) {
  background: rgba(67, 201, 71, 0.24);
}

.github-activity-scale i:nth-child(3) {
  background: rgba(67, 201, 71, 0.46);
}

.github-activity-scale i:nth-child(4) {
  background: rgba(51, 172, 59, 0.74);
}

.github-activity-scale i:nth-child(5) {
  background: #24922d;
}

.project-timeline-page .project-node-grid:has(.project-node:hover) .project-node:not(:hover),
.project-timeline-page .project-node-grid:has(.project-node:hover) .project-node:hover {
  opacity: 1;
  filter: none;
  transform: none;
}

.project-timeline-page .project-node {
  transition:
    border-color 260ms ease,
    border-left-color 260ms ease,
    box-shadow 340ms ease,
    background 340ms ease,
    color 220ms ease,
    filter 340ms ease,
    opacity 300ms ease,
    transform 340ms cubic-bezier(0.16, 0.98, 0.2, 1);
  transition-delay: 0ms;
  will-change: transform, opacity, filter;
}

.project-timeline-page.is-hover-locked .project-node {
  transition: none;
}

.project-timeline-page.is-card-hover .project-node:not(.is-hovered) {
  opacity: 0.25;
  filter: grayscale(1) saturate(0.34);
  transform: translateX(-5px) scale(0.982);
  box-shadow:
    0 12px 34px rgba(17, 23, 34, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.project-timeline-page.is-card-hover .project-node.is-hovered {
  opacity: 1;
  filter: none;
  transform: translateX(12px) scale(1.026);
  border-color: rgba(67, 201, 71, 0.62);
  border-left-color: var(--accent-green);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 252, 246, 0.84)),
    rgba(255, 255, 255, 0.86);
  box-shadow:
    0 30px 76px rgba(67, 201, 71, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.project-timeline-page.is-hover-locked .project-node-grid:has(.project-node:hover) .project-node,
.project-timeline-page.is-hover-locked .project-node-grid:has(.project-node:hover) .project-node:hover {
  opacity: 1;
  filter: none;
  transform: none;
}

.project-timeline-page.is-card-hover .project-node-grid:has(.project-node:hover) .project-node:not(.is-hovered) {
  opacity: 0.25;
  filter: grayscale(1) saturate(0.34);
  transform: translateX(-5px) scale(0.982);
}

.project-timeline-page.is-card-hover .project-node-grid:has(.project-node:hover) .project-node.is-hovered,
.project-timeline-page.is-card-hover .project-node-grid:has(.project-node:hover) .project-node.is-hovered:hover {
  opacity: 1;
  filter: none;
  transform: translateX(12px) scale(1.026);
  border-color: rgba(67, 201, 71, 0.62);
  border-left-color: var(--accent-green);
  box-shadow:
    0 30px 76px rgba(67, 201, 71, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

@media (max-width: 980px) {
  .home-page .hero-profile-panel {
    width: min(720px, 100%);
    margin-left: 0;
  }

  .hero-identity {
    margin-left: 0;
  }

  .github-activity-chart {
    min-width: 844px;
  }
}

/* Current homepage and project interaction pass. */
.home-page .hero {
  align-items: start;
  min-height: calc(100vh - 58px);
  padding: 34px 0 70px;
}

.home-page .hero-ghost-allex {
  position: fixed;
  top: -20px;
  right: -650px;
  left: auto;
  width: min(92vw, 1240px);
  height: calc(100vh - 20px);
  z-index: 0;
  opacity: 0;
  transform: translate3d(-82px, 36px, 0) scale(0.98);
}

.home-page .hero-ghost-allex img {
  opacity: 0.2;
}

.home-page .hero-profile-panel {
  margin-top: clamp(4px, 2vh, 24px);
}

.hero-identity {
  align-self: center;
  display: grid;
  align-content: center;
  gap: 8px;
  max-width: 760px;
}

.hero-identity > * {
  top: 0;
}

.hero-identity h1 {
  display: block;
  margin: 0;
  max-width: 760px;
  line-height: 0.86;
}

.hero-name-main {
  display: block;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.hero-identity h1 .hero-name-sub {
  display: block;
  margin: 14px 0 0 2px;
  padding: 0;
  color: rgba(83, 98, 116, 0.88);
  font-size: clamp(1.62rem, 2.1vw, 2.18rem);
  font-weight: 680;
  line-height: 1;
}

.hero-role {
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1.42rem, 1.9vw, 1.92rem);
  font-weight: 850;
  line-height: 1.08;
}

.hero-identity .affiliation,
.hero-identity .advisor {
  max-width: 720px;
  margin: 0;
  line-height: 1.34;
}

.hero-identity .keyword-row {
  margin-top: 8px;
}

.hero-identity .link-row {
  margin-top: 16px;
}

.github-activity-chart {
  width: max-content;
  min-width: 0;
  max-width: 100%;
  grid-auto-columns: 13px;
  grid-template-rows: repeat(7, 13px);
  gap: 4px;
  overflow: visible;
}

.github-day {
  width: 13px;
  height: 13px;
}

.github-activity-footline {
  align-items: flex-start;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: grid;
  gap: 2px;
  width: 44px;
  height: 54px;
  place-items: center;
  transform: translateX(-50%);
  opacity: 0.64;
}

.scroll-cue span {
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(17, 23, 34, 0.48);
  border-bottom: 2px solid rgba(67, 201, 71, 0.72);
  transform: rotate(45deg);
  animation: scroll-cue-drop 1800ms ease-in-out infinite;
}

.scroll-cue span:nth-child(2) {
  animation-delay: 180ms;
}

.scroll-cue span:nth-child(3) {
  animation-delay: 360ms;
}

.activities-section {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 48px);
  scroll-margin-top: 0;
  padding: 78px 0 90px;
}

.activities-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 34px;
  align-items: end;
  margin-bottom: 34px;
}

.activities-heading p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent-green);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.activities-heading h2 {
  margin: 0;
  max-width: 900px;
  color: var(--text);
  font-size: clamp(2.4rem, 5.2vw, 5.6rem);
  line-height: 0.9;
}

.activities-heading a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 2px solid rgba(67, 201, 71, 0.46);
  padding-bottom: 7px;
  color: var(--text);
  font-weight: 850;
}

.video-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  overflow: hidden;
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 60px rgba(17, 23, 34, 0.07);
}

.video-frame {
  background: rgba(17, 23, 34, 0.08);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-copy {
  padding: 18px 18px 20px;
}

.video-copy span {
  color: var(--accent-green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-copy h3 {
  margin: 8px 0 8px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.12;
}

.video-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.sub-page::before {
  opacity: 0.08;
}

.sub-page .bubble-nav {
  display: block;
  position: fixed;
  z-index: 90;
  pointer-events: none;
}

.sub-page .bubble-toggle {
  pointer-events: auto;
}

.bubble-nav .bubble-link,
.bubble-nav .bubble-link:nth-child(2),
.bubble-nav .bubble-link:nth-child(3),
.bubble-nav .bubble-link:nth-child(4) {
  transition:
    color 110ms ease,
    filter 180ms ease,
    opacity 520ms ease var(--open-delay),
    transform 760ms cubic-bezier(0.16, 1.02, 0.2, 1) var(--open-delay);
}

.bubble-link:nth-child(1) {
  --open-delay: 120ms;
}

.bubble-link:nth-child(2) {
  --open-delay: 280ms;
}

.bubble-link:nth-child(3) {
  --open-delay: 440ms;
}

.bubble-link:nth-child(4) {
  --open-delay: 600ms;
}

.bubble-nav.is-open .bubble-links .bubble-link:hover,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible {
  transition:
    color 80ms ease,
    filter 90ms ease,
    opacity 100ms ease,
    transform 120ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.year-timeline button {
  animation: year-node-stamp 780ms cubic-bezier(0.16, 0.86, 0.2, 1) var(--year-delay, 900ms) backwards;
}

.year-timeline button[data-project-year="before"] {
  --year-delay: 760ms;
}

.year-timeline button[data-project-year="2024"] {
  --year-delay: 1220ms;
}

.year-timeline button[data-project-year="2025"] {
  --year-delay: 1680ms;
}

.year-timeline button[data-project-year="2026"] {
  --year-delay: 2140ms;
}

@keyframes year-node-stamp {
  0% {
    opacity: 0;
    transform: translate3d(-26px, 18px, 0) scale(0.9);
    filter: blur(12px);
  }
  66% {
    opacity: 1;
    transform: translate3d(5px, -2px, 0) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes scroll-cue-drop {
  0% {
    opacity: 0;
    transform: translateY(-8px) rotate(45deg);
  }
  35% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translateY(12px) rotate(45deg);
  }
}

@media (max-width: 980px) {
  .home-page .hero {
    padding-top: 44px;
  }

  .activities-heading {
    grid-template-columns: 1fr;
  }

  .video-board {
    grid-template-columns: 1fr;
  }
}

/* Latest home/nav corrections: preserve ALLEX scale, tighten profile typography, and slow-open global nav. */
.home-page .page-shell {
  padding-top: 10px;
}

.home-page .hero {
  align-items: start;
  min-height: calc(100vh - 68px);
  padding: 20px 0 78px;
}

.home-page .hero-ghost-allex {
  position: fixed;
  top: -18px;
  right: -650px;
  left: auto;
  width: min(90vw, 1200px);
  height: calc(100vh - 82px);
  overflow: visible;
  transform: translate3d(-82px, 36px, 0) scale(0.98);
}

.home-page .hero-ghost-allex img {
  width: 100%;
  height: 100%;
  object-position: right bottom;
  opacity: 0.18;
  transform: scaleX(1) scale(1.1);
}

.home-page .hero-profile-panel {
  grid-template-columns: minmax(176px, 228px) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: center;
  width: min(1220px, calc(100% + 96px));
  margin-top: 0;
  margin-left: clamp(-58px, -3.5vw, -28px);
  padding: 38px 38px 30px;
}

.hero-copy--lab.hero-profile-panel {
  padding-top: 38px;
}

.hero-avatar {
  width: min(20vw, 228px);
  min-width: 176px;
  align-self: center;
}

.hero-identity {
  align-self: center;
  align-content: center;
  gap: 8px;
  margin-left: 8px;
  max-width: 820px;
}

.hero-identity h1 {
  display: block;
  margin: 0 0 2px;
  max-width: 820px;
  line-height: 0.92;
}

.hero-name-main,
.hero-identity h1 .hero-name-main {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: clamp(3.9rem, 6.2vw, 6.65rem);
  font-weight: 870;
  line-height: 0.86;
}

.hero-identity h1 .hero-name-sub {
  display: block;
  margin: 8px 0 0 4px;
  padding: 0;
  color: rgba(83, 98, 116, 0.84);
  font-size: clamp(1.22rem, 1.55vw, 1.72rem);
  font-weight: 680;
  line-height: 1;
}

.hero-role {
  margin: 18px 0 0;
}

.hero-identity .affiliation,
.hero-identity .advisor,
.hero-identity .keyword-row,
.hero-identity .link-row {
  margin-left: 4px;
}

.github-activity-panel {
  margin-top: 2px;
}

.scroll-cue {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 24px;
  z-index: 80;
  transform: translateX(-50%);
  transition: opacity 220ms ease, transform 260ms ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  opacity: 0.95;
  transform: translateX(-50%) scale(1.08);
}

.scroll-cue.is-up span {
  transform: rotate(225deg);
  animation-name: scroll-cue-rise;
}

.activities-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.activities-heading h2 {
  max-width: none;
  font-size: clamp(3.2rem, 7.2vw, 8.4rem);
  line-height: 0.86;
}

.bubble-nav .bubble-link,
.bubble-nav .bubble-link:nth-child(2),
.bubble-nav .bubble-link:nth-child(3),
.bubble-nav .bubble-link:nth-child(4),
.bubble-nav.is-open .bubble-link,
.bubble-nav.is-open .bubble-link:nth-child(2),
.bubble-nav.is-open .bubble-link:nth-child(3),
.bubble-nav.is-open .bubble-link:nth-child(4) {
  transition:
    color 160ms ease,
    filter 260ms ease,
    opacity 620ms ease var(--open-delay),
    translate 900ms cubic-bezier(0.16, 1.02, 0.2, 1) var(--open-delay),
    scale 900ms cubic-bezier(0.16, 1.02, 0.2, 1) var(--open-delay),
    rotate 900ms cubic-bezier(0.16, 1.02, 0.2, 1) var(--open-delay),
    transform 180ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.bubble-link:nth-child(1) {
  --open-delay: 140ms;
}

.bubble-link:nth-child(2) {
  --open-delay: 320ms;
}

.bubble-link:nth-child(3) {
  --open-delay: 500ms;
}

.bubble-link:nth-child(4) {
  --open-delay: 680ms;
}

.bubble-label {
  padding: 0 24px 0 42px;
}

.bubble-label::before {
  left: 18px;
  width: 8px;
  pointer-events: none;
}

.bubble-nav.is-open .bubble-links .bubble-link:hover,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible {
  transition:
    color 110ms ease,
    filter 160ms ease,
    opacity 220ms ease,
    transform 170ms cubic-bezier(0.16, 0.98, 0.2, 1),
    translate 900ms cubic-bezier(0.16, 1.02, 0.2, 1),
    scale 900ms cubic-bezier(0.16, 1.02, 0.2, 1);
}

.project-axis-stage {
  width: min(1180px, 100%);
  min-height: 286px;
}

.project-axis-stage .year-timeline {
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  padding: 96px 0 50px;
}

.year-timeline-line {
  left: 4%;
  right: 4%;
}

.year-timeline button span {
  font-size: clamp(1.72rem, 2.9vw, 3.12rem);
}

.year-timeline button[data-project-year="before"] span {
  font-size: clamp(1.48rem, 2.45vw, 2.62rem);
}

@keyframes scroll-cue-rise {
  0% {
    opacity: 0;
    transform: translateY(8px) rotate(225deg);
  }
  35% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translateY(-12px) rotate(225deg);
  }
}

@media (max-width: 980px) {
  .home-page .page-shell {
    padding-top: 28px;
  }

  .home-page .hero {
    padding-top: 16px;
  }

  .home-page .hero-profile-panel {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
    margin-left: 0;
    padding: 30px;
  }

  .hero-identity {
    margin-left: 0;
  }

  .hero-name-main,
  .hero-identity h1 .hero-name-main {
    font-size: clamp(3.1rem, 14vw, 5.2rem);
  }

  .activities-heading {
    grid-template-columns: 1fr;
  }
}

/* Home composition and top navigation refinement. */
.nav-wrap {
  position: relative;
  width: calc(100% - 36px);
  max-width: none;
  justify-content: flex-start;
}

.brand {
  position: relative;
  z-index: 2;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: 0;
}

.top-tabs {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 5.6vw, 92px);
  transform: translate(-50%, -50%);
}

.top-tabs a {
  color: rgba(83, 98, 116, 0.72);
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: 0;
  transition: color 160ms ease, transform 180ms ease;
}

.top-tabs a:hover,
.top-tabs a:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.home-page .page-shell {
  width: calc(100% - 8px);
  padding-top: 8px;
}

.home-page .hero {
  min-height: calc(100vh - 66px);
  padding: 18px 0 92px;
}

.home-page .hero-ghost-allex {
  top: 26px;
  right: 74px;
  width: min(63vw, 840px);
  height: calc(100vh - 128px);
  transform: translate3d(0, 32px, 0) scale(1);
}

.home-page .hero-ghost-allex img {
  object-position: right bottom;
  opacity: 0.16;
  transform: scaleX(1) scale(1);
}

.home-page .hero-profile-panel {
  grid-template-columns: minmax(218px, 236px) minmax(0, 1fr);
  gap: 30px 28px;
  width: min(1280px, calc(100vw - 12px));
  margin-left: 0;
  padding: 30px 34px 26px 26px;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(17, 23, 34, 0.048);
  box-shadow:
    0 22px 64px rgba(17, 23, 34, 0.028),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
}

.hero-copy--lab.hero-profile-panel {
  padding-top: 30px;
}

.hero-avatar {
  width: min(23.8vw, 268px);
  min-width: 230px;
  transform: translateX(-4px);
}

.hero-identity {
  margin-left: 0;
  max-width: 850px;
}

.github-activity-panel {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(17, 23, 34, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.scroll-cue {
  bottom: 48px;
  width: 66px;
  height: 82px;
  gap: 0;
  opacity: 0.78;
}

.scroll-cue span {
  width: 34px;
  height: 34px;
  border-right-width: 3px;
  border-bottom-width: 3px;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  transform: translateX(-50%) scale(1.12);
}

.activities-heading h2 {
  font-size: clamp(2.85rem, 5.9vw, 6.9rem);
}

.bubble-nav .bubble-link,
.bubble-nav .bubble-link:nth-child(2),
.bubble-nav .bubble-link:nth-child(3),
.bubble-nav .bubble-link:nth-child(4) {
  translate: var(--bubble-x) var(--bubble-y);
  scale: 1;
  rotate: 0deg;
  opacity: 0;
  transition:
    color 140ms ease,
    filter 220ms ease,
    opacity 420ms ease var(--open-delay),
    transform 170ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.bubble-nav.is-open .bubble-link,
.bubble-nav.is-open .bubble-link:nth-child(2),
.bubble-nav.is-open .bubble-link:nth-child(3),
.bubble-nav.is-open .bubble-link:nth-child(4) {
  translate: var(--bubble-x) var(--bubble-y);
  scale: 1;
  rotate: 0deg;
  opacity: 1;
  transition:
    color 140ms ease,
    filter 220ms ease,
    opacity 520ms ease var(--open-delay),
    transform 170ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.bubble-label {
  gap: 12px;
  padding: 0;
}

.bubble-label::before {
  flex-basis: 22px;
  width: 22px;
  height: 2px;
  transform: scaleX(0.78);
  transform-origin: right center;
}

.bubble-links .bubble-link:hover .bubble-label::before,
.bubble-links .bubble-link:focus-visible .bubble-label::before,
.bubble-nav.is-open .bubble-links .bubble-link:hover .bubble-label::before,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible .bubble-label::before {
  transform: scaleX(1.32);
}

@media (max-width: 980px) {
  .top-tabs {
    display: none;
  }

  .home-page .page-shell {
    width: min(100% - 28px, 760px);
  }

  .home-page .hero-profile-panel {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .hero-avatar {
    width: 232px;
    min-width: 0;
    transform: none;
  }
}

/* Proportion tune: image-led profile, larger ALLEX watermark, compact activities, and restored nav hover depth. */
.nav-wrap {
  width: calc(100% - 36px);
}

.brand-name {
  font-size: 1.22rem;
}

.top-tabs a {
  padding: 12px 16px;
  color: rgba(83, 98, 116, 0.72);
}

.top-tabs a:hover,
.top-tabs a:focus-visible {
  color: var(--accent-green);
  transform: translateY(-1px) scale(1.035);
}

.home-page .page-shell {
  width: calc(100% - 36px);
}

.home-page .hero-ghost-allex {
  top: 0;
  right: 22px;
  width: min(69vw, 960px);
  height: 100vh;
  transform: translate3d(0, 0, 0) scale(1);
}

.home-page .hero-profile-panel {
  grid-template-columns: minmax(284px, 300px) minmax(0, 1fr);
  gap: 28px 24px;
  width: min(1188px, 100%);
  margin-left: 0;
  padding: 30px 32px 26px 24px;
  background: rgba(255, 255, 255, 0.066);
  border-color: rgba(17, 23, 34, 0.04);
  box-shadow:
    0 22px 58px rgba(17, 23, 34, 0.024),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(1.6px);
}

.hero-avatar {
  width: min(25vw, 292px);
  min-width: 264px;
  transform: translateX(-8px);
}

.hero-name-main,
.hero-identity h1 .hero-name-main {
  font-size: clamp(3.3rem, 5.1vw, 5.8rem);
}

.hero-identity h1 .hero-name-sub {
  font-size: clamp(1.14rem, 1.42vw, 1.56rem);
}

.hero-role {
  font-size: clamp(1.28rem, 1.55vw, 1.68rem);
}

.github-activity-panel {
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(17, 23, 34, 0.06);
}

.activities-section {
  padding: 56px 0 72px;
}

.activities-heading {
  margin-bottom: 24px;
}

.activities-heading h2 {
  font-size: clamp(2.35rem, 4.8vw, 5.65rem);
}

.video-board {
  width: min(1080px, 100%);
  margin: 0 auto;
  gap: 14px;
}

.video-copy {
  padding: 13px 14px 15px;
}

.video-copy span {
  font-size: 0.68rem;
}

.video-copy h3 {
  margin: 6px 0;
  font-size: 1.02rem;
}

.video-copy p {
  font-size: 0.84rem;
  line-height: 1.34;
}

.bubble-nav.is-open .bubble-links:hover .bubble-link,
.bubble-nav.is-open .bubble-links:hover .bubble-link:nth-child(2),
.bubble-nav.is-open .bubble-links:hover .bubble-link:nth-child(3),
.bubble-nav.is-open .bubble-links:hover .bubble-link:nth-child(4) {
  opacity: 0.28;
  filter: grayscale(1);
  color: rgba(83, 98, 116, 0.66);
  transform: translate3d(12px, 0, 0) scale(0.9);
}

.bubble-nav.is-open .bubble-links .bubble-link:hover,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible {
  opacity: 1;
  filter: none;
  color: var(--accent-green);
  transform: translate3d(-22px, 0, 0) scale(1.18);
}

.bubble-nav.is-open .bubble-links .bubble-link:hover .bubble-label::before,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible .bubble-label::before {
  transform: scaleX(1.32);
  background: var(--accent-green);
}

.bubble-nav .bubble-link,
.bubble-nav .bubble-link:nth-child(2),
.bubble-nav .bubble-link:nth-child(3),
.bubble-nav .bubble-link:nth-child(4),
.bubble-nav.is-open .bubble-link,
.bubble-nav.is-open .bubble-link:nth-child(2),
.bubble-nav.is-open .bubble-link:nth-child(3),
.bubble-nav.is-open .bubble-link:nth-child(4) {
  translate: none;
  rotate: none;
  scale: 1;
}

.bubble-nav .bubble-link,
.bubble-nav .bubble-link:nth-child(2),
.bubble-nav .bubble-link:nth-child(3),
.bubble-nav .bubble-link:nth-child(4) {
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    color 140ms ease,
    filter 220ms ease,
    opacity 360ms ease var(--open-delay),
    transform 170ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.bubble-nav.is-open .bubble-link,
.bubble-nav.is-open .bubble-link:nth-child(2),
.bubble-nav.is-open .bubble-link:nth-child(3),
.bubble-nav.is-open .bubble-link:nth-child(4) {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    color 140ms ease,
    filter 220ms ease,
    opacity 460ms ease var(--open-delay),
    transform 170ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

@media (max-width: 980px) {
  .home-page .page-shell {
    width: min(100% - 28px, 760px);
  }

  .home-page .hero-profile-panel {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
  }

  .hero-avatar {
    width: 232px;
    min-width: 0;
    transform: none;
  }

  .hero-name-main,
  .hero-identity h1 .hero-name-main {
    font-size: clamp(3.05rem, 13vw, 4.9rem);
  }
}

/* Latest proportion pass: activities lower, card shifted right, compact videos, and reliable nav hover. */
.home-page .page-shell {
  width: min(1320px, calc(100% - 84px));
}

.home-page .hero-profile-panel {
  background: rgba(255, 255, 255, 0.056);
  border-color: rgba(17, 23, 34, 0.035);
  box-shadow:
    0 20px 54px rgba(17, 23, 34, 0.021),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.github-activity-panel {
  background: rgba(255, 255, 255, 0.09);
}

.activities-section {
  padding: 96px 0 74px;
}

.activities-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  text-align: center;
}

.activities-heading a {
  order: -1;
  align-self: center;
  justify-self: center;
}

.activities-heading h2 {
  font-size: clamp(2.1rem, 4.2vw, 4.95rem);
}

.video-board {
  width: min(990px, 100%);
  gap: 13px;
}

.video-copy {
  padding: 11px 12px 13px;
}

.video-copy h3 {
  font-size: 0.96rem;
}

.video-copy p {
  font-size: 0.8rem;
  line-height: 1.3;
}

.top-tabs a {
  padding: 14px 24px;
}

.top-tabs a:hover,
.top-tabs a:focus-visible {
  color: var(--accent-green);
  transform: translateY(-1px) scale(1.04);
}

.bubble-link:nth-child(1) {
  --open-delay: 0ms;
}

.bubble-link:nth-child(2) {
  --open-delay: 65ms;
}

.bubble-link:nth-child(3) {
  --open-delay: 130ms;
}

.bubble-link:nth-child(4) {
  --open-delay: 195ms;
}

.bubble-nav .bubble-link,
.bubble-nav .bubble-link:nth-child(2),
.bubble-nav .bubble-link:nth-child(3),
.bubble-nav .bubble-link:nth-child(4) {
  transition:
    color 140ms ease,
    filter 180ms ease,
    opacity 240ms ease var(--open-delay),
    transform 170ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.bubble-nav.is-open .bubble-link,
.bubble-nav.is-open .bubble-link:nth-child(2),
.bubble-nav.is-open .bubble-link:nth-child(3),
.bubble-nav.is-open .bubble-link:nth-child(4) {
  transition:
    color 140ms ease,
    filter 180ms ease,
    opacity 310ms ease var(--open-delay),
    transform 170ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.bubble-nav.is-open .bubble-links:hover .bubble-link:not(:hover) {
  opacity: 0.24;
  filter: grayscale(1);
  color: rgba(83, 98, 116, 0.6);
  transform: translate3d(12px, 0, 0) scale(0.9);
}

.bubble-nav.is-open .bubble-links .bubble-link:hover,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible {
  opacity: 1;
  filter: none;
  color: var(--accent-green);
  transform: translate3d(-22px, 0, 0) scale(1.18);
}

.bubble-nav.is-open .bubble-links .bubble-link:hover .bubble-label::before,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible .bubble-label::before {
  transform: scaleX(1.36);
  background: var(--accent-green);
}

.bubble-nav.is-open .bubble-links .bubble-link:hover,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(2):hover,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(3):hover,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(4):hover,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(2):focus-visible,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(3):focus-visible,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(4):focus-visible {
  opacity: 1;
  filter: none;
  color: var(--accent-green);
  transform: translate3d(-22px, 0, 0) scale(1.18);
}

@media (max-width: 980px) {
  .home-page .page-shell {
    width: min(100% - 28px, 760px);
  }

  .activities-section {
    padding-top: 72px;
  }
}

/* Final small layout polish: unframed profile, larger scroll cue, roomier activity grid. */
.home-page .page-shell {
  width: min(1370px, calc(100% - 54px));
}

.home-page .hero-profile-panel {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.github-activity-panel {
  background: rgba(255, 255, 255, 0.085);
}

.scroll-cue {
  width: 92px;
  height: 114px;
}

.scroll-cue span {
  width: 48px;
  height: 48px;
  border-right-width: 4px;
  border-bottom-width: 4px;
}

.video-board {
  width: min(1040px, 100%);
  gap: 20px;
}

.video-copy {
  padding: 13px 14px 15px;
}

.video-copy h3 {
  font-size: 1rem;
}

.video-copy p {
  font-size: 0.83rem;
  line-height: 1.34;
}

@media (max-width: 980px) {
  .home-page .page-shell {
    width: min(100% - 28px, 760px);
  }
}

/* Keep hamburger hover responsive, but let the color/dim animation breathe. */
.bubble-nav.is-open .bubble-links:hover .bubble-link,
.bubble-nav.is-open .bubble-links:hover .bubble-link:nth-child(2),
.bubble-nav.is-open .bubble-links:hover .bubble-link:nth-child(3),
.bubble-nav.is-open .bubble-links:hover .bubble-link:nth-child(4),
.bubble-nav.is-open .bubble-links .bubble-link:hover,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(2):hover,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(3):hover,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(4):hover,
.bubble-nav.is-open .bubble-links .bubble-link:focus-visible,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(2):focus-visible,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(3):focus-visible,
.bubble-nav.is-open .bubble-links .bubble-link:nth-child(4):focus-visible {
  transition:
    color 340ms ease,
    filter 360ms ease,
    opacity 340ms ease,
    transform 380ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.top-tabs a {
  margin: -10px -12px;
  padding: 24px 36px;
}

/* Latest home tuning: push profile farther left and let activities breathe. */
.home-page .page-shell {
  width: min(1420px, calc(100% - 4px));
}

.activities-section {
  padding: 116px 0 104px;
}

.activities-heading {
  margin-bottom: 52px;
}

.video-board {
  width: min(1248px, 100%);
  gap: 36px;
}

.video-copy {
  padding: 16px 17px 18px;
}

.video-copy h3 {
  font-size: 1.08rem;
}

.video-copy p {
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .home-page .page-shell {
    width: min(100% - 28px, 760px);
  }

  .video-board {
    width: min(100%, 720px);
    gap: 24px;
  }
}

/* Final close-out: nudge the main profile left once more and keep topic focus labels compact. */
.home-page .hero-profile-panel {
  margin-left: -26px;
}

.project-timeline-page[data-project-kind="topic"] .project-focus-layout {
  grid-template-columns: minmax(160px, 330px) minmax(0, 1fr);
  gap: 46px;
}

.project-timeline-page[data-project-kind="topic"] .project-focus-title h2 {
  max-width: 330px;
  font-size: clamp(1.7rem, 2.8vw, 2.75rem);
  line-height: 0.94;
  white-space: nowrap;
  overflow-wrap: normal;
}

@media (max-width: 980px) {
  .home-page .hero-profile-panel {
    margin-left: 0;
  }

  .project-timeline-page[data-project-kind="topic"] .project-focus-layout {
    grid-template-columns: 1fr;
  }

  .project-timeline-page[data-project-kind="topic"] .project-focus-title h2 {
    max-width: none;
    font-size: clamp(1.8rem, 10vw, 3rem);
    white-space: normal;
  }
}

/* Topic deck: image-backed type instead of plain rectangular cards. */
.project-axis-stage .project-topic-panel {
  width: min(1180px, 100%);
  gap: 34px;
}

.project-topic-panel button {
  --topic-image: url("/assets/img/posts/urdf5.png");
  position: relative;
  min-height: 158px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  padding: 0 30px;
  background: transparent;
  box-shadow: none;
  color: rgba(14, 22, 32, 0.93);
  font-size: clamp(1.28rem, 2.35vw, 2.35rem);
  font-weight: 950;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 34px rgba(255, 255, 255, 0.92);
}

.project-topic-panel button[data-project-topic="allex"] {
  --topic-image: url("/assets/img/allex/allex-official-hero-source.png");
}

.project-topic-panel button[data-project-topic="teleoperation"] {
  --topic-image: url("/assets/img/posts/mrc006.png");
}

.project-topic-panel button[data-project-topic="vla"] {
  --topic-image: url("/assets/img/posts/urdf5.png");
}

.project-topic-panel button span {
  position: relative;
  z-index: 3;
  display: inline-block;
  transform: translateY(2px);
}

.project-topic-panel button[data-project-topic="teleoperation"] span {
  font-size: 0.72em;
}

.project-topic-panel button::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.18) 46%, rgba(67, 201, 71, 0.08)),
    var(--topic-image) center / cover no-repeat;
  clip-path: polygon(7% 0, 100% 10%, 93% 100%, 0 88%);
  opacity: 0.42;
  filter: saturate(0.85) contrast(1.05) grayscale(0.08);
  transform: scale(1.02);
  transition:
    opacity 420ms ease,
    filter 440ms ease,
    transform 620ms cubic-bezier(0.16, 0.98, 0.2, 1),
    clip-path 620ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-topic-panel button::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 24px;
  z-index: 2;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0.36;
  transform: scaleX(0.42);
  transform-origin: center;
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-timeline-page.is-topic-mode .project-topic-panel:hover button {
  opacity: 0.3;
  filter: grayscale(1) saturate(0.55);
  transform: translate3d(0, 0, 0) scale(0.94);
}

.project-timeline-page.is-topic-mode .project-topic-panel button:hover,
.project-timeline-page.is-topic-mode .project-topic-panel button:focus-visible,
.project-timeline-page.is-topic-mode .project-topic-panel button.is-active {
  opacity: 1;
  filter: none;
  color: #1f8f2a;
  transform: translateY(-14px) scale(1.1);
}

.project-topic-panel button:hover::before,
.project-topic-panel button:focus-visible::before,
.project-topic-panel button.is-active::before {
  opacity: 0.72;
  filter: saturate(1.08) contrast(1.12) grayscale(0);
  clip-path: polygon(4% 5%, 96% 0, 100% 88%, 0 100%);
  transform: scale(1.08);
}

.project-topic-panel button:hover::after,
.project-topic-panel button:focus-visible::after,
.project-topic-panel button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 980px) {
  .project-axis-stage .project-topic-panel {
    gap: 22px;
  }

  .project-topic-panel button {
    min-height: 132px;
  }
}

/* Specificity guard for the image-topic deck. */
.project-axis-stage .project-topic-panel button {
  min-height: 158px;
  border: 0;
  border-radius: 0;
  padding: 0 30px;
  background: transparent;
  box-shadow: none;
  color: rgba(14, 22, 32, 0.93);
  font-size: clamp(1.28rem, 2.35vw, 2.35rem);
  font-weight: 950;
  letter-spacing: 0.03em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75),
    0 12px 34px rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px) {
  .project-axis-stage .project-topic-panel button {
    min-height: 132px;
  }
}

/* Large generated topic scenes. */
.project-axis-stage .project-topic-panel {
  width: min(1360px, calc(100vw - 72px)) !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 34px !important;
  top: 10% !important;
  left: 50% !important;
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel {
  transform: translateX(-50%) translate3d(0, -22%, 0) scale(1) !important;
}

.project-axis-stage .project-topic-panel button {
  --topic-image: url("/assets/img/topics/topic-vla.png");
  --topic-position: center;
  height: clamp(310px, 38vh, 390px) !important;
  min-height: clamp(310px, 38vh, 390px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 28px !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(12, 19, 28, 0.95) !important;
  font-size: clamp(2.35rem, 4vw, 4.6rem) !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 40px rgba(255, 255, 255, 0.95),
    0 22px 80px rgba(255, 255, 255, 0.74) !important;
}

.project-axis-stage .project-topic-panel button[data-project-topic="allex"] {
  --topic-image: url("/assets/img/topics/topic-allex.png");
  --topic-position: 58% center;
}

.project-axis-stage .project-topic-panel button[data-project-topic="teleoperation"] {
  --topic-image: url("/assets/img/topics/topic-teleoperation.png");
  --topic-position: 44% center;
}

.project-axis-stage .project-topic-panel button[data-project-topic="vla"] {
  --topic-image: url("/assets/img/topics/topic-vla.png");
  --topic-position: center;
}

.project-axis-stage .project-topic-panel button span {
  position: relative;
  z-index: 5;
  display: inline-block;
  transform: translateY(10px);
}

.project-axis-stage .project-topic-panel button[data-project-topic="teleoperation"] span {
  font-size: 0.66em;
}

.project-axis-stage .project-topic-panel button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.22) 44%, rgba(67, 201, 71, 0.12)),
    var(--topic-image) var(--topic-position) / cover no-repeat !important;
  clip-path: polygon(4% 0, 100% 8%, 95% 100%, 0 91%);
  opacity: 0.78 !important;
  filter: saturate(0.92) contrast(1.04);
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow: 0 34px 86px rgba(17, 23, 34, 0.11);
  transition:
    opacity 520ms ease,
    filter 540ms ease,
    transform 760ms cubic-bezier(0.16, 0.98, 0.2, 1),
    clip-path 760ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-axis-stage .project-topic-panel button::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 40px;
  z-index: 4;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  opacity: 0.48;
  transform: scaleX(0.42);
  transform-origin: center;
  transition:
    opacity 440ms ease,
    transform 640ms cubic-bezier(0.16, 0.98, 0.2, 1);
}

.project-axis-stage .project-topic-panel button:nth-child(1) {
  --topic-rise-delay: 0ms;
}

.project-axis-stage .project-topic-panel button:nth-child(2) {
  --topic-rise-delay: 260ms;
}

.project-axis-stage .project-topic-panel button:nth-child(3) {
  --topic-rise-delay: 520ms;
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel button {
  animation: topic-scene-rise 1180ms cubic-bezier(0.16, 0.86, 0.2, 1) var(--topic-rise-delay) both !important;
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel:hover button {
  opacity: 0.28;
  filter: grayscale(1) saturate(0.5);
  transform: translate3d(0, 0, 0) scale(0.94);
}

.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel button:hover,
.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel button:focus-visible,
.project-timeline-page.is-topic-mode .project-axis-stage .project-topic-panel button.is-active {
  opacity: 1;
  filter: none;
  color: #169523 !important;
  transform: translateY(-18px) scale(1.05);
}

.project-axis-stage .project-topic-panel button:hover::before,
.project-axis-stage .project-topic-panel button:focus-visible::before,
.project-axis-stage .project-topic-panel button.is-active::before {
  opacity: 0.92 !important;
  filter: saturate(1.08) contrast(1.12);
  clip-path: polygon(0 6%, 96% 0, 100% 92%, 5% 100%);
  transform: scale(1.04);
}

.project-axis-stage .project-topic-panel button:hover::after,
.project-axis-stage .project-topic-panel button:focus-visible::after,
.project-axis-stage .project-topic-panel button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes topic-scene-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 120px, 0) scale(0.92);
    filter: blur(18px) saturate(0.6);
  }

  62% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0) saturate(1);
  }
}

@media (max-width: 980px) {
  .project-axis-stage .project-topic-panel {
    width: min(100%, 720px) !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    top: 54% !important;
  }

  .project-axis-stage .project-topic-panel button {
    height: 210px !important;
    min-height: 210px !important;
    font-size: clamp(2rem, 12vw, 3.3rem) !important;
  }

  .project-axis-stage .project-topic-panel button[data-project-topic="teleoperation"] span {
    font-size: 0.58em;
  }
}

/* Project topic polish: official ALLEX, larger scenes, wider rhythm, and a mode switch that does not read as on/off. */
.home-page .hero-profile-panel {
  margin-left: -104px;
}

.project-axis-stage .project-topic-panel {
  width: min(1480px, calc(100vw - 30px)) !important;
  gap: 64px !important;
  top: 15% !important;
}

.project-axis-stage .project-topic-panel button {
  height: clamp(360px, 43vh, 470px) !important;
  min-height: clamp(360px, 43vh, 470px) !important;
}

.project-axis-stage .project-topic-panel button[data-project-topic="allex"] {
  --topic-image: url("/assets/img/allex/allex-official-hero-source.png");
  --topic-position: 58% center;
}

.project-mode-toggle {
  grid-template-columns: auto 34px auto !important;
  gap: 16px !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 8px 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(17, 23, 34, 0.48) !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.08em !important;
}

.project-mode-toggle span {
  position: relative;
  padding: 7px 0 10px;
  transition:
    color 260ms ease,
    transform 320ms cubic-bezier(0.16, 0.86, 0.2, 1),
    opacity 260ms ease;
}

.project-mode-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.18);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.16, 0.86, 0.2, 1);
}

.project-mode-toggle i {
  width: 34px !important;
  height: 1px !important;
  border-radius: 999px !important;
  background: rgba(17, 23, 34, 0.22) !important;
}

.project-mode-toggle i::after {
  display: none !important;
}

.project-mode-toggle span:first-child {
  color: rgba(17, 23, 34, 0.9);
}

.project-mode-toggle span:first-child::after {
  opacity: 1;
  transform: scaleX(1);
}

.project-mode-toggle.is-active span:first-child {
  color: rgba(17, 23, 34, 0.38);
  transform: scale(0.96);
}

.project-mode-toggle.is-active span:first-child::after {
  opacity: 0;
  transform: scaleX(0.18);
}

.project-mode-toggle.is-active span:last-child {
  color: var(--accent-green);
  transform: scale(1.08);
}

.project-mode-toggle.is-active span:last-child::after {
  opacity: 1;
  transform: scaleX(1);
}

.project-mode-toggle:hover,
.project-mode-toggle:focus-visible,
.project-mode-toggle.is-active {
  border-color: transparent !important;
  color: inherit !important;
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

@media (max-width: 980px) {
  .home-page .hero-profile-panel {
    margin-left: 0;
  }

  .project-axis-stage .project-topic-panel {
    width: min(100%, 720px) !important;
    gap: 28px !important;
    top: 50% !important;
  }

  .project-axis-stage .project-topic-panel button {
    height: 230px !important;
    min-height: 230px !important;
  }
}

/* ============================================================
   Name-card hero: typed identity + interactive ALLEX nav (home)
   ============================================================ */

/* -- Layout: push the profile card further left, enlarge, lighten -- */
.home-page .hero-profile-panel.namecard {
  grid-template-columns: minmax(140px, 172px) minmax(0, 1fr);
  gap: 26px 30px;
  justify-self: start;
  align-self: center;
  width: min(1240px, 88%);
  margin-left: calc(36px - max(2px, (100vw - 1420px) / 2));
  padding: 30px 36px 28px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(17, 23, 34, 0.055);
  box-shadow:
    0 22px 66px rgba(17, 23, 34, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Panel is click-through so hover/click reaches the ALLEX beneath;
   re-enable only the contact links that need to stay clickable. */
.home-page .namecard .link-row a {
  pointer-events: auto;
}

.home-page .hero-profile-panel.namecard .hero-avatar {
  width: min(13vw, 172px);
  min-width: 140px;
}

.home-page .namecard .hero-identity {
  max-width: none;
}

/* -- Bigger, tighter name (business-card feel) -- */
.home-page .namecard .hero-identity h1 .hero-name-main {
  font-size: clamp(4.4rem, 6.7vw, 7.4rem);
  letter-spacing: -0.024em;
  line-height: 0.86;
  white-space: nowrap;
}

.home-page .namecard .hero-identity h1 .hero-name-sub {
  margin-top: 10px;
  font-size: clamp(1.42rem, 1.95vw, 2.15rem);
}

.home-page .namecard .hero-role {
  font-size: clamp(1.05rem, 1.35vw, 1.42rem);
  font-weight: 730;
}

/* -- Typing: caret + no-layout-jump placeholder + delayed reveal -- */
.namecard [data-type] {
  white-space: pre-wrap;
}

.namecard.is-typing-ready [data-type]:empty::before {
  content: "\200b";
}

.namecard [data-type].nc-caret::after {
  content: "";
  display: inline-block;
  width: 0.055em;
  height: 0.9em;
  margin-left: 0.07em;
  vertical-align: -0.09em;
  background: var(--accent-green);
  border-radius: 1px;
  animation: nc-caret 900ms steps(1, end) infinite;
}

@keyframes nc-caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.namecard.is-typing-ready [data-type-reveal] {
  opacity: 0;
  transform: translateY(10px);
}

.namecard.is-typed [data-type-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* -- Interactive ALLEX: wake on hover, reveal nav on click (home) -- */
.home-page .hero-ghost-allex.allex-nav {
  pointer-events: none;
}

.home-page .allex-nav img {
  transition:
    opacity 860ms cubic-bezier(0.33, 0, 0.2, 1),
    transform 940ms cubic-bezier(0.2, 0.82, 0.2, 1),
    filter 860ms cubic-bezier(0.33, 0, 0.2, 1);
}

.home-page .allex-nav.is-awake img {
  opacity: 0.97;
  transform: scaleX(1) scale(1.025);
  filter: grayscale(0) contrast(1.05) drop-shadow(0 26px 56px rgba(16, 21, 34, 0.22));
}

.allex-nav-trigger {
  position: fixed;
  top: 58px;
  right: 0;
  width: min(56vw, 840px);
  height: calc(100vh - 58px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.allex-nav-trigger.is-parked {
  pointer-events: none;
}

.allex-nav-trigger:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: -8px;
  border-radius: 14px;
}

/* ALLEX part-anchored topic callouts: dot -> horizontal run -> short diagonal
   bend -> green bloom -> typed label. */
.allex-topics {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.allex-topic {
  position: fixed;
  left: calc(100vw - var(--rx));
  top: var(--ty);
  width: 0;
  height: 0;
  color: inherit;
  text-decoration: none;
}

.allex-topic:nth-child(1) { --t: 0; }
.allex-topic:nth-child(2) { --t: 1; }
.allex-topic:nth-child(3) { --t: 2; }
.allex-topic:nth-child(4) { --t: 3; }

.topic-dot {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(83, 98, 116, 0.9);
  box-shadow: 0 0 0 4px rgba(83, 98, 116, 0.14);
  opacity: 0;
  transform: scale(0);
  transition:
    transform 300ms cubic-bezier(0.2, 1.4, 0.3, 1),
    opacity 220ms ease;
}

.topic-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, rgba(53, 68, 86, 0.55), rgba(53, 68, 86, 0.96));
  box-shadow: 0 0 7px rgba(17, 23, 34, 0.14);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition:
    transform 400ms cubic-bezier(0.22, 0.86, 0.24, 1),
    opacity 180ms ease;
}

.topic-line--horizontal {
  width: var(--run-length, 0px);
  transform: rotate(var(--run-angle, 0deg)) scaleX(0);
}

.topic-line--diagonal {
  left: var(--run, 0px);
  width: var(--bend-length, 0px);
  transform: rotate(var(--bend-angle, 0deg)) scaleX(0);
}

.topic-flag {
  position: absolute;
  left: var(--end-x, 0px);
  top: var(--bend-y, 0px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.allex-topic[data-side="left"] .topic-flag {
  align-items: flex-end;
  transform: translate(-100%, -50%);
  text-align: right;
}

.allex-topic[data-side="right"] .topic-flag {
  align-items: flex-start;
  transform: translate(0, -50%);
  text-align: left;
}

.topic-bloom {
  width: 100%;
  height: 7px;
  border-radius: 6px;
  background: var(--accent-green);
  box-shadow: 0 4px 14px rgba(36, 146, 45, 0.4);
  transform: scaleX(0);
  transition: transform 510ms cubic-bezier(0.16, 1.3, 0.3, 1);
}

.allex-topic[data-side="left"] .topic-bloom { transform-origin: right center; }
.allex-topic[data-side="right"] .topic-bloom { transform-origin: left center; }

.topic-text {
  min-width: var(--topic-text-width, max-content);
  font-size: clamp(1.42rem, 1.45vw, 1.62rem);
  font-weight: 800;
  letter-spacing: 0.004em;
  color: var(--text);
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.92),
    0 0 10px rgba(255, 255, 255, 0.72);
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity 320ms ease,
    transform 340ms ease,
    color 150ms ease;
}

.allex-topics.is-open .topic-flag {
  pointer-events: auto;
}

.allex-topics.is-open .topic-dot {
  animation: topic-dot-pop 300ms cubic-bezier(0.2, 1, 0.3, 1) calc(var(--t, 0) * 360ms) both;
}

.allex-topics.is-open .topic-line--horizontal {
  opacity: 1;
  transform: rotate(var(--run-angle, 0deg)) scaleX(1);
  transition-delay: calc(var(--t, 0) * 360ms + 150ms);
}

.allex-topics.is-open .topic-line--diagonal {
  opacity: 1;
  transform: rotate(var(--bend-angle, 0deg)) scaleX(1);
  transition-delay: calc(var(--t, 0) * 360ms + 550ms);
}

.allex-topics.is-open .topic-bloom {
  animation: topic-bloom-spread 510ms cubic-bezier(0.16, 0.92, 0.2, 1) calc(var(--t, 0) * 360ms + 820ms) both;
}

.allex-topics.is-open .topic-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--t, 0) * 360ms + 1030ms);
}

@keyframes topic-dot-pop {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  62% {
    opacity: 1;
    transform: scale(1.5);
  }
  82% {
    transform: scale(0.88);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes topic-bloom-spread {
  0% {
    border-radius: 50%;
    transform: scaleX(0);
  }
  58% {
    border-radius: 8px;
    transform: scaleX(1.12);
  }
  78% {
    transform: scaleX(0.94);
  }
  100% {
    border-radius: 6px;
    transform: scaleX(1);
  }
}

.allex-topic:hover .topic-text,
.allex-topic:focus-visible .topic-text {
  color: var(--accent-strong);
  outline: none;
}

.allex-topic:hover .topic-bloom,
.allex-topic:focus-visible .topic-bloom {
  filter: brightness(1.08) saturate(1.1);
}

/* Home replaces the floating hamburger with the ALLEX nav. */
.home-page .bubble-nav {
  display: none;
}

@media (max-width: 1100px) {
  /* Fixed callouts need room; use the compact navigation on smaller viewports. */
  .allex-nav-trigger,
  .allex-topics {
    display: none;
  }

  .home-page .top-tabs {
    display: none;
  }

  .home-page .bubble-nav {
    display: block;
  }

  .home-page .bubble-toggle {
    pointer-events: auto;
  }

  .home-page .hero-profile-panel.namecard {
    width: 100%;
    margin-left: 0;
  }
}

@media (min-width: 1101px) and (max-height: 700px) {
  .allex-topic[aria-label="Teleoperation"] {
    --ty: calc(100vh - 110px) !important;
  }
}

@media (max-width: 760px) {
  .home-page .hero-profile-panel.namecard {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 22px;
    padding: 26px 22px;
  }

  .home-page .hero-profile-panel.namecard .hero-avatar {
    width: 158px;
    min-width: 0;
    transform: none;
  }

  .home-page .namecard .hero-identity {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-items: center;
    text-align: center;
  }

  .home-page .namecard .hero-identity h1 .hero-name-main {
    font-size: clamp(2.75rem, 14vw, 3.5rem);
  }

  .home-page .namecard .keyword-row,
  .home-page .namecard .link-row {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .namecard [data-type].nc-caret::after {
    animation: none;
  }

  .home-page .allex-nav img,
  .allex-topic,
  .namecard.is-typed [data-type-reveal] {
    transition: none;
  }

  .topic-dot,
  .topic-line,
  .topic-bloom,
  .topic-text {
    animation-delay: 0ms !important;
    animation-duration: 1ms !important;
    transition: none;
  }
}

/* ============================================================
   Project landing: ALLEX curtain -> green typed title -> roadmap
   ============================================================ */

.project-timeline-page.has-project-intro .project-intro {
  position: relative;
  isolation: isolate;
}

.project-timeline-page.has-project-intro .project-intro::before {
  content: "";
  position: fixed;
  inset: 58px 0 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/assets/img/allex/hero-allex.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: min(46.5vw, 720px) auto;
  opacity: 0;
  filter: grayscale(0.08) drop-shadow(0 36px 68px rgba(17, 23, 34, 0.12));
  transform-origin: center bottom;
  animation: project-allex-curtain 3000ms ease-in-out both;
}

.project-timeline-page.has-project-intro .project-intro > * {
  position: relative;
  z-index: 1;
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.project-timeline-page.has-project-intro .project-intro-title-text {
  display: inline-block;
  color: var(--accent-green);
  clip-path: inset(0 100% 0 0);
  animation:
    project-title-write 1130ms steps(7, end) 720ms both,
    project-title-ink 810ms ease 2000ms both;
}

.project-timeline-page.has-project-intro .project-intro-copy {
  animation: project-support-in 610ms cubic-bezier(0.2, 0.82, 0.2, 1) 3000ms backwards;
}

.project-timeline-page.has-project-intro .project-mode-toggle {
  animation: project-support-in 650ms cubic-bezier(0.2, 0.82, 0.2, 1) 3250ms backwards;
}

.project-timeline-page.has-project-intro .project-axis-stage {
  animation: project-support-in 680ms cubic-bezier(0.2, 0.82, 0.2, 1) 3500ms backwards;
}

.project-timeline-page.has-project-intro .year-timeline-line {
  animation: project-timeline-draw 990ms cubic-bezier(0.16, 0.86, 0.2, 1) 3650ms backwards;
}

.project-timeline-page.has-project-intro .year-timeline button {
  animation: project-year-arrive 850ms cubic-bezier(0.16, 0.9, 0.2, 1) var(--project-intro-year-delay) backwards;
}

.project-timeline-page.has-project-intro .year-timeline button[data-project-year="before"] {
  --project-intro-year-delay: 3900ms;
}

.project-timeline-page.has-project-intro .year-timeline button[data-project-year="2024"] {
  --project-intro-year-delay: 4400ms;
}

.project-timeline-page.has-project-intro .year-timeline button[data-project-year="2025"] {
  --project-intro-year-delay: 4900ms;
}

.project-timeline-page.has-project-intro .year-timeline button[data-project-year="2026"] {
  --project-intro-year-delay: 5400ms;
}

.project-timeline-page.has-project-intro:not(.is-project-intro-complete) .project-mode-toggle,
.project-timeline-page.has-project-intro:not(.is-project-intro-complete) .year-timeline {
  pointer-events: none;
}

@keyframes project-allex-curtain {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  8% {
    opacity: 0.14;
  }
  20%, 24% {
    /* Quick entrance (20% = 600ms), brief hold, then the fade/grow begins at
       24% (720ms) — synced with the PROJECT title typing start. */
    opacity: 1;
    transform: scale(1);
  }
  100% {
    /* Grow and fade until it settles into the resting background watermark
       (720px * 1.3333 = 960px, matching .sub-page::before at min(62vw, 960px)). */
    opacity: 0.055;
    transform: scale(1.3333);
  }
}

@keyframes project-title-write {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes project-title-ink {
  from {
    color: var(--accent-green);
  }
  to {
    color: var(--project-ink);
  }
}

@keyframes project-support-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(10px);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -3px, 0);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes project-timeline-draw {
  0% {
    opacity: 0;
    transform: scaleX(0);
    filter: blur(5px);
  }
  70% {
    opacity: 1;
    transform: scaleX(1.035);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
    filter: blur(0);
  }
}

@keyframes project-year-arrive {
  0% {
    opacity: 0;
    transform: translate3d(0, -32px, 0) scale(0.86);
    filter: blur(12px);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, 5px, 0) scale(1.045);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-timeline-page.has-project-intro .project-intro::before {
    display: none;
  }

  .project-timeline-page.has-project-intro .project-intro > *,
  .project-timeline-page.has-project-intro .project-intro-title-text,
  .project-timeline-page.has-project-intro .year-timeline-line,
  .project-timeline-page.has-project-intro .year-timeline button {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }

  .project-timeline-page.has-project-intro .project-intro-title-text {
    color: var(--project-ink);
  }

  .project-timeline-page.has-project-intro:not(.is-project-intro-complete) .project-mode-toggle,
  .project-timeline-page.has-project-intro:not(.is-project-intro-complete) .year-timeline {
    pointer-events: auto;
  }
}

/* During the animated intro the foreground ALLEX grows and fades until it
   becomes the resting background itself, so the standalone body watermark is
   suppressed (kept under reduced-motion, where the foreground is hidden). */
@media (prefers-reduced-motion: no-preference) {
  body.sub-page:has(.project-timeline-page.has-project-intro)::before {
    display: none;
  }
}

/* ============================================================
   Project dossiers and project-detail editorial surfaces
   ============================================================ */

.project-timeline-page {
  overflow-x: clip;
}

.project-timeline-page::before {
  inset-inline: 0;
}

.project-timeline-page .project-node-grid,
.project-timeline-page[data-project-kind="topic"] .project-node-grid {
  max-width: 880px;
  gap: 20px;
}

.project-timeline-page .project-node {
  position: relative;
  overflow: hidden;
  padding: 30px 32px 28px;
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-left: 3px solid rgba(67, 201, 71, 0.46);
  border-radius: 18px;
  background:
    radial-gradient(circle at 98% 0, rgba(67, 201, 71, 0.11), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 246, 0.9));
  box-shadow:
    0 16px 46px rgba(17, 23, 34, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.project-timeline-page .project-node::before {
  content: "";
  display: block;
  position: absolute;
  top: -88px;
  right: -64px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(67, 201, 71, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 201, 71, 0.09), transparent 68%);
  opacity: 0.72;
  pointer-events: none;
}

.project-timeline-page .project-node::after {
  content: none;
  display: none;
}

.project-timeline-page .project-node-topline {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(17, 23, 34, 0.075);
}

.project-timeline-page .project-node-topline span {
  color: #188f2d;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.project-timeline-page .project-node-topline em {
  border-color: rgba(67, 201, 71, 0.3);
  padding: 4px 10px;
  background: rgba(244, 255, 245, 0.78);
  color: rgba(36, 100, 48, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.project-timeline-page .project-node-track {
  margin: 19px 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
}

.project-timeline-page .project-node h2 {
  max-width: 88%;
  font-size: clamp(1.58rem, 2.12vw, 2.2rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.project-timeline-page .project-node-fulltitle {
  max-width: 64ch;
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.project-timeline-page .project-node-summary {
  max-width: 68ch;
  margin: 15px 0 0;
  font-size: 0.99rem;
  line-height: 1.66;
}

.project-timeline-page .project-node .tag-row {
  gap: 7px;
  margin-top: 19px;
}

.project-timeline-page .project-node-link {
  margin-top: 19px;
  border: 0;
  border-radius: 0;
  padding: 6px 0;
  background: transparent;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-timeline-page.is-card-hover .project-node:not(.is-hovered),
.project-timeline-page.is-card-hover .project-node-grid:has(.project-node:hover) .project-node:not(.is-hovered) {
  opacity: 0.48;
  filter: grayscale(0.68) saturate(0.55);
  transform: scale(0.992);
}

.project-timeline-page.is-card-hover .project-node.is-hovered,
.project-timeline-page.is-card-hover .project-node-grid:has(.project-node:hover) .project-node.is-hovered,
.project-timeline-page.is-card-hover .project-node-grid:has(.project-node:hover) .project-node.is-hovered:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-6px) scale(1.008);
  border-color: rgba(67, 201, 71, 0.54);
  border-left-color: var(--accent-green);
  background:
    radial-gradient(circle at 98% 0, rgba(67, 201, 71, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(242, 251, 244, 0.94));
  box-shadow:
    0 28px 70px rgba(45, 145, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.sub-page:has(.project-detail-page)::before {
  opacity: 0.028;
}

.project-detail-copy::before {
  content: "Selected project";
  display: block;
  margin-bottom: 16px;
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-detail-media {
  border-color: rgba(17, 23, 34, 0.09);
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 96%, rgba(67, 201, 71, 0.11), transparent 46%),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 30px 78px rgba(17, 23, 34, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.project-detail-media img {
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  object-fit: contain;
  object-position: center bottom;
}

.project-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 28px 32px;
  align-items: start;
  counter-reset: project-detail-section;
}

.project-detail-section,
.project-detail-meta {
  overflow: hidden;
  border-color: rgba(17, 23, 34, 0.09);
  border-radius: 22px;
  box-shadow:
    0 18px 52px rgba(17, 23, 34, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.project-detail-section {
  position: relative;
  counter-increment: project-detail-section;
  padding: 38px 40px 40px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 249, 0.9)),
    rgba(255, 255, 255, 0.88);
}

.project-detail-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--accent-green), rgba(67, 201, 71, 0.08));
}

.project-progress-section {
  min-height: 250px;
  background:
    radial-gradient(circle at 92% 14%, rgba(67, 201, 71, 0.13), transparent 30%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.99), rgba(244, 252, 246, 0.92));
}

.project-detail-section h2 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.project-detail-section h2::before {
  content: "0" counter(project-detail-section);
  display: inline-grid;
  width: 34px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(67, 201, 71, 0.34);
  border-radius: 999px;
  background: rgba(244, 255, 245, 0.88);
  color: #188f2d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.project-progress-line {
  position: relative;
  margin-bottom: 22px;
  border-bottom-color: rgba(17, 23, 34, 0.09);
  padding: 8px 0 20px;
}

.project-progress-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(67, 201, 71, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(244, 255, 245, 0.84);
  color: rgba(36, 100, 48, 0.86);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.project-progress-line span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 5px rgba(67, 201, 71, 0.12);
}

.project-progress-line strong {
  position: relative;
  color: #27ad39;
  text-shadow: 0 12px 36px rgba(67, 201, 71, 0.17);
}

.project-detail-section:not(.project-progress-section) .project-detail-list {
  counter-reset: project-detail-item;
  gap: 0;
  padding: 0;
  list-style: none;
}

.project-detail-section:not(.project-progress-section) .project-detail-list li {
  counter-increment: project-detail-item;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(17, 23, 34, 0.075);
}

.project-detail-section:not(.project-progress-section) .project-detail-list li::before {
  content: "0" counter(project-detail-item);
  color: var(--accent-green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.project-detail-note {
  margin-top: 22px;
  border: 1px solid rgba(67, 201, 71, 0.18);
  border-left: 3px solid var(--accent-green);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  background: rgba(244, 255, 245, 0.68);
  color: rgba(33, 61, 43, 0.76);
}

.project-detail-meta {
  align-self: start;
  padding: 30px;
  border-color: rgba(67, 201, 71, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(67, 201, 71, 0.22), transparent 40%),
    linear-gradient(155deg, rgba(16, 27, 34, 0.97), rgba(18, 42, 30, 0.95));
  box-shadow:
    0 28px 70px rgba(12, 24, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-detail-meta::before {
  content: "Project specs";
  display: block;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-detail-meta dl {
  gap: 0;
}

.project-detail-meta dl > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.project-detail-meta dt {
  margin: 0;
  color: rgba(99, 224, 108, 0.88);
  font-size: 0.7rem;
}

.project-detail-meta dd {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 720;
}

.project-detail-links {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.project-detail-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(99, 224, 108, 0.26);
  border-radius: 10px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
}

.project-detail-links a::after {
  content: "↗";
  color: rgba(99, 224, 108, 0.88);
}

.project-collage-section {
  border-radius: 22px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 58px rgba(17, 23, 34, 0.075);
}

.project-gallery-grid img,
.project-video-grid iframe {
  border-radius: 14px;
}

@media (max-width: 980px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-meta {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .project-timeline-page .project-node {
    padding: 25px 22px 24px;
    border-radius: 15px;
  }

  .project-detail-hero {
    min-height: auto;
    gap: 30px;
    padding-bottom: 44px;
  }

  .project-detail-media {
    padding: 10px;
    border-radius: 17px;
  }

  .project-detail-section,
  .project-detail-meta {
    border-radius: 17px;
  }

  .project-detail-section {
    padding: 31px 24px 32px;
  }

  .project-detail-section::after {
    left: 24px;
    right: 24px;
  }

  .project-detail-meta {
    padding: 25px 23px;
  }

  .project-detail-meta dl > div {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .project-collage-section {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-timeline-page .project-node {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Project detail re-layout: hero YouTube + What I Did + facts
   ============================================================ */

/* Track / Year eyebrow replaces the generic "Selected project" label. */
.project-detail-copy::before {
  display: none;
}

/* Detail hero title auto-fits to one line via JS (nowrap enables measuring). */
.project-detail-copy h1 {
  white-space: nowrap;
}

.project-detail-eyebrow {
  margin: 0 0 4px;
  color: var(--accent-green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Right-hand YouTube embed in the hero (sits in the media grid column). */
.project-detail-media--video {
  align-self: end;
  width: 100%;
  padding: 12px;
}

.project-detail-media--video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 15px;
}

/* Stacked content blocks (What I Did, Topics / Stack / Code). */
.project-detail-block {
  position: relative;
  margin-top: 40px;
  padding: 34px 36px 36px;
  border: 1px solid rgba(17, 23, 34, 0.09);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 249, 0.84)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    0 18px 52px rgba(17, 23, 34, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.project-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.project-block-index {
  color: var(--accent-green);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.project-detail-block h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 880;
  line-height: 1.1;
}

/* What I Did — numbered contribution list. */
.project-did-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: did;
  display: grid;
  gap: 14px;
}

.project-did-list li {
  position: relative;
  padding-left: 44px;
  color: var(--text);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.62;
  counter-increment: did;
}

.project-did-list li::before {
  content: counter(did, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* Topics / Stack / Code — facts grid at the bottom. */
.project-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px 32px;
}

.project-facts-cell h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-facts-cell p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.tag-row--plain {
  gap: 8px;
}

.tag-row--plain span {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(17, 23, 34, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 620;
}

.project-facts-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.project-facts-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(17, 23, 34, 0.07);
}

.project-facts-dl dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-facts-dl dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 680;
  text-align: right;
}

/* When a full-width video follows, keep the text hero compact so the video
   sits high on the page instead of being pushed below the fold. */
.project-detail-hero:has(+ .project-video-hero) {
  min-height: auto;
  padding: 24px 0 4px;
  align-items: start;
}

/* Full-width hero video (YouTube). */
.project-video-hero {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-radius: 22px;
  background: #05070a;
  box-shadow: 0 34px 84px rgba(17, 23, 34, 0.16);
}

.project-video-hero iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Key highlights banner. */
.project-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.project-highlight {
  padding: 24px 26px;
  border: 1px solid rgba(67, 201, 71, 0.3);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(233, 248, 238, 0.92), rgba(255, 255, 255, 0.72));
  box-shadow: 0 16px 44px rgba(21, 157, 70, 0.08);
}

.project-highlight span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-highlight p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.35vw, 1.26rem);
  font-weight: 720;
  line-height: 1.45;
}

/* Media board (expanded gallery). */
.project-media-board {
  margin-top: 40px;
}

.project-media-board h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 880;
}

.project-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 4px;
}

.project-media-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 34, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 44px rgba(17, 23, 34, 0.08);
}

.project-media-item img,
.project-media-item iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
}

.project-media-item figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .project-detail-block {
    margin-top: 26px;
    padding: 26px 22px 28px;
  }

  .project-facts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .project-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   Home ALLEX: click affordance (breathing, hint, first-visit teaser)
   ============================================================ */

/* Subtle idle breathing so ALLEX doesn't read as a static background. */
@media (prefers-reduced-motion: no-preference) {
  .home-page .allex-nav img {
    animation: allex-breathe 7s ease-in-out infinite;
  }

  .home-page .allex-nav.is-awake img {
    animation: none;
  }
}

@keyframes allex-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.014) translateY(-0.5%); }
}

/* "Click!" hint pinned to the ALLEX face/camera. */
.allex-hint {
  position: fixed;
  z-index: 2;
  left: calc(100vw - 588px);
  top: clamp(258px, 28vh, 312px);
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 620ms ease, transform 620ms ease;
  pointer-events: none;
}

.allex-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Semi-transparent target circle (~1.5x the original dot). */
.allex-hint-dot {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.5;
  box-shadow: 0 0 30px rgba(67, 201, 71, 0.6);
}

.allex-hint-dot::before {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 3px solid var(--accent-green);
}

@media (prefers-reduced-motion: no-preference) {
  .allex-hint-dot::before {
    animation: allex-hint-pulse 1.9s ease-out infinite;
  }
}

@keyframes allex-hint-pulse {
  0% { transform: scale(0.55); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Text only — no pill background. */
.allex-hint-text {
  color: var(--accent-strong);
  font-size: 2.08rem;
  font-weight: 820;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow:
    0 1px 3px rgba(255, 255, 255, 0.94),
    0 0 14px rgba(255, 255, 255, 0.75);
}

@media (max-width: 760px) {
  /* ALLEX sits behind the full-width name card on mobile, so there is no
     visible face to point at — hide the hint rather than float it over copy. */
  .allex-hint {
    display: none;
  }
}
