/* ==========================================================================
   Erudite IMS — marketing site stylesheet
   Hand-authored. No framework, no CDN, no build step.

   Palette is the Erudite IMS brand theme verbatim (docs/erudite-theme.md).
   Type stack matches the existing brochures: a serif for display, a system
   sans for copy, both with local fallbacks so nothing is ever fetched.
   ========================================================================== */

/* --------------------------------------------------------------- 1. tokens */
:root {
  /* brand palette — docs/erudite-theme.md */
  --navy: #071633;
  --navy-deep: #050B18;
  --navy-lift: #0B1730;
  --green: #0B5A2A;
  --gold: #C7A23A;
  --info: #1F5E8C;
  --danger: #B42318;
  --bg: #F4F2EC;
  --surface: #FFFFFF;
  --text: #2B2D34;
  --muted: #8A8D95;
  --border: #D9D6CC;

  /* rgb channels for alpha overlays */
  --navy-rgb: 7, 22, 51;
  --gold-rgb: 199, 162, 58;
  --green-rgb: 11, 90, 42;

  /* derived tints */
  --navy-wash: rgba(var(--navy-rgb), 0.05);
  --gold-wash: rgba(var(--gold-rgb), 0.12);
  --green-wash: rgba(var(--green-rgb), 0.09);
  --paper: #FAF8F3;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(var(--navy-rgb), 0.06),
               0 2px 8px rgba(var(--navy-rgb), 0.05);
  --shadow-md: 0 2px 6px rgba(var(--navy-rgb), 0.07),
               0 12px 32px rgba(var(--navy-rgb), 0.09);
  --shadow-lg: 0 4px 12px rgba(var(--navy-rgb), 0.10),
               0 24px 64px rgba(var(--navy-rgb), 0.16);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --gutter: 20px;
  --maxw: 1200px;
  --header-h: 66px;
}

/* ----------------------------------------------------------- 2. resets */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.14;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 6.2vw, 3.9rem); }
h2 { font-size: clamp(1.62rem, 4.3vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.02rem; }

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

a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.35em; }

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

.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;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 10px 16px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ----------------------------------------------------------- 3. layout */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 780px; }

.section { padding-block: 58px; }
.section-tight { padding-block: 40px; }

.section-dark {
  background:
    radial-gradient(circle at 88% 8%, rgba(var(--gold-rgb), 0.16), transparent 44%),
    radial-gradient(circle at 6% 92%, rgba(var(--green-rgb), 0.26), transparent 46%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lede, .section-dark p { color: rgba(255, 255, 255, 0.82); }
.section-dark a { color: var(--gold); }

.section-paper { background: var(--paper); }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 0.85em;
}
.section-dark .eyebrow { color: var(--gold); }

.gold-rule {
  width: 62px; height: 3px; background: var(--gold);
  border-radius: 2px; margin: 0 0 24px;
}
.gold-rule-center { margin-inline: auto; }

.lede {
  font-size: clamp(1.02rem, 2.1vw, 1.15rem);
  color: #4A4D56;
  max-width: 62ch;
}

.section-head { margin-bottom: 38px; }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head.center .gold-rule { margin-inline: auto; }

/* ----------------------------------------------------------- 4. buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background-color 0.16s ease, color 0.16s ease,
              border-color 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

.btn-gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: #D8B455; box-shadow: var(--shadow-md); }

.btn-navy { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: #0C2149; box-shadow: var(--shadow-md); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 650; font-size: 0.92rem; color: var(--info);
}
.textlink svg { width: 15px; height: 15px; transition: transform 0.16s ease; }
.textlink:hover { text-decoration: none; }
.textlink:hover svg { transform: translateX(4px); }

/* ----------------------------------------------------------- 5. header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 22, 51, 0.96);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.14rem;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
/* The brand mark is navy-on-transparent, so it needs a light chip to read
   against the navy header — the same treatment the app's own sidebar uses. */
.brand img {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--paper);
  padding: 3px;
}
.brand b { color: var(--gold); font-weight: 700; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 38px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--gold);
  padding: 8px var(--gutter) 20px;
  box-shadow: var(--shadow-lg);
}
.nav.open { display: block; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav a {
  display: block;
  padding: 14px 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.96rem;
  font-weight: 550;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); text-decoration: none; }
.nav .nav-cta { margin-top: 18px; border: 0; }
.nav .nav-cta .btn { width: 100%; }

/* ----------------------------------------------------------- 6. hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 10%, rgba(var(--gold-rgb), 0.20), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(var(--green-rgb), 0.30), transparent 44%),
    linear-gradient(156deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: 52px 62px;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--gold) 0 34%, var(--green) 34% 58%,
                               rgba(255, 255, 255, 0.10) 58%);
}
.hero h1 { color: #fff; margin-bottom: 0.42em; }
.hero h1 .accent { color: var(--gold); }
.hero .lede { color: rgba(255, 255, 255, 0.84); font-size: clamp(1.04rem, 2.4vw, 1.22rem); }
.hero .eyebrow { color: var(--gold); }
.hero-grid { display: grid; gap: 40px; align-items: center; }

.hero-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* framed screen / video */
.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-lift);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
}
.frame video, .frame img { width: 100%; display: block; }

.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.frame-bar i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.frame-bar i:first-child { background: rgba(var(--gold-rgb), 0.75); }
.frame-bar span {
  margin-left: 8px; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------- 7. stat bar */
.statbar {
  background: var(--navy-deep);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.statbar ul {
  list-style: none; margin: 0; padding: 26px 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 10px;
  text-align: center;
}
.statbar li { margin: 0; }
.statbar b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.05rem);
  color: var(--gold);
  line-height: 1;
  font-weight: 700;
}
.statbar small {
  display: block; margin-top: 7px;
  font-size: 0.73rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

/* ------------------------------------------------------------ 8. cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

/* feature category card */
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--gold-rgb), 0.5);
}
.cat-card-body { padding: 24px 22px 22px; flex: 1 1 auto; }
.cat-card-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--navy-wash);
}

.cat-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.icon-badge {
  width: 50px; height: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--gold-wash);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  color: var(--navy);
  margin-bottom: 16px;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge-green { background: var(--green-wash); border-color: rgba(var(--green-rgb), 0.32); }
.icon-badge-dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--gold-rgb), 0.42);
  color: var(--gold);
}

/* stroke-based inline icons */
.ico { fill: none; stroke: currentColor; stroke-width: 1.6;
       stroke-linecap: round; stroke-linejoin: round; }

.modules {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.modules li { margin: 0; }
.modules code {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--navy-wash);
  border: 1px solid var(--border);
  color: #555964;
}

/* thumbnail strip inside a category card */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shots .shot { aspect-ratio: 4 / 3.4; }
.shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--paper);
  cursor: zoom-in;
  padding: 0;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.shot:hover img { transform: scale(1.05); }
.shot::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(var(--navy-rgb), 0.06);
  border-radius: inherit;
  pointer-events: none;
}

/* ------------------------------------------------- 9. feature deep dive */
.feature-block {
  padding-block: 52px;
  border-top: 1px solid var(--border);
}
.feature-block:first-of-type { border-top: 0; }

.feature-head { display: grid; gap: 26px; margin-bottom: 30px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.checks li {
  display: flex; gap: 12px; margin: 0;
  font-size: 0.95rem; line-height: 1.5;
}
.checks svg {
  width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px;
  stroke: var(--green); stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.shot-card { display: flex; flex-direction: column; }
.shot-card .shot { aspect-ratio: 16 / 11; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.shot-meta {
  padding: 11px 13px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  flex: 1 1 auto;
}
.shot-meta b { display: block; font-size: 0.88rem; color: var(--navy); line-height: 1.3; }
.shot-meta span { display: block; margin-top: 4px; font-size: 0.79rem; color: var(--muted); line-height: 1.4; }

/* ----------------------------------------------------------- 10. video */
.video-grid { display: grid; gap: 26px; }
/* The four full-length films get a roomier 2-up grid so they read as the
   headline content, and so four cards fill two clean rows. */
.video-grid.two { grid-template-columns: 1fr; }

.video-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-card-body { padding: 20px 22px 22px; flex: 1 1 auto; }
.video-card h3 { margin-bottom: 0.3em; }
.video-kicker {
  font-size: 0.71rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 700; color: var(--green); margin-bottom: 10px;
}
.video-card p { font-size: 0.92rem; color: #52555E; margin: 0; }
.video-meta {
  margin-top: 14px; font-size: 0.76rem; color: var(--muted);
  font-family: var(--mono); letter-spacing: 0.02em;
}

/* click-to-play poster for the heavy real videos */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  overflow: hidden;
}
.player img, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: rgba(var(--navy-rgb), 0.34);
  cursor: pointer; padding: 0;
  transition: background-color 0.2s ease;
}
.player-btn:hover { background: rgba(var(--navy-rgb), 0.16); }
.player-btn i {
  width: 66px; height: 66px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(var(--navy-rgb), 0.45);
  transition: transform 0.2s ease;
}
.player-btn:hover i { transform: scale(1.08); }
.player-btn svg { width: 26px; height: 26px; fill: var(--navy); stroke: none; margin-left: 3px; }
.player.playing .player-btn, .player.playing img { display: none; }

/* autoplaying lightweight reel */
.reel { aspect-ratio: 16 / 9; background: var(--navy); }
.reel video { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------- 11. personas */
.persona {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 22px 22px 20px;
}
.persona-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.persona-glyph {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: var(--gold);
  font-size: 1.18rem;
  line-height: 1;
}
.persona b { display: block; color: var(--navy); font-size: 1.02rem; }
.persona em {
  display: block; font-style: normal; font-size: 0.83rem;
  color: var(--green); font-weight: 650; margin-top: 2px;
}
.persona ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.persona li {
  margin: 0; padding-left: 17px; position: relative;
  font-size: 0.9rem; line-height: 1.48; color: #4E515A;
}
.persona li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}

/* ----------------------------------------------------------- 12. trust */
.trust-item {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.trust-item h4 {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 8px; color: var(--navy);
}
.trust-item h4 svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; color: var(--green); }
.trust-item p { font-size: 0.9rem; color: #52555E; margin: 0; }

/* ----------------------------------------------------------- 13. steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li {
  margin: 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.step-n {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
}
.step-body b { color: var(--navy); font-size: 1.02rem; }
.step-when {
  display: inline-block; margin-left: 8px;
  font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
  font-weight: 700; color: var(--green);
  background: var(--green-wash);
  padding: 3px 9px; border-radius: 999px;
  vertical-align: 2px;
}
.step-body p { margin: 7px 0 0; font-size: 0.92rem; color: #52555E; }

/* ----------------------------------------------------------- 14. price */
.price-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 34px 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--gold) 0 40%, var(--green) 40%);
}
.price-amount {
  font-family: var(--serif);
  font-size: clamp(3rem, 12vw, 4.4rem);
  line-height: 1; color: var(--gold); font-weight: 700;
}
.price-amount small { font-size: 0.3em; letter-spacing: 0.06em; display: block; margin-bottom: 6px; color: rgba(255,255,255,.7); }
.price-card .per { color: rgba(255, 255, 255, 0.8); margin-top: 12px; }
.price-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.price-pills span {
  font-size: 0.74rem; font-weight: 650;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.price-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.price-includes li {
  display: flex; gap: 11px; margin: 0;
  font-size: 0.93rem; color: #4E515A;
}
.price-includes svg {
  width: 19px; height: 19px; flex: 0 0 auto; margin-top: 3px;
  stroke: var(--green); stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------------------------------------------ 15. docs */
.doc-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc-kind {
  font-size: 0.71rem; letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin-bottom: 12px;
}
.doc-card p { font-size: 0.92rem; color: #52555E; flex: 1 1 auto; }
/* the kicker must not grow, or it pushes the heading down the card */
.doc-card .doc-kind { flex: 0 0 auto; }
.doc-card .btn { margin-top: 20px; align-self: flex-start; }

.chapter-list {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.chapter-list li { margin: 0; }
.chapter-list span {
  font-size: 0.76rem; padding: 4px 11px; border-radius: 999px;
  background: var(--navy-wash); border: 1px solid var(--border); color: #555964;
}

/* --------------------------------------------------------- 16. gallery */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 26px;
}
.filter {
  font-family: var(--sans);
  font-size: 0.83rem; font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #4E515A;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.filter i { font-style: normal; opacity: 0.6; margin-left: 5px; font-size: 0.78em; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery .shot-card[hidden] { display: none; }

.gallery-empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* -------------------------------------------------------- 17. lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none;
  background: rgba(5, 11, 24, 0.95);
  padding: 14px;
}
.lightbox.open { display: flex; flex-direction: column; }

.lightbox-bar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; color: #fff; padding: 4px 4px 12px;
  flex: 0 0 auto;
}
.lightbox-bar b { display: block; font-size: 0.98rem; }
.lightbox-bar span { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); margin-top: 2px; }

.lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: var(--r-sm);
  background: var(--navy-lift);
  -webkit-overflow-scrolling: touch;
}
.lightbox-stage img { width: 100%; display: block; }

.lb-btn {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.lb-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lightbox-nav { display: flex; gap: 8px; align-items: center; }
.lightbox-count { font-family: var(--mono); font-size: 0.78rem; color: rgba(255,255,255,.55); }

/* ---------------------------------------------------------- 18. footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 44px 26px;
  border-top: 4px solid var(--gold);
  font-size: 0.92rem;
}
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px;
}
.footer-grid { display: grid; gap: 30px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, 0.76); }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand img {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--paper); padding: 4px;
}
.footer-brand span { font-family: var(--serif); font-size: 1.14rem; color: #fff; }
.footer-brand b { color: var(--gold); }
.footer-legal {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.46);
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
}

/* ------------------------------------------------------- 19. page head */
.page-head {
  background:
    radial-gradient(circle at 88% 14%, rgba(var(--gold-rgb), 0.16), transparent 46%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: 46px 50px;
  border-bottom: 4px solid var(--gold);
}
.page-head h1 { color: #fff; }
.page-head .lede { color: rgba(255, 255, 255, 0.82); }
/* green-on-navy fails contrast, so the eyebrow goes gold on dark grounds */
.page-head .eyebrow { color: var(--gold); }
/* the jump-link pills in a page head sit on navy, so they invert */
.page-head .modules code {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.86);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.page-head .modules a { color: inherit; }
.page-head .modules code:hover { border-color: var(--gold); color: var(--gold); }
.crumb {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5); margin-bottom: 14px;
}
.crumb a { color: rgba(255, 255, 255, 0.72); }

/* ------------------------------------------------------- 20. callouts */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--r-sm);
  padding: 22px 24px;
}
.callout b { color: var(--navy); }

.quote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.2vw, 1.6rem);
  line-height: 1.38;
  color: var(--navy);
}
.section-dark .quote { color: #fff; }

/* --------------------------------------------------- 21. scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s ease, transform 0.62s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .cat-card:hover, .doc-card:hover { transform: none; }
  .shot:hover img { transform: none; }
}

/* -------------------------------------------------------- 22. responsive
   Mobile-first: everything above is the ~400px layout. These widen it.    */

@media (min-width: 560px) {
  :root { --gutter: 26px; }
  .statbar ul { grid-template-columns: repeat(3, 1fr); }
  .shot-grid, .gallery { grid-template-columns: repeat(3, 1fr); }
  .price-card { padding: 40px 36px; }
}

@media (min-width: 760px) {
  .section { padding-block: 76px; }
  .feature-block { padding-block: 68px; }
  .hero { padding-block: 70px 84px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid.two { grid-template-columns: repeat(2, 1fr); }
  .steps li { grid-template-columns: 56px 1fr; padding: 24px 26px; }
  .step-n { width: 56px; height: 56px; font-size: 1.4rem; }
  .feature-head { grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
  .page-head { padding-block: 64px 70px; }
  .lightbox { padding: 22px 26px; }
}

@media (min-width: 1000px) {
  :root { --gutter: 34px; }
  .section { padding-block: 92px; }
  .hero-grid { grid-template-columns: 1.02fr 1.15fr; gap: 52px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .statbar ul { grid-template-columns: repeat(6, 1fr); }
  .shot-grid, .gallery { grid-template-columns: repeat(4, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .video-grid.two { grid-template-columns: repeat(2, 1fr); }
  .nav { display: block; position: static; background: none; border: 0;
         padding: 0; box-shadow: none; }
  .nav ul { display: flex; align-items: center; gap: 4px; }
  .nav li { border: 0; }
  .nav a { padding: 9px 13px; border-radius: var(--r-sm); font-size: 0.9rem; }
  .nav a:hover { background: rgba(255, 255, 255, 0.07); }
  .nav a[aria-current="page"] { background: rgba(var(--gold-rgb), 0.14); }
  .nav .nav-cta { margin: 0 0 0 10px; }
  .nav .nav-cta .btn { width: auto; padding: 11px 20px; font-size: 0.88rem; }
  .nav-toggle { display: none; }
}

/* Four columns is the ceiling for the gallery: at five the thumbnail gets too
   small to read and the two-line caption starts wrapping to four lines. */

/* ----------------------------------------------------------- 23. print */
@media print {
  .site-header, .nav, .lightbox, .player-btn, .filters { display: none !important; }
  body { background: #fff; }
  .hero, .page-head, .section-dark, .statbar { background: #fff !important; color: #000 !important; }
  .hero h1, .page-head h1, .section-dark h2 { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
