/*
  Aarya Bookseller — Research Landscape
  An original, monochrome interaction system inspired by spatial digital experiences.
*/

:root {
  --xp-bg: #e4e5e7;
  --xp-surface: #f4f4f1;
  --xp-surface-2: #d7d9dc;
  --xp-ink: #101112;
  --xp-muted: #545a60;
  --xp-line: rgba(16, 17, 18, 0.22);
  --xp-line-soft: rgba(16, 17, 18, 0.1);
  --xp-glow: rgba(255, 255, 255, 0.72);
  --xp-signal: #ff5b35;
  --xp-sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --xp-font: var(--xp-sans);
  --xp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --xp-header: 74px;

  /* Keep legacy components on the same visual system. */
  --bg: var(--xp-bg);
  --bg-0: var(--xp-bg);
  --bg-1: var(--xp-surface);
  --bg-2: var(--xp-surface-2);
  --text: var(--xp-ink);
  --muted: var(--xp-muted);
  --muted-strong: var(--xp-ink);
  --border: var(--xp-line);
  --ring: var(--xp-line);
  --accent: var(--xp-signal) !important;
  --accent-fg: #ffffff;
  --accent-contrast: #ffffff;
  --font-sans: var(--xp-sans);
  --font-mono: var(--xp-font);
  --radius: 0;
  --shadow-1: none;
  --shadow-2: none;
  --tint-peach: var(--xp-surface-2);
  --tint-blue: color-mix(in srgb, var(--xp-surface-2) 84%, var(--xp-bg));
  --tint-rose: color-mix(in srgb, var(--xp-surface-2) 72%, var(--xp-surface));
}

[data-theme="dark"] {
  --xp-bg: #111314;
  --xp-surface: #191b1d;
  --xp-surface-2: #272a2d;
  --xp-ink: #f1f1ed;
  --xp-muted: #b0b3b6;
  --xp-line: rgba(241, 241, 237, 0.24);
  --xp-line-soft: rgba(241, 241, 237, 0.1);
  --xp-glow: rgba(255, 255, 255, 0.12);
  --xp-signal: #ff5b35;
  --accent-fg: #111314;
  --accent-contrast: #111314;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--xp-bg);
}

body {
  font-family: var(--xp-sans);
  color: var(--xp-ink);
  background:
    radial-gradient(circle at 50% -20%, var(--xp-glow), transparent 38%),
    var(--xp-bg);
  letter-spacing: -0.015em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.035) 4px
  );
  mix-blend-mode: multiply;
}

[data-theme="dark"] body::before {
  opacity: 0.16;
  mix-blend-mode: screen;
}

::selection {
  color: #fff;
  background: var(--xp-signal);
}

:focus-visible {
  outline: 2px solid var(--xp-signal) !important;
  outline-offset: 5px;
}

p {
  text-align: left;
  text-justify: auto;
  hyphens: none;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1600px;
  padding-inline: clamp(22px, 3.25vw, 52px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--xp-bg) 76%, transparent);
  border: 0;
  border-bottom: 1px solid var(--xp-line-soft);
  backdrop-filter: blur(18px) saturate(0);
  -webkit-backdrop-filter: blur(18px) saturate(0);
  transition: transform 420ms var(--xp-ease), background 240ms ease;
}

.home-page .site-header {
  color: #f4f4f0;
  background: linear-gradient(to bottom, rgba(25, 28, 31, 0.56), transparent);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: none;
}

.site-header.is-compact {
  background: color-mix(in srgb, var(--xp-bg) 90%, transparent);
  backdrop-filter: blur(22px) saturate(0);
}

.home-page .site-header.is-compact {
  background: rgba(20, 22, 24, 0.82);
  backdrop-filter: blur(18px) saturate(0);
}

.header-bar {
  height: var(--xp-header);
  gap: clamp(16px, 2.5vw, 40px);
}

.brand {
  color: var(--xp-signal);
  font-family: var(--xp-font);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.brand:hover,
.brand:focus-visible { color: #ff7a58; text-decoration: none; }

.site-nav {
  gap: clamp(5px, 0.7vw, 12px);
}

.site-nav a {
  position: relative;
  padding: 8px 4px;
  border-radius: 0;
  color: var(--xp-muted);
  font-family: var(--xp-font);
  font-size: clamp(0.75rem, 0.8vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent !important;
}

.home-page .site-nav a { color: rgba(255, 255, 255, 0.62); }

.site-nav a::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 2px;
  left: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--xp-ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--xp-ink);
  text-decoration: none;
}

.home-page .site-nav a:hover,
.home-page .site-nav a[aria-current="page"] { color: #fff; }

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions { gap: 8px; }

.accent-picker { display: none; }

.btn-icon,
.theme-toggle,
.nav-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--xp-ink);
  background: transparent;
  opacity: 0.72;
}

.home-page .btn-icon,
.home-page .theme-toggle,
.home-page .nav-toggle { color: #fff; }

.theme-toggle:hover,
.nav-toggle:hover {
  color: var(--xp-signal);
  border-color: currentColor;
  transform: rotate(8deg);
}

/* Home / immersive opening ------------------------------------- */
.home-page {
  background: #8f959f;
}

.hero--experience {
  position: relative;
  min-height: 182svh;
  padding: 0;
  overflow: visible;
  color: #f7f7f3;
  border: 0;
  background: #555b65;
}

.experience-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.4), transparent 23%),
    linear-gradient(180deg, #aeb3bc 0%, #7b828d 58%, #555b65 100%);
}

.experience-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 35%),
    radial-gradient(circle at 48% 75%, transparent, rgba(23, 27, 31, 0.28));
}

.experience-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 13, 16, 0.62) 0%, rgba(10, 13, 16, 0.27) 23%, transparent 42%),
    linear-gradient(270deg, rgba(10, 13, 16, 0.66) 0%, rgba(10, 13, 16, 0.3) 23%, transparent 42%),
    linear-gradient(0deg, rgba(10, 13, 16, 0.64) 0%, rgba(10, 13, 16, 0.18) 19%, transparent 36%);
  transition: opacity 520ms var(--xp-ease);
}

.experience-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(1) contrast(1.08);
  cursor: crosshair;
  touch-action: pan-y;
  transition: filter 520ms var(--xp-ease);
}


.experience-grain {
  position: absolute;
  inset: -40%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 40%, rgba(255,255,255,.26) 0 0.5px, transparent 0.8px),
    radial-gradient(circle at 70% 65%, rgba(0,0,0,.26) 0 0.5px, transparent 0.8px);
  background-size: 5px 5px, 7px 7px;
  animation: xp-grain 400ms steps(2) infinite;
  mix-blend-mode: soft-light;
}

@keyframes xp-grain {
  0% { transform: translate3d(-2%, -1%, 0); }
  50% { transform: translate3d(1%, 2%, 0); }
  100% { transform: translate3d(2%, -2%, 0); }
}

.neural-focus-trigger {
  position: absolute;
  top: clamp(84px, 11vh, 112px);
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.38);
  color: rgba(255,255,255,.82);
  background: rgba(20,24,28,.34);
  font-family: var(--xp-font);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: zoom-in;
  backdrop-filter: blur(9px) saturate(0);
  transform: translateX(-50%);
  transition: color 180ms ease, border-color 180ms ease, opacity 280ms ease, transform 420ms var(--xp-ease);
}

.neural-focus-trigger:hover,
.neural-focus-trigger:focus-visible {
  color: #fff;
  border-color: var(--xp-signal);
  transform: translateX(-50%) translateY(-3px);
}

.neural-focus-trigger__mobile { display: none; }

.neural-focus-hud {
  position: absolute;
  top: clamp(22px, 3vw, 46px);
  right: clamp(22px, 3vw, 46px);
  z-index: 6;
  display: grid;
  gap: 14px;
  width: min(390px, calc(100vw - 44px));
  padding: 18px 20px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.42);
  color: rgba(255,255,255,.82);
  background: linear-gradient(90deg, rgba(12,15,18,.88), rgba(12,15,18,.72));
  box-shadow: -28px 0 80px rgba(4,6,8,.2);
  font-family: var(--xp-font);
  font-size: .75rem;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(8px) saturate(0);
  transform: translateY(-18px);
  transition: opacity 280ms ease, transform 520ms cubic-bezier(.16, 1, .3, 1);
}

.neural-focus-hud__head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.neural-focus-hud .hud-label { margin: 0; color: var(--xp-signal); }

.neural-focus-hud__head button {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.46);
  color: #fff;
  background: transparent;
  font-family: inherit;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}

.neural-focus-hud__head button:hover,
.neural-focus-hud__head button:focus-visible { border-color: var(--xp-signal); }

.neural-focus-hud > strong {
  color: #fff;
  font-family: var(--xp-sans);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.neural-focus-hud p { margin: 0; color: rgba(255,255,255,.68); }

.neural-focus-hud label {
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,.76);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.neural-focus-hud label > span { display: flex; justify-content: space-between; }
.neural-focus-hud output { color: #fff; }
.neural-focus-hud input { width: 100%; accent-color: var(--xp-signal); cursor: ew-resize; }

.neural-focus-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.2);
}

.neural-focus-metrics > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-right: 1px solid rgba(255,255,255,.2);
}

.neural-focus-metrics > span:last-child { border-right: 0; }
.neural-focus-metrics small { color: rgba(255,255,255,.48); letter-spacing: .08em; text-transform: uppercase; }
.neural-focus-metrics strong { overflow: hidden; color: #fff; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.neural-focus-legend {
  display: grid;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.72);
  font-family: var(--xp-font);
  font-size: .69rem;
}

.neural-focus-legend .hud-label { margin: 0; color: var(--xp-signal); }

.neural-focus-legend__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.neural-focus-legend__items > button,
.neural-focus-legend__items > span {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 29px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}

.neural-focus-legend__items > button { cursor: pointer; }
.neural-focus-legend__items > button:hover,
.neural-focus-legend__items > button:focus-visible { color: #fff; }

.neural-focus-legend kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 6px;
  border: 1px solid rgba(255,255,255,.38);
  border-bottom-color: rgba(255,255,255,.62);
  color: #fff;
  background: rgba(255,255,255,.055);
  font: 700 .62rem/1 var(--xp-font);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.neural-focus-legend__items > button:hover kbd,
.neural-focus-legend__items > button:focus-visible kbd { border-color: var(--xp-signal); }

body.neural-focus-active { overflow: hidden; }
body.neural-focus-active .site-header { opacity: 0; pointer-events: none; transform: translateY(-100%); }

.experience-sticky.is-neural-focus,
.experience-sticky.is-neural-exiting {
  position: fixed;
  inset: 0;
  z-index: 120;
  height: 100svh;
}

.experience-sticky.is-neural-focus::after,
.experience-sticky.is-neural-exiting::after { opacity: .2; }
.experience-sticky.is-neural-focus .experience-canvas { cursor: zoom-out; touch-action: none; }
.experience-sticky.is-neural-focus .experience-grain,
.experience-sticky.is-neural-exiting .experience-grain { opacity: .12; animation-play-state: paused; }

.experience-sticky.is-neural-focus .neural-focus-trigger,
.experience-sticky.is-neural-exiting .neural-focus-trigger {
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-12px);
}

.experience-sticky.is-neural-focus .neural-focus-hud {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.experience-sticky.is-neural-focus .hero-experience__identity,
.experience-sticky.is-neural-focus .hero-experience__manifesto,
.experience-sticky.is-neural-focus .hero-experience__status,
.experience-sticky.is-neural-focus .hero-experience__audio,
.experience-sticky.is-neural-exiting .hero-experience__identity,
.experience-sticky.is-neural-exiting .hero-experience__manifesto,
.experience-sticky.is-neural-exiting .hero-experience__status,
.experience-sticky.is-neural-exiting .hero-experience__audio {
  pointer-events: none;
  opacity: 0;
}

.experience-sticky.is-neural-focus .experience-neural-controls {
  top: auto;
  bottom: clamp(22px, 3vw, 46px);
  left: 50%;
  grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(112px, 1fr));
  gap: 18px;
  align-items: center;
  width: min(760px, calc(100vw - 44px));
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.38);
  background: linear-gradient(180deg, rgba(12,15,18,.84), rgba(12,15,18,.68));
  box-shadow: 0 -24px 70px rgba(4,6,8,.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
  opacity: 1;
  transform: translateX(-50%);
}

.experience-sticky.is-neural-exiting .experience-neural-controls {
  top: auto;
  bottom: clamp(22px, 3vw, 46px);
  left: 50%;
  grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(112px, 1fr));
  gap: 18px;
  align-items: center;
  width: min(760px, calc(100vw - 44px));
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.38);
  background: linear-gradient(180deg, rgba(12,15,18,.84), rgba(12,15,18,.68));
  box-shadow: 0 -24px 70px rgba(4,6,8,.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
}

.experience-sticky.is-neural-focus .experience-neural-controls__head,
.experience-sticky.is-neural-exiting .experience-neural-controls__head {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hero-experience__identity,
.hero-experience__manifesto,
.hero-experience__status,
.hero-experience__audio,
.experience-core-nav,
.experience-core-readout,
.experience-neural-controls {
  position: absolute;
  z-index: 2;
  font-family: var(--xp-font);
  text-shadow: 0 1px 2px rgba(8, 10, 12, 0.9), 0 8px 28px rgba(8, 10, 12, 0.5);
  transition: opacity 320ms ease, transform 520ms var(--xp-ease);
}

.hero-experience__identity {
  top: clamp(104px, 14vh, 138px);
  left: clamp(24px, 4vw, 64px);
  display: grid;
  gap: 5px;
  max-width: 260px;
  color: #fff;
  font-size: clamp(0.75rem, 0.82vw, 0.84rem);
  letter-spacing: 0.02em;
}

.experience-wordmark {
  margin-bottom: 8px;
  font-family: var(--xp-sans);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.hero-experience__manifesto {
  top: clamp(108px, 14vh, 142px);
  right: clamp(24px, 4vw, 64px);
  width: min(32vw, 390px);
  text-align: right;
}

.hud-label {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-experience__manifesto h1 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--xp-font);
  font-size: clamp(1.15rem, 2.15vw, 2.15rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero-experience__manifesto p {
  margin: 0 0 24px auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  line-height: 1.42;
  text-align: right;
}

.experience-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.experience-links a {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,.7);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 180ms ease, transform 180ms ease;
}

.experience-links a:hover {
  border-color: var(--xp-signal);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-experience__status {
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(31px, 5vh, 54px);
  display: grid;
  gap: 5px;
  max-width: 300px;
  color: rgba(255,255,255,.9);
  font-size: clamp(0.75rem, 0.78vw, 0.8rem);
  text-align: right;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-experience__status .hud-label { margin-bottom: 5px; }

.hero-experience__status strong { color: #fff; font-weight: 700; }

.hero-experience__audio {
  bottom: clamp(32px, 5vh, 56px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,.86);
  background: none;
  font-size: 0.75rem;
  transform: translateX(-50%);
}

.hero-experience__audio .play-btn {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 0.55rem;
}

.experience-core-nav {
  top: 47%;
  left: clamp(24px, 4vw, 64px);
  display: grid;
  width: clamp(150px, 14vw, 200px);
  text-shadow: 0 1px 7px rgba(30,34,38,.34);
  transform: translateY(-50%);
}

.experience-core-nav .hud-label {
  margin-bottom: 7px;
}

.experience-core-nav button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.26);
  color: rgba(255,255,255,.68);
  background: transparent;
  font-family: var(--xp-font);
  font-size: clamp(.75rem, .78vw, .8rem);
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, padding 260ms var(--xp-ease), background 180ms ease;
}

.experience-core-nav button span { color: rgba(255,255,255,.42); }

.experience-core-nav button:hover,
.experience-core-nav button[aria-pressed="true"] {
  padding-left: 10px;
  color: #fff;
  background: rgba(255,255,255,.1);
}

.experience-core-nav button[aria-pressed="true"] span { color: var(--xp-signal); }

.experience-core-readout {
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(116px, 16vh, 160px);
  display: grid;
  gap: 5px;
  max-width: 300px;
  color: rgba(255,255,255,.65);
  font-size: clamp(.75rem, .78vw, .8rem);
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.experience-core-readout [data-core-status] {
  color: var(--xp-signal);
  letter-spacing: .09em;
}

.experience-core-readout strong {
  color: #fff;
  font-weight: 700;
}

.experience-neural-controls {
  top: 46%;
  left: clamp(24px, 4vw, 64px);
  display: grid;
  gap: 13px;
  width: clamp(190px, 17vw, 246px);
  padding: 13px 14px 14px;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(22,26,30,.54);
  box-shadow: 0 18px 50px rgba(8,10,12,.18);
  backdrop-filter: blur(12px) saturate(0);
  -webkit-backdrop-filter: blur(12px) saturate(0);
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 1px 2px rgba(8,10,12,.92);
  transform: translateY(-50%);
}

.experience-neural-controls__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.experience-neural-controls .hud-label { margin: 0; }

.experience-neural-controls button {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.42);
  color: #fff;
  background: transparent;
  font-family: var(--xp-font);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.experience-neural-controls button:hover {
  border-color: var(--xp-signal);
  text-decoration: none;
}

.experience-neural-controls label {
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,.88);
  font-family: var(--xp-font);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.experience-neural-controls label > span {
  display: flex;
  justify-content: space-between;
}

.experience-neural-controls output { color: #fff; }

.experience-neural-controls input[type="range"] {
  width: 100%;
  height: 14px;
  margin: 0;
  accent-color: var(--xp-signal);
  background: transparent;
  cursor: ew-resize;
}

.experience-fallback {
  position: absolute;
  inset: 44% 20% auto;
  z-index: 3;
  font-family: var(--xp-font);
  text-align: center;
}

/* Content beneath the experience ------------------------------- */
.identity-archive {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 7vw, 104px) 0;
  color: var(--xp-ink);
  background: var(--xp-surface);
  border-bottom: 1px solid var(--xp-line);
}

.identity-archive__grid {
  display: grid;
  grid-template-columns: minmax(220px, .58fr) minmax(0, 1.05fr) minmax(250px, .5fr);
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--xp-line);
  border-bottom: 1px solid var(--xp-line);
}

.identity-archive__portrait {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-right: 1px solid var(--xp-line);
}

.identity-archive__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter 700ms ease, transform 900ms var(--xp-ease);
}

.identity-archive__portrait:hover img {
  filter: grayscale(.2) contrast(1.02);
  transform: scale(1.025);
}

.identity-archive__intro,
.identity-archive__readout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 3.6vw, 56px);
}

.identity-archive__intro { border-right: 1px solid var(--xp-line); }

.identity-archive__intro h2 {
  max-width: 13ch;
  margin: 15px 0 30px;
  font-size: clamp(2.2rem, 4.7vw, 5.8rem);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.075em;
}

.identity-archive__intro p {
  max-width: 68ch;
  color: var(--xp-muted);
}

.identity-archive__readout .hud-label {
  color: var(--xp-muted);
}

.identity-archive__readout dl { margin: 0; }

.identity-archive__readout dl > div {
  padding: 16px 0;
  border-top: 1px solid var(--xp-line-soft);
}

.identity-archive__readout dt {
  margin-bottom: 6px;
  color: var(--xp-signal);
  font-family: var(--xp-font);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.identity-archive__readout dd {
  margin: 0;
  color: var(--xp-muted);
  font-size: .88rem;
  line-height: 1.45;
}

.identity-archive__readout .profile-icons {
  justify-content: flex-start;
  margin-top: 26px;
}

.identity-archive__readout .profile-icons a {
  border-color: var(--xp-line);
  border-radius: 50%;
  color: var(--xp-ink);
}

.home-page .about-section,
.home-page .updates-section {
  position: relative;
  color: var(--xp-ink);
  background: var(--xp-bg);
}

.home-page .about-section { padding: clamp(36px, 4.5vw, 64px) 0; }

.about-box-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--xp-line);
  border-left: 1px solid var(--xp-line);
}

.about-box-grid > * {
  min-width: 0;
  padding: clamp(24px, 2.2vw, 34px);
  border: 0;
  border-right: 1px solid var(--xp-line);
  border-bottom: 1px solid var(--xp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background 260ms ease;
}

.about-box-grid > *:hover {
  background: color-mix(in srgb, var(--xp-surface) 30%, transparent);
  transform: none;
}

.about-box-grid > :nth-child(1) { grid-column: 1 / -1; }
.about-box-grid > :nth-child(2) { grid-column: 1 / span 6; }
.about-box-grid > :nth-child(3) { grid-column: 7 / -1; }
.about-box-grid > :nth-child(4) { grid-column: 1 / span 8; }
.about-box-grid > :nth-child(5) { grid-column: 9 / -1; }

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  grid-template-rows: auto 1fr;
  gap: 0 clamp(32px, 4vw, 64px);
  align-items: start;
}

.about-story .card-label { grid-column: 1 / -1; }

.about-box-grid h2,
.principles-block h2 {
  font-family: var(--xp-sans);
  font-weight: 600;
  line-height: .93;
  letter-spacing: -0.065em;
}

.about-story h2 {
  grid-column: 1;
  grid-row: 2;
  max-width: 17ch;
  margin: 18px 0 0;
  font-size: clamp(2.5rem, 3.8vw, 4.25rem);
  line-height: .95;
}

.about-story__copy {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  align-self: start;
  gap: 14px;
  padding-top: 18px;
}

.about-story p {
  max-width: 64ch;
  margin: 0;
}

.card-label,
.section-label,
.qual-eyebrow,
.portfolio-hero__eyebrow,
.page-hero__eyebrow,
.service-focus__label,
.project-card__date,
.project-card__meta,
.meta,
.tag,
.pill {
  font-family: var(--xp-font) !important;
  font-size: 0.75rem !important;
  font-weight: 500;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.card-label::before,
.section-label::before,
.qual-eyebrow::before,
.portfolio-hero__eyebrow::before,
.page-hero__eyebrow::before {
  content: "// ";
  color: var(--xp-signal);
}

.about-box-grid p,
.about-box-grid li {
  color: color-mix(in srgb, var(--xp-ink) 82%, var(--xp-bg));
  font-size: clamp(.98rem, 1.02vw, 1.08rem);
  line-height: 1.68;
}

.about-box-grid strong { color: var(--xp-ink); }

.about-box-grid .about-card .card-label { margin-bottom: 24px; }
.about-box-grid .about-card p { max-width: 58ch; margin: 0; }
.about-box-grid .about-card p + p { margin-top: 16px; }

.principles-header {
  padding: 0 0 22px;
  border-bottom: 0;
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
  margin: 0;
  padding: 0;
}

.principles-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 12px;
  padding: 18px 0;
  border-top: 1px solid var(--xp-line-soft);
  border-bottom: 0;
}

.principle-n {
  min-width: 0;
  padding-top: 3px;
  color: var(--xp-signal);
  font-family: var(--xp-font);
  opacity: 1;
}

.hobbies-block .fact-list { gap: 13px; }
.hobbies-block .fact-list li { padding-left: 18px; }

.updates-section {
  padding: clamp(72px, 7vw, 108px) 0;
  border-top: 1px solid var(--xp-line);
  background: var(--xp-bg);
}

.updates-layout {
  display: grid;
  grid-template-columns: minmax(360px, .42fr) minmax(0, 1fr);
  gap: clamp(58px, 7vw, 110px);
  align-items: start;
}

.updates-intro {
  position: sticky;
  top: calc(var(--xp-header) + 42px);
  padding-right: clamp(0px, 2vw, 30px);
}

.updates-intro h2 {
  max-width: 100%;
  margin: 20px 0 28px;
  font-family: var(--xp-sans);
  font-size: clamp(3rem, 4.15vw, 4rem);
  font-weight: 620;
  line-height: .86;
  letter-spacing: -.072em;
  white-space: nowrap;
  text-transform: uppercase;
}

.updates-intro > p {
  max-width: 34ch;
  margin: 0;
  color: var(--xp-muted);
  font-size: clamp(.88rem, 1.05vw, 1.02rem);
  line-height: 1.58;
}

.updates-intro__meta {
  display: grid;
  gap: 8px;
  margin-top: 38px;
  padding-top: 14px;
  border-top: 1px solid var(--xp-line);
  color: var(--xp-muted);
  font-family: var(--xp-font);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.updates-timeline {
  position: relative;
  counter-reset: update-entry;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--xp-line);
}

.updates-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 59px;
  width: 1px;
  background: var(--xp-line-soft);
}

.timeline-update {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(118px, .22fr) minmax(0, 1fr);
  gap: clamp(18px, 3.2vw, 52px);
  min-height: 142px;
  padding: 31px 18px 32px 0;
  border-bottom: 1px solid var(--xp-line-soft);
  background: transparent;
  counter-increment: update-entry;
  transition: background 260ms ease;
}

.updates-timeline .timeline-update:last-child { padding-bottom: 32px; }

.timeline-update:hover {
  background: linear-gradient(90deg, transparent 60px, color-mix(in srgb, var(--xp-surface) 64%, transparent) 60px);
}

.timeline-update .timeline-update__point {
  position: relative;
  display: block;
  grid-column: auto;
  grid-row: auto;
  width: auto;
  height: auto;
  min-height: 20px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--xp-font);
}

.timeline-update__point::before {
  content: counter(update-entry, decimal-leading-zero);
  color: var(--xp-muted);
  font-size: .75rem;
  letter-spacing: .06em;
}

.timeline-update__point::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--xp-muted);
  border-radius: 50%;
  background: var(--xp-bg);
  box-shadow: 0 0 0 5px var(--xp-bg);
  transition: background 220ms ease, border-color 220ms ease, transform 260ms var(--xp-ease);
}

.timeline-update--major .timeline-update__point::after {
  border-color: var(--xp-signal);
  background: var(--xp-signal);
}

.timeline-update:hover .timeline-update__point::before { color: var(--xp-signal); }
.timeline-update:hover .timeline-update__point::after { border-color: var(--xp-signal); transform: scale(1.35); }

.timeline-update__date {
  grid-column: auto;
  padding-top: 1px;
  color: var(--xp-ink);
  font-family: var(--xp-font);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .055em;
  line-height: 1.4;
  text-transform: uppercase;
}

.timeline-update__date::after {
  content: "Archive entry";
  display: block;
  margin-top: 8px;
  color: var(--xp-muted);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .09em;
}

.timeline-update--major .timeline-update__date::after {
  content: "Milestone";
  color: var(--xp-signal);
}

.timeline-update__body {
  grid-column: auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  transition: transform 300ms var(--xp-ease);
}

.timeline-update:hover .timeline-update__body { transform: translateX(7px); }

.timeline-update__body h2 {
  max-width: 28ch;
  margin: 0;
  font-family: var(--xp-sans);
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.timeline-update__body h2 a::after {
  content: " ↗︎";
  color: var(--xp-signal);
  font-family: var(--xp-font);
  font-size: .52em;
  font-weight: 500;
  vertical-align: .3em;
}

.timeline-update__body h2 a:hover {
  color: var(--xp-ink);
  text-decoration: none;
}

.timeline-update__body p {
  max-width: 66ch;
  margin: 13px 0 0;
  color: var(--xp-muted);
  font-size: clamp(.94rem, 1vw, 1.02rem);
  line-height: 1.58;
}

/* Internal page opening ---------------------------------------- */
body:not(.home-page) { padding-top: var(--xp-header); }

.hero-section,
.hero-section--index,
.hero-section--portfolio {
  position: relative;
  min-height: min(700px, 70svh);
  padding: clamp(80px, 10vw, 150px) 0 52px;
  overflow: hidden;
  border-bottom: 1px solid var(--xp-line);
  background:
    linear-gradient(var(--xp-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--xp-line-soft) 1px, transparent 1px),
    radial-gradient(circle at 74% 48%, var(--xp-glow), transparent 24%),
    var(--xp-bg);
  background-size: 90px 90px, 90px 90px, auto, auto;
}

.hero-section::after {
  content: attr(data-page-code);
  position: absolute;
  right: clamp(20px, 3.2vw, 52px);
  bottom: 24px;
  color: var(--xp-muted);
  font-family: var(--xp-font);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.page-hero,
.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(50px, 9vw, 160px);
  align-items: end;
}

.page-hero__copy,
.portfolio-hero__copy { min-width: 0; }

.hero-page-title {
  max-width: 11ch;
  margin: 20px 0 30px;
  font-family: var(--xp-sans);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 650;
  line-height: 0.78;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.hero-page-lead {
  max-width: 720px;
  color: var(--xp-muted);
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  line-height: 1.45;
}

.page-snapshot,
.portfolio-snapshot,
.service-focus {
  align-self: end;
  padding: 0 0 8px clamp(20px, 3vw, 48px);
  border: 0;
  border-left: 1px solid var(--xp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.snapshot-metrics { border-color: var(--xp-line-soft); }
.snapshot-metric { border-color: var(--xp-line-soft); }
.snapshot-metric strong { font-family: var(--xp-font); font-size: clamp(1rem, 2vw, 2rem); }
.snapshot-metric span,
.snapshot-note,
.snapshot-focus span,
.snapshot-focus p { color: var(--xp-muted); }
.snapshot-metric span,
.snapshot-note,
.snapshot-focus span { font-size: .75rem; }
.snapshot-focus p { font-size: .92rem; line-height: 1.6; }
.snapshot-focus strong { font-size: clamp(1.2rem, 2vw, 2.1rem); line-height: 1.05; }

.page-toolbar,
.portfolio-toolbar {
  position: relative;
  z-index: 8;
  margin-top: clamp(48px, 8vw, 110px);
  padding: 12px 0 0;
  border-top: 1px solid var(--xp-line);
}

.local-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.local-nav a {
  padding: 15px 22px 15px 0;
  color: var(--xp-muted);
  font-family: var(--xp-font);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-nav a::before { content: "[ "; color: var(--xp-signal); }
.local-nav a::after { content: " ]"; color: var(--xp-signal); }
.local-nav a:hover { color: var(--xp-ink); text-decoration: none; }

.section { padding: clamp(74px, 9vw, 140px) 0; }

.btn,
.btn--ghost,
.btn--primary {
  min-height: 42px;
  padding: 12px 18px;
  border: 1px solid var(--xp-line);
  border-radius: 0;
  color: var(--xp-ink);
  background: transparent;
  font-family: var(--xp-font);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: none;
  transition: color 220ms ease, background 220ms ease, transform 220ms var(--xp-ease);
}

.btn:hover,
.btn--ghost:hover,
.btn--primary:hover {
  color: var(--xp-bg);
  background: var(--xp-ink);
  border-color: var(--xp-ink);
  text-decoration: none;
  transform: translateY(-3px);
}

/* Portfolio / project observatory ------------------------------ */
.hero-section--portfolio { min-height: min(760px, 76svh); }

.portfolio-snapshot { display: grid; gap: 28px; }

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

.control-field { border-right: 1px solid var(--xp-line-soft); }
.control-field span { font-family: var(--xp-font); font-size: 0.75rem; text-transform: uppercase; }

.project-view-control { border-right: 0; }

.project-view-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 36px;
  border-bottom: 1px solid var(--xp-line);
}

.project-view-button {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 0;
  border-right: 1px solid var(--xp-line-soft);
  color: var(--xp-muted);
  background: transparent;
  font-family: var(--xp-font);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.project-view-button:last-child { border-right: 0; }

.project-view-button:hover,
.project-view-button:focus-visible {
  color: var(--xp-ink);
  background: var(--xp-surface);
}

.project-view-button:focus-visible {
  outline: 1px solid var(--xp-signal);
  outline-offset: -1px;
}

.project-view-button[aria-pressed="true"] {
  color: var(--xp-bg);
  background: var(--xp-ink);
}

.project-view-button[aria-pressed="true"] span { color: inherit; }

.control-field select,
.project-controls select,
.form-select,
.form-control,
.contact-form input,
.contact-form textarea {
  border: 0;
  border-bottom: 1px solid var(--xp-line);
  border-radius: 0;
  color: var(--xp-ink);
  background: transparent;
  font-family: var(--xp-font);
  box-shadow: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--xp-line);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  min-height: 470px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--xp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background 450ms ease;
}

.project-card:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); }
.project-card:nth-child(even) .project-card__img { order: 2; }
.project-card:nth-child(even) .project-card__body { order: 1; }

.project-card::before {
  content: attr(data-type) " / " attr(data-complexity);
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 7px 9px;
  color: #fff;
  background: rgba(12,13,14,.68);
  font-family: var(--xp-font);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.project-card:nth-child(even)::before { right: 18px; left: auto; }

.project-card:hover { background: color-mix(in srgb, var(--xp-surface) 50%, transparent); }

.project-card__img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  border: 0;
  padding: clamp(16px, 2.4vw, 34px);
  object-fit: contain;
  object-position: center;
  background: color-mix(in srgb, var(--xp-surface) 76%, transparent);
  filter: grayscale(1) contrast(1.08) brightness(0.88);
  transition: filter 700ms ease;
}

.project-card__img[data-fit="cover"] {
  padding: 0;
  object-fit: cover;
}

.project-card:hover .project-card__img,
.project-card:focus-within .project-card__img {
  filter: grayscale(0.35) contrast(1.04) brightness(0.98);
}

.project-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 94px);
  border-left: 1px solid var(--xp-line-soft);
}

.project-card:nth-child(even) .project-card__body {
  border-right: 1px solid var(--xp-line-soft);
  border-left: 0;
}

.project-card__head { gap: 20px; }

.project-card__title {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2rem, 4.25vw, 5.2rem);
  font-weight: 580;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.project-card__meta { margin: 20px 0; color: var(--xp-muted); }
.project-card__links { order: 4; }
.icon-btn { border-radius: 50%; border-color: var(--xp-line); color: var(--xp-ink); }
.icon-btn:hover { color: var(--xp-bg); background: var(--xp-ink); }

.pills,
.tag-list { gap: 7px; }

.pill,
.tag {
  padding: 6px 8px;
  border: 1px solid var(--xp-line-soft);
  border-radius: 0;
  color: var(--xp-muted);
  background: transparent;
}

.project-details {
  margin-top: 28px;
  border-top: 1px solid var(--xp-line-soft);
}

.project-details summary {
  padding: 14px 0;
  color: var(--xp-ink);
  font-family: var(--xp-font);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-details summary::after { content: " +"; color: var(--xp-signal); }
.project-details[open] summary::after { content: " −"; }
.project-details__body { padding-bottom: 12px; color: var(--xp-muted); }

.projects-grid[data-view="grid"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--xp-line);
}

.projects-grid[data-view="grid"] .project-card,
.projects-grid[data-view="grid"] .project-card:nth-child(even) {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-right: 1px solid var(--xp-line);
}

.projects-grid[data-view="grid"] .project-card::before,
.projects-grid[data-view="grid"] .project-card:nth-child(even)::before {
  right: auto;
  left: 18px;
}

.projects-grid[data-view="grid"] .project-card__img,
.projects-grid[data-view="grid"] .project-card:nth-child(even) .project-card__img {
  order: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.projects-grid[data-view="grid"] .project-card__body,
.projects-grid[data-view="grid"] .project-card:nth-child(even) .project-card__body {
  order: 1;
  flex: 1;
  justify-content: flex-start;
  padding: clamp(30px, 3.4vw, 54px);
  border-top: 1px solid var(--xp-line-soft);
  border-right: 0;
  border-left: 0;
}

.projects-grid[data-view="grid"] .project-card__title {
  max-width: 22ch;
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  line-height: 1;
}

.project-card p,
.project-details__body p,
.timeline-item li,
.tl-body li,
.pub-expand__body p,
.pub-expand__body li {
  font-size: clamp(.9rem, .96vw, .98rem);
  line-height: 1.65;
}

.xp-overview,
.course-list span { font-size: .9rem; }

.xp-sub,
.tl-meta,
.course-list strong,
.pub-expand > summary { font-size: .75rem; }

/* Background / research log ------------------------------------ */
.background-page .page-toolbar {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 0;
  border: 1px solid var(--xp-line);
}

.background-page .local-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.background-page .local-nav a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  border-right: 1px solid var(--xp-line);
  color: var(--xp-ink);
  font-size: clamp(.78rem, .9vw, .9rem);
  font-weight: 650;
  letter-spacing: .02em;
  transition: color 180ms ease, background 180ms ease;
}

.background-page .local-nav a:last-child { border-right: 0; }

.background-page .local-nav a::before {
  content: attr(data-index);
  color: var(--xp-signal);
  font-size: .75rem;
  letter-spacing: .08em;
}

.background-page .local-nav a::after {
  content: "↘︎";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: var(--xp-muted);
  font-size: .75rem;
}

.background-page .local-nav a:hover,
.background-page .local-nav a:focus-visible {
  color: var(--xp-ink);
  background: var(--xp-surface);
}

.qual-main {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--xp-line);
}

.qual-section {
  border: 0;
  border-top: 1px solid var(--xp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.qual-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  min-height: 138px;
  padding: clamp(28px, 3vw, 44px) 0;
  transition: background 220ms ease, padding 220ms ease;
}

.qual-summary::before {
  content: attr(data-index);
  align-self: start;
  padding-top: 5px;
  color: var(--xp-signal);
  font-family: var(--xp-font);
  font-size: .75rem;
  letter-spacing: .08em;
}

.qual-summary::after {
  content: "Open +";
  min-width: 76px;
  color: var(--xp-muted);
  font-family: var(--xp-font);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: right;
  text-transform: uppercase;
}

.qual-section[open] > .qual-summary::after {
  content: "Close ×";
  color: var(--xp-signal);
}

.qual-summary:hover {
  padding-inline: 16px;
  background: color-mix(in srgb, var(--xp-surface) 58%, transparent);
}

.qual-head {
  display: grid;
  grid-template-columns: minmax(130px, .22fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.qual-head .qual-eyebrow {
  margin: 0;
  color: var(--xp-muted);
  font-size: .75rem !important;
}

.qual-summary h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 5.4rem);
  line-height: .88;
  letter-spacing: -.068em;
}

.qual-body { padding: 0 0 clamp(56px, 8vw, 110px); }

.timeline {
  border-top: 1px solid var(--xp-line-soft);
  counter-reset: experience-entry;
}

.timeline-item {
  position: relative;
  isolation: isolate;
  counter-increment: experience-entry;
  border: 0;
  border-bottom: 1px solid var(--xp-line-soft);
  border-radius: 0;
  background: transparent;
}

.timeline-item:hover,
.timeline-item[open] {
  background: transparent;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      color-mix(in oklab, var(--xp-signal) 6%, transparent),
      transparent 55%
    ),
    var(--xp-surface);
  opacity: 0;
  transition: opacity 260ms var(--xp-ease);
}

.timeline-item:hover::before {
  opacity: 1;
}

.timeline-item > summary,
.timeline-item > .timeline-detail {
  position: relative;
  z-index: 1;
}

.timeline-item[open] > summary {
  border-bottom: 1px solid var(--xp-line-soft);
}

.timeline-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 30px;
  align-items: center;
  min-height: 148px;
  padding: 30px 0;
}

.timeline-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--xp-line);
  border-radius: 50%;
  color: var(--xp-ink);
  font-family: var(--xp-font);
  font-size: 1rem;
  transition: color 180ms ease, border-color 180ms ease, transform 220ms var(--xp-ease);
}

.timeline-item[open] summary::after {
  content: "×";
  color: var(--xp-signal);
  border-color: var(--xp-signal);
  transform: rotate(90deg);
}

.timeline-item summary:hover::after {
  color: var(--xp-signal);
  border-color: var(--xp-signal);
}

.xp-summary {
  display: grid;
  grid-template-columns: 52px minmax(190px, .35fr) minmax(300px, .8fr) minmax(210px, .5fr);
  gap: 32px;
  align-items: center;
  width: 100%;
}

.xp-summary::before {
  content: counter(experience-entry, decimal-leading-zero);
  grid-column: 1;
  color: var(--xp-signal);
  font-family: var(--xp-font);
  font-size: .75rem;
  letter-spacing: .08em;
}

.xp-company {
  grid-column: 2;
  margin: 0;
  font-size: .78rem;
  line-height: 1.45;
}

.timeline-item summary::marker { color: var(--xp-signal); }
.timeline-item h3 {
  grid-column: 3;
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.3rem, 2.05vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.xp-sub {
  grid-column: 4;
  margin: 0;
  font-size: .78rem;
  line-height: 1.55;
}
.timeline-detail {
  display: grid;
  grid-template-columns: 52px minmax(190px, .35fr) minmax(300px, .8fr) minmax(210px, .5fr) 50px;
  column-gap: 32px;
  margin: 0;
  padding: 32px 0 46px;
  color: var(--xp-muted);
}
.timeline-detail > * { grid-column: 3 / 5; }
.timeline-detail > .course-list { padding: 0; }
.timeline-detail > .pills { margin-top: 0; }

.timeline-detail a {
  color: var(--xp-ink);
  text-decoration: underline;
  text-decoration-color: var(--xp-signal);
  text-underline-offset: 4px;
}

/* Service field notes ------------------------------------------ */
.service-focus h2 { font-size: clamp(1.7rem, 3vw, 3.5rem); letter-spacing: -0.055em; }
.service-focus p { color: var(--xp-muted); }
.service-focus__list span { font-family: var(--xp-font); font-size: .75rem; text-transform: uppercase; }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--xp-line);
}

.service-card {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) 1.1fr;
  min-height: 420px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--xp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.service-card:nth-child(even) { grid-template-columns: 1.1fr minmax(340px, .9fr); }
.service-card:nth-child(even) > :first-child { order: 2; }
.service-card:nth-child(even) .service-card-body { order: 1; }

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 600ms ease, transform 800ms var(--xp-ease);
}

.service-card:hover img { filter: grayscale(.25); transform: scale(1.025); }

.service-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 100px);
  border-left: 1px solid var(--xp-line-soft);
}

.service-card-body h3 { font-size: clamp(2rem, 4.2vw, 5.4rem); line-height: .95; letter-spacing: -.07em; }
.service-card-body p { color: var(--xp-muted); font-size: clamp(.95rem, 1.15vw, 1.15rem); }
.service-link { align-self: flex-start; padding-bottom: 5px; border-bottom: 1px solid var(--xp-line); font-family: var(--xp-font); font-size: .75rem; text-transform: uppercase; }

/* Contact terminal --------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 0;
  border-top: 1px solid var(--xp-line);
}

.contact-panel,
.contact-card {
  padding: clamp(34px, 5vw, 74px);
  border: 0;
  border-right: 1px solid var(--xp-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-card { border-right: 0; }
.contact-panel h2,
.contact-card h2 { font-size: clamp(2.1rem, 4vw, 5rem); line-height: .92; letter-spacing: -.07em; }
.contact-panel > p { color: var(--xp-muted); }

.contact-method {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--xp-line-soft);
}

.contact-method span,
.contact-form label { font-family: var(--xp-font); font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; }
.contact-method a { overflow-wrap: anywhere; }

.contact-form { gap: 22px; }
.contact-form input,
.contact-form textarea { padding: 13px 0; }
.contact-form textarea { min-height: 140px; }

/* Shared footer and utilities ---------------------------------- */
.site-footer {
  padding: 0;
  border-top: 1px solid var(--xp-line);
  color: var(--xp-ink);
  background: var(--xp-bg);
}

.footer-bar {
  min-height: 110px;
  font-family: var(--xp-font);
  font-size: .75rem;
  text-transform: uppercase;
}

.footer-contact { color: var(--xp-ink); }
.footer-copy,
.footer-contact,
.tooltip-text,
.focus-pill,
.context-strip,
.principle-n,
.xp-focus span { font-size: .75rem; }
.footer-links a { color: var(--xp-muted); }
.footer-links a:hover { color: var(--xp-signal); }
.footer-links img { filter: grayscale(1); }
.footer-links .tooltip:last-child .tooltip-text {
  right: 0;
  left: auto;
  transform: none;
}

#backToTop {
  top: auto;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--xp-line);
  border-radius: 50%;
  color: var(--xp-ink);
  background: color-mix(in srgb, var(--xp-bg) 80%, transparent);
  transform: none;
  backdrop-filter: blur(10px);
}

#backToTop:hover { color: var(--xp-bg); background: var(--xp-ink); transform: translateY(-3px); }

.xp-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 720ms ease, transform 900ms var(--xp-ease);
}

.xp-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.xp-index {
  display: inline-block;
  min-width: 34px;
  margin-right: 14px;
  color: var(--xp-signal);
  font-family: var(--xp-font);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  vertical-align: top;
}

.xp-cursor {
  position: fixed;
  z-index: 9999;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: var(--xp-signal);
  transform: translate(-50%, -50%);
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
  mix-blend-mode: difference;
}

.xp-cursor.is-active { opacity: .9; }
.xp-cursor.is-link { width: 26px; height: 26px; }

/* Responsive ---------------------------------------------------- */
@media (max-width: 1020px) {
  .site-nav { gap: 3px; }
  .site-nav a { font-size: .75rem; }
  .background-page .local-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .background-page .local-nav a:nth-child(3) { border-right: 0; }
  .background-page .local-nav a:nth-child(n + 4) { border-top: 1px solid var(--xp-line); }
  .hero-experience__manifesto { width: min(38vw, 360px); }
  .updates-layout { grid-template-columns: 1fr; gap: 58px; }
  .updates-intro { position: static; max-width: 720px; padding-right: 0; }
  .updates-intro > p { max-width: 52ch; }
  .timeline-update { grid-template-columns: 66px minmax(104px, .2fr) minmax(0, 1fr); gap: 20px; }
  .updates-timeline::before { left: 53px; }
  .project-card,
  .project-card:nth-child(even),
  .service-card,
  .service-card:nth-child(even) { grid-template-columns: 1fr 1fr; }
  .project-card__title { font-size: clamp(2rem, 4.6vw, 4rem); }
  .projects-grid[data-view="grid"] { grid-template-columns: 1fr; }
  .xp-summary {
    grid-template-columns: 44px minmax(150px, .42fr) minmax(0, 1fr);
    gap: 10px 24px;
  }
  .xp-summary::before { grid-column: 1; grid-row: 1 / span 2; }
  .xp-company { grid-column: 2; grid-row: 1 / span 2; }
  .timeline-item h3 { grid-column: 3; grid-row: 1; }
  .xp-sub { grid-column: 3; grid-row: 2; }
  .timeline-detail {
    grid-template-columns: 44px minmax(150px, .42fr) minmax(0, 1fr) 58px;
    column-gap: 24px;
  }
  .timeline-detail > * { grid-column: 3; }
  .about-box-grid > :nth-child(1) { grid-column: 1 / -1; }
  .about-box-grid > :nth-child(2),
  .about-box-grid > :nth-child(4) { grid-column: 1 / span 6; }
  .about-box-grid > :nth-child(3),
  .about-box-grid > :nth-child(5) { grid-column: 7 / -1; }
  .principles-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --xp-header: 64px; }

  .theme-toggle,
  .nav-toggle {
    width: 42px;
    height: 42px;
    border-color: rgba(255,255,255,.34);
  }

  .experience-sticky::after {
    background:
      linear-gradient(180deg, rgba(9,12,15,.78) 0%, rgba(9,12,15,.54) 34%, rgba(9,12,15,.12) 58%, transparent 72%),
      linear-gradient(0deg, rgba(9,12,15,.72) 0%, rgba(9,12,15,.2) 31%, transparent 48%);
  }

  .site-header .container { padding-inline: 17px; }
  .header-bar { height: var(--xp-header); }
  .brand { font-size: .75rem; }
  .nav-toggle { display: inline-flex; order: 3; }

  .site-nav {
    top: var(--xp-header);
    left: 0;
    right: 0;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--xp-line);
    color: var(--xp-ink);
    background: color-mix(in srgb, var(--xp-bg) 95%, transparent);
    backdrop-filter: blur(18px);
  }

  .home-page .site-nav { color: #f4f4f1; background: rgba(20,22,24,.94); }
  .site-nav a,
  .home-page .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 0;
    color: inherit;
    font-size: .78rem;
  }

  .btn,
  .local-nav a,
  .project-view-button,
  .project-controls select {
    min-height: 44px;
    touch-action: manipulation;
  }

  .hero--experience { min-height: 1180px; }
  .experience-sticky { height: 880px; max-height: 100svh; }
  .hero-experience__identity {
    top: 92px;
    left: 20px;
    gap: 4px;
    font-size: .7rem;
  }
  .experience-wordmark {
    margin-bottom: 7px;
    font-size: 2.15rem;
  }
  .hero-experience__manifesto {
    top: 238px;
    right: 20px;
    left: 20px;
    width: auto;
    text-align: left;
  }
  .hero-experience__manifesto .hud-label {
    margin-bottom: 10px;
    font-size: .62rem;
  }
  .hero-experience__manifesto h1 {
    max-width: none;
    margin-bottom: 14px;
    font-size: clamp(1.65rem, 7.2vw, 1.95rem);
    line-height: .98;
  }
  .hero-experience__manifesto p {
    max-width: 39ch;
    margin: 0 0 18px;
    color: rgba(255,255,255,.88);
    font-size: .76rem;
    line-height: 1.46;
    text-align: left;
  }
  .experience-links {
    gap: 12px 16px;
    justify-content: flex-start;
  }
  .experience-links a {
    padding-bottom: 4px;
    font-size: .68rem;
  }
  .hero-experience__status { right: 22px; bottom: 30px; }
  .experience-core-nav {
    top: auto;
    right: 22px;
    bottom: 172px;
    left: 22px;
    display: flex;
    width: auto;
    transform: none;
  }
  .experience-core-nav .hud-label { display: none; }
  .experience-core-nav button {
    flex: 1;
    display: block;
    padding: 10px 5px;
    border-right: 1px solid rgba(255,255,255,.22);
    text-align: center;
  }
  .experience-core-nav button span { display: none; }
  .experience-core-nav button:hover,
  .experience-core-nav button[aria-pressed="true"] { padding-left: 5px; }
  .experience-core-readout {
    right: 22px;
    bottom: 218px;
    left: 22px;
    max-width: none;
    text-align: left;
  }
  .experience-neural-controls {
    top: auto;
    right: 22px;
    bottom: 110px;
    left: 22px;
    width: auto;
    transform: none;
  }
  .neural-focus-trigger {
    top: 184px;
    right: 20px;
    left: auto;
    min-height: 38px;
    gap: 7px;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.55);
    background: transparent;
    font-size: .58rem;
    backdrop-filter: none;
    touch-action: manipulation;
    transform: none;
  }
  .neural-focus-trigger__desktop { display: none; }
  .neural-focus-trigger__mobile { display: inline; }
  .neural-focus-trigger:hover,
  .neural-focus-trigger:focus-visible { transform: translateY(-3px); }
  .experience-sticky.is-neural-focus .neural-focus-trigger,
  .experience-sticky.is-neural-exiting .neural-focus-trigger { transform: translateY(-12px); }
  .neural-focus-hud {
    top: 10px;
    right: 10px;
    left: 10px;
    gap: 9px;
    width: auto;
    padding: 12px 14px;
    border-left: 2px solid var(--xp-signal);
    background: linear-gradient(110deg, rgba(12,15,18,.94), rgba(12,15,18,.82));
  }
  .neural-focus-hud .hud-label { font-size: .58rem; }
  .neural-focus-hud > strong { font-size: 1.05rem; }
  .neural-focus-hud p { display: none; }
  .neural-focus-hud label { gap: 4px; font-size: .58rem; }
  .neural-focus-hud__head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 38px;
    font-size: .62rem;
    touch-action: manipulation;
  }
  .neural-focus-metrics > span { gap: 2px; padding: 7px 8px; }
  .neural-focus-metrics small { font-size: .52rem; }
  .neural-focus-metrics strong { font-size: .7rem; }
  .neural-focus-legend { display: none; }
  .experience-sticky.is-neural-focus .experience-neural-controls {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: auto;
    padding: 9px 12px 11px;
    border-top: 2px solid var(--xp-signal);
    background: linear-gradient(180deg, rgba(12,15,18,.9), rgba(12,15,18,.78));
    transform: none;
  }
  .experience-sticky.is-neural-exiting .experience-neural-controls {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: auto;
    transform: translateY(8px);
  }
  .experience-sticky.is-neural-focus .experience-neural-controls__head,
  .experience-sticky.is-neural-exiting .experience-neural-controls__head {
    grid-column: 1 / -1;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
  .experience-sticky.is-neural-focus .experience-neural-controls button {
    min-height: 36px;
    touch-action: manipulation;
  }
  .experience-sticky.is-neural-focus .experience-neural-controls .hud-label { font-size: .56rem; }
  .experience-sticky.is-neural-focus .experience-neural-controls button { font-size: .62rem; }
  .experience-sticky.is-neural-focus .experience-neural-controls label {
    gap: 3px;
    font-size: .56rem;
  }
  .experience-sticky.is-neural-focus .experience-neural-controls input[type="range"] { height: 12px; }
  .hero-experience__status { display: none; }
  .hero-experience__audio.music-pill {
    right: auto;
    bottom: 24px;
    left: 20px;
    width: auto;
    max-width: calc(100vw - 44px);
    transform: none;
  }
  .hero-experience__audio .play-btn {
    width: 40px;
    height: 40px;
    touch-action: manipulation;
  }

  .page-hero,
  .portfolio-hero { grid-template-columns: 1fr; gap: 54px; }
  .hero-section,
  .hero-section--index,
  .hero-section--portfolio { min-height: auto; padding-top: 82px; background-size: 60px 60px; }
  .hero-page-title { font-size: clamp(3.5rem, 18vw, 7rem); }
  .page-snapshot,
  .portfolio-snapshot,
  .service-focus { padding-left: 20px; }

  .background-page .local-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .background-page .local-nav a,
  .background-page .local-nav a:nth-child(3) { border-right: 1px solid var(--xp-line); }
  .background-page .local-nav a:nth-child(even) { border-right: 0; }
  .background-page .local-nav a:nth-child(n + 3) { border-top: 1px solid var(--xp-line); }
  .background-page .local-nav a { min-height: 68px; padding: 15px 16px; }

  .qual-summary {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 16px;
    min-height: 112px;
  }
  .qual-head { display: block; }
  .qual-head .qual-eyebrow { display: block; margin-bottom: 11px; }
  .qual-summary h2 { font-size: clamp(2.4rem, 12vw, 4.4rem); }
  .qual-summary::after { min-width: 0; font-size: 0; }
  .qual-summary::after { content: "+"; font-size: 1rem; }
  .qual-section[open] > .qual-summary::after { content: "×"; }

  .about-box-grid > :nth-child(n) { grid-column: 1 / -1; }
  .about-box-grid > * { border-right: 0; padding-inline: 0; }
  .about-box-grid { border-left: 0; }
  .about-story { display: block; }
  .about-story h2 { max-width: 16ch; margin-top: 20px; }
  .about-story__copy { display: grid; gap: 14px; padding-top: 22px; }
  .about-story p { max-width: 58ch; }

  .identity-archive__grid { grid-template-columns: 1fr; }
  .identity-archive__portrait { min-height: 380px; border-right: 0; border-bottom: 1px solid var(--xp-line); }
  .identity-archive__intro,
  .identity-archive__readout { padding: 42px 0; border-right: 0; }
  .identity-archive__intro { border-bottom: 1px solid var(--xp-line); }

  .updates-layout { grid-template-columns: 1fr; gap: 54px; }
  .updates-intro { position: static; padding-right: 0; }
  .updates-intro h2 { max-width: none; font-size: clamp(2.65rem, 12vw, 3.6rem); white-space: normal; }
  .updates-intro > p { max-width: 52ch; }
  .updates-intro__meta { display: flex; justify-content: space-between; gap: 24px; }
  .updates-timeline::before { left: 39px; }
  .timeline-update {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 5px 18px;
    min-height: 0;
    padding: 25px 0 27px;
  }
  .updates-timeline .timeline-update:last-child { padding-bottom: 27px; }
  .timeline-update:hover {
    background: linear-gradient(90deg, transparent 40px, color-mix(in srgb, var(--xp-surface) 64%, transparent) 40px);
  }
  .timeline-update .timeline-update__point { grid-column: 1; grid-row: 1 / span 2; }
  .timeline-update__point::after { right: 8px; }
  .timeline-update__date { grid-column: 2; }
  .timeline-update__date::after { display: inline; margin: 0 0 0 10px; }
  .timeline-update__body { grid-column: 2; }
  .timeline-update:hover .timeline-update__body { transform: translateX(4px); }

  .project-controls { grid-template-columns: 1fr; }
  .project-card,
  .project-card:nth-child(even),
  .service-card,
  .service-card:nth-child(even) { grid-template-columns: 1fr; min-height: auto; }
  .project-card:nth-child(even) .project-card__img,
  .project-card:nth-child(even) .project-card__body,
  .service-card:nth-child(even) > :first-child,
  .service-card:nth-child(even) .service-card-body { order: initial; }
  .project-card:nth-child(even)::before { right: auto; left: 18px; }
  .project-card__img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .project-card__body,
  .project-card:nth-child(even) .project-card__body,
  .service-card-body { padding: 38px 0 58px; border: 0; }
  .project-card__title { font-size: clamp(2rem, 10vw, 4.2rem); }
  .service-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .timeline-item summary {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 16px;
    min-height: 0;
    padding: 24px 0;
  }
  .timeline-item summary::after { width: 36px; height: 36px; }
  .xp-summary {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 16px;
  }
  .xp-summary::before { grid-column: 1; grid-row: 1 / span 3; align-self: start; padding-top: 4px; }
  .xp-company { grid-column: 2; grid-row: 1; }
  .timeline-item h3 { grid-column: 2; grid-row: 2; max-width: 22ch; font-size: clamp(1.3rem, 6vw, 1.75rem); }
  .xp-sub { grid-column: 2; grid-row: 3; }
  .timeline-detail {
    grid-template-columns: 36px minmax(0, 1fr) 40px;
    column-gap: 16px;
    padding: 24px 0 36px;
  }
  .timeline-detail > * { grid-column: 2; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-panel,
  .contact-card { padding-inline: 0; border-right: 0; border-bottom: 1px solid var(--xp-line); }

  .xp-cursor { display: none; }
}

@media (max-width: 470px) {
  .header-actions { margin-left: auto; }
  .hero-experience__status { max-width: 190px; font-size: .56rem; }
  .hero-experience__audio span { display: none; }
  .updates-intro__meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .timeline-update__body h2 { font-size: 1.12rem; }
  .hero-page-title {
    max-width: 100%;
    font-size: clamp(2.65rem, 11.5vw, 3.65rem);
    line-height: .88;
    overflow-wrap: normal;
  }
  .contact-method { grid-template-columns: 1fr; gap: 5px; }
  .footer-bar { align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .experience-grain { animation: none; }
  .xp-reveal { opacity: 1; transform: none; transition: none; }
  .neural-focus-trigger,
  .neural-focus-hud,
  .experience-sticky::after,
  .project-card__img,
  .service-card img,
  .site-header,
  .btn,
  .xp-cursor { transition: none !important; }
}

@media (pointer: coarse) {
  .xp-cursor { display: none; }
}
