/* Supercharger Studio: the workshop */

/* Self-hosted fonts (SIL Open Font License 1.1, see fonts/OFL-*.txt). Latin subset. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 500 800; font-stretch: 78% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("fonts/kalam-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
/* Metric-adjusted fallbacks so the swap does not shift layout */
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 98%; ascent-override: 100%; descent-override: 30%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Narrow"), local("Arial"); size-adjust: 96%; ascent-override: 98%; descent-override: 26%; }


:root {
  --soot: #14100c;
  --iron: #1d1712;
  --iron-2: #2a221b;
  --ink: #f2e8d5;
  --muted: #c2b192;
  --faint: #8f7f66;
  --brass: #d6a84c;
  --brass-hi: #f3d58c;
  --brass-lo: #8a6526;
  --copper: #c46a3c;
  --copper-hi: #eb9a69;
  --cyan: #173e72;
  --cyan-deep: #11315c;
  --cyan-ink: #eef3fb;
  --cyan-muted: #bcd0ea;
  --paper: #ecdfc2;
  --paper-ink: #2b2118;
  --paper-muted: #5a4733;

  --f-display: "Bricolage Grotesque", "Bricolage Fallback", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Hanken Fallback", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-pen: "Kalam", "Bradley Hand", "Segoe Print", cursive;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--soot);
  background-image: var(--noise);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; font-variation-settings: "wdth" 88; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--brass); color: var(--soot); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 3px; }
html { scrollbar-color: var(--brass-lo) var(--soot); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--brass); color: var(--soot); padding: .6rem 1rem; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: linear-gradient(180deg, #f0cd7b 0%, #d6a84c 48%, #b3842f 100%);
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3rem; padding: .75rem 1.25rem;
  font: 600 1rem/1.1 var(--f-body);
  color: #1d1408;
  background: var(--b-bg);
  border: 1px solid #f6dc9a;
  border-bottom-color: #8a6526;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, .55), 0 6px 18px -6px rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .5);
  text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .25s var(--ease-out);
}
.btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 248, 220, .6), 0 10px 24px -8px rgba(0, 0, 0, .75), 0 0 0 4px rgba(214, 168, 76, .14); }
.btn:active { transform: translateY(1px); filter: brightness(.96); box-shadow: inset 0 2px 4px rgba(80, 50, 10, .45); }
.btn-ghost {
  --b-bg: rgba(242, 232, 213, .04);
  color: var(--ink);
  border: 1px solid rgba(214, 168, 76, .55);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--brass-hi); background: rgba(214, 168, 76, .1); box-shadow: none; filter: none; }
.btn-ghost:active { box-shadow: none; }
.btn-small { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9375rem; }
.btn-large { min-height: 3.5rem; padding: 1rem 1.6rem; font-size: 1.0625rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions-center { justify-content: center; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 3; }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.75rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; font-variation-settings: "wdth" 90; }
.wordmark-mark { width: 1.6rem; height: 1.6rem; color: var(--brass); }
.wordmark:hover .wordmark-mark { transform: rotate(30deg); }
.wordmark-mark { transition: transform .6s var(--ease-out); }
.site-header nav { margin-left: auto; }
.nav-list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: .5rem 0; transition: color .2s; }
.nav-list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  isolation: isolate;
}
.hero::before {
  /* the lamp */
  content: ""; position: absolute; inset: -6rem 0 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 36rem at 70% 38%, rgba(255, 190, 100, .16), rgba(255, 170, 80, .05) 45%, transparent 70%),
    radial-gradient(28rem 20rem at 70% 30%, rgba(255, 214, 150, .10), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.6rem);
  letter-spacing: -.012em;
  line-height: 1;
  font-weight: 720;
  font-variation-settings: "wdth" 92, "opsz" 96;
}
.hero-lede { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.3vw, 1.2rem); color: var(--muted); }
.hero .actions { margin-top: 2rem; }

.machine-figure { margin: 0; position: relative; }
.machine { width: 100%; height: auto; aspect-ratio: 840 / 690; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.machine-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: .5rem; padding-inline: 4%;
  font-size: .875rem; color: var(--muted);
}
.machine-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 2.5rem; padding: .35rem .85rem;
  font: 500 .875rem/1 var(--f-body); color: var(--muted);
  background: transparent; border: 1px solid rgba(194, 177, 146, .3); border-radius: 999px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.machine-toggle:hover { color: var(--ink); border-color: var(--brass); background: rgba(214, 168, 76, .08); }
.machine-toggle svg { width: .8rem; height: .8rem; fill: currentColor; }
.machine-toggle .i-play { display: none; }
.machine-toggle[aria-pressed="true"] .i-play { display: inline; }
.machine-toggle[aria-pressed="true"] .i-pause { display: none; }

/* machine parts */
.engrave { font: 700 11px/1 var(--f-body); letter-spacing: .18em; fill: #9a8569; }
.tally path { stroke: #e9c77c; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.gov-arm { stroke: #c9a04a; stroke-width: 4.5; stroke-linecap: round; }
.gov-link { stroke: #a57d34; stroke-width: 3; stroke-linecap: round; }
.gauge-label { font: 700 8px/1 var(--f-body); letter-spacing: .2em; fill: #5a4733; text-anchor: middle; }
.ghost path { fill: #e8c06a; }
.ghost { opacity: 0; }
.sweep { opacity: .45; }
.marker { fill: #f0a476; stroke: #6e3418; }

.station circle { fill: #4a3b2e; transition: fill .5s, filter .5s; }
.station rect { fill: #1b1410; stroke: #5a4836; stroke-width: 1; }
.station text { font: 700 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; fill: #a8957a; text-anchor: middle; transition: fill .5s; }
.station.is-lit circle { fill: #ffcf73; filter: drop-shadow(0 0 5px rgba(255, 200, 100, .9)); }
.station.is-lit text { fill: #ffe2a6; }
.no-motion .station circle { fill: #e0b45c; }
.no-motion .station text { fill: #e6d2ab; }
.station-stack text { font-size: 10px; letter-spacing: .08em; }
.loop-node-stack text { font-size: 11px; letter-spacing: .08em; }

.sparks line { stroke: #ffd47e; stroke-width: 1.8; stroke-linecap: round; }
.sparks circle { fill: #ffe1a1; }

.pen text { font: 400 19px/1 var(--f-pen); fill: #d8c49d; }
.pen path { fill: none; stroke: #d8c49d; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }


/* tinkerer */
.tinkerer { pointer-events: none; }
.tinkerer #tink-move { transform-box: fill-box; }
@media (prefers-reduced-motion: reduce) {
  /* still: the figure stands beside the finished wheel */
}
@media (max-width: 52rem) {
  /* keep the figure legible next to the wheel; viewBox already includes him */
}

/* about, short form */
.about-copy p { max-width: 36rem; font-size: 1.125rem; color: var(--muted); margin-top: 1.25rem; }

/* assembly (motion only, set by script) */
.gear-slot { transition: transform 1s var(--ease-out), opacity .6s ease-out; }
.assembling .gear-slot { opacity: 0; }

/* ---------- blueprint ---------- */
.blueprint {
  position: relative;
  color: var(--cyan-ink);
  background-color: var(--cyan);
  background-image:
    var(--noise),
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    radial-gradient(120% 90% at 30% 20%, #1d4a85, var(--cyan-deep));
  background-size: 220px 220px, 120px 120px, 120px 120px, 24px 24px, 24px 24px, 100% 100%;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  box-shadow: inset 0 18px 30px -20px rgba(0, 0, 0, .6), inset 0 -18px 30px -20px rgba(0, 0, 0, .6);
}
.bp-head { max-width: 44rem; }
.blueprint h2 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); letter-spacing: -.01em; font-variation-settings: "wdth" 92, "opsz" 72; }
.bp-head p { margin-top: 1.25rem; color: var(--cyan-muted); font-size: 1.125rem; max-width: 38rem; }
.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.bp-diagram { position: sticky; top: 2rem; }
.loop-svg { width: 100%; max-width: 30rem; margin-inline: auto; overflow: visible; }
.construct { fill: none; stroke: rgba(238, 243, 251, .22); stroke-width: 1; stroke-dasharray: 3 5; }
.loop-arc { fill: none; stroke: var(--cyan-ink); stroke-width: 2.2; stroke-linecap: round; }
.loop-heads path { fill: none; stroke: var(--cyan-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.loop-node circle { fill: var(--cyan); stroke: var(--cyan-ink); stroke-width: 2; transition: fill .45s var(--ease-out), stroke .45s; }
.loop-node text { font: 700 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; fill: var(--cyan-ink); text-anchor: middle; }
.loop-node.is-active circle { fill: var(--brass-hi); stroke: var(--brass-hi); }
.loop-node text.lbl-end { text-anchor: end; }
.loop-node text.lbl-start { text-anchor: start; }
.loop-center { font: 400 22px/1 var(--f-pen); fill: var(--cyan-muted); text-anchor: middle; }
.title-block {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin: 2rem auto 0; max-width: 30rem; border: 1px solid rgba(238, 243, 251, .45);
  font-size: .8125rem;
}
.title-block div { padding: .55rem .8rem; border-right: 1px solid rgba(238, 243, 251, .45); }
.title-block div:last-child { border-right: 0; }
.title-block dt { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-muted); }
.title-block dd { margin: .15rem 0 0; font-family: var(--f-pen); font-size: 1.05rem; line-height: 1.2; }

.stages { list-style: none; margin: 0; padding: 0; }
.stage { padding-block: 1.75rem; border-top: 1px solid rgba(238, 243, 251, .28); transition: opacity .4s; }
.stage:first-child { padding-top: 0; border-top: 0; }
.stage h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -.02em; display: flex; align-items: center; gap: .75rem; }
.stage h3::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--cyan-ink); flex: none; transition: background .4s, border-color .4s; }
.stage.is-active h3::before { background: var(--brass-hi); border-color: var(--brass-hi); }
.stage p { margin-top: .75rem; color: var(--cyan-muted); max-width: 34rem; font-size: 1.0625rem; }

/* ---------- compounds ---------- */
.compounds { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.compounds-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.compounds h2 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); letter-spacing: -.01em; font-variation-settings: "wdth" 92, "opsz" 72; }
.compounds-head > p { margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; max-width: 32rem; }

.note-sheet {
  margin: 2.75rem 0 0; max-width: 26rem; padding: 1.25rem 1.25rem 1.1rem;
  color: var(--paper-ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .15 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, rgba(150, 100, 40, .10), transparent 30%, transparent 70%, rgba(150, 100, 40, .18));
  border-radius: 2px;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .7), 0 2px 4px rgba(0, 0, 0, .4);
  transform: rotate(-1.6deg);
  position: relative;
}
.note-sheet::before {
  /* tack */
  content: ""; position: absolute; top: -.45rem; left: 50%; width: 1rem; height: 1rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f6c28f, #b45c2c 60%, #5c2a10);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .5);
}
.sketch { width: 100%; height: auto; }
.sk-line circle, .sk-line path { fill: none; stroke: #4a3826; stroke-width: 1.3; stroke-linecap: round; }
.sk-note text { font: 400 17px/1 var(--f-pen); fill: #4a3826; }
.sk-note path { fill: none; stroke: #4a3826; stroke-width: 1.1; }
.note-sheet figcaption { margin-top: .6rem; font-size: .9375rem; line-height: 1.5; color: var(--paper-muted); }

.outcome-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(214, 168, 76, .5); }
.outcome-list li {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 1rem;
  padding-block: 1.6rem; border-bottom: 1px solid rgba(194, 177, 146, .16);
}
.outcome-list li::before { content: ""; grid-row: span 2; width: 1.75rem; height: 1.5rem; margin-top: .2rem; }
.outcome-list li:nth-child(1)::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 0 26 22'%3E%3Cpath d='M3%202%20L3%2020' stroke='%23d6a84c' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") left top / contain no-repeat; }
.outcome-list li:nth-child(2)::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 0 26 22'%3E%3Cpath d='M3%202%20L3%2020%20M8%202%20L8%2020' stroke='%23d6a84c' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") left top / contain no-repeat; }
.outcome-list li:nth-child(3)::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 0 26 22'%3E%3Cpath d='M3%202%20L3%2020%20M8%202%20L8%2020%20M13%202%20L13%2020' stroke='%23d6a84c' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") left top / contain no-repeat; }
.outcome-list li:nth-child(4)::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 0 26 22'%3E%3Cpath d='M3%202%20L3%2020%20M8%202%20L8%2020%20M13%202%20L13%2020%20M18%202%20L18%2020' stroke='%23d6a84c' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") left top / contain no-repeat; }
.outcome-list li:nth-child(5)::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 0 26 22'%3E%3Cpath d='M3%202%20L3%2020%20M8%202%20L8%2020%20M13%202%20L13%2020%20M18%202%20L18%2020%20M0%2015%20L22%206' stroke='%23d6a84c' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") left top / contain no-repeat; }
.outcome-list h3 { font-size: 1.375rem; letter-spacing: -.01em; font-variation-settings: "wdth" 90; }
.outcome-list p { margin-top: .45rem; color: var(--muted); }

/* ---------- about ---------- */
.about {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .25)),
    var(--iron);
  border-top: 1px solid rgba(214, 168, 76, .18);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.nameplate {
  position: relative; padding: 2.5rem 2.25rem 2.25rem; border-radius: 10px;
  color: #2a1d0a;
  background:
    repeating-linear-gradient(92deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #f4d891 0%, #d6a84c 38%, #c99a3e 62%, #e6c172 100%);
  background-color: #d6a84c;
  border: 1px solid #f7e0a3;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .8);
  transform: rotate(-.8deg);
}
.screw { position: absolute; width: .85rem; height: .85rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fbe7b5, #8a6526 70%); box-shadow: inset 0 0 0 1px rgba(60, 40, 10, .5); }
.screw::after { content: ""; position: absolute; left: 15%; right: 15%; top: 50%; height: 1.5px; margin-top: -.75px; background: #5c4115; transform: rotate(35deg); }
.screw:nth-child(1) { top: .8rem; left: .8rem; }
.screw:nth-child(2) { top: .8rem; right: .8rem; }
.screw:nth-child(3) { bottom: .8rem; left: .8rem; }
.screw:nth-child(4) { bottom: .8rem; right: .8rem; }
.np-name { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.005em; line-height: 1; font-variation-settings: "wdth" 80, "opsz" 72; }
.np-role { margin-top: .65rem; font-weight: 600; font-size: .9375rem; letter-spacing: .12em; text-transform: uppercase; color: #2e2009; }
.np-years { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(70, 45, 5, .35); font-size: 1rem; color: #2e2009; }
.pen-quote { margin-top: 1.75rem; font-family: var(--f-pen); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.25; color: #e3cfa6; transform: rotate(-1.5deg); }
.about h2 { font-size: clamp(2.1rem, 4.4vw, 3.75rem); letter-spacing: -.01em; font-variation-settings: "wdth" 92, "opsz" 72; }
.about-copy > p { margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; max-width: 36rem; }
.record { margin: 2rem 0 0; }
.record > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-top: 1px solid rgba(194, 177, 146, .18); }
.record dt { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--brass); font-variation-settings: "wdth" 88; }
.record dd { margin: 0; color: var(--muted); }
.record strong { color: var(--ink); font-weight: 600; }
.record a { color: var(--ink); text-decoration-color: var(--brass); }
.record a:hover { color: var(--brass-hi); }
.about-now { margin-top: 1.75rem; max-width: 36rem; }

/* ---------- contact ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(5rem, 11vw, 9rem);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 180, 90, .07), transparent 55%);
}
.contact-gear { position: absolute; z-index: -1; width: min(46rem, 120vw); height: auto; left: 50%; top: 50%; margin-left: calc(min(46rem, 120vw) / -2); margin-top: calc(min(46rem, 120vw) / -2); color: rgba(214, 168, 76, .06); }
.motion .contact-gear { animation: turn 90s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.contact-inner { max-width: 48rem; }
.contact h2 { font-size: clamp(2.4rem, 5.6vw, 4.75rem); letter-spacing: -.012em; line-height: 1; font-variation-settings: "wdth" 92, "opsz" 96; }
.contact p { margin: 1.25rem auto 0; max-width: 32rem; color: var(--muted); font-size: 1.125rem; }
.contact .actions { margin-top: 2.25rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(214, 168, 76, .18); padding-block: 2.25rem 2.75rem; font-size: .875rem; color: var(--faint); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem 2rem; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-family: var(--f-display); font-weight: 700; font-variation-settings: "wdth" 90; }
.footer-brand .wordmark-mark { width: 1.2rem; height: 1.2rem; }
.footer-links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; justify-self: end; grid-column: 3; }
.footer-links a { color: var(--muted); text-decoration: none; display: inline-block; padding-block: .35rem; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); }
.site-footer address { font-style: normal; grid-column: 1 / 3; color: #a8987d; }
.copyright { justify-self: end; color: #a8987d; }

/* ---------- reveals (script adds .motion) ---------- */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .loop-arc, .motion .loop-heads path { stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.4s var(--ease-out); }
.motion .loop-svg.is-drawn .loop-arc, .motion .loop-svg.is-drawn .loop-heads path { stroke-dashoffset: 0; }
.motion .loop-svg.is-drawn .loop-arc:nth-of-type(2) { transition-delay: .25s; }
.motion .loop-svg.is-drawn .loop-arc:nth-of-type(3) { transition-delay: .5s; }
.motion .loop-svg.is-drawn .loop-arc:nth-of-type(4) { transition-delay: .75s; }
.motion .loop-svg.is-drawn .loop-heads path { transition-delay: 1s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .bp-grid, .compounds-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .machine-figure { order: 2; margin-inline: auto; width: 100%; max-width: 38rem; }
  .hero-lede { order: 3; margin-top: 0; }
  .hero .actions { order: 4; margin-top: 0; }
  .hero-grid { gap: 1.5rem; }
  .bp-diagram { position: static; }
  .loop-svg { max-width: 22rem; }
  .note-sheet { max-width: 24rem; }
  .about-plate { max-width: 28rem; order: 2; }
}
@media (max-width: 720px) {
  .nav-list { display: none; }
  .wordmark { font-size: 1rem; white-space: nowrap; }
  .header-inner { min-height: 4rem; gap: 1rem; }
  .machine-caption { padding-inline: .5rem; font-size: .8125rem; flex-wrap: nowrap; margin-top: .75rem; min-height: 2.5rem; }
  .machine-caption > span { flex: 1 1 7rem; }
  .machine-toggle { flex: none; min-height: 2.5rem; min-width: 2.5rem; justify-content: center; padding: .3rem .7rem; font-size: .8125rem; }
  .machine-caption .machine-toggle .lbl-short { display: inline; }
  .machine-toggle .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-grid { gap: 1.1rem; }
  .hero-lede { font-size: 1.0625rem; }
  .machine-figure { margin-inline: -.5rem; width: calc(100% + 1rem); }
  .header-inner { justify-content: space-between; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.4rem); }
  .actions .btn { flex: 1 1 15rem; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links, .copyright { justify-self: start; grid-column: auto; }
  .site-footer address { grid-column: auto; }
  .record > div { grid-template-columns: 1fr; gap: .35rem; }
  .title-block { grid-template-columns: 1fr 1fr 1fr; }
  .title-block div { padding: .5rem .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

.machine-toggle[hidden] { display: none; }
/* controls reserve their space from the start so revealing them never shifts layout */
.machine-caption .machine-toggle { visibility: hidden; opacity: 0; transition: opacity .4s var(--ease-out), color .2s, border-color .2s, background .2s; }
.machine-caption.is-ready .machine-toggle { visibility: visible; opacity: 1; }
html:not(.js) .machine-toggle { display: none; }
.machine-caption { flex-wrap: nowrap; gap: .6rem; }
.machine-caption > span { margin-right: auto; min-width: 0; }
.machine-caption .machine-toggle { white-space: nowrap; flex: none; }
.machine-toggle .lbl-short { display: none; }
.machine-push svg { fill: none; transform-box: fill-box; transform-origin: center; }
.machine-push.is-kick svg { animation: push-spin .6s var(--ease-out); }
@keyframes push-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .machine-caption .machine-toggle { display: none !important; } }
