/* The Chapter Society — site styles
   Mobile first. Light theme by default, dark theme via [data-theme="dark"]. */

:root {
  --white: #ffffff;
  --navy: #071b2e;
  --navy-2: #0d2740;
  --gold: #c6a04b;
  --ivory: #faf7f0;
  --text: #142333;
  --muted: #56616c;
  --border: #e3e5e8;

  --bg: var(--white);
  --surface: var(--white);
  --surface-alt: var(--ivory);
  --heading: var(--navy);
  --accent: var(--gold);
  --link: var(--navy);
  --btn-bg: var(--navy);
  --btn-text: var(--white);
  --card-border: var(--navy);
  --focus: #1a5fb4;

  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui: "Montserrat", "Inter", system-ui, sans-serif;

  --radius: 4px;
  --shadow: 0 2px 12px rgba(7, 27, 46, 0.06);
  --shadow-hover: 0 10px 28px rgba(7, 27, 46, 0.12);
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 76px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #08121d;
  --surface: #122234;
  --surface-alt: #0d1a29;
  --heading: #f5f7fa;
  --text: #f5f7fa;
  --muted: #c3cbd4;
  --border: #23384e;
  --accent: #d8b76a;
  --link: #d8b76a;
  --btn-bg: #d8b76a;
  --btn-text: #071b2e;
  --card-border: #d8b76a;
  --focus: #8cc4ff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.15rem; }

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

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 600; }
em, i { font-style: normal; }

ul, ol { padding-left: 1.2em; }

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

.visually-hidden {
  position: absolute !important;
  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: 16px; top: -100px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline-color: var(--gold); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section); }
.section--ivory { background: var(--surface-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }

/* ---------- Labels, rules ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--accent);
  flex: none;
}
.rule {
  display: block;
  width: 56px; height: 2px;
  background: var(--accent);
  border: 0;
  margin: 0 0 24px;
}
.center .rule { margin-inline: auto; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 680px; }
.center .lead { margin-inline: auto; }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { background: var(--navy-2); box-shadow: var(--shadow-hover); }
[data-theme="dark"] .btn--primary:hover { background: #e6c983; }
.btn--outline { background: transparent; color: var(--heading); border-color: currentColor; }
.btn--outline:hover { background: var(--heading); color: var(--bg); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--ivory); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 0.76rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

.text-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
.text-link:hover { border-bottom-width: 2px; }
.text-link .arrow { display: inline-block; transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(6px);
}
[data-theme="dark"] .site-header { background: rgba(8,18,29,.97); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 8px;
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: var(--radius); }
.brand img { height: 60px; width: auto; }
[data-theme="dark"] .brand { background: #fff; padding: 4px 8px; }
[data-theme="dark"] .brand img { height: 52px; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--heading); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle .bars { position: relative; width: 20px; height: 14px; }
.menu-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(7,27,46,.12);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.site-nav.is-open { display: block; }
.no-js .site-nav { display: block; position: static; box-shadow: none; }
.nav-list {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 24px;
}
.nav-list a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
  text-decoration: none;
}
.nav-list a[aria-current="page"] { font-weight: 700; }
.nav-list a[aria-current="page"]::after {
  content: ""; display: inline-block; width: 18px; height: 2px;
  background: var(--accent); margin-left: 10px; vertical-align: middle;
}
.nav-cta { padding-top: 18px; }
.nav-cta .btn { width: 100%; }
.header-cta { display: none; }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
  .nav-cta { display: none; }
}

@media (min-width: 1200px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav-list { display: flex; gap: 2px; padding: 0; }
  .nav-list a {
    border: 0;
    padding: 10px 10px;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    position: relative;
  }
  .nav-list a::after,
  .nav-list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px; bottom: 4px;
    width: auto; margin: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); height: 2px; }
  .header-inner { gap: 20px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--navy) center / cover no-repeat;
  overflow: hidden;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: -2;
}
.hero-media img,
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 38% center;
}
.hero-media video { opacity: 0; transition: opacity .8s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,27,46,.55) 0%, rgba(7,27,46,.72) 55%, rgba(7,27,46,.88) 100%),
    linear-gradient(90deg, rgba(7,27,46,.55) 0%, rgba(7,27,46,.15) 100%);
}
.hero-content {
  padding-block: clamp(64px, 12vw, 120px) clamp(88px, 12vw, 120px);
  max-width: 760px;
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 span { display: block; }
.hero h1 .accent-line { color: #f1dfb2; font-style: normal; }
.hero p { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: rgba(255,255,255,.93); max-width: 600px; margin-bottom: 32px; }
.hero .rule { background: var(--gold); }
.hero-control {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  background: rgba(7,27,46,.6);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.hero-control:hover { background: rgba(7,27,46,.85); border-color: #fff; }
.hero-control svg { width: 14px; height: 14px; }
.hero-control[hidden] { display: none; }
.hero :focus-visible { outline-color: #f1dfb2; }

/* Page hero for inner pages */
.page-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(56px, 8vw, 96px) clamp(48px, 6vw, 72px);
}
.page-hero h1 { max-width: 880px; }
.page-hero .lead { margin-top: 8px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.trust-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--heading);
  line-height: 1.35;
}
.trust-list li + li { border-top: 1px solid var(--border); }
.trust-list svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
@media (min-width: 860px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .trust-list li { justify-content: center; padding: 30px 24px; text-align: left; }
  .trust-list li + li { border-top: 0; border-left: 1px solid var(--border); }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 1rem; }
.card .card-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 18px; }
.card .card-foot { margin-top: auto; padding-top: 18px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps--compact { display: grid; gap: 0; }
.steps--compact li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.steps--compact li:last-child { border-bottom: 1px solid var(--border); }
.step-num {
  font-family: var(--font-display);
  color: var(--heading);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 500;
}
.steps--compact h3 { font-size: 1.2rem; margin-bottom: 4px; }
.steps--compact p { color: var(--muted); font-size: 1rem; }
@media (min-width: 1000px) {
  .steps--compact { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .steps--compact li {
    grid-template-columns: 1fr;
    padding: 28px 22px 28px 0;
    border-bottom: 1px solid var(--border);
  }
  .steps--compact li + li { padding-left: 22px; border-left: 1px solid var(--border); }
}

.steps--full li {
  display: grid;
  gap: 8px 40px;
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--border);
}
.steps--full li:last-child { border-bottom: 1px solid var(--border); }
.steps--full .step-num { font-size: clamp(3.6rem, 9vw, 5.6rem); }
.steps--full .step-num::after {
  content: ""; display: block; width: 40px; height: 2px;
  background: var(--accent); margin-top: 16px;
}
.steps--full h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.steps--full p { max-width: 640px; }
@media (min-width: 800px) {
  .steps--full li { grid-template-columns: 160px 1fr; }
}

.track-grid { display: grid; gap: 16px; margin-top: 20px; max-width: 680px; }
@media (min-width: 640px) { .track-grid { grid-template-columns: 1fr 1fr; } }
.track {
  border: 1px solid var(--border);
  border-left: 3px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--surface);
}
.track h3 { font-size: 1.15rem; margin-bottom: 6px; }
.track p { font-size: 0.98rem; color: var(--muted); }

/* ---------- Split / feature sections ---------- */
.service-block {
  display: grid;
  gap: 24px 56px;
  padding-block: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--border);
}
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.service-block .card-icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 16px; }
.detail-list { list-style: none; padding: 0; margin: 0 0 20px; }
.detail-list li { position: relative; padding: 6px 0 6px 26px; }
.detail-list li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 12px; height: 1px; background: var(--accent);
}
.detail-head {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
@media (min-width: 900px) { .service-block { grid-template-columns: 5fr 7fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}
.panel--ivory { background: var(--surface-alt); }

.values { display: grid; gap: 0; }
.value {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.value:last-child { border-bottom: 1px solid var(--border); }
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); }
@media (min-width: 800px) {
  .values { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .value:nth-last-child(2) { border-bottom: 1px solid var(--border); }
}

/* ---------- Portfolio ---------- */
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease;
}
.portfolio-card:hover { box-shadow: var(--shadow-hover); }
.shot-btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #f3f4f6;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.shot-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.shot-btn:hover img { transform: scale(1.02); }
.shot-btn .shot-hint {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(7,27,46,.88); color: #fff;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--radius);
}
.shot-btn:focus-visible { outline-offset: -4px; }
.portfolio-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heading);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 9px;
  margin-bottom: 14px;
}
.portfolio-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.meta { list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.98rem; color: var(--muted); }
.meta li + li { margin-top: 4px; }
.meta .k { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 6px; }
.portfolio-body .btn { margin-top: auto; align-self: flex-start; }

/* Lightbox */
.lightbox {
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(7,27,46,.82); }
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.lightbox-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--heading); margin: 0; }
.lightbox-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lightbox-scroll { overflow-y: auto; overscroll-behavior: contain; background: #f3f4f6; flex: 1; min-height: 0; }
.lightbox-scroll img { width: 100%; height: auto; }
@media (max-width: 560px) {
  .lightbox-bar { flex-wrap: wrap; }
  .lightbox-title { width: 100%; }
}

/* ---------- Watch Our Work ---------- */
.video-selector {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
}
.video-selector button {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--heading);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.video-selector button:hover { border-color: var(--heading); }
.video-selector button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }

.video-featured { max-width: 1000px; margin: 0 auto; }
.video-secondary {
  max-width: 1000px;
  margin: 24px auto 0;
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) { .video-secondary { grid-template-columns: 1fr 1fr; } }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card {
  border-top: 4px solid #071B2E;
  background: #fff;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .video-card { background: var(--surface); border-top-color: var(--accent); }
.video-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px;
}
.video-card-title {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0;
}
.video-note { margin-top: 24px; text-align: center; font-size: 0.95rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-border);
  border-radius: var(--radius);
}
.price-table caption { text-align: left; }
.price-table th,
.price-table td {
  text-align: left;
  vertical-align: top;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.price-table thead th {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-alt);
}
.price-table tbody th { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--heading); }
.price-table .price { font-family: var(--font-display); font-size: 1.6rem; color: var(--heading); white-space: nowrap; }
.price-table .price small { display: block; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.price-table tr:last-child th,
.price-table tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tbody tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { border: 0; padding: 8px 20px; }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
    margin-bottom: 2px;
  }
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}
.callout p { margin: 0; }
.callout--strong p { font-family: var(--font-display); font-size: 1.3rem; color: var(--heading); line-height: 1.4; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.check-list svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 5px; }

/* ---------- FAQ accordion ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item h2,
.accordion-item h3 { margin: 0; font-size: inherit; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.accordion-trigger:hover { color: var(--heading); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.accordion-icon {
  flex: none;
  position: relative;
  width: 18px; height: 18px;
}
.accordion-icon::before,
.accordion-icon::after {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 18px; height: 2px; background: var(--accent);
  transition: transform .25s ease;
}
.accordion-icon::after { transform: rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: rotate(0); }
.accordion-panel { padding: 0 0 24px; max-width: 720px; }
.accordion-panel[hidden] { display: none; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .form-layout { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; } }

.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field label,
.field legend {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--heading);
  margin-bottom: 8px;
  padding: 0;
}
.field .opt { font-weight: 500; color: var(--muted); letter-spacing: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #b9bfc6;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
}
[data-theme="dark"] .field input[type="text"],
[data-theme="dark"] .field input[type="email"],
[data-theme="dark"] .field input[type="url"],
[data-theme="dark"] .field textarea { border-color: #3a5470; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--heading); box-shadow: 0 0 0 3px rgba(7,27,46,.12); outline: none; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field .hint { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; }
.field .error {
  display: none;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 6px 0 0;
}
[data-theme="dark"] .field .error { color: #ff9b8f; }
.field.has-error .error { display: block; }
.field.has-error input,
.field.has-error textarea { border-color: #b42318; }
[data-theme="dark"] .field.has-error input,
[data-theme="dark"] .field.has-error textarea { border-color: #ff9b8f; }

.choice-group { display: grid; gap: 12px; }
@media (min-width: 640px) { .choice-group { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid #b9bfc6;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
[data-theme="dark"] .choice { border-color: #3a5470; }
.choice:hover { border-color: var(--heading); }
.choice:has(input:checked) { border-color: var(--heading); box-shadow: inset 0 0 0 1px var(--heading); }
.choice input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
[data-theme="dark"] .choice input,
[data-theme="dark"] .consent input { accent-color: var(--accent); }
.choice strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; color: var(--heading); }
.choice span span { display: block; font-size: 0.94rem; color: var(--muted); }
.field label.choice { margin: 0; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; font-weight: 400; color: var(--text); }

.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.field .consent label { margin: 0; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; font-size: 1rem; color: var(--text); }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left-width: 4px;
}
.form-status[hidden] { display: none; }
.form-status h2,
.form-status h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-status--success { border-left-color: #2e7d4f; background: #f1f8f4; }
.form-status--error { border-left-color: #b42318; background: #fdf3f2; }
[data-theme="dark"] .form-status--success { background: #10281d; }
[data-theme="dark"] .form-status--error { background: #2c1514; }
.form-status:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.form-error-summary { color: #b42318; font-weight: 500; margin: 0; }
[data-theme="dark"] .form-error-summary { color: #ff9b8f; }
.form-error-summary[hidden] { display: none; }
.btn[disabled] { opacity: .65; cursor: progress; }

.side-note h2 { font-size: 1.5rem; }
.side-note .check-list { margin-bottom: 24px; }

/* ---------- Prose (policy pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { margin: 0 0 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .updated { font-family: var(--font-ui); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.details-list { margin: 0; padding: 0; border-top: 1px solid var(--border); }
.details-list div {
  display: grid;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) { .details-list div { grid-template-columns: 200px 1fr; } }
.details-list dt { font-family: var(--font-ui); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.details-list dd { margin: 0; font-size: 1.1rem; color: var(--heading); overflow-wrap: anywhere; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.link-list li:first-child { border-top: 1px solid var(--border); }
.link-list a { overflow-wrap: anywhere; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(72px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .cta-band { background: #0c1f33; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 620px; margin-inline: auto; margin-bottom: 32px; }
.cta-band .rule { background: var(--gold); }
.cta-band :focus-visible { outline-color: #f1dfb2; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.86);
  padding-top: clamp(56px, 8vw, 88px);
  font-size: 0.98rem;
}
[data-theme="dark"] .site-footer { background: #050d16; }
.site-footer a { color: #fff; text-decoration-color: rgba(198,160,75,.7); }
.site-footer a:hover { text-decoration-color: var(--gold); }
.site-footer :focus-visible { outline-color: #f1dfb2; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.footer-logo img { width: 150px; height: auto; }
.footer-about p { max-width: 360px; }
.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 22px;
  font-size: 0.88rem;
  color: rgba(255,255,255,.75);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.not-found .big { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); color: var(--heading); line-height: 1; margin-bottom: 12px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-media, .hero-control, .cta-band { display: none; }
}
