/* PeakXR — site styles */

:root {
  --bg: #f1f2f0;
  --bg-2: #e7e9e5;
  --card: #fbfbfa;
  --line: #d6d9d4;
  --line-2: #c3c7c0;
  --ink: #0e1013;
  --ink-2: #3d434a;
  --ink-3: #737a82;

  --panel: #111418;
  --panel-2: #181c21;
  --panel-line: #262b32;
  --panel-text: #e6e9e6;
  --panel-muted: #848c95;

  --signal: #c8ff3d;
  --signal-ink: #4a6400;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(14, 16, 19, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 16, 19, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--signal); color: var(--ink); }

img, svg, canvas { max-width: 100%; display: block; }

a { color: inherit; }

p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 112;
}

h1 { font-size: clamp(42px, 6.4vw, 88px); letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.035em; }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.label b {
  font-weight: 500;
  color: var(--ink);
  background: var(--signal);
  padding: 2px 6px;
}

.lead {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38em;
}

.muted { color: var(--ink-3); }

.hl {
  background: linear-gradient(transparent 62%, var(--signal) 62%, var(--signal) 92%, transparent 92%);
  padding: 0 0.06em;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 242, 240, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 20px; width: auto; }
.brand .mono { color: var(--ink-3); font-size: 11px; padding-left: 14px; border-left: 1px solid var(--line-2); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 4px 0;
  position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--ink);
}
.nav .nav-mail {
  color: var(--ink);
  font-weight: 500;
  background: var(--signal);
  padding: 8px 16px;
  border: 1px solid var(--ink);
}
.nav .nav-mail:hover { background: var(--ink); color: var(--signal); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-right: -8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s;
}

@media (max-width: 860px) {
  .brand .mono { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gut) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 18px; width: 100%; }
  .nav a[aria-current="page"]::before { display: none; }
  .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal-ink); text-underline-offset: 6px; }
  .nav .nav-mail { margin-top: 12px; width: auto; padding: 10px 16px; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding: 15px 22px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--signal); color: var(--ink); }
.btn .arr { font-family: var(--mono); transition: transform 0.15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn.signal { background: var(--signal); color: var(--ink); }
.btn.signal:hover { background: var(--ink); color: var(--signal); }

.link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-3);
  padding-bottom: 1px;
}
.link:hover { border-bottom: 2px solid var(--signal-ink); }

/* ---------- sections ---------- */

section { padding: clamp(80px, 10vw, 136px) 0; position: relative; }

.rule {
  border-top: 1px solid var(--line-2);
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.sec-head p { margin: 0; color: var(--ink-2); max-width: 34em; }

@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
}

/* corner ticks used on framed elements */
.ticks { position: relative; }
.ticks::before,
.ticks::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-color: var(--ink);
  border-style: solid;
}
.ticks::before { top: -6px; left: -6px; border-width: 1px 0 0 1px; }
.ticks::after { bottom: -6px; right: -6px; border-width: 0 1px 1px 0; }

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

.hero { padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 8vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.hero-stats div {
  padding: 16px 36px 0 0;
  margin-right: 36px;
  border-right: 1px solid var(--line-2);
}
.hero-stats div:last-child { border-right: 0; margin-right: 0; }
.hero-stats b {
  display: block;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 112;
  font-feature-settings: "tnum";
  line-height: 1.1;
}
.hero-stats span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-stats div { padding-right: 16px; margin-right: 16px; }
  .hero-stats b { font-size: 26px; }
}

/* instrument panel (dark device-like surface) */

.instrument {
  background: var(--panel);
  color: var(--panel-text);
  border: 1px solid var(--ink);
  position: relative;
  box-shadow: 10px 10px 0 -1px var(--bg), 10px 10px 0 0 var(--ink);
}
.instrument-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--panel-line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.instrument-bar .rec { color: var(--panel-text); display: inline-flex; align-items: center; gap: 8px; }
.instrument-bar .rec::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.scene { position: relative; aspect-ratio: 16 / 11; }
.scene canvas { width: 100%; height: 100%; }

.readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--panel-line);
  font-family: var(--mono);
}
.readout div {
  padding: 12px 14px 14px;
  border-right: 1px solid var(--panel-line);
}
.readout div:last-child { border-right: 0; }
.readout span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--panel-muted);
  margin-bottom: 4px;
}
.readout b {
  font-weight: 500;
  font-size: 18px;
  font-feature-settings: "tnum";
  color: var(--panel-text);
}
.readout b.sig { color: var(--signal); }

@media (max-width: 560px) {
  .readout { grid-template-columns: 1fr 1fr; }
  .readout div:nth-child(2) { border-right: 0; }
  .readout div:nth-child(-n+2) { border-bottom: 1px solid var(--panel-line); }
}

/* ---------- marquee of measured subdomains ---------- */

.stream {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--signal);
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
}
.stream-track {
  display: inline-flex;
  animation: stream 60s linear infinite;
}
.stream span {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 0;
}
.stream span::after { content: "/"; padding: 0 22px; opacity: 0.4; }
@keyframes stream { to { transform: translateX(-50%); } }

/* ---------- spec compare table ---------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--card);
  border: 1px solid var(--ink);
}
.spec th,
.spec td {
  text-align: left;
  vertical-align: top;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.spec tr:last-child th,
.spec tr:last-child td { border-bottom: 0; }
.spec thead th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--ink);
  padding-top: 14px;
  padding-bottom: 14px;
}
.spec thead th.us { color: var(--ink); background: var(--signal); }
.spec tbody th {
  font-weight: 600;
  width: 18%;
}
.spec td { color: var(--ink-2); width: 41%; }
.spec td.us { color: var(--ink); background: rgba(200, 255, 61, 0.14); border-left: 1px solid var(--line); }

.spec-wrap { overflow-x: auto; }
.spec-wrap table { min-width: 640px; }

/* ---------- pipeline ---------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--ink);
  background: var(--card);
}
.pipeline > div {
  padding: 22px 22px 26px;
  border-right: 1px solid var(--line);
  position: relative;
}
.pipeline > div:last-child { border-right: 0; background: var(--panel); color: var(--panel-text); }
.pipeline > div:last-child p { color: var(--panel-muted); }
.pipeline > div:last-child .mono { color: var(--signal); }
.pipeline > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -5px;
  width: 9px;
  height: 9px;
  background: var(--signal);
  border: 1px solid var(--ink);
  transform: rotate(45deg);
  z-index: 1;
}
.pipeline .mono { color: var(--ink-3); display: block; margin-bottom: 36px; }
.pipeline h3 { margin-bottom: 10px; font-size: 19px; }
.pipeline p { font-size: 15px; color: var(--ink-2); margin: 0; }

@media (max-width: 1000px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline > div { border-bottom: 1px solid var(--line); }
  .pipeline > div::after { display: none; }
  .pipeline > div:nth-child(2n) { border-right: 0; }
  .pipeline > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipeline > div { border-right: 0; }
  .pipeline .mono { margin-bottom: 16px; }
}

/* ---------- modules / domain tree ---------- */

.modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.module {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 28px 28px 12px;
}
.module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.module h3 { font-size: 30px; letter-spacing: -0.03em; }
.module-head .mono { color: var(--ink-3); text-align: right; line-height: 1.6; }
.module > p { color: var(--ink-2); max-width: 30em; }
.module dl { margin: 22px 0 0; }
.module dl > div {
  display: grid;
  grid-template-columns: 30px 180px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  transition: background 0.15s;
}
.module dl > div:hover { background: rgba(200, 255, 61, 0.22); }
.module dl .mono { color: var(--ink-3); font-size: 11px; padding-top: 3px; }
.module dt { font-weight: 600; }
.module dd { margin: 0; color: var(--ink-2); }

@media (max-width: 960px) {
  .modules { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .module { padding: 22px 18px 8px; }
  .module dl > div { grid-template-columns: 26px 1fr; }
  .module dd { grid-column: 2; }
}

/* ---------- sample report (dark instrument) ---------- */

.report-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.report-grid .prose p { color: var(--ink-2); }

.report { font-size: 14px; }
.report-body { padding: 22px 22px 18px; }
.report-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.report-score .num {
  font-size: 64px;
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 112;
  font-feature-settings: "tnum";
}
.report-score .lbl {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--panel-muted);
  text-align: right;
}
.report-score .lbl b { color: var(--signal); font-weight: 500; }

.bars { list-style: none; margin: 0; padding: 0; }
.bars li {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 6px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--panel-line);
}
.bars span { color: var(--panel-text); }
.bars b {
  font-family: var(--mono);
  font-weight: 500;
  text-align: right;
  font-feature-settings: "tnum";
}
.bars .bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--panel-2);
  position: relative;
  border-radius: 0 3px 3px 0;
}
.bars .bar::before {
  /* population average band */
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 45%;
  width: 18%;
  border-left: 1px dashed #4a525c;
  border-right: 1px dashed #4a525c;
}
.bars .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: #8a929c;
  border-radius: 0 3px 3px 0;
}
.bars li.hi .bar i { background: var(--signal); }
.report-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--panel-muted);
}
.report-foot i {
  display: inline-block;
  width: 18px;
  height: 8px;
  border-left: 1px dashed #4a525c;
  border-right: 1px dashed #4a525c;
  vertical-align: -1px;
  margin-right: 6px;
}

@media (max-width: 960px) {
  .report-grid { grid-template-columns: 1fr; }
}

/* ---------- steps (session timeline) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: step;
  border-top: 1px solid var(--ink);
}
.steps li {
  counter-increment: step;
  padding: 0 28px 0 0;
  position: relative;
}
.steps li::before {
  content: attr(data-t);
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  margin: -1px 0 26px;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--signal);
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 16px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- statement band ---------- */

.statement { padding: clamp(64px, 8vw, 104px) 0; }
.statement blockquote {
  margin: 0;
  max-width: 20em;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-variation-settings: "wdth" 112;
}
.statement cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- facts grid ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  background: var(--card);
}
.facts > div {
  padding: 26px 28px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts > div:nth-child(3n) { border-right: 0; }
.facts > div:nth-last-child(-n+3) { border-bottom: 0; }
.facts .mono { color: var(--ink-3); display: block; margin-bottom: 28px; }
.facts h3 { margin-bottom: 10px; }
.facts p { color: var(--ink-2); font-size: 16px; margin: 0; }

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { border-bottom: 1px solid var(--line) !important; border-right: 1px solid var(--line) !important; }
  .facts > div:nth-child(2n) { border-right: 0 !important; }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: 0 !important; }
}

/* ---------- two column prose ---------- */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 96px);
}
.split .prose p { color: var(--ink-2); }
.split .prose p:first-child { color: var(--ink); font-size: 19px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.checklist { list-style: none; margin: 24px 0 0; padding: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
  color: var(--ink-2);
}
.checklist li::before {
  font-family: var(--mono);
  font-size: 11px;
  padding-top: 4px;
  content: "[ ok ]";
  color: var(--signal-ink);
  font-weight: 500;
}
.checklist.no li::before { content: "[ -- ]"; color: var(--ink-3); }

/* ---------- research areas ---------- */

.areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  background: var(--card);
}
.area {
  padding: 30px 30px 32px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 16px;
}
.area:nth-child(odd) { border-right: 1px solid var(--line); }
.area:nth-last-child(-n+2) { border-bottom: 0; }
.area .idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--signal);
  border: 1px solid var(--ink);
  height: 26px;
  display: grid;
  place-items: center;
}
.area h3 { font-size: 22px; margin-bottom: 10px; }
.area p { color: var(--ink-2); font-size: 16px; margin: 0 0 14px; }
.area .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.area .tags span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-2);
  padding: 3px 8px;
  color: var(--ink-2);
}
.area > :not(.idx) { grid-column: 2; }
.area .idx { grid-row: 1 / span 3; }

@media (max-width: 860px) {
  .areas { grid-template-columns: 1fr; }
  .area { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .area:last-child { border-bottom: 0 !important; }
}
@media (max-width: 520px) {
  .area { grid-template-columns: 1fr; padding: 24px 20px; }
  .area > :not(.idx), .area .idx { grid-column: 1; grid-row: auto; }
  .area .idx { width: 44px; margin-bottom: 8px; }
}

/* open questions list */
.questions { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.questions li {
  counter-increment: q;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
  font-size: clamp(19px, 1.8vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.questions li:last-child { border-bottom: 1px solid var(--line-2); }
.questions li::before {
  content: "Q" counter(q, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 6px;
}

/* ---------- packages ---------- */

.pkg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--card);
  border: 1px solid var(--ink);
}
.pkg-table th,
.pkg-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.pkg-table tbody tr:last-child th,
.pkg-table tbody tr:last-child td { border-bottom: 0; }
.pkg-table thead th {
  border-bottom: 1px solid var(--ink);
  padding-top: 24px;
  padding-bottom: 22px;
  vertical-align: bottom;
}
.pkg-table thead th:first-child { width: 20%; }
.pkg-name {
  display: block;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 112;
}
.pkg-sub {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.pkg-table tbody th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 22px;
}
.pkg-table td b {
  font-size: 24px;
  font-weight: 600;
  font-feature-settings: "tnum";
}
.pkg-table .col-hi { background: rgba(200, 255, 61, 0.16); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.pkg-table thead .col-hi { background: var(--signal); }
.pkg-table thead .col-hi .pkg-sub { color: var(--ink); }

.meter {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}
.meter i {
  width: 14px;
  height: 6px;
  background: var(--line);
}
.meter i.on { background: var(--ink); }

.pkg-wrap { overflow-x: auto; }
.pkg-wrap table { min-width: 760px; }

.small-print {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}

/* SARF */

.sarf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  background: var(--card);
}
.sarf > div { padding: 24px 24px 12px; border-right: 1px solid var(--line); }
.sarf > div:last-child { border-right: 0; }
.sarf .letter {
  font-size: 88px;
  line-height: 0.85;
  font-weight: 600;
  color: var(--ink);
  font-variation-settings: "wdth" 125;
  margin-bottom: 18px;
  display: inline-block;
  padding: 0 4px;
  background: var(--signal);
}
.sarf h3 { margin-bottom: 8px; }
.sarf p { font-size: 15px; color: var(--ink-2); }
.sarf ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; }
.sarf li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 38px 1fr;
}
.sarf li::before { content: attr(data-c); font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 2px; }

@media (max-width: 960px) {
  .sarf { grid-template-columns: 1fr 1fr; }
  .sarf > div { border-bottom: 1px solid var(--line); }
  .sarf > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .sarf { grid-template-columns: 1fr; }
  .sarf > div { border-right: 0; }
}

/* ---------- contact ---------- */

.contact-mail {
  display: inline-block;
  font-size: clamp(36px, 7vw, 104px);
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variation-settings: "wdth" 112;
  text-decoration: none;
  line-height: 1;
  margin: 8px 0 48px;
  word-break: break-word;
}
.contact-mail span { background: linear-gradient(transparent 70%, var(--signal) 70%); }
.contact-mail:hover span { background: var(--signal); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  background: var(--card);
}
.contact-grid > div { padding: 26px 26px 28px; border-right: 1px solid var(--line); }
.contact-grid > div:last-child { border-right: 0; }
.contact-grid .mono { display: block; color: var(--ink-3); margin-bottom: 26px; }
.contact-grid h3 { margin-bottom: 10px; }
.contact-grid p { color: var(--ink-2); font-size: 16px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-grid > div:last-child { border-bottom: 0; }
}

/* ---------- CTA ---------- */

.cta { padding: clamp(56px, 7vw, 88px) 0; }
.cta-box {
  background: var(--signal);
  border: 1px solid var(--ink);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  box-shadow: 10px 10px 0 -1px var(--bg), 10px 10px 0 0 var(--ink);
}
.cta h2 { max-width: 13em; }
.cta p { margin: 16px 0 0; color: var(--ink-2); max-width: 32em; }

/* ---------- page hero (inner pages) ---------- */

.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); }
.page-hero .lead { margin-top: 28px; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: end;
}
.page-hero aside {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  border-left: 1px solid var(--ink);
  padding-left: 18px;
  line-height: 1.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.page-hero aside b { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--panel);
  color: var(--panel-muted);
  font-size: 14px;
  padding: 64px 0 36px;
  border-top: 1px solid var(--ink);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--panel-line);
}
.foot-top img { height: 40px; width: auto; }
.foot-top .mono { margin-top: 18px; display: block; color: var(--panel-muted); }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-links ul { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 10px; }
.foot-links a { text-decoration: none; color: var(--panel-text); }
.foot-links a:hover { color: var(--signal); }
.foot-links .h {
  font-family: var(--mono);
  color: #5d656e;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  font-size: 13px;
  color: #5d656e;
}

/* ---------- 404 ---------- */

.notfound { min-height: 64vh; display: flex; align-items: center; }
.notfound h1 { margin-bottom: 20px; }

/* ---------- reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stream-track { animation: none; }
  .instrument-bar .rec::before { animation: none; }
}

.facts.four { grid-template-columns: repeat(4, 1fr); }
.facts.four > div { border-right: 1px solid var(--line); border-bottom: 0; }
.facts.four > div:last-child { border-right: 0; }
@media (max-width: 900px) {
  .facts.four { grid-template-columns: 1fr 1fr; }
  .facts.four > div:nth-child(-n+2) { border-bottom: 1px solid var(--line) !important; }
  .facts.four > div:nth-child(n+3) { border-bottom: 0 !important; }
}
@media (max-width: 600px) {
  .facts.four { grid-template-columns: 1fr; }
  .facts.four > div { border-bottom: 1px solid var(--line) !important; }
  .facts.four > div:last-child { border-bottom: 0 !important; }
}

.cta-box .label { color: var(--ink-2); }
.cta-box .label b { background: var(--ink); color: var(--signal); }

.meter { max-width: 100%; }
.meter i { flex: 1 1 0; max-width: 14px; min-width: 4px; width: auto; }
