/* RC Dexterity — instrument-lab design system.
   Serif display, grotesk body, mono labels. Hairlines, not boxes. One accent, used sparingly.
   Tokens first; dark mode redefines them. */
:root {
  --bg: #f4f3ef;
  --surface: #faf9f6;
  --surface-2: #ecebe5;
  --text: #111214;
  --muted: #5f6166;
  --faint: #8a8c90;
  --border: #dcd9d1;
  --border-strong: #bdbab1;
  --accent: #9c3d22;
  --accent-contrast: #ffffff;
  --accent-soft: #efe3dc;
  --warn-soft: #efe3dc;
  --warn-border: #c9a595;
  --grid-line: rgba(17, 18, 20, 0.045);
  --tile: #ebe9e3;
  --tile-edge: #dedbd3;
  --radius: 2px;
  --maxw: 1200px;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Theme: light by default; dark follows the OS unless the toggle pins a theme
   (html[data-theme="light"|"dark"]; no attribute = auto). Keep both dark blocks identical. */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090b;
    --surface: #0f1012;
    --surface-2: #16181b;
    --text: #ecebe6;
    --muted: #a2a39f;
    --faint: #74767a;
    --border: #24262a;
    --border-strong: #3a3d42;
    --accent: #d27a55;
    --accent-contrast: #140b07;
    --accent-soft: #2a1912;
    --warn-soft: #1d1611;
    --warn-border: #5c3f31;
    --grid-line: rgba(236, 235, 230, 0.035);
    --tile: #e6e4de;
    --tile-edge: #cfccc4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090b;
  --surface: #0f1012;
  --surface-2: #16181b;
  --text: #ecebe6;
  --muted: #a2a39f;
  --faint: #74767a;
  --border: #24262a;
  --border-strong: #3a3d42;
  --accent: #d27a55;
  --accent-contrast: #140b07;
  --accent-soft: #2a1912;
  --warn-soft: #1d1611;
  --warn-border: #5c3f31;
  --grid-line: rgba(236, 235, 230, 0.035);
  --tile: #e6e4de;
  --tile-edge: #cfccc4;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-contrast); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 6px 10px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Small tracked uppercase label: the lab voice */
.eyebrow, .label, .tag {
  display: block; font-family: var(--mono); font-size: .7rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px;
}
.tag { color: var(--accent); align-self: flex-start; }

/* Header: transparent until scrolled */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled, .site-header:has(.site-nav.open) {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; padding: 10px 0; order: 0; }
.brand picture { display: block; line-height: 0; }
.brand-logo { display: block; width: 150px; height: auto; }
.brand-name { font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .3em; color: var(--muted); line-height: 1; }
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .brand-logo { width: 118px; }
}
.site-nav { order: 1; margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.site-nav a {
  display: block; padding: 6px 8px; position: relative;
  color: var(--muted); text-decoration: none; font-size: .86rem; letter-spacing: .01em;
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); }
.site-nav a.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 1px; background: var(--accent); }
.header-contact {
  order: 2; font-size: .84rem; color: var(--text); text-decoration: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px 14px;
  transition: background .2s, color .2s, border-color .2s;
}
.header-contact:hover, .header-contact[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.nav-toggle {
  order: 3; display: none; font: inherit; font-size: .84rem; color: var(--text);
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 6px 14px; cursor: pointer;
}
@media (max-width: 919px) {
  .js .nav-toggle { display: inline-block; }
  .header-contact { margin-left: auto; }
  .site-nav { order: 4; width: 100%; }
  .js .site-nav { display: none; padding-bottom: 14px; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .site-nav a.active::after { display: none; }
}

main { padding-bottom: 96px; counter-reset: sec fig; }

/* Page hero: calm, big type, a ruler along the bottom edge */
.page-hero {
  position: relative; padding: 72px 0 56px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 12px);
  opacity: .8;
  -webkit-mask: linear-gradient(90deg, #000 0 30%, transparent 70%); mask: linear-gradient(90deg, #000 0 30%, transparent 70%);
}
@media (min-width: 720px) { .page-hero { padding: 120px 0 72px; } }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede, .lede { font-size: clamp(1.06rem, 1.7vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.page-hero .status { margin-top: 10px; }

/* Sections: auto-numbered, hairline above the heading */
.section { padding: 88px 0 8px; }
.section + .section { padding-top: 72px; }
.section > h2 { max-width: none; text-wrap: balance; padding-top: 18px; border-top: 1px solid var(--border); margin-bottom: .7em; }
.section > h2::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--accent);
  margin-bottom: 18px;
}
.section > p { max-width: 64ch; color: var(--muted); }

/* Figures */
.figcap, figcaption.figcap {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--muted); line-height: 1.5;
}
.figcap::before { counter-increment: fig; content: "Fig. " counter(fig) " — "; color: var(--text); }

/* Grids */
.grid-2, .grid-3 { display: grid; gap: 0; grid-template-columns: 1fr; margin: 28px 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Cards: cells in a hairline grid */
.card {
  background: transparent; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 26px 30px; display: flex; flex-direction: column; min-width: 0;
  transition: background .3s var(--ease);
}
.card:hover { background: var(--surface); }
:not(.grid-2):not(.grid-3) > .card { border: 1px solid var(--border); }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .45em; }
.card p, .card li { color: var(--muted); font-size: .95rem; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; }
.card .cta-row { margin-top: auto; padding-top: 10px; margin-bottom: 0; }
.card > .pill { align-self: flex-start; }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius);
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
  text-decoration: none; font-weight: 500; font-size: .9rem; line-height: 1.25; letter-spacing: .005em;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn::after { content: "→"; font-family: var(--mono); transition: transform .25s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn:hover::after { transform: translateX(3px); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { border-color: var(--text); background: transparent; color: var(--text); }

/* Tables: spec sheet */
.table-wrap { overflow-x: auto; margin: 28px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap th { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 400; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Methodology note */
.note {
  border-left: 1px solid var(--accent); padding: 4px 0 4px 18px;
  color: var(--muted); font-size: .9rem; margin: 28px 0; max-width: 72ch;
}
.note::before { content: "Note — "; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.note > :last-child { margin-bottom: 0; }

/* Pills and status */
.pill {
  display: inline-block; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
  padding: 3px 9px; margin: 0 4px 10px 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--muted); background: transparent;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 0; background: none; border: 0; color: var(--muted);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }

/* Metric list: label / value rows */
.metric-list { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--border); }
.metric-list li { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .94rem; color: var(--muted); }
.metric-list li > strong:first-child { color: var(--text); font-weight: 500; margin-right: 4px; }
.metric-list li:has(> span + span) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.metric-list li:has(> span + span) > :first-child { color: var(--text); }
.metric-list li:has(> span + span) > :last-child { font-family: var(--mono); font-size: .86rem; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0; border-top: 1px solid var(--border); }
.steps > li { counter-increment: step; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--border); }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--mono); font-size: .76rem; color: var(--accent); }
.steps > li > :last-child { margin-bottom: 0; }

/* FAQ */
.faq { margin: 24px 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { color: var(--muted); max-width: 68ch; }

/* Icons (concepts, not logos) */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.ico-badge {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--border-strong); border-radius: 50%; color: var(--text); margin-bottom: 22px;
  transition: border-color .25s, color .25s;
}
.ico-badge .ico { width: 20px; height: 20px; }
.card:hover .ico-badge { border-color: var(--accent); color: var(--accent); }
.card .ico-badge { align-self: flex-start; }

/* Product cutout plate: white-background photos multiply onto a light plate in both themes */
.ptile {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: var(--tile); aspect-ratio: 1 / 1; padding: 12% 12% 18%; margin: 0; min-width: 0;
}
.ptile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.ptile:hover img { transform: scale(1.035); }
.ptile figcaption, .ptile .cap {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #55585d;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 560px) { .ptile figcaption, .ptile .cap { display: none; } }

/* ---------- Home ---------- */
.hero3d { margin-inline: calc(50% - 50vw); width: 100vw; height: 520vh; position: relative; }
.hero3d-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero3d-sticky canvas, #hero3d-canvas { width: 100%; height: 100%; display: block; }
.hero3d + * { margin-top: 0; }
body:has(.hero3d) main { padding-top: 0; }
body:has(.hero3d) .site-header { margin-bottom: -61px; }

.intro { padding: 112px 0 40px; display: grid; gap: 28px 64px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.intro h1 { max-width: 13ch; margin: 0; }
.intro .lede { margin-bottom: 0; }
.intro .cta-row { margin: 22px 0 0; }

.specimens { margin: 40px 0 0; }
.specimens .row { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .specimens .row { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.specimens .ptile { aspect-ratio: 4 / 5; }
.specimens .ptile.span2 { grid-column: span 2; aspect-ratio: auto; }
@media (min-width: 720px) { .specimens .ptile.span2 { grid-column: auto; aspect-ratio: 4 / 5; padding: 12% 6% 18%; } }
.specimens .figcap { margin-top: 12px; }

/* Doors: large image-led panels */
.doors { display: grid; gap: 0; grid-template-columns: 1fr; margin: 104px 0 0; border-top: 1px solid var(--text); }
@media (min-width: 860px) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.door {
  display: flex; flex-direction: column; color: var(--text); text-decoration: none; min-width: 0;
  border-bottom: 1px solid var(--border); padding: 22px 0 30px;
}
@media (min-width: 860px) {
  .door { padding: 22px 22px 34px; border-bottom: 0; border-left: 1px solid var(--border); }
  .door:first-child { border-left: 0; padding-left: 0; }
  .door:last-child { padding-right: 0; }
}
.door .num { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 18px; }
.door .num b { color: var(--accent); font-weight: 400; }
.door-media {
  position: relative; height: clamp(260px, 26vw, 320px); background: var(--tile); overflow: hidden;
  display: grid; place-items: center; padding: 10%;
}
.door-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.door:hover .door-media img { transform: scale(1.045); }
.door-media.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4%; padding: 14% 6%; }
.door-media .chip {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #3a3d42;
}
.door h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 22px 0 10px; max-width: 16ch; }
.door p { color: var(--muted); margin: 0 0 18px; font-size: .95rem; max-width: 38ch; }
.door .go { margin-top: auto; font-size: .86rem; font-weight: 500; display: inline-flex; gap: 10px; align-items: center; }
.door .go::after { content: "→"; font-family: var(--mono); transition: transform .25s var(--ease); }
.door:hover .go::after { transform: translateX(4px); }
.door:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--accent); }

/* Brand strip: monochrome marks. White-ink logos invert on light; dark-ink logos invert on dark. */
.brand-strip { margin: 104px 0 0; display: grid; gap: 18px 48px; grid-template-columns: 1fr; border-top: 1px solid var(--border); padding-top: 22px; }
@media (min-width: 900px) { .brand-strip { grid-template-columns: 180px 1fr; } }
.brand-strip .label { margin: 4px 0 0; }
.brand-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 30px 34px; align-items: center; }
.brand-strip li { display: flex; align-items: center; justify-content: flex-start; height: 34px; }
.brand-strip img { max-height: 24px; max-width: 100%; width: auto; opacity: .72; transition: opacity .25s; }
.brand-strip img.tall { max-height: 32px; }
.brand-strip img.ink-dark { filter: grayscale(1) brightness(.2); }
.brand-strip img.ink-light { filter: invert(1) grayscale(1) brightness(.4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-strip img.ink-dark { filter: grayscale(1) invert(1) brightness(1.6); }
  :root:not([data-theme="light"]) .brand-strip img.ink-light { filter: grayscale(1) brightness(1.1); }
}
:root[data-theme="dark"] .brand-strip img.ink-dark { filter: grayscale(1) invert(1) brightness(1.6); }
:root[data-theme="dark"] .brand-strip img.ink-light { filter: grayscale(1) brightness(1.1); }
.brand-strip li:hover img { opacity: 1; }
.brand-strip .more { grid-column: 1 / -1; font-size: .86rem; margin: 6px 0 0; }
@media (min-width: 900px) { .brand-strip .more { grid-column: 2; } }

/* Full-bleed event banner */
.feature-bleed {
  position: relative; margin: 112px calc(50% - 50vw) 0; width: 100vw; min-height: 520px;
  color: #f4f3ef; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.feature-bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; z-index: -2; filter: grayscale(.35) contrast(1.05); transform: scale(1.02); }
.feature-bleed::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,9,11,.15) 0%, rgba(8,9,11,.55) 45%, rgba(8,9,11,.9) 100%); }
.feature-bleed .inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 56px 16px 44px; display: grid; gap: 22px 64px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .feature-bleed .inner { padding: 72px 40px 52px; } }
@media (min-width: 900px) { .feature-bleed .inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.feature-bleed .eyebrow { color: rgba(244,243,239,.72); }
.feature-bleed h2 { color: #f4f3ef; font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin: 0; max-width: 14ch; }
.feature-bleed dl { margin: 0; border-top: 1px solid rgba(244,243,239,.35); }
.feature-bleed dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(244,243,239,.2); font-size: .92rem; }
.feature-bleed dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,243,239,.62); }
.feature-bleed dd { margin: 0; text-align: right; }
.feature-bleed .btn { background: #f4f3ef; color: #111214; border-color: #f4f3ef; margin-top: 20px; }
.feature-bleed .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.feature-bleed .credit { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; color: rgba(244,243,239,.6); }

/* Three-column principle rows */
.principles { list-style: none; margin: 28px 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principles li { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
@media (min-width: 760px) { .principles li { border-bottom: 0; border-right: 1px solid var(--border); padding-left: 24px; } .principles li:first-child { padding-left: 0; } .principles li:last-child { border-right: 0; } }
.principles .ico { color: var(--accent); margin-bottom: 18px; display: block; }
.principles strong { display: block; color: var(--text); font-weight: 500; font-size: 1.05rem; margin-bottom: 4px; }

.sub-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; margin: 64px 0 0; font-size: .92rem; }
.sub-links .label { margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: tl; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--text); } }
.timeline > li { counter-increment: tl; position: relative; padding: 20px 20px 22px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 760px) {
  .timeline > li { border-bottom: 0; padding-top: 30px; }
  .timeline > li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
}
.timeline > li::before { content: counter(tl, decimal-leading-zero); font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--muted); display: block; margin-bottom: 14px; }
.timeline .ico-badge { display: none; }
.timeline strong { display: block; font-weight: 500; font-size: 1.02rem; margin-bottom: 4px; }
.timeline span.t { color: var(--muted); font-size: .92rem; }

/* Instruments list (card page) */
.tools { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 8px 0 8px; }
.tools span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tools .ico { width: 20px; height: 20px; color: var(--text); }

/* Measurement specification grid */
.measure-grid { display: grid; gap: 0; grid-template-columns: 1fr; margin: 28px 0; border-top: 1px solid var(--text); }
@media (min-width: 640px) { .measure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .measure-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.measure { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
@media (min-width: 640px) { .measure { padding-left: 0; } }
.measure .ico-badge { grid-row: span 3; margin: 0; width: 38px; height: 38px; }
.measure h3 { margin: 0 0 2px; font-size: 1rem; font-weight: 500; }
.measure .unit { font-family: var(--mono); font-size: .66rem; color: var(--accent); letter-spacing: .06em; margin-left: 8px; font-weight: 400; }
.measure p { margin: 0; color: var(--muted); font-size: .92rem; }
.measure .how { font-size: .82rem; color: var(--faint); }
.measure .how::before { content: "Method · "; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }

/* Sample Dexterity Card: one-page instrument sheet */
.dcard-fig { margin: 32px 0 0; }
.dcard {
  position: relative; overflow: hidden; max-width: 880px;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.35);
}
.dcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 22px; background: #111214; color: #ecebe6; }
.dcard-head .brand-lock { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dcard-head img { width: 118px; height: auto; }
.dcard-head strong { font-family: var(--mono); font-weight: 400; letter-spacing: .18em; font-size: .72rem; text-transform: uppercase; border-left: 1px solid #3a3d42; padding-left: 12px; }
.dcard-head .ver { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #a2a39f; }
.dcard-top { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .dcard-top { grid-template-columns: 220px 1fr; } }
.dcard-top > * { min-width: 0; }
.dcard-photo { margin: 18px; border: 1px dashed var(--border-strong); background: var(--tile); position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14px 14px 26px; }
.dcard-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: .5; }
.dcard-photo .cap { position: absolute; bottom: 7px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: #55585d; }
@media (max-width: 639px) { .dcard-photo { width: 170px; margin: 18px auto 0; } }
.dcard-ids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 0 24px; padding: 8px 22px 16px; margin: 0; }
.dcard-ids div { padding: 11px 0; border-bottom: 1px solid var(--border); }
.dcard-ids dt { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.dcard-ids dd { margin: 3px 0 0; font-family: var(--mono); font-size: .98rem; }
.dcard-rows { list-style: none; margin: 0; padding: 6px 22px 10px; }
.dcard-rows li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.dcard-rows li:last-child { border-bottom: 0; }
.dcard-rows .ico { color: var(--text); width: 20px; height: 20px; justify-self: start; }
.dcard-rows .name { font-size: .94rem; }
.dcard-rows .val { font-family: var(--mono); font-size: 1rem; text-align: right; white-space: nowrap; }
.dcard-rows .val small { color: var(--muted); font-size: .68rem; margin-left: 6px; }
.dcard-rows .bar { grid-column: 2 / -1; height: 6px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 8px); opacity: .7; }
.dcard-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 11px 22px; background: var(--surface-2); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--border); }
.dcard::after {
  content: "TEMPLATE — NO MEASURED VALUES YET";
  position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%) rotate(-16deg);
  font-family: var(--mono); font-size: clamp(.8rem, 3vw, 1.5rem); letter-spacing: .16em; white-space: nowrap;
  color: var(--accent); opacity: .22; pointer-events: none;
  border: 1.5px solid currentColor; padding: 8px 18px;
}
.dcard-fig .figcap { margin-top: 14px; max-width: 880px; }

/* Benchmark flow diagram */
.flow { display: grid; grid-template-columns: 1fr; gap: 0; margin: 32px 0 0; align-items: stretch; border-top: 1px solid var(--text); }
@media (min-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.55fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); } }
.flow-node { padding: 24px 0 26px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .flow-node { border-bottom: 0; } }
.flow-node .step { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; color: var(--accent); }
.flow-node .ico-badge { width: 52px; height: 52px; margin: 6px 0 8px; }
.flow-node .ico-badge .ico { width: 24px; height: 24px; }
.flow-node strong { font-size: 1rem; font-weight: 500; }
.flow-node span:not(.ico-badge):not(.step) { color: var(--muted); font-size: .9rem; }
.flow-hands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: 6px 0 8px; }
.flow-hands .ptile { padding: 10% 10% 12%; }
.flow-arrow { display: grid; place-items: center; color: var(--faint); padding: 6px 0; }
.flow-arrow .ico { width: 22px; height: 22px; }
@media (max-width: 899px) { .flow-arrow { justify-content: start; padding-left: 14px; } .flow-arrow .ico { transform: rotate(90deg); } }
.flow + .figcap, .flow ~ .figcap { margin-top: 14px; display: block; }

/* Card with photo */
.card.media { padding: 0; overflow: hidden; }
.card.media .card-img { background: var(--tile); min-height: 200px; display: grid; place-items: center; padding: 20px; }
.card.media .card-img img { max-height: 170px; width: auto; mix-blend-mode: multiply; }
.card.media .card-body { padding: 28px 26px; display: flex; flex-direction: column; flex: 1; }
.card.media .card-body > :last-child { margin-bottom: 0; }
.card-row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-row { grid-template-columns: 260px 1fr; } }

/* Services photo row */
.svc-tray { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 12px; }
@media (min-width: 720px) { .svc-tray { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.svc-fig { margin: 0 0 40px; }

/* Events */
.event-feature { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--text); margin: 28px 0; }
@media (min-width: 820px) { .event-feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.event-feature figure { margin: 0; }
.event-feature figure .img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.event-feature figure img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.3); }
.event-feature figcaption { margin-top: 10px; }
.event-feature .ev-body { padding: 24px 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 820px) { .event-feature .ev-body { padding: 8px 0 0 40px; } }
.ev-date { font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -0.01em; }
.ev-date small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--border); }
.facts li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .95rem; padding: 10px 0; border-bottom: 1px solid var(--border); }
.facts .ico { width: 18px; height: 18px; color: var(--text); }

/* Contact */
.contact-card .big { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; color: var(--text); margin-bottom: .5em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 44px; }
.footer-inner strong { color: var(--text); font-weight: 500; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Scroll reveal (app.js adds .rv / .in). Content is never hidden at rest: the effect
   is a small rise from an already-visible state, so thumbnails, print, screen readers
   and fast scrollers always see everything. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js .rv { transform: translateY(12px); transition: transform .9s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv.in { transform: none; }
}
@media print { .rv { opacity: 1 !important; transform: none !important; } }

/* Header wordmark: swap by resolved theme */
.brand-logo.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo.on-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo.on-dark { display: block; }
}
:root[data-theme="dark"] .brand-logo.on-light { display: none; }
:root[data-theme="dark"] .brand-logo.on-dark { display: block; }

/* Theme toggle: Auto -> Light -> Dark */
.theme-toggle {
  order: 2; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; flex: none;
  background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 50%; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .ico { width: 18px; height: 18px; display: none; }
.theme-toggle[data-mode="auto"] .t-auto, .theme-toggle[data-mode="light"] .t-light, .theme-toggle[data-mode="dark"] .t-dark { display: block; }
.header-contact { order: 3; }
.nav-toggle { order: 4; }
@media (max-width: 919px) { .site-nav { order: 5; } .theme-toggle { margin-left: auto; } .header-contact { margin-left: 0; } }

/* Segmented switch (Hands | Gloves) */
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--border-strong); border-radius: 999px; gap: 2px; margin: 0 0 22px; }
.segmented a { padding: 6px 16px; border-radius: 999px; font-size: .84rem; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.segmented a:hover { color: var(--text); }
.segmented a[aria-current] { background: var(--text); color: var(--bg); }

/* Progressive disclosure: hairline rows with a +/- mark */
.disclose { margin: 48px 0 0; border-top: 1px solid var(--border); }
.disclose details { border-bottom: 1px solid var(--border); }
.disclose summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -0.005em;
}
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary .meta { margin-left: auto; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.disclose summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-left: auto; color: var(--muted);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.25px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.25px 14px no-repeat;
  transition: transform .3s var(--ease), color .2s;
}
.disclose summary:has(.meta)::after { margin-left: 0; }
.disclose details[open] summary::after { transform: rotate(45deg); color: var(--text); }
.disclose summary:hover::after { color: var(--text); }
.disclose .body { padding: 0 0 36px; color: var(--muted); }
.disclose .body > :first-child { margin-top: 0; }
.disclose .body > :last-child { margin-bottom: 0; }
.disclose .body p { max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) {
  .disclose details[open] .body { animation: disclose-in .45s var(--ease); }
}
@keyframes disclose-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Simple page heads and lines */
.page-hero .cta-row { margin-bottom: 0; }
.one-line { margin: 112px 0 0; }
.one-line h1 { max-width: 16ch; margin: 0; }
.day-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 96px 0 0; padding: 24px 0;
  border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text);
}
.day-line .d { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.day-line strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.15; }
.day-line .go { margin-left: auto; font-size: .86rem; font-weight: 500; }
.day-line .go::after { content: " →"; font-family: var(--mono); }
.day-line:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.visual { margin: 56px 0 0; }
.rows { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--border); }
.rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.rows li strong { font-weight: 500; font-size: 1.08rem; min-width: 12ch; }
.rows li span { color: var(--muted); }
.rows li > a { margin-left: auto; font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.rows li > a::after { content: " →"; font-family: var(--mono); }
.rows li span { flex: 1 1 26ch; min-width: 0; }
.footer-links { max-width: 760px; }
.event-photo .img { aspect-ratio: 16 / 9; overflow: hidden; }
.event-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; display: block; filter: grayscale(.3); }
.event-photo .figcap { margin-top: 12px; display: block; }
.disclose .timeline { margin-top: 0; }
.disclose .rows li strong { color: var(--text); }
.disclose .card.media { border: 1px solid var(--border); }
.door-media:not(.trio) img { position: absolute; left: 10%; top: 8%; width: 80%; height: 84%; }

/* Clickable brand logos → /hands#brand */
.brand-strip li a { display: block; transition: opacity .2s var(--ease, ease), transform .2s var(--ease, ease); }
.brand-strip li a:hover { opacity: .65; transform: translateY(-1px); }
.brand-strip li a:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }

/* Anchor jumps land below the fixed header */
main [id] { scroll-margin-top: 96px; }

/* Home door 01: arm + hand, two destinations */
.door-media.duo { grid-template-columns: 1fr 1fr; gap: 6%; padding: 10% 8%; text-decoration: none; }
.door-media.duo img { position: static; width: 100%; height: 100%; }
.door .go-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.door .go-links .go { margin-top: 0; text-decoration: none; color: var(--text); }
.door .go-links .go:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
div.door:hover h2 { text-decoration: none; }
.one-line .lede { margin: 22px 0 0; }
/* Five nav items + toggle + Contact must fit one row at 1280 */
@media (min-width: 920px) and (max-width: 1100px) { .site-nav a { padding: 6px 6px; font-size: .84rem; } .site-nav ul { gap: 2px 2px; } }

.position-line { margin: 14px 0 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.position-line::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
/* DexBench dimension tag on a metric */
.dim { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border-strong); padding: 2px 7px; border-radius: var(--radius); }
.dim::before { content: "DexBench · "; color: var(--accent); }
.fine { font-size: .82rem; color: var(--faint); margin-top: 18px; }
.measure .dims { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; }
.measure .dims .dim { margin-top: 0; }
.dim-note { font-size: .78rem; color: var(--faint); }
.mlink { font-size: .78rem; margin-left: auto; }
.mlink::after { content: " →"; font-family: var(--mono); }
.protocol-line { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .88rem; }

/* DexBench community leaderboard and submission */
.benchmark-hero { padding-bottom: 76px; }
.benchmark-hero h1 { max-width: 14ch; }
.eyebrow { margin: 0 0 10px; font: 400 .68rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.benchmark-tasks, .leaderboard-section, .submit-section { margin: 0 0 104px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 0 0 25px; }
.section-head h2, .submit-copy h2 { margin: 0; }
.text-link { font-size: .88rem; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.task-card { border: 1px solid var(--border); min-width: 0; background: var(--surface); }
.task-card > img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.task-card-body { padding: 18px 20px 20px; }
.task-card-body .eyebrow { margin-bottom: 5px; }
.task-card-body h3 { margin: 0 0 8px; font-size: 1.16rem; font-weight: 500; }
.task-card-body p:not(.eyebrow) { min-height: 3.2em; color: var(--muted); font-size: .91rem; margin: 0 0 12px; }
.task-card-body code { color: var(--muted); font-size: .74rem; }
.task-setup-link { display: block; margin: 11px 0 0; font-size: .78rem; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.leaderboard-heading { align-items: end; }
.leaderboard-heading .section-lede { color: var(--muted); max-width: 65ch; margin: 14px 0 0; }
.leaderboard-panel { border: 1px solid var(--border-strong); background: var(--surface); }
.leaderboard-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.leaderboard-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); align-self: stretch; }
.leaderboard-tab { color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 0 13px 10px; font: 500 .87rem var(--font); cursor: pointer; }
.leaderboard-tab[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--text); }
.select-label { display: grid; gap: 4px; color: var(--muted); font: 400 .63rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.select-label select { min-width: 176px; padding: 8px 30px 8px 10px; border: 1px solid var(--border-strong); border-radius: 0; background: var(--bg); color: var(--text); font: 400 .86rem var(--font); letter-spacing: 0; text-transform: none; }
.leaderboard-scroll { overflow-x: auto; }
.leaderboard-table { width: 100%; min-width: 1060px; border-collapse: collapse; font-size: .86rem; text-align: left; }
.leaderboard-table th { background: var(--surface-2); color: var(--muted); font: 400 .63rem var(--mono); letter-spacing: .11em; text-transform: uppercase; padding: 12px 14px; white-space: nowrap; }
.leaderboard-table td { border-top: 1px solid var(--border); padding: 14px; vertical-align: middle; }
.leaderboard-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: .75rem; }
.leaderboard-table td a { font-size: .8rem; white-space: nowrap; }
.leaderboard-table .rank-cell { width: 68px; font: 400 .8rem var(--mono); color: var(--muted); }
.leaderboard-table .score-cell { font: 500 1.05rem var(--mono); white-space: nowrap; }
.leaderboard-table .preview-row { color: var(--muted); background: color-mix(in srgb, var(--surface-2) 48%, transparent); }
.leaderboard-table .preview-row .rank-cell, .leaderboard-table .preview-row .score-cell { color: var(--faint); }
.preview-tag { display: inline-block; padding: 3px 7px; border: 1px solid var(--border-strong); color: var(--muted); font: 400 .59rem var(--mono); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.leaderboard-state { height: 110px; color: var(--muted); text-align: center; }
.leaderboard-foot { margin: 0; padding: 11px 16px; border-top: 1px solid var(--border); font: 400 .68rem var(--mono); color: var(--muted); }
.benchmark-note { margin: 16px 0 0; max-width: 92ch; color: var(--muted); font-size: .82rem; }
.submit-section { display: grid; grid-template-columns: minmax(220px,.72fr) minmax(0,1.28fr); gap: clamp(30px,7vw,100px); align-items: start; padding: 42px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); }
.submit-copy h2 { margin-bottom: 20px; }
.submit-copy p:not(.eyebrow) { max-width: 43ch; color: var(--muted); font-size: .94rem; }
.submit-copy .text-link { display: inline-block; margin-top: 8px; }
.submission-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-grid label { display: grid; gap: 6px; font-size: .79rem; font-weight: 500; }
.form-grid label.wide { grid-column: 1/-1; }
.form-grid input, .form-grid select { min-width: 0; width: 100%; padding: 10px 11px; border: 1px solid var(--border-strong); border-radius: 0; background: var(--bg); color: var(--text); font: 400 .88rem var(--font); }
.form-grid input[type="file"] { padding: 8px; }
.form-grid input::placeholder { color: var(--faint); }
.optional { color: var(--muted); font-weight: 400; }
.check-row { display: flex; align-items: flex-start; gap: 10px; max-width: 70ch; color: var(--muted); font-size: .82rem; }
.check-row input { flex: none; margin: 4px 0 0; accent-color: var(--accent); }
.submission-form .btn { justify-self: start; cursor: pointer; }
.submission-form .btn:disabled { opacity: .55; cursor: wait; }
.form-status { margin: -4px 0 0; min-height: 1.5em; color: var(--muted); font-size: .8rem; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.benchmark-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin: -25px 0 70px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .85rem; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .task-grid { grid-template-columns: 1fr; }
  .task-card { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(0,1.2fr); }
  .task-card > img { height: 100%; min-height: 180px; border: 0; border-right: 1px solid var(--border); }
  .task-card-body p:not(.eyebrow) { min-height: auto; }
  .section-head { align-items: start; flex-direction: column; }
  .leaderboard-controls { flex-wrap: wrap; }
  .leaderboard-tabs { width: 100%; }
  .leaderboard-tab { padding-left: 0; padding-right: 13px; }
  .submit-section { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .task-card { display: block; }
  .task-card > img { width: 100%; height: auto; aspect-ratio: 1 / 1; border: 0; border-bottom: 1px solid var(--border); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: auto; }
  .leaderboard-controls .select-label, .leaderboard-controls select { width: 100%; }
  .benchmark-links { flex-direction: column; }
}
.disclose .body h3, .disclose .body strong { color: var(--text); }

/* Suite row: links across Robotics Center sites */
.suite-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding-top: 14px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: .85rem; }
.suite-row .suite-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.suite-row a { color: var(--muted); text-decoration: none; }
.suite-row a:hover, .suite-row a[aria-current] { color: var(--text); }
