/* Leap Biotech — site styles
   Palette taken from the logo (blue figure, yellow cape, green bar) and the
   reef itself (deep water, the magenta of a crown-of-thorns starfish). */

:root {
  --bg: #f2f6f5;
  --surface: #ffffff;
  --surface-2: #e6efee;
  --ink: #0b2230;
  --ink-2: #3f5a66;
  --line: #d3e1e0;
  --blue: #1b66ad;
  --blue-soft: #d9e8f6;
  --green: #447f25;
  --green-soft: #e1efd6;
  --sun: #f2b21b;
  --sun-ink: #1d1a0e;
  --pest: #ad2659;
  --pest-soft: #f7dfe8;
  --deep: #0b2230;
  --deep-ink: #e3eeed;

  --font-display: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem);

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07161e;
    --surface: #0d2330;
    --surface-2: #112c3a;
    --ink: #e3eeed;
    --ink-2: #9db6bd;
    --line: #1f3b48;
    --blue: #72b1ee;
    --blue-soft: #14324a;
    --green: #93c96f;
    --green-soft: #183322;
    --pest: #f07aa4;
    --pest-soft: #3a1726;
    --deep: #040f15;
    --deep-ink: #d6e5e4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07161e;
  --surface: #0d2330;
  --surface-2: #112c3a;
  --ink: #e3eeed;
  --ink-2: #9db6bd;
  --line: #1f3b48;
  --blue: #72b1ee;
  --blue-soft: #14324a;
  --green: #93c96f;
  --green-soft: #183322;
  --pest: #f07aa4;
  --pest-soft: #3a1726;
  --deep: #040f15;
  --deep-ink: #d6e5e4;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 750; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--sun-ink); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.eyebrow, .small-h, .meta, .role, .src, .step, .pill, .label, .crumbs, .updated, dt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}
.eyebrow { color: var(--green); font-weight: 500; }
.eyebrow a { color: inherit; text-decoration: none; }
.small-h { color: var(--ink-2); font-weight: 500; margin: 0 0 10px; }
.meta { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 0.85rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.inline-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 10px; }
.brand img { width: 96px; height: auto; }
.primary { display: flex; align-items: center; gap: 24px; }
.primary ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.primary a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.primary a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.primary .btn { padding: 9px 16px; font-size: 0.95rem; }
.mobile-nav { display: none; }
@media (max-width: 1020px) {
  .primary { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { display: block; width: 22px; height: 2px; background: var(--ink); }
  .mobile-panel { position: absolute; right: 0; top: 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; min-width: 230px; box-shadow: 0 12px 30px rgb(0 0 0 / .12); }
  .mobile-panel ul { list-style: none; margin: 0; padding: 0; }
  .mobile-panel a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; }
}

/* hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(28px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { max-width: 17ch; }
.hero .lede { max-width: 58ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fig { margin: 0; display: grid; gap: 10px; }
.hero-cap { color: var(--ink-2); font-size: 0.9rem; }
.hero-fig img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.specimen {
  position: absolute; left: -24px; bottom: 0; width: min(330px, 88%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: 0 18px 40px rgb(4 20 28 / .18);
  font-size: 0.9rem;
}
.spec-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.specimen dl { margin: 0; display: grid; gap: 6px; }
.specimen dl div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: baseline; }
.specimen dt { color: var(--ink-2); font-size: 0.7rem; }
.specimen dd { margin: 0; }
.specimen .pest { color: var(--pest); font-weight: 600; }
.specimen .good { color: var(--green); font-weight: 600; }

/* facts strip */
.facts { background: var(--deep); color: var(--deep-ink); padding-block: 36px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.fact { display: grid; gap: 6px; align-content: start; border-left: 1px solid rgb(255 255 255 / .16); padding-left: 18px; }
.fact .num { font-family: var(--font-display); font-weight: 750; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.fact .num { color: #ff9dc0; }
.fact .src a { color: inherit; }
.fact .src { color: rgb(255 255 255 / .55); font-size: 0.7rem; }

/* sections */
.band { padding-block: clamp(48px, 7vw, 88px); }
.band + .band { border-top: 1px solid var(--line); }
.section-h { max-width: none; margin-top: 10px; margin-bottom: 32px; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-top .section-h { margin-bottom: 0; }

.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.split-col { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.split-col:nth-child(1) h3 { color: var(--pest); }
.split-col:nth-child(2) h3 { color: var(--blue); }
.split-col.join { background: var(--green-soft); border-color: transparent; }
.split-col.join h3 { color: var(--green); }
.split-col p { color: var(--ink-2); }

.chain-band { background: var(--surface-2); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: none; }
.chain li { display: grid; gap: 8px; align-content: start; padding: 4px 24px 4px 0; position: relative; }
.chain li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.chain .step { color: var(--blue); font-size: 0.85rem; }
.chain p { color: var(--ink-2); }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.product-body { display: grid; gap: 10px; align-content: start; padding: 18px; }
.product-body h3 a { color: var(--ink); text-decoration: none; }
.product-body h3 a:hover { color: var(--blue); }
.product-body p { color: var(--ink-2); font-size: 0.95rem; }
.pill { display: inline-block; justify-self: start; padding: 3px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 500; white-space: nowrap; }
.pill-validated { background: var(--green-soft); color: var(--green); }
.pill-prototype, .pill-development { background: var(--blue-soft); color: var(--blue); }
.pill-early { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

/* people */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.people.single { grid-template-columns: minmax(0, 1fr); margin-block: 32px 48px; }
.person { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; }
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.person > div { display: grid; gap: 6px; }
.person .role { color: var(--green); }
.person h3 a { color: var(--ink); text-decoration: none; }
.person .headline { color: var(--ink-2); }
.focus { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 0.95rem; }

/* posts */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: grid; gap: 14px; align-content: start; }
.post-card > div { display: grid; gap: 8px; }
.post-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p:not(.meta) { color: var(--ink-2); font-size: 0.97rem; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 32px; }
.topics .small-h { margin: 0 6px 0 0; }
.chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.pager { display: flex; gap: 20px; justify-content: center; margin-top: 40px; font-family: var(--font-mono); font-size: 0.85rem; }

/* page head + prose */
.page-head { padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); max-width: none; text-wrap: wrap; }
.page-head .lede { font-size: var(--step-1); color: var(--ink-2); max-width: none; line-height: 1.5; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--ink-2); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 56px; }
.prose { max-width: 70ch; display: grid; gap: 18px; }
.prose.narrow { margin-block: 48px 24px; }
.prose h2 { font-size: var(--step-2); margin-top: 22px; }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sun); }
.lede-sm { font-size: var(--step-1); color: var(--ink-2); }
.lead-fig { margin: 0 0 8px; }
.lead-fig img { width: 100%; border-radius: var(--radius); max-height: 460px; object-fit: cover; }
.side-fig { margin: 0 0 24px; }
.side-fig img { border-radius: var(--radius); width: 100%; }
.updated { color: var(--ink-2); margin-top: 16px; text-transform: none; letter-spacing: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; background: var(--surface-2); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
.status-table { min-width: 560px; }

.toc { position: sticky; top: 100px; font-size: 0.93rem; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); }

.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 100px; }
.glance dl { margin: 0; display: grid; gap: 12px; }
.glance dl div { display: grid; gap: 2px; }
.glance dt { color: var(--ink-2); font-size: 0.7rem; }
.glance dd { margin: 0; font-size: 0.95rem; }

.sources { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 12px; font-size: 0.92rem; }
.sources ol { padding-left: 20px; }

.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 18px; margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.author-box .small-h { margin-bottom: 4px; }

/* faq */
.faq { display: grid; gap: 8px; }
.faq section { display: grid; gap: 8px; margin-bottom: 24px; }
.faq section h2 { font-size: var(--step-2); margin-bottom: 8px; }
.qa { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); max-width: none; }
.qa h3 { font-size: 1.15rem; }
.qa p { color: var(--ink-2); }
.line-art { opacity: .85; width: 100%; max-width: 280px; justify-self: center; align-self: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .line-art { filter: invert(1); opacity: .5; } }
:root[data-theme="dark"] .line-art { filter: invert(1); opacity: .5; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-bottom: 72px; align-items: start; }
.contact-card { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.contact-card h2 { margin: 0; }
.contact-card p { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px !important; }
.contact-form-h { margin: 0 0 4px; }
.text-link { color: var(--blue, #1b66ad); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nowrap { white-space: nowrap; }
.copy-status { min-height: 1.4em; color: var(--ink2, #3b4a52); }
.contact-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 12px 0 0; color: var(--ink2, #3b4a52); min-height: 1.4em; }
.contact-side { display: grid; gap: 8px; }
.contact-side .small-h { margin-top: 16px; }
.big-link { font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; word-break: break-all; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plain .pill { margin-left: 6px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* cta band */
.cta-band { background: var(--deep); color: var(--deep-ink); padding-block: clamp(40px, 6vw, 72px); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner > div { display: grid; gap: 10px; max-width: 60ch; }
.cta-band h2 { color: #fff; font-size: var(--step-2); }
.cta-band p { color: rgb(227 238 237 / .8); }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 56px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.foot-about { display: grid; gap: 14px; align-content: start; max-width: 42ch; color: var(--ink-2); }
.foot-logo { width: 96px; }
.foot-h { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.foot-contact .label { color: var(--ink-2); display: inline-block; min-width: 78px; font-size: 0.7rem; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.85rem; }

/* responsive */
@media (max-width: 1020px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .toc, .glance { position: static; }
  .toc { display: none; }
  .split { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .chain { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .chain li:nth-child(3) { border-left: 0; padding-left: 0; }
  .post-list { grid-template-columns: 1fr 1fr; }
  .specimen { left: 12px; }
  .line-art { display: none; }
}
@media (max-width: 560px) {
  .product-grid, .people, .post-list, .chain, .foot-grid { grid-template-columns: 1fr; }
  .chain li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .person { grid-template-columns: 84px 1fr; }
  .person img { width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-2); margin-top: 8px; }
.chain-note { margin-top: 32px; max-width: none; font-size: var(--step-1); line-height: 1.5; }
.chain-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); margin-bottom: 6px; }
.hero-video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); display: block; }

/* full-bleed hero with background video */
.hero-full { position: relative; overflow: hidden; padding-block: 0; min-height: clamp(448px, 69vh, 688px); display: grid; align-items: center; background: #06202c; color: #fff; }
.hero-full .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5,20,29,0.62) 0%, rgba(5,20,29,0.45) 38%, rgba(5,20,29,0) 58%),
  linear-gradient(0deg, rgba(5,20,29,0.55) 0%, rgba(5,20,29,0) 30%); }
.hero-full-inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(36px, 5vw, 70px); }
.hero-full .hero-copy { max-width: 560px; }
.hero-full .lede { max-width: 44ch; }
.hero-full h1 { color: #fff; max-width: 16ch; font-size: calc(var(--step-4) * 0.8); text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero-full .lede { color: rgba(235,244,247,0.92); }
.btn-light { color: #fff; border-color: rgba(255,255,255,0.85); }
.btn-light:hover { background: rgba(255,255,255,0.12); }
.hero-credit { position: absolute; right: var(--gutter); bottom: 16px; z-index: 1; margin: 0; font-size: 0.8rem; color: rgba(235,244,247,0.75); }
@media (max-width: 860px) {
  .hero-shade { background: linear-gradient(180deg, rgba(5,20,29,0.55) 0%, rgba(5,20,29,0.82) 55%, rgba(5,20,29,0.9) 100%); }
  .hero-full .hero-bg { object-position: 82% 50%; }
  .hero-credit { left: var(--gutter); right: auto; }
}
.facts-inline { border-radius: var(--radius); padding: 32px clamp(20px, 3vw, 36px); margin-bottom: 32px; }

/* animated graphics */
.anim-video { margin: 0 0 32px; }
.anim-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; object-fit: cover; }
.chain-band .anim-video { margin-bottom: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.two-problems .section-h { max-width: none; text-wrap: wrap; }
.anim-wide video { aspect-ratio: 32 / 9; background: #000; }
.anim-process video { aspect-ratio: 8 / 3; background: #000; width: 100%; display: block; border-radius: var(--radius); }

/* ----- topic bands (inner pages): sections alternate between two background colours ----- */
:root { --topic-a: #ffffff; --topic-b: #eef1f2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --topic-a: #0d2330; --topic-b: #132733; } }
:root[data-theme="dark"] { --topic-a: #0d2330; --topic-b: #132733; }
.page-head:has(+ .topic) { margin-bottom: 0; }
.topic { padding-block: clamp(36px, 5.5vw, 68px); }
.topic-a { background: var(--topic-a); }
.topic-b { background: var(--topic-b); }
.topic-end { padding-block: 28px 44px; }
.topic .prose > h2:first-child { margin-top: 0; }
.topic .content-grid { padding-bottom: 0; }
.topic .glance { position: static; }
.topic-end .sources { border-top: 0; padding-top: 0; margin-top: 0; }
.topic .table-wrap { background: var(--surface); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.jump .small-h { margin-right: 4px; }
.topic .prose.intro + .lead-fig { margin-top: 22px; }
.topic .lead-fig { margin: 0; }
.topic .lead-fig img { max-height: 520px; }
.topic-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.topic-split .prose { max-width: none; }
.section-video { margin: 0; }
.section-video video { aspect-ratio: 1650 / 1200; }
@media (max-width: 860px) { .topic-split { grid-template-columns: 1fr; } }
/* text with nothing beside it uses the full width of its section */
.topic > .wrap > .prose { max-width: none; }
.faq-wrap { padding-bottom: 56px; }
.anim-header { background: #000; }
.anim-header .anim-video { margin: 0; }
.anim-header .anim-video video { aspect-ratio: 1920 / 990; border-radius: 0; max-height: calc(100vh - 82px); object-fit: cover; }
.side-fig.anim-video video { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.product-anim { margin: 0; }
.product-anim video { aspect-ratio: 912 / 600; border-radius: var(--radius); background: #fefefe; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); }
.layout-product .side-fig img { max-width: 210px; margin-left: auto; }

.other-products h2 { font-size: var(--step-2); margin: 0 0 24px; }
.layout-product .side-fig { margin: 0; }
.intro-full { margin-bottom: 28px; }
.intro-full .lede-sm { margin: 0; max-width: none; }
/* Products page: cards share the full width instead of leaving empty columns */
.layout-products .product-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.layout-products .product-img img { aspect-ratio: 16 / 10; }
.layout-products .product-body { padding: 24px 26px 28px; gap: 12px; }
.layout-products .product-body h3 { font-size: var(--step-2); }
.layout-products .product-body p { font-size: var(--step-0); }
