@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f9f6;
  --ink: #20221e;
  --muted: #595c54;
  --line: #d6d7cf;
  --accent: #c14b25;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Inter, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(89%, 82rem); margin-inline: auto; }
.skip { position: absolute; z-index: 4; padding: .75rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.75rem; font-weight: 680; letter-spacing: -.082em; }
.brand-mark {
  width: 1.9rem;
  height: 1.46rem;
  background: var(--accent);
  clip-path: polygon(0 0, 28% 0, 46% 44%, 65% 0, 100% 0, 56% 100%, 42% 100%);
}
nav { display: flex; gap: clamp(1rem, 2.7vw, 2.8rem); }
nav a, .footer a { font-size: .875rem; line-height: 1.5; }
nav a { padding-block: .65rem; }
nav a:hover, .footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3.7rem, 6vw, 6.3rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .72rem;
  font: 500 .78rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #a34121;
}
.eyebrow span { width: 1.7rem; height: 2px; background: var(--accent); }
h1 { margin-block: 1.45rem 1.5rem; font-weight: 510; font-size: clamp(4rem, 6.95vw, 6.75rem); line-height: .99; letter-spacing: -.077em; }
.period { color: var(--accent); }
.summary { max-width: 27.5rem; color: var(--muted); font-size: clamp(1.04rem, 1.3vw, 1.2rem); line-height: 1.58; letter-spacing: -.025em; }

.study { min-width: 0; }
.plot {
  position: relative;
  aspect-ratio: 1.65;
  background-image: radial-gradient(#cccec4 .7px, transparent .9px);
  background-size: 12px 12px;
  background-position: center;
}
.plot canvas { display: block; width: 100%; height: 100%; }
.register { position: absolute; width: 11px; height: 11px; pointer-events: none; color: #919489; }
.register::before, .register::after { position: absolute; content: ""; background: currentColor; }
.register::before { left: 0; right: 0; top: 5px; height: 1px; }
.register::after { top: 0; bottom: 0; left: 5px; width: 1px; }
.tl { top: -5px; left: -5px; } .tr { top: -5px; right: -5px; }
.bl { bottom: -5px; left: -5px; } .br { bottom: -5px; right: -5px; }
#motion { color: var(--muted); display: grid; place-items: center; margin: .7rem 0 0 auto; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
#motion:hover { color: var(--accent); border-color: currentColor; }
#motion[data-playing="true"] span { height: .56rem; width: .46rem; border-inline: 2px solid currentColor; }
#motion[data-playing="false"] span { border-left: .44rem solid; border-top: .29rem solid transparent; border-bottom: .29rem solid transparent; margin-left: 2px; }

.focus { padding: clamp(2rem, 3vw, 3.25rem) 0 clamp(3.1rem, 5.4vw, 5.5rem); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
h2 { font-size: clamp(1.65rem, 2.1vw, 2.15rem); line-height: 1.2; font-weight: 530; letter-spacing: -.055em; }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(1.8rem, 2.6vw, 2.5rem); }
.areas article { padding-inline: clamp(1.1rem, 2.6vw, 2.7rem); border-left: 1px solid var(--line); }
.areas article:first-child { padding-left: 0; border-left: 0; }
.areas article:last-child { padding-right: 0; }
h3 { margin-bottom: .65rem; font-weight: 555; letter-spacing: -.046em; font-size: clamp(1.12rem, 1.53vw, 1.5rem); line-height: 1.25; }
.areas p { max-width: 29ch; color: var(--muted); font-size: 1rem; line-height: 1.55; letter-spacing: -.022em; }
.glyph { width: 25px; height: 24px; position: relative; margin-bottom: 1.28rem; color: var(--ink); }
.code::before, .code::after { content: ""; position: absolute; top: 8px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1.7px 1.7px; }
.code::before { left: 1px; transform: rotate(45deg); }
.code::after { right: 1px; transform: rotate(225deg); }
.code i { position: absolute; width: 1.7px; height: 16px; background: currentColor; left: 12px; top: 4px; transform: rotate(18deg); }
.neural i { position: absolute; width: 13px; height: 13px; border: 1.6px solid; border-radius: 50%; }
.neural i:nth-child(1) { left: 6px; top: 1px; } .neural i:nth-child(2) { left: 1px; top: 9px; } .neural i:nth-child(3) { left: 11px; top: 9px; }
.database::before, .database::after { content: ""; position: absolute; left: 2px; right: 2px; border: 1.6px solid; }
.database::before { top: 6px; bottom: 2px; border-top: 0; border-radius: 0 0 50% 50% / 0 0 4px 4px; }
.database::after { top: 2px; height: 6px; border-radius: 50%; }
.cell::before, .cell::after { content: ""; position: absolute; border: 1.6px solid; }
.cell::before { inset: 2px 1px; border-radius: 60% 40% 52% 48%; transform: rotate(-24deg); }
.cell::after { top: 8px; left: 9px; width: 6px; height: 5px; border-radius: 50%; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer small { font: .75rem var(--mono); }
.footer a { font-size: .8125rem; }

@media (max-width: 58rem) {
  .areas { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .areas article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .areas article:nth-child(even) { padding-left: 2rem; }
  .hero { gap: 2rem; }
  h1 { font-size: clamp(3.2rem, 7.6vw, 4.8rem); }
}
@media (max-width: 42rem) {
  .wrap { width: 88%; }
  .header-inner { min-height: 4.5rem; }
  .brand { font-size: 1.5rem; }
  .brand-mark { width: 1.6rem; height: 1.22rem; }
  nav { gap: 1rem; }
  .hero { grid-template-columns: 1fr; padding-block: 3rem 2.4rem; gap: 2.7rem; }
  h1 { font-size: clamp(3.4rem, 12vw, 5.1rem); margin-block: 1.15rem 1.3rem; }
  .summary { max-width: 32rem; }
  .plot { aspect-ratio: 1.75; }
  .focus { padding-top: 2rem; }
  .areas article { padding-right: 1rem; }
  .areas article:nth-child(even) { padding-left: 1rem; }
}
@media (max-width: 28rem) {
  .areas { grid-template-columns: 1fr; gap: 0; margin-top: .7rem; }
  .areas article, .areas article:nth-child(even) { display: grid; grid-template-columns: 1.55rem 1fr; column-gap: 1rem; padding: 1.25rem 0; border: 0; border-bottom: 1px solid var(--line); }
  .areas article:last-child { border: 0; }
  .glyph { grid-row: span 2; margin: 0; }
  h3 { margin-bottom: .3rem; }
  .areas p { max-width: none; }
  .focus { padding-bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
