/*
 * EgoField Atlas on bracketbridge.com
 * Mirrors the tokens of the white-studio marketing site (Inter Light, #141414 ink,
 * hairline rules, pill buttons) so the dataset pages read as the same product.
 */

@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 300; src: url(fonts/inter-300.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/inter-600.woff2) format("woff2"); }

:root {
  --ink: #141414;
  --muted: #646464;
  --soft: #7b7b7b;
  --faint: #9a9a9a;
  --rule: #dedede;
  --rule-strong: #cfcfcf;
  --panel: #f6f7f7;
  --pill: #f1f1f1;
  --pill-hover: #e4e4e4;
  --focus: #666;
  --error: #b3261e;
  --page-pad: 18px;
  --nav-h: 70px;
  --local-h: 52px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:root:lang(zh) { font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: -.01em; line-height: 1.25; }

@media (min-width: 380px) { :root { --page-pad: 24px; } }
@media (min-width: 768px) { :root { --page-pad: 40px; } }
@media (min-width: 1050px) { :root { --page-pad: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--local-h) + 24px); }
body { margin: 0; background: #fff; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 300; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #111; color: #fff; padding: 10px 14px; border-radius: 100px; font-size: 13px; }
.skip-link:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page-width { width: calc(100% - var(--page-pad) * 2); max-width: 1440px; margin-inline: auto; }

/* Navigation, identical in shape to the homepage navbar */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h);
  padding: 0 var(--page-pad);
  background: #ffffffe8;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid #11111108;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.06em; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.desktop-navigation { display: none; }
.desktop-navigation > a { font-size: 14px; color: #525252; padding: 12px 0; transition: color .2s; }
.desktop-navigation > a:hover, .desktop-navigation > a[aria-current="page"] { color: #111; }
.nav-actions { display: flex; align-items: center; gap: 7px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: #444; border: 1px solid #e2e2e2; white-space: nowrap; }
.lang-switch:hover { color: #111; border-color: #999; }
.contact-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; border-radius: 100px; background: var(--pill); padding: 12px 14px; min-height: 40px; transition: background .2s; white-space: nowrap; }
.contact-pill:hover { background: var(--pill-hover); }
.text-button { font-size: 13px; color: #525252; padding: 10px 6px; white-space: nowrap; }
@media (max-width: 599px) { .nav-optional { display: none; } }
.text-button:hover { color: #111; }
@media (min-width: 768px) {
  :root { --nav-h: 88px; }
  .brand { font-size: 20px; }
  .brand svg { width: 36px; height: 36px; }
  .contact-pill { font-size: 14px; gap: 18px; padding: 14px 20px; min-height: 44px; }
}
@media (min-width: 1050px) {
  .desktop-navigation { display: flex; align-items: center; gap: 29px; }
}
@media (min-width: 1500px) { .navbar { padding-inline: max(var(--page-pad), calc((100% - 1440px) / 2)); } }
@media (max-width: 420px) { .lang-switch { display: none; } }

/* Type */
.eyebrow { font-size: 12px; letter-spacing: .035em; color: #555; margin-bottom: 20px; }
.section-label { font-size: 12px; letter-spacing: .015em; color: #595959; line-height: 1.4; margin-bottom: 30px; }
.muted { color: var(--soft); }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.045em; }
.lede { font-size: 17px; line-height: 1.55; color: #3d3d3d; max-width: 560px; }
@media (min-width: 768px) { .eyebrow { font-size: 13px; margin-bottom: 23px; } }

/* Buttons */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; padding: 15px 20px; border-radius: 100px; font-size: 14px; line-height: 1.2; min-height: 46px; transition: background .2s, transform .2s, opacity .2s; white-space: nowrap; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .55; transform: none; cursor: default; }
.button-primary { background: #111; color: #fff; border: 1px solid #111; }
.button-primary:hover { background: #353535; }
.button-secondary { background: #ffffff80; border: 1px solid #aaa; }
.button-secondary:hover { background: #f3f3f3; }
.button svg { flex: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* Hero */
.hero { padding-top: 132px; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 4.75rem); line-height: 1.04; letter-spacing: -.047em; max-width: 1000px; }
.hero h1 > span { display: block; }
.hero .lede { margin-top: 28px; }
@media (min-width: 768px) { .hero { padding-top: 170px; } }
@media (min-width: 1050px) {
  .hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: end; }
  .hero .lede { margin-top: 0; }
  .hero-aside .button-row { margin-top: 28px; }
}

/* Film: sits directly on the white page, like the section films on the homepage */
.film { position: relative; margin-top: 56px; }
.film-frame { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: #fff; }
.film-frame video, .film-frame img { width: 100%; height: 100%; object-fit: cover; }
.film-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.film-caption span:last-child { color: var(--faint); }
@media (max-width: 767px) { .film-frame { aspect-ratio: 16 / 9; } }

/* Sections */
.section { padding-block: 96px; }
.section + .section { padding-top: 0; }
.section-grid { display: grid; gap: 0; }
@media (min-width: 768px) { .section { padding-block: 130px; } }
@media (min-width: 1050px) {
  .section-grid { grid-template-columns: 1fr 3fr; gap: 32px; }
  .section-grid > .section-label { margin-top: 9px; }
}
.statement { font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.2; letter-spacing: -.04em; max-width: 960px; }
.statement > span { color: var(--soft); }
.note { margin-top: 22px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 640px; }

/* Numbers, same treatment as the homepage track record */
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border-top: 1px solid var(--rule); }
.facts > div { padding: 24px 20px 24px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 300; letter-spacing: -.055em; line-height: 1; }
.facts dt sup { font-size: .6em; vertical-align: top; position: relative; top: .05em; }
.facts dd { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 240px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts > div { border-bottom: 0; } }

/* Environment rows, same treatment as "What we collect" */
.rows { margin-top: 56px; border-bottom: 1px solid #d6d6d6; }
.row { border-top: 1px solid #d6d6d6; padding: 30px 0; display: grid; gap: 14px; }
.row h3 { font-size: 27px; letter-spacing: -.035em; line-height: 1.15; }
.row p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.row-examples { display: flex; flex-wrap: wrap; gap: 8px 15px; list-style: none; padding: 0; margin: 14px 0 0; color: #686868; font-size: 12px; line-height: 1.6; }
.row-examples li { border-bottom: 1px solid var(--rule); padding-bottom: 3px; }
.row-status { font-size: 12px; color: #666; line-height: 1.6; }
@media (min-width: 768px) { .row { grid-template-columns: 1fr 1.6fr; gap: 25px; padding-block: 36px; } .row-status { grid-column: 2; } .row h3 { font-size: 28px; } }
@media (min-width: 1050px) { .row { grid-template-columns: 1.1fr 1.5fr .6fr; gap: 32px; align-items: start; } .row-status { grid-column: auto; justify-self: end; text-align: right; margin-top: 7px; } .row h3 { font-size: 30px; } }

/* Spec sheet */
.spec { margin-top: 56px; border-top: 1px solid var(--rule); display: grid; }
.spec > div { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-size: 13px; color: var(--muted); }
.spec dd { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }
.spec dd small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); letter-spacing: 0; }
@media (min-width: 768px) {
  .spec { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .spec > div { grid-template-columns: 180px 1fr; gap: 20px; padding: 24px 0; }
}

/* Access panel */
.access { background: var(--panel); padding-block: 96px; }
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.access-grid > * { min-width: 0; }
.access h2 { max-width: 620px; }
.access .lede { margin-top: 22px; color: var(--muted); font-size: 16px; }
.access-form { display: grid; gap: 14px; align-content: start; }
.code-label { font-size: 13px; color: #444; }
.code-row { display: flex; flex-wrap: wrap; gap: 10px; }
.code-input {
  flex: 1 1 200px; width: 100%; min-width: 0; height: 64px; padding: 0 22px;
  border: 1px solid var(--rule-strong); border-radius: 18px; background: #fff;
  font-size: 30px; font-weight: 300; letter-spacing: .55em; font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s;
}
.code-input::placeholder { color: #c8c8c8; letter-spacing: .55em; }
.code-input:focus { outline: none; border-color: #111; box-shadow: 0 0 0 4px #11111110; }
.code-input[aria-invalid="true"] { border-color: var(--error); }
.code-row .button { height: 64px; padding-inline: 26px; flex: 0 0 auto; }
.form-status { min-height: 22px; font-size: 14px; color: var(--muted); }
.form-status[data-state="error"] { color: var(--error); }
.access-fine { display: grid; gap: 10px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.55; color: var(--muted); }
.access-fine a { color: var(--ink); border-bottom: 1px solid #bbb; }
@media (min-width: 768px) { .access { padding-block: 130px; } }
@media (min-width: 1050px) { .access-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; } }
@media (max-width: 420px) { .code-row .button { width: 100%; } }

/* Footer, identical to the homepage footer */
.site-footer { padding-top: 30px; border-top: 1px solid var(--rule); }
.footer-top { display: flex; flex-direction: column; gap: 25px; justify-content: space-between; padding-bottom: 30px; }
.footer-email { display: inline-flex; gap: 12px; align-items: center; font-size: 14px; }
.footer-bottom { border-top: 1px solid #e9e9e9; padding: 22px 0 28px; display: flex; flex-direction: column; gap: 20px; font-size: 12px; color: #777; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a:hover { color: #111; }
@media (min-width: 768px) {
  .footer-top { flex-direction: row; align-items: center; padding-bottom: 35px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-bottom > div { gap: 25px; }
}

/* ---------- Library ---------- */
.library-head { padding-top: 124px; padding-bottom: 40px; }
.library-head h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -.047em; }
.library-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.library-meta strong { color: var(--ink); font-weight: 400; }
@media (min-width: 768px) { .library-head { padding-top: 160px; } }

.toolbar { position: sticky; top: calc(var(--nav-h) + var(--local-h)); z-index: 20; background: #ffffffee; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.toolbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: calc(var(--page-pad) * -1); padding-inline: var(--page-pad); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #e2e2e2; font-size: 13px; color: #444; background: #fff; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: #999; color: #111; }
.chip[aria-pressed="true"] { background: #111; border-color: #111; color: #fff; }
.chip small { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search input { width: 100%; height: 36px; border-radius: 999px; border: 1px solid #e2e2e2; padding: 0 14px 0 36px; font-size: 13px; background: #fff; }
.search input:focus { outline: none; border-color: #111; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #888; pointer-events: none; }
@media (min-width: 768px) { .chips { margin-inline: 0; padding-inline: 0; } }
@media (max-width: 767px) { .search { max-width: none; } }

.group { padding-top: 64px; }
.group-head { display: grid; gap: 8px; margin-bottom: 18px; }
.group-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.group-head p { font-size: 14px; color: var(--muted); max-width: 560px; line-height: 1.55; }
@media (min-width: 1050px) { .group-head { grid-template-columns: 1fr 3fr; gap: 32px; align-items: baseline; } }

.clip-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.clip { border-bottom: 1px solid var(--rule); }
.clip-button { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; text-align: left; transition: background .15s; }
.clip-button:hover { background: #fafafa; }
.clip-index { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.clip-title { display: block; font-size: 17px; letter-spacing: -.015em; line-height: 1.35; }
.clip-sub { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.clip-side { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 38px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clip-play { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pill); color: #111; transition: background .2s; }
.clip-button:hover .clip-play { background: #111; color: #fff; }
.clip-size { display: none; }
@media (min-width: 768px) {
  .clip-button { grid-template-columns: 56px 1fr 1fr auto; gap: 24px; padding: 20px 0; }
  .clip-scenario { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
  .clip-size { display: inline; }
  .clip-side { min-width: 132px; }
}
@media (max-width: 767px) { .clip-scenario { display: none; } }

.docs { padding-block: 96px 120px; }
.doc-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.doc-row strong { display: block; font-weight: 400; font-size: 17px; letter-spacing: -.015em; }
.doc-row span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding-bottom: 3px; border-bottom: 1px solid #999; white-space: nowrap; }
.text-link:hover { border-color: #111; }

.state { padding: 150px 0 160px; }
.state > * { max-width: 680px; }
.state h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.045em; }
.state p { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.state .button-row { margin-top: 30px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd; border-top-color: #111; animation: spin .8s linear infinite; margin-bottom: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Player sheet */
.player { position: fixed; inset: 0; z-index: 80; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.player-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--page-pad); border-bottom: 1px solid #11111110; position: sticky; top: 0; background: #ffffffee; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); z-index: 1; }
.player-top p { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.round-button { width: 42px; height: 42px; border-radius: 100%; display: grid; place-items: center; background: #eee; flex: none; transition: background .2s; }
.round-button:hover { background: #ddd; }
.round-button:disabled { opacity: .35; cursor: default; }
.player-nav { display: flex; gap: 8px; }
.player-body { width: calc(100% - var(--page-pad) * 2); max-width: 1200px; margin: 28px auto 60px; }
.player-stage { position: relative; aspect-ratio: 16 / 9; background: #0b0b0b; overflow: hidden; }
.player-stage video { width: 100%; height: 100%; object-fit: contain; background: #0b0b0b; }
.player-message { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #d8d8d8; font-size: 14px; line-height: 1.5; }
.player-info { display: grid; gap: 28px; margin-top: 28px; }
.player-info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.04em; line-height: 1.12; }
.player-info .scenario { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.player-spec { border-top: 1px solid var(--rule); display: grid; }
.player-spec > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.player-spec dt { color: var(--muted); }
.player-spec dd { overflow-wrap: anywhere; }
@media (min-width: 1050px) { .player-info { grid-template-columns: 1.3fr 1fr; gap: 60px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
  .spinner { animation-duration: 2.4s; }
}

/* Chinese headlines render heavier than Inter Light; size them down slightly. */
:lang(zh) .hero h1 { font-size: clamp(2.1rem, 6.4vw, 4.1rem); line-height: 1.12; }
:lang(zh) .statement { line-height: 1.35; }

/* Local navigation for a dataset, like a product bar under the global nav */
.local-nav { position: sticky; top: var(--nav-h); z-index: 40; margin-top: var(--nav-h); height: var(--local-h); background: #ffffffeb; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--rule); }
.local-nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.local-title { font-size: 17px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.local-links { display: flex; align-items: center; gap: 22px; font-size: 13px; color: #525252; }
.local-links a:not(.local-cta):hover, .local-links a[aria-current="page"] { color: #111; }
.local-links a:not(.local-cta) { display: none; }
.local-cta { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: #111; color: #fff; font-size: 12px; white-space: nowrap; transition: background .2s; }
.local-cta:hover { background: #353535; }
@media (min-width: 768px) { .local-links a:not(.local-cta) { display: inline; } }
.local-nav + main .hero, .local-nav + main .library-head, .local-nav + main .state:first-child { padding-top: 64px; }
@media (min-width: 768px) { .local-nav + main .hero, .local-nav + main .library-head { padding-top: 88px; } }

/* Datasets index */
.dataset-list { display: grid; gap: 24px; margin-top: 56px; }
.dataset-card { display: grid; border-top: 1px solid var(--ink); padding-top: 26px; gap: 26px; }
.dataset-card-media { aspect-ratio: 21 / 9; overflow: hidden; background: #fff; }
.dataset-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dataset-card:hover .dataset-card-media img { transform: scale(1.02); }
.dataset-card h3 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: -.045em; line-height: 1.05; }
.dataset-card-body > p:not(.eyebrow) { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.dataset-card-body .eyebrow { margin-bottom: 12px; }
.dataset-card-body .text-link { margin-top: 26px; }
.dataset-card-facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 26px; }
.dataset-card-facts dt { font-size: 32px; font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.dataset-card-facts dt sup { font-size: .55em; vertical-align: top; }
.dataset-card-facts dd { margin-top: 6px; font-size: 13px; color: var(--muted); }
.dataset-card-quiet { border-top-color: var(--rule); }
@media (min-width: 1050px) {
  .dataset-card { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
  .dataset-card-quiet { grid-template-columns: 1fr; padding-left: calc((100% - 56px) * 1.35 / 2.35 + 56px); }
}
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.steps li { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.steps li > span { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 24px; letter-spacing: -.035em; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 420px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } .steps li { border-bottom: 0; } }

/* ---------- Library v2: videos, corpus and specs views ---------- */
.toolbar-tools { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; justify-content: flex-end; }
.select select { height: 36px; border-radius: 999px; border: 1px solid #e2e2e2; background: #fff; padding: 0 30px 0 14px; font-size: 13px; color: #333; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.select select:focus { outline: none; border-color: #111; }
.search { max-width: 240px; }
@media (max-width: 767px) { .toolbar-tools { justify-content: stretch; } .toolbar-tools > * { flex: 1 1 140px; } .select select { width: 100%; } .search { max-width: none; flex-basis: 100%; } }

.grid-status { padding: 26px 0 18px; font-size: 13px; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 20px; }
.video-card { display: grid; gap: 4px; text-align: left; align-content: start; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); margin-bottom: 10px; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.03); }
.thumb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #b5b5b5; }
.duration { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 999px; background: #111111cc; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.video-id { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.video-title { font-size: 16px; letter-spacing: -.015em; line-height: 1.35; }
.video-tags { font-size: 12px; color: var(--faint); line-height: 1.45; }
.video-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.no-results { padding: 40px 0; color: var(--muted); font-size: 15px; }
.button-row.center { justify-content: center; margin: 48px 0 0; }
#videos .docs { padding-top: 110px; }

.view-head { padding-top: 64px; max-width: 900px; }
.view-head h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -.047em; }
.view-head h1 > span { display: block; }
.view-head .lede { margin-top: 24px; color: var(--muted); }
@media (min-width: 768px) { .view-head { padding-top: 88px; } }
#corpus, #specs { padding-bottom: 120px; }
.block { margin-top: 96px; }
.block-head { display: grid; gap: 8px; margin-bottom: 22px; }
.block-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: -.04em; line-height: 1.12; }
.block-head p { font-size: 15px; color: var(--muted); line-height: 1.55; max-width: 620px; }
@media (min-width: 1050px) { .block-head { grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; } }

.domain-list, .scenario-list { border-top: 1px solid var(--rule); }
.domain, .scenario { border-bottom: 1px solid var(--rule); }
.domain summary, .scenario summary { list-style: none; cursor: pointer; }
.domain summary::-webkit-details-marker, .scenario summary::-webkit-details-marker { display: none; }
.domain summary { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px 14px; align-items: center; padding: 18px 0; }
.domain summary:hover, .scenario summary:hover { background: #fafafa; }
.domain-index { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.domain-name strong, .scenario summary strong { display: block; font-weight: 400; font-size: 17px; letter-spacing: -.015em; }
.domain-name small, .scenario summary small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.domain-bar { grid-column: 2 / -1; grid-row: 2; height: 4px; background: #efefef; border-radius: 4px; overflow: hidden; }
.domain-bar i { display: block; height: 100%; width: var(--w); background: #141414; border-radius: 4px; }
.domain-hours { text-align: right; font-variant-numeric: tabular-nums; }
.domain-hours strong { display: block; font-weight: 400; font-size: 16px; }
.domain-hours small { font-size: 12px; color: var(--muted); }
@media (min-width: 768px) {
  .domain summary { grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, 1.4fr) 120px; gap: 24px; }
  .domain-bar { grid-column: auto; grid-row: auto; }
}
.task-chips, .scenario-items { list-style: none; margin: 0; padding: 0 0 22px 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.task-chips li, .scenario-items li { font-size: 12px; color: #444; padding: 6px 11px; border: 1px solid #e4e4e4; border-radius: 999px; background: #fff; }
.scenario summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.scenario summary b { font-weight: 300; font-size: 26px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.scenario-items { padding-left: 0; }
.domain[open] summary .domain-index, .scenario[open] summary strong { color: #111; }

.record-grid { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.record-grid > div { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.record-grid dt { font-size: 13px; color: var(--muted); }
.record-grid dd { font-size: 14px; color: var(--muted); line-height: 1.55; }
.record-grid dd strong { display: block; font-weight: 300; font-size: 28px; letter-spacing: -.045em; color: var(--ink); margin-bottom: 6px; }
@media (min-width: 768px) { .record-grid { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1050px) { .record-grid { grid-template-columns: repeat(4, 1fr); } .record-grid > div { border-bottom: 0; padding-right: 20px; } }

.cta-band { margin-top: 110px; padding: 48px 0 0; border-top: 1px solid var(--ink); display: grid; gap: 28px; }
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.045em; line-height: 1.1; max-width: 760px; margin-top: 4px; }
.cta-band p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 620px; }
.cta-band .button { justify-self: start; }
@media (min-width: 1050px) { .cta-band { grid-template-columns: 1fr auto; align-items: end; } }

.local-tabs a[aria-current="page"] { color: #111; box-shadow: inset 0 -2px 0 #111; padding-block: 16px; }
.local-tabs a:not(.local-cta) { display: inline !important; }
@media (max-width: 767px) {
  .toolbar { position: static; }
  .task-chips { padding-left: 0; }
}

/* Upside-down recordings are displayed rotated 180 degrees */
.video-thumb.is-rot180 img { transform: rotate(180deg); }
.video-card:hover .video-thumb.is-rot180 img { transform: rotate(180deg) scale(1.03); }
.player-stage.is-rot180 video { transform: rotate(180deg); }

/* Player controls, drawn outside the video so they never rotate */
.player-stage video { cursor: pointer; }
.player-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 28px 16px 12px; background: linear-gradient(transparent, #000000b3); color: #fff; opacity: 1; transition: opacity .25s; }
.player-stage.is-playing:not(:hover):not(:focus-within) .player-controls { opacity: 0; }
.pc-button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; flex: none; }
.pc-button:hover { background: #ffffff22; }
.pc-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pc-icon-pause, .player-stage.is-playing .pc-icon-play { display: none; }
.player-stage.is-playing .pc-icon-pause { display: inline; }
.pc-icon-muted, .player-stage.is-muted .pc-icon-sound { display: none; }
.player-stage.is-muted .pc-icon-muted { display: inline; }
.pc-time { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }
.pc-seek { flex: 1; min-width: 0; height: 4px; appearance: none; -webkit-appearance: none; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to right, #fff var(--p, 0%), #ffffff4d var(--p, 0%)); }
.pc-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.pc-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.pc-seek:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.player-stage:fullscreen { display: grid; place-items: center; background: #000; }
.player-stage:fullscreen video { width: 100vw; height: 100vh; }
@media (max-width: 560px) { .pc-time#pc-duration { display: none; } .player-controls { gap: 6px; padding-inline: 8px; } }
