:root {
  --bg: #ede8df;
  --bg-deep: #d9d2c8;
  --surface: rgba(255, 255, 255, 0.18);
  --surface-strong: rgba(255, 255, 255, 0.28);
  --surface-soft: rgba(255, 255, 255, 0.1);
  --surface-dark: rgba(18, 22, 28, 0.3);
  --line: rgba(33, 29, 22, 0.12);
  --line-soft: rgba(33, 29, 22, 0.08);
  --line-bright: rgba(255, 255, 255, 0.42);
  --text: #14110d;
  --muted: #58534b;
  --muted-soft: #888176;
  --shadow-lg: 0 38px 100px rgba(23, 18, 12, 0.08);
  --shadow-md: 0 24px 68px rgba(23, 18, 12, 0.06);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1380px;
  --header-height: 70px;
  --pointer-x: 0;
  --pointer-y: 0;
  --hero-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "SF Pro Display", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.88), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(194, 202, 214, 0.4), transparent 20%),
    radial-gradient(circle at 62% 82%, rgba(222, 209, 186, 0.42), transparent 22%),
    linear-gradient(180deg, #f7f4ef 0%, #ede8df 44%, #e4ddd2 100%);
  overflow-x: clip;
  opacity: 0;
  transition: opacity 760ms ease;
}

body.is-ready {
  opacity: 1;
}

body.is-lightbox-open {
  overflow: hidden;
}

body::selection {
  color: #0c0906;
  background: rgba(129, 140, 153, 0.24);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  padding: 0;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: clip;
}

.ambient-glow,
.ambient-grid,
.ambient-grain {
  position: absolute;
  inset: 0;
}

.ambient-glow {
  opacity: 0.68;
  filter: blur(88px);
  transform: translate3d(
    calc(var(--pointer-x) * var(--depth, 0.08) * 52px),
    calc(var(--pointer-y) * var(--depth, 0.08) * 52px),
    0
  );
  transition: transform 460ms ease-out;
}

.glow-a {
  --depth: 0.4;
  top: -16%;
  left: -10%;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.94), transparent 66%);
}

.glow-b {
  --depth: 0.72;
  right: -14%;
  top: 10%;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 181, 192, 0.54), transparent 70%);
}

.ambient-grid {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(20, 18, 14, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 18, 14, 0.03) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35), transparent);
}

.ambient-grain {
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 24% 24%, rgba(20, 18, 14, 0.24) 0.55px, transparent 0.8px),
    radial-gradient(circle at 72% 72%, rgba(20, 18, 14, 0.14) 0.55px, transparent 0.9px);
  background-size: 20px 20px, 28px 28px;
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 160px;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)),
    var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(26px) saturate(118%);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 34%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent);
  pointer-events: none;
}

.paper-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 18, 14, 0.07);
  background:
    linear-gradient(180deg, rgba(251, 249, 244, 0.92), rgba(243, 238, 231, 0.76)),
    rgba(255, 255, 255, 0.56);
  box-shadow: 0 24px 60px rgba(23, 18, 12, 0.055);
  backdrop-filter: blur(10px) saturate(108%);
}

.paper-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent);
  pointer-events: none;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -18% auto;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: var(--header-height);
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 18px 12px 22px;
  border-radius: 999px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.site-header.is-scrolled {
  transform: translateY(-1px);
  box-shadow: 0 26px 70px rgba(23, 18, 12, 0.1);
}

.wordmark {
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(20, 17, 13, 0.72);
  font-size: 0.88rem;
  font-weight: 470;
  letter-spacing: -0.015em;
  transition:
    color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.site-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.24);
}

.header-note {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.71rem;
  font-weight: 540;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

main {
  position: relative;
}

section {
  position: relative;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1.08fr);
  gap: clamp(2.6rem, 5vw, 6.2rem);
  align-items: center;
  min-height: min(940px, 94svh);
  padding-top: clamp(5.2rem, 7vw, 6.8rem);
}

.hero-copy {
  display: grid;
  gap: 1.45rem;
  align-content: center;
  max-width: 34rem;
  --parallax-y: calc(var(--hero-progress) * -10px);
}

.eyebrow,
.section-kicker,
.meta-kicker,
.place-label {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  text-wrap: balance;
}

h1 {
  max-width: 10.6ch;
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  font-weight: 320;
  line-height: 0.92;
  letter-spacing: -0.07em;
}

#hero-title .title-line {
  display: block;
  white-space: nowrap;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 4.1vw, 3.85rem);
  font-weight: 330;
  line-height: 1;
  letter-spacing: -0.055em;
}

h3 {
  font-size: clamp(1.28rem, 1.62vw, 1.7rem);
  font-weight: 410;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.hero-description,
.section-body,
.place-body,
.chapter-summary,
.chapter-institution,
.hero-panel-text,
.lightbox-caption,
.atlas-detail-body {
  color: var(--muted);
  max-width: 28rem;
  font-size: 0.94rem;
  line-height: 1.88;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.hero-description {
  max-width: 24.5rem;
}

.hero-actions,
.closing-links,
.lightbox-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
}

.quiet-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  width: fit-content;
  padding-bottom: 0.2rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 530;
  letter-spacing: -0.015em;
  border-bottom: 1px solid rgba(20, 18, 14, 0.16);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.quiet-link::after {
  content: "↗";
  color: var(--muted-soft);
  font-size: 0.94em;
  transition: transform 220ms ease, color 220ms ease;
}

.quiet-link[href^="#"]::after,
.button-link::after {
  content: "→";
}

.quiet-link:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 18, 14, 0.32);
}

.quiet-link:hover::after {
  color: var(--text);
  transform: translateX(2px);
}

.hero-note {
  max-width: 28rem;
  padding: 1.05rem 1.18rem 1.08rem;
  border-radius: 18px;
}

.hero-stage {
  position: relative;
  min-height: clamp(620px, 70vw, 840px);
  --parallax-y: calc(var(--hero-progress) * -18px);
}

.image-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  isolation: isolate;
  --media-x: 0;
  --media-y: 0;
  box-shadow: var(--shadow-md);
  transition:
    transform 360ms cubic-bezier(0.18, 0.82, 0.18, 1),
    box-shadow 360ms ease,
    filter 360ms ease;
}

.media-frame,
.media-overlay,
.media-meta {
  position: absolute;
  inset: 0;
}

.media-frame {
  display: block;
  transform-style: preserve-3d;
  transition: transform 480ms cubic-bezier(0.19, 0.9, 0.2, 1);
}

.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02)
    translate3d(calc(var(--media-x) * 10px), calc(var(--media-y) * 10px), 0);
  transition:
    transform 720ms cubic-bezier(0.19, 0.9, 0.2, 1),
    filter 420ms ease,
    opacity 320ms ease;
}

.media-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 260ms ease,
    transform 620ms cubic-bezier(0.19, 0.9, 0.2, 1);
  pointer-events: none;
}

.media-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(180deg, transparent 50%, rgba(12, 16, 22, 0.28));
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at calc(50% + var(--media-x) * 22%) calc(50% + var(--media-y) * 22%),
    rgba(255, 255, 255, 0.2),
    transparent 36%
  );
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.media-meta {
  inset: auto 0 0 0;
  display: grid;
  justify-items: start;
  gap: 0.24rem;
  padding: 1rem 1.1rem 1rem;
  color: rgba(255, 255, 255, 0.96);
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.19, 0.9, 0.2, 1);
}

.media-meta strong,
.media-meta em {
  display: block;
  max-width: min(88%, 20rem);
  line-height: 1.3;
}

.media-meta strong {
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.media-meta em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-style: normal;
  letter-spacing: -0.015em;
}

.image-button:hover,
.image-button.is-hovered {
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(23, 18, 12, 0.14);
  filter: saturate(1.03);
}

.image-button:hover .media-frame,
.image-button.is-hovered .media-frame {
  transform: perspective(1600px) rotateX(calc(var(--media-y) * -4deg))
    rotateY(calc(var(--media-x) * 5deg)) scale(1.01);
}

.image-button:hover .media-image,
.image-button.is-hovered .media-image {
  transform: scale(1.05)
    translate3d(calc(var(--media-x) * 12px), calc(var(--media-y) * 12px), 0);
}

.image-button:hover .media-frame::after,
.image-button.is-hovered .media-frame::after {
  opacity: 1;
}

.image-button:hover .media-meta,
.image-button.is-hovered .media-meta,
.image-button:focus-visible .media-meta {
  opacity: 1;
  transform: translateY(0);
}

.image-button.has-motion.is-motion-active .media-motion {
  opacity: 1;
  transform: scale(1.03);
}

.image-button.has-motion.is-motion-active .media-poster {
  opacity: 0.22;
}

.image-button.is-missing {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, rgba(157, 160, 168, 0.24), rgba(210, 202, 192, 0.24));
}

.image-button.is-missing .media-image {
  opacity: 0;
}

.hero-photo {
  position: absolute;
}

.hero-photo-main {
  inset: 2% 10% 10% 2%;
  border-radius: 38px;
  animation: slow-drift 24s ease-in-out infinite alternate;
}

.hero-photo-secondary {
  top: 4%;
  right: 0;
  width: min(34%, 300px);
  min-width: 220px;
  aspect-ratio: 0.78;
  border-radius: 28px;
  transform: translate3d(0, calc(var(--hero-progress) * 14px), 0);
}

.hero-photo-tertiary {
  left: 6%;
  bottom: 0;
  width: min(32%, 270px);
  min-width: 210px;
  aspect-ratio: 1;
  border-radius: 24px;
  transform: translate3d(0, calc(var(--hero-progress) * 18px), 0);
}

.hero-panel,
.hero-quote {
  position: absolute;
  padding: 0.95rem 1rem 1rem;
  border-radius: 18px;
}

.hero-panel {
  left: 4%;
  bottom: 13%;
  max-width: 16rem;
}

.hero-quote {
  right: 6%;
  bottom: 12%;
  max-width: 18rem;
}

.quote-text {
  margin-top: 0.5rem;
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: -0.02em;
}

.section-head {
  display: grid;
  gap: 1.08rem;
  max-width: 34rem;
}

.atlas-section,
.notes-section,
.chapters-section,
.motion-section,
.arc-section,
.closing-section {
  margin-top: clamp(5rem, 10vw, 9rem);
}

.atlas-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.atlas-rail {
  display: grid;
  gap: 1.4rem;
  align-content: start;
}

.sticky-head {
  position: sticky;
  top: calc(var(--header-height) + 34px);
}

.atlas-map {
  position: sticky;
  top: calc(var(--header-height) + 250px);
  min-height: 320px;
  border-radius: 30px;
  padding: 1.2rem;
  isolation: isolate;
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 255, 255, 0.24), transparent 28%),
    radial-gradient(circle at 72% 68%, rgba(164, 176, 190, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(38, 44, 52, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow:
    0 28px 72px rgba(23, 18, 12, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.atlas-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 85%);
}

.atlas-lines,
.atlas-base,
.atlas-points {
  position: absolute;
  inset: 0;
}

.atlas-base {
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0.72;
}

.atlas-base path {
  fill: rgba(255, 255, 255, 0.24);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 0.18;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 12px 24px rgba(18, 16, 12, 0.08));
}

.atlas-lines {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.atlas-route {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 0.52;
  stroke-dasharray: 0.018 0.04;
  vector-effect: non-scaling-stroke;
  opacity: 0.72;
  animation: atlas-flow 18s linear infinite;
  transition:
    stroke 280ms ease,
    opacity 280ms ease,
    stroke-width 280ms ease;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.24));
}

.atlas-route.is-active {
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 0.72;
  opacity: 0.96;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.42));
}

.atlas-point {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--muted-soft);
  transition: transform 260ms ease, color 260ms ease;
}

.atlas-point span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.05),
    0 0 18px rgba(255, 255, 255, 0.2);
}

.atlas-point::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 240ms ease, transform 240ms ease;
}

.atlas-point em {
  position: absolute;
  left: var(--label-x, 18px);
  top: var(--label-y, -18px);
  padding: 0.4rem 0.7rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.19, 0.9, 0.2, 1);
}

.atlas-point:hover,
.atlas-point.is-active {
  color: var(--text);
  transform: translate(-50%, -52%);
}

.atlas-point.is-active span {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.08);
}

.atlas-point:hover::after,
.atlas-point.is-active::after {
  opacity: 1;
  transform: scale(1);
}

.atlas-point:hover em,
.atlas-point.is-active em {
  opacity: 1;
  transform: translateY(0);
}

.atlas-detail {
  position: sticky;
  top: calc(var(--header-height) + 600px);
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 24px;
  display: grid;
  gap: 0.9rem;
}

.atlas-detail-subtitle,
.place-subtitle,
.chapter-period,
.chapter-institution {
  color: var(--muted-soft);
  font-size: 0.82rem;
  line-height: 1.84;
}

.atlas-detail-body {
  margin-top: 0.5rem;
}

.atlas-detail-meta,
.place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.82rem 1.18rem;
  margin-top: 1.12rem;
  color: var(--muted-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.place-stories {
  display: grid;
  gap: 2rem;
}

.place-story {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.74fr);
  gap: 1.5rem;
  align-items: end;
  padding: 1.5rem 0;
  border: 1px solid transparent;
  border-radius: 34px;
  transition:
    background-color 320ms ease,
    border-color 320ms ease,
    transform 320ms ease,
    box-shadow 320ms ease;
}

.place-story.is-active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 54px rgba(23, 18, 12, 0.045);
  transform: translateY(-1px);
}

.place-story:nth-child(even) {
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.02fr);
}

.place-story:nth-child(even) .place-visuals {
  order: 2;
}

.place-story:nth-child(even) .place-copy {
  order: 1;
}

.place-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.38fr);
  gap: 1rem;
  align-items: stretch;
}

.place-photo {
  border-radius: 28px;
}

.place-photo-lead {
  min-height: 520px;
}

.place-support {
  display: grid;
  gap: 1rem;
}

.place-story:hover .place-photo-support:first-child,
.place-story.is-active .place-photo-support:first-child {
  transform: translate3d(0, -8px, 0);
}

.place-story:hover .place-photo-support:last-child,
.place-story.is-active .place-photo-support:last-child {
  transform: translate3d(0, 6px, 0);
}

.place-photo-support {
  min-height: 250px;
  border-radius: 24px;
}

.place-copy {
  display: grid;
  gap: 1.08rem;
  max-width: 21rem;
}

.place-label {
  margin-bottom: 0.25rem;
}

.button-link {
  background: transparent;
}

.notes-section,
.chapters-section,
.motion-section,
.arc-section {
  display: grid;
  gap: 2rem;
}

.notes-grid {
  display: grid;
  gap: 1.4rem;
}

.note-card {
  display: grid;
  gap: 1.55rem;
  padding: 1.45rem;
  border-radius: 32px;
}

.note-card--anchored,
.note-card--quiet {
  grid-template-columns: minmax(0, 1.02fr) minmax(260px, 0.72fr);
}

.note-card--drift {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.02fr);
}

.note-card--drift .note-visuals {
  order: 2;
}

.note-card--drift .note-copy {
  order: 1;
}

.note-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  gap: 0.95rem;
}

.note-photo {
  border-radius: 26px;
}

.note-photo-lead {
  min-height: 460px;
}

.note-support {
  display: grid;
  gap: 0.95rem;
}

.note-photo-support {
  min-height: 220px;
  border-radius: 22px;
}

.note-copy,
.motion-copy,
.arc-copy {
  display: grid;
  gap: 0.92rem;
}

.note-copy {
  align-content: center;
  max-width: 20.5rem;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem 1.05rem;
  color: var(--muted-soft);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.notes-section .section-head,
.chapters-section .section-head,
.motion-section .section-head,
.arc-section .section-head {
  margin-bottom: 3rem;
}

.chapter-list {
  display: grid;
  gap: 1.7rem;
}

.research-bridge {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  padding: 1.65rem;
  border-radius: 32px;
}

.research-bridge-copy {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.research-bridge-copy h3 {
  max-width: 12ch;
}

.research-bridge-note {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.research-bridge-note p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.research-bridge-visuals {
  position: relative;
  min-height: 420px;
}

.research-bridge-photo {
  position: absolute;
  border-radius: 28px;
}

.research-bridge-photo-1 {
  inset: 0 18% 0 0;
}

.research-bridge-photo-2 {
  right: 0;
  bottom: 8%;
  width: min(40%, 260px);
  min-width: 180px;
  aspect-ratio: 0.82;
}

.chapter-card {
  padding: 1.5rem;
  border-radius: 34px;
  transition:
    transform 360ms cubic-bezier(0.19, 0.9, 0.2, 1),
    box-shadow 360ms ease,
    background 360ms ease;
}

.chapter-card.is-open {
  transform: translateY(-2px);
  box-shadow: 0 34px 92px rgba(23, 18, 12, 0.12);
}

.chapter-card--immersive {
  color: rgba(255, 255, 255, 0.96);
  background:
    linear-gradient(180deg, rgba(17, 22, 31, 0.84), rgba(22, 20, 18, 0.68)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.chapter-card--immersive h3,
.chapter-card--immersive .chapter-deck,
.chapter-card--immersive .chapter-summary,
.chapter-card--immersive .chapter-period,
.chapter-card--immersive .chapter-institution,
.chapter-card--immersive .section-body,
.chapter-card--immersive .chapter-footnote {
  color: rgba(255, 255, 255, 0.9);
}

.chapter-card--immersive .meta-kicker,
.chapter-card--immersive .detail-label {
  color: rgba(255, 255, 255, 0.58);
}

.chapter-card--immersive .chapter-highlight {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
}

.chapter-card--immersive .chapter-highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.chapter-card--immersive .quiet-link {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}

.chapter-card--immersive .quiet-link::after {
  color: rgba(255, 255, 255, 0.58);
}

.chapter-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.5rem;
  align-items: start;
}

.chapter-card--interface .chapter-shell {
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
}

.chapter-card--quiet .chapter-shell {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

.chapter-copy {
  display: grid;
  gap: 1.02rem;
  align-content: start;
  cursor: pointer;
}

.chapter-copy h3 {
  max-width: 10.4ch;
}

.chapter-headline {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.2rem;
}

.chapter-deck {
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.46;
  letter-spacing: -0.02em;
  max-width: 26rem;
}

.chapter-summary {
  max-width: 27rem;
}

.chapter-stage {
  position: relative;
  min-height: 430px;
  padding: 0.3rem;
}

.chapter-photo {
  position: absolute;
  border-radius: 30px;
}

.chapter-photo-primary {
  inset: 0 16% 0 0;
}

.chapter-photo-secondary {
  right: 0;
  bottom: 9%;
  width: min(34%, 280px);
  min-width: 170px;
  min-height: 210px;
  border-radius: 24px;
}

.chapter-card--platform .chapter-photo-primary {
  inset: 0 22% 0 0;
}

.chapter-card--platform .chapter-photo-secondary {
  top: 11%;
  bottom: auto;
  width: min(36%, 270px);
  min-height: 220px;
}

.chapter-card--immersive .chapter-stage {
  min-height: 500px;
}

.chapter-card--immersive .chapter-photo-primary {
  inset: 0 0 0 0;
}

.chapter-card--immersive .chapter-photo-secondary {
  right: 2.5%;
  bottom: 4%;
  width: min(34%, 300px);
  min-height: 160px;
  backdrop-filter: blur(18px);
}

.chapter-card--interface .chapter-stage {
  min-height: 460px;
}

.chapter-card--interface .chapter-photo-primary {
  inset: 10% 0 0 8%;
  border-radius: 30px 30px 22px 22px;
}

.chapter-card--interface .chapter-photo-secondary {
  left: 0;
  right: auto;
  bottom: 0;
  width: min(50%, 360px);
  min-height: 130px;
  border-radius: 20px;
}

.chapter-source-mark {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
}

.chapter-source-mark strong,
.chapter-source-mark span:last-child {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 520;
  letter-spacing: -0.015em;
}

.chapter-source-mark img {
  width: 154px;
  max-width: 100%;
  height: auto;
}

.chapter-card--platform .chapter-source-mark {
  left: 0;
  bottom: 0;
  max-width: 250px;
}

.chapter-card--immersive .chapter-source-mark {
  left: 2.5%;
  bottom: 4%;
  max-width: 280px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.chapter-card--immersive .chapter-source-mark strong {
  color: rgba(255, 255, 255, 0.92);
}

.chapter-card--interface .chapter-source-mark {
  right: 0;
  top: 0;
  max-width: 280px;
}

.chapter-card--algorithm .chapter-source-mark,
.chapter-card--clinical .chapter-source-mark {
  left: 0;
  bottom: 0;
  max-width: 270px;
}

.chapter-card--algorithm .chapter-photo-primary {
  inset: 0 18% 0 0;
}

.chapter-card--algorithm .chapter-photo-secondary {
  right: 0;
  top: 10%;
  bottom: auto;
  width: min(36%, 270px);
  min-height: 200px;
}

.chapter-card--clinical {
  background:
    linear-gradient(180deg, rgba(245, 244, 241, 0.78), rgba(235, 232, 226, 0.58)),
    rgba(255, 255, 255, 0.14);
}

.chapter-card--clinical .chapter-photo-primary {
  inset: 0 14% 0 0;
}

.chapter-card--clinical .chapter-photo-secondary {
  right: 0;
  bottom: 8%;
  width: min(34%, 280px);
  min-height: 220px;
}

.chapter-body-shell {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 540ms cubic-bezier(0.19, 0.9, 0.2, 1);
}

.chapter-card.is-open .chapter-body-shell {
  grid-template-rows: 1fr;
}

.chapter-body-shell > * {
  min-height: 0;
}

.chapter-body {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 1.95rem;
  margin-top: 1.75rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(20, 18, 14, 0.08);
}

.chapter-text,
.chapter-side {
  display: grid;
  gap: 1.28rem;
}

.chapter-side {
  align-content: start;
}

.chapter-highlights {
  display: grid;
  gap: 0.8rem;
}

.chapter-highlight {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1rem 1.14rem;
  border-radius: 18px;
  box-shadow: none;
}

.chapter-highlight p,
.chapter-footnote {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.chapter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.15rem;
}

.chapter-gallery-rail {
  display: grid;
  gap: 0.7rem;
}

.chapter-gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 0.75rem;
}

.chapter-gallery-thumb {
  display: grid;
  gap: 0.42rem;
  text-align: left;
  color: var(--muted-soft);
  transition: transform 220ms ease, color 220ms ease;
}

.chapter-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(20, 18, 14, 0.08);
  box-shadow: 0 14px 28px rgba(23, 18, 12, 0.06);
}

.chapter-gallery-thumb span {
  font-size: 0.72rem;
  line-height: 1.38;
  letter-spacing: -0.01em;
}

.chapter-gallery-thumb:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.chapter-footnote {
  margin-top: 0.16rem;
  font-size: 0.88rem;
}

.chapter-disclose {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 540;
  letter-spacing: -0.015em;
}

.chapter-disclose em {
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(20, 18, 14, 0.6);
  border-bottom: 1px solid rgba(20, 18, 14, 0.6);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 260ms ease;
}

.chapter-card.is-open .chapter-disclose em {
  transform: rotate(-135deg) translateX(2px);
}

.motion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  grid-template-areas:
    "feature tall"
    "feature quiet";
  gap: 1.15rem;
  align-items: stretch;
}

.motion-card {
  display: grid;
  gap: 0.95rem;
  padding: 1.25rem;
  border-radius: 30px;
}

.motion-card--feature {
  grid-area: feature;
}

.motion-card--tall {
  grid-area: tall;
}

.motion-card--quiet {
  grid-area: quiet;
}

.motion-visual {
  min-height: 320px;
  border-radius: 28px;
}

.motion-card--feature .motion-visual {
  min-height: 560px;
}

.motion-card--tall .motion-visual {
  min-height: 440px;
}

.motion-card--quiet .motion-visual {
  min-height: 260px;
}

.motion-copy,
.arc-copy {
  display: grid;
  gap: 0.62rem;
}

.motion-headline,
.arc-headline {
  display: grid;
  gap: 0.28rem;
}

.motion-headline h3,
.arc-headline h3 {
  max-width: 12ch;
}

.motion-state,
.arc-period,
.arc-note-text {
  color: var(--muted-soft);
}

.motion-state,
.arc-period {
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arc-shell {
  display: grid;
  gap: 1.25rem;
}

.arc-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.arc-track::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 124px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(20, 18, 14, 0.16),
    rgba(20, 18, 14, 0.16),
    transparent
  );
  pointer-events: none;
}

.arc-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  border-radius: 26px;
}

.arc-card::before {
  content: "";
  position: absolute;
  top: 119px;
  left: 1.15rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05);
}

.arc-photo {
  min-height: 230px;
  border-radius: 24px;
}

.arc-note {
  max-width: 34rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 22px;
}

.arc-note-text {
  line-height: 1.72;
}

.arc-link {
  margin-top: 0.1rem;
}

.closing-section {
  margin-top: clamp(6rem, 10vw, 10rem);
}

.closing-scene {
  position: relative;
  min-height: 860px;
  border-radius: 40px;
  overflow: hidden;
}

.closing-image {
  min-height: 860px;
  border-radius: 40px;
  animation: slow-drift 20s ease-in-out infinite alternate;
}

.closing-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 0.34fr);
  align-items: end;
  gap: 1rem;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(8, 9, 12, 0.08), transparent 28%),
    linear-gradient(180deg, transparent 42%, rgba(7, 9, 12, 0.48) 100%);
  pointer-events: none;
}

.closing-copy,
.closing-presence {
  pointer-events: auto;
}

.closing-copy {
  align-self: end;
  max-width: 32rem;
  padding: 1.25rem 1.35rem 1.38rem;
  border-radius: 26px;
}

.closing-note {
  color: rgba(255, 255, 255, 0.78);
  max-width: 24rem;
  font-size: 0.88rem;
  line-height: 1.74;
}

.closing-section .section-kicker,
.closing-section h2,
.closing-section .section-body {
  color: rgba(255, 255, 255, 0.96);
}

.closing-section .section-body {
  max-width: 26rem;
}

.closing-section .quiet-link {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.22);
}

.closing-section .quiet-link::after {
  color: rgba(255, 255, 255, 0.65);
}

.closing-frames {
  align-self: end;
  justify-self: end;
  width: min(100%, 280px);
  display: grid;
  gap: 0.9rem;
  pointer-events: auto;
}

.closing-frame {
  min-height: 180px;
  border-radius: 24px;
}

.closing-presence {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.1rem;
  margin-top: 0;
  padding: 1rem 1.15rem;
  border-top: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  background: rgba(11, 13, 16, 0.58);
  backdrop-filter: blur(24px);
  transition: opacity 360ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
}

.lightbox-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-shell {
  width: min(1280px, calc(100vw - 72px));
  max-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
  gap: 1.4rem;
  padding: 1.3rem;
  border-radius: 32px;
  transform: translateY(18px) scale(0.988);
  transition: transform 440ms cubic-bezier(0.19, 0.9, 0.2, 1);
}

.lightbox.is-open .lightbox-shell {
  transform: translateY(0) scale(1);
}

.lightbox-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(14, 16, 22, 0.66);
}

.lightbox-media-shell {
  position: absolute;
  inset: 0;
}

.lightbox-image-wrap img,
.lightbox-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 320ms ease,
    transform 680ms cubic-bezier(0.19, 0.9, 0.2, 1),
    filter 320ms ease;
}

.lightbox-image-wrap img {
  transform: scale(1.01);
}

.lightbox-image-wrap img.is-subdued {
  opacity: 0.34;
  filter: blur(1px);
}

.lightbox-video {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.lightbox-video.is-visible {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-nav.prev {
  left: 16px;
}

.lightbox-nav.next {
  right: 16px;
}

.lightbox-nav span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.88);
}

.lightbox-nav.prev span {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.lightbox-nav.next span {
  transform: translate(-65%, -50%) rotate(45deg);
}

.lightbox-meta {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 0.35rem 0.25rem;
}

.lightbox-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.lightbox-sequence {
  color: var(--muted-soft);
  font-size: 0.76rem;
  font-weight: 560;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lightbox-caption {
  max-width: 28rem;
}

.lightbox-story {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(20, 18, 14, 0.08);
}

.lightbox-story[hidden],
.lightbox-thumbs[hidden] {
  display: none;
}

.lightbox-story-title {
  color: var(--text);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 320;
  letter-spacing: -0.02em;
}

.lightbox-story-text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.lightbox-story-link {
  margin-top: 0.1rem;
}

.lightbox-detail-row {
  color: var(--muted-soft);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lightbox-primary-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.1rem;
}

.lightbox-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 0.65rem;
}

.lightbox-thumb {
  display: grid;
  gap: 0.38rem;
  text-align: left;
  color: var(--muted-soft);
  transition: transform 220ms ease, color 220ms ease;
}

.lightbox-thumb img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(20, 18, 14, 0.08);
  box-shadow: 0 16px 32px rgba(23, 18, 12, 0.08);
}

.lightbox-thumb span {
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lightbox-thumb:hover,
.lightbox-thumb.is-active {
  color: var(--text);
  transform: translateY(-1px);
}

.lightbox-thumb.is-active img {
  border-color: rgba(20, 18, 14, 0.18);
  box-shadow: 0 18px 40px rgba(23, 18, 12, 0.12);
}

.lightbox-details {
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(20, 18, 14, 0.08);
}

.lightbox-details summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 520;
}

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

.lightbox-details > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.detail-block {
  display: grid;
  gap: 0.22rem;
}

.detail-label {
  color: var(--muted-soft);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(20, 18, 14, 0.22);
  text-underline-offset: 0.18em;
}

.detail-link::after {
  content: "↗";
  font-size: 0.9em;
}

.closing-presence {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 18, 14, 0.08);
}

.presence-item {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.96);
}

.presence-item strong {
  font-weight: 520;
  letter-spacing: -0.015em;
  line-height: 1.62;
}

.presence-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  filter: blur(18px);
  --reveal-y: 42px;
  --reveal-scale: 0.99;
  transform: translate3d(0, calc(var(--reveal-y) + var(--parallax-y, 0px)), 0)
    scale(var(--reveal-scale));
  transition:
    opacity 1120ms cubic-bezier(0.16, 0.84, 0.2, 1),
    filter 1120ms cubic-bezier(0.16, 0.84, 0.2, 1),
    transform 1120ms cubic-bezier(0.16, 0.84, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  --reveal-y: 0px;
  --reveal-scale: 1;
}

[data-parallax] {
  transform: translate3d(
    calc(var(--pointer-x) * var(--depth, 0.08) * 34px),
    calc(var(--pointer-y) * var(--depth, 0.08) * 34px),
    0
  );
}

@keyframes slow-drift {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.05) translate3d(0, -8px, 0);
  }
}

@keyframes atlas-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -0.18;
  }
}

@media (max-width: 1160px) {
  .hero-shell,
  .atlas-section,
  .motion-grid,
  .arc-track {
    grid-template-columns: 1fr;
  }

  .motion-grid {
    grid-template-areas:
      "feature"
      "tall"
      "quiet";
  }

  .research-bridge,
  .note-card,
  .chapter-shell,
  .chapter-body {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 760px;
  }

  .sticky-head,
  .atlas-map,
  .atlas-detail {
    position: relative;
    top: auto;
  }

  .research-bridge-visuals {
    min-height: 520px;
  }

  .chapter-stage {
    min-height: 500px;
  }

  .motion-card--feature .motion-visual {
    min-height: 460px;
  }

  .motion-card--tall .motion-visual {
    min-height: 420px;
  }

  .arc-track::before {
    display: none;
  }

  .closing-overlay {
    grid-template-columns: 1fr minmax(220px, 0.42fr);
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 28px;
  }

  .header-note {
    white-space: normal;
    text-align: center;
  }

  .hero-shell {
    min-height: auto;
    padding-top: 4.7rem;
  }

  .hero-stage {
    min-height: 680px;
  }

  .hero-photo-main {
    inset: 0 0 18% 0;
  }

  .hero-photo-secondary {
    top: auto;
    right: 18px;
    bottom: 0;
    width: min(40%, 240px);
  }

  .hero-photo-tertiary {
    left: 18px;
    bottom: 6%;
  }

  .hero-panel {
    left: 18px;
    bottom: 18%;
  }

  .hero-quote {
    right: 18px;
    bottom: 22%;
  }

  .place-story,
  .place-story:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .note-card,
  .note-card--anchored,
  .note-card--drift,
  .note-card--quiet {
    grid-template-columns: 1fr;
  }

  .note-card--drift .note-visuals,
  .note-card--drift .note-copy {
    order: initial;
  }

  .place-story:nth-child(even) .place-visuals,
  .place-story:nth-child(even) .place-copy {
    order: initial;
  }

  .chapter-stage {
    min-height: 440px;
  }

  .arc-card::before {
    top: 111px;
  }

  .chapter-photo-primary,
  .chapter-card--platform .chapter-photo-primary,
  .chapter-card--interface .chapter-photo-primary {
    inset: 0 0 18% 0;
  }

  .chapter-photo-secondary,
  .chapter-card--platform .chapter-photo-secondary,
  .chapter-card--interface .chapter-photo-secondary,
  .chapter-card--immersive .chapter-photo-secondary {
    right: 18px;
    left: auto;
    top: auto;
    bottom: 0;
    width: min(44%, 250px);
  }

  .chapter-source-mark,
  .chapter-card--platform .chapter-source-mark,
  .chapter-card--immersive .chapter-source-mark,
  .chapter-card--interface .chapter-source-mark {
    left: 18px;
    right: auto;
    top: 18px;
    bottom: auto;
    max-width: calc(100% - 36px);
  }

  .closing-scene,
  .closing-image {
    min-height: 720px;
  }

  .closing-overlay {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 1.4rem;
  }

  .closing-copy {
    max-width: 30rem;
  }

  .closing-frames {
    justify-self: stretch;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
  }

  .closing-presence {
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.4rem;
  }

  .lightbox-shell {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 54px);
  }

  .lightbox-primary-details,
  .lightbox-details > div,
  .closing-presence {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  h1 {
    max-width: none;
    font-size: clamp(2.8rem, 11.4vw, 4.4rem);
    line-height: 0.95;
  }

  #hero-title .title-line {
    white-space: normal;
  }

  h2 {
    max-width: none;
    font-size: clamp(2rem, 8.1vw, 3.1rem);
  }

  .hero-photo-secondary,
  .hero-photo-tertiary {
    width: 42%;
  }

  .hero-panel,
  .hero-quote {
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .hero-quote {
    bottom: 20%;
  }

  .place-visuals {
    grid-template-columns: 1fr;
  }

  .note-visuals {
    grid-template-columns: 1fr;
  }

  .research-bridge-visuals {
    min-height: 420px;
  }

  .motion-card--feature .motion-visual,
  .motion-card--tall .motion-visual {
    min-height: 320px;
  }

  .arc-photo {
    min-height: 210px;
  }

  .research-bridge-photo-1 {
    inset: 0 0 24% 0;
  }

  .research-bridge-photo-2 {
    right: 18px;
    bottom: 0;
    width: min(48%, 220px);
  }

  .place-photo-lead {
    min-height: 420px;
  }

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

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

  .place-photo-support {
    min-height: 180px;
  }

  .note-photo-support {
    min-height: 180px;
  }

  .closing-image {
    min-height: 520px;
  }

  .closing-scene {
    min-height: 520px;
  }

  .closing-overlay {
    padding: 1rem;
  }

  .closing-frames {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .closing-links,
  .lightbox-detail-row,
  .chapter-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-shell {
    width: calc(100vw - 32px);
    padding: 0.9rem;
  }

  .presence-item {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }
}

@media (hover: none) {
  .media-meta {
    opacity: 1;
    transform: translateY(0);
  }

  .image-button,
  .image-button:hover,
  .image-button.is-hovered {
    transform: none;
  }

  .image-button .media-frame,
  .image-button:hover .media-frame,
  .image-button.is-hovered .media-frame {
    transform: none;
  }
}

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

  body,
  .ambient-glow,
  [data-parallax],
  .image-button,
  .reveal,
  .site-header,
  .site-nav a,
  .quiet-link {
    transition: none;
    animation: none;
    transform: none;
  }
}
