/* binaural.app — the page is a piece of equipment you switch on.
   True black room, engraved faceplate lettering (Jost: the Futura of hi-fi
   front panels), one ember lamp. Colour lives only inside the plate. */

:root {
  --room: #000;
  --ink: #f2f0ec;
  --ink-2: rgba(242, 240, 236, 0.64);
  --ink-3: rgba(242, 240, 236, 0.38);
  --hair: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.06);
  --ember: #ffb859;

  --u: 8px;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 34rem;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

* { box-sizing: border-box; }

html { background: var(--room); color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--room);
  color: var(--ink);
  font-family: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 1px solid var(--ember); outline-offset: 4px; border-radius: 4px; }

/* ---------- Wordmark ---------- */

.wordmark {
  font-weight: 300;
  font-size: 1.375rem;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: baseline;
}

.lamp {
  width: 6px; height: 6px; border-radius: 50%;
  margin-left: 5px;
  background: rgba(255, 184, 89, 0.22);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.lamp.on { background: var(--ember); box-shadow: 0 0 10px rgba(255, 184, 89, 0.7); }

/* ---------- The instrument (hero) ---------- */

.instrument {
  position: relative;
  min-height: min(100svh, 1100px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.plate {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.mast {
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: calc(var(--u) * 3) var(--gutter) 0;
}

.mast-links { display: flex; gap: clamp(16px, 3vw, 40px); font-size: 0.9375rem; color: var(--ink-2); }
.mast-links a:hover { color: var(--ink); }

.statement {
  position: relative;
  align-self: end;
  padding: 0 var(--gutter) calc(var(--u) * 5);
  max-width: 46rem;
  pointer-events: none;
}

h1 {
  font-weight: 300;
  font-size: clamp(2.1rem, 5.4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.prompt {
  margin-top: calc(var(--u) * 3);
  max-width: 30rem;
  color: var(--ink-2);
  font-size: 1.125rem;
  min-height: 3.5em;
  transition: opacity 0.4s var(--ease);
}
.prompt.swap { opacity: 0; }

/* The faceplate: a strip of controls along the bottom edge. */
.faceplate {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3.2vw, 44px);
  padding: calc(var(--u) * 2.5) var(--gutter) calc(var(--u) * 3);
  border-top: 1px solid var(--hair);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.9));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.power {
  appearance: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 26px 0 8px;
  border-radius: 27px;
  background: var(--ink); color: #000;
  font: inherit; font-weight: 500; font-size: 1rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
}
.power:active { transform: scale(0.97); }
.power-key {
  width: 38px; height: 38px; border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  transition: background 0.3s var(--ease);
}
.power-key::after {
  content: ""; position: absolute; inset: 15px; border-radius: 50%;
  background: rgba(255, 184, 89, 0.3);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.power[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.power[aria-pressed="true"] .power-key::after { background: var(--ember); box-shadow: 0 0 12px rgba(255, 184, 89, 0.8); }

.control { display: flex; align-items: center; gap: 14px; }

.knob {
  --turn: 0deg;
  width: 64px; height: 64px; border-radius: 50%;
  flex: none;
  cursor: ns-resize; touch-action: none;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 62%),
    #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.7);
  position: relative;
  transform: rotate(var(--turn));
}
.knob-mark {
  position: absolute; left: 50%; top: 7px;
  width: 2px; height: 16px; margin-left: -1px; border-radius: 1px;
  background: var(--ink);
}
.instrument:not(.live) .knob { opacity: 0.45; }

.legend { display: grid; gap: 2px; min-width: 6.2rem; }
.legend-name { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--ink-3); }
.legend-value { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

.scope { width: 100%; height: 64px; display: block; }

.ears { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.ears div { display: flex; gap: 12px; justify-content: space-between; }
.ears dt { font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--ink-3); }
.ears dd { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Sections ---------- */

main > section { padding: clamp(72px, 12vw, 168px) var(--gutter) 0; }

.lede p {
  max-width: 44rem;
  font-weight: 300;
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  line-height: 1.32;
  text-wrap: pretty;
}

.section-head { max-width: var(--measure); margin-bottom: calc(var(--u) * 6); }
h2 {
  font-weight: 300;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.008em;
}
.section-head p { margin-top: calc(var(--u) * 2); color: var(--ink-2); }

/* The rail: screens side by side, scrubbed sideways like the app's shelves. */
.phone { padding-right: 0 !important; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 300px);
  gap: clamp(20px, 3vw, 44px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px var(--gutter) calc(var(--u) * 3) 0;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure { scroll-snap-align: start; }
.rail img {
  width: 100%;
  border-radius: 34px;
  box-shadow: 0 0 0 1px var(--hair);
  background: #0a0a0a;
}
.rail figcaption { margin-top: calc(var(--u) * 2.5); color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.rail figcaption strong { display: block; color: var(--ink); font-weight: 500; font-size: 1.0625rem; margin-bottom: 4px; }

/* The chart recorder. */
.recorder {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: calc(var(--u) * 4) 0 calc(var(--u) * 3);
}
#score { width: 100%; height: clamp(200px, 30vw, 340px); display: block; overflow: visible; cursor: crosshair; touch-action: pan-y; }
.grid line { stroke: var(--hair); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grid text { fill: var(--ink-3); font-size: 13px; font-family: inherit; }
.trace {
  fill: none; stroke: var(--ink); stroke-width: 2;
  vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55));
}
.cursor { stroke: var(--ember); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.7; }
.dot { fill: var(--ember); }
.readout {
  display: flex; gap: calc(var(--u) * 4); align-items: baseline;
  margin-top: calc(var(--u) * 3);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.readout span:last-child { color: var(--ink); }

/* The ledger. */
.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(32px, 6vw, 96px);
  max-width: 68rem;
}
h3 { font-weight: 500; font-size: 1.0625rem; padding-bottom: calc(var(--u) * 2); border-bottom: 1px solid var(--hair); }
.ledger li { padding: calc(var(--u) * 2) 0; border-bottom: 1px solid var(--hair); color: var(--ink-2); max-width: 32rem; }
.ledger div:first-child li { color: var(--ink); }
.advice { margin-top: calc(var(--u) * 6); max-width: var(--measure); color: var(--ink-3); font-size: 0.9375rem; }

/* ---------- Foot ---------- */

.foot {
  margin-top: clamp(96px, 14vw, 200px);
  padding: calc(var(--u) * 6) var(--gutter) calc(var(--u) * 8);
  border-top: 1px solid var(--hair);
  display: grid; gap: calc(var(--u) * 1.5);
}
.foot p { color: var(--ink-2); }
.foot .small { color: var(--ink-3); font-size: 0.9375rem; }
.foot .small a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .mast-links { display: none; }
  .faceplate {
    grid-template-columns: 1fr 1fr;
    row-gap: calc(var(--u) * 2.5);
  }
  .power { grid-column: 1 / -1; justify-content: flex-start; }
  .scope { grid-column: 1 / -1; height: 48px; }
  .ears { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; }
  .knob { width: 56px; height: 56px; }
  .legend { min-width: 0; }
  .statement { padding-bottom: calc(var(--u) * 3); }
  .prompt { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* Nothing may push the page sideways on a narrow phone. */
body { overflow-x: clip; }
.faceplate > * { min-width: 0; }

/* ---------- Font (served from here: no third-party request) ---------- */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/jost.woff2") format("woff2");
}

.soon {
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair);
  white-space: nowrap;
}

.rail picture { display: block; }

/* ---------- Home: guides and questions ---------- */

.guide-list { max-width: 60rem; border-top: 1px solid var(--hair); }
.guide-list a {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: calc(var(--u) * 3);
  padding: calc(var(--u) * 2.5) 0;
  border-bottom: 1px solid var(--hair);
}
.guide-list strong { font-weight: 500; }
.guide-list span { color: var(--ink-2); }
.guide-list a:hover strong { color: var(--ember); }

.faq-list, .faq dl { max-width: 46rem; margin: 0; }
.faq-list div, .faq dl div { padding: calc(var(--u) * 2.5) 0; border-bottom: 1px solid var(--hair); }
.faq-list dt, .faq dt { font-weight: 500; }
.faq-list dd, .faq dd { margin: 6px 0 0; color: var(--ink-2); }

.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: calc(var(--u) * 2) 0; color: var(--ink-2); font-size: 0.9375rem; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Guide pages ---------- */

.doc .mast { position: static; padding-bottom: calc(var(--u) * 3); border-bottom: 1px solid var(--hair); }
.doc .mast-links { display: flex; }

.page { padding: clamp(40px, 7vw, 96px) var(--gutter) 0; max-width: calc(46rem + var(--gutter) * 2); }
.page h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-top: calc(var(--u) * 2); }
.page h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: calc(var(--u) * 8) 0 calc(var(--u) * 2); }
.page p, .page ul, .page ol { margin-top: calc(var(--u) * 2); color: var(--ink-2); }
.page ul, .page ol { padding-left: 1.25rem; list-style: revert; }
.page li { margin-top: 8px; padding-left: 4px; }
.page strong, .page th { color: var(--ink); font-weight: 500; }
.page a { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }
.page a:hover { text-decoration-color: var(--ember); }

.crumbs { font-size: 0.9375rem; color: var(--ink-3); }
.crumbs a { text-decoration: none; }

.page .answer {
  margin-top: calc(var(--u) * 4);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
}
.byline { font-size: 0.9375rem; color: var(--ink-3) !important; }

.page table { width: 100%; margin-top: calc(var(--u) * 3); border-collapse: collapse; font-size: 0.9875rem; }
.page caption { text-align: left; color: var(--ink-3); font-size: 0.9375rem; padding-bottom: calc(var(--u) * 1.5); }
.page th, .page td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--hair); color: var(--ink-2); }
.page thead th { color: var(--ink-3); font-weight: 400; border-top: 0; }
.page tbody th { color: var(--ink); white-space: nowrap; }

.sources ol { font-size: 0.9375rem; }
.sources li { overflow-wrap: anywhere; }

/* The generator, set into a page. */
.bench {
  position: relative;
  min-height: 0;
  margin-top: calc(var(--u) * 5);
  border: 1px solid var(--hair);
  border-radius: 22px;
  grid-template-rows: minmax(260px, 38vh) auto;
}
.bench .plate { position: absolute; inset: 0; border-radius: 22px; }
.bench .prompt { position: relative; align-self: end; margin: 0; padding: 0 24px 20px; min-height: 0; color: var(--ink) !important; max-width: 32rem; }
.bench .faceplate {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 20px 24px 22px;
  border-radius: 0 0 22px 22px;
}
.bench .scope, .bench .ears { grid-column: 1 / -1; }
.bench .ears { grid-auto-flow: column; justify-content: start; gap: 32px; }

.presets, .noise-tool, .pacer-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: calc(var(--u) * 2.5); }
.presets button, .noise-tool button, .pacer-controls button {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-size: 0.9875rem; color: var(--ink);
  height: 44px; padding: 0 20px; border-radius: 22px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.presets button:hover, .noise-tool button:hover, .pacer-controls button:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.noise-tool button[aria-pressed="true"], .pacer-controls button[aria-pressed="true"], .presets button.is-set { background: var(--ink); color: #000; }
.noise-tool { margin-top: calc(var(--u) * 5); }
.tool-note { flex-basis: 100%; margin: 0 !important; font-size: 0.9375rem; color: var(--ink-3) !important; }

/* The breathing pacer: a ring that opens and closes, slowly. */
.pacer { margin-top: calc(var(--u) * 5); padding: calc(var(--u) * 4) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; justify-items: center; gap: calc(var(--u) * 2); }
.pacer-ring { width: 180px; height: 180px; display: grid; place-items: center; }
.pacer-ring span {
  width: 100%; height: 100%; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink), 0 0 40px rgba(255, 255, 255, 0.08);
  transform: scale(0.42);
  transition: transform var(--phase, 4s) cubic-bezier(0.4, 0, 0.6, 1);
}
.pacer.in .pacer-ring span { transform: scale(1); }
.pacer-word { margin: 0 !important; color: var(--ink) !important; font-size: 1.125rem; }
.pacer-controls { margin-top: 0; justify-content: center; }
.pacer-controls label { color: var(--ink-2); font-size: 0.9375rem; display: flex; gap: 10px; align-items: center; }
.pacer-controls select { font: inherit; color: var(--ink); background: #0c0c0c; border: 1px solid var(--hair); border-radius: 10px; padding: 8px 10px; }

@media (max-width: 860px) {
  .doc .mast-links { display: none; }
  .guide-list a { grid-template-columns: 1fr; gap: 4px; }
  .page table { font-size: 0.9375rem; }
  .page tbody th { white-space: normal; }
}

/* ---------- Home: an iPhone app, coming soon ---------- */

body > .mast { position: relative; z-index: 2; }
a.soon:hover { box-shadow: inset 0 0 0 1px var(--ember); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(32px, 6vw, 88px) var(--gutter) clamp(48px, 7vw, 104px);
  min-height: min(calc(100svh - 80px), 920px);
  overflow: hidden;
}

.status { display: flex; align-items: center; gap: 10px; color: var(--ink-2); margin-bottom: calc(var(--u) * 3); }
.status .lamp { margin: 0; flex: none; }

.hero-sub { margin-top: calc(var(--u) * 3); max-width: 31rem; font-size: 1.1875rem; color: var(--ink-2); }

.hero-actions { margin-top: calc(var(--u) * 5); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.cta {
  display: inline-flex; align-items: center;
  height: 54px; padding: 0 30px; border-radius: 27px;
  background: var(--ink); color: #000;
  font-weight: 500;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.cta:hover { background: #fff; }
.cta:active { transform: scale(0.97); }
.quiet { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 4px; }
.quiet:hover { color: var(--ink); }

/* Three phones: the session in front, home and the Instrument behind. */
.hero-phones { position: relative; height: clamp(420px, 62vw, 700px); max-height: 78svh; }
.device {
  position: absolute; top: 50%; left: 50%;
  height: 100%; aspect-ratio: 598 / 1300;
  padding: 7px; border-radius: 13% / 6%;
  background: #0b0b0c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 30px 80px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%);
}
.device picture, .device img { display: block; width: 100%; height: 100%; }
.device img { object-fit: cover; border-radius: 11.5% / 5.3%; }
.device.back { height: 84%; opacity: 0.55; }
.device.back.left { transform: translate(-112%, -50%); }
.device.back.right { transform: translate(12%, -50%); }

.demo .bench { margin-top: 0; grid-template-rows: minmax(320px, min(50vh, 480px)) auto; }
.demo-note { margin-top: calc(var(--u) * 3); color: var(--ink-2); max-width: var(--measure); }
.demo-note a { text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }

.closing { text-align: left; }
.closing p { margin: calc(var(--u) * 2) 0 calc(var(--u) * 4); max-width: var(--measure); color: var(--ink-2); }

@media (min-width: 861px) {
  .demo .bench .faceplate { grid-template-columns: auto auto auto minmax(120px, 1fr) auto; }
  .demo .bench .scope, .demo .bench .ears { grid-column: auto; }
  .demo .bench .ears { grid-auto-flow: row; gap: 4px; }
}

@media (max-width: 860px) {
  body > .mast .mast-links { display: flex; }
  body > .mast .mast-links a:not(.soon) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-phones { height: min(118vw, 520px); order: 2; }
  .soon { font-size: 0.875rem; }
}

/* ---------- Research library ---------- */

.asked { color: var(--ink) !important; }
.caveat { padding: 12px 16px; border-left: 2px solid var(--ember); color: var(--ink) !important; }
.facts th { width: 13rem; font-weight: 400 !important; color: var(--ink-3) !important; white-space: normal !important; }
.facts td { color: var(--ink) !important; }

.page .studies { list-style: none; padding: 0; border-top: 1px solid var(--hair); margin-top: calc(var(--u) * 3); }
.page .studies li { margin: 0; padding: calc(var(--u) * 2.5) 0; border-bottom: 1px solid var(--hair); display: grid; gap: 4px; }
.studies a { text-decoration: none; }
.studies a:hover strong { color: var(--ember); }
.studies .meta { font-size: 0.875rem; color: var(--ink-3); }

/* ---------- Home: tagline, fine print, the parts of the phone ---------- */

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); letter-spacing: -0.02em; }
.fine { margin-top: calc(var(--u) * 4); max-width: 30rem; font-size: 0.875rem; color: var(--ink-3); }

.parts { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.parts div { padding: calc(var(--u) * 3) calc(var(--u) * 3) calc(var(--u) * 3) 0; border-right: 1px solid var(--hair); }
.parts div + div { padding-left: calc(var(--u) * 3); }
.parts div:last-child { border-right: 0; padding-right: 0; }
.parts dt { font-weight: 500; }
.parts dd { margin: calc(var(--u) * 1.5) 0 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }

@media (max-width: 1100px) {
  .parts { grid-template-columns: 1fr; }
  .parts div, .parts div + div { padding: calc(var(--u) * 2.5) 0; border-right: 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: calc(var(--u) * 2); }
  .parts dd { margin: 0; }
}
@media (max-width: 560px) {
  .parts div, .parts div + div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Launch list ---------- */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trap { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }

.notify { margin-top: calc(var(--u) * 5); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 32rem; }
.notify input[type="email"] {
  height: 54px; padding: 0 22px; border-radius: 27px;
  font: inherit; color: var(--ink);
  background: var(--panel); border: 0;
  box-shadow: inset 0 0 0 1px var(--hair);
}
.notify input[type="email"]::placeholder { color: var(--ink-3); }
.notify input[type="email"]:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--ink); }
.notify .cta { border: 0; cursor: pointer; font: inherit; font-weight: 500; white-space: nowrap; }
.notify .cta:disabled { opacity: 0.6; }
.notify-note { grid-column: 1 / -1; margin: 4px 0 0 !important; padding-left: 22px; font-size: 0.9375rem; color: var(--ink-2); }
.notify.is-done input[type="email"], .notify.is-done .cta { display: none; }
.notify.is-done .notify-note { padding-left: 0; color: var(--ink); font-size: 1.0625rem; }
.notify.is-done .notify-note::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px rgba(255, 184, 89, 0.7); }
.closing .notify { margin-top: 0; }

@media (max-width: 560px) {
  .notify { grid-template-columns: 1fr; }
  .notify .cta { justify-content: center; }
  .notify-note { padding-left: 0; }
}

/* The plate fills its own row of the panel; the prompt sits over its foot. */
.bench .plate { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; border-radius: 21px 21px 0 0; }
.bench .prompt {
  grid-area: 1 / 1; z-index: 1;
  padding: 48px 24px 18px; max-width: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  pointer-events: none;
}
.bench .faceplate { grid-area: 2 / 1; -webkit-backdrop-filter: none; backdrop-filter: none; background: #000; }
.demo { padding-top: clamp(56px, 9vw, 120px) !important; }

/* ---------- Science: lamps, figures, a ruled rack of guides ---------- */

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.strong { background: var(--ink); box-shadow: 0 0 12px rgba(255, 255, 255, 0.55); }
.dot.mixed { background: var(--ember); }
.dot.weak { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.dot.none { background: rgba(255, 255, 255, 0.16); }
.dot.reference { box-shadow: inset 0 0 0 1.5px var(--ink-3); transform: scale(0.6); }

.matrix { margin: 0 0 calc(var(--u) * 7); }
.dots { display: flex; flex-wrap: wrap; gap: 12px; max-width: 46rem; }
.dots a.dot { width: 18px; height: 18px; transition: transform 0.15s var(--ease); }
.dots a.dot:hover, .dots a.dot:focus-visible { transform: scale(1.5); }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: calc(var(--u) * 3) 0 0; padding: 0 !important; list-style: none !important; font-size: 0.9375rem; color: var(--ink-2); }
.legend-row li { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; }
.page .matrix { margin: calc(var(--u) * 3) 0 0; }
.studies a { display: flex; align-items: baseline; gap: 12px; }
.studies .dot { width: 9px; height: 9px; transform: translateY(-1px); }

.fig { display: block; color: var(--ink); opacity: 0.9; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair); border-left: 1px solid var(--hair);
}
.tiles li { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.tiles a { display: grid; gap: 6px; height: 100%; align-content: start; padding: calc(var(--u) * 3); transition: background 0.2s var(--ease); }
.tiles a:hover { background: var(--panel); }
.tiles a:hover .fig { color: var(--ember); }
.tiles .fig { margin-bottom: calc(var(--u) * 2); }
.tiles strong { font-weight: 500; }
.tiles span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }

/* The ledger gets its marks. */
.ledger li { position: relative; padding-left: 26px; }
.ledger li::before { content: ""; position: absolute; left: 2px; top: calc(var(--u) * 2 + 9px); width: 8px; height: 8px; border-radius: 50%; }
.ledger div:first-child li::before { background: var(--ember); box-shadow: 0 0 8px rgba(255, 184, 89, 0.6); }
.ledger div:last-child li::before { width: 12px; height: 1.5px; border-radius: 0; top: calc(var(--u) * 2 + 12px); left: 0; background: var(--ink-3); }

/* Questions open in place. */
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list details:first-child { border-top: 1px solid var(--hair); }
.faq-list summary { cursor: pointer; list-style: none; padding: calc(var(--u) * 2.5) 32px calc(var(--u) * 2.5) 0; font-weight: 500; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list details p { margin: 0 0 calc(var(--u) * 3); color: var(--ink-2); max-width: 40rem; }

@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles a { padding: calc(var(--u) * 2); } .tiles .fig { width: 72px; height: 36px; } }

/* ---------- Footer ---------- */

.foot { display: block; padding: clamp(48px, 7vw, 88px) var(--gutter) calc(var(--u) * 5); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(32px, 6vw, 96px); }
.foot-brand p { margin-top: calc(var(--u) * 2); max-width: 20rem; color: var(--ink-2); font-size: 0.9375rem; }
.foot-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--u) * 4); }
.foot-columns h2 { font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.12em; color: var(--ink-3); margin: 0 0 calc(var(--u) * 2); line-height: 1.4; }
.foot-columns ul { display: grid; gap: 10px; font-size: 0.9375rem; }
.foot-columns a { color: var(--ink-2); }
.foot-columns a:hover { color: var(--ink); }
.foot-base {
  margin-top: clamp(40px, 6vw, 72px); padding-top: calc(var(--u) * 3);
  border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  font-size: 0.875rem;
}
.foot-base p { color: var(--ink-3); max-width: 44rem; }

html { scroll-padding-top: 24px; }

@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
