/* =========================================================
   APEX TESTERS LTD — styles
   Paper, ink, and one red pen.
   ========================================================= */

:root {
  --paper:   #ECE9E1;
  --paper-2: #E2DED3;
  --card:    #F4F2EC;
  --sheet:   #FBFAF6;
  --ink:     #0F0F0D;
  --ink-2:   #2A2925;
  --mute:    #66625A;
  --line:    rgba(15, 15, 13, .16);
  --line-2:  rgba(15, 15, 13, .32);
  --red:     #E2341D;
  --red-hi:  #FF7457;   /* red for text on ink */
  --signal:  #EE4B2B;   /* contact block */
  --pass:    #8FD47E;
  --warn:    #F2C14E;

  --inv-line: rgba(236, 233, 225, .16);
  --inv-mute: rgba(236, 233, 225, .62);

  --gutter: clamp(16px, 3.2vw, 44px);
  --maxw: 1520px;

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .26;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--red); color: #fff; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4, h5, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
kbd {
  font-family: var(--f-mono);
  font-size: .85em;
  border: 1px solid currentColor;
  border-bottom-width: 2px;
  padding: 0 .4em;
  border-radius: 3px;
}
code {
  font-family: var(--f-mono);
  font-size: .86em;
  background: rgba(15,15,13,.07);
  padding: .1em .35em;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.45;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  padding: 15px 20px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--red { background: var(--red); color: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--red:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--red:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- status bar ---------- */
.status {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase;
}
.status__inner { display: flex; justify-content: space-between; align-items: center; height: 32px; gap: 16px; }
.status__live { display: inline-flex; align-items: center; gap: 8px; }
.status__live b, .status__clock b { font-weight: 500; color: #fff; }
.status__geo { color: var(--inv-mute); }
.status__progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(0);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(226,52,29,.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226,52,29,.65); }
  70% { box-shadow: 0 0 0 7px rgba(226,52,29,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,52,29,0); }
}

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: 22px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__word {
  font-weight: 800; font-stretch: 75%;
  font-size: 22px; letter-spacing: -.01em; text-transform: uppercase;
}
.logo__word span { color: var(--red); margin: 0 1px; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav__links a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav__links sup { font-family: var(--f-mono); font-size: 9px; color: var(--mute); margin-right: 4px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__cta { padding: 12px 16px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero__rules {
  position: absolute; inset: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(6, 1fr);
  pointer-events: none; z-index: -1;
  -webkit-mask-image: linear-gradient(#000 0 52%, transparent 74%);
  mask-image: linear-gradient(#000 0 52%, transparent 74%);
}
.hero__rules i { border-left: 1px solid var(--line); }
.hero__rules i:first-child { grid-column: 2; }

.hero__meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--mute);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
}

.hero__title {
  font-weight: 800;
  font-stretch: 66%;
  text-transform: uppercase;
  font-size: clamp(50px, 13.2vw, 226px);
  line-height: .84;
  letter-spacing: -.012em;
  margin: clamp(36px, 5vw, 72px) 0 clamp(40px, 5vw, 72px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .02em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) { padding-left: 1.05em; }
.hero__title .line:nth-child(3) { padding-left: 2.1em; }
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .18s; }
.is-open .hero__title .line { overflow: visible; }
.dot { color: var(--red); font-style: normal; }

.mark { position: relative; display: inline-block; }
.mark__ring {
  position: absolute; left: -9%; top: -16%; width: 118%; height: 132%;
  overflow: visible; pointer-events: none;
}
.mark__ring path {
  fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
}
.is-open .mark__ring path { animation: draw 1s .1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mark__note {
  position: absolute; left: 82%; bottom: 104%;
  font-size: clamp(10px, 1vw, 14px); font-weight: 500;
  letter-spacing: .02em; color: var(--red);
  white-space: nowrap; transform: rotate(-5deg);
  opacity: 0; transition: opacity .5s .9s;
}
.is-open .mark__note { opacity: 1; }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 96px); align-items: end;
}
.lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; max-width: 31ch; letter-spacing: -.005em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__fine { margin-top: 28px; color: var(--mute); text-transform: none; font-size: 12px; }

/* console */
.console {
  background: var(--ink); color: #D6D2C6;
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
  display: flex; flex-direction: column;
  min-width: 0;
}
.console__head, .console__foot {
  display: flex; gap: 16px; align-items: center;
  padding: 11px 16px; font-size: 11px;
  border-bottom: 1px solid var(--inv-line);
  color: var(--inv-mute);
  white-space: nowrap; overflow: hidden;
}
.console__head span:first-child { color: #fff; font-weight: 700; }
.console__file { color: var(--red-hi); }
.console__env { margin-left: auto; }
.console__body {
  height: 300px; overflow: hidden;
  padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
  font-size: 12.5px; text-transform: none; letter-spacing: 0;
  mask-image: linear-gradient(to bottom, transparent 0, #000 70px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px);
}
.cl { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; padding: 2px 0; animation: lineIn .3s var(--ease); }
.cl span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl .ms { color: rgba(214,210,198,.45); }
.cl.ok i { color: var(--pass); font-style: normal; }
.cl.bad { color: var(--red-hi); }
.cl.bad i { font-style: normal; }
.cl.skip { color: rgba(214,210,198,.45); }
.cl.skip i { font-style: normal; }
.cl.info { color: rgba(214,210,198,.55); grid-template-columns: 1fr; }
.cl.bug { grid-template-columns: 18px 1fr; color: #fff; }
.cl.bug span:last-child { background: var(--red); color: #fff; padding: 0 6px; justify-self: start; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }
.console__foot { border-bottom: 0; border-top: 1px solid var(--inv-line); }
.console__foot b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.console__foot .c-pass { color: var(--pass); }
.console__foot .c-fail { color: var(--red-hi); }
.console__time { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-left: 0; padding-right: 0;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  width: calc(100% - 2 * var(--gutter));
}
.stat {
  padding: 28px clamp(14px, 2vw, 28px) 30px;
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__k { color: var(--red); font-size: 11px; }
.stat__v {
  font-weight: 300; font-stretch: 82%;
  font-size: clamp(46px, 6.2vw, 104px);
  line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__v small { font-size: .5em; font-weight: 400; letter-spacing: 0; vertical-align: .55em; margin: 0 .04em; }
.stat__l { color: var(--mute); font-size: 15px; max-width: 24ch; line-height: 1.35; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; margin: clamp(56px, 7vw, 104px) 0 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 14px 0 10px;
}
.marquee__track {
  display: flex; align-items: center; gap: .4em; width: max-content;
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(44px, 7.2vw, 120px); line-height: 1;
  text-transform: uppercase; letter-spacing: -.02em;
  animation: marq 48s linear infinite;
}
.marquee__track span {
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
  transition: color .25s;
}
.marquee__track span:hover { color: var(--ink); }
.marquee__track b { color: var(--red); font-size: .45em; font-weight: 400; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- section head ---------- */
.section { padding-top: clamp(80px, 10vw, 160px); }
.shead {
  display: grid;
  grid-template-columns: 64px 150px minmax(0, 1fr) auto;
  gap: 16px; align-items: start;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.shead__n { color: var(--red); }
.shead__t { color: var(--mute); }
.shead__h {
  font-weight: 700; font-stretch: 78%;
  font-size: clamp(38px, 5.4vw, 88px);
  line-height: .92; letter-spacing: -.025em;
  text-transform: uppercase;
}
.shead__r { color: var(--mute); text-align: right; }
.shead--inv { border-top-color: var(--paper); }
.shead--inv .shead__n { color: var(--red-hi); }
.shead--inv .shead__t, .shead--inv .shead__r { color: var(--inv-mute); }

/* ---------- services ---------- */
.svc { border-top: 1px solid var(--ink); }
.svc__row { border-bottom: 1px solid var(--line-2); }
.svc__row summary {
  list-style: none; cursor: pointer;
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: 96px minmax(0, 1.05fr) minmax(0, 1fr) 36px;
  gap: 24px; align-items: center;
  padding: 26px 16px; margin: 0 -16px;
  transition: color .3s;
}
.svc__row summary::-webkit-details-marker { display: none; }
.svc__row summary::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .45s var(--ease); z-index: -1;
}
.svc__row summary:hover { color: var(--paper); }
.svc__row summary:hover::before { transform: scaleY(1); }
.svc__row summary:hover .svc__id { color: var(--red-hi); }
.svc__row summary:hover .svc__short { color: var(--inv-mute); }
.svc__id { color: var(--red); transition: color .3s; }
.svc__name {
  font-weight: 700; font-stretch: 72%;
  font-size: clamp(28px, 3.3vw, 54px);
  line-height: .95; text-transform: uppercase; letter-spacing: -.015em;
  transition: transform .45s var(--ease);
}
.svc__row summary:hover .svc__name { transform: translateX(10px); }
.svc__short { color: var(--mute); font-size: 15.5px; line-height: 1.45; max-width: 52ch; transition: color .3s; }
.svc__plus { position: relative; width: 22px; height: 22px; justify-self: end; transition: transform .45s var(--ease); }
.svc__plus::before, .svc__plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor;
}
.svc__plus::after { transform: rotate(90deg); }
.svc__row[open] .svc__plus { transform: rotate(45deg); color: var(--red); }
.svc__body { padding: 4px 0 34px calc(96px + 24px); animation: open .5s var(--ease); }
.svc__body dl { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 24px; border-top: 1px dashed var(--line-2); padding-top: 20px; }
.svc__body dt { color: var(--mute); margin-bottom: 6px; }
.svc__body dd { font-size: 16px; line-height: 1.4; }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- method ---------- */
.method {
  background: var(--ink); color: var(--paper);
  margin-top: clamp(80px, 10vw, 160px);
  padding: clamp(64px, 8vw, 120px) 0 clamp(72px, 9vw, 140px);
}
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative; border-top: 1px solid var(--inv-line);
  --p: 0;
}
.steps::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%;
  background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p));
}
.step { position: relative; padding: 32px 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--inv-line); }
.step::before {
  content: ""; position: absolute; top: -6px; left: -6px; width: 11px; height: 11px;
  background: var(--ink); border: 1.5px solid var(--paper);
  transition: background .3s, border-color .3s;
}
.step:first-child::before { left: 0; }
.step.is-on::before { background: var(--red); border-color: var(--red); }
.step__t { color: var(--inv-mute); }
.step__n {
  font-weight: 200; font-stretch: 62%;
  font-size: clamp(64px, 7vw, 120px); line-height: .8; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px var(--paper);
  transition: color .5s;
}
.step.is-on .step__n { color: var(--paper); }
.step h3 { font-weight: 700; font-stretch: 80%; font-size: 26px; text-transform: uppercase; letter-spacing: -.01em; margin-top: 8px; }
.step p { color: var(--inv-mute); font-size: 15.5px; line-height: 1.5; }
.step__out { color: var(--red-hi); margin-top: auto; padding-top: 10px; }

/* ---------- evidence ---------- */
.ev { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--ink);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 20px;
  min-width: 0;
}
.card__k { color: var(--red); display: block; margin-bottom: 10px; }
.card h3 { font-weight: 700; font-stretch: 85%; font-size: 24px; letter-spacing: -.01em; line-height: 1.1; }
.card figcaption p { color: var(--mute); font-size: 15px; margin-top: 4px; }

.chart__hero { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.chart__hero strong {
  font-weight: 300; font-stretch: 80%;
  font-size: clamp(64px, 7vw, 112px); line-height: .8; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.chart__hero span { color: var(--mute); padding-bottom: 6px; }
.chart__plot { position: relative; width: 100%; }
.chart__plot svg { width: 100%; height: auto; overflow: visible; }
.chart__plot .grid line { stroke: var(--line); stroke-width: 1; }
.chart__plot .grid .base { stroke: var(--ink); }
.chart__plot text { font-family: var(--f-mono); font-size: 11px; fill: var(--mute); }
.chart__plot .area { fill: url(#areaFill); }
.chart__plot .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__plot .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.chart__plot.in .ln { stroke-dashoffset: 0; }
.chart__plot .area { opacity: 0; transition: opacity 1s .9s; }
.chart__plot.in .area { opacity: 1; }
.chart__plot .endpt { fill: var(--red); stroke: var(--card); stroke-width: 2; }
.chart__plot .lbl { font-size: 12px; fill: var(--ink); font-weight: 700; }
.chart__plot .guide { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart__plot .hov { fill: var(--ink); stroke: var(--card); stroke-width: 2; opacity: 0; }
.chart__plot.is-hover .guide, .chart__plot.is-hover .hov { opacity: 1; }
.tip {
  position: absolute; pointer-events: none;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em;
  padding: 7px 10px; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  opacity: 0; transition: opacity .15s;
}
.tip b { color: #fff; font-size: 13px; }
.chart__plot.is-hover .tip { opacity: 1; }
.chart__table summary { cursor: pointer; color: var(--mute); }
.chart__table summary:hover { color: var(--ink); }
.chart__table table { border-collapse: collapse; margin-top: 12px; width: 100%; max-width: 360px; }
.chart__table th, .chart__table td { text-align: left; padding: 4px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.chart__table td:last-child, .chart__table th:last-child { text-align: right; }

.bars__list { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; cursor: default; }
.bar__l { font-size: 15.5px; font-weight: 500; }
.bar__v { font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.bar__v em { font-style: normal; color: var(--mute); margin-right: 8px; opacity: 0; transition: opacity .2s; }
.bar:hover .bar__v em { opacity: 1; }
.bar__t { grid-column: 1 / -1; height: 12px; background: transparent; border-bottom: 1px solid var(--line-2); position: relative; }
.bar__f {
  position: absolute; left: 0; top: 0; bottom: 2px;
  background: var(--ink); border-radius: 0 4px 4px 0;
  width: 0; transition: width 1.2s var(--ease);
}
.bar:hover .bar__f { background: var(--red); }
.bars__note { color: var(--mute); margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line-2); text-transform: none; }
.bars__note b { color: var(--ink); font-weight: 700; }

/* specimen */
.specimen {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  gap: clamp(40px, 6vw, 110px); align-items: start;
  margin-top: clamp(72px, 9vw, 140px);
}
.specimen__intro { position: sticky; top: 72px; }
.specimen__intro h3 {
  font-weight: 700; font-stretch: 75%;
  font-size: clamp(36px, 4.2vw, 64px); line-height: .94; letter-spacing: -.02em; text-transform: uppercase;
}
.specimen__intro p { margin-top: 22px; color: var(--ink-2); font-size: 17px; max-width: 42ch; }
.specimen__checks { margin-top: 28px; border-top: 1px solid var(--ink); }
.specimen__checks li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.specimen__checks i { font-style: normal; color: var(--red); font-weight: 700; }

.ticket {
  position: relative;
  background: var(--sheet);
  border: 1.5px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  padding: clamp(20px, 2.6vw, 36px);
  transform: rotate(-.6deg);
  transition: transform .5s var(--ease);
}
.ticket:hover { transform: rotate(0); }
.ticket__top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.ticket__id { font-weight: 700; font-size: 14px; margin-right: auto; }
.tag { border: 1px solid var(--ink); padding: 4px 8px; font-size: 10.5px; background: var(--ink); color: var(--paper); }
.tag--red { background: var(--red); border-color: var(--red); color: #fff; }
.tag--line { background: transparent; color: var(--ink); }
.ticket__title {
  font-weight: 700; font-stretch: 88%;
  font-size: clamp(22px, 2.1vw, 30px); line-height: 1.12; letter-spacing: -.015em;
  margin: 22px 0 20px;
}
.ticket__env {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ticket__env div { padding: 12px 12px 12px 0; }
.ticket__env div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.ticket__env dt { color: var(--mute); font-size: 10.5px; }
.ticket__env dd { text-transform: none; font-size: 12.5px; margin-top: 3px; color: var(--ink); }
.ticket__sec { margin-top: 22px; }
.ticket h5 { color: var(--mute); font-weight: 500; margin-bottom: 8px; }
.ticket__sec ol { counter-reset: s; }
.ticket__sec li { counter-increment: s; position: relative; padding: 6px 0 6px 34px; border-bottom: 1px dashed var(--line); font-size: 16px; }
.ticket__sec li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 8px;
  font-family: var(--f-mono); font-size: 11px; color: var(--red);
}
.ticket__sec p { font-size: 15.5px; color: var(--ink-2); }
.ticket__cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.ticket__cmp > div { padding: 14px 16px; border: 1px solid var(--line-2); }
.ticket__cmp .is-bad { border: 1.5px solid var(--red); background: rgba(226, 52, 29, .05); }
.ticket__cmp .is-bad h5 { color: var(--red); }
.ticket__cmp p { font-size: 15.5px; line-height: 1.4; }
.ticket__att { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1.5px solid var(--ink); text-transform: none; }
.ticket__att span { border: 1px solid var(--line-2); padding: 6px 10px; }
.ticket__reg { background: var(--ink); color: var(--paper); border-color: var(--ink) !important; margin-left: auto; }
.ticket__ann {
  position: absolute; color: var(--red); font-size: 13px; font-weight: 500; text-transform: none;
  white-space: nowrap; pointer-events: none;
}
.ticket__ann--1 { top: -30px; left: 30%; transform: rotate(-3deg); }
.ticket__ann--2 { right: 10px; bottom: -50px; transform: rotate(-2deg); }

/* ---------- lab ---------- */
.lab {
  background: var(--ink); color: var(--paper);
  margin-top: clamp(96px, 11vw, 180px);
  padding: clamp(64px, 8vw, 120px) 0 clamp(64px, 8vw, 112px);
}
.lab__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px; background: var(--inv-line);
  border: 1px solid var(--inv-line);
}
.dev {
  background: var(--ink); padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 4px; min-height: 124px;
  transition: background .3s;
}
.dev:hover { background: #1B1A17; }
.dev__k { color: var(--inv-mute); font-size: 10.5px; display: flex; justify-content: space-between; }
.dev__n { font-size: 16px; font-weight: 600; margin-top: 10px; line-height: 1.2; }
.dev__o { font-family: var(--f-mono); font-size: 12px; color: var(--inv-mute); }
.dev__s { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--inv-mute); }
.dev__s i { width: 7px; height: 7px; border-radius: 50%; background: #5B5850; }
.dev[data-s="running"] .dev__s { color: var(--pass); }
.dev[data-s="running"] .dev__s i { background: var(--pass); animation: blink 1s steps(2) infinite; }
.dev[data-s="flashing"] .dev__s { color: var(--warn); }
.dev[data-s="flashing"] .dev__s i { background: var(--warn); }
.dev[data-s="defect"] .dev__s { color: var(--red-hi); }
.dev[data-s="defect"] .dev__s i { background: var(--red-hi); }
.dev[data-s="defect"] { box-shadow: inset 0 0 0 1px var(--red-hi); }
@keyframes blink { 50% { opacity: .25; } }
.lab__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; color: var(--inv-mute); }
.lab__foot > span:first-child { margin-right: 10px; }
.chip { border: 1px solid var(--inv-line); padding: 7px 11px; color: var(--paper); text-transform: none; }

/* ---------- rules ---------- */
.rules { border-top: 1px solid var(--ink); counter-reset: r; }
.rules li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px;
  padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line-2);
  align-items: baseline;
}
.rules li span { color: var(--mute); transition: color .3s; }
.rules li:hover span { color: var(--red); }
.rules p {
  font-weight: 650; font-stretch: 82%;
  font-size: clamp(26px, 3.5vw, 56px); line-height: 1.02; letter-spacing: -.025em;
}
.rules em { font-style: normal; font-weight: 350; color: var(--mute); }

/* ---------- contact ---------- */
.contact {
  background: var(--signal); color: var(--ink);
  margin-top: clamp(96px, 11vw, 180px);
  padding: clamp(64px, 8vw, 120px) 0;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(15,15,13,.09) 0 1px, transparent 1px calc(100% / 6));
  pointer-events: none;
}
.contact__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact__k { display: block; border-top: 2px solid var(--ink); padding-top: 16px; }
.contact__h {
  font-weight: 800; font-stretch: 64%;
  font-size: clamp(72px, 11vw, 190px); line-height: .82; letter-spacing: -.02em; text-transform: uppercase;
  margin: 28px 0 28px;
}
.contact__h .dot { color: var(--paper); }
.contact__p { font-size: 19px; max-width: 36ch; line-height: 1.42; }
.addr { font-style: normal; margin-top: 40px; font-size: 22px; line-height: 1.3; font-weight: 500; display: flex; flex-direction: column; }
.addr__k { margin-bottom: 10px; font-weight: 400; }
.addr strong { font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 26px; letter-spacing: -.01em; }
.addr__map { margin-top: 14px; font-size: 12px; align-self: flex-start; text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.addr__map:hover { color: var(--paper); border-color: var(--paper); }
.contact__meta { margin-top: 36px; border-top: 1px solid rgba(15,15,13,.35); }
.contact__meta div { display: grid; grid-template-columns: 110px 1fr; padding: 11px 0; border-bottom: 1px solid rgba(15,15,13,.35); }
.contact__meta dt { opacity: .7; }
.contact__meta dd { text-transform: none; font-size: 13px; }
.contact__meta a { text-decoration: none; border-bottom: 1px solid; }

.form {
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
  padding: clamp(20px, 2.8vw, 36px);
  display: flex; flex-direction: column; gap: 22px;
}
.form__head { display: flex; justify-content: space-between; border-bottom: 1.5px solid var(--ink); padding-bottom: 14px; font-weight: 700; }
.form__head span:last-child { color: var(--red); }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label, .field legend { color: var(--mute); padding: 0; margin-bottom: 4px; }
.field input, .field textarea {
  font: inherit; font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
  padding: 8px 0 10px; border-radius: 0; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(15,15,13,.32); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 1.5px 0 var(--red); }
.field input.is-err { border-bottom-color: var(--red); background: rgba(226,52,29,.06); }
.chips, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label, .seg label { position: relative; cursor: pointer; }
.chips input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span, .seg span {
  display: inline-block; border: 1.5px solid var(--ink); padding: 8px 14px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  transition: background .2s, color .2s;
  user-select: none;
}
.chips span::before { content: "+ "; color: var(--red); }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:checked + span::before { content: "✓ "; color: var(--red-hi); }
.seg { gap: 0; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--red); color: #fff; }
.chips input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.chips span:hover, .seg span:hover { background: var(--paper-2); }
.chips input:checked + span:hover { background: var(--ink-2); }
.form__submit { align-self: flex-start; margin-top: 4px; }
.form__status { min-height: 18px; text-transform: none; color: var(--ink); }
.form__status b { color: var(--red); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 36px 0 28px; overflow: hidden; }
.foot__top, .foot__bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; color: var(--inv-mute); }
.foot__top b { color: var(--paper); font-weight: 500; }
.foot__muted { opacity: .6; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--red-hi); }
.foot__word {
  font-weight: 800; font-stretch: 62%;
  text-transform: uppercase; line-height: .8; letter-spacing: -.02em;
  white-space: nowrap; font-size: 18vw;
  margin: 40px 0 28px;
  color: var(--paper);
}
.foot__bot { border-top: 1px solid var(--inv-line); padding-top: 18px; }

/* ---------- QA overlay ---------- */
.qa-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--paper);
  padding: 10px 14px; cursor: pointer;
  font-size: 11px;
  box-shadow: 4px 4px 0 var(--red);
}
.qa-toggle i { width: 8px; height: 8px; border-radius: 50%; background: #5B5850; transition: background .2s; }
.qa-toggle kbd { font-size: 10px; opacity: .7; }
.qa .qa-toggle i { background: var(--red); box-shadow: 0 0 10px var(--red); }

.qa-layer { position: absolute; top: 0; left: 0; width: 100%; height: 0; pointer-events: none; z-index: 140; display: none; }
.qa .qa-layer { display: block; }
.qa-box { position: absolute; border: 1px dashed var(--red); }
.qa-box b {
  position: absolute; top: 0; left: 0; transform: translateY(-100%);
  background: var(--red); color: #fff;
  font: 500 10px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 6px; white-space: nowrap;
}
.qa-box s { position: absolute; right: 4px; bottom: 4px; font: 10px/1 var(--f-mono); color: var(--red); text-decoration: none; background: var(--paper); padding: 2px 4px; }
.qa body, body.qa { }
body.qa::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 139;
  background-image:
    repeating-linear-gradient(0deg, rgba(226,52,29,.09) 0 1px, transparent 1px 8px);
}
.qa-cross { position: fixed; inset: 0; pointer-events: none; z-index: 160; display: none; }
.qa .qa-cross { display: block; }
.qa-cross i { position: absolute; background: var(--red); opacity: .55; }
.qa-cross .h { left: 0; right: 0; height: 1px; top: 0; }
.qa-cross .v { top: 0; bottom: 0; width: 1px; left: 0; }
.qa-cross span { position: absolute; background: var(--red); color: #fff; padding: 3px 6px; font-size: 10px; white-space: nowrap; }
.qa .hero__title .mark { outline: 1px solid var(--red); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ticket__ann--2 { display: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; border-top: 0; }
  .steps::before { display: none; }
  .step { border-top: 1px solid var(--inv-line); }
  .step + .step { border-left: 0; padding-left: 0; }
  .step:nth-child(3n+2), .step:nth-child(3n+3) { padding-left: 24px; border-left: 1px solid var(--inv-line); }
  .step::before { left: 0 !important; }
  .step.is-on::before { background: var(--red); }
}
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .lead { max-width: 40ch; }
  .svc__row summary { grid-template-columns: 64px minmax(0, 1fr) 28px; gap: 10px 16px; }
  .svc__short { grid-column: 2 / 3; grid-row: 2; }
  .svc__plus { grid-column: 3; grid-row: 1; }
  .svc__body { padding-left: calc(64px + 16px); }
  .svc__body dl { grid-template-columns: 1fr; gap: 14px; }
  .ev { grid-template-columns: 1fr; }
  .specimen { grid-template-columns: 1fr; }
  .specimen__intro { position: static; }
  .contact__inner { grid-template-columns: 1fr; }
  .shead { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .shead__t { grid-column: 2; }
  .shead__r { grid-column: 3; grid-row: 1; }
  .shead__h { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .status__geo { display: none; }
  .hero__meta span:nth-child(3) { display: none; }
  .hero__title { font-size: 14vw; }
  .shead__h br { display: none; }
  .chart__plot text { font-size: 19px; }
  .chart__plot .lbl { font-size: 21px; }
  .chart__plot .ln { stroke-width: 3; }
  .hero__title .line:nth-child(2) { padding-left: .5em; }
  .hero__title .line:nth-child(3) { padding-left: 1em; }
  .hero__rules { grid-template-columns: repeat(3, 1fr); }
  .hero__rules i:nth-child(n+3) { display: none; }
  .console__env { display: none; }
  .console__body { height: 260px; font-size: 11.5px; }
  .console { box-shadow: 6px 6px 0 var(--red); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 14px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step:nth-child(n) { padding-left: 0; border-left: 0; padding-right: 0; }
  .svc__row summary { grid-template-columns: minmax(0, 1fr) 24px; padding: 22px 12px; margin: 0 -12px; }
  .svc__id { grid-column: 1; grid-row: 1; }
  .svc__name { grid-column: 1; grid-row: 2; }
  .svc__short { grid-column: 1 / -1; grid-row: 3; }
  .svc__plus { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .svc__body { padding-left: 0; }
  .ticket { transform: none; box-shadow: 7px 7px 0 var(--ink); }
  .ticket__env { grid-template-columns: 1fr 1fr; }
  .ticket__env div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ticket__env div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ticket__cmp { grid-template-columns: 1fr; }
  .ticket__reg { margin-left: 0; }
  .ticket__ann--1 { left: 12px; }
  .rules li { grid-template-columns: 1fr; gap: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .form { box-shadow: 8px 8px 0 var(--ink); }
  .lab__grid { grid-template-columns: 1fr 1fr; }
  .dev { padding: 14px; min-height: 112px; }
  .dev__n { font-size: 14.5px; }
  .qa-toggle { left: 12px; bottom: 12px; padding: 8px 10px; }
  .qa-toggle kbd { display: none; }
}
@media (max-width: 420px) {
  .nav__cta { padding: 10px 12px; font-size: 11px; }
  .logo__word { font-size: 19px; }
  .hero__meta span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   ADDITIONS — network block, tester pages, legal pages, forms
   ========================================================= */

/* network block (home) */
.net {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 110px); align-items: start;
  border-top: 1px solid var(--ink); padding-top: clamp(28px, 3vw, 44px);
}
.net__num { display: flex; flex-direction: column; gap: 12px; }
.net__num .stat__v { font-size: clamp(88px, 12vw, 200px); }
.net__p { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; max-width: 40ch; }
.net__facts { margin: 28px 0 32px; border-top: 1px solid var(--ink); }
.net__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.net__facts span { color: var(--mute); }
.net__facts b { font-weight: 500; text-transform: none; }

/* forms: honeypot, legal line, states */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__legal { font-size: 13.5px; color: var(--mute); line-height: 1.45; }
.form__legal a, .check a { color: var(--ink); }
.form__status.is-bad { color: var(--red); }
.form__status a { color: inherit; }
.form.is-busy { cursor: progress; }
.form.is-busy .form__submit { opacity: .7; }
.form__submit:disabled { cursor: default; transform: none; }
.form.is-sent .form__submit { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--red); }
.form__stamp {
  position: absolute; right: clamp(16px, 3vw, 40px); top: 70px; z-index: 2;
  border: 3px solid var(--red); color: var(--red);
  padding: 8px 16px; font-size: 22px; font-weight: 700; letter-spacing: .12em;
  transform: rotate(-9deg) scale(1.6); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .2s;
  background: rgba(236, 233, 225, .85);
}
.form.is-sent .form__stamp { opacity: 1; transform: rotate(-9deg) scale(1); }
fieldset.field.is-err legend, .field.is-err label { color: var(--red); }
fieldset.field.is-err .chips span, fieldset.field.is-err .seg span { border-color: var(--red); }
.field select.is-err, .field input.is-err { border-bottom-color: var(--red); background: rgba(226,52,29,.06); }

.field select {
  font: inherit; font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0;
  padding: 8px 28px 10px 0; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field select:focus { outline: none; border-bottom-color: var(--red); box-shadow: 0 1.5px 0 var(--red); }
.field select:invalid { color: rgba(15,15,13,.4); }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.4; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; display: grid; place-content: center; }
.check input::before { content: "\2713"; font: 700 13px/1 var(--f-mono); color: var(--paper); opacity: 0; }
.check input:checked { background: var(--ink); }
.check input:checked::before { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.check.is-err input { border-color: var(--red); background: rgba(226,52,29,.08); }
.check.is-err span { color: var(--red); }

/* footer additions */
.foot__bot a { border-bottom: 1px solid var(--inv-line); }
.foot__reward { color: var(--paper); }

/* subpage nav */
.nav__links a.is-here::after { transform: scaleX(1); }

/* tester page */
.spec { background: var(--ink); color: #D6D2C6; border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--red); }
.spec__head { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--inv-line); color: var(--inv-mute); font-size: 11px; }
.spec__head span:first-child { color: #fff; font-weight: 700; }
.spec dl { margin: 0; }
.spec dl div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px; border-bottom: 1px solid var(--inv-line); align-items: baseline; }
.spec dt { color: var(--inv-mute); }
.spec dd { font-family: var(--f-sans); text-transform: none; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; font-stretch: 80%; color: var(--paper); letter-spacing: -.01em; line-height: 1.1; }
.spec dd small { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: var(--inv-mute); margin-top: 4px; }
.spec__foot { padding: 11px 16px; font-size: 11px; color: var(--pass); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.req { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.req li { padding: 22px 20px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.req li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.req i { font-style: normal; color: var(--red); font-family: var(--f-mono); font-size: 12px; }
.req b { font-weight: 700; font-stretch: 80%; font-size: clamp(22px, 2.2vw, 32px); text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.req span { color: var(--mute); font-size: 15px; }

/* legal pages */
.doc { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(80px, 9vw, 140px); }
.doc__title {
  font-weight: 800; font-stretch: 66%; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 168px); line-height: .84; letter-spacing: -.012em;
  margin: clamp(32px, 4vw, 56px) 0 clamp(28px, 3vw, 40px);
}
.doc__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--mute); padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.doc__head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px); align-items: end;
  margin: clamp(36px, 5vw, 72px) 0 clamp(56px, 6vw, 96px);
}
.doc__head .doc__title { margin: 0; }
.doc__card dl div { grid-template-columns: 120px 1fr; padding: 13px 16px; }
.doc__card dd { font-size: 16px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; line-height: 1.4; text-transform: none; font-family: var(--f-sans); }
.doc__card a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--inv-line); }
.doc__card a:hover { color: var(--red-hi); }

.doc__layout {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px); border-top: 2px solid var(--ink);
}
.doc__toc { position: sticky; top: 56px; align-self: start; padding-top: 22px; }
.doc__toc-k { display: block; color: var(--mute); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.doc__toc a {
  display: grid; grid-template-columns: 48px 1fr; gap: 4px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--mute); line-height: 1.35;
  transition: color .2s, padding .3s var(--ease);
}
.doc__toc a span { color: var(--red); }
.doc__toc a:hover, .doc__toc a.is-active { color: var(--ink); }
.doc__toc a.is-active { padding-left: 8px; box-shadow: inset 2px 0 0 var(--red); }

.doc__body { min-width: 0; }
.doc__sec { padding: clamp(26px, 3vw, 44px) 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 48px; }
.doc__sec > span { display: block; color: var(--red); margin-bottom: 12px; }
.doc__sec h2 { font-weight: 700; font-stretch: 78%; font-size: clamp(28px, 3vw, 44px); text-transform: uppercase; letter-spacing: -.015em; line-height: .95; margin-bottom: 20px; }
.doc__sec p, .doc__sec li { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 74ch; }
.doc__sec p + p, .doc__sec p + ul, .doc__sec ul + p, .doc__sec p + .doc__table, .doc__table + p { margin-top: 14px; }
.doc__sec ul { border-top: 1px solid var(--line); max-width: 74ch; }
.doc__sec ul li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); margin: 0; }
.doc__sec ul li::before { content: "4"; position: absolute; left: 0; color: var(--red); }
.doc__sec a { color: var(--ink); }
.doc__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15.5px; }
.doc__table th { text-align: left; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--mute); font-weight: 400; padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.doc__table th:first-child { width: 34%; }
.doc__table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; color: var(--ink-2); }
.doc__table td:first-child { color: var(--ink); font-weight: 600; }

/* 404 */
.nf { min-height: 60vh; }

@media (max-width: 1024px) {
  .doc__head { grid-template-columns: 1fr; align-items: start; }
  .doc__layout { grid-template-columns: 1fr; gap: 0; }
  .doc__toc { position: static; padding-bottom: 8px; }
  .doc__toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .net { grid-template-columns: 1fr; }
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--4 .step:nth-child(n) { padding-left: 0; border-left: 0; }
  .steps--4 .step:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--inv-line); }
  .req { grid-template-columns: 1fr 1fr; }
  .req li:nth-child(3) { padding-left: 0; border-left: 0; }
  .req li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .steps--4 { grid-template-columns: 1fr; }
  .steps--4 .step:nth-child(2n) { padding-left: 0; border-left: 0; }
  .spec dl div { grid-template-columns: 1fr; gap: 4px; }
  .doc__card dl div { grid-template-columns: 1fr; }
  .doc__toc ol { grid-template-columns: 1fr; }
  .doc__table, .doc__table tbody, .doc__table tr, .doc__table td { display: block; }
  .doc__table thead { display: none; }
  .doc__table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .doc__table td { border: 0; padding: 2px 0; }
  .doc__table td:first-child { font-weight: 600; }
  .form__stamp { top: 56px; font-size: 18px; }
}
@media (max-width: 1180px) and (min-width: 1025px) {
  .steps--4 .step:nth-child(4) { padding-left: 24px; border-left: 1px solid var(--inv-line); }
}
