@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/assets/fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-latin-800-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --chalk: #f2f3ef;
  --chalk-2: #e7e8e2;
  --ink: #000000;
  --ink-2: #474747;
  --ink-3: #686868;
  --rule: #d4d5cf;
  --signal: #ffdd00;
  --signal-press: #f2cf00;
  --gold-dim: #f3e7a6;
  --live: #d4232c;
  --film: #0a0a0e;
  --cyan: #50c8f0;
  --cyan-ink: #0a7aa6;
  --ok: #1d7a3a;
  --radius: 14px;
  --radius-s: 8px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: 'Archivo Variable', 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-stretch: 100%; overflow-x: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--signal); }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; font-weight: 800; font-stretch: 116%; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); line-height: 0.96; font-stretch: 122%; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; font-stretch: 108%; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 54ch; }
.num { font-stretch: 72%; font-variant-numeric: tabular-nums; font-weight: 700; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--signal); border-radius: 4px; }
::selection { background: var(--signal); color: var(--ink); }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand::before { content: ''; width: 14px; height: 14px; background: var(--signal); border: 2px solid var(--ink); transform: skewX(-14deg); align-self: center; }
.brand small { font-weight: 500; font-stretch: 100%; font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--radius-s); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 1161px) { .brand small { display: none; } .nav a { padding: 8px 9px; } }
.nav a:hover { background: var(--chalk); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: var(--radius-s); padding: 6px 10px; font: inherit; font-weight: 700; }
@media (max-width: 1160px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .brand small { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.1; padding: 12px 18px; border-radius: var(--radius-s); border: 2px solid var(--ink); background: var(--signal); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--signal-press); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--paper); }
.btn.ghost:hover { background: var(--chalk); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: #222; }
.btn.small { padding: 7px 12px; font-size: 0.9rem; border-width: 1.5px; }
.btn.tiny { padding: 4px 9px; font-size: 0.8rem; border-width: 1.5px; border-radius: 6px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.live { background: var(--live); color: #fff; border-color: var(--live); }

/* forms */
label { font-weight: 600; font-size: 0.92rem; display: block; }
.hint { font-weight: 400; color: var(--ink-3); font-size: 0.85rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid #9a9b96; border-radius: var(--radius-s); padding: 10px 12px; margin-top: 6px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 18px; height: 18px; }
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: var(--radius-s); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); background: #fffbe0; }
.choice input { margin-top: 3px; flex: none; }
.err { color: var(--live); font-size: 0.88rem; font-weight: 600; margin-top: 4px; }

/* tags: measured / modeled / estimated */
.tag { display: inline-block; font-size: 0.68rem; font-weight: 800; font-stretch: 90%; letter-spacing: 0.04em; padding: 2px 6px; border-radius: 4px; border: 1.5px solid var(--ink); vertical-align: middle; white-space: nowrap; }
.tag[data-tag="MEASURED"] { background: var(--ink); color: var(--paper); }
.tag[data-tag="MODELED"] { background: var(--signal); }
.tag[data-tag="ESTIMATED"] { background: var(--paper); border-style: dashed; }
.tag[data-tag="FIT"] { background: var(--chalk); border-color: var(--ink-3); color: var(--ink-2); }

/* the scorebug panel (light version of the video panel) */
.bug { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.bug-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--signal); padding: 8px 14px; border-bottom: 2px solid var(--ink); font-weight: 800; font-stretch: 92%; font-size: 0.82rem; letter-spacing: 0.02em; }
.bug-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bug-tag { flex: none; font-size: 0.72rem; padding: 2px 7px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--paper); }
.bug-tag[data-tag="ESTIMATED"] { border-style: dashed; }
.bug-tag[data-tag="ADD MARKS"] { background: transparent; border-color: transparent; color: var(--ink-2); }
.bug-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.bug-col { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 6px 10px; min-width: 0; }
.bug-col + .bug-col { border-left: 1px solid var(--rule); }
.bug-k { font-size: 0.7rem; font-weight: 700; font-stretch: 90%; letter-spacing: 0.03em; color: var(--ink-2); min-height: 2.2em; display: flex; align-items: center; line-height: 1.1; }
.bug-v { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1; letter-spacing: -0.01em; }
.bug-u { font-size: 0.76rem; color: var(--ink-3); margin-top: 2px; }
.bug-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 14px 8px; }
.bug-clock { color: var(--live); font-size: 1.05rem; }
.bug-chip { font-size: 0.75rem; font-weight: 700; font-stretch: 92%; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.bug-bar { height: 10px; margin: 0 14px; background: var(--chalk-2); border-radius: 5px; overflow: hidden; }
.bug-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 5px; transition: width 80ms linear; }
.bug-phases { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 14px 12px; }
.bug-phases li { font-size: 0.7rem; font-weight: 700; font-stretch: 90%; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 9px; border-radius: 999px; border: 1.5px solid #b9bab4; color: var(--ink-3); }
.bug-phases li.done { background: var(--gold-dim); border-color: var(--gold-dim); color: var(--ink-2); }
.bug-phases li.on { background: var(--signal); border-color: var(--ink); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .bug-bar i { transition: none; } }

/* sections and layout */
section { padding-block: clamp(48px, 8vw, 104px); }
.rule-top { border-top: 1px solid var(--rule); }
.band { background: var(--chalk); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--chalk); padding-block: 40px; font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { text-decoration: none; font-weight: 600; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--signal); }

/* prose pages */
.prose { max-width: 72ch; }
.prose h2 { margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.formula { font-family: var(--sans); font-stretch: 90%; font-size: 1.08rem; background: var(--chalk); border-left: 4px solid var(--signal); padding: 12px 16px; margin: 12px 0 16px; border-radius: 0 var(--radius-s) var(--radius-s) 0; overflow-x: auto; white-space: nowrap; }
.formula var { font-style: italic; font-weight: 600; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 12px 0 20px; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th { font-weight: 700; font-size: 0.82rem; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
table.data td.n { font-stretch: 80%; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

.notice { border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; background: #fffbe0; }
.notice.bad { background: #fff0f0; border-color: var(--live); }

/* sign-in: new code / different email */
.signin .si-sent { margin: 8px 0 0; color: var(--ok); font-weight: 600; }
.signin .si-again { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.signin .si-again[hidden] { display: none; }
.signin .si-again button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 0.95rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.signin .si-again button:disabled { color: var(--ink-3); text-decoration-color: var(--rule); cursor: default; }
.signin input[readonly] { background: var(--chalk); }
