/* Operionis design system. Brand kit: navy #00205B, charcoal #2E2E2E, bone #F9F6F0,
   ivory #E8E2D6. Headings Cormorant Garamond, body Inter. Max 3 content colors per page. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-v21-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-v20-latin-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #00205B;
  --charcoal: #2E2E2E;
  --bone: #F9F6F0;
  --ivory: #E8E2D6;
  --card: #FFFFFF;
  --muted: rgba(46, 46, 46, 0.74);
  --bone-on-navy: rgba(249, 246, 240, 0.86);
  --hairline: rgba(0, 32, 91, 0.12);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --container: 1140px;
  --text-col: 720px;
  --radius: 6px;
  --shadow-card: 0 1px 2px rgba(0, 32, 91, 0.05);
  --shadow-lift: 0 10px 30px rgba(0, 32, 91, 0.10);
  --dur: 450ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'tnum' 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
p a, li a, .footer-col a { text-decoration: underline; text-decoration-color: var(--ivory); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color 150ms var(--ease); }
p a:hover, li a:hover, .footer-col a:hover { text-decoration-color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); margin: 0 0 0.5em; line-height: 1.12; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.5rem, 5.4vw, 4rem); letter-spacing: -0.01em; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-weight: 600; font-size: 1.375rem; }
p { margin: 0 0 1em; }
.num, .price { font-feature-settings: 'tnum' 1; font-variant-numeric: tabular-nums; }
::selection { background: var(--navy); color: var(--bone); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-text { max-width: var(--text-col); }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-h { margin-bottom: 32px; }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal);
  margin: 0 0 16px;
}
.eyebrow-on-dark { color: var(--bone-on-navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 1rem; font-weight: 600;
  background: var(--charcoal); color: #fff; border: 1px solid var(--charcoal);
  border-radius: var(--radius); padding: 14px 28px; cursor: pointer;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), filter 150ms var(--ease);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn-on-dark { background: var(--bone); color: var(--navy); border-color: var(--bone); }
.btn-on-dark:hover { filter: none; }
.btn-nav { padding: 10px 20px; font-size: 0.9375rem; }
.btn-text {
  background: none; border: 0; font: inherit; font-weight: 600; color: var(--navy);
  cursor: pointer; text-decoration: underline; text-decoration-color: var(--ivory);
  text-underline-offset: 3px; padding: 8px 4px;
}
.btn-text:hover { text-decoration-color: var(--navy); }
.link-quiet {
  font-weight: 600; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--ivory); text-underline-offset: 3px;
  transition: text-decoration-color 150ms var(--ease);
}
.link-quiet:hover { text-decoration-color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 246, 240, 0.92);
  border-bottom: 1px solid var(--ivory);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would make it the containing block for the fixed mobile drawer and clip it. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; transition: height 250ms var(--ease); }
.site-header.condensed .header-inner { height: 64px; }
.header-logo img { width: auto; height: 44px; transition: height 250ms var(--ease); }
.site-header.condensed .header-logo img { height: 36px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 0.9375rem; font-weight: 600; color: var(--charcoal);
  background: none; border: 0; cursor: pointer; font-family: var(--sans);
  padding: 6px 2px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: var(--navy); }
.nav-link.is-active, .nav-group.is-active .nav-group-btn { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
.nav-caret { transition: transform 200ms var(--ease); }
.nav-group { position: relative; }
.nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--card); border: 1px solid var(--ivory); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 10px; min-width: 200px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
}
/* invisible bridge across the 14px offset so the pointer can travel from the
   button into the menu without leaving the group (which would close it) */
.nav-drop::before {
  content: ''; position: absolute; left: -8px; right: -8px; top: -16px; height: 16px;
}
.nav-group.open .nav-drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-drop-link { font-size: 0.9375rem; font-weight: 600; color: var(--charcoal); padding: 9px 14px; border-radius: 4px; }
.nav-drop-link:hover { background: var(--bone); color: var(--navy); }
.nav-drop-link.is-active { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 12px 6px; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 6px 0; transition: transform 200ms var(--ease), opacity 200ms var(--ease); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; top: 0; padding: 110px 32px 32px;
    background: var(--bone); flex-direction: column; align-items: flex-start; gap: 8px;
    transform: translateX(100%); transition: transform 280ms var(--ease);
    overflow-y: auto; z-index: 1;
  }
  .nav-toggle { position: relative; z-index: 2; }
  body.nav-open .site-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-link { font-size: 1.25rem; padding: 10px 0; }
  /* static group label: without it the service links read as children of Home */
  .nav-group-btn {
    display: inline-flex; pointer-events: none;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
    padding: 14px 0 2px; box-shadow: none;
  }
  .nav-group-btn .nav-caret { display: none; }
  .nav-drop, .nav-group.open .nav-drop {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    border: 0; box-shadow: none; background: none; padding: 0 0 0 18px; min-width: 0;
  }
  .nav-drop-link { font-size: 1.0625rem; padding: 8px 0; }
  .btn-nav { margin-top: 18px; font-size: 1.0625rem; padding: 14px 28px; }
}

/* ---------- Heroes ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--bone-on-navy); overflow: hidden; }
.page-hero .hero-media { position: absolute; inset: 0; }
.page-hero .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.92);
}
/* The home hero image animates for 20s; an animated element must not carry a CSS
   filter chain (continuous re-rasterization froze the old build). The source
   photograph is natively black-and-white, so no filter is needed. */
.hero-home .hero-media img { filter: none; }
.page-hero .hero-media::after {
  content: ''; position: absolute; inset: 0;
  /* Achromatic scrim: the imagery spec forbids a colored navy duotone, so the
     darkening layer carries no hue. */
  background: linear-gradient(100deg, rgba(14, 14, 14, 0.88) 0%, rgba(19, 19, 19, 0.72) 55%, rgba(23, 23, 23, 0.5) 100%);
}
.page-hero-inner { position: relative; padding-top: 96px; padding-bottom: 96px; max-width: var(--container); }
.page-hero h1 { color: #fff; max-width: 16em; }
.hero-dek { font-size: 1.1875rem; max-width: 36em; color: var(--bone-on-navy); margin-top: 20px; }
.hero-rule { width: 72px; height: 2px; background: var(--ivory); margin-top: 28px; transform-origin: left; }
.hero-home { min-height: clamp(540px, 78vh, 760px); display: flex; align-items: center; }
.hero-home .page-hero-inner { width: 100%; }
.hero-home .page-hero-inner { padding-top: 120px; padding-bottom: 120px; }
.hero-cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.hero-alt-link { color: var(--bone-on-navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(232, 226, 214, 0.5); text-underline-offset: 3px; }
.hero-alt-link:hover { text-decoration-color: var(--ivory); }

/* hero signature: very slow scale, once (compositor-only: transform on a
   filter-free, promoted layer) */
.js-anim .hero-home .hero-media img { animation: hero-scale 20s ease-in-out forwards; will-change: transform; }
@keyframes hero-scale { from { transform: scale(1); } to { transform: scale(1.03); } }
.js-anim .hero-rule { transform: scaleX(0); animation: rule-draw 600ms var(--ease) 250ms forwards; }
@keyframes rule-draw { to { transform: scaleX(1); } }

/* fact strip under home hero */
.fact-strip { background: var(--card); border-bottom: 1px solid var(--ivory); }
.fact-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 28px; border-left: 1px solid var(--ivory); font-size: 0.9375rem; color: var(--muted); }
.fact:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 920px) {
  .fact-strip-inner { grid-template-columns: 1fr 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--ivory); padding: 18px 24px 18px 0; }
  .fact:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 640px) {
  .fact-strip-inner { grid-template-columns: 1fr; }
  .fact { padding: 14px 0; }
  .fact:nth-child(2) { border-top: 1px solid var(--ivory); }
}

/* ---------- Cards / doors ---------- */
.card {
  background: var(--card); border: 1px solid var(--ivory); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-card);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Four-question block ---------- */
.fourq { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ivory); border: 1px solid var(--ivory); border-radius: var(--radius); overflow: hidden; }
.fourq-cell { background: var(--card); padding: 32px 36px; }
.fourq-cell p { margin: 0; color: var(--charcoal); }
.fourq-q {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 12px;
}
@media (max-width: 820px) { .fourq { grid-template-columns: 1fr; } }

/* ---------- Engagement path (home) ---------- */
.path { position: relative; display: flex; flex-direction: column; gap: 20px; }
.path-step {
  display: grid; grid-template-columns: 84px 1fr; gap: 28px; align-items: start;
  background: var(--card); border: 1px solid var(--ivory); border-radius: var(--radius);
  padding: 34px 38px; position: relative;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
a.path-step { text-decoration: none; color: inherit; }
a.path-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.path-num {
  font-family: var(--serif); font-weight: 600; font-size: 3rem; line-height: 1;
  color: var(--navy); border-right: 1px solid var(--ivory); padding-right: 28px;
  /* lnum: Cormorant's old-style "1" reads as a serif capital I without it */
  font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.path-step h3 { margin-bottom: 8px; }
.path-step p { margin: 0; color: var(--muted); }
.path-go { font-weight: 600; color: var(--navy); white-space: nowrap; font-size: 0.9375rem; }
@media (max-width: 640px) {
  .path-step { grid-template-columns: 1fr; padding: 26px; gap: 12px; }
  .path-num { border-right: 0; border-bottom: 1px solid var(--ivory); padding: 0 0 12px; font-size: 2.25rem; }
}
.path-aside { border-left: 2px solid var(--ivory); padding: 6px 0 6px 26px; margin-top: 16px; color: var(--muted); }

/* ---------- Navy panels ---------- */
.panel-navy { background: var(--navy); color: var(--bone-on-navy); border-radius: var(--radius); padding: 56px 60px; }
.panel-navy h2, .panel-navy h3 { color: #fff; }
.panel-navy a { color: var(--ivory); }
.section-navy { background: var(--navy); color: var(--bone-on-navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: var(--ivory); }
@media (max-width: 640px) { .panel-navy { padding: 36px 28px; } }

/* ivory accent panel */
.panel-ivory { background: var(--ivory); border-radius: var(--radius); padding: 48px 52px; }
.panel-ivory h2, .panel-ivory h3 { color: var(--navy); }
@media (max-width: 640px) { .panel-ivory { padding: 32px 26px; } }

/* Editorial measure: prose never exceeds ~68 characters, whatever its ground. */
.mandate p, .panel-navy p, .panel-navy li, .panel-ivory p,
.stack-item p, .container-text p, .container-text li { max-width: 66ch; }

/* ---------- Proof quotes ---------- */
.proof { border-left: 2px solid var(--navy); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; padding: 32px 36px; margin: 0; }
.proof strong { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 10px; line-height: 1.25; }
.proof p { margin: 0; color: var(--muted); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--ivory); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--ivory); font-size: 0.9375rem; }
.compare thead th { border-top: 0; font-family: var(--serif); font-size: 1.375rem; font-weight: 600; color: var(--navy); background: var(--bone); }
.compare tbody th { font-weight: 600; color: var(--navy); font-family: var(--sans); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; width: 17%; }
.compare .col-op { background: rgba(232, 226, 214, 0.38); border-left: 2px solid var(--navy); border-right: 2px solid var(--navy); }
.compare thead .col-op { border-top: 2px solid var(--navy); background: var(--ivory); }
.compare tbody tr:last-child .col-op { border-bottom: 2px solid var(--navy); }
@media (max-width: 820px) {
  table.compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; left: -9999px; }
  .compare tr { border-top: 1px solid var(--ivory); padding: 10px 0; }
  .compare tbody th { width: auto; padding: 14px 22px 2px; }
  .compare td { border-top: 0; padding: 10px 22px; }
  .compare td::before { content: attr(data-th); display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .compare .col-op { border-left: 2px solid var(--navy); border-right: 0; }
  .compare thead .col-op, .compare tbody tr:last-child .col-op { border-top: 0; border-bottom: 0; }
}

/* ---------- Stack list (diagnostic) / method sequence ---------- */
.stack { counter-reset: stack; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--ivory); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stack-item { counter-increment: stack; display: grid; grid-template-columns: 76px 1fr; gap: 24px; padding: 28px 34px; border-top: 1px solid var(--ivory); }
.stack-item:first-child { border-top: 0; }
.stack-item::before {
  content: counter(stack, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--navy);
  opacity: 0.55; line-height: 1.3; font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.stack-item h3 { font-size: 1.375rem; margin-bottom: 6px; }
.stack-item p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .stack-item { grid-template-columns: 44px 1fr; padding: 22px 20px; gap: 14px; } }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--ivory); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.faq-item { border-top: 1px solid var(--ivory); }
.faq-item:first-child { border-top: 0; }
.faq-q { margin: 0; }
.faq-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: 1.375rem; font-weight: 600; color: var(--navy);
  padding: 22px 28px; line-height: 1.3;
}
.faq-btn:hover { background: var(--bone); }
.faq-icon { flex: 0 0 auto; transition: transform 220ms var(--ease); }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 280ms var(--ease); }
.faq-panel[data-closed] { grid-template-rows: 0fr; }
.faq-panel-inner { overflow: hidden; }
.faq-panel-inner p { padding: 0 28px 24px; margin: 0; color: var(--muted); max-width: 60em; }

/* ---------- Ratio bands (self-test) ---------- */
.bands { display: flex; flex-direction: column; gap: 1px; background: var(--ivory); border: 1px solid var(--ivory); border-radius: var(--radius); overflow: hidden; }
.band { background: var(--card); display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 24px 30px; }
.band-k { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); font-feature-settings: 'tnum' 1, 'lnum' 1; }
.band p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .band { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Divider image ---------- */
.divider-img { position: relative; height: 320px; overflow: hidden; }
.divider-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.96) sepia(0.05); }
@media (max-width: 640px) { .divider-img { height: 200px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); padding: 72px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band-line { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; color: #fff; margin: 0; max-width: 22em; line-height: 1.25; text-wrap: balance; }

/* ---------- Forms (MailerLite overrides + fallback) ---------- */
.form-panel { background: var(--card); border: 1px solid var(--ivory); border-radius: var(--radius); padding: 40px 44px; }
.form-panel h2 { margin-bottom: 8px; }
@media (max-width: 640px) { .form-panel { padding: 26px 22px; } }
.consent-fallback { color: var(--muted); }
.consent-fallback .btn { margin-top: 10px; }

/* MailerLite embedded form, brand restyle. .ml-form-* class names are stable targets. */
.ml-embedded { display: block; }
.ml-embedded .ml-form-embedContainer, .ml-embedded .ml-form-align-center { margin: 0 !important; }
.ml-embedded .ml-form-embedWrapper { background: transparent !important; border: 0 !important; border-radius: 0 !important; max-width: 100% !important; }
.ml-embedded .ml-form-embedBody { padding: 0 !important; }
/* The page supplies its own brand-styled title and description above the embed;
   hide the form's internal copy of them (success body keeps its own text). */
.ml-embedded .ml-form-embedBody .ml-form-embedContent { display: none !important; }
.ml-embedded h4 { font-family: var(--serif) !important; color: var(--navy) !important; font-size: 1.375rem !important; font-weight: 600 !important; }
.ml-embedded .ml-form-embedContent p, .ml-embedded p, .ml-embedded label { font-family: var(--sans) !important; color: var(--charcoal) !important; }
.ml-embedded input[type="email"], .ml-embedded input[type="text"] {
  font-family: var(--sans) !important; background: var(--bone) !important;
  border: 1px solid var(--ivory) !important; border-radius: var(--radius) !important;
  color: var(--charcoal) !important; padding: 13px 16px !important; font-size: 1rem !important;
}
.ml-embedded input:focus { border-color: var(--navy) !important; }
.ml-embedded button[type="submit"], .ml-embedded .primary {
  font-family: var(--sans) !important; font-weight: 600 !important;
  background: var(--charcoal) !important; color: #fff !important;
  border: 1px solid var(--charcoal) !important; border-radius: var(--radius) !important;
  padding: 13px 26px !important; font-size: 1rem !important; cursor: pointer;
}
.ml-embedded button[type="submit"]:hover { filter: brightness(1.08); }
.ml-embedded a { color: var(--navy) !important; }
.ml-embedded .ml-form-successBody p { font-family: var(--sans) !important; color: var(--charcoal) !important; }

/* ---------- Insights list ---------- */
.res-list { display: flex; flex-direction: column; gap: 1px; background: var(--ivory); border: 1px solid var(--ivory); border-radius: var(--radius); overflow: hidden; }
.res-row { background: var(--card); padding: 26px 32px; display: grid; grid-template-columns: 130px 1fr; gap: 24px; align-items: baseline; }
.res-tag { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.res-row h3 { font-size: 1.375rem; margin-bottom: 4px; font-style: italic; font-weight: 600; }
.res-row p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .res-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.about-portrait img { filter: grayscale(1) contrast(1.04); border-radius: var(--radius); }
.about-portrait figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } .about-portrait { max-width: 380px; } }

/* ---------- Trust mandates ---------- */
.mandates { display: flex; flex-direction: column; gap: 20px; }
.mandate { background: var(--card); border: 1px solid var(--ivory); border-left: 2px solid var(--navy); border-radius: var(--radius); padding: 30px 36px; }
.mandate h2 { font-size: 1.4375rem; margin-bottom: 8px; }
.mandate p { margin: 0; color: var(--muted); }

/* credentials */
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.creds ul { margin: 0; padding-left: 18px; color: var(--muted); }
.creds li { margin-bottom: 6px; }
@media (max-width: 820px) { .creds { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--card); border-top: 1px solid var(--ivory); padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr 1fr; gap: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-col a { color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.footer-col a:hover { color: var(--navy); }
.footer-wordmark { width: 150px; height: auto; }
.footer-line { color: var(--muted); font-size: 0.9375rem; max-width: 26em; margin: 14px 0 6px; }
.footer-social { color: var(--navy); }
.footer-h { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin: 0 0 6px; }
.footer-h-gap { margin-top: 18px; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 0.9375rem; color: var(--muted); cursor: pointer; text-align: left; }
.footer-link-btn:hover { color: var(--navy); }
.footer-base { border-top: 1px solid var(--ivory); margin-top: 40px; padding-top: 22px; }
.footer-base p { font-size: 0.8125rem; color: var(--muted); margin: 0; }
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col a { overflow-wrap: anywhere; }
}
@media (max-width: 430px) {
  .footer-grid { gap: 24px; }
  .footer-col a, .footer-link-btn { font-size: 0.875rem; }
  .footer-email { white-space: nowrap; font-size: 0.8125rem; }
}

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 90;
  display: flex; justify-content: center;
}
.consent-inner {
  background: var(--card); border: 1px solid var(--ivory); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); padding: 22px 28px; max-width: 760px;
  display: flex; align-items: center; gap: 28px;
}
.consent-inner p { margin: 0; font-size: 0.9375rem; color: var(--charcoal); }
.consent-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.btn-consent { padding: 11px 22px; font-size: 0.9375rem; }
@media (max-width: 640px) { .consent-inner { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* ---------- 404 ---------- */
.notfound { min-height: clamp(380px, 55vh, 560px); display: flex; align-items: center; }

/* ---------- Reveals (progressive enhancement, JS adds .js-anim to <html>) ---------- */
.js-anim .rv { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js-anim .rv.rv-in { opacity: 1; transform: none; }
.js-anim .rv-group > .rv:nth-child(2) { transition-delay: 70ms; }
.js-anim .rv-group > .rv:nth-child(3) { transition-delay: 140ms; }
.js-anim .rv-group > .rv:nth-child(4) { transition-delay: 210ms; }
.js-anim .rv-group > .rv:nth-child(5) { transition-delay: 280ms; }
.js-anim .rv-group > .rv:nth-child(6) { transition-delay: 350ms; }

/* ---------- Reduced motion: kill everything non-essential ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-anim .rv { opacity: 1; transform: none; }
  .js-anim .hero-home .hero-media img { animation: none !important; }
  .js-anim .hero-rule { transform: none; animation: none !important; }
}

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