:root {
  --paper: #f3f3f1;
  --ink: #161616;
  --muted: #5e5e5e;
  --line: #d4d4ce;
  --mark: #d7263d;
  --well: #141414;
  --font: "Commissioner", sans-serif;
  --display: "Unbounded", sans-serif;
  --ease: 220ms ease;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: 72px;
}
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 8px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.top nav { display: flex; gap: 18px; font-size: 14px; }
.top nav a { text-underline-offset: 3px; }

.hero { padding: 18px 0 10px; }
.kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 8px 0 0;
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  animation: rise 520ms var(--ease) both;
}
.lead {
  max-width: 38rem;
  margin: 12px 0 0;
  color: var(--muted);
}

.bench { margin-top: 18px; }
.sprocket {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  width: min(960px, 100%);
  background: var(--well);
  border-radius: 6px;
}
.bench:has(video:not([hidden])) .sprocket {
  width: fit-content;
  max-width: 100%;
}
.holes {
  background:
    radial-gradient(circle at 50% 14px, #f3f3f1 5px, transparent 5.5px) 0 0 / 100% 28px;
}
.well {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
video {
  width: auto;
  max-width: 100%;
  max-height: min(380px, 30vh);
  height: auto;
  background: #000;
  display: block;
}
[hidden] { display: none !important; }
.empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f3f3f1;
  text-align: center;
}
.empty strong {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.markline {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mark);
  pointer-events: none;
}

.tools { margin-top: 14px; display: grid; gap: 12px; }
.times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--mark); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
select, input[type="text"] {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 10px;
}
input[type="text"] { min-width: min(100%, 280px); flex: 1; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--mark);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 0 rgba(20, 20, 20, 0.08);
  transition: transform var(--ease), box-shadow var(--ease);
}
.btn.ink { background: var(--ink); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 0 rgba(20, 20, 20, 0.1); }
.btn:disabled { opacity: 0.45; transform: none; cursor: wait; }
.file input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.jobs, .steps { padding: 42px 0; border-top: 1px solid var(--line); }
h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.jobs dl { margin: 0; display: grid; grid-template-columns: 220px 1fr; }
.jobs dt, .jobs dd {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.jobs dt { font-weight: 650; }
.steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 12px; }
.steps span { display: block; font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; color: var(--mark); }

.foot {
  border-top: 1px solid var(--ink);
  padding: 28px 0 80px;
  color: var(--muted);
  font-size: 14px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.legal-page { padding: 28px 0 80px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 56px); }
.legal-page p { max-width: 68ch; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--ink);
  color: #f3f3f1;
  font-size: 14px;
}
.cookie button {
  min-height: 36px;
  border: 0;
  background: #f3f3f1;
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
}
.cookie[hidden] { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .wrap { width: min(1120px, calc(100% - 24px)); }
  .well { min-height: 240px; }
  .times, .jobs dl, .steps ol { grid-template-columns: 1fr; }
  .jobs dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .jobs dd { border-top: 0; padding-top: 4px; }
  .sprocket { grid-template-columns: 16px 1fr 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
