/* GospelArc website — the only stylesheet. No web fonts, no external resources.
   Palette from the app (GospelArc/Core/Theme/Theme.swift): warm cream canvas, navy ink, the copper arc, a teal route;
   deep navy in dark mode. The four source-label colours are the app's and always come with a symbol and words.
   Contrast pairs are verified by tools/check.py. */

:root {
  color-scheme: light dark;
  --c-bg: #F6F0E2;
  --c-surface: #FCF8EE;
  --c-surface-alt: #EFE6D2;
  --c-text: #15233B;
  --c-text-muted: #4F5868;
  --c-border: #D5C8AC;
  --c-border-strong: #9C8C6C;
  --c-accent: #8F4710;
  --c-accent-hover: #6F3505;
  --c-on-accent: #FFFFFF;
  --c-accent-soft: #F3E2BE;
  --c-route: #1F6467;
  --c-focus: #8F4710;
  --c-arc-line: rgba(143, 71, 16, 0.16);
  --c-hero-top: #EFE3CA;
  --c-pill-fg: #6F3505;
  --c-pill-bg: #F3E2BE;
  --c-attestation-fg: #2C5282;
  --c-attestation-bg: #E4EAF2;
  --c-archaeology-fg: #755610;
  --c-archaeology-bg: #F1E7CF;
  --c-testimony-fg: #6A3A85;
  --c-testimony-bg: #EEE3F1;
  --c-interpretation-fg: #8A2F3E;
  --c-interpretation-bg: #F5E3E3;
  --c-bezel: #10141C;
  --shadow-lg: 0 28px 60px -24px rgba(21, 35, 59, 0.38), 0 0 0 1px rgba(21, 35, 59, 0.06);
  --shadow-sm: 0 1px 2px rgba(21, 35, 59, 0.07);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 1rem;
  --radius-sm: 0.625rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 72ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #0E1726;
    --c-surface: #17233A;
    --c-surface-alt: #202E49;
    --c-text: #F2EAD8;
    --c-text-muted: #B4B5B2;
    --c-border: #34425E;
    --c-border-strong: #5F7090;
    --c-accent: #E8A25A;
    --c-accent-hover: #FFC285;
    --c-on-accent: #0E1726;
    --c-accent-soft: #3A3320;
    --c-route: #6FC3C4;
    --c-focus: #FFC285;
    --c-arc-line: rgba(232, 162, 90, 0.14);
    --c-hero-top: #132036;
    --c-pill-fg: #FFC285;
    --c-pill-bg: #3A3320;
    --c-attestation-fg: #8FB8E8;
    --c-attestation-bg: #1B2B45;
    --c-archaeology-fg: #D9B866;
    --c-archaeology-bg: #2E2918;
    --c-testimony-fg: #C9A2E0;
    --c-testimony-bg: #2A2340;
    --c-interpretation-fg: #E79BA8;
    --c-interpretation-bg: #35212D;
    --c-bezel: #000000;
    --shadow-lg: 0 28px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: 0; }

p, ul, ol, dl, table, figure, blockquote, address { margin: 0 0 1rem; }
ul, ol { padding-inline-start: 1.25rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 650; }

a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--c-surface-alt);
  border-radius: 0.3rem;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
  /* Short identifiers such as eng-web-c: Chrome broke the line at their hyphens on a phone ("eng-web-" / "c"). */
  hyphens: none;
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

::selection { background: var(--c-accent-soft); color: var(--c-text); }

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: calc(48rem + 2 * var(--gutter)); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--c-on-accent); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4rem;
  padding-block: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--c-text);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1875rem;
  text-decoration: none;
}
.brand:hover { color: var(--c-text); }
.brand-icon { width: 2rem; height: 2rem; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li + li { margin: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-weight: 550;
  font-size: 0.975rem;
  text-decoration: none;
}
.site-nav a:hover { background: var(--c-surface-alt); color: var(--c-text); }
/* Up to four links on one row down to 320 px, also with 112.5 % text at 360 px (tools/shots.py fails a page whose nav
   wraps) */
@media (max-width: 420px) {
  .site-nav ul { gap: 0; }
  .site-nav a { padding-inline: 0.5rem; }
}
@media (max-width: 380px) {
  .site-nav a { padding-inline: 0.35rem; font-size: 0.875rem; }
}
.site-nav a[aria-current="page"] {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* ---------- Buttons, pills, notices ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn-primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.btn-secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border-strong); }
.btn-secondary:hover { background: var(--c-surface-alt); color: var(--c-text); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--c-pill-bg);
  color: var(--c-pill-fg);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
}
.status-dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.notice {
  padding: 0.9rem 1.1rem;
  border-inline-start: 4px solid var(--c-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--c-surface-alt);
}

.note {
  margin-top: auto;
  padding-inline-start: 0.8rem;
  border-inline-start: 3px solid var(--c-border-strong);
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.meta { color: var(--c-text-muted); font-size: 0.9375rem; }
.lead { color: var(--c-text-muted); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; max-width: 62ch; }

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--c-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 6rem);
  background: linear-gradient(180deg, var(--c-hero-top) 0%, var(--c-bg) 100%);
  isolation: isolate;
}
/* Concentric copper arcs (the app's route arc), drawn by build.py and used as a mask. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--c-arc-line);
  -webkit-mask: url("arcs.e93c01de0a.svg") center / cover no-repeat;
  mask: url("arcs.e93c01de0a.svg") center / cover no-repeat;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.hero-icon {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.25rem;
  border-radius: 22.5%;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 599px) {
  .hero-icon { width: 4rem; height: 4rem; margin-bottom: 1rem; }
}
.hero-title { margin-bottom: 1.25rem; }
.hero-name {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--c-accent);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0;
}
.hero-tagline {
  display: block;
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero-lead {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  color: var(--c-text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}
.hero-note { max-width: 38rem; color: var(--c-text-muted); font-size: 0.9375rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  margin-bottom: 0;
}
.hero-visual { display: flex; justify-content: center; }
.hero-appicon {
  width: min(20rem, 70vw);
  border-radius: 22.5%;
  box-shadow: var(--shadow-lg);
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head .lead { margin-bottom: 0; }

/* ---------- Principle: the four source labels ---------- */

.principle {
  background: var(--c-surface);
  border-block: 1px solid var(--c-border);
}
.principle-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) {
  .principle-with-shot { grid-template-columns: minmax(0, 1fr) clamp(15rem, 24vw, 18.5rem); }
}
.principle-media { width: min(17rem, 72vw); justify-self: center; }
.legend-title { margin-top: 0; font-size: 1rem; font-family: var(--font); font-weight: 700; }
.source-labels {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .source-labels { grid-template-columns: 1fr 1fr; }
}
.source-labels li + li { margin: 0; }
.source-label {
  padding: 1rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
}
.source-label-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
  line-height: 1.3;
}
.source-label-icon { display: inline-grid; flex: none; place-items: center; }
.source-label-icon .icon { width: 1.4rem; height: 1.4rem; }
.source-label-text { margin: 0; color: var(--c-text); font-size: 0.9375rem; line-height: 1.5; }
.label-historicalAttestation { background: var(--c-attestation-bg); color: var(--c-attestation-fg); }
.label-archaeologicalContext { background: var(--c-archaeology-bg); color: var(--c-archaeology-fg); }
.label-reportedTestimony { background: var(--c-testimony-bg); color: var(--c-testimony-fg); }
.label-catholicInterpretation { background: var(--c-interpretation-bg); color: var(--c-interpretation-fg); }
.quote {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  border-inline-start: 4px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--c-surface-alt);
}
.quote figcaption { margin-bottom: 0.4rem; color: var(--c-text-muted); font-size: 0.9375rem; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  color: var(--c-accent);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
}
.principle-perspective { max-width: var(--measure); color: var(--c-text-muted); }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-grid li + li { margin: 0; }
@media (min-width: 760px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
.feature {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.feature-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.feature-body > p:not(.note):not(.stat):not(.feature-link) { color: var(--c-text-muted); }
.feature-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.feature-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.feature-icon .icon { width: 1.4rem; height: 1.4rem; }
.feature h3 { margin: 0; }
.feature-link { font-weight: 600; }
.feature .note { margin-bottom: 0; }
.feature .stat + .note { margin-top: 0.25rem; }
.feature .note + .feature-link, .feature .stat + .feature-link { margin-top: 0.5rem; margin-bottom: 0; }

/* Cards with a screenshot (or a screen recording): full width, the phone beside the text (alternating sides); on narrow
   screens the phone follows the text. */
.feature .feature-media { width: 100%; margin: 1.5rem 0 0; }
.feature .feature-media .screen-video,
.feature .feature-media img { width: min(66%, 13rem); margin-inline: auto; }
.feature .feature-media > figcaption { justify-content: center; text-align: center; }
.feature-media:has(noscript img) > video { display: none; } /* without JavaScript: the poster image instead */
@media (min-width: 760px) {
  .feature-has-media {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 26vw, 20rem);
    column-gap: clamp(1.75rem, 5vw, 4.5rem);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }
  .feature-has-media .feature-body { grid-column: 1; grid-row: 1; max-width: 42rem; }
  .feature-has-media .feature-media { grid-column: 2; grid-row: 1; margin: 0; }
  .feature .feature-media .screen-video,
  .feature .feature-media img { width: clamp(11rem, 19vw, 14rem); }
  .feature-has-media.feature-media-start { grid-template-columns: clamp(15rem, 26vw, 20rem) minmax(0, 1fr); }
  .feature-media-start .feature-body { grid-column: 2; }
  .feature-media-start .feature-media { grid-column: 1; }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--c-surface-alt);
}
.stat-label {
  color: var(--c-text-muted);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-value { color: var(--c-text); font-size: 1.125rem; font-weight: 700; }

/* ---------- Gallery ---------- */

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.carousel-nav { display: flex; gap: 0.6rem; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  display: inline-grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.carousel-btn:hover { background: var(--c-surface-alt); }
.carousel-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.carousel-btn .icon { width: 1.35rem; height: 1.35rem; }
.gallery-section { overflow-x: clip; padding-top: 0; }
.carousel {
  --carousel-inset: max(var(--gutter), calc((100vw - 72rem) / 2 + var(--gutter)));
  margin-inline: calc(50% - 50vw);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--carousel-inset);
  scrollbar-width: thin;
}
.carousel:focus-visible { outline-offset: -3px; }
.carousel-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(14rem, 66vw, 17.5rem);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  width: max-content;
  margin: 0;
  padding: 0.75rem var(--carousel-inset) 1.5rem;
  list-style: none;
}
.carousel .phone img { background: var(--c-surface-alt); } /* a light screen, not a black one, while it loads */
.carousel-list li + li { margin: 0; }
.carousel-item { scroll-snap-align: start; }
.phone { margin: 0; }
.phone picture { display: block; }
.phone img {
  width: 100%;
  border: 0.45rem solid var(--c-bezel);
  border-radius: 2rem;
  background: var(--c-bezel);
  box-shadow: var(--shadow-lg);
}
.phone figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  margin-top: 0.85rem;
  font-size: 0.9375rem;
}
.shot-caption { font-weight: 650; }
.phone-hero { width: min(18.5rem, 78vw); }
.phone-hero figcaption, .principle-media figcaption { justify-content: center; text-align: center; }

/* Screen recordings in the phone frame: same bezel as the screenshots. The pause button sits in the caption;
   static/site.js shows it. */
.screen-video {
  display: block;
  width: 100%;
  height: auto;
  border: 0.45rem solid var(--c-bezel);
  border-radius: 2rem;
  background: var(--c-bezel);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.phone figcaption.video-caption {
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
}
.video-caption-text { display: grid; gap: 0.2rem; min-width: 0; text-align: start; overflow-wrap: anywhere; text-wrap: pretty; }
.video-toggle {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover { background: var(--c-surface-alt); }
.video-toggle .icon { width: 1.05rem; height: 1.05rem; }
.video-toggle .icon-play,
.video-toggle.is-paused .icon-pause { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-flag { color: var(--c-text-muted); font-size: 0.8125rem; font-weight: 650; }
.download-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-basis: 100%;
  min-height: 2.75rem;
  font-size: 0.875rem;
}
.download-link .icon { flex: none; width: 1.1rem; height: 1.1rem; margin-inline-end: 0.35rem; }

/* ---------- Promo video (opens the home page when published) ---------- */

.hero-promo {
  padding-block: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 2.5vw, 1.75rem);
  background: var(--c-hero-top);
}
.promo { margin: 0; }
.promo-frame {
  position: relative;
  width: min(100%, calc((100vh - 7.5rem) * 16 / 9));
  width: min(100%, calc((100svh - 7.5rem) * 16 / 9));
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-bezel);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 700px) {
  .promo-tall { display: none !important; }
}
@media (max-width: 699px) {
  .promo-wide { display: none !important; }
  .promo-frame {
    width: min(100%, 22rem, calc((100vh - 9.5rem) * 9 / 16));
    width: min(100%, 22rem, calc((100svh - 9.5rem) * 9 / 16));
  }
}
.promo-variant { position: relative; }
.promo-video { display: block; width: 100%; height: auto; background: var(--c-bezel); }
.promo-start { position: absolute; inset: 0; display: block; color: #FFFFFF; text-decoration: none; }
.promo.is-live .promo-start { display: none; }
.promo-play {
  position: absolute;
  inset-inline-start: 6.9%;
  bottom: clamp(0.6rem, 2.5%, 1.25rem);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.1rem 0.4rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(14, 23, 38, 0.86);
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: background-color 0.15s ease;
}
.promo-play-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #8F4710;
  color: #FFFFFF;
}
.promo-play-icon .icon { width: 1.2rem; height: 1.2rem; margin-inline-start: 0.12rem; }
.promo-start:hover .promo-play { background: rgba(14, 23, 38, 0.97); }
.promo-start:focus-visible { outline-offset: -4px; }
@media (max-width: 699px) {
  .promo-play { inset-inline-start: 50%; transform: translateX(-50%); white-space: nowrap; }
}
.promo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  text-align: center;
}
.promo-facts { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--c-text); font-weight: 650; }
.promo-facts .icon { width: 1.2rem; height: 1.2rem; }
.promo-note { flex-basis: 100%; }
.hero-promo .transcript { max-width: 48rem; margin-inline: auto; margin-top: 1rem; }
.hero-after-promo { padding-top: clamp(1.5rem, 4vw, 3rem); }
.transcript {
  margin-top: 1.75rem;
  border-block: 1px solid var(--c-border);
}
.transcript summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.25rem 0.6rem 0;
  color: var(--c-accent);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}
.transcript[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.transcript-compact { margin-top: 0.75rem; font-size: 0.9375rem; }
.transcript-body { max-width: var(--measure); padding-bottom: 1rem; }
.transcript-body > p { color: var(--c-text-muted); }
.transcript-body h3 { font-size: 1rem; font-family: var(--font); }
.transcript-lines { padding: 0; list-style: none; }
.transcript-lines li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.75rem; }
.transcript-lines li + li { margin-top: 0.6rem; }
.transcript-time { color: var(--c-text-muted); font-variant-numeric: tabular-nums; font-weight: 650; }
.transcript-quote { font-weight: 600; }
.transcript-shows { color: var(--c-text-muted); }

/* ---------- Feature videos: Videos page, home strip, card links ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chips li + li { margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.chip:hover { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-text); }
.chip-meta { color: var(--c-text-muted); font-weight: 500; white-space: nowrap; }
.chip-all { color: var(--c-accent); }
.video-strip { max-width: 48rem; margin: 1.25rem auto 0; }
@media (max-width: 699px) {
  .video-strip .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.4rem 2.5rem;
    margin-inline: -0.4rem;
    padding: 0.4rem 0.4rem 0.6rem;
    scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  }
  .video-strip .chips li { flex: none; scroll-snap-align: start; }
  .video-strip .chips::after { content: ""; flex: none; width: 2rem; }
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.video-strip-title, .film-facts { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.6rem; font-weight: 700; }
.video-strip-title .icon, .film-facts .icon, .film-link .icon { flex: none; width: 1.2rem; height: 1.2rem; }
.film-link a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; }
.video-index { margin-top: 1.5rem; }
.film { padding-top: clamp(2rem, 5vw, 3.5rem); }
.film + .film { margin-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 1px solid var(--c-border); }
.film-facts { color: var(--c-text-muted); font-weight: 650; }
.film-summary, .videos-disclosure { max-width: var(--measure); }
.film-player .promo-start { position: relative; }
.film-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; margin: 0.5rem 0 0; }
.film .transcript { margin-top: 1rem; }
.transcript-edits { color: var(--c-text-muted); }
@media (min-width: 700px) {
  .film-player .promo-frame { max-width: 56rem; margin-inline: 0; }
  .film-player .promo-caption, .film-downloads { justify-content: flex-start; text-align: start; }
}

/* ---------- Where it stands ---------- */

.status-section { background: var(--c-surface); border-block: 1px solid var(--c-border); }
.status-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.status-grid li + li { margin: 0; }
.status-item {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
}
.status-item p { margin: 0; color: var(--c-text-muted); font-size: 0.975rem; }
.status-item .status-item-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
  color: var(--c-text);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}
.status-icon { display: inline-grid; flex: none; place-items: center; color: var(--c-accent); }
.status-icon .icon { width: 1.35rem; height: 1.35rem; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--c-border); margin-bottom: 1.5rem; }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq summary {
  position: relative;
  padding: 1.05rem 2.25rem 1.05rem 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  inset-inline-end: 0.25rem;
  top: 0.9rem;
  color: var(--c-accent);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq details p { max-width: var(--measure); color: var(--c-text-muted); }
.more-link { font-weight: 650; margin: 0; }
.feature-link a,
.more-link a,
.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* ---------- Inner pages ---------- */

.page { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem); }
.page-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { margin-bottom: 0.5rem; }
.page-head .lead { margin-bottom: 0.75rem; }
.page section { margin-bottom: 2.5rem; }

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.toc li + li { margin: 0; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 0.9rem;
  text-decoration: none;
}
.toc a:hover { border-color: var(--c-accent); color: var(--c-accent); }

.plain-list { padding: 0; list-style: none; }
.plain-list li { max-width: var(--measure); color: var(--c-text-muted); }
.plain-list li + li { margin-top: 0.6rem; }

/* Prose (privacy, terms, legal notice) */
.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); scroll-margin-top: 1rem; }
.prose h3 { margin-top: 1.75rem; }
.prose .toc { max-width: none; }
.prose dt { font-weight: 650; }
.prose dd { margin: 0.15rem 0 0.75rem; color: var(--c-text-muted); }

/* Contact */
.contact-card {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  font-style: normal;
}
.contact-name { font-weight: 700; }
.contact-label { color: var(--c-text-muted); }

/* 404 */
.not-found { text-align: center; }
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  background: var(--c-accent-soft);
  color: var(--c-accent);
}
.empty-icon .icon { width: 1.75rem; height: 1.75rem; }
.not-found .empty-icon { margin-inline: auto; }
.not-found .lead { margin-inline: auto; }
.link-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.5rem; font-weight: 600; }
.link-list li + li { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-alt);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 2rem 1.5rem; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
}
.footer-brand img { width: 1.75rem; height: 1.75rem; }
.footer-tagline { margin-bottom: 0.75rem; color: var(--c-text-muted); }
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--c-pill-fg);
  font-weight: 650;
}
.footer-review, .footer-independence { max-width: 56ch; color: var(--c-text-muted); }
.footer-heading {
  margin-bottom: 0.25rem;
  color: var(--c-text-muted);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--c-text);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--c-accent); text-decoration: underline; }
.site-footer nav a[aria-current] { color: var(--c-accent); font-weight: 650; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  /* Looping recordings get no source with reduced motion (poster only), so there is nothing to pause. */
  .video-toggle { display: none !important; }
}

@media print {
  .site-header nav, .site-footer nav, .skip-link, .hero::before, .video-toggle, .carousel-nav { display: none; }
  .hero, .principle, .status-section, .site-footer { background: none; }
}
