/* GrayCat Labs — site styles */

:root {
  --bg: #0a0a09;
  --ink: #ede7dc;
  --ink-2: #d6cfc3;
  --ink-3: #b0aa9f;
  --ink-4: #858077;
  --line: #24231f;
  --line-2: #4a4740;
  --copper: #c8814c;
  --copper-glow: #e9b07f;
  --cream: #ece6db;
  --cream-ink: #141412;
  --cream-ink-2: #2e2c28;
  --cream-ink-3: #55524c;
  --cream-line: #c9c1b3;
  --copper-on-cream: #9a5a2c;
  --walnut: #4e3220;

  --serif: "Gloock", "Times New Roman", serif;
  --sans: "Jost", "Futura", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease); }
a:hover { color: var(--copper); }

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

::selection { background: var(--copper); color: #120c07; }

h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 12px 18px; background: var(--ink); color: var(--bg);
  font-size: 13px; letter-spacing: 0.1em;
}
.skip:focus { top: 16px; color: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section); }

/* Type */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.caps { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.muted { color: var(--ink-4); }
.copper { color: var(--copper); }

.display {
  font-weight: 300;
  font-size: clamp(46px, 7.6vw, 116px);
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.title {
  font-weight: 200;
  font-size: clamp(64px, 14vw, 208px);
  line-height: 0.86;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.motto {
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.statement--wide { max-width: 24ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; line-height: 1.55; color: var(--ink-2); }
.body-2 { color: var(--ink-3); }
.small { font-size: 13px; color: var(--ink-4); }

/* Header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 40px; padding-block: 22px;
}
.wordmark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark__name { font-family: var(--serif); font-size: 25px; letter-spacing: -0.01em; }
.wordmark__labs { margin-top: 4px; font-size: 9px; letter-spacing: 0.62em; padding-left: 0.62em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 36px; }
.nav a { padding: 14px 0; }
.nav a[aria-current="page"] { color: var(--copper); }
.nav .pill { padding: 0 22px; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
}
.pill:hover { border-color: var(--copper); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
}
.btn--copper { background: var(--copper); color: #120c07; }
.btn--copper:hover { background: var(--copper-glow); color: #120c07; }
.btn--ghost { border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--copper); }
.btn--ink { background: var(--cream-ink); color: var(--cream); }
.btn--ink:hover { background: #000; color: var(--cream); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--copper); }
.link-arrow .arrow { transition: transform 0.3s var(--ease); }

/* Section index row */
.index {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4);
}
.index b { font-weight: 400; color: var(--copper); margin-right: 1.2em; }
.index + * { margin-top: clamp(40px, 5vw, 64px); }

/* Generic layouts */
.split { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split > .split__wide { flex: 1 1 520px; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; flex-wrap: wrap; }

/* Figures */
.fig { position: relative; }
.fig img { width: 100%; border-radius: 2px; }
.fig figcaption, .caption {
  margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4);
}
.shadow { box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7); }

/* Spec list */
.spec { margin-top: 28px; font-size: 14px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-4); }
.spec dd { text-align: right; }

/* Principles */
.principles { margin-top: clamp(80px, 10vw, 136px); border-top: 1px solid var(--line); }
.principles > div { flex: 1 1 300px; min-width: 0; padding: 32px 40px 0 0; }
.principles .num { font-family: var(--serif); font-size: 20px; color: var(--copper); }
.principles h3 { margin-top: 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.principles p { margin-top: 14px; color: var(--ink-3); }

/* Figures / numbers */
.figures > div { flex: 1 1 260px; min-width: 0; padding: 0 32px 40px 0; }
.figures .value { font-weight: 200; font-size: clamp(56px, 5.4vw, 84px); white-space: nowrap; line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figures .value--sm { font-size: clamp(52px, 5vw, 80px); }
.figures p { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* Hairline grid of stages */
.chain { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.chain li { position: relative; flex: 1 1 150px; min-width: 0; padding: 16px 18px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chain .n { font-family: var(--mono); font-size: 11px; color: var(--copper); }
.chain .name { margin-top: 10px; font-size: 15px; font-weight: 500; }
.chain--mono .name { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.chain li::before {
  content: ""; position: absolute; left: -1px; right: 0; top: -1px; height: 2px;
  background: var(--copper); transform: scaleX(0); transform-origin: left;
}
.chain.is-live li::before { animation: pulse 6s var(--ease) infinite; animation-delay: calc(var(--i) * 0.45s); }
@keyframes pulse {
  0% { transform: scaleX(0); opacity: 1; }
  10% { transform: scaleX(1); opacity: 1; }
  30% { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(1); opacity: 0; }
}
.chain-label { margin-bottom: 14px; }
.chains > * + * { margin-top: 40px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 24px 12px 0; text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4); border-bottom: 1px solid var(--ink); }
.table td { padding: 22px 24px 22px 0; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }
.table td.k { color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.table td.n { font-family: var(--mono); font-size: 12px; color: var(--copper); width: 56px; }
.table td.out { color: var(--ink); }
.table .is-lit td.n { color: var(--copper-glow); text-shadow: 0 0 12px var(--copper); }

/* Cream band */
.band { margin-top: var(--section); background: var(--cream); color: var(--cream-ink); }
.band .wrap { padding-block: clamp(72px, 9vw, 128px); }
.band a:hover { color: var(--copper-on-cream); }
.band .index { border-top-color: var(--cream-line); color: var(--cream-ink-3); }
.band .index b { color: var(--copper-on-cream); }
.band .lead { color: var(--cream-ink-2); }
.band .chain { border-top-color: var(--cream-ink); border-left-color: var(--cream-line); }
.band .chain li { border-color: var(--cream-line); }
.band .chain .n { color: var(--copper-on-cream); }
.band .chain li::before { background: var(--copper-on-cream); }
.band .chain-label { color: var(--cream-ink-3); }
.band .caption, .band figcaption { color: var(--cream-ink-3); }

/* Video facade */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: #000; border-radius: 2px;
  border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.video--wide { aspect-ratio: 21 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.4s; }
.video:hover img { transform: scale(1.015); }
.video .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid var(--ink); background: rgba(10, 10, 9, 0.35);
  display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.video:hover .play { background: var(--copper); border-color: var(--copper); color: #120c07; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin-top: 16px; font-size: 14px; color: var(--ink-4); }

/* Home hero */
.mark { display: flex; flex-direction: column; align-items: center; padding-top: clamp(16px, 4vw, 48px); }
.mark img { width: min(100%, 860px); }
.tagline { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-3); }
.tagline .dot { color: var(--line-2); }
.scrollcue { width: 100%; margin-top: clamp(48px, 7vw, 96px); display: flex; justify-content: space-between; align-items: flex-end; }
.scrollcue .line { display: block; width: 1px; height: 48px; margin-top: 12px; background: var(--line-2); position: relative; overflow: hidden; }
.scrollcue .line::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--copper); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.develop { animation: develop 2.6s var(--ease) 0.15s both; }
@keyframes develop {
  0% { opacity: 0; filter: brightness(0.15) contrast(1.6) blur(8px); }
  45% { opacity: 1; }
  100% { opacity: 1; filter: none; }
}

/* Editorial instrument rows */
.instrument { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.instrument + .instrument { margin-top: clamp(72px, 9vw, 128px); }
.instrument--reverse { flex-wrap: wrap-reverse; }
.instrument__media { flex: 1 1 620px; min-width: 0; display: block; overflow: hidden; border-radius: 2px; }
.instrument__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.4s var(--ease); }
.instrument__media:hover img { transform: scale(1.02); }
.instrument__text { flex: 1 1 380px; min-width: 0; }
.instrument__name { margin-top: 16px; font-weight: 300; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; }
.instrument__motto { margin-top: 14px; font-size: 11px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.instrument__motto .slash { color: var(--line-2); }
.instrument__text > p { margin-top: 28px; color: var(--ink-3); }
.instrument__text .link-arrow { margin-top: 28px; }

/* Product hero */
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.hero-row { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.hero-row > div:last-child { flex: 0 1 540px; min-width: 0; }
.status { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--copper); }

/* Instrument with walnut cheeks */
.cheeks { display: flex; }
.cheeks::before, .cheeks::after { content: ""; flex: 0 0 clamp(10px, 1.8vw, 26px); background: var(--walnut); }
.cheeks img { flex: 1; min-width: 0; width: 100%; }
.float { animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ORIGINAL / MODERN wipe */
.wipe { position: relative; overflow: hidden; border-radius: 2px; }
.wipe img { width: 100%; }
.wipe__top { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.wipe__bar { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--copper); box-shadow: 0 0 14px var(--copper); }
.wipe.is-live .wipe__top { animation: wipe-clip 14s ease-in-out infinite; }
.wipe.is-live .wipe__bar { animation: wipe-bar 14s ease-in-out infinite; }
@keyframes wipe-clip { 0%, 100% { clip-path: inset(0 0 0 82%); } 50% { clip-path: inset(0 0 0 18%); } }
@keyframes wipe-bar { 0%, 100% { left: 82%; } 50% { left: 18%; } }
.wipe__tag { position: absolute; top: 14px; padding: 6px 10px; background: rgba(10, 10, 9, 0.7); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; }
.wipe__tag--l { left: 14px; }
.wipe__tag--r { right: 14px; color: var(--copper); }
.modes { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.modes > div { flex: 1 1 420px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.modes > div:last-child { border-top-color: var(--copper); }
.modes .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.modes .name { font-size: 22px; font-weight: 300; letter-spacing: 0.16em; }
.modes p { margin-top: 12px; color: var(--ink-3); }

/* Knobs */
.knobs { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.knobs li { flex: 1 1 30%; min-width: 0; padding: 28px 12px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.knobs svg { width: 80px; height: 80px; }
.knobs .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); }

/* Wavetable figure */
.wt path { transition: stroke 0.6s; }
.wt.is-live .frame { animation: frame 7.2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.6s); }
@keyframes frame { 0%, 30%, 100% { stroke: var(--f); } 12% { stroke: var(--copper-on-cream); stroke-width: 2; } }
.wt.is-live .pos { animation: pos 7.2s ease-in-out infinite; }
@keyframes pos { 0%, 100% { transform: translate(-90px, 75px); } 50% { transform: translate(60px, -50px); } }
.wt-params { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--cream-ink-2); }
.wt-figures { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cream-line); display: flex; flex-wrap: wrap; gap: 48px; }
.wt-figures .v { font-weight: 200; font-size: 72px; line-height: 0.9; }
.wt-figures p { margin-top: 10px; font-size: 14px; color: var(--cream-ink-3); }

/* Film cross-section */
.xsec { position: relative; display: flex; flex-direction: column; gap: 3px; }
.xsec li { display: flex; align-items: center; gap: 24px; }
.xsec .layer { position: relative; flex: 1 1 auto; min-width: 0; height: var(--h); background-color: var(--c); background-size: 9px 7px; overflow: hidden; }
.xsec .layer--grain { background-image: radial-gradient(var(--g) 1px, transparent 1.6px); }
.xsec .layer--grain::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#fff6e0 1.1px, transparent 1.8px); background-size: 9px 7px; opacity: 0; }
.xsec.is-live .layer--grain::after { animation: latent 6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.35s); }
@keyframes latent { 0%, 20%, 100% { opacity: 0; } 35% { opacity: 0.55; } 55% { opacity: 0; } }
.xsec .tag { flex: 0 0 clamp(150px, 30vw, 360px); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }
.beam { position: absolute; left: 24%; top: -40px; width: 2px; height: 0; background: var(--copper-glow); box-shadow: 0 0 16px var(--copper); }
.xsec.is-live .beam { animation: beam 6s ease-in-out infinite; }
@keyframes beam { 0% { height: 0; opacity: 1; } 30% { height: calc(100% - 40px); opacity: 1; } 60% { height: calc(100% - 40px); opacity: 0; } 100% { height: 0; opacity: 0; } }

/* Control list */
.controls { margin-top: 32px; }
.controls div { padding: 16px 0; border-top: 1px solid var(--line); }
.controls dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--copper); }
.controls dd { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.controls + p { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-4); }

/* Modes of computation */
.modes3 { display: flex; flex-wrap: wrap; border-left: 1px solid var(--line); }
.modes3 > div { flex: 1 1 320px; min-width: 0; padding: 8px 32px 8px 28px; border-right: 1px solid var(--line); }
.modes3 h3 { margin-top: 24px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.modes3 p { margin-top: 12px; color: var(--ink-3); }

/* Gallery */
.gallery { display: flex; flex-wrap: wrap; gap: 48px 32px; }
.gallery figure { flex: 1 1 520px; min-width: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.gallery img { width: 100%; transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.015); }

.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: clamp(16px, 4vw, 48px); border: 0; background: rgba(5, 5, 4, 0.96); color: var(--ink); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(5, 5, 4, 0.96); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; object-fit: contain; }
.lightbox__close { position: fixed; top: 20px; right: 20px; }
.lightbox p { margin-top: 16px; text-align: center; }

/* Roadmap */
.roadmap li { display: flex; gap: 24px; padding: 18px 0; border-top: 1px solid var(--cream-line); font-size: 16px; color: var(--cream-ink-2); }
.roadmap .n { font-family: var(--mono); font-size: 12px; color: var(--copper-on-cream); min-width: 28px; }

/* Sources */
.sources { padding-top: 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-start; }
.sources .big { font-weight: 200; font-size: clamp(72px, 9vw, 128px); line-height: 0.85; letter-spacing: -0.02em; color: var(--copper); }
.quote { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; }

/* Contact */
.email { margin-top: 28px; display: inline-block; font-family: var(--serif); font-size: clamp(30px, 4.6vw, 64px); line-height: 1.15; border-bottom: 1px solid var(--copper); overflow-wrap: anywhere; }

/* Next instrument */
.next { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px solid var(--ink); }
.next__name { display: block; margin-top: 24px; font-weight: 200; font-size: clamp(56px, 9vw, 128px); line-height: 0.9; letter-spacing: 0.06em; text-transform: uppercase; transition: letter-spacing 0.8s var(--ease); }
.next:hover .next__name { letter-spacing: 0.09em; color: var(--ink); }

/* Footer */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 40px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.site-footer .wordmark__name { font-size: 22px; }
.site-footer .wordmark__labs { font-size: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.site-footer nav a { color: var(--ink-3); }
.legal { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; font-size: 12px; color: var(--ink-4); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Small screens */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 0 22px; }
  .nav .hide-sm { display: none; }
  .tagline { letter-spacing: 0.28em; gap: 6px 14px; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table thead { display: none; }
  .table tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .table td { padding: 4px 0; border: 0; }
  .table td.n { width: auto; }
  .xsec .tag { flex-basis: 130px; font-size: 10px; }
  .video .play { width: 72px; height: 72px; }
}

/* Motion off */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wipe__top { clip-path: inset(0 0 0 50%); }
}
