/* ==========================================================================
   AI-DSM promotional website — ai.stepvda.com
   Palette and grammar follow the AI-DSM brand: deep navy field, gold rule,
   aqua secondary, sand highlights.
   ========================================================================== */

:root {
  --navy: #151b38;
  --deep: #0c1027;
  --panel: #1c2450;
  --chip: #28305e;
  --gold: #f2b84b;
  --gold-dark: #c8901f;
  --aqua: #8fd3d0;
  --sand: #f1d79b;
  --ink: #1b2450;
  --body: #23283f;
  --muted: #5a6180;
  --line: #e2e6f0;
  --tint: #eef1f9;
  --tint2: #f7f3e8;
  --white: #ffffff;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 16, 39, .06), 0 12px 28px -18px rgba(12, 16, 39, .35);
  --shadow-lift: 0 2px 4px rgba(12, 16, 39, .08), 0 22px 44px -20px rgba(12, 16, 39, .45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

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

/* `height: auto` keeps the width/height attributes from acting as a fixed
   presentational height when a rule overrides only the width. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: rgba(27, 36, 80, .35); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--gold-dark); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 3vw, 3.15rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.32rem); }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--deep); padding: .7rem 1rem; font-weight: 700;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ---------- header ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px; padding-block: .5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand-text { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--sans); font-weight: 400; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.15rem; }
.nav a { font-size: .93rem; text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-dark); }
.nav .btn { padding: .5rem .95rem; font-size: .88rem; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 9px; padding: .45rem .6rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .35rem 1.2rem 1.1rem; box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .8rem; text-align: center; }
}

/* ---------- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  padding: .62rem 1.05rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--deep); box-shadow: 0 8px 18px -12px rgba(200, 144, 31, .9); }
.btn-primary:hover { background: #f6c667; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #1e2750; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-on-dark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .16); }
.btn-sm { padding: .42rem .8rem; font-size: .82rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- hero -------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #e9ecf7;
  background:
    radial-gradient(1100px 520px at 82% -12%, #26306a 0%, rgba(38, 48, 106, 0) 62%),
    linear-gradient(168deg, var(--navy) 0%, var(--deep) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/decagon.svg");
  background-repeat: no-repeat; background-position: right -60px top -40px;
  background-size: 520px 520px; opacity: .5; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.4rem, 5vw, 3.6rem); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 2.6rem; align-items: center; }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; } }
.hero .eyebrow {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .9rem;
}
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero .lede { font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem); color: #cfd6ec; max-width: 46ch; }
.hero .lede strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-figure { justify-self: center; width: min(100%, 330px); }
.hero-figure img {
  width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  border: 1px solid rgba(255, 255, 255, .14);
}
.hero-figure figcaption { font-size: .78rem; color: #9aa3c6; margin-top: .7rem; text-align: center; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 1px; margin-top: 2.4rem;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; overflow: hidden;
}
.stats div { background: rgba(12, 16, 39, .55); padding: .95rem 1.05rem; }
.stats b { display: block; font-family: var(--serif); font-size: 1.32rem; color: var(--gold); }
.stats span { font-size: .8rem; color: #b9c1dd; }

.claim-band {
  background: var(--deep);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  padding: clamp(2.2rem, 5vw, 3.8rem) 0 clamp(1.8rem, 4vw, 2.8rem);
}
.claim-band-line {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, .9rem + 6.6vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.claim-band-line em { font-style: normal; color: var(--gold); }
.claim-band-line::before {
  content: ""; display: block; width: clamp(3rem, 6vw, 5rem); height: 5px;
  background: var(--gold); margin-bottom: clamp(.9rem, 2vw, 1.5rem);
}
.hero .eyebrow { margin-top: 0; }

/* ---------- sections ---------------------------------------------------- */
section { padding: clamp(2.6rem, 5vw, 4.2rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head .eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .55rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.bg-tint { background: var(--tint); }
.bg-dark { background: linear-gradient(170deg, var(--navy), var(--deep)); color: #dfe4f2; }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark p, .bg-dark li { color: #c7cfe6; }
.bg-dark .section-head p { color: #aab3d2; }
.bg-dark a:not(.btn) { color: var(--aqua); }

/* ---------- prose -------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p { font-size: 1.03rem; }
.prose blockquote {
  margin: 1.6rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--gold);
  font-family: var(--serif); font-size: 1.16rem; color: var(--ink);
}
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem 2.6rem; }

/* ---------- cards -------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }

.card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--panel); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-media .kind {
  position: absolute; left: .6rem; top: .6rem;
  background: rgba(12, 16, 39, .82); color: var(--sand);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: .28rem .55rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
}
.card-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35rem; }
.card-kicker { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .4rem; }
.card-desc { font-size: .92rem; color: var(--muted); flex: 1; }
.card-desc p { margin-bottom: .8rem; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.badges li {
  font-size: .72rem; color: var(--ink); background: var(--tint);
  border: 1px solid var(--line); border-radius: 999px; padding: .18rem .55rem; margin: 0;
}
.actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.note { font-size: .78rem; color: var(--muted); margin-top: .7rem; font-style: italic; }

/* featured document */
.featured { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2.2rem; align-items: start; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } .featured .featured-cover { max-width: 320px; } }
.featured-cover img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.featured-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; padding: 0; list-style: none; }
.featured-meta li { font-size: .78rem; background: var(--tint2); border: 1px solid #e6dcc6; color: #6b5a2c; border-radius: 999px; padding: .22rem .6rem; margin: 0; }
.inside { columns: 2; column-gap: 2rem; font-size: .92rem; }
@media (max-width: 700px) { .inside { columns: 1; } }

/* film player */
.player { background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.player video { width: 100%; display: block; background: #05070f; aspect-ratio: 16 / 9; }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .85rem 1rem; }
.player-bar h3 { margin: 0; color: #fff; font-size: 1.02rem; }
.player-bar .meta { color: #a9b2d3; font-size: .82rem; }
.film-wrap { display: flex; flex-direction: column; height: 100%; }
.film { display: grid; grid-template-columns: 156px minmax(0, 1fr); gap: .85rem; align-items: start;
  text-align: left; width: 100%; flex: 1; padding: .8rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; font: inherit; color: inherit; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease; }
.film:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.film[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 184, 75, .35); }
.film-thumb { position: relative; display: block; width: 100%; padding-top: 56.25%; border-radius: 8px; overflow: hidden; background: var(--panel); }
.film-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film .film-body { display: block; }
@media (max-width: 560px) { .film { grid-template-columns: 116px minmax(0, 1fr); gap: .7rem; padding: .7rem; } }
.film-title { display: block; font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.25; margin-bottom: .25rem; }
.film-desc { display: block; font-size: .86rem; color: var(--muted); margin-bottom: .45rem; }
.film-meta { display: block; font-size: .74rem; letter-spacing: .04em; color: var(--gold-dark); font-weight: 600; }

/* definitions and tables */
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.def { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.def b { display: block; font-family: var(--serif); color: var(--ink); margin-bottom: .3rem; }
.def span { font-size: .9rem; color: var(--muted); }
.bg-dark .def { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.bg-dark .def b { color: var(--gold); }
.bg-dark .def span { color: #c3cbe4; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bg-dark th, .bg-dark td { border-bottom-color: rgba(255, 255, 255, .12); }
.table-scroll { overflow-x: auto; }

.bars { display: grid; gap: .35rem; }
.bar { display: grid; grid-template-columns: 116px 1fr 46px; align-items: center; gap: .6rem; font-size: .86rem; }
.bar i { display: block; height: 9px; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--aqua)); }
.bar span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* earlier versions */
.versions { list-style: none; padding: 0; display: grid; gap: .6rem; margin: 1.2rem 0 0; }
.versions li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; font-size: .88rem; color: var(--muted); }
.versions a { font-weight: 600; }

/* utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.half { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- modal -------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal[data-open="true"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 9, 22, .82); }
.modal-panel {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  width: min(1080px, 100%); height: min(92vh, 100%); background: var(--white);
  border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.modal-head { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem .7rem 1.1rem; border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--serif); font-size: 1rem; color: var(--ink); margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-head .btn { flex-shrink: 0; }
.modal-close { background: none; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); }
.modal-body { flex: 1; min-height: 0; background: #4a4f63; }
.modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-foot { padding: .5rem 1.1rem; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; height: 100vh; height: 100dvh; }
  .modal-title { display: none; }
}

body[data-modal="true"] { overflow: hidden; }

/* ---------- footer ------------------------------------------------------- */
.site-footer { background: var(--deep); color: #a9b2d3; padding: 3rem 0 2.2rem; font-size: .92rem; }
.site-footer a { color: #dfe4f2; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .colophon { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .82rem; color: #8e97ba; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: var(--serif); color: #fff; font-size: 1.05rem; }

/* ---------- announcement / strip ---------------------------------------- */
.strip { background: var(--tint2); border-top: 1px solid #e9dfc9; border-bottom: 1px solid #e9dfc9; padding: 1.4rem 0; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.strip p { margin: 0; font-size: .96rem; }
.strip .btn { margin-left: auto; }
@media (max-width: 640px) { .strip .btn { margin-left: 0; } }

/* ---------- promoted story ---------------------------------------------- */
/* One promoted article sits above everything else on the home page, and gets
   its own long-form page. The story is explicitly fiction, so it carries its
   own markers: the note panel, the inline asides and the transcript. */
.story-promo {
  background:
    radial-gradient(900px 420px at 88% -10%, #26306a 0%, rgba(38, 48, 106, 0) 62%),
    linear-gradient(168deg, var(--navy) 0%, var(--deep) 100%);
  color: #dfe4f2; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.story-promo-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 2.4rem; align-items: center; }
@media (max-width: 900px) { .story-promo-inner { grid-template-columns: 1fr; gap: 1.6rem; } }
.story-promo-media { position: relative; margin: 0; }
.story-promo-media img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-lift); }
/* The promoted slot plays the cartoon itself: same box, same 16:9 frame as the
   illustration it replaced, loaded only when the reader presses play. */
.story-promo-media video {
  width: 100%; height: auto; display: block; aspect-ratio: 16 / 9;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16);
  background: #05070f; box-shadow: var(--shadow-lift); object-fit: cover;
}
.story-promo-media .story-promo-kind {
  position: absolute; left: .7rem; top: .7rem; background: var(--gold); color: var(--deep);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: .3rem .6rem; border-radius: 999px;
}
.story-promo h2 { color: #fff; margin-bottom: .5rem; }
.story-promo p { color: #c7cfe6; }
.story-promo .eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .55rem; }
.story-promo .featured-meta li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: var(--sand); }
.story-promo .note { color: #9aa3c6; }
.story-promo .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }

.story-body > p,
.story-body > h2,
.story-body > h3,
.story-body > blockquote,
.story-body > .fiction-note,
.story-body > .fiction-inline,
.story-body > .real-note,
.story-body > .moves { max-width: 46rem; }

.fiction-note {
  background: var(--tint2); border: 1px solid #e9dfc9; border-left: 5px solid var(--gold);
  border-radius: 12px; padding: 1.3rem 1.5rem; margin: 0 0 2.2rem;
}
.fiction-note p { font-size: .97rem; }
.fiction-note p:last-child { margin-bottom: 0; }
.fiction-tag {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: #8a6d22; margin-bottom: .6rem;
}
.fiction-inline {
  background: #fdf6e6; border-left: 4px solid var(--gold); padding: .85rem 1.1rem;
  font-size: .95rem; color: #6b5a2c; border-radius: 0 10px 10px 0; margin: 0 0 1.4rem;
}
.real-note {
  background: var(--tint); border-left: 4px solid var(--ink); padding: .85rem 1.1rem;
  font-size: .95rem; border-radius: 0 10px 10px 0; margin: 0 0 1.4rem;
}

/* Figures hold the reading measure: an illustration is never wider than the
   column of text it belongs to, and clicking one opens the full-size frame. */
.story-figure { margin: 2.4rem 0; max-width: 46rem; }
.story-figure a { display: block; }
.story-figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.story-figure a:hover img { border-color: var(--gold); }
.story-figure figcaption { font-size: .86rem; color: var(--muted); margin-top: .65rem; max-width: 46rem; }
.story-figure figcaption b { color: var(--ink); }

.moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1.8rem 0; }
.moves article { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.moves b { display: block; font-family: var(--serif); color: var(--ink); margin-bottom: .35rem; }
.moves span { display: block; font-size: .92rem; color: var(--muted); }

.film-embed { margin: 0; }
.film-embed video {
  width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; background: #05070f;
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14);
}
.film-embed figcaption { font-size: .86rem; color: #aab3d2; margin-top: .7rem; max-width: 72ch; }

.transcript { margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1rem; }
.transcript summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: .92rem; }
.transcript ol { margin: 1.1rem 0 0; padding-left: 1.2rem; }
.transcript li { margin-bottom: .95rem; color: #c7cfe6; }
.transcript .cue {
  display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .2rem;
}

/* ---------- promo band (the position paper) ----------------------------- */
.promo {
  background: linear-gradient(180deg, #fbf7ec 0%, #ffffff 100%);
  border-top: 1px solid #ece2cb; border-bottom: 1px solid #ece2cb;
}
.promo-inner { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; }
.promo-cover img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow-lift); border: 1px solid #e6dcc6; }
.promo h2 { margin-bottom: .5rem; }
.promo .eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .6rem; }
.promo .featured-meta li { background: var(--white); }
@media (max-width: 780px) {
  .promo-inner { grid-template-columns: 1fr; }
  .promo-cover { max-width: 240px; }
}


/* ---------- GoFundMe card, beside the contact copy ---------------------- */
/* `.strip .wrap` is a flex row, so these need the extra class to win. */
.strip .wrap.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
}
.strip.contact-strip { padding: 2.4rem 0; }
/* the strip's own button rule would otherwise auto-space this button row */
.strip .contact-grid .actions .btn { margin-left: 0; }

.contact-card { width: 100%; max-width: 380px; justify-self: end; }
.gfm-card {
  display: block; background: var(--white); border: 1px solid #d9dde8;
  border-radius: 12px; padding: 1.15rem 1.15rem 1.25rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow-lift);
  transition: transform .14s ease, box-shadow .14s ease;
}
.gfm-card:hover { transform: translateY(-2px); }
.gfm-card-logo { display: block; width: 112px; height: auto; margin: 0 auto 1.1rem; }
.gfm-card-cover {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630;
  object-fit: cover; border-radius: 2px;
}
.gfm-card-rule { border: 0; border-top: 2px solid #14181f; margin: .55rem 0 1rem; }
.gfm-card-title {
  font-family: var(--sans); font-size: 1.06rem; font-weight: 700; line-height: 1.32;
  color: #14181f; margin: 0 0 .95rem;
}
.gfm-card-meter {
  height: 7px; border-radius: 999px; background: #e8eae9; overflow: hidden;
  margin-bottom: .85rem;
}
.gfm-card-meter > span { display: block; height: 100%; background: #1f7a4d; border-radius: 999px; }
.gfm-card-amount {
  font-family: var(--sans); font-size: 1rem; font-weight: 700; color: #14181f;
  margin: 0 0 1.1rem;
}
.gfm-card-button {
  display: block; background: #1f7a4d; color: #fff; text-align: center;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 700;
  padding: .78rem 1rem; border-radius: 999px;
}
.gfm-card:hover .gfm-card-button { background: #1a6741; }
.gfm-card-note {
  font-size: .72rem; color: var(--muted); margin: .85rem 0 0; text-align: center;
}
@media (max-width: 900px) {
  .strip .wrap.contact-grid { grid-template-columns: 1fr; }
  .contact-card { justify-self: start; }
}
@media (max-width: 480px) { .strip.contact-strip { padding: 1.8rem 0; } }
