@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Mono:wght@300;400;500&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --paper: #f0e8d8;
  --paper-light: #faf6ed;
  --ink: #181613;
  --red: #dd392c;
  --acid: #d7f64a;
  --blue: #2944c8;
  --rule: 2px solid var(--ink);
  --display: "Archivo Black", sans-serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --mono: "DM Mono", monospace;
  --page-pad: clamp(18px, 4vw, 68px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(24, 22, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 22, 19, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.42'/%3E%3C/svg%3E");
}

::selection {
  color: var(--paper-light);
  background: var(--red);
}

a {
  color: inherit;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--paper-light);
  background: var(--ink);
  font: 500 0.72rem var(--mono);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 240px 1fr 190px;
  min-height: 78px;
  color: var(--paper-light);
  border-bottom: 1px solid var(--paper-light);
  background: var(--ink);
}

.wordmark {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 5px;
  padding: 13px 20px;
  border-right: 1px solid rgba(250, 246, 237, 0.45);
  font: 1.05rem/0.85 var(--display);
  text-decoration: none;
}

.wordmark span:last-of-type {
  color: var(--red);
}

.wordmark sup {
  align-self: start;
  margin-top: 3px;
  font: 0.48rem var(--mono);
}

.era-nav {
  display: flex;
  justify-content: center;
}

.era-nav a {
  display: grid;
  min-width: 120px;
  place-items: center;
  padding: 10px 22px;
  border-right: 1px solid rgba(250, 246, 237, 0.25);
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.era-nav a:first-child {
  border-left: 1px solid rgba(250, 246, 237, 0.25);
}

.era-nav a:hover,
.era-nav a:focus-visible {
  color: var(--ink);
  background: var(--acid);
  outline: 0;
}

.header-stamp {
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--acid);
  border-left: 1px solid rgba(250, 246, 237, 0.45);
  font: 500 0.58rem/1.35 var(--mono);
  letter-spacing: 0.12em;
  text-align: center;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 36px var(--page-pad) 0;
  overflow: hidden;
  border-bottom: 5px solid var(--ink);
}

.hero::before {
  position: absolute;
  top: 112px;
  right: -8vw;
  width: clamp(240px, 34vw, 560px);
  aspect-ratio: 1;
  border: clamp(35px, 5vw, 80px) solid var(--red);
  border-radius: 50%;
  content: "";
  opacity: 0.98;
}

.hero-kicker {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 7px 10px 6px;
  color: var(--paper-light);
  background: var(--ink);
  font-size: 0.62rem;
  font-weight: 500;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.55fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: end;
  margin-top: clamp(42px, 8vh, 92px);
}

.hero-deck {
  max-width: 560px;
  margin: 0 0 24px 0.4vw;
  font-size: clamp(1rem, 1.7vw, 1.55rem);
  font-style: italic;
  line-height: 1.3;
}

.hero h1 {
  max-width: 1140px;
  margin: 0;
  font: clamp(4.8rem, 11.5vw, 11.8rem)/0.73 var(--display);
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--red);
  transform: translateX(clamp(12px, 5vw, 88px));
}

.hero-note {
  position: relative;
  align-self: center;
  padding: 20px 0 16px;
  border-top: 5px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(-2deg);
}

.hero-note::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 36%;
  height: 5px;
  background: var(--red);
  content: "";
}

.hero-note p {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.5;
}

.annotation-arrow {
  position: absolute;
  top: -68px;
  right: 4px;
  color: var(--red);
  font: 4.6rem var(--serif);
  transform: rotate(25deg);
}

.cursor-note {
  padding-top: 11px;
  border-top: 1px dotted var(--ink);
  font: 0.58rem var(--mono);
  text-transform: uppercase;
}

.cursor-note span {
  color: var(--red);
  animation: blink 900ms steps(1) infinite;
}

.hero-timeline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: clamp(60px, 10vh, 120px) 0 26px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-timeline-item {
  position: relative;
  min-height: 82px;
  padding: 12px 26px 12px 10px;
  border-right: 1px solid var(--ink);
}

.hero-timeline-item:last-child {
  border: 0;
}

.hero-timeline-item span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font: 0.56rem var(--mono);
}

.hero-timeline-item strong {
  font: 500 0.65rem var(--mono);
  text-transform: uppercase;
}

.hero-timeline-item b {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: -12px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: var(--paper);
  font: 1rem var(--mono);
}

.start-link,
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 16px;
  color: var(--paper-light);
  background: var(--red);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font: 500 0.68rem var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.start-link {
  position: relative;
  z-index: 3;
  margin-bottom: 46px;
}

.start-link:hover,
.start-link:focus-visible,
.back-top:hover,
.back-top:focus-visible {
  box-shadow: 2px 2px 0 var(--ink);
  outline: 0;
  transform: translate(4px, 4px);
}

.hero-marquee {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  gap: 3vw;
  margin: 0 calc(-1 * var(--page-pad));
  padding: 12px 20px 9px;
  overflow: hidden;
  color: var(--paper-light);
  background: var(--red);
  border-top: 3px solid var(--ink);
  font: clamp(1.8rem, 3.4vw, 3.7rem) var(--display);
  white-space: nowrap;
}

.hero-marquee span:nth-child(even) {
  color: var(--acid);
}

.method-strip {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 110px;
  border-bottom: 5px solid var(--ink);
  background: var(--acid);
}

.method-strip > * {
  padding: clamp(22px, 4vw, 52px);
}

.method-strip > div:first-child {
  border-right: var(--rule);
}

.method-strip span {
  font-size: 0.62rem;
  font-weight: 500;
}

.method-strip p {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.55rem);
  line-height: 1.35;
}

.method-mark {
  display: grid;
  place-items: center;
  border-left: var(--rule);
  font: 5rem var(--display);
}

.era {
  --accent: var(--red);
  padding: clamp(64px, 7vw, 112px) var(--page-pad);
  border-bottom: 5px solid var(--ink);
}

.era-yellow { --accent: #c89400; }
.era-red { --accent: var(--red); }
.era-green { --accent: #17785b; }
.era-blue { --accent: var(--blue); }

.era-heading {
  display: grid;
  grid-template-columns: 0.2fr 1.15fr 0.7fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 5px solid var(--ink);
}

.era-number {
  color: var(--accent);
  font: clamp(5.5rem, 10vw, 10rem)/0.75 var(--display);
  letter-spacing: -0.08em;
}

.era-eyebrow {
  margin: 0 0 18px;
  font-size: 0.61rem;
  font-weight: 500;
}

.era-heading h2,
.section-header h2 {
  margin: 0;
  font: clamp(3.5rem, 7vw, 7.4rem)/0.84 var(--display);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.era-heading h2 {
  max-width: 830px;
}

.era-intro {
  margin: 0;
  padding-top: 5px;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.5;
}

.era-note {
  max-width: 760px;
  margin: 35px 0 70px auto;
  padding: 16px 0 16px 25px;
  border-left: 8px solid var(--accent);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
}

.era-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font: 500 0.58rem var(--mono);
  font-style: normal;
  letter-spacing: 0.1em;
}

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 28px 22px;
  align-items: start;
  counter-reset: specimen;
}

.term-card,
.term-card-1,
.term-card-2,
.term-card-3,
.term-card-4,
.term-card-5,
.term-card-6 {
  position: relative;
  grid-column: span 4;
  margin-top: 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 5px solid var(--ink);
  background: transparent;
  box-shadow: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
  counter-increment: specimen;
}

.term-card:nth-child(7n + 1),
.term-card:nth-child(7n + 5) {
  grid-column: span 7;
}

.term-card:nth-child(7n + 2),
.term-card:nth-child(7n + 6) {
  grid-column: span 5;
}

.term-card:nth-child(7n + 3) {
  grid-column: 2 / span 4;
}

.term-card:nth-child(7n + 4) {
  grid-column: span 7;
}

.term-card:hover {
  color: var(--paper-light);
  background: var(--ink);
  box-shadow: none;
  transform: translateY(-4px);
}

.term-card::before {
  position: absolute;
  z-index: 0;
  top: 8px;
  right: 4px;
  color: var(--accent);
  content: counter(specimen, decimal-leading-zero);
  font: 4rem var(--display);
  opacity: 0.12;
}

.card-meta,
.meaning-today,
.term-card h3,
.term-card details {
  position: relative;
  z-index: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: var(--accent);
  font-size: 0.56rem;
  font-weight: 500;
}

.card-meta span:last-child {
  text-align: right;
}

.term-card h3 {
  margin: 44px 14px 38px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: clamp(3.2rem, 7vw, 8rem)/0.75 var(--display);
  letter-spacing: -0.075em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.term-card:hover h3,
.term-card.is-open h3 {
  color: var(--paper-light);
  -webkit-text-stroke: 0;
}

.term-card.is-open {
  color: var(--paper-light);
  background: var(--ink);
}

.meaning-today {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  padding: 0 16px 22px;
}

.field-label {
  display: block;
  font: 500 0.53rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meaning-today p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.42;
}

.term-card details {
  margin: 0;
  border-top: 1px solid currentColor;
}

.term-card summary {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  cursor: pointer;
  font: 500 0.57rem var(--mono);
  letter-spacing: 0.09em;
  list-style: none;
  transition: color 150ms ease, background 150ms ease;
}

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

.term-card summary:hover,
.term-card summary:focus-visible {
  color: var(--ink);
  background: var(--acid);
  outline: 0;
}

.term-card summary span {
  color: var(--accent);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.term-card details[open] summary span {
  transform: rotate(45deg);
}

.details-body {
  padding: 22px 16px 26px;
  border-top: 1px dotted currentColor;
}

.details-body > div + div {
  margin-top: 20px;
}

.details-body p {
  margin: 7px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.then-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.details-body blockquote,
.details-body > p {
  margin: 22px 0 0;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--acid);
  font-style: italic;
}

.shift-label {
  display: inline-block;
  margin-top: 22px;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid currentColor;
  font: 500 0.52rem var(--mono);
  text-transform: uppercase;
}

.section-header {
  display: grid;
  grid-template-columns: 0.35fr 1.25fr 0.65fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: 60px;
}

.section-header > p {
  margin: 0;
  line-height: 1.45;
}

.section-header > p:first-child {
  align-self: start;
  padding-top: 5px;
  font-size: 0.6rem;
}

.evolution-section {
  padding: clamp(64px, 7vw, 112px) var(--page-pad);
  color: var(--paper-light);
  background: var(--ink);
  border-bottom: 5px solid var(--ink);
}

.evolution-section .section-header h2 {
  color: var(--red);
}

.evolution-list {
  border-top: 5px solid var(--paper-light);
}

.evolution-row {
  display: grid;
  grid-template-columns: 0.45fr 1.2fr 0.65fr;
  gap: clamp(22px, 4vw, 70px);
  align-items: center;
  min-height: 180px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(250, 246, 237, 0.55);
}

.evolution-term {
  font: clamp(2.8rem, 5vw, 5.8rem)/0.85 var(--display);
  letter-spacing: -0.05em;
}

.evolution-term span {
  display: block;
  margin-bottom: 10px;
  color: var(--acid);
  font: 0.58rem var(--mono);
  letter-spacing: 0.08em;
}

.evolution-path {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.evolution-path span {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(250, 246, 237, 0.65);
  font: 0.56rem var(--mono);
  text-transform: uppercase;
}

.evolution-path b {
  color: var(--red);
}

.evolution-row > p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.5;
}

.evolution-caption {
  margin: 40px 0 0;
  color: var(--acid);
  font-size: 0.58rem;
  text-align: right;
}

.why-section {
  padding: clamp(64px, 7vw, 112px) var(--page-pad);
  border-bottom: 5px solid var(--ink);
}

.why-section .section-header {
  grid-template-columns: 0.35fr 1.6fr;
}

.section-intro {
  max-width: 880px;
  margin: -18px 0 54px auto;
  padding: 20px 0 0 28px;
  border-top: 1px solid var(--ink);
  border-left: 8px solid var(--red);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.55;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 5px solid var(--ink);
}

.reason-grid article {
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  min-height: 340px;
  padding: 24px 24px 40px 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.reason-grid article:nth-child(3n + 2),
.reason-grid article:nth-child(3n + 3) {
  padding-left: 24px;
}

.reason-grid article:nth-child(3n) {
  border-right: 0;
}

.reason-grid article:nth-child(even) {
  background: rgba(221, 57, 44, 0.07);
}

.reason-number {
  color: var(--red);
  font-size: 0.62rem;
}

.reason-grid h3 {
  margin: 55px 0 18px;
  font: clamp(2rem, 3.5vw, 4rem)/0.88 var(--display);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.reason-grid p {
  max-width: 340px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.reason-example {
  max-width: 340px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px dotted var(--ink);
}

.reason-example span {
  display: block;
  margin-bottom: 9px;
  color: var(--red);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.reason-example strong {
  display: block;
  margin-bottom: 8px;
  font: 500 0.68rem/1.4 var(--mono);
  text-transform: uppercase;
}

.reason-example p {
  font-size: 0.86rem;
  line-height: 1.42;
}

.archaeology-section {
  display: grid;
  grid-template-columns: minmax(310px, 0.55fr) 1fr;
  gap: clamp(45px, 7vw, 110px);
  padding: clamp(64px, 7vw, 112px) var(--page-pad);
  color: var(--paper-light);
  background: var(--red);
  border-bottom: 5px solid var(--ink);
}

.archaeology-title {
  position: sticky;
  top: 112px;
  align-self: start;
}

.archaeology-title > p:first-child {
  font-size: 0.6rem;
  font-weight: 500;
}

.archaeology-title h2 {
  margin: 28px 0;
  font: clamp(3.8rem, 7.5vw, 8rem)/0.78 var(--display);
  letter-spacing: -0.065em;
}

.archaeology-title > p:last-child {
  max-width: 500px;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  font-size: 1.03rem;
  line-height: 1.5;
}

.fossil-list {
  border-top: 5px solid var(--paper-light);
}

.fossil {
  display: grid;
  grid-template-columns: 40px 0.75fr 1fr auto;
  gap: 22px;
  align-items: center;
  min-height: 116px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(250, 246, 237, 0.7);
}

.fossil-index {
  color: var(--acid);
  font-size: 0.56rem;
}

.fossil h3 {
  margin: 0;
  font: clamp(1.8rem, 3.5vw, 3.8rem)/0.88 var(--display);
  letter-spacing: -0.05em;
}

.fossil p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.fossil-status {
  justify-self: end;
  max-width: 165px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 500 0.5rem var(--mono);
  text-align: center;
  transform: rotate(-2deg);
}

.fossil:nth-child(even) .fossil-status {
  background: var(--paper-light);
  transform: rotate(2deg);
}

.mini-timeline {
  padding: clamp(64px, 7vw, 112px) var(--page-pad);
  border-bottom: 5px solid var(--ink);
}

.mini-timeline .section-header {
  grid-template-columns: 0.35fr 1.6fr;
}

.periods {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 48px;
  border-top: 5px solid var(--ink);
}

.periods article {
  position: relative;
  min-height: 0;
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--ink);
}

.periods article:not(:first-child) {
  padding-left: 24px;
}

.periods article:last-child {
  border: 0;
}

.timeline-dot {
  position: absolute;
  top: -69px;
  left: -2px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper-light);
  background: var(--ink);
  border-radius: 50%;
  font: 0.65rem var(--mono);
}

.period-systems {
  min-height: 34px;
  margin: 0 0 24px;
  color: var(--red);
  font-size: 0.56rem;
  font-weight: 500;
}

.periods h3 {
  min-height: 0;
  margin: 0 0 28px;
  font: clamp(2.2rem, 3.4vw, 4rem)/0.86 var(--display);
  letter-spacing: -0.055em;
}

.periods strong {
  display: block;
  margin: 28px 0 12px;
  color: var(--blue);
  font: 500 0.65rem/1.5 var(--mono);
}

.period-description {
  margin: 0;
  line-height: 1.45;
}

.period-shift {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px dotted var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.period-shift span {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font: 500 0.52rem var(--mono);
  letter-spacing: 0.08em;
}

.period-details {
  margin: 28px 0 0;
  padding: 0;
}

.period-details div {
  padding: 13px 0;
  border-top: 1px solid rgba(27, 26, 23, 0.22);
}

.period-details dt {
  margin-bottom: 5px;
  color: var(--blue);
  font: 500 0.5rem var(--mono);
  letter-spacing: 0.08em;
}

.period-details dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.timeline-caveat {
  max-width: 760px;
  margin: 42px 0 0 auto;
  padding: 16px 0 16px 24px;
  border-left: 8px solid var(--red);
  font-style: italic;
  line-height: 1.5;
}

.final-section {
  position: relative;
  min-height: 0;
  padding: clamp(64px, 7vw, 112px) var(--page-pad);
  overflow: hidden;
  color: var(--paper-light);
  background: var(--blue);
}

.final-section::before {
  position: absolute;
  right: -12vw;
  bottom: -24vw;
  width: 58vw;
  aspect-ratio: 1;
  border: clamp(50px, 8vw, 130px) solid var(--acid);
  border-radius: 50%;
  content: "";
}

.final-stamp {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 8px 11px;
  border: 1px solid var(--paper-light);
  font-size: 0.58rem;
}

.final-section h2 {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: clamp(55px, 8vw, 110px) 0;
  font: clamp(4.2rem, 10vw, 10.5rem)/0.78 var(--display);
  letter-spacing: -0.07em;
}

.final-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(35px, 7vw, 100px);
  max-width: 1080px;
  font-size: clamp(1.2rem, 2.1vw, 1.9rem);
  line-height: 1.35;
}

.final-copy p {
  margin: 0;
}

.final-line {
  padding: 18px 20px;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-1deg);
}

.back-top {
  position: relative;
  z-index: 2;
  margin-top: 80px;
  background: var(--ink);
}

footer {
  padding: 24px;
  color: var(--paper-light);
  background: var(--ink);
  border-top: 1px solid rgba(250, 246, 237, 0.3);
  font: 0.68rem var(--mono);
  text-align: center;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 180px 1fr 140px;
  }

  .era-nav a {
    min-width: 88px;
    padding-inline: 12px;
  }

  .hero-grid {
    grid-template-columns: 1fr 280px;
  }

  .era-heading {
    grid-template-columns: 100px 1fr;
  }

  .era-intro {
    grid-column: 2;
  }

  .term-card,
  .term-card-1,
  .term-card-2,
  .term-card-3,
  .term-card-4,
  .term-card-5,
  .term-card-6,
  .term-card:nth-child(7n + 1),
  .term-card:nth-child(7n + 2),
  .term-card:nth-child(7n + 3),
  .term-card:nth-child(7n + 4),
  .term-card:nth-child(7n + 5),
  .term-card:nth-child(7n + 6) {
    grid-column: span 6;
  }

  .section-header {
    grid-template-columns: 0.3fr 1.4fr;
  }

  .section-header > p:last-child {
    grid-column: 2;
  }

  .archaeology-section {
    grid-template-columns: 1fr;
  }

  .archaeology-title {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .wordmark {
    border-right: 0;
  }

  .header-stamp {
    border-left: 1px solid rgba(250, 246, 237, 0.4);
  }

  .era-nav {
    grid-column: 1 / -1;
    order: 3;
    border-top: 1px solid rgba(250, 246, 237, 0.35);
  }

  .era-nav a {
    flex: 1;
    min-width: 0;
    padding: 12px 5px;
    font-size: 0.54rem;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    top: 130px;
    right: -150px;
    width: 360px;
    border-width: 48px;
    opacity: 0.8;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 22vw, 7.2rem);
  }

  .hero h1 span {
    transform: translateX(8px);
  }

  .hero-note {
    max-width: 420px;
    margin-left: 12vw;
  }

  .hero-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-timeline-item:nth-child(3) {
    border-right: 0;
  }

  .hero-timeline-item:nth-child(-n + 3) {
    border-bottom: 1px solid var(--ink);
  }

  .hero-timeline-item:nth-child(3) b {
    display: none;
  }

  .hero-marquee {
    justify-content: flex-start;
  }

  .method-strip {
    grid-template-columns: 1fr 72px;
  }

  .method-strip > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 0;
    border-right: 0;
  }

  .method-strip p {
    padding-top: 18px;
  }

  .era-heading {
    grid-template-columns: 64px 1fr;
    gap: 18px;
  }

  .era-number {
    font-size: 4.6rem;
  }

  .era-heading h2,
  .section-header h2 {
    font-size: clamp(3rem, 13vw, 5rem);
  }

  .era-intro {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid var(--ink);
  }

  .era-note {
    margin-bottom: 50px;
  }

  .term-card,
  .term-card-1,
  .term-card-2,
  .term-card-3,
  .term-card-4,
  .term-card-5,
  .term-card-6,
  .term-card:nth-child(n) {
    grid-column: 1 / -1;
  }

  .term-card h3 {
    font-size: clamp(3.8rem, 18vw, 6.4rem);
  }

  .section-header,
  .why-section .section-header,
  .mini-timeline .section-header {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-header > p:last-child,
  .section-header > * {
    grid-column: 1;
  }

  .section-intro {
    margin-top: -20px;
  }

  .evolution-row {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 0;
  }

  .reason-grid article {
    grid-column: span 6;
    min-height: 390px;
    padding: 22px !important;
    border-right: 1px solid var(--ink);
  }

  .reason-grid article:nth-child(even) {
    border-right: 0;
  }

  .fossil {
    grid-template-columns: 30px 1fr;
    gap: 12px 18px;
  }

  .fossil p,
  .fossil-status {
    grid-column: 2;
  }

  .fossil-status {
    justify-self: start;
  }

  .periods {
    grid-template-columns: 1fr;
    padding: 0 0 0 28px;
    border-top: 0;
    border-left: 5px solid var(--ink);
  }

  .periods article,
  .periods article:not(:first-child) {
    min-height: 0;
    padding: 10px 0 50px 20px;
    border-right: 0;
  }

  .timeline-dot {
    top: 0;
    left: -51px;
  }

  .periods h3 {
    min-height: 0;
  }

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

  .final-section h2 {
    font-size: clamp(3.8rem, 17vw, 6.5rem);
  }

  .final-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .hero-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-timeline-item:nth-child(2n) {
    border-right: 0;
  }

  .hero-timeline-item:nth-child(3) {
    border-right: 1px solid var(--ink);
  }

  .hero-timeline-item:nth-child(-n + 4) {
    border-bottom: 1px solid var(--ink);
  }

  .hero-timeline-item b {
    display: none;
  }

  .meaning-today,
  .then-now {
    grid-template-columns: 1fr;
  }

  .reason-grid article {
    grid-column: 1 / -1;
    min-height: 0;
    border-right: 0;
  }

  .reason-example {
    margin-top: 28px;
  }

  .period-details {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
