/* CRV Tech
   Layout: a ruled technical sheet on a 12-column grid. Sections read like rows
   in an equipment datasheet; the hero is a rack elevation; the signal yellow is
   the label you stick on the kit. */

:root {
  --paper: #ECEDE9;
  --paper-2: #E2E4DF;
  --ink: #141619;
  --ink-2: #33383E;
  --muted: #5B6167;
  --line: rgba(20, 22, 25, .13);
  --line-2: rgba(20, 22, 25, .34);
  --signal: #F2BF0A;
  --on-signal: #141619;

  --rack: #1B1E22;
  --rack-2: #262A30;
  --rack-3: #313740;
  --rack-void: #0B0C0E;
  --rack-fg: #DADCD6;
  --rack-muted: #848A91;
  --led: #3DDC84;
  --lcd: #0A0D0B;

  --band: #141619;
  --band-fg: #ECEDE9;
  --band-muted: #A4A9AE;
  --band-line: rgba(236, 237, 233, .16);
  --band-line-2: rgba(236, 237, 233, .38);
  --err: #B42318;
  --band-err: #FF8F78;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1280px;
  --head-h: 68px;
  --ease: cubic-bezier(.2, .75, .1, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1113;
    --paper-2: #161A1D;
    --ink: #E9EAE5;
    --ink-2: #C6C9C3;
    --muted: #91979D;
    --line: rgba(233, 234, 229, .11);
    --line-2: rgba(233, 234, 229, .3);
    --rack: #1A1D21;
    --rack-2: #24282E;
    --rack-3: #2F353D;
    --band: #1A1D21;
    --err: #FF8F78;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1113;
  --paper-2: #161A1D;
  --ink: #E9EAE5;
  --ink-2: #C6C9C3;
  --muted: #91979D;
  --line: rgba(233, 234, 229, .11);
  --line-2: rgba(233, 234, 229, .3);
  --rack: #1A1D21;
  --rack-2: #24282E;
  --rack-3: #2F353D;
  --band: #1A1D21;
  --err: #FF8F78;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px + env(safe-area-inset-top, 0px));
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
html.menu-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--signal);
  color: var(--on-signal);
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: .75rem;
  text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Shared type */
.label {
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before { content: ""; width: 8px; height: 8px; background: var(--signal); flex: none; }
.label.plain::before { display: none; }

.h2 {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 780;
  font-size: clamp(1.9rem, 1rem + 3vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.022em;
  max-width: 19ch;
}
.lede {
  color: var(--ink-2);
  max-width: 40em;
  margin-top: 22px;
  font-size: clamp(1.02rem, .98rem + .2vw, 1.14rem);
}
.text-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(var(--signal), var(--signal)) 0 100% / 100% .3em no-repeat;
  transition: background-size .25s var(--ease);
}
.text-link:hover { background-size: 100% 100%; color: var(--on-signal); }

.todo {
  font-family: var(--f-mono);
  font-size: .82em;
  outline: 1px dashed currentColor;
  outline-offset: 1px;
  padding: 0 .35em;
  opacity: .8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  cursor: pointer;
  background: var(--signal);
  color: var(--on-signal);
  font-family: var(--f-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform .2s var(--ease), filter .2s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px dashed var(--on-signal); outline-offset: -6px; }
.btn .arr { transition: transform .25s var(--ease); flex: none; }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: .68rem; }
.btn[disabled] { cursor: progress; filter: saturate(.6); }

.btn-line {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--signal);
  padding: 8px 0 6px;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  text-decoration: none;
  min-height: 44px;
}
.btn-line .arr { transition: transform .25s var(--ease); }
.btn-line:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--head-h);
}
.logo { display: inline-flex; color: var(--ink); flex: none; }
.logo svg { display: block; height: 26px; width: auto; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 14px; }

.menu-btn {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--ink);
  min-height: 42px;
  padding: 0 14px;
  gap: 10px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-lines { position: relative; width: 16px; height: 10px; }
.menu-lines::before, .menu-lines::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-lines::before { top: 0; }
.menu-lines::after { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-lines::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { top: 4px; transform: rotate(-45deg); }

.mnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: calc(var(--head-h) + env(safe-area-inset-top, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 12px calc(28px + env(safe-area-inset-bottom, 0px));
  animation: drop .35s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav li { border-bottom: 1px solid var(--line); }
.mnav a.mlink {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-display);
  font-stretch: 122%;
  font-weight: 760;
  font-size: 1.9rem;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.mnav a.mlink span {
  font-family: var(--f-mono);
  font-stretch: 100%;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
  width: 34px;
  flex: none;
}
.mnav .btn { width: 100%; margin-top: 28px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .head-actions .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px);
  align-items: end;
}
.hero-copy { grid-column: 1 / span 7; min-width: 0; }
.hero-rack { grid-column: 9 / span 4; min-width: 0; }
@media (max-width: 1080px) {
  .hero-copy { grid-column: 1 / span 7; }
  .hero-rack { grid-column: 8 / span 5; }
}
@media (max-width: 900px) {
  .hero-copy, .hero-rack { grid-column: 1 / -1; }
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--signal); flex: none; }
.h-hero {
  margin-top: 24px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 820;
  font-size: clamp(2.25rem, .9rem + 5.4vw, 6.1rem);
  line-height: .93;
  letter-spacing: -.03em;
}
.h-hero .mark {
  background: linear-gradient(var(--signal), var(--signal)) 0 92% / 100% .2em no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lede {
  max-width: 33em;
  margin-top: 30px;
  font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem);
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-top: 36px;
}
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Rack */
.rack { margin: 0; --u: clamp(28px, 2.7vw, 37px); }
@media (max-width: 900px) { .rack { --u: 32px; max-width: 560px; } }
@media (max-width: 420px) { .rack { --u: 29px; } }
.rack-frame {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  background: var(--rack);
  padding-block: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 60px -40px rgba(0, 0, 0, .55);
}
.rack-rail {
  display: grid;
  grid-template-rows: repeat(12, var(--u));
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--f-mono);
  font-size: .54rem;
  color: var(--rack-muted);
}
.rack-rail li { display: flex; align-items: center; justify-content: center; }
.rack-holes {
  background-image: repeating-linear-gradient(to bottom,
    transparent 0, transparent calc(var(--u) / 6 - 2.5px),
    var(--rack-void) calc(var(--u) / 6 - 2.5px), var(--rack-void) calc(var(--u) / 6 + 2.5px),
    transparent calc(var(--u) / 6 + 2.5px), transparent calc(var(--u) / 3));
  background-size: 6px 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.rack-units {
  display: grid;
  grid-template-rows: repeat(12, var(--u));
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--rack-void);
}
.rack-units > li {
  grid-row: span var(--h, 1);
  display: flex;
  padding-block: 1px;
  min-width: 0;
}
.unit {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 18px;
  background: var(--rack-2);
  color: var(--rack-fg);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .45);
  transition: transform .4s var(--ease), background .2s;
  animation: unit-in .8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + 200ms);
}
.unit::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rack-muted);
  opacity: .55;
  transform: translateY(-50%);
}
@keyframes unit-in { from { opacity: 0; transform: translateX(-16px); } }
a.unit:hover, a.unit:focus-visible { transform: translateX(10px); background: var(--rack-3); outline: none; }
a.unit:focus-visible { box-shadow: inset 0 0 0 2px var(--signal); }
.unit-code {
  font-family: var(--f-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--signal);
  flex: none;
}
.unit-name {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rack-fg);
  white-space: nowrap;
  flex: none;
}
.led {
  margin-left: auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 6px var(--led);
  flex: none;
  animation: blink 3.2s steps(1) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes blink { 0%, 64% { opacity: 1; } 66% { opacity: .2; } 70% { opacity: 1; } 72% { opacity: .25; } 75% { opacity: 1; } }
.lcd {
  font-family: var(--f-mono);
  font-size: .56rem;
  color: var(--led);
  background: var(--lcd);
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .08);
  white-space: nowrap;
  margin-left: auto;
}
.lcd + .led { margin-left: 0; }
.unit.blank {
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(0, 0, 0, .42) 7px 10px);
  background-size: 58% 36%;
  background-position: 55% 50%;
  background-repeat: no-repeat;
  background-color: var(--rack-2);
}
.ports {
  flex: 1 1 auto;
  min-width: 0;
  height: 40%;
  max-width: 150px;
  background-image: repeating-linear-gradient(90deg, var(--rack-void) 0 7px, transparent 7px 10px);
  margin-left: auto;
}
.ports + .led { margin-left: 0; }
.unit.tall { flex-direction: column; align-items: stretch; justify-content: center; gap: 7px; padding-block: 8px; }
.unit-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bays { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; flex: 1; min-height: 0; }
.bays i {
  position: relative;
  background: linear-gradient(var(--rack-3), var(--rack-2));
  border: 1px solid rgba(255, 255, 255, .07);
}
.bays i::after {
  content: "";
  position: absolute;
  right: 5px; bottom: 5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--led);
  opacity: .85;
}
.unit.slot {
  background: transparent;
  box-shadow: none;
  border: 1px dashed rgba(242, 191, 10, .55);
  justify-content: space-between;
  color: var(--signal);
}
.unit.slot::before { display: none; }
.unit.slot .unit-name { color: var(--signal); }
.slot-arr { flex: none; }
.rack-cap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 128px); }
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head .label { grid-column: 1 / span 3; align-self: start; padding-top: .7em; }
.sec-head .sec-title { grid-column: 4 / -1; min-width: 0; }
@media (max-width: 860px) {
  .sec-head .label, .sec-head .sec-title { grid-column: 1 / -1; padding-top: 0; }
}

/* Services index */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.svc { border-bottom: 1px solid var(--line-2); }
.svc-btn, .svc-grid {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.25fr) minmax(0, 1fr) 46px;
  gap: 8px 28px;
}
.svc-btn {
  appearance: none;
  width: 100%;
  background: none;
  border: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  align-items: center;
  padding-block: 28px;
}
.svc-btn:focus-visible { outline-offset: 4px; }
.svc-code {
  justify-self: start;
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
  padding: 4px 7px;
  border: 1px solid var(--line-2);
  transition: background .25s, color .25s, border-color .25s;
}
.svc.is-open .svc-code { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.svc-title {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 780;
  font-size: clamp(1.35rem, .8rem + 2.3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.025em;
  transition: transform .35s var(--ease);
}
.svc-btn:hover .svc-title { transform: translateX(6px); }
.svc-sum { color: var(--muted); font-size: .98rem; line-height: 1.45; }
.svc-icon {
  justify-self: end;
  position: relative;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2);
  transition: background .25s, border-color .25s;
}
.svc-icon::before, .svc-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), background .25s;
}
.svc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc.is-open .svc-icon { background: var(--ink); border-color: var(--ink); }
.svc.is-open .svc-icon::before, .svc.is-open .svc-icon::after { background: var(--paper); }
.svc.is-open .svc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.svc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .5s var(--ease), visibility 0s linear .5s;
}
.svc.is-open .svc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .5s var(--ease), visibility 0s;
}
.svc-panel-in { overflow: hidden; min-height: 0; }
.svc-grid { padding-bottom: 40px; }
.svc-body { grid-column: 2; min-width: 0; }
.svc-body p { color: var(--ink-2); font-size: 1.08rem; max-width: 34em; }
.svc-body .btn-line { margin-top: 26px; }
.svc-inc { grid-column: 3 / span 2; min-width: 0; }
.inc-list { list-style: none; margin: 12px 0 0; padding: 0; }
.inc-list li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: .98rem;
  color: var(--ink-2);
}
.inc-list li::before { content: ""; width: 6px; height: 6px; margin-top: .62em; background: var(--ink); flex: none; }

@media (max-width: 760px) {
  .svc-btn {
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-areas: "code icon" "title icon" "sum sum";
    gap: 10px 16px;
    padding-block: 24px;
  }
  .svc-code { grid-area: code; }
  .svc-title { grid-area: title; }
  .svc-sum { grid-area: sum; }
  .svc-icon { grid-area: icon; align-self: center; width: 42px; height: 42px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 32px; }
  .svc-body, .svc-inc { grid-column: 1; }
}

/* Approach: datasheet */
.ds { margin: 0; border: 1px solid var(--line-2); }
.ds-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 20px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.ds-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 2.2fr);
  gap: 6px 28px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.ds-row:last-child { border-bottom: 0; }
.ds-row dt {
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.ds-row dd { margin: 0; min-width: 0; }
.ds-val {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 760;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.ds-note { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 720px) {
  .ds-row { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .ds-head { padding: 12px 16px; }
}

.approach-lower {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  margin-top: clamp(56px, 7vw, 96px);
  align-items: start;
}
.process { grid-column: 1 / span 8; min-width: 0; }
.callout { grid-column: 9 / span 4; min-width: 0; }
@media (max-width: 1000px) { .process, .callout { grid-column: 1 / -1; } }
.process-title {
  font-family: var(--f-display);
  font-stretch: 118%;
  font-weight: 760;
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem);
  letter-spacing: -.015em;
  margin-bottom: 28px;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { border-top: 2px solid var(--ink); padding: 18px 22px 0 0; min-width: 0; }
.step-n { font-family: var(--f-mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.step h4 {
  margin: 14px 0 8px;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 740;
  font-size: 1.12rem;
  line-height: 1.2;
}
.step p { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 12px;
    padding: 18px 0 22px;
    border-top-width: 1px;
  }
  .step-n { grid-row: 1 / span 2; padding-top: .45em; }
  .step h4 { margin: 0 0 6px; }
  .steps .step:first-child { border-top-width: 2px; }
}
.callout {
  background: var(--signal);
  color: var(--on-signal);
  padding: clamp(24px, 3vw, 34px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.callout .label { color: var(--on-signal); }
.callout .label::before { background: var(--on-signal); }
.callout h3 {
  margin: 18px 0 12px;
  font-family: var(--f-display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.callout p { font-size: 1rem; line-height: 1.55; }
.callout .btn-line { color: var(--on-signal); border-bottom-color: var(--on-signal); margin-top: 18px; }
.callout .btn-line:focus-visible { outline: 2px dashed var(--on-signal); outline-offset: 4px; }

/* Typical work */
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.job { border-bottom: 1px solid var(--line); }
.job-btn {
  appearance: none;
  width: 100%;
  margin: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) 150px 24px;
  gap: 8px 28px;
  align-items: baseline;
  padding: 24px 0;
  transition: padding-left .35s var(--ease);
}
.job-btn::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--signal);
  transform: scaleY(0);
  transition: transform .35s var(--ease);
}
.job-btn:hover, .job-btn:focus-visible { padding-left: 22px; }
.job-btn:hover::before, .job-btn:focus-visible::before { transform: scaleY(1); }
.job-title {
  font-family: var(--f-display);
  font-stretch: 115%;
  font-weight: 740;
  font-size: clamp(1.12rem, 1rem + .55vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.job-desc { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.job-tags span {
  font-family: var(--f-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.job-arr { align-self: center; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ease); }
.job-btn:hover .job-arr, .job-btn:focus-visible .job-arr { opacity: 1; transform: none; }
.jobs-note { margin-top: 22px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .job-btn { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .job-tags { justify-content: flex-start; }
  .job-arr { display: none; }
  .job-btn:hover, .job-btn:focus-visible { padding-left: 18px; }
}

/* About */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.about-big { grid-column: 1 / span 5; min-width: 0; }
.about-big .label { margin-bottom: 26px; }
.about-big h2 {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 820;
  font-size: clamp(2.3rem, 1rem + 4.6vw, 5rem);
  line-height: .94;
  letter-spacing: -.03em;
}
.about-text { grid-column: 7 / span 6; min-width: 0; display: grid; gap: 20px; }
.about-text > p { color: var(--ink-2); font-size: 1.08rem; max-width: 36em; }
.about-text > p:first-child { color: var(--ink); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.5; }
.facts { margin: 16px 0 0; border-top: 1px solid var(--line-2); }
.facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: .66rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-top: .3em; }
.facts dd { margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .about-big, .about-text { grid-column: 1 / -1; } }
@media (max-width: 480px) { .facts div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact band ---------- */
.contact {
  --ink: var(--band-fg);
  --ink-2: var(--band-fg);
  --muted: var(--band-muted);
  --line: var(--band-line);
  --line-2: var(--band-line-2);
  --err: var(--band-err);
  --paper: var(--band);
  background: var(--band);
  color: var(--band-fg);
  color-scheme: dark;
  padding-block: clamp(64px, 9vw, 128px);
}
.contact :focus-visible { outline-color: var(--signal); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; }
.contact-intro { grid-column: 1 / span 5; min-width: 0; }
.mail-card { grid-column: 7 / span 6; min-width: 0; display: grid; gap: 22px; align-content: start; }
@media (max-width: 960px) { .contact-intro, .mail-card { grid-column: 1 / -1; } }
.mail-addr {
  display: block;
  color: var(--band-fg);
  text-decoration: none;
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 760;
  font-size: clamp(1.25rem, .8rem + 2.1vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line-2);
}
a.mail-addr[href]:hover { border-bottom-color: var(--signal); }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.mail-actions .btn-line { color: var(--band-fg); }
.mail-subject { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; color: var(--signal); }
.mail-tips { margin-top: 14px; }
.mail-tips .inc-list li::before { background: var(--signal); }
.h-contact {
  margin-top: 26px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 820;
  font-size: clamp(2.3rem, 1rem + 4.4vw, 4.9rem);
  line-height: .94;
  letter-spacing: -.03em;
}
.contact-intro > p { margin-top: 26px; color: var(--band-muted); font-size: 1.08rem; max-width: 30em; }
.direct { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.direct-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.direct-row .k { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); width: 64px; flex: none; }
.direct-row a, .direct-row span.v { color: var(--band-fg); font-size: 1.02rem; overflow-wrap: anywhere; }
.copy-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--band-fg);
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 9px;
  cursor: pointer;
}

.form { display: grid; gap: 28px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; border: 0; margin: 0; padding: 0; }
.f-label, .field legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  font-family: var(--f-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field legend { margin-bottom: 10px; }
.f-label .opt { letter-spacing: .06em; opacity: .8; }
.input {
  width: 100%;
  font: inherit;
  font-size: 1.06rem;
  color: var(--band-fg);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line-2);
  border-radius: 0;
  padding: 10px 0 12px;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--band-muted); opacity: .65; }
.input:hover { border-bottom-color: var(--band-fg); }
.input:focus { outline: none; border-bottom-color: var(--signal); box-shadow: 0 1.5px 0 var(--signal); }
textarea.input { min-height: 148px; resize: vertical; line-height: 1.55; }
.input[aria-invalid="true"] { border-bottom-color: var(--err); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--band-fg);
  border-bottom: 1.5px solid var(--band-fg);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select { padding-right: 28px; cursor: pointer; }
.select-wrap option { background: var(--band); color: var(--band-fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  font-size: .94rem;
  cursor: pointer;
  user-select: none;
  transition: background .2s, color .2s, border-color .2s;
}
.chip span::before { content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor; flex: none; transition: background .2s; }
.chip:hover span { border-color: var(--band-fg); }
.chip input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.chip input:checked + span::before { background: var(--on-signal); border-color: var(--on-signal); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.chips-field.is-invalid .chip span { border-color: var(--err); }
.err { display: flex; gap: 8px; font-size: .86rem; color: var(--err); line-height: 1.4; }
.err::before { content: "!"; font-family: var(--f-mono); font-weight: 600; flex: none; }
.hint { font-size: .82rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-top: 6px; }
.privacy-note { font-size: .86rem; color: var(--muted); max-width: 26em; line-height: 1.5; }
.privacy-note a { color: var(--band-fg); }
.spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); font-size: .95rem; line-height: 1.5; }
.form-status.is-error { border-color: var(--err); }
.form-status.is-error::before { content: "!"; font-family: var(--f-mono); font-weight: 600; color: var(--err); flex: none; }
.form-status a { color: var(--band-fg); }
.sent { border: 1px solid var(--line-2); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.sent h3 {
  font-family: var(--f-display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.sent p { color: var(--band-muted); }
.sent .tick { width: 44px; height: 44px; background: var(--signal); display: grid; place-items: center; color: var(--on-signal); }

/* ---------- Footer ---------- */
.site-foot { padding-block: clamp(56px, 7vw, 96px) 28px; }
.foot-mark { color: var(--ink); display: block; }
.foot-mark svg { display: block; width: 100%; height: auto; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px 24px; margin-top: clamp(40px, 5vw, 64px); }
.foot-about { grid-column: 1 / span 5; color: var(--ink-2); max-width: 30em; font-size: .98rem; }
.foot-col { grid-column: span 2; min-width: 0; }
.foot-col:first-of-type { grid-column: 7 / span 2; }
.foot-col.contact-col { grid-column: span 2; }
.foot-col h2 { font-family: var(--f-mono); font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-col a { text-decoration: none; color: var(--ink); display: inline-block; padding: 4px 0; overflow-wrap: anywhere; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .foot-about { grid-column: 1 / -1; }
  .foot-col, .foot-col:first-of-type, .foot-col.contact-col { grid-column: span 4; }
}
@media (max-width: 520px) {
  .foot-col, .foot-col:first-of-type { grid-column: span 6; }
  .foot-col.contact-col { grid-column: 1 / -1; }
}
.foot-legal {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.55;
}
.foot-legal .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.foot-legal strong { color: var(--ink); font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.legal-hero { border-bottom: 1px solid var(--line-2); padding-bottom: clamp(32px, 4vw, 48px); margin-bottom: clamp(36px, 5vw, 64px); }
.legal-hero h1 {
  margin-top: 20px;
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 820;
  font-size: clamp(2.3rem, 1rem + 4.6vw, 5rem);
  line-height: .94;
  letter-spacing: -.03em;
}
.legal-hero .lede { margin-top: 20px; }
.legal-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.legal-aside { grid-column: 1 / span 3; position: sticky; top: calc(var(--head-h) + 28px + env(safe-area-inset-top, 0px)); align-self: start; }
.legal-aside ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-aside a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.legal-aside a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-body { grid-column: 5 / span 8; min-width: 0; max-width: 46em; }
.legal-body section { padding-bottom: 8px; }
.legal-body section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal-body h2 {
  font-family: var(--f-display);
  font-stretch: 115%;
  font-weight: 760;
  font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.legal-body h3 { font-size: 1.04rem; font-weight: 700; margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-2); }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--muted); }
.legal-body a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kv { margin: 16px 0 0; border-top: 1px solid var(--line-2); }
.kv div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--f-mono); font-size: .64rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-top: .35em; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line-2); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .94rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { font-family: var(--f-mono); font-size: .62rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td { color: var(--ink-2); }
.notice { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--signal); background: var(--paper-2); color: var(--ink-2); }
@media (max-width: 900px) {
  .legal-aside { position: static; grid-column: 1 / -1; border: 1px solid var(--line-2); padding: 16px 18px; }
  .legal-body { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .kv div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
}
