:root {
  --paper: #f1eee7;
  --paper-raised: #f8f6f0;
  --paper-deep: #e7e2d8;
  --ink: #192625;
  --ink-soft: #44524f;
  --ink-muted: #5f6b67;
  --blue: #173f67;
  --blue-soft: #708998;
  --oxide: #697d77;
  --rule: #c8c2b7;
  --rule-dark: #52615d;
  --night: #172423;
  --night-soft: #223230;
  --night-text: #f0eee6;
  --night-muted: #aeb9b5;
  --focus: #0d5b95;
  --header-bg: rgb(241 238 231 / 96%);
  --grid-color: rgb(23 63 103 / 4%);
  --blue-glow: rgb(23 63 103 / 28%);
  --theme-wash: rgb(23 63 103 / 16%);
  --display: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Candara, sans-serif;
  --utility: "SFMono-Regular", "Cascadia Mono", "Liberation Mono", Consolas, monospace;
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max-width: 94rem;
  --header-height: 5.25rem;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

html[data-theme="dark"] {
  --paper: #101817;
  --paper-raised: #16211f;
  --paper-deep: #1e2a28;
  --ink: #eeeae0;
  --ink-soft: #c2cac5;
  --ink-muted: #8e9d98;
  --blue: #86a8c3;
  --blue-soft: #5f7d91;
  --oxide: #789089;
  --rule: #2f3f3b;
  --rule-dark: #566a64;
  --night: #090f0f;
  --night-soft: #111d1b;
  --night-text: #f1eee7;
  --night-muted: #aeb9b5;
  --focus: #9bcdf1;
  --header-bg: rgb(16 24 23 / 94%);
  --grid-color: rgb(134 168 195 / 6%);
  --blue-glow: rgb(134 168 195 / 24%);
  --theme-wash: rgb(134 168 195 / 14%);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 20rem;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), var(--grid-color) 0) 0 0 /
      clamp(4rem, 8vw, 8.5rem) 100%,
    var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

body::after {
  position: fixed;
  z-index: 80;
  top: -32vmax;
  right: -30vmax;
  width: 78vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, var(--theme-wash), transparent 68%);
  transform: scale(0.18);
  transform-origin: center;
}

body.theme-changing::after {
  animation: theme-eclipse-wash 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.theme-ready,
html.theme-ready body,
html.theme-ready .site-header,
html.theme-ready .hero,
html.theme-ready .operations,
html.theme-ready .lumen,
html.theme-ready .approach,
html.theme-ready .site-footer {
  transition:
    color 360ms ease,
    background-color 420ms ease,
    border-color 360ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

::selection {
  color: var(--paper-raised);
  background: var(--blue);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--paper-raised);
  background: var(--blue);
  font: 600 0.78rem/1 var(--utility);
  letter-spacing: 0.04em;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(9rem, 0.65fr) minmax(20rem, 1fr) auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}

.site-identity {
  display: grid;
  width: fit-content;
  gap: 0.12rem;
}

.wordmark {
  display: flex;
  width: fit-content;
  align-items: baseline;
  gap: 0.35em;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark span:last-child {
  color: var(--blue);
  font-style: italic;
  font-weight: 400;
}

.site-role {
  color: var(--ink-muted);
  font: 0.54rem/1.2 var(--utility);
  letter-spacing: 0.065em;
  white-space: nowrap;
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.55rem, 1.4vw, 1.15rem);
}

.theme-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.42rem;
  padding: 0.35rem 0.2rem;
  border: 0;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  font: 0.58rem/1 var(--utility);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.theme-toggle:hover,
.theme-toggle[aria-pressed="true"] {
  color: var(--blue);
}

.theme-toggle__orbit {
  position: relative;
  width: 1.22rem;
  height: 1.22rem;
  flex: 0 0 auto;
  border: 1px solid var(--blue-soft);
  border-radius: 50%;
}

.theme-toggle__orbit::before {
  position: absolute;
  inset: 0.27rem;
  border-radius: 50%;
  content: "";
  background: var(--blue);
  opacity: 0.16;
  transform: scale(0.72);
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle__orbit::after {
  position: absolute;
  top: -0.16rem;
  left: calc(50% - 0.12rem);
  width: 0.24rem;
  height: 0.24rem;
  border-radius: 50%;
  content: "";
  background: var(--blue);
  box-shadow: 0 0 0.45rem var(--blue-glow);
  transform-origin: 0.12rem 0.76rem;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] .theme-toggle__orbit::before {
  opacity: 0.88;
  transform: scale(1);
}

html[data-theme="dark"] .theme-toggle__orbit::after {
  transform: rotate(180deg);
}

.theme-toggle.is-switching .theme-toggle__orbit {
  animation: theme-toggle-spin 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 3.5rem);
}

.site-nav a,
.theme-toggle,
.language-switch,
.section-label,
.section-date,
.section-overline,
.motto-label,
.site-credit__label,
.personal-notes__label,
.footer-meta {
  font-family: var(--utility);
  font-size: 0.68rem;
  letter-spacing: 0.075em;
}

.site-nav a {
  position: relative;
  padding: 0.75rem 0;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.language-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  color: var(--ink-muted);
}

.language-switch button {
  min-width: 2rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.1rem;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--blue);
  font-weight: 700;
}

.language-transition {
  position: fixed;
  z-index: 70;
  top: calc(var(--header-height) - 1px);
  right: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
}

.language-transition__beam {
  position: absolute;
  inset: 0;
  background: var(--blue);
  box-shadow: 0 0 0.7rem var(--blue-glow);
  transform: scaleX(0);
  transform-origin: left;
}

.language-transition__signal {
  position: absolute;
  top: 0.7rem;
  right: var(--page-gutter);
  color: var(--blue);
  font: 0.62rem/1 var(--utility);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(-0.35rem);
}

.language-transition.is-active .language-transition__beam {
  animation: language-beam 680ms cubic-bezier(0.65, 0, 0.35, 1) both;
}

.language-transition.is-active .language-transition__signal {
  animation: language-signal 680ms ease both;
}

body.language-out main [data-i18n],
body.language-out .site-footer [data-i18n] {
  opacity: 0.18;
  filter: blur(1px);
  transition:
    opacity 140ms ease,
    filter 140ms ease;
}

body.language-in main [data-i18n],
body.language-in .site-footer [data-i18n] {
  animation: language-copy-in 360ms ease both;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(1.35rem, 2.4vw, 2.5rem) var(--page-gutter) 2rem;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: -12vw;
  width: min(54vw, 50rem);
  height: 100%;
  content: "";
  opacity: 0.22;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 4rem,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 4rem 100%;
  mask-image: linear-gradient(to left, black 15%, transparent 96%);
}

.hero-grid {
  display: grid;
  width: 100%;
  max-width: var(--max-width);
  min-height: calc(100svh - var(--header-height) - clamp(4.5rem, 7vw, 7rem));
  margin: 0 auto;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2vw, 2rem);
}

.hero-copy {
  grid-column: 1 / span 8;
  padding-bottom: 2rem;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 6.6vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.93;
  text-wrap: balance;
}

.hero-intro {
  max-width: 41rem;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.4vw, 1.3rem);
  line-height: 1.65;
}

.hero-focus {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.hero-motto {
  display: flex;
  max-width: 31rem;
  align-items: center;
  gap: 1rem;
  margin: 2.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.motto-orbit {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border: 1px solid var(--blue-soft);
  border-radius: 50%;
}

.motto-orbit::before {
  position: absolute;
  top: 50%;
  right: -0.2rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  content: "";
  background: var(--blue);
  transform: translateY(-50%);
}

.motto-orbit::after {
  position: absolute;
  inset: 0.42rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  content: "";
}

.language-in .motto-orbit {
  animation: motto-pulse 420ms ease both;
}

.motto-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-muted);
}

.hero-motto p {
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  font-style: italic;
  letter-spacing: -0.015em;
}

.hero-visual {
  position: relative;
  grid-column: 10 / -1;
  margin: 0;
  align-self: stretch;
  overflow: hidden;
  min-height: 31rem;
  isolation: isolate;
}

.hero-visual::after {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, var(--blue-soft) 18%, var(--blue-soft) 82%, transparent);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 35%;
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 420ms ease;
}

.hero-visual__image--light {
  opacity: 0.92;
  filter: saturate(0.78) contrast(0.97);
  mix-blend-mode: multiply;
}

.hero-visual__image--dark {
  opacity: 0;
  filter: saturate(0.88) contrast(1.04);
}

.hero-rule {
  display: grid;
  max-width: var(--max-width);
  margin: 0 auto;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  color: var(--blue);
  font: 0.64rem/1 var(--utility);
}

.hero-rule span:first-child {
  height: 1px;
  background: var(--blue);
}

.story-section {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

.section-shell {
  display: grid;
  max-width: var(--max-width);
  min-height: 52rem;
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 11rem) var(--page-gutter);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.section-rail {
  position: relative;
  grid-column: 1 / span 2;
  min-height: 100%;
  padding-right: 1rem;
  border-right: 1px solid var(--rule-dark);
}

.section-rail::after {
  position: absolute;
  top: 10rem;
  right: -1px;
  bottom: -11rem;
  width: 1px;
  content: "";
  background: var(--rule-dark);
}

.section-label,
.section-date,
.section-overline {
  margin: 0;
}

.section-label {
  color: currentColor;
  font-weight: 700;
}

.section-date {
  margin-top: 0.45rem;
  color: var(--night-muted);
}

.rail-node {
  position: absolute;
  z-index: 2;
  top: 9.6rem;
  right: -0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--night);
}

.section-body {
  grid-column: 4 / -1;
}

.section-overline {
  margin-bottom: 2.25rem;
  color: var(--night-muted);
}

.section-body h2 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.1rem, 6.2vw, 7.3rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.95;
  text-wrap: balance;
}

.operations {
  color: var(--night-text);
  background:
    radial-gradient(circle at 78% 18%, rgb(112 137 152 / 11%), transparent 28rem),
    var(--night);
}

.editorial-columns {
  display: grid;
  margin-top: clamp(4rem, 8vw, 7rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
}

.lead {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.35vw, 2.6rem);
  line-height: 1.25;
}

.body-copy {
  color: var(--night-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.body-copy p {
  margin: 0;
}

.body-copy p + p {
  margin-top: 1.5rem;
}

.scope-index {
  margin: clamp(5rem, 9vw, 9rem) 0 0;
  border-top: 1px solid var(--rule-dark);
}

.scope-index div {
  display: grid;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule-dark);
  grid-template-columns: minmax(9rem, 0.45fr) 1fr;
  gap: 2rem;
}

.scope-index dt,
.fact-sheet dt {
  color: var(--night-muted);
  font: 0.68rem/1.4 var(--utility);
  letter-spacing: 0.06em;
}

.scope-index dd,
.fact-sheet dd {
  margin: 0;
  font-size: 0.94rem;
}

.site-credit {
  display: grid;
  margin-top: clamp(4rem, 7vw, 7rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  grid-template-columns: minmax(12rem, 0.75fr) minmax(18rem, 1.25fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.site-credit__label {
  margin: 0 0 0.7rem;
  color: var(--night-muted);
}

.site-credit h3 {
  margin: 0;
  color: var(--night-text);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.site-credit > p {
  max-width: 38rem;
  margin: 0;
  color: var(--night-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.site-credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--night-muted);
  color: var(--night-text);
  font: 0.7rem/1.4 var(--utility);
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.lumen {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 86% 18%, rgb(23 63 103 / 9%), transparent 28rem),
    var(--paper-raised);
  overflow: hidden;
}

.lumen::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -7rem;
  width: min(34rem, 42vw);
  aspect-ratio: 2 / 3;
  content: "";
  opacity: 0.14;
  background: url("assets/hero-orbit.webp") center 34% / cover no-repeat;
  filter: saturate(0.66) contrast(1.04);
  mix-blend-mode: multiply;
  transform: rotate(7deg);
  animation: ink-drift 18s ease-in-out infinite alternate;
}

.lumen::after {
  position: absolute;
  z-index: -1;
  bottom: 9%;
  left: -9rem;
  width: 23rem;
  aspect-ratio: 1;
  border: 1px solid rgb(23 63 103 / 16%);
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle at center, rgb(25 38 37 / 13%) 0 4%, transparent 4.5%),
    radial-gradient(circle at center, transparent 0 42%, rgb(112 137 152 / 20%) 42.2% 42.5%, transparent 42.8%);
}

.section-rail--light {
  border-color: var(--rule);
}

.section-rail--light::after {
  background: var(--rule);
}

.section-rail--light .section-date {
  color: var(--ink-muted);
}

.section-rail--light .rail-node {
  background: var(--paper-raised);
}

.lumen .section-overline,
.approach .section-overline {
  color: var(--ink-muted);
}

.lumen-name {
  margin-bottom: clamp(3rem, 6vw, 6rem);
  padding-bottom: 0.2em;
  border-bottom: 1px solid var(--blue);
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 14rem);
  font-style: italic;
  letter-spacing: -0.085em;
  line-height: 0.68;
}

.lumen .section-body h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.6vw, 6.4rem);
}

.lumen-layout {
  display: grid;
  margin-top: clamp(4rem, 8vw, 7rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.lumen-copy .lead {
  margin-bottom: 2rem;
}

.lumen-copy > p:not(.lead) {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.lumen-copy > p + p {
  margin-top: 1.3rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.2rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--blue);
  color: var(--blue);
  font: 0.74rem/1.4 var(--utility);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.text-link span:last-child {
  transition: transform 160ms ease;
}

.text-link:hover span:last-child {
  transform: translate(0.18rem, -0.18rem);
}

.fact-sheet {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.fact-sheet div {
  display: grid;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
}

.fact-sheet dt {
  color: var(--ink-muted);
}

.approach {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  overflow: hidden;
}

.approach::before {
  position: absolute;
  z-index: -1;
  top: 5rem;
  right: -5rem;
  width: min(40rem, 58vw);
  aspect-ratio: 1;
  content: "";
  opacity: 0.52;
  background:
    radial-gradient(circle at center, rgb(25 38 37 / 17%) 0 5%, transparent 13%),
    radial-gradient(circle at center, transparent 0 21%, var(--rule) 21.2% 21.35%, transparent 21.6%),
    radial-gradient(circle at center, transparent 0 40%, var(--rule) 40.2% 40.35%, transparent 40.6%),
    radial-gradient(circle at center, var(--blue) 0 1.5px, transparent 1.8px) 2rem 1rem / 4.6rem 4.6rem;
  mask-image: radial-gradient(circle, black 0 44%, transparent 72%);
  animation: orbital-drift 46s linear infinite;
}

.approach::after {
  position: absolute;
  z-index: -1;
  bottom: 10%;
  left: -14rem;
  width: 31rem;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  opacity: 0.18;
  background:
    radial-gradient(circle at 62% 44%, var(--night) 0 16%, transparent 39%),
    radial-gradient(circle at 54% 50%, transparent 0 47%, var(--blue-soft) 47.2% 47.5%, transparent 47.8%);
  filter: blur(0.4px);
}

.approach .section-rail--light .rail-node {
  background: var(--paper);
}

.section-overline--orbit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-overline--orbit::before {
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid var(--blue-soft);
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle at 82% 50%, var(--blue) 0 2px, transparent 2.5px);
}

.editorial-columns--light .body-copy {
  color: var(--ink-soft);
}

.learning-sequence {
  display: grid;
  margin: clamp(5rem, 9vw, 9rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
  grid-template-columns: repeat(4, 1fr);
}

.learning-sequence li {
  min-height: 9rem;
  padding: 1rem 1rem 1.5rem 0;
  border-right: 1px solid var(--rule);
}

.learning-sequence li:not(:first-child) {
  padding-left: 1rem;
}

.learning-sequence li:last-child {
  border-right: 0;
}

.learning-sequence span,
.learning-sequence strong {
  display: block;
}

.learning-sequence span {
  color: var(--blue);
  font: 0.65rem/1 var(--utility);
}

.learning-sequence strong {
  max-width: 9ch;
  margin-top: 3.7rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.personal-notes {
  display: grid;
  margin-top: clamp(4.5rem, 8vw, 8rem);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 1fr 1fr;
}

.personal-notes article {
  position: relative;
  min-height: 19rem;
  padding: 1.4rem clamp(1.5rem, 4vw, 4rem) 2.5rem 0;
}

.personal-notes article + article {
  padding-right: 0;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid var(--rule);
}

.personal-notes article:last-child::before {
  position: absolute;
  top: 1.3rem;
  right: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--blue-soft);
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle at 85% 50%, var(--blue) 0 2px, transparent 2.5px);
}

.personal-notes__label {
  margin: 0 0 clamp(3rem, 5vw, 5rem);
  color: var(--ink-muted);
}

.personal-notes h3 {
  max-width: 16ch;
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.personal-notes article:last-child h3 {
  color: var(--ink);
  font-style: normal;
}

.personal-notes article > p:last-child {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.75;
}

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 0 var(--page-gutter) 2rem;
  color: var(--night-text);
  background:
    radial-gradient(circle at 82% 18%, rgb(112 137 152 / 22%), transparent 28rem),
    radial-gradient(circle at 16% 78%, rgb(23 63 103 / 28%), transparent 32rem),
    var(--night);
  overflow: hidden;
}

.site-footer::before {
  position: absolute;
  z-index: -1;
  top: -17rem;
  right: -9rem;
  width: 43rem;
  aspect-ratio: 1;
  border: 1px solid rgb(240 238 230 / 9%);
  border-radius: 50%;
  content: "";
  opacity: 0.34;
  background:
    radial-gradient(circle at center, transparent 0 36%, rgb(240 238 230 / 9%) 36.2% 36.35%, transparent 36.6%),
    radial-gradient(circle at center, transparent 0 61%, rgb(112 137 152 / 16%) 61.2% 61.4%, transparent 61.7%),
    radial-gradient(circle at 77% 31%, var(--night-text) 0 1px, transparent 1.5px);
  animation: orbital-drift 58s linear infinite reverse;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-thought {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) 0 0;
  color: var(--night-text);
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.footer-rule {
  height: 1px;
  background: var(--rule-dark);
}

.footer-main {
  display: grid;
  max-width: var(--max-width);
  min-height: 18rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 7rem) 0;
  grid-template-columns: 1fr 0.65fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-main p {
  margin: 0;
  color: var(--night-muted);
}

.footer-main .footer-name {
  margin-bottom: 0.55rem;
  color: var(--night-text);
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.footer-location {
  padding-top: 0.45rem;
  font-size: 0.88rem;
}

.footer-main nav {
  display: grid;
  gap: 0.8rem;
}

.footer-main nav a {
  display: flex;
  min-width: 8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--night-text);
  font-family: var(--utility);
  font-size: 0.72rem;
  text-decoration: none;
}

.footer-main nav a span {
  color: var(--night-muted);
}

.footer-meta {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--night-muted);
  justify-content: space-between;
}

html[data-theme="dark"] .hero::before {
  opacity: 0.16;
}

html[data-theme="dark"] .hero-visual__image--light {
  opacity: 0;
}

html[data-theme="dark"] .hero-visual__image--dark {
  opacity: 0.96;
}

html[data-theme="dark"] .operations {
  background:
    radial-gradient(circle at 78% 18%, rgb(134 168 195 / 13%), transparent 28rem),
    var(--night);
}

html[data-theme="dark"] .lumen::before {
  opacity: 0.32;
  filter: saturate(0.58) contrast(1.18);
}

html[data-theme="dark"] .lumen::after {
  border-color: rgb(134 168 195 / 18%);
  opacity: 0.72;
}

html[data-theme="dark"] .approach::before {
  opacity: 0.38;
}

html[data-theme="dark"] .approach::after {
  opacity: 0.26;
}

html[data-theme="dark"] .site-footer {
  background:
    radial-gradient(circle at 82% 18%, rgb(134 168 195 / 18%), transparent 28rem),
    radial-gradient(circle at 16% 78%, rgb(23 63 103 / 22%), transparent 32rem),
    var(--night);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes trace-signal {
  0%,
  8% {
    transform: translateY(0);
  }
  45%,
  55% {
    transform: translateY(4.6rem);
  }
  92%,
  100% {
    transform: translateY(9.2rem);
  }
}

@keyframes language-beam {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  48% {
    transform: scaleX(1);
    transform-origin: left;
  }
  52% {
    transform: scaleX(1);
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

@keyframes language-signal {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-0.35rem);
  }
  22%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes language-copy-in {
  from {
    opacity: 0.2;
    transform: translateY(0.18rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes motto-pulse {
  0% {
    transform: rotate(0deg) scale(0.92);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes ink-drift {
  from {
    transform: translate3d(0, -0.4rem, 0) rotate(7deg) scale(1);
  }
  to {
    transform: translate3d(-0.75rem, 0.65rem, 0) rotate(9deg) scale(1.025);
  }
}

@keyframes orbital-drift {
  to {
    transform: rotate(360deg);
  }
}

@keyframes theme-toggle-spin {
  50% {
    transform: rotate(190deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes theme-eclipse-wash {
  0% {
    opacity: 0;
    transform: scale(0.18);
  }
  46% {
    opacity: 0.9;
    transform: scale(0.88);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

@media (max-width: 64rem) {
  :root {
    --header-height: 7.6rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: 3.9rem 3.6rem;
  }

  .header-controls {
    grid-row: 1;
    grid-column: 2;
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 2.2rem;
    overflow-x: auto;
    border-top: 1px solid var(--rule);
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    grid-column: 1 / span 8;
  }

  .hero-visual {
    grid-column: 9 / -1;
  }

  .section-rail {
    grid-column: 1 / span 3;
  }

  .section-body {
    grid-column: 5 / -1;
  }
}

@media (max-width: 48rem) {
  :root {
    --page-gutter: 1.25rem;
  }

  body {
    background:
      linear-gradient(90deg, transparent calc(100% - 1px), var(--grid-color) 0) 0 0 /
        4rem 100%,
      var(--paper);
  }

  .site-header {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
  }

  .site-nav {
    gap: 1.7rem;
  }

  .site-nav a {
    font-size: 0.66rem;
    white-space: nowrap;
  }

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

  .hero::before {
    right: -30vw;
    width: 90vw;
    opacity: 0.13;
  }

  .hero-grid {
    display: block;
  }

  .hero-copy {
    padding-bottom: 3rem;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.15rem, 14.5vw, 5.2rem);
    line-height: 0.95;
  }

  .hero-intro {
    font-size: 1rem;
    line-height: 1.65;
  }

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

  .hero-motto {
    margin-top: 1.8rem;
  }

  .hero-visual {
    height: clamp(18rem, 72vw, 25rem);
    min-height: 0;
    margin-bottom: 3rem;
  }

  .hero-visual::after {
    display: none;
  }

  .hero-visual img {
    object-position: 50% 34%;
  }

  .section-shell {
    display: block;
    min-height: 0;
    padding-top: 4.5rem;
    padding-bottom: 6.5rem;
  }

  .section-rail {
    display: grid;
    min-height: 0;
    margin-bottom: 2rem;
    padding: 0 0 1.1rem;
    border-right: 0;
    border-bottom: 1px solid currentColor;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
  }

  .section-rail::after {
    display: none;
  }

  .rail-node {
    top: auto;
    right: 0;
    bottom: -0.4rem;
    left: auto;
  }

  .section-date {
    margin-top: 0;
    text-align: right;
  }

  .section-overline {
    margin-bottom: 1rem;
  }

  .section-body h2 {
    max-width: 14ch;
    font-size: clamp(2.85rem, 12.5vw, 4.8rem);
    line-height: 0.98;
  }

  .editorial-columns,
  .lumen-layout {
    display: block;
    margin-top: 3rem;
  }

  .lead {
    font-size: 1.6rem;
  }

  .body-copy,
  .fact-sheet {
    margin-top: 2.5rem;
  }

  .scope-index {
    margin-top: 4rem;
  }

  .scope-index div {
    display: block;
  }

  .scope-index dd {
    margin-top: 0.45rem;
  }

  .site-credit {
    display: block;
    margin-top: 4rem;
  }

  .site-credit > p {
    margin-top: 1.5rem;
  }

  .site-credit a {
    margin-top: 1.5rem;
  }

  .lumen-name {
    margin-bottom: 2.8rem;
    font-size: clamp(5.2rem, 27vw, 9rem);
    line-height: 0.75;
  }

  .lumen .section-body h2 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .fact-sheet {
    margin-top: 4rem;
  }

  .approach::before {
    top: 7rem;
    right: -12rem;
    width: 32rem;
    opacity: 0.26;
  }

  .lumen::before {
    right: -9rem;
    width: 27rem;
    opacity: 0.1;
  }

  .lumen::after {
    opacity: 0.58;
  }

  .approach::after {
    left: -19rem;
    opacity: 0.12;
  }

  .site-footer::before {
    top: -13rem;
    right: -19rem;
    width: 36rem;
    opacity: 0.24;
  }

  .learning-sequence {
    grid-template-columns: repeat(2, 1fr);
  }

  .learning-sequence li:nth-child(2) {
    border-right: 0;
  }

  .learning-sequence li:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .personal-notes {
    display: block;
    margin-top: 5rem;
  }

  .personal-notes article {
    min-height: 0;
    padding: 1.2rem 0 3rem;
  }

  .personal-notes article + article {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .personal-notes__label {
    margin-bottom: 2.8rem;
  }

  .personal-notes article:last-child::before {
    top: 1.8rem;
  }

  .footer-thought {
    padding-top: 5rem;
    font-size: clamp(2.2rem, 9.5vw, 3.8rem);
  }

  .footer-main {
    min-height: 0;
    grid-template-columns: 1fr auto;
  }

  .footer-main > div {
    grid-column: 1 / -1;
  }

  .footer-location {
    align-self: end;
  }
}

@media (max-width: 28rem) {
  .site-role,
  .theme-toggle__label {
    display: none;
  }

  .header-controls {
    gap: 0.3rem;
  }

  .fact-sheet div {
    grid-template-columns: 6rem 1fr;
  }

  .learning-sequence {
    grid-template-columns: 1fr;
  }

  .learning-sequence li,
  .learning-sequence li:nth-child(2) {
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .learning-sequence li:not(:first-child) {
    padding-left: 0;
  }

  .learning-sequence strong {
    margin-top: 2.2rem;
  }

  .footer-main {
    display: block;
  }

  .footer-location,
  .footer-main nav {
    margin-top: 2.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .skip-link {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .operations {
    color: var(--ink);
    background: white;
  }

  .section-date,
  .section-overline,
  .body-copy,
  .scope-index dt {
    color: var(--ink-soft);
  }
}
