@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #071d46;
  --blue: #0869d8;
  --blue-deep: #0556b3;
  --muted: rgba(7, 29, 70, 0.72);
  --faint: rgba(7, 29, 70, 0.56);
  --line: rgba(7, 29, 70, 0.10);
  --line-strong: rgba(7, 29, 70, 0.16);
  --soft-blue: #f3f8fe;
  --hover-blue: #eef5fe;
  --bg-alt: #f8fafd;
  --shadow: 0 1px 2px rgba(7, 29, 70, 0.04), 0 10px 30px rgba(7, 29, 70, 0.05);
  --wide: 1120px;
  --text: 720px;
  --header: 68px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

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

h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(8, 105, 216, 0.16); }

.wrap {
  width: min(var(--wide), calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus-visible { transform: none; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: 34px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 550;
  transition: color 140ms ease, background-color 140ms ease;
}

.site-nav a:hover { color: var(--navy); background: var(--bg-alt); }

.site-nav a[aria-current="page"] { color: var(--navy); }

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -13px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 12px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.menu-button span {
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* 18px inner height, 2px bars: the outer bars sit 8px from the centre bar. */
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Shared type */

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  max-width: var(--text);
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19.5px);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 650;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: #0c2c63; }

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
}
.button-secondary:hover { border-color: rgba(8, 105, 216, 0.4); color: var(--blue); }

/* Home */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 480px at 85% 0%, rgba(8, 105, 216, 0.08), transparent 70%), #fff;
}

.home-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 11vw, 132px) 0 clamp(120px, 16vw, 190px);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 6.4vw, 70px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero h1 .accent { color: var(--blue); }

.hero .lead { max-width: 640px; }

.section { padding: clamp(64px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head .eyebrow { margin-bottom: 10px; }

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

.focus-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.focus-card .index {
  display: block;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.focus-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.focus-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.update-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.update-panel h3 {
  margin: 10px 0 0;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.update-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.update-panel .text-link { margin-top: 20px; }

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  align-self: start;
}

.stats div {
  padding: 20px 18px;
  background: var(--bg-alt);
}

.stats dt {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.stats dd {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

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

.note-link {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease;
}

.note-link:hover { border-color: rgba(8, 105, 216, 0.35); transform: translateY(-2px); }

.note-link .note-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }

.note-link h3 {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.note-link p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Inner pages */

.page-head {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(rgba(8, 105, 216, 0.16) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--bg-alt);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-alt) 38%, rgba(248, 250, 253, 0.55) 100%);
  pointer-events: none;
}

.page-head .wrap {
  position: relative;
  padding: clamp(56px, 8vw, 92px) 0 clamp(48px, 6vw, 68px);
}

.page-head h1 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.page-head .lead { margin-top: 18px; }

.page-body { padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 8vw, 96px); }

.group + .group { margin-top: 64px; }

.group-head {
  display: grid;
  gap: 6px;
  max-width: var(--text);
  margin-bottom: 24px;
}

.group-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.research-card,
.visual-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.research-card { padding: 28px 28px 30px; }

.research-card.is-featured {
  grid-column: 1 / -1;
  border-color: rgba(8, 105, 216, 0.22);
  background: linear-gradient(180deg, var(--soft-blue), #fff 70%);
}

.research-card.is-featured p { max-width: 820px; }

.research-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.research-card .index {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.research-card h2,
.visual-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.research-card p,
.visual-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border: 1px solid rgba(8, 105, 216, 0.2);
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag.is-next { border-color: rgba(7, 29, 70, 0.18); background: #fff; color: var(--navy); }
.tag.is-planned { border-color: var(--line); background: #f4f5f8; color: var(--faint); }

/* Research Progress */

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.summary-strip div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 22px 22px 20px;
  background: #fff;
}

.summary-strip dt { color: var(--faint); font-size: 13.5px; font-weight: 600; line-height: 1.4; }

.summary-strip dd {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 176px;
  width: 1px;
  background: var(--line-strong);
}

.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 52px;
  padding: 0 0 40px;
}

.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 171px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}

.timeline > li.is-done::before { background: var(--blue); }
.timeline > li.is-planned::before { border-color: rgba(7, 29, 70, 0.3); }

.timeline .when {
  color: var(--faint);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.timeline .entry {
  max-width: var(--text);
}

.timeline .entry-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.timeline h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.timeline-label {
  margin: 0 0 22px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline + .timeline-label { margin-top: 56px; }

/* Research Notes */

.note-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.note {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.note-meta {
  display: grid;
  gap: 4px;
  align-content: start;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note-meta span { color: var(--blue); }
.note-meta time { color: var(--faint); letter-spacing: 0.04em; }

.note-body { max-width: var(--text); }

.note h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.note p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.note strong { color: var(--navy); font-weight: 650; }

/* Questions We Explore */

.question-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: question;
}

.question-list > li {
  counter-increment: question;
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.question-list > li::before {
  content: counter(question, decimal-leading-zero);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.question-text {
  margin: 0;
  max-width: 820px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.prose p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.prose p:first-child {
  color: var(--navy);
  font-size: 20px;
  font-weight: 550;
  line-height: 1.6;
}

.facts {
  margin: 0;
  padding: 8px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
}

.facts div {
  display: grid;
  gap: 2px;
  padding: 16px 0;
}

.facts div + div { border-top: 1px solid var(--line); }

.facts dt {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principles li {
  counter-increment: principle;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.principles li::before {
  content: counter(principle, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.principles h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.principles p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px 48px;
  padding: 44px 0 32px;
}

.footer-brand p {
  max-width: 360px;
  margin: 14px 0 0;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 48px;
  align-content: start;
}

.footer-nav a { color: var(--muted); font-weight: 550; }
.footer-nav a:hover { color: var(--blue); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

.footer-base p { margin: 0; }

/* Concept Visuals */

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

.visual-card {
  padding: 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.visual-card-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.visual-icon {
  width: 42px;
  height: 42px;
  color: var(--blue);
}

.visual-card-copy p { margin-top: 7px; }

.visual-diagram {
  margin-top: auto;
  padding-top: 20px;
}

.visual-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.axis-label,
.diagram-label {
  fill: rgba(7, 29, 70, 0.68);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .visual-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 105, 216, 0.18);
    box-shadow: 0 18px 44px rgba(7, 29, 70, 0.085);
  }
}

/* A gentle 3D tilt and soft light that follow the pointer. */
.visual-card { position: relative; }

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(8, 105, 216, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .visual-card.is-tilting {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px);
    transition: transform 120ms ease-out, box-shadow 260ms ease, border-color 260ms ease;
  }
  .visual-card.is-tilting::after { opacity: 1; }
}

.visual-card.is-pressed {
  transform: translateY(-3px) scale(1.004);
  border-color: rgba(8, 105, 216, 0.20);
  box-shadow: 0 18px 44px rgba(7, 29, 70, 0.09);
}

.adaptive-curve,
.revision-curve,
.resource-curve {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}

.adaptive-point,
.revision-point,
.resource-point {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.72);
}

.continuity-signal {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* Each visual draws in, holds, then quietly resets while it is on screen. */
.visual-card.is-visible .adaptive-curve {
  animation: drawHold 6.4s cubic-bezier(.22,.72,.22,1) infinite;
}
.visual-card.is-visible .revision-curve {
  animation: drawHold 7s cubic-bezier(.22,.72,.22,1) .55s infinite;
}
.visual-card.is-visible .resource-curve {
  animation: drawHold 6.8s cubic-bezier(.22,.72,.22,1) 1.05s infinite;
}

.visual-card.is-visible .adaptive-point {
  animation: pointCycle 6.4s ease-in-out var(--delay, .2s) infinite;
}
.visual-card.is-visible .revision-point {
  animation: pointCycle 7s ease-in-out var(--delay, .2s) infinite;
}
.visual-card.is-visible .resource-point {
  animation: pointCycle 6.8s ease-in-out calc(.52s + (var(--i) * .14s)) infinite;
}
.visual-card.is-visible .revision-final {
  animation:
    pointCycle 7s ease-in-out var(--delay, 1.28s) infinite,
    revisionSoftPulse 3.8s ease-in-out 2.1s infinite;
}

.visual-card.is-visible .continuity-signal {
  animation: continuityTravel 5.8s ease-in-out .35s infinite;
}

.visual-card.is-visible .continuity-node {
  animation: continuityNodePulse 5.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.visual-card.is-visible .continuity-node:nth-child(1) { animation-delay: .35s; }
.visual-card.is-visible .continuity-node:nth-child(2) { animation-delay: 1.80s; }
.visual-card.is-visible .continuity-node:nth-child(3) { animation-delay: 3.25s; }

@keyframes drawHold {
  0%, 6% { stroke-dashoffset: 520; opacity: .34; }
  26%, 88% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 520; opacity: .34; }
}

@keyframes pointCycle {
  0%, 10% { opacity: 0; transform: scale(.72); }
  20%, 88% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.72); }
}

@keyframes continuityTravel {
  0%, 8% { opacity: 0; transform: translateX(0) scale(.82); }
  14% { opacity: 1; transform: translateX(0) scale(1); }
  42% { opacity: 1; transform: translateX(100px) scale(1); }
  70% { opacity: 1; transform: translateX(200px) scale(1); }
  78%, 100% { opacity: 0; transform: translateX(200px) scale(.82); }
}

@keyframes continuityNodePulse {
  0%, 8%, 20%, 100% { transform: scale(1); }
  13% { transform: scale(1.42); }
}

@keyframes revisionSoftPulse {
  0%, 76%, 100% { filter: drop-shadow(0 0 0 rgba(8,105,216,0)); }
  86% { filter: drop-shadow(0 0 5px rgba(8,105,216,.38)); }
}

/* Concept Visuals: the model-and-memory story */

.story {
  border-bottom: 1px solid var(--line);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
}

.story-steps { padding: 12vh 0 18vh; }

.story-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transition: opacity 320ms ease;
}

.story-step.is-active { opacity: 1; }

.step-index {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-step h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.story-step p:not(.step-index) {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.story-stage-wrap { position: relative; }

.story-stage {
  position: sticky;
  top: calc(var(--header) + max(24px, (100vh - var(--header) - 640px) / 2));
  height: min(640px, calc(100vh - var(--header) - 48px));
  min-height: 440px;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(700px 460px at 50% 35%, rgba(8, 105, 216, 0.045), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg-alt));
}

.story-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.story-stage canvas:active { cursor: grabbing; }

.story-dots {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.story-dots li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  transition: color 200ms ease, border-color 200ms ease;
}

.story-dots li.is-active { border-color: rgba(8, 105, 216, 0.35); color: var(--blue); }

.story-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

/* 404 */

.not-found .wrap { padding: clamp(80px, 12vw, 140px) 0; }

.plain-title {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.not-found-code {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

/* Responsive */

@media (max-width: 960px) {
  .focus-grid,
  .note-links,
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .update-panel { grid-template-columns: 1fr; gap: 28px; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage-wrap {
    order: -1;
    position: sticky;
    top: var(--header);
    z-index: 2;
    padding: 12px 0;
    background: #fff;
  }
  .story-stage {
    position: relative;
    top: auto;
    height: 50vh;
    min-height: 300px;
    max-height: 520px;
    margin: 0;
  }
  .story-steps { padding: 4px 0 30vh; }
  .story-step { min-height: 56vh; justify-content: flex-start; padding-top: 28px; }
  .story-step p:not(.step-index) { font-size: 16px; }

  .menu-button { display: flex; }

  .site-nav {
    position: absolute;
    top: calc(var(--header) - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 40px rgba(7, 29, 70, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 13px 12px;
    font-size: 16px;
    color: var(--navy);
  }

  .site-nav a[aria-current="page"] { background: var(--hover-blue); color: var(--blue); }
  .site-nav a[aria-current="page"]::after { display: none; }

  .timeline::before { left: 5px; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .timeline > li::before { left: 0; top: 5px; }
  .timeline .when { text-align: left; }

  .note { grid-template-columns: 1fr; gap: 12px; }
  .note-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
}

@media (max-width: 720px) {
  .card-grid,
  .visual-grid { grid-template-columns: 1fr; }
  .visual-card { min-height: 300px; }
}

@media (max-width: 640px) {
  :root { --header: 62px; }
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 16px; }
  .brand img { width: 30px; }

  .hero-inner { padding: 60px 0 128px; }
  .home-wave { height: 42%; }
  .button { flex: 1 1 auto; justify-content: center; }

  .focus-grid,
  .note-links,
  .principles { grid-template-columns: 1fr; }
  .update-panel { padding: 24px 20px; }
  .stats dd, .summary-strip dd { font-size: 26px; }

  .research-card { padding: 22px 20px 24px; }
  .research-card h2,
  .visual-card h2 { font-size: 18px; }
  .research-card p,
  .visual-card p { font-size: 15px; }

  .question-list > li { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .question-text { font-size: 17px; }

  .visual-card { padding: 18px; }
  .visual-card-head { grid-template-columns: 36px 1fr; gap: 10px; }
  .visual-icon { width: 36px; height: 36px; }

  .footer-nav { gap: 10px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .adaptive-curve,
  .revision-curve,
  .resource-curve {
    stroke-dashoffset: 0 !important;
  }

  .adaptive-point,
  .revision-point,
  .resource-point,
  .continuity-signal {
    opacity: 1 !important;
    transform: none !important;
  }
}
