@font-face {
  font-family: 'Suisse Intl';
  src: local('Suisse Intl'), local('SuisseIntl-Regular'), local('SuisseIntl');
  font-display: swap;
}

/* ── Reset & Base ────────────────────────────────── */

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #1a1a1a;
  background:
    linear-gradient(rgba(211, 205, 196, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 205, 196, 0.022) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(198, 188, 171, 0.14), transparent 26%),
    #fafaf8;
  background-size: 44px 44px, 44px 44px, auto, auto;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(56px);
  opacity: 0.42;
  will-change: transform, opacity;
}

body::before {
  top: -120px;
  left: 38%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(206, 196, 182, 0.18), rgba(206, 196, 182, 0) 68%);
  animation: ambientDriftOne 24s ease-in-out infinite alternate;
}

body::after {
  left: -100px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(188, 197, 205, 0.14), rgba(188, 197, 205, 0) 70%);
  animation: ambientDriftTwo 28s ease-in-out infinite alternate;
}

/* ── Particle canvas ─────────────────────────────── */

.network-stage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(520px, 92vh, 1180px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 72%, rgba(0, 0, 0, 0));
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

nav,
main {
  position: relative;
  z-index: 2;
}

img {
  display: block;
}

a {
  color: inherit;
}

/* ── Nav ─────────────────────────────────────────── */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
}

.logo {
  font-family: 'Suisse Intl', 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-cta {
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

.nav-link {
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: #1a1a1a;
  border-color: #bdb7ae;
}

.nav-cta:hover {
  color: #1a1a1a;
  border-color: #bdb7ae;
}

/* ── Split Layout ────────────────────────────────── */

.split {
  display: flex;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}

.left-panel {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 48px 48px 56px;
  overflow-y: auto;
}

.left-panel > * {
  max-width: 40rem;
}

.right-panel {
  flex: 1;
  position: relative;
  padding: 32px 40px 32px 0;
  min-width: 0;
  overflow: hidden;
}

.dag-chrome {
  position: absolute;
  top: 44px;
  right: 40px;
  z-index: 3;
  width: min(360px, calc(100% - 72px));
  pointer-events: none;
}

.right-panel::before {
  content: "";
  position: absolute;
  inset: 24px 24px 24px 0;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(254, 254, 253, 0.64),
    rgba(250, 250, 248, 0.5)
  );
  border: 1px solid rgba(201, 194, 184, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

/* ── Home Layout ─────────────────────────────────── */

.home-page .split {
  display: block;
  min-height: auto;
  overflow: visible;
}

.home-page .left-panel,
.home-page .right-panel {
  max-width: 1160px;
  margin: 0 auto;
}

.home-page .left-panel {
  display: block;
  padding: 48px 40px 0;
  overflow: visible;
}

.home-page .left-panel > * {
  max-width: 42rem;
}

.home-page .right-panel {
  padding: 32px 40px 72px;
  overflow: visible;
}

.home-page .journey-panel {
  margin-top: 28px;
}

/* ── Hero ────────────────────────────────────────── */

.headshot {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 22px;
  box-shadow: 0 18px 36px rgba(30, 24, 18, 0.08);
}

.hero {
  margin-bottom: 32px;
}

.hero-kicker,
.section-label,
.detail-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8c8477;
}

.hero-kicker {
  margin-bottom: 10px;
}

.greeting {
  font-size: 0.98rem;
  color: #888;
  margin-bottom: 4px;
}

.hero h1 {
  font-family: 'Suisse Intl', 'Inter', -apple-system, sans-serif;
  font-weight: 500;
  font-size: clamp(3rem, 5vw, 4.4rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
  margin-bottom: 14px;
}

.tagline {
  font-size: 1.12rem;
  color: #444;
  line-height: 1.55;
}

.hero-summary {
  margin-top: 16px;
  font-size: 0.98rem;
  color: #555;
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid #d7d1c8;
  color: #1f1f1f;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.hero-link:hover {
  transform: translateY(-1px);
  border-color: #b9b1a3;
}

.hero-link-primary {
  background: #1f1f1f;
  border-color: #1f1f1f;
  color: #fafaf8;
}

.hero-link-primary:hover {
  background: #313131;
  border-color: #313131;
}

/* ── About ───────────────────────────────────────── */

.about {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e8e3db;
}

.section-label {
  margin-bottom: 14px;
}

.about p {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.72;
}

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

/* ── Journey Board ───────────────────────────────── */

.journey-panel::before {
  display: none;
}

.journey-board {
  position: relative;
  padding: 34px 36px 34px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.56),
    rgba(252, 251, 248, 0.42)
  );
  border: 1px solid rgba(206, 199, 189, 0.48);
  box-shadow: 0 24px 56px rgba(31, 26, 22, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.journey-header {
  max-width: 31rem;
}

.journey-header h2 {
  font-family: 'Suisse Intl', 'Inter', -apple-system, sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.journey-intro {
  margin-top: 14px;
  color: #55514a;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 34rem;
}

.journey-timeline {
  position: relative;
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 8px 0;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: calc(50% - 1px);
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(111, 171, 201, 0.96), rgba(111, 171, 201, 0.42));
}

.journey-step {
  --journey-anchor: 30px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: start;
}

.journey-step-right {
  --journey-anchor: 24px;
}

.journey-card {
  position: relative;
  width: min(31ch, 100%);
}

.journey-step-left .journey-card {
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
}

.journey-step-right .journey-card {
  grid-row: 1;
  grid-column: 3;
  justify-self: start;
}

.journey-step-left .journey-card::after,
.journey-step-right .journey-card::after {
  content: "";
  position: absolute;
  top: var(--journey-anchor);
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: rgba(111, 171, 201, 0.84);
}

.journey-step-left .journey-card::after {
  right: -54px;
}

.journey-step-right .journey-card::after {
  left: -54px;
}

.journey-node {
  grid-row: 1;
  grid-column: 2;
  justify-self: center;
  align-self: start;
  margin-top: calc(var(--journey-anchor) - 11px);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6fabc9;
  box-shadow: 0 0 0 10px rgba(111, 171, 201, 0.12);
}

.journey-meta {
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6fabc9;
}

.journey-card h3 {
  font-family: 'Suisse Intl', 'Inter', -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #243147;
}

.journey-subhead {
  margin-top: 10px;
  color: #384255;
  font-size: 0.96rem;
  line-height: 1.4;
}

.journey-copy {
  margin-top: 12px;
  color: #57544f;
  font-size: 0.94rem;
  line-height: 1.72;
}

/* ── Detail Card ─────────────────────────────────── */

.node-detail {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e3ddd4;
  border-radius: 18px;
  padding: 20px 22px 22px;
  position: relative;
  min-height: 176px;
  box-shadow: 0 20px 40px rgba(36, 31, 25, 0.06);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s, background 0.22s;
}

.node-detail.is-empty {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(227, 221, 212, 0.82);
  box-shadow: 0 16px 32px rgba(36, 31, 25, 0.04);
}

.detail-label {
  margin-bottom: 10px;
}

.node-detail h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.15;
  margin-bottom: 6px;
  padding-right: 54px;
}

.node-detail #detail-period {
  font-size: 0.82rem;
  color: #8f877c;
  margin-bottom: 10px;
}

.node-detail #detail-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  max-width: 28ch;
}

#detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.96);
  border: 1px solid rgba(207, 198, 185, 0.9);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7e7567;
  cursor: pointer;
  line-height: 1;
}

#detail-close:hover {
  color: #1a1a1a;
  border-color: #b8ae9f;
  background: rgba(255, 255, 255, 0.96);
}

.node-detail.is-empty #detail-close {
  opacity: 0;
  pointer-events: none;
}

/* ── Contact ─────────────────────────────────────── */

.contact {
  margin-top: auto;
}

.contact h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.contact-copy {
  font-size: 0.94rem;
  color: #555;
  max-width: 28rem;
  margin-bottom: 14px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid #ccc;
  transition: border-color 0.2s, color 0.2s;
}

.contact-links a:hover {
  border-color: #1a1a1a;
}

/* ── Page Layout ─────────────────────────────────── */

.page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 40px 72px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 640px) 300px;
  gap: 24px;
  align-items: end;
  min-height: calc(100vh - 140px);
  padding: 24px 0 40px;
}

.page-hero h1,
.section-heading h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.96;
  margin-bottom: 16px;
  max-width: 10ch;
}

.page-intro {
  max-width: 31rem;
  color: #4d4a45;
  font-size: 1rem;
}

.page-note {
  margin-top: 14px;
  color: #7e766a;
  font-size: 0.9rem;
}

.page-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.page-portrait {
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(24, 20, 14, 0.12);
}

.hero-caption {
  width: min(100%, 300px);
  padding-top: 14px;
  border-top: 1px solid #d8d1c6;
}

.hero-caption p:last-child {
  color: #4d4a45;
  max-width: 28rem;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.experience-list {
  margin-bottom: 56px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.25)
  );
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.experience-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid #e3ddd4;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.experience-item:hover {
  transform: translateY(-2px);
  border-color: #cfc4b3;
}

.experience-item:last-child {
  border-bottom: 1px solid #e3ddd4;
}

.experience-org {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.experience-period {
  color: #7e766a;
  font-size: 0.9rem;
}

.experience-body h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.experience-body > p {
  max-width: 44rem;
  color: #4d4a45;
}

.experience-points {
  margin-top: 16px;
  padding-left: 18px;
  color: #4d4a45;
}

.experience-points li + li {
  margin-top: 8px;
}

.page-cta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-top: 36px;
  margin-top: 56px;
  border-top: 1px solid #dfd8cc;
}

.page-cta h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 14ch;
}

.page-cta .hero-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.notes-hero {
  max-width: 44rem;
  min-height: calc(100vh - 180px);
  padding: 40px 0 32px;
}

.notes-hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.96;
  max-width: 11ch;
  margin-bottom: 16px;
}

.notes-list {
  margin-top: 8px;
}

/* ── Shared Focus ────────────────────────────────── */

.nav-link:focus-visible,
.logo:focus-visible,
.nav-cta:focus-visible,
.hero-link:focus-visible,
.contact-links a:focus-visible,
#detail-close:focus-visible,
.dag-node:focus-visible {
  outline: 2px solid #1f1f1f;
  outline-offset: 4px;
}

/* ── DAG ─────────────────────────────────────────── */

#dag-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  touch-action: none;
}

#dag-container svg {
  display: block;
  position: relative;
  z-index: 1;
}

.dag-node {
  cursor: pointer;
}

.dag-node circle:first-child {
  transition: r 0.15s, stroke-width 0.15s, filter 0.2s, stroke 0.2s, transform 0.2s;
}

.dag-node:hover circle:first-child,
.dag-node.is-active circle:first-child,
.dag-node:focus-visible circle:first-child {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.12));
}

.dag-node.is-active circle:first-child {
  transform-box: fill-box;
  transform-origin: center;
  animation: dagNodeBloom 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dag-node-glow,
.dag-node-halo {
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
}

.dag-node-glow {
  opacity: 0.32;
  animation: dagNodeGlow 520ms ease-out;
}

.dag-node-halo {
  fill: none;
  stroke-width: 1.6;
  opacity: 0;
  animation: dagHaloPulse 720ms cubic-bezier(0.2, 0.75, 0.22, 1);
}

.dag-edge {
  transition: stroke 0.15s, stroke-width 0.15s;
}

.dag-edge-pulse {
  fill: none;
  stroke: #d3ae4f;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  opacity: 0;
  pointer-events: none;
  animation: dagRoutePulse 900ms ease-out;
}

.dag-arrow {
  transition: fill 0.15s;
}

@keyframes dagNodeBloom {
  0% {
    transform: scale(0.92);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes dagNodeGlow {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }
  45% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes dagHaloPulse {
  0% {
    opacity: 0.65;
    transform: scale(0.84);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes dagRoutePulse {
  0% {
    opacity: 0;
    stroke-dashoffset: 36;
  }
  28% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes ambientDriftOne {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.3;
  }
  100% {
    transform: translate3d(-18px, 18px, 0) scale(1.05);
    opacity: 0.42;
  }
}

@keyframes ambientDriftTwo {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.24;
  }
  100% {
    transform: translate3d(24px, -16px, 0) scale(1.06);
    opacity: 0.34;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 900px) {
  .home-page .left-panel,
  .home-page .right-panel {
    max-width: none;
  }

  .home-page .left-panel {
    padding: 24px 24px 0;
  }

  .home-page .right-panel {
    padding: 12px 24px 40px;
  }

  .home-page .journey-panel {
    margin-top: 20px;
  }

  .network-stage {
    top: 0;
    height: clamp(420px, 82vh, 880px);
  }

  nav {
    padding: 20px 24px;
  }

  .nav-links {
    gap: 14px;
  }

  .split {
    flex-direction: column;
    min-height: auto;
    overflow: visible;
  }

  .left-panel {
    flex: none;
    padding: 24px;
  }

  .left-panel > * {
    max-width: none;
  }

  .right-panel {
    flex: none;
    padding: 8px 24px 32px;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .journey-board {
    padding: 28px 22px 26px;
  }

  .journey-timeline {
    margin-top: 26px;
    gap: 22px;
    padding-left: 28px;
  }

  .journey-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(111, 171, 201, 0.9), rgba(111, 171, 201, 0.38));
  }

  .journey-step {
    --journey-anchor: 24px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0 18px;
  }

  .journey-card {
    grid-column: 2 !important;
    justify-self: start !important;
    width: auto;
    max-width: none;
  }

  .journey-step-left .journey-card::after,
  .journey-step-right .journey-card::after {
    top: var(--journey-anchor);
    left: -18px;
    right: auto;
    width: 18px;
  }

  .journey-node {
    grid-column: 1;
    margin-top: calc(var(--journey-anchor) - 7px);
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 8px rgba(111, 171, 201, 0.14);
  }

  .dag-chrome {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin-bottom: 14px;
    pointer-events: auto;
  }

  .node-detail {
    width: 100%;
    margin-bottom: 4px;
  }

  .right-panel::before {
    inset: 0 12px 12px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .node-detail {
    min-height: 0;
  }

  .node-detail #detail-desc {
    max-width: none;
  }

  #dag-container {
    height: auto;
    flex: none;
  }

  .contact {
    margin-top: 24px;
  }

  .page-shell {
    padding: 12px 24px 40px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding-top: 20px;
  }

  .notes-hero {
    min-height: auto;
    padding-top: 20px;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .page-hero-visual {
    align-items: flex-start;
  }

  .page-portrait,
  .hero-caption {
    width: min(100%, 300px);
  }

  .experience-item {
    gap: 14px;
  }

  .page-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .page-cta .hero-actions {
    justify-content: flex-start;
  }

  .experience-list {
    padding: 24px 20px;
  }

  body::before,
  body::after {
    position: absolute;
  }

  #particle-canvas {
    position: absolute;
    height: 100%;
  }
}

/* ── Small phones ───────────────────────────────── */

@media (max-width: 480px) {
  .home-page .left-panel {
    padding: 20px 16px 0;
  }

  .home-page .right-panel {
    padding: 10px 16px 32px;
  }

  .home-page .journey-panel {
    margin-top: 16px;
  }

  .network-stage {
    top: 0;
    height: clamp(320px, 72vh, 620px);
  }

  nav {
    padding: 16px 16px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-link,
  .nav-cta {
    font-size: 0.82rem;
  }

  .left-panel {
    padding: 20px 16px;
  }

  .right-panel {
    padding: 8px 16px 24px;
    min-height: auto;
  }

  .journey-board {
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .journey-header h2 {
    font-size: 1.8rem;
  }

  .journey-timeline {
    padding-left: 24px;
    gap: 18px;
  }

  .journey-card h3 {
    font-size: 1.35rem;
  }

  .journey-subhead,
  .journey-copy {
    font-size: 0.92rem;
  }

  .right-panel::before {
    inset: 0 8px 8px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero-summary {
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .home-page .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.85rem;
  }

  #dag-container {
    height: auto;
  }

  .node-detail {
    padding: 16px 16px 18px;
  }

  .node-detail h3 {
    font-size: 1.15rem;
    padding-right: 44px;
  }

  .page-shell {
    padding: 8px 16px 32px;
  }

  .page-hero h1 {
    font-size: 2.4rem;
  }

  .experience-list {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .experience-body h3 {
    font-size: 1.25rem;
  }

  .page-cta h2 {
    font-size: 1.5rem;
  }

  .page-cta .hero-actions {
    justify-content: flex-start;
  }
}

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

  body::before,
  body::after {
    animation: none !important;
  }

  #particle-canvas {
    display: none !important;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
