/* 383.li
   Malachite, bone and copper. One family (Archivo) whose width and weight
   axes carry meaning, and STIX Two for the equations in figure captions. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* STIX Two, subset to exactly the glyphs the equations use (Google Fonts
   `text=` subsetting). Anything else falls back per glyph. */
@font-face {
  font-family: "STIX Two Text";
  src: url("fonts/stix-math-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "STIX Two Text";
  src: url("fonts/stix-math-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0e2620;
  --bg-deep: #0a1c17;
  --bone: #ebe7dc;
  --bone-74: rgb(235 231 220 / 0.74);
  --bone-56: rgb(235 231 220 / 0.56);
  --bone-14: rgb(235 231 220 / 0.14);
  --copper: #d98c5f;
  --copper-hi: #f4c09d;
  --copper-deep: #8f4d2b;
  --verdigris: #7cc4ad;
  --limestone: #dfe3da;
  --ink: #13201b;
  --ink-74: rgb(19 32 27 / 0.74);
  --ink-56: rgb(19 32 27 / 0.56);
  --ink-14: rgb(19 32 27 / 0.14);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-math: "STIX Two Text", "Cambria Math", "Times New Roman", serif;

  --fs-caption: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.0625rem, 0.95rem + 0.35vw, 1.3125rem);
  --fs-h3: 1.5rem;
  --fs-h2: clamp(2.125rem, 1.25rem + 2.8vw, 3.75rem);
  --fs-h1: clamp(2.125rem, 1.1rem + 3vw, 4rem);
  --fs-chapter: clamp(2.75rem, 1.2rem + 5vw, 6rem);

  --margin: clamp(20px, 4.2vw, 72px);
  --gutter: clamp(14px, 1.8vw, 28px);
  --bar-h: clamp(56px, 7vh, 76px);
  --stage-h: 100vh;
  --foot-pad: clamp(18px, 3.5vh, 36px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (height: 100lvh) {
  :root { --stage-h: 100lvh; }
}

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

html {
  background: var(--bg);
  color: var(--bone);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ol,
ul {
  margin: 0;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  font-stretch: 110%;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

a {
  color: inherit;
}

::selection {
  background: var(--copper);
  color: var(--bg);
}

:focus-visible {
  outline: 3px double var(--copper-hi);
  outline-offset: 5px;
}

.gl {
  display: block;
  width: 100%;
  height: 100%;
}

.skip {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: var(--margin);
  padding: 10px 14px;
  background: var(--bone);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

/* Bar ------------------------------------------------------------------ */

.bar {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--margin) 0;
  color: var(--bar-fg, var(--bone));
  pointer-events: none;
}

.bar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -18px;
  background: var(--bar-scrim, rgb(14 38 32 / 0.7));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
  pointer-events: none;
}

.no-js .bar[data-tone="light"] {
  color: var(--ink);
}

.bar > * {
  pointer-events: auto;
}

.bar__home {
  display: block;
  padding: 10px 0;
}

.bar__mark {
  display: block;
  width: auto;
  height: 22px;
}

.bar__nav {
  position: relative;
  display: flex;
  gap: clamp(14px, 2.6vw, 44px);
}

.bar__nav a {
  padding: 10px 0;
  font-size: var(--fs-small);
  font-weight: 460;
  text-decoration: none;
  opacity: 0.74;
  transition: opacity 0.3s;
}

.bar__nav a:hover,
.bar__nav a[aria-current="true"] {
  opacity: 1;
}

.bar__marker {
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 1px;
  height: 4px;
  border-block: 1px solid currentColor;
  opacity: 0;
  pointer-events: none;
  transform-origin: 0 0;
}

.bar[data-tone="light"] :focus-visible {
  outline-color: var(--copper-deep);
}

/* Shared figure captions -------------------------------------------------- */

.figline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
}

.hero__lede,
.hero .caption,
.hero .equation,
.thesis__copy p,
.contact__place,
.contact .caption {
  text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg);
}

.caption {
  display: flex;
  gap: 0.9em;
  max-width: 62ch;
  font-size: var(--fs-caption);
  font-stretch: 94%;
  line-height: 1.45;
  color: var(--bone-56);
}

.caption__fig {
  flex: none;
  font-weight: 600;
  color: var(--bone-74);
  font-variant-numeric: tabular-nums;
}

.hint--coarse {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .hint--fine { display: none; }
  .hint--coarse { display: inline; }
}

.equation {
  font-family: var(--font-math);
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--bone-74);
  white-space: nowrap;
}

.equation var {
  font-style: italic;
}

.equation[data-equation] {
  display: grid;
  justify-items: end;
}

.equation[data-equation] > span {
  grid-area: 1 / 1;
}

/* Hero ------------------------------------------------------------------ */

.field-wrap {
  position: relative;
}

.field-wrap__gl {
  position: sticky;
  top: 0;
  height: var(--stage-h);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto auto;
  column-gap: var(--gutter);
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(-1 * var(--stage-h));
  padding: calc(var(--bar-h) + 1vh) var(--margin) var(--foot-pad);
}

.hero__mark {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  padding-block: 3vh 5vh;
  container-type: size;
}

.mark {
  display: block;
  width: min(84%, 90vh);
  width: min(84cqw, 226.5cqh);
  height: auto;
  aspect-ratio: 226.5 / 100;
  overflow: visible;
}

.hero__title {
  position: relative;
  grid-column: 1 / span 9;
  grid-row: 2;
  max-width: 23ch;
  font-size: var(--fs-h1);
  font-weight: 520;
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.verb {
  position: relative;
}

.verb__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 5px;
  opacity: 0;
  border-block: 1px solid var(--copper);
  pointer-events: none;
  transform-origin: 0 0;
}

.hero__lede {
  grid-column: 10 / -1;
  grid-row: 2;
  align-self: end;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--bone-74);
}

.hero__figline {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: clamp(22px, 4.5vh, 48px);
}

/* Split words for the intro reveal. */
.w {
  display: inline-block;
  overflow: clip;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
  vertical-align: top;
}

.wi {
  display: inline-block;
}

/* Thesis ------------------------------------------------------------------ */

.thesis {
  position: relative;
  z-index: 1;
}

.live .thesis {
  height: 320vh;
}

.thesis__stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: var(--gutter);
  min-height: var(--stage-h);
  padding: calc(var(--bar-h) + 7vh) var(--margin) var(--foot-pad);
}

.live .thesis__stage {
  position: sticky;
  top: 0;
  height: var(--stage-h);
}

.thesis__copy {
  grid-column: 1 / span 5;
  grid-row: 1;
}

.thesis__copy h2 {
  margin-bottom: 0.7em;
}

.thesis__copy p {
  max-width: 40ch;
  color: var(--bone-74);
}

.thesis__copy p + p {
  margin-top: 1em;
}

.mass {
  position: relative;
  grid-column: 7 / -1;
  grid-row: 1;
  margin-bottom: 4vh;
}

.mass__light,
.mass__heavy {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  will-change: transform;
}

.mass__light {
  font-size: clamp(1.2rem, 0.8rem + 1.4vw, 2.1rem);
  font-weight: 100;
  font-stretch: 125%;
  letter-spacing: 0.01em;
  color: var(--bone-74);
}

.mass__heavy {
  padding: 0.14em 0.3em 0.1em;
  background: var(--bone);
  color: var(--bg);
  font-size: clamp(1.35rem, 0.6rem + 2.6vw, 3.4rem);
  font-weight: 850;
  font-stretch: 68%;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transform-origin: 50% 100%;
}

.mass__ground {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  border-block: 1px solid var(--copper);
  transform-origin: 0 50%;
}

/* Without the script the heavy words simply sit in a pile. */
html:not(.live) .mass {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 8px;
  padding-bottom: 12px;
}

html:not(.live) .mass__light {
  display: none;
}

html:not(.live) .mass__heavy {
  position: static;
}

.thesis__figline {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* Focus: one pinned stage, three figures ---------------------------------- */

.focus {
  position: relative;
}

.live .focus {
  height: 660vh;
}

.focus__stage {
  display: grid;
  gap: 18vh;
  padding: calc(var(--bar-h) + 8vh) var(--margin) 12vh;
}

.live .focus__stage {
  position: sticky;
  top: 0;
  display: block;
  height: var(--stage-h);
  padding: 0;
  overflow: hidden;
}

.focus__gl,
.focus__labels {
  position: absolute;
  inset: 0;
}

html:not(.live) .focus__gl,
html:not(.live) .focus__labels {
  display: none;
}

.focus__labels {
  pointer-events: none;
}

.label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: var(--fs-caption);
  font-stretch: 94%;
  line-height: 1.2;
  color: var(--bone-74);
  white-space: nowrap;
  will-change: transform;
}

.label {
  text-shadow: 0 0 4px var(--bg), 0 0 10px var(--bg);
}

.label--math {
  font-family: var(--font-math);
  font-size: 1rem;
  font-style: italic;
}

.focus__intro,
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: var(--gutter);
  row-gap: 1.2em;
  align-content: start;
}

.live .focus__intro,
.live .chapter {
  position: absolute;
  inset: calc(var(--bar-h) + 4vh) var(--margin) calc(var(--foot-pad) + 64px);
  row-gap: 0;
}

.focus__intro h2 {
  grid-column: 1 / span 7;
  grid-row: 1;
}

.focus__intro p {
  grid-column: 1 / span 5;
  grid-row: 2;
  align-self: start;
  max-width: 42ch;
  margin-top: 1.4em;
  color: var(--bone-74);
}

.chapter__title {
  font-size: var(--fs-chapter);
  font-weight: 540;
  font-stretch: 110%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.chapter__body {
  max-width: 38ch;
  color: var(--bone-74);
}

.chapter__record h4 {
  margin-bottom: 0.7em;
  font-size: var(--fs-caption);
  font-weight: 600;
  font-stretch: 94%;
  color: var(--bone-56);
}

.chapter__record ul {
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
}

.chapter__record li {
  display: flex;
  gap: 0.75em;
  align-items: baseline;
  padding-block: 0.28em;
}

.chapter__record li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 4px;
  border-block: 1px solid var(--copper);
  transform: translateY(-0.28em);
}

.chapter--energy .chapter__title { grid-column: 1 / -1; grid-row: 1; }
.chapter--energy .chapter__body { grid-column: 1 / span 4; grid-row: 3; align-self: end; }
.chapter--energy .chapter__record { grid-column: 1 / span 4; grid-row: 4; margin-top: 1.4em; }

.chapter--materials .chapter__title { grid-column: 1 / span 6; grid-row: 1; }
.chapter--materials .chapter__body { grid-column: 1 / span 5; grid-row: 2; margin-top: 1.1em; }
.chapter--materials .chapter__record { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: start; padding-top: 0.6em; }

.chapter--technology .chapter__title { grid-column: 1 / span 6; grid-row: 1; }
.chapter--technology .chapter__body { grid-column: 1 / span 4; grid-row: 2; margin-top: 1.1em; }
.chapter--technology .chapter__record { grid-column: 1 / span 4; grid-row: 3; margin-top: 1.6em; }

.focus__figline {
  display: none;
}

.live .focus__figline {
  position: absolute;
  right: var(--margin);
  bottom: var(--foot-pad);
  left: var(--margin);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.live .focus__figline .caption {
  grid-area: 1 / 1;
}

.live .focus__figline .equation {
  grid-area: 1 / 2;
}

.focus__figline .caption,
.focus__figline .equation,
.chapter__body,
.chapter__record {
  text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg);
}

.live [data-part],
.live [data-part-caption] {
  opacity: 0;
}

/* Posture: the one light section ------------------------------------------ */

.posture {
  position: relative;
  background: var(--limestone);
  color: var(--ink);
}

.posture ::selection {
  background: var(--ink);
  color: var(--limestone);
}

.posture :focus-visible {
  outline-color: var(--copper-deep);
}

.posture .caption { color: var(--ink-74); }
.posture .caption__fig { color: var(--ink); }

.posture__track {
  position: relative;
}

.live .posture__track {
  height: 260vh;
}

.posture__stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: var(--gutter);
  min-height: var(--stage-h);
  padding: calc(var(--bar-h) + 5vh) var(--margin) var(--foot-pad);
  overflow: hidden;
}

.live .posture__stage {
  position: sticky;
  top: 0;
  height: var(--stage-h);
}

.posture__gl {
  position: absolute;
  inset: 0;
}

.posture__copy {
  position: relative;
  grid-column: 7 / -1;
  grid-row: 1;
}

.posture__copy p {
  max-width: 44ch;
  margin-top: 1.1em;
  color: var(--ink-74);
}

.plate {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  align-self: center;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
}

.years {
  position: relative;
  grid-column: 7 / -1;
  grid-row: 2;
  align-self: center;
  padding-bottom: 3.4em;
}

.years__now {
  font-size: clamp(4.5rem, 2rem + 8vw, 10.5rem);
  font-weight: 280;
  font-stretch: 72%;
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.years__line {
  position: relative;
  height: 5px;
  margin-top: 3.2em;
  padding: 0;
  border-block: 1px solid var(--ink-14);
  list-style: none;
}

.years__fill {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  width: 100%;
  border-block: 1px solid var(--copper-deep);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

.years__line li {
  position: absolute;
  left: calc(var(--x, 0) * 100%);
  display: grid;
  gap: 2px;
  padding-left: 8px;
  border-left: 1px solid var(--ink-14);
  font-size: var(--fs-caption);
  font-stretch: 94%;
  line-height: 1.25;
  color: var(--ink-74);
  white-space: nowrap;
  transition: color 0.4s, border-color 0.4s;
}

.years__line li:nth-child(odd) {
  bottom: 9px;
  padding-bottom: 2px;
}

.years__line li:nth-child(even) {
  top: 9px;
  padding-top: 2px;
}

.years__line li.is-past {
  border-color: var(--copper-deep);
  color: var(--ink);
}

.years__y {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.posture__figline {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 3;
}

.principles {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 40px;
  padding: 12vh var(--margin) 20vh;
}

.principle {
  grid-column: span 4;
}

.principle h3 {
  margin-bottom: 0.55em;
  font-size: var(--fs-h3);
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -0.01em;
}

.principle p {
  max-width: 34ch;
  color: var(--ink-74);
}

/* Contact ---------------------------------------------------------------- */

.contact {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: var(--stage-h);
  padding: calc(var(--bar-h) + 6vh) var(--margin) var(--foot-pad);
  overflow: hidden;
}

.contact__gl {
  position: absolute;
  inset: 0;
}

.contact__inner {
  position: relative;
  align-self: center;
}

.contact h2 {
  max-width: 20ch;
}

.contact__email {
  margin-top: 0.12em;
  font-size: clamp(3rem, 0.8rem + 10.4vw, 12rem);
  font-weight: 450;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.contact__email a {
  text-decoration: underline double var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.contact__actions {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-top: 1.2em;
  font-size: var(--fs-small);
}

.copy {
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--bone);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline double var(--bone-56);
  text-underline-offset: 6px;
}

.copy:hover {
  text-decoration-color: var(--copper);
}

.copy__status {
  color: var(--verdigris);
}

.contact__place {
  margin-top: 2.2em;
  font-size: var(--fs-small);
  color: var(--bone-56);
}

.contact__figline {
  position: relative;
}

/* Footer ----------------------------------------------------------------- */

.foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px var(--gutter);
  padding: 40px var(--margin) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg-deep);
  color: var(--bone-56);
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.foot__legal {
  display: grid;
  gap: 6px;
  grid-column: 1 / span 7;
}

.foot__side {
  display: grid;
  gap: 6px;
  grid-column: 9 / -1;
  justify-items: end;
  text-align: right;
}

.foot a {
  color: var(--bone-74);
  text-decoration: underline double var(--bone-14);
  text-underline-offset: 4px;
}

.foot a:hover {
  color: var(--bone);
}

.motion-toggle {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--bone-74);
  font: inherit;
  cursor: pointer;
  text-decoration: underline double var(--bone-14);
  text-underline-offset: 4px;
}

.motion-toggle:hover {
  color: var(--bone);
}

.foot__colophon {
  grid-column: 1 / -1;
  max-width: 88ch;
  padding-top: 18px;
  border-top: 1px solid var(--bone-14);
}

/* Intro: hidden until the mark has drawn. The inline script removes .intro
   after a timeout if the module never claims it, so content cannot strand. */

.intro .hero__title,
.intro .hero__lede,
.intro .hero__figline,
.intro .bar {
  opacity: 0;
}

.intro .mark__strokes path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

/* Narrow screens ---------------------------------------------------------- */

@media (max-width: 900px) and (orientation: portrait), (max-width: 600px) {
  .hero__title {
    grid-column: 1 / -1;
    max-width: 18ch;
  }

  .hero__lede {
    grid-column: 1 / span 10;
    grid-row: 3;
    margin-top: 1.1em;
  }

  .hero__figline {
    grid-row: 4;
  }

  .hero {
    grid-template-rows: minmax(0, 1fr) auto auto auto;
  }

  .mark {
    width: min(100cqw, 226.5cqh);
  }

  .thesis__stage {
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-top: calc(var(--bar-h) + 3vh);
  }

  .thesis__copy {
    grid-column: 1 / -1;
  }

  .thesis__copy h2 {
    font-size: clamp(1.75rem, 7.4vw, 2.125rem);
  }

  .thesis__copy p {
    font-size: 0.9375rem;
  }

  .mass {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 3vh;
  }

  .thesis__figline {
    grid-row: 3;
  }

  .focus__intro h2,
  .focus__intro p,
  .chapter--energy .chapter__body,
  .chapter--energy .chapter__record,
  .chapter--materials .chapter__title,
  .chapter--materials .chapter__body,
  .chapter--materials .chapter__record,
  .chapter--technology .chapter__title,
  .chapter--technology .chapter__body,
  .chapter--technology .chapter__record {
    grid-column: 1 / -1;
  }

  .live .focus__intro,
  .live .chapter {
    bottom: calc(var(--foot-pad) + 96px);
  }

  .live .focus__figline .equation {
    display: none;
  }

  .chapter__record {
    font-size: var(--fs-caption);
    line-height: 1.45;
  }

  .chapter__record h4,
  .chapter__record ul,
  .chapter__record li {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: inherit;
  }

  .chapter__record h4::after {
    content: ": ";
  }

  .chapter__record li::before {
    display: none;
  }

  .chapter__record li:not(:last-child)::after {
    content: ";";
  }

  .chapter__record li:last-child::after {
    content: ".";
  }

  /* Materials and Technology keep their text together above the figure. */
  .chapter--materials,
  .chapter--technology {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .chapter--materials .chapter__body,
  .chapter--technology .chapter__body {
    grid-row: 2;
  }

  .chapter--materials .chapter__record,
  .chapter--technology .chapter__record {
    grid-row: 3;
    align-self: start;
    margin-top: 0.9em;
    padding-top: 0;
  }

  .posture__stage {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    padding-top: calc(var(--bar-h) + 3vh);
  }

  .posture__copy {
    grid-column: 1 / -1;
  }

  .plate {
    grid-column: 3 / span 8;
    grid-row: 2;
    max-height: 30vh;
    justify-self: center;
    width: auto;
    height: 100%;
  }

  .years {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .years__now {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  .posture__figline {
    grid-row: 4;
  }

  .principle {
    grid-column: 1 / -1;
  }

  .foot__legal,
  .foot__side {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .bar__nav {
    gap: 14px;
  }

  .bar__nav a {
    font-size: 0.875rem;
  }

  .bar__mark {
    height: 18px;
  }

  /* Earlier events stay readable to assistive tech, just not on screen. */
  .years__line li:not(.is-last) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .years__line li.is-last {
    left: 0;
  }
}

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

html.motion-off {
  scroll-behavior: auto;
}

/* Short landscape screens: let the hero grow past the viewport so the mark
   keeps its row. The pinned layouts are switched off there by main.js. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: 580px;
  }

  .hero__mark {
    min-height: 210px;
  }
}
