/* ------------------------------------------------------------------
   SYNTHESIS — an independent AI research laboratory
   Design language: academic-paper elegance meets living generative art.
   ------------------------------------------------------------------ */

:root {
  --paper: #FAFAF7;
  --ink: #1A1A1E;
  --graphite: #55555E;
  --blue: #2B4CFF;
  --blue-soft: rgba(43, 76, 255, 0.08);
  --grid: #E3E6EE;
  --hairline: #D8DBE4;
  --highlight: rgba(43, 76, 255, 0.13);

  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --measure: 66ch;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: 50% 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; }

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

/* ---------- masthead ------------------------------------------------ */

.masthead {
  border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.masthead__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}

.masthead__brand .tick {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--blue);
  transform: translateY(-1px);
  transition: transform 0.5s var(--ease-out);
}

.masthead__brand:hover .tick { transform: translateY(-1px) rotate(135deg); }

.masthead__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--graphite);
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead__nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.masthead__nav a {
  text-decoration: none;
  color: var(--graphite);
  padding: 0.2rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transition: right 0.35s var(--ease-out);
}

.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a:hover::after { right: 0; }

.masthead__rule {
  height: 3px;
  background:
    linear-gradient(90deg, var(--blue) 0 var(--progress, 0%), transparent var(--progress, 0%));
  border-top: 1px solid var(--hairline);
}

/* ---------- page frame + toc ---------------------------------------- */

.frame {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 4rem;
}

.toc {
  display: block;
  padding-top: 5.5rem;
}

.toc__sticky {
  position: sticky;
  top: 6rem;
}

.toc__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--graphite);
  margin-bottom: 1rem;
}

.toc ol {
  list-style: none;
  border-left: 1px solid var(--hairline);
}

.toc li a {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.42rem 0 0.42rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--graphite);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1.5px;
  transition: color 0.25s ease, border-color 0.25s ease, padding-left 0.3s var(--ease-out);
}

.toc li a .n {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--graphite);
  opacity: 0.7;
}

.toc li a:hover { color: var(--ink); padding-left: 1.15rem; }

.toc li a.active {
  color: var(--blue);
  border-left-color: var(--blue);
}
.toc li a.active .n { color: var(--blue); opacity: 1; }

/* ---------- article ------------------------------------------------- */

.article { padding-bottom: 4rem; min-width: 0; }

section { padding: 5.5rem 0 1.5rem; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.sec-head .no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue);
}

.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
}

.sec-lede {
  font-family: var(--font-serif);
  color: var(--graphite);
  max-width: var(--measure);
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
}

/* ---------- hero ----------------------------------------------------- */

.hero { padding-top: 4.5rem; }

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.hero__kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--blue);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 17ch;
}

.hero h1 .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

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

.hero__abstract {
  margin-top: 1.8rem;
  max-width: 58ch;
  font-size: 1.15rem;
  color: var(--graphite);
}

.hero__abstract .lead-in {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-right: 0.5rem;
}

/* word-by-word reveal */
.hero h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero h1 .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.loaded .hero h1 .w > span { transform: translateY(0); }

/* ---------- figures -------------------------------------------------- */

.figure {
  margin: 3rem 0 1rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
}

.figure__frame {
  position: relative;
  overflow: hidden;
}

.figure__canvas-wrap {
  position: relative;
  aspect-ratio: 16 / 9.5;
  background: var(--paper);
}

#flowfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.figure__hud {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.btn-mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  box-shadow: 2px 2px 0 0 var(--ink);
}

.btn-mono:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 3px 3px 0 0 var(--ink);
  transform: translate(-1px, -1px);
}

.btn-mono:active { transform: translate(1px, 1px); box-shadow: 0 0 0 0 var(--ink); }

.figure__caption {
  border-top: 1px solid var(--ink);
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--graphite);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: space-between;
  align-items: baseline;
}

.figure__caption b {
  color: var(--ink);
  font-weight: 600;
}

.figure__caption .seed { color: var(--blue); }

.figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* image ken-burns / reveal */
.figure--img .figure__frame img {
  transform: scale(1.06);
  transition: transform 2.4s var(--ease-out);
}
.figure--img.in-view .figure__frame img { transform: scale(1); }

.figure--img .figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: top;
  transform: scaleY(1);
  transition: transform 1.1s var(--ease-draw);
}
.figure--img.in-view .figure__frame::after { transform: scaleY(0); }

/* ---------- section dividers (animated axes) ------------------------- */

.divider {
  padding: 2.6rem 0 0;
  overflow: visible;
}

.divider svg { display: block; width: 100%; height: 26px; overflow: visible; }

.divider .axis {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 1.4s var(--ease-draw);
}

.divider .tick-mark {
  stroke: var(--graphite);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.divider .origin {
  fill: var(--blue);
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.4s ease 0.9s, transform 0.5s var(--ease-out) 0.9s;
}

.divider.in-view .axis { stroke-dashoffset: 0; }
.divider.in-view .origin { opacity: 1; transform: scale(1); }
.divider.in-view .tick-mark { opacity: 0.8; }
.divider.in-view .tick-mark:nth-of-type(2) { transition-delay: 0.35s; }
.divider.in-view .tick-mark:nth-of-type(3) { transition-delay: 0.5s; }
.divider.in-view .tick-mark:nth-of-type(4) { transition-delay: 0.65s; }
.divider.in-view .tick-mark:nth-of-type(5) { transition-delay: 0.8s; }
.divider.in-view .tick-mark:nth-of-type(6) { transition-delay: 0.95s; }

/* ---------- research area cards -------------------------------------- */

.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.area {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 1.5rem 1.4rem 1.3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.area:hover {
  box-shadow: 6px 6px 0 0 var(--blue);
  transform: translate(-2px, -2px);
}

.area__no {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--graphite);
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.08em;
}

.area__no .cites { color: var(--blue); }

.area h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.area__abstract {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--graphite);
  line-height: 1.6;
}

.area__abstract .abs-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-right: 0.4rem;
}

/* marker highlight sweep on hover */
.area .hl {
  background-image: linear-gradient(var(--highlight), var(--highlight));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 0;
  transition: background-size 0.6s var(--ease-out);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.area:hover .hl { background-size: 100% 100%; }
.area:hover .hl--2 { transition-delay: 0.12s; }
.area:hover .hl--3 { transition-delay: 0.24s; }

.area__kw {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--graphite);
  border-top: 1px solid var(--hairline);
  padding-top: 0.7rem;
  line-height: 1.8;
}
.area__kw em { font-style: normal; color: var(--blue); }

/* ---------- attention map (figure 2) ---------------------------------- */

.attn {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 0.45rem;
  padding: 1.4rem;
  user-select: none;
}

.attn__corner { width: 5.6rem; }

.attn__cols, .attn__rows {
  display: grid;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--graphite);
}

.attn__cols {
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  align-items: end;
}

.attn__cols span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  justify-self: center;
  padding-top: 0.2rem;
  max-height: 5.2rem;
  overflow: hidden;
  transition: color 0.2s ease;
}

.attn__rows {
  grid-template-rows: repeat(12, 1fr);
  gap: 3px;
  align-items: center;
  justify-items: end;
  width: 5.6rem;
}

.attn__rows span {
  padding-right: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  max-width: 5.6rem;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.attn__rows span.hot, .attn__cols span.hot { color: var(--blue); font-weight: 600; }

.attn__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 3px;
  aspect-ratio: 1;
}

.attn__grid .cell {
  background: var(--blue);
  opacity: calc(0.04 + var(--v, 0) * 0.92);
  transition: opacity 0.18s linear, outline 0.1s;
  outline: 1px solid transparent;
}

.attn__grid .cell:hover {
  outline: 1px solid var(--ink);
  outline-offset: 1px;
}

.attn__readout {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--graphite);
  padding-top: 0.9rem;
  min-height: 2rem;
}
.attn__readout .val { color: var(--blue); }

/* ---------- publications --------------------------------------------- */

.pubs { list-style: none; counter-reset: pub; }

.pub {
  border-top: 1px solid var(--hairline);
  position: relative;
}
.pub:last-child { border-bottom: 1px solid var(--hairline); }

.pub a {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.15rem 0.6rem;
  text-decoration: none;
  transition: background 0.3s ease, padding-left 0.35s var(--ease-out);
}

.pub a:hover { background: var(--blue-soft); padding-left: 1.1rem; }

.pub__no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--graphite);
  transition: color 0.25s ease;
}
.pub a:hover .pub__no { color: var(--blue); }

.pub__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.005em;
  display: inline;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease-out);
}
.pub a:hover h3 { background-size: 100% 1px; }

.pub__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--graphite);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

.pub__cites {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--graphite);
  white-space: nowrap;
}
.pub__cites b { color: var(--blue); font-weight: 500; }

/* ---------- footnotes & popovers -------------------------------------- */

.fn {
  font-family: var(--font-mono);
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
  color: var(--blue);
  text-decoration: none;
  cursor: help;
  padding: 0 0.1em;
}

.popover {
  position: absolute;
  z-index: 80;
  max-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  line-height: 1.55;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 0 rgba(43, 76, 255, 0.85);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
  pointer-events: none;
}

.popover.show { opacity: 1; transform: translateY(0); }

.popover .popover__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9DB0FF;
  margin-bottom: 0.4rem;
}

/* ---------- people ----------------------------------------------------- */

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.person {
  border-top: 2px solid var(--ink);
  padding: 1rem 0.2rem 1.2rem 0;
  position: relative;
  transition: border-color 0.3s ease;
}

.person::before {
  content: attr(data-coord);
  position: absolute;
  top: 0.9rem;
  right: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--graphite);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out), color 0.3s ease;
}

.person:hover { border-color: var(--blue); }
.person:hover::before { opacity: 1; transform: translateX(0); color: var(--blue); }

.person h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-block;
  background-image: linear-gradient(var(--highlight), var(--highlight));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.5s var(--ease-out);
}
.person:hover h3 { background-size: 100% 100%; }

.person .role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin: 0.3rem 0 0.6rem;
}

.person p {
  font-size: 0.9rem;
  color: var(--graphite);
  line-height: 1.55;
}

.person .prev {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--graphite);
  opacity: 0.75;
}

/* ---------- open questions --------------------------------------------- */

.questions { list-style: none; max-width: 72ch; }

.question {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--hairline);
  position: relative;
}

.question:last-child { border-bottom: 1px solid var(--hairline); }

.question .qno {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue);
  transition: transform 0.35s var(--ease-out);
}

.question:hover .qno { transform: translateX(4px); }

.question h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.question p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--graphite);
}

.question::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--blue);
  transition: width 0.6s var(--ease-out);
}
.question:hover::after { width: 3rem; }

/* ---------- about strip ------------------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: start;
}

.about-copy p + p { margin-top: 1.1rem; }
.about-copy p { max-width: 58ch; color: var(--graphite); }
.about-copy p strong { color: var(--ink); font-weight: 600; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
  border-top: 1px solid var(--ink);
  padding-top: 1.2rem;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}
.stat b .u { color: var(--blue); }

.stat span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--graphite);
}

/* ---------- reveal on scroll ------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s ease, transform 0.85s var(--ease-out);
}
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
.js .reveal[data-delay="3"] { transition-delay: 0.3s; }

/* without JS the axes render fully drawn */
html:not(.js) .divider .axis { stroke-dashoffset: 0; }
html:not(.js) .divider .origin,
html:not(.js) .divider .tick-mark { opacity: 1; transform: none; }
html:not(.js) .hero h1 .w > span { transform: none; }

/* ---------- colophon ---------------------------------------------------- */

.colophon {
  border-top: 1px solid var(--ink);
  margin-top: 3rem;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--paper);
}

.colophon__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.2rem 2rem 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}

.colophon h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.colophon p, .colophon li {
  font-size: 0.88rem;
  color: var(--graphite);
}

.colophon .col-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.colophon ul { list-style: none; }
.colophon li { padding: 0.28rem 0; }
.colophon li a {
  text-decoration: none;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease-out), color 0.25s ease;
}
.colophon li a:hover { color: var(--blue); background-size: 100% 1px; }

.colophon__legal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 2rem 1.6rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--graphite);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  line-height: 1.7;
}

.colophon__legal a { color: var(--blue); text-decoration: none; }
.colophon__legal a:hover { text-decoration: underline; }

/* ---------- responsive -------------------------------------------------- */

@media (max-width: 1020px) {
  .frame { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .areas, .people { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .colophon__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .frame { padding: 0 1.15rem; }
  body { background-size: 48px 48px; font-size: 1rem; }
  .masthead__inner { padding: 0.65rem 1.15rem; flex-wrap: wrap; gap: 0.3rem 1rem; }
  .masthead__meta { display: none; }
  .masthead__nav { gap: 1rem; }
  section { padding: 3.6rem 0 1rem; }
  .hero { padding-top: 2.8rem; }
  .areas, .people { grid-template-columns: 1fr; }
  .attn { padding: 0.9rem; gap: 0.3rem; }
  .attn__corner, .attn__rows { width: 3.4rem; }
  .attn__rows span { max-width: 3.4rem; padding-right: 0.3rem; }
  .attn__cols span { max-height: 3.6rem; }
  .pub a { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .pub__cites { grid-column: 2; justify-self: start; }
  .colophon__inner { grid-template-columns: 1fr; gap: 1.8rem; padding: 2.4rem 1.15rem 1.8rem; }
  .colophon__legal { padding: 1rem 1.15rem 1.4rem; }
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .stat b { font-size: 1.4rem; }
  .figure__caption { font-size: 0.62rem; }
  .figure__hud { top: 0.5rem; right: 0.5rem; }
}

/* ---------- reduced motion ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  .divider .axis { stroke-dashoffset: 0; }
  .divider .origin, .divider .tick-mark { opacity: 1; transform: none; }
  .hero h1 .w > span { transform: none; }
  .figure--img .figure__frame::after { display: none; }
  .figure--img .figure__frame img { transform: none; }
}
