/* ==========================================================================
   Boston Vision — Vitreous Opacity Center of Excellence
   Mockup stylesheet. Palette is PLACEHOLDER — swap for Boston Vision brand.
   ========================================================================== */

:root {
  /* Palette — placeholder */
  --navy-900: #0b1f2e;
  --navy-800: #12324a;
  --navy-700: #1b4763;
  --teal-600: #16697a;
  --teal-500: #1f8a9c;
  --teal-050: #e8f3f5;

  /* Aligned to bostonvision.com: navy primary, teal CTA, cool neutrals */
  --accent: #0d94a6;        /* CTA accent — Boston Vision teal */
  --accent-dark: #0b7a89;

  --sand-050: #f7fafb;      /* page background — cool near-white */
  --sand-100: #eef3f5;
  --sand-200: #dce5e9;

  --ink-900: #16202a;
  --ink-700: #37474f;
  --ink-500: #5f6f7a;
  --ink-300: #93a1aa;

  --white: #ffffff;

  --ok: #1f7a54;
  --warn: #9a6a12;
  --risk: #a33a3a;

  /* Scale */
  --container: 1140px;
  --container-narrow: 760px;
  --radius: 10px;
  --radius-lg: 16px;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --step-1:  clamp(1.19rem, 1.12rem + 0.34vw, 1.4rem);
  --step-2:  clamp(1.42rem, 1.29rem + 0.63vw, 1.8rem);
  --step-3:  clamp(1.69rem, 1.47rem + 1.06vw, 2.31rem);
  --step-4:  clamp(2.01rem, 1.66rem + 1.7vw, 2.97rem);

  --nav-h: 60px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 46, 0.06), 0 2px 8px rgba(11, 31, 46, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 31, 46, 0.08), 0 12px 32px rgba(11, 31, 46, 0.07);
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
/* Pages carrying the page-local strip need the extra 44px of sticky
   chrome accounted for, or anchors land under it. */
html:has(.pagenav) {
  scroll-padding-top: calc(var(--nav-h) + 60px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--sand-050);
  color: var(--ink-900);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 0.5em;
  font-weight: 650;
  letter-spacing: -0.015em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-600); }
a:hover { color: var(--navy-800); }

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

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ----------------------------------------------------------- Utilities --- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section--alt { background: var(--white); }
.section--tint { background: var(--teal-050); }
.section--dark { background: var(--navy-900); color: #dbe6ec; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.85rem;
}
.section--dark .eyebrow { color: #6fc6d6; }

.lede {
  font-size: var(--step-1);
  color: var(--ink-700);
  line-height: 1.55;
}
.section--dark .lede { color: #b7c9d4; }

.section-head { max-width: 62ch; margin-bottom: 2.5rem; }

/* Footnote references */
.fn {
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
  font-weight: 700;
  text-decoration: none;
  padding: 0 0.12em;
  color: var(--teal-600);
}
.fn:hover { text-decoration: underline; }
.section--dark .fn { color: #6fc6d6; }

/* ---------------------------------------------------------- Buttons ------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: var(--step-0);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn--outline:hover { background: var(--navy-800); color: var(--white); }

/* --------------------------------------------------------- Sticky nav ---- */

.subnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-200);
}

.subnav__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--nav-h);
}

.subnav__brand {
  font-weight: 750;
  color: var(--navy-900);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.subnav__brand span { color: var(--teal-600); font-weight: 600; }

.subnav__links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Absorb the leftover space and scroll internally, so the strip never
     pushes the CTA out of the bar. min-width:0 lets a flex item shrink
     below its content width. */
  flex: 1 1 auto;
  min-width: 0;
}
.subnav__links::-webkit-scrollbar { display: none; }

.subnav__links a {
  display: block;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--ink-500);
  text-decoration: none;
  white-space: nowrap;
}
.subnav__links a:hover { color: var(--navy-900); background: var(--sand-100); }
.subnav__links a[aria-current="true"] {
  color: var(--teal-600);
  background: var(--teal-050);
  font-weight: 650;
}

.subnav__cta { margin-left: auto; flex-shrink: 0; }
.subnav__cta .btn {
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  white-space: nowrap;
}

/* Hamburger toggle — hidden on desktop */
.navtoggle {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sand-200);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.navtoggle span,
.navtoggle span::before,
.navtoggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: "";
}
.navtoggle span::before { position: absolute; top: -6px; }
.navtoggle span::after { position: absolute; top: 6px; }
.navtoggle[aria-expanded="true"] span { background: transparent; }
.navtoggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .navtoggle { display: grid; }

  /* Collapse the link strip into a dropdown panel under the bar. */
  .subnav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--white);
    border-bottom: 1px solid var(--sand-200);
    box-shadow: var(--shadow-md);
    padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1rem;
    overflow-x: visible;
  }
  .subnav.nav-open .subnav__links { display: flex; }
  .subnav__links a { font-size: 1rem; padding: 0.65rem 0.7rem; }

  /* The brand must be allowed to shrink, or brand + CTA (both nowrap)
     overflow the bar and drag the whole page wider than the viewport. */
  .subnav__brand {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 540px) {
  /* Drop the descriptor rather than ellipsing the practice name. */
  .subnav__brand span { display: none; }
  .subnav__cta .btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
}

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

.hero {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(31, 138, 156, 0.5), transparent 62%),
    linear-gradient(168deg, var(--navy-900) 0%, var(--navy-800) 52%, var(--teal-600) 145%);
  color: #dce8ee;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { color: var(--white); margin-bottom: 0.6rem; }

.hero__sub {
  font-size: var(--step-1);
  color: #b9cdd8;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  max-width: 46ch;
}

.hero__surgeon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 0.45rem;
  font-size: var(--step--1);
  color: #cfe0e9;
  margin-bottom: 1.5rem;
}
.hero__surgeon .dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--navy-700));
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 750;
  color: var(--white);
  letter-spacing: 0.02em;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.hero__card h2 {
  color: var(--white);
  font-size: var(--step-0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
  font-weight: 700;
  opacity: 0.85;
}
.hero__stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.hero__stats li { display: grid; gap: 0.15rem; }
.hero__stats .n {
  font-size: var(--step-2);
  font-weight: 750;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__stats .l { font-size: var(--step--1); color: #a8c0cd; line-height: 1.4; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------- Generic bits --- */

.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
/* Let grid items shrink below their content's intrinsic width — without this,
   min-width:auto lets a wide child (e.g. the SVG floater sim) push the item
   past its track and overflow the viewport on narrow screens. */
.band > * { min-width: 0; }
.band--reverse .band__media { order: -1; }
/* One-column band, used while a band's media slot is hidden. */
.band--single { grid-template-columns: 1fr; max-width: 46rem; }
@media (max-width: 820px) {
  .band { grid-template-columns: 1fr; }
  .band--reverse .band__media { order: 0; }
}

.placeholder {
  border: 2px dashed var(--ink-300);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(147, 161, 170, 0.07) 10px 20px),
    var(--sand-100);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  min-height: 240px;
  color: var(--ink-500);
}
.placeholder__tag {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.4rem;
}
.placeholder__note { font-size: var(--step--1); max-width: 34ch; margin: 0; }

.callout {
  border-left: 4px solid var(--teal-500);
  background: var(--teal-050);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0;
}
.callout p { font-size: var(--step-0); color: var(--navy-800); }
.callout strong { color: var(--navy-900); }

.checklist { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 0.85rem; align-items: start; }
.checklist .mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-050);
  color: var(--teal-600);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 0.25rem;
}
.checklist strong { color: var(--navy-900); display: block; }
.checklist span.body { color: var(--ink-700); font-size: 0.95rem; }
/* A <strong> used for inline emphasis inside body copy must stay inline —
   the block rule above is only for the item's leading title. */
.checklist .body strong { display: inline; }

/* --------------------------------------------------- Treatment options --- */

.option {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 1.75rem;
}

/* Primary (vitrectomy) — visually dominant */
.option--primary {
  background: var(--white);
  border: 2px solid var(--teal-500);
  box-shadow: var(--shadow-md);
}
/* Secondary (YAG) — deliberately de-emphasized */
.option--secondary {
  background: var(--sand-100);
  border: 1px solid var(--sand-200);
}

.option__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.option--primary .option__flag { background: var(--teal-500); color: var(--white); }
.option--secondary .option__flag { background: var(--sand-200); color: var(--ink-700); }

.option h3 { margin-bottom: 0.35rem; }
.option__sub { color: var(--ink-500); font-size: var(--step--1); margin-bottom: 1.25rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--teal-050);
  border-radius: var(--radius);
}
.option--secondary .metrics { background: rgba(255, 255, 255, 0.6); }
.metric .n {
  font-size: var(--step-2);
  font-weight: 750;
  color: var(--teal-600);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.option--secondary .metric .n { color: var(--ink-700); }
.metric .l { font-size: 0.82rem; color: var(--ink-500); line-height: 1.35; }

/* ------------------------------------------------------ Comparison ------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

table.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.94rem;
}
table.compare caption {
  caption-side: top;
  text-align: left;
  padding: 1.1rem 1.25rem 0;
  font-size: var(--step--1);
  color: var(--ink-500);
}
table.compare th, table.compare td {
  padding: 0.95rem 1.25rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--sand-200);
}
table.compare thead th {
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
}
table.compare thead th:first-child { background: var(--navy-800); }
table.compare th[scope="row"] {
  font-weight: 650;
  color: var(--navy-900);
  background: var(--sand-050);
  width: 22%;
}
table.compare td:nth-child(2) { background: rgba(232, 243, 245, 0.55); }
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.tag--ok { background: #e4f3ec; color: var(--ok); }
.tag--warn { background: #faf0dc; color: var(--warn); }
.tag--risk { background: #f8e8e8; color: var(--risk); }

/* Two-column "which part of the eye does this treat" table (index.html).
   Unlike the vitrectomy/YAG table this one has two short columns and no row
   header, so the 720px floor would force a pointless sideways scroll on a
   phone, and the highlighted-column tint would land on the wrong column
   (without a th[scope=row] every cell sits one place to the left). */
table.compare--duo { min-width: 0; }
table.compare--duo thead th { width: 50%; }
table.compare--duo td:nth-child(2) { background: transparent; }
@media (max-width: 560px) {
  table.compare--duo { font-size: 0.86rem; }
  table.compare--duo th,
  table.compare--duo td { padding: 0.75rem 0.8rem; }
}

/* ---------------------------------------------------------- Horizon ------ */

.horizon {
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--sand-050);
  margin-top: 2rem;
}
.horizon h3 { font-size: var(--step-1); }
.horizon .badge {
  display: inline-block;
  background: var(--sand-200);
  color: var(--ink-700);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

/* ------------------------------------------------------ Transparency ----- */

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
}
.embed__tag {
  font-size: var(--step--1);
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8fb4c4;
  margin-bottom: 0.5rem;
}
.embed p { color: #b7c9d4; font-size: var(--step--1); max-width: 40ch; margin: 0 auto; }

/* ------------------------------------------------------------- Bio ------- */

.bio { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (max-width: 780px) { .bio { grid-template-columns: 1fr; } }

.bio__portrait { min-height: 320px; border-radius: var(--radius-lg); }

.creds { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.creds li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--sand-200);
  font-size: 0.95rem;
}
.creds dt, .creds .k {
  font-weight: 700;
  color: var(--teal-600);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}
.creds .v { color: var(--ink-700); }
@media (max-width: 520px) { .creds li { grid-template-columns: 1fr; gap: 0.15rem; } }

/* ---------------------------------------------------------- Journey ------ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 750;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.step p { font-size: 0.93rem; color: var(--ink-700); }

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

.faq { display: grid; gap: 0.75rem; }

.faq details {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }

.faq summary {
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 1.35rem;
  font-weight: 650;
  color: var(--navy-900);
  font-size: var(--step-0);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--teal-600);
  border-bottom: 2px solid var(--teal-600);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: var(--sand-050); }

.faq__body { padding: 0 1.35rem 1.35rem; color: var(--ink-700); }
.faq__body p { font-size: 0.96rem; }

/* ------------------------------------------------------------ CTA -------- */

.cta { text-align: center; }
.cta h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta .lede { max-width: 56ch; margin: 0 auto 2rem; }
.cta__btns { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

.nap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}
.nap h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6fc6d6;
  margin-bottom: 0.4rem;
}
.nap p { font-size: 0.9rem; color: #b7c9d4; }
/* The global link colour is a dark teal meant for light backgrounds; on the
   dark contact panel it is unreadable. Match the .nap headings instead. */
.nap a { color: #6fc6d6; text-decoration: none; }
.nap a:hover { color: #fff; text-decoration: underline; }

/* -------------------------------------------------------- Contact form -- */

.contact-form {
  max-width: var(--container-narrow);
  margin: 2.5rem auto 0;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  text-align: left;
}
.contact-form__title { color: var(--white); font-size: var(--step-1); margin-bottom: 0.4rem; }
.contact-form__note { font-size: 0.88rem; color: #b7c9d4; margin-bottom: 1.4rem; }

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #b7c9d4;
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 1px;
}

/* Honeypot: off-screen for sighted users and unreachable by keyboard/AT,
   but present in the DOM so simple bots that fill every field still trip it. */
.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.contact-form__status { font-size: 0.9rem; color: #b7c9d4; }
.contact-form__status.is-success { color: #6fe0ac; }
.contact-form__status.is-error { color: #f2a3a3; }

@media (max-width: 640px) {
  .contact-form__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------ References ------- */

.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.refs li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.88rem;
  color: var(--ink-700);
  line-height: 1.55;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.refs li::before {
  content: attr(data-n) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6rem;
  font-weight: 750;
  color: var(--teal-600);
}
.refs li:target {
  background: var(--teal-050);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  margin: -0.5rem;
}
.refs cite { font-style: italic; color: var(--ink-900); }
.refs__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85em;
  color: var(--ink-500);
}

/* Per-page reference block sitting at the foot of a content page. */
.section--refs {
  background: var(--sand-050);
  border-top: 1px solid var(--sand-200);
}
.section--refs .refs { max-width: 62ch; }

/* Web sources carry their URL, and a URL has no spaces to break at. Without
   this the AAO and ASRS links are wider than the reference column and push the
   whole page sideways on a phone. */
.refs li { overflow-wrap: break-word; }
.refs__url { overflow-wrap: anywhere; }

/* ------------------------------------------------- Page-local nav -------- */
/* The main menu is identical on all four pages; this strip carries the
   page-specific section jumps that used to live in it. */

.pagenav {
  position: sticky;
  top: var(--nav-h);
  z-index: 99;
  background: rgba(251, 249, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-200);
}
.pagenav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pagenav__inner::-webkit-scrollbar { display: none; }
.pagenav__label {
  flex: none;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.pagenav__links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagenav__links a {
  display: block;
  padding: 0.35rem 0;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.pagenav__links a:hover { color: var(--teal-600); }
.pagenav__links a[aria-current="true"] {
  color: var(--teal-600);
  border-bottom-color: var(--teal-500);
}

@media (max-width: 720px) {
  .pagenav__label { display: none; }
}

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

.footer {
  background: var(--navy-900);
  color: #8fa6b4;
  padding-block: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.footer p { margin-bottom: 0.85rem; line-height: 1.6; }
.footer a { color: #6fc6d6; }

.disclaimer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
}
.disclaimer strong { color: #cfe0e9; }

/* ------------------------------------------------- Multi-page additions -- */

/* Compact hero for branch pages */
.page-hero {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(13, 148, 166, 0.45), transparent 60%),
    linear-gradient(168deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--teal-600) 150%);
  color: #dce8ee;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { color: var(--white); font-size: var(--step-3); margin-bottom: 0.4rem; }
.page-hero .lede { color: #b9cdd8; max-width: 58ch; }
.breadcrumb {
  font-size: var(--step--1);
  margin-bottom: 1rem;
}
.breadcrumb a { color: #8fd4e0; text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb span { color: #7f99a6; }

/* "Go deeper" cards linking to branch pages */
.deeper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.deeper__card {
  display: block;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.deeper__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-500);
  color: var(--ink-700);
}
.deeper__card h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.deeper__card h3::after {
  content: "\2192";
  color: var(--accent);
  font-weight: 750;
  transition: transform 0.18s ease;
}
.deeper__card:hover h3::after { transform: translateX(4px); }
.deeper__card p { font-size: 0.93rem; margin: 0; }
.deeper__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.5rem;
}

/* Candidacy cards */
.candidacy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.candidacy__card {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.candidacy__card--yes { border-top: 4px solid var(--ok); }
.candidacy__card--note { border-top: 4px solid var(--teal-500); }
.candidacy__card--case { border-top: 4px solid var(--warn); }
.candidacy__card--no { border-top: 4px solid var(--risk); }
.candidacy__card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.candidacy__card p { font-size: 0.95rem; color: var(--ink-700); }

/* Experience band (boutique cues) */
.experience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.experience__item {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.experience__item .k {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-050);
  color: var(--teal-600);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}
.experience__item h3 { font-size: var(--step-0); margin-bottom: 0.35rem; }
.experience__item p { font-size: 0.92rem; color: var(--ink-700); margin: 0; }

/* Floater simulation */
.sim { margin: 0; }
.sim__scene {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: crosshair;
  /* A bright, softly-graded field — floaters are most visible against a
     uniform bright background (sky, a white page). */
  background:
    radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #eaf3f8 45%, #d6e6ef 100%);
  box-shadow: inset 0 0 0 1px var(--sand-200);
}
.sim__floaters {
  position: absolute;
  inset: -8%;            /* slight bleed so drift never exposes an edge */
  width: 116%;
  height: 116%;
  will-change: transform;
}
.sim__hint {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 31, 46, 0.66);
  color: #eaf3f8;
  font-size: 0.78rem;
  font-weight: 600;
  max-width: calc(100% - 1.5rem);
  text-align: center;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.sim__scene:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.sim.is-cleared .sim__floaters { opacity: 0; }
.sim__floaters { transition: opacity 0.6s ease; }

.sim__controls {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sim__play {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--sand-200);
  background: var(--white);
  color: var(--ink-700);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.sim__play:hover { background: var(--sand-050); border-color: var(--teal-500); }
/* Paused is a hard freeze: gaze-shift input is ignored, so drop the
   crosshair and the "move across the image" prompt that invite it. */
.sim__play[aria-pressed="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}
.sim.is-paused .sim__scene { cursor: default; }
.sim.is-paused .sim__hint { opacity: 0; }
.sim__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--sand-200);
  background: var(--white);
  color: var(--navy-800);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.sim__toggle::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--risk);
  flex-shrink: 0;
}
.sim.is-cleared .sim__toggle::before { background: var(--ok); }
.sim__toggle:hover { background: var(--sand-050); border-color: var(--teal-500); }

.sim__caption {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-500);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .sim__hint { display: none; }
}

/* Surgical video highlights */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.video figure { margin: 0; }
.video figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-700);
}
.video figcaption strong { color: var(--navy-900); display: block; margin-bottom: 0.1rem; }

/* Light-background variant of the 16:9 embed (dark .embed lives in the
   transparency section; this one sits on light bands). */
.embed--light {
  border-color: var(--ink-300);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(147, 161, 170, 0.07) 10px 20px),
    var(--sand-100);
}
.embed--light .embed__tag { color: var(--teal-600); }
.embed--light p { color: var(--ink-500); }

/* Before / after B-scan image pair */
.beforeafter { display: grid; gap: 1rem; }
.beforeafter .placeholder { min-height: 200px; }
@media (min-width: 560px) {
  .beforeafter--row { grid-template-columns: 1fr 1fr; }
}

/* Inline "evidence" link used on the landing page instead of footnotes */
.evlink {
  font-size: var(--step-0);
  font-weight: 650;
  color: var(--teal-600);
  text-decoration: none;
}
.evlink:hover { text-decoration: underline; }
/* Non-breaking space keeps the arrow glued to the last word so it never
   orphans to its own line once the link is allowed to wrap. */
.evlink::after { content: "\00A0\2192"; }

/* ===================================================================
   Patient symptom self-check (interactive)
   Original questions modeled on the functional domains of validated
   floater questionnaires — not a reproduction of any copyrighted
   instrument, and not a diagnostic tool.
   =================================================================== */
.selfcheck { margin-top: 0.5rem; }

.sc-q {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.sc-q__legend {
  /* A native <legend> straddles the top border of its fieldset (and browsers
     disagree on exactly how), which left the question text half in the card
     and half in the section background. float:left + width:100% takes it out
     of that special positioning so it flows as a normal block inside the
     card's padding; .sc-q__opts clears beneath it. */
  float: left;
  width: 100%;
  font-weight: 650;
  color: var(--navy-900);
  font-size: var(--step-0);
  line-height: 1.4;
  padding: 0;
  margin-bottom: 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.sc-q__num {
  flex: 0 0 auto;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--teal-050);
  color: var(--teal-600);
  font-size: 0.82em;
  font-weight: 750;
  display: inline-grid;
  place-items: center;
}
.sc-q__opts {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (max-width: 560px) { .sc-q__opts { grid-template-columns: 1fr; } }

.sc-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--sand-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--ink-700);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sc-opt:hover { border-color: var(--teal-500); background: var(--sand-050); }
.sc-opt input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--ink-300);
  border-radius: 50%;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.sc-opt input:checked {
  border-color: var(--accent);
  background:
    radial-gradient(circle at center, var(--accent) 0 42%, transparent 46%);
}
.sc-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--teal-050);
  color: var(--navy-900);
  font-weight: 550;
}
.sc-opt input:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }

.selfcheck__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  text-align: center;
}
.selfcheck__actions .btn { padding: 0.9rem 2rem; }
.selfcheck__privacy { font-size: var(--step--1); color: var(--ink-500); margin: 0; }
.selfcheck__nudge { color: var(--risk); font-weight: 600; font-size: var(--step--1); margin: 0; }

/* Result panel */
.sc-result {
  margin-top: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.sc-result:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.sc-result__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.sc-result[data-tier="low"] .sc-result__tag { background: #e4f3ec; color: var(--ok); }
.sc-result[data-tier="moderate"] .sc-result__tag { background: #faf0dc; color: var(--warn); }
.sc-result[data-tier="high"] .sc-result__tag { background: #f8e8e8; color: var(--risk); }
.sc-result__title { margin: 0 0 0.6rem; }
.sc-result__body { color: var(--ink-700); margin: 0 0 1.4rem; }
.sc-result__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sc-result__disclaimer {
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sand-200);
  font-size: var(--step--1);
  color: var(--ink-500);
}

/* Red-flag safety note */
.callout--warn {
  border-left-color: var(--risk);
  background: #fbeeee;
}
.callout--warn p { color: #6d2020; }
.sc-redflag { margin-top: 1.75rem; }

/* Urgent callout. The heading, the word "Urgent" and the marker glyph carry
   the meaning on their own: nothing here depends on the reader perceiving the
   red tint, which is the point of labelling it rather than just colouring it. */
.callout--urgent { margin-top: 2rem; }
.callout__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  font-size: var(--step-0);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  color: #6d2020;
}
.callout__mark {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--risk);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

/* Pseudophakic block closes the Candidacy section below the card grid, so it
   takes a rule above it instead of the card treatment. */
.pseudophakic {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand-200);
  max-width: 68ch;
}
.pseudophakic h3 { font-size: var(--step-1); }

/* Internal mockup banner — REMOVE BEFORE ANY PUBLIC DEPLOY */
.mockup-banner {
  background: #7c2d12;
  color: #fed7aa;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mockup-banner strong { color: #fff; }

/* ===================================================================
   Drop-in media slots
   A real <img>/<video> sits on top of a descriptive hint. If the file
   is missing (404), JS adds .media-el--missing, hiding the media so the
   hint shows instead of a broken-image icon. Drop a correctly-named file
   into assets/img or assets/video and refresh — no HTML editing needed.
   =================================================================== */
.media-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 2px dashed var(--ink-300);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(147, 161, 170, 0.07) 10px 20px),
    var(--sand-100);
}

.media-slot .media-el {
  position: absolute;
  inset: 0;
  z-index: 1;                /* cover the hint when the file loads */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0b0b0b;
}
.media-slot .media-el--missing { display: none; }   /* file absent → reveal hint */

/* When a media file is present, drop the placeholder chrome. */
.media-slot:has(.media-el:not(.media-el--missing)) {
  border: 0;
  background: #0b0b0b;
}

.media-slot__hint {
  position: relative;
  z-index: 0;
  text-align: center;
  padding: 1.75rem;
  color: var(--ink-500);
}
.media-slot__hint .placeholder__tag,
.media-slot__hint .embed__tag { display: block; margin-bottom: 0.4rem; }
.media-slot__hint .placeholder__note { margin: 0 auto; }
.media-slot__hint code {
  font-size: 0.82em;
  background: rgba(11, 31, 46, 0.07);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  color: var(--ink-700);
  word-break: break-word;
}

/* Dark-section variant (stych.tv highlight slot) */
.media-slot--dark {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255, 255, 255, 0.05) 10px 20px),
    rgba(255, 255, 255, 0.04);
}
.media-slot--dark .media-slot__hint { color: #b7c9d4; }
.media-slot--dark .media-slot__hint code {
  background: rgba(255, 255, 255, 0.1);
  color: #dbe6ec;
}

/* A full video meant to be watched end-to-end (e.g. the consent walkthrough):
   contain rather than cover, so nothing is cropped whatever its aspect. */
.media-slot--player .media-el { object-fit: contain; background: #000; }

/* ===================================================================
   stych.tv clip cards
   The clip pages send X-Frame-Options: SAMEORIGIN and sit behind a
   login, so they cannot be inline-embedded. These cards link out to
   the clip (new tab). Drop an optional poster frame (assets/img/clip-*.jpg)
   to give the card a real thumbnail; without one it shows a gradient.
   To convert to a true inline player later, swap the <a> for the embed
   iframe once stych.tv exposes an embeddable, frame-able player URL.
   =================================================================== */
.clip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 190px;
  padding: 1.25rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(158deg, var(--navy-800) 0%, var(--teal-600) 135%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.clip-card:hover,
.clip-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.clip-card__poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.clip-card__poster.media-el--missing { display: none; }

.clip-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(6, 18, 28, 0.85) 0%, rgba(6, 18, 28, 0.15) 55%, rgba(6, 18, 28, 0.35) 100%);
}

.clip-card__play {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.clip-card:hover .clip-card__play {
  background: rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%) scale(1.06);
}
.clip-card__play::before {
  content: "";
  width: 0; height: 0;
  border-left: 17px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.clip-card__meta { position: relative; z-index: 3; }
.clip-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;         /* keep meta height predictable */
  line-clamp: 2;
  overflow: hidden;
  font-weight: 650;
  font-size: var(--step-0);
  line-height: 1.3;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.clip-card__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.6rem;
}
.clip-card__cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #bfe6ee;
}

.clip-card__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 3;
  background: rgba(6, 18, 28, 0.55);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.24rem 0.6rem;
  border-radius: 5px;
}

/* Testimonial variant — warmer, quote-led */
.clip-card--testimonial {
  background: linear-gradient(158deg, #14324a 0%, #a55a2c 155%);
}
.clip-card--testimonial .clip-card__title { font-size: var(--step-1); }
.clip-card--wide { min-height: 210px; }

/* ===================================================================
   Clip slot: local mp4 (preferred) with automatic fallback to the
   stych.tv clip-card link-out. Default state shows the link-out; JS
   reveals the <video> only once 'loadedmetadata' confirms a real file
   actually loaded (a positive signal, not just "no 404 yet"), avoiding
   a flash of a broken/empty player while the source resolves.
   =================================================================== */
.clip-slot { position: relative; border-radius: var(--radius-lg); overflow: hidden; }

.clip-slot__video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0b0b;
  border-radius: var(--radius-lg);
}
.clip-slot.is-ready .clip-slot__video { display: block; }
.clip-slot.is-ready .clip-card { display: none; }

/* Testimonial band — text + clip side by side, sits under the experience grid */
.testimonial-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--sand-200);
}
.testimonial-band__text h3 { margin: 0.35rem 0 0.6rem; }
.testimonial-band__text p { color: var(--ink-700); margin: 0; }
@media (max-width: 780px) {
  .testimonial-band { grid-template-columns: 1fr; }
}
