:root {
  --bg: #000;
  --raise: #000;
  --ink: #fff;
  --muted: #fff;
  --line: #2a2a2a;
  --max: 42rem;
  --wide: 74rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: #000;
  color: #fff;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

::selection { background: #fff; color: #000; }

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: #fff;
  color: #000;
  padding: 0.4rem 0.7rem;
  z-index: 6;
}

.skip:focus { top: 1rem; }

.bar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--wide), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0.7rem 0 0.55rem;
}

.top a.mark {
  display: block;
  width: 4.6rem;
  flex: none;
}

.top a.mark img,
.hero .logo {
  mix-blend-mode: screen;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
  font-size: 0.92rem;
}

.top nav a {
  position: relative;
  text-decoration: none;
  padding: 0.2rem 0;
}

.top nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.top nav a:hover::after,
.top nav a[aria-current="page"]::after { transform: scaleX(1); }

.tape {
  display: flex;
  align-items: stretch;
  height: 2.45rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #000;
}

.tape-label {
  margin: 0;
  padding: 0 1rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  border-right: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.live {
  width: 0.38rem;
  height: 0.38rem;
  background: #fff;
  flex: none;
}

.tape-window {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 1.25rem, #000 calc(100% - 1.5rem), transparent);
}

.tape-track,
.rail-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.tape-track { gap: 2.75rem; align-items: center; }

.tick,
.tape-wait {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  white-space: nowrap;
  color: #fff;
}

.tick b {
  font-weight: 500;
  letter-spacing: 0.08em;
}

.chg { color: #cfcfcf; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.wrap.wide { width: min(var(--wide), calc(100% - 2.5rem)); }

.hero { padding: 2.6rem 0 0.4rem; }

.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.hero .logo {
  width: min(13.5rem, 62%);
  margin: 0;
}

.hero-copy p { max-width: 38rem; }

.line {
  display: inline-block;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 1rem;
  color: #fff;
  background-image: linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  animation: rule 0.9s ease 0.1s forwards;
}

.hero p { margin: 0 0 0.85rem; color: #fff; }

.hero .kicker { margin-bottom: 0.7rem; }

main { padding: 1.2rem 0 4.5rem; }

h1 {
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.lede { font-size: 1.2rem; margin-top: 0; color: #fff; }

h2 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0.7rem 0; }

ul { padding-left: 1.2rem; }

li { margin: 0.35rem 0; }

.section-label,
.desk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  margin-top: 2.8rem;
  padding-top: 0.85rem;
  border-top: 1px solid #fff;
}

.desk-head { margin-top: 0.4rem; }

.section-label p,
.desk-head p { margin: 0; color: var(--muted); }

.rail {
  overflow: hidden;
  margin-top: 1.1rem;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.rail-track {
  gap: 0.7rem;
  animation-duration: 36s;
}

.quote {
  width: 12.75rem;
  flex: none;
  border: 1px solid var(--line);
  background: var(--raise);
  padding: 0.95rem 1rem 0.85rem;
}

.quote b {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.quote .name {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.1rem;
}

.quote .px {
  display: block;
  margin-top: 0.85rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.quote .chg {
  display: block;
  margin-top: 0.2rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.desk-row {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--raise);
  padding: 1.05rem 1.1rem 0.95rem;
  margin: 0;
}

.stats { margin: 0.2rem 0 0; }

.stats div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1f1f1f;
}

.stats div:last-child { border-bottom: 0; }

.stats dt { color: var(--muted); }

.stats dd {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  min-height: 8.6rem;
  padding: 1.15rem 1.15rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--raise);
  transition: border-color 0.2s ease;
}

.card:hover { border-color: #fff; }

.card .num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card strong {
  display: block;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.card span:last-child { color: var(--muted); }

.after {
  border: 1px solid var(--line);
  background: var(--raise);
  padding: 1rem 1.1rem;
  margin-top: 2rem;
}

.after p { margin: 0.3rem 0; }

.next { margin-top: 1.4rem; font-size: 1.05rem; }

.next a { text-underline-offset: 0.18em; }

form.checker,
.panel.convert {
  display: grid;
  gap: 0.85rem;
}

form.checker {
  border: 1px solid var(--line);
  background: var(--raise);
  padding: 1.1rem;
  margin: 1.5rem 0;
}

label { display: grid; gap: 0.35rem; font-size: 0.95rem; }

input,
textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid #3a3a3a;
  background: #000;
  color: #fff;
  width: 100%;
  border-radius: 0;
}

textarea { resize: vertical; }

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 3px;
}

button {
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: #000;
  border: 0;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  justify-self: start;
}

button:hover { background: #e8e8e8; }

.result {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #fff;
}

.note { color: var(--muted); font-size: 0.92rem; }

.search { margin: 1.4rem 0 0.2rem; }

.group h2 {
  margin-top: 2.2rem;
  padding-top: 0.7rem;
  border-top: 1px solid #fff;
}

.checks { display: grid; gap: 0.15rem; }

details {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}

summary { cursor: pointer; font-weight: 500; }

.card[hidden],
.group[hidden] { display: none; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

footer a { color: #fff; }

footer p { margin: 0.35rem 0; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rule {
  to { background-size: 100% 1px; }
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 15rem 1fr;
    gap: 3.5rem;
    padding-bottom: 0.6rem;
  }

  .hero .logo { width: 100%; }

  .desk-row { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }

  .grid { grid-template-columns: 1fr 1fr; }

  .grid.tools { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 640px) {
  .tape-label { padding-left: 1rem; padding-right: 0.75rem; }
  .hero { padding-top: 1.6rem; }
  .card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line,
  .top nav a::after,
  .card { animation: none !important; transition: none !important; }
  .tape-track { animation: marquee 42s linear infinite !important; }
  .rail-track { animation: marquee 52s linear infinite !important; }
}
