/* ==========================================================================
   ASCENDEX FINANCE — Design System
   Ink navy ground, bone paper, brass signal, verdigris patina.
   Newsreader (display, variable optical size) + Public Sans (UI/body).

   01 Tokens          08 Language switcher   15 Insights
   02 Reset & base    09 Hero — video        16 Forms & auth
   03 Typography      10 Hero — image        17 CTA band
   04 Motion          11 Media & editorial   18 Footer
   05 Layout          12 Cards & process     19 Modal
   06 Buttons         13 Opportunities       20 Utilities
   07 Header & nav    14 FAQ/compare/flow    21 Responsive
                                             22 Reduced motion & print
   ========================================================================== */

/* --------------------------------------------------------------------------
   01  TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ground */
  --ink-deep: #060A11;
  --ink: #0B111C;
  --ink-soft: #16202F;
  --ink-raised: #1D2939;

  /* Paper */
  --paper: #F5F2EC;
  --paper-dim: #EAE5DA;
  --paper-warm: #EFEAE0;

  /* Accents */
  --brass: #A9822F;
  --brass-bright: #D0A44A;
  --brass-pale: #E8D4A4;
  --verdigris: #2E5A55;
  --verdigris-bright: #4A857D;

  /* Rules */
  --line: #D6D0C0;
  --line-strong: #C2BAA6;
  --line-on-ink: rgba(245, 242, 236, 0.14);
  --line-on-ink-strong: rgba(245, 242, 236, 0.26);

  /* Text */
  --text: #14181F;
  --text-muted: #545963;
  --text-faint: #7A7F89;
  --text-on-ink: #F5F2EC;
  --text-on-ink-muted: #A9B0BE;

  /* Status */
  --ok: #3F6B4E;
  --warn: #8A5A20;
  --danger: #A13F3F;

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-h1: clamp(2.6rem, 5.2vw, 4.6rem);
  --fs-h2: clamp(1.95rem, 3.1vw, 2.9rem);
  --fs-h3: clamp(1.32rem, 1.7vw, 1.65rem);
  --fs-h4: clamp(1.08rem, 1vw, 1.18rem);
  --fs-lede: clamp(1.06rem, 1.25vw, 1.28rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* Space */
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --section-y: clamp(64px, 8vw, 116px);

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1440px;
  --header-h: 76px;
  --radius: 3px;
  --radius-lg: 5px;
  --radius-pill: 100px;

  /* Elevation — warm and low, never grey mush */
  --shadow-sm: 0 1px 2px rgba(11, 17, 28, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(11, 17, 28, 0.22);
  --shadow-lg: 0 28px 64px -24px rgba(11, 17, 28, 0.38);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 620ms;
}

/* --------------------------------------------------------------------------
   02  RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* belt-and-braces against horizontal scroll */
}

img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.image-band :focus-visible,
.auth-aside :focus-visible { outline-color: var(--brass-bright); }

::selection { background: var(--brass-pale); color: var(--ink); }

/* --------------------------------------------------------------------------
   03  TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  font-weight: 450;
  letter-spacing: -0.022em;
  line-height: 1.04;
  font-variation-settings: "opsz" 60;
}
h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.016em;
  line-height: 1.1;
  font-variation-settings: "opsz" 36;
}
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: 66ch; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.lede { font-size: var(--fs-lede); line-height: 1.55; max-width: 58ch; color: var(--text-muted); }

/* Eyebrow: sentence case with a short rule marking a section start */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
  opacity: 0.8;
}
.section-head.center .eyebrow { justify-content: center; }

/* Pull quote — the one place the serif gets to perform */
.pull-quote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  line-height: 1.34;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 30;
  color: var(--ink);
  max-width: 34ch;
}
.pull-quote-attr {
  display: block;
  margin-top: 18px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
}
.pull-quote-attr span { display: block; margin-top: 3px; font-weight: 400; color: var(--text-faint); }

/* Dark-ground inversion */
.on-ink { background: var(--ink); color: var(--text-on-ink); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4, .on-ink h5 { color: var(--text-on-ink); }
.on-ink p, .on-ink .lede { color: var(--text-on-ink-muted); }
.on-ink .eyebrow { color: var(--brass-bright); }
.on-ink .pull-quote { color: var(--text-on-ink); }
.on-ink .small { color: var(--text-on-ink-muted); }

.on-paper-dim { background: var(--paper-dim); }
.on-paper-warm { background: var(--paper-warm); }

/* --------------------------------------------------------------------------
   04  MOTION
   IntersectionObserver adds .is-visible. Travel is deliberately small (14px)
   so it reads as settling rather than sliding.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal="left"]  { transform: translate3d(-18px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(18px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(0.985); }
.js [data-reveal="none"]  { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal].is-settled { will-change: auto; }

.js [data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-stagger].is-visible > * { opacity: 1; transform: none; }

/* A rule that draws itself — used once, under the hero masthead */
.rule-draw {
  height: 1px;
  background: var(--brass);
}
.js .rule-draw {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1100ms var(--ease-out);
}
.rule-draw.is-visible { transform: scaleX(1); }

/* Image reveal — the mask lifts off the picture */
.media-reveal { position: relative; overflow: hidden; }
.js .media-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: bottom center;
  transform: scaleY(1);
  transition: transform 900ms var(--ease-out);
}
.js .on-ink .media-reveal::after,
.js .media-reveal.on-dark::after { background: var(--ink); }
.js .media-reveal.is-visible::after,
.js .is-visible .media-reveal::after { transform: scaleY(0); }

/* --------------------------------------------------------------------------
   05  LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-flush { padding-block: 0; }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }
.divider-ink { border: none; border-top: 1px solid var(--line-on-ink); margin: 0; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-asym { grid-template-columns: 1.3fr 1fr; }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.42em; }
.section-head p:last-of-type { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   06  BUTTONS
   Micro-interaction: a translucent wash sweeps in from the leading edge.
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 27px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: currentColor;
  opacity: 0;
  transform: translateX(-101%);
  transition: transform 420ms var(--ease-out), opacity 420ms var(--ease-out);
}
.btn:hover::before { opacity: 0.1; transform: translateX(0); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); box-shadow: var(--shadow-md); }

.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-bright); box-shadow: 0 12px 30px -14px rgba(169, 130, 47, 0.75); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-outline:hover::before { opacity: 0; }

.btn-outline-ink {
  border-color: var(--line-on-ink-strong);
  color: var(--text-on-ink);
  background: transparent;
}
.btn-outline-ink:hover { border-color: var(--brass-bright); color: var(--brass-pale); }

.btn-ghost { color: var(--ink); padding: 12px 6px; min-height: 44px; }
.btn-ghost::before { display: none; }
.btn-ghost:hover { color: var(--brass); }

.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Text link with an underline that grows from the leading edge */
.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  color: var(--brass);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   07  HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.prototype-banner {
  position: relative;
  z-index: 120;
  padding: 9px 20px;
  background: var(--brass);
  color: var(--ink);
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.45;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: rgba(245, 242, 236, 0.9);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* Transparent over a hero, resolving to solid once scrolled */
.site-header.is-overlay {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header.is-overlay .logo,
.site-header.is-overlay .nav-link,
.site-header.is-overlay .btn-ghost,
.site-header.is-overlay .lang-toggle { color: var(--text-on-ink); }
.site-header.is-overlay .nav-link:hover,
.site-header.is-overlay .btn-ghost:hover,
.site-header.is-overlay .lang-toggle:hover { color: var(--brass-pale); }
.site-header.is-overlay .lang-toggle { border-color: var(--line-on-ink-strong); }
.site-header.is-overlay .menu-toggle span,
.site-header.is-overlay .menu-toggle::before,
.site-header.is-overlay .menu-toggle::after { background: var(--text-on-ink); }
.site-header.is-overlay .nav-link::after { background: var(--brass-bright); }
.site-header.is-overlay .nav-link[aria-current="page"] { color: var(--brass-pale); }

.site-header.is-scrolled {
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(11, 17, 28, 0.04), 0 8px 24px -18px rgba(11, 17, 28, 0.3);
}
.site-header.is-overlay.is-scrolled .nav-link,
.site-header.is-overlay.is-scrolled .btn-ghost,
.site-header.is-overlay.is-scrolled .lang-toggle { color: var(--text); }
.site-header.is-overlay.is-scrolled .logo { color: var(--ink); }
.site-header.is-overlay.is-scrolled .nav-link:hover,
.site-header.is-overlay.is-scrolled .btn-ghost:hover,
.site-header.is-overlay.is-scrolled .lang-toggle:hover { color: var(--brass); }
.site-header.is-overlay.is-scrolled .lang-toggle { border-color: var(--line); }
.site-header.is-overlay.is-scrolled .menu-toggle span,
.site-header.is-overlay.is-scrolled .menu-toggle::before,
.site-header.is-overlay.is-scrolled .menu-toggle::after { background: var(--ink); }
.site-header.is-overlay.is-scrolled .nav-link[aria-current="page"] { color: var(--brass); }

/* Pull the leading hero up under a transparent header */
body.has-overlay-nav #main > .hero:first-child,
body.has-overlay-nav #main > .page-hero:first-child {
  margin-top: calc(-1 * var(--header-h));
}

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

.logo {
  flex: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  transition: color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.logo span { color: var(--brass); }
.logo em {
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.72;
}
.logo:hover { opacity: 0.82; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--dur-fast) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease-out);
}
.nav-link:hover { color: var(--brass); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--brass); font-weight: 600; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Dropdown */
.nav-item.has-dropdown > .nav-link { padding-right: 26px; }
.nav-item.has-dropdown > .nav-link::before {
  content: "";
  position: absolute;
  right: 12px; top: 50%;
  width: 5px; height: 5px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
  transition: transform var(--dur) var(--ease);
}
.nav-item.has-dropdown:hover > .nav-link::before,
.nav-item.has-dropdown:focus-within > .nav-link::before { transform: rotate(45deg) translate(1px, 1px); }

.dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 6px;
  min-width: 262px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease-out),
    visibility var(--dur) linear;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 11px 14px;
  font-size: 0.91rem;
  color: var(--text);
  border-radius: var(--radius);
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    padding-left var(--dur-fast) var(--ease);
}
.dropdown a:hover { background: var(--paper-dim); color: var(--brass); padding-left: 18px; }

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

/* Hamburger */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  flex: none;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.menu-toggle span { top: 21px; }
.menu-toggle::before { top: 14px; }
.menu-toggle::after { top: 28px; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 105;
  padding-top: calc(var(--header-h) + 12px);
  background: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity var(--dur) var(--ease),
    transform 420ms var(--ease-out),
    visibility var(--dur) linear;
}
.mobile-panel.open { opacity: 1; visibility: visible; transform: none; }
.mobile-panel .container { padding-block: 8px 40px; }

.mobile-panel .nav-link {
  padding: 16px 2px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-on-ink);
  border-bottom: 1px solid var(--line-on-ink);
  border-radius: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.mobile-panel .nav-link::after { display: none; }
.mobile-panel.open .nav-link { opacity: 1; transform: none; }
.mobile-panel .nav-link[aria-current="page"] { color: var(--brass-bright); }

.mobile-sub {
  margin: 8px 0 8px 2px;
  padding: 6px 0 10px 18px;
  border-left: 1px solid var(--line-on-ink);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.mobile-panel.open .mobile-sub { opacity: 1; transform: none; }
.mobile-sub a {
  display: block;
  padding: 11px 4px;
  font-size: 0.94rem;
  color: var(--text-on-ink-muted);
  transition: color var(--dur-fast) var(--ease);
}
.mobile-sub a:hover { color: var(--brass-bright); }

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.mobile-panel.open .mobile-actions { opacity: 1; transform: none; }
.mobile-actions .btn-outline { border-color: var(--line-on-ink-strong); color: var(--text-on-ink); }
.mobile-actions .btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.mobile-lang { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-on-ink); }
.mobile-lang > span {
  display: block;
  margin-bottom: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brass-bright);
}

body.nav-open { overflow: hidden; }

.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 13px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   08  LANGUAGE SWITCHER
   -------------------------------------------------------------------------- */
.lang { position: relative; flex: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.lang-toggle:hover { border-color: var(--brass); color: var(--brass); }
.lang-toggle svg { width: 15px; height: 15px; flex: none; }
.lang-toggle .lang-code { letter-spacing: 0.04em; }
.lang-toggle .lang-caret {
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.65;
  transition: transform var(--dur) var(--ease);
}
.lang-toggle[aria-expanded="true"] .lang-caret { transform: rotate(-135deg) translateY(-1px); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 130;
  width: max-content;
  min-width: 210px;
  max-width: calc(100vw - 32px); /* never widen the viewport */
  max-height: min(60vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease-out),
    visibility var(--dur) linear;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }

.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: var(--radius);
  text-align: left;
  font-size: 0.9rem;
  color: var(--text);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-menu button:hover { background: var(--paper-dim); color: var(--brass); }
.lang-menu button[aria-selected="true"] { color: var(--brass); font-weight: 600; }
.lang-menu button[aria-selected="true"]::after { content: "\2713"; font-size: 0.85rem; }
.lang-menu .lang-native { color: var(--text-faint); font-size: 0.82rem; }
.lang-menu button:hover .lang-native { color: inherit; }

.lang-note {
  max-width: 240px;
  margin-top: 4px;
  padding: 9px 12px 5px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-faint);
}

/* Inside the mobile drawer the list is static and full width */
.mobile-lang .lang { width: 100%; }
.mobile-lang .lang-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  max-width: 100%;
  max-height: none;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--line-on-ink);
  box-shadow: none;
}
.mobile-lang .lang-menu button { color: var(--text-on-ink-muted); }
.mobile-lang .lang-menu button:hover { background: rgba(245, 242, 236, 0.08); color: var(--brass-bright); }
.mobile-lang .lang-menu button[aria-selected="true"] { color: var(--brass-bright); }
.mobile-lang .lang-note { max-width: none; border-top-color: var(--line-on-ink); color: var(--text-on-ink-muted); }

/* Right-to-left, applied when an RTL language is selected */
html[dir="rtl"] .eyebrow::before { order: 2; }
html[dir="rtl"] .lang-menu { left: 0; right: auto; }
html[dir="rtl"] .rule-draw,
html[dir="rtl"] .link-underline::after,
html[dir="rtl"] .focus-card::before { transform-origin: right center; }
html[dir="rtl"] .btn::before { transform: translateX(101%); }
html[dir="rtl"] .risk-callout {
  border-left: none;
  border-right: 3px solid var(--brass);
  border-radius: var(--radius) 0 0 var(--radius);
}
html[dir="rtl"] .mobile-sub { border-left: none; border-right: 1px solid var(--line-on-ink); padding: 6px 18px 10px 0; }
html[dir="rtl"] .fact-list li span { text-align: left; }
html[dir="rtl"] .lang-menu button { text-align: right; }

/* --------------------------------------------------------------------------
   09  HERO — VIDEO (homepage)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 640px;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(48px, 10vh, 120px));
  padding-bottom: clamp(48px, 9vh, 104px);
  background: var(--ink-deep);
  color: var(--text-on-ink);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  /* the poster shows instantly and stands in if the video never arrives */
  background: var(--ink-deep) url("../images/hero-poster.jpg") center / cover no-repeat;
  background-image: image-set(url("../images/hero-poster.webp") type("image/webp"), url("../images/hero-poster.jpg") type("image/jpeg"));
}
.hero-media video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
}
.hero-media.is-playing video { opacity: 1; }
/* If video is absent or blocked, drift the poster instead */
.hero-media.no-video { animation: heroDrift 34s var(--ease) infinite alternate; }
@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 10, 17, 0.94) 0%, rgba(6, 10, 17, 0.62) 38%, rgba(6, 10, 17, 0.24) 66%, rgba(6, 10, 17, 0.5) 100%),
    radial-gradient(120% 90% at 72% 46%, rgba(169, 130, 47, 0.16) 0%, transparent 62%);
}
/* Fine ruling over the plate — engineered, not decorative */
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(245, 242, 236, 0.045) 0 1px,
    transparent 1px 4px
  );
}

.hero-content { position: relative; z-index: 1; max-width: 100%; }
.hero-content h1 {
  margin-bottom: 0.34em;
  color: var(--text-on-ink);
  text-shadow: 0 1px 40px rgba(6, 10, 17, 0.5);
}
.hero-content .lede { max-width: 52ch; color: rgba(245, 242, 236, 0.86); }
.hero-content .eyebrow { color: var(--brass-bright); }

.hero-rule { max-width: 220px; margin: 26px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: 26px;
  border-top: 1px solid var(--line-on-ink-strong);
}
.hero-meta > div { min-width: 0; }
.hero-meta strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text-on-ink);
}
.hero-meta span { display: block; font-size: 0.87rem; line-height: 1.55; color: var(--text-on-ink-muted); }

/* From tablet up the hero becomes a 12-column field: the masthead takes two
   thirds, the lede sits on a shorter measure, and the meta row spans the full
   width so the right-hand side is not left empty. */
@media (min-width: 921px) {
  .hero-content {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(20px, 2.4vw, 32px);
    row-gap: 0;
    align-items: start;
  }
  .hero-content > * { grid-column: 1 / span 8; }
  .hero-content > .hero-rule { grid-column: 1 / span 3; max-width: none; }
  .hero-content > .lede { grid-column: 1 / span 7; max-width: 58ch; }
  .hero-content > .hero-meta { grid-column: 1 / -1; }
}
@media (min-width: 1400px) {
  .hero-content > * { grid-column: 1 / span 7; }
  .hero-content > .lede { grid-column: 1 / span 6; }
  .hero-content > .hero-meta { grid-column: 1 / -1; }
}

/* Scroll cue — the only looping animation on the page */
.hero-cue {
  position: absolute;
  right: clamp(20px, 4vw, 40px);
  bottom: clamp(24px, 5vh, 48px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-on-ink-muted);
}
.hero-cue i {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--brass-bright));
  transform-origin: top center;
  animation: cueDraw 2.6s var(--ease) infinite;
}
@keyframes cueDraw {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   10  HERO — IMAGE (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(400px, 62vh, 620px);
  padding-top: calc(var(--header-h) + clamp(56px, 9vh, 104px));
  padding-bottom: clamp(44px, 7vh, 76px);
  background: var(--ink);
  color: var(--text-on-ink);
  overflow: hidden;
}
.page-hero-media {
  position: absolute;
  inset: -8% 0;  /* bleed so parallax never exposes an edge */
  z-index: -2;
  background-color: var(--ink-deep);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}
.page-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 10, 17, 0.95) 0%, rgba(6, 10, 17, 0.7) 42%, rgba(6, 10, 17, 0.38) 100%),
    linear-gradient(to right, rgba(6, 10, 17, 0.7) 0%, transparent 62%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 62ch; }
.page-hero h1 { margin-bottom: 0.32em; color: var(--text-on-ink); }
.page-hero .lede { color: rgba(245, 242, 236, 0.84); }
.page-hero .eyebrow { color: var(--brass-bright); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: var(--fs-xs);
  color: var(--text-on-ink-muted);
}
.breadcrumb a { transition: color var(--dur-fast) var(--ease); }
.breadcrumb a:hover { color: var(--brass-bright); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--brass-pale); }

/* Softens the join from a dark hero into paper content */
.section-lift { position: relative; }
.section-lift::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(6, 10, 17, 0.06), transparent);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   11  MEDIA & EDITORIAL
   -------------------------------------------------------------------------- */
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: inherit;
  pointer-events: none;
}
.media-frame.offset { box-shadow: 18px 18px 0 -1px rgba(169, 130, 47, 0.16), var(--shadow-md); }
.media-frame.tall { aspect-ratio: 3 / 4; }
.media-frame.wide { aspect-ratio: 16 / 9; }
.media-frame.square { aspect-ratio: 1 / 1; }

/* Editorial split: picture and prose alternating down the page */
.editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.editorial-body, .editorial-media { min-width: 0; }
.editorial.reverse .editorial-media { order: 2; }
.editorial + .editorial { margin-top: clamp(48px, 7vw, 104px); }
.editorial-body h2 { margin-bottom: 0.44em; }
.editorial-body .btn-row,
.editorial-body > .link-underline { margin-top: 22px; }

/* Hairline-separated facts rather than bullet soup */
.fact-list { margin-top: 26px; border-top: 1px solid var(--line); }
.on-ink .fact-list, .auth-aside .fact-list { border-top-color: var(--line-on-ink); }
.fact-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.fact-list li b { font-weight: 600; color: var(--ink); }
.fact-list li span { color: var(--text-muted); text-align: right; }
.on-ink .fact-list li,
.auth-aside .fact-list li { border-bottom-color: var(--line-on-ink); color: var(--text-on-ink-muted); }
.on-ink .fact-list li b,
.auth-aside .fact-list li b { color: var(--text-on-ink); }
.on-ink .fact-list li span,
.auth-aside .fact-list li span { color: var(--brass-pale); }

/* Image card — a picture carrying a heading and a link */
.image-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--text-on-ink);
  text-align: left;
}
.image-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(6, 10, 17, 0.93) 6%, rgba(6, 10, 17, 0.5) 48%, rgba(6, 10, 17, 0.18) 100%);
  transition: opacity var(--dur) var(--ease);
}
.image-card > * { position: relative; }
.image-card .tag {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 5px 11px;
  border: 1px solid var(--line-on-ink-strong);
  border-radius: var(--radius-pill);
  background: rgba(6, 10, 17, 0.4);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--brass-pale);
}
.image-card h3 { margin: 20px 0 8px; color: var(--text-on-ink); }
.image-card p { margin-bottom: 0; font-size: var(--fs-sm); color: var(--text-on-ink-muted); }
.image-card .link-underline { margin-top: 16px; color: var(--brass-pale); }
.image-card:hover img { transform: scale(1.055); }
a.image-card:hover::before { opacity: 0.88; }
a.image-card:focus-visible { outline-offset: 4px; }

/* Mixed-size figure grid — avoids identical-card monotony */
.figure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.figure-grid > * { min-width: 0; }
.figure-grid .span-2 { grid-column: span 2; }
.figure-grid .row-2 { grid-row: span 2; }

figure { margin: 0; }
figcaption {
  max-width: 46ch;
  margin-top: 12px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--text-faint);
}
.on-ink figcaption { color: var(--text-on-ink-muted); }

/* Full-bleed band with an image behind it */
.image-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 11vw, 148px);
  background: var(--ink);
  color: var(--text-on-ink);
  overflow: hidden;
}
.image-band-media {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  will-change: transform;
}
.image-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(6, 10, 17, 0.92) 0%, rgba(6, 10, 17, 0.72) 50%, rgba(6, 10, 17, 0.5) 100%);
}
.image-band h2, .image-band h3 { color: var(--text-on-ink); }
.image-band .pull-quote,
.on-ink .pull-quote { color: var(--text-on-ink); }
.image-band .pull-quote-attr,
.on-ink .pull-quote-attr { color: var(--brass-pale); }
.image-band .pull-quote-attr span,
.on-ink .pull-quote-attr span { color: var(--text-on-ink-muted); }
.image-band p, .image-band .lede { color: var(--text-on-ink-muted); }
.image-band .eyebrow { color: var(--brass-bright); }

/* --------------------------------------------------------------------------
   12  CARDS & PROCESS
   -------------------------------------------------------------------------- */
.panel {
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.panel:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.panel :is(h3, h4) { margin-bottom: 9px; }
.panel p { margin-bottom: 0; font-size: var(--fs-sm); }
.panel-ink { background: var(--ink-soft); border-color: var(--line-on-ink); }
.panel-ink :is(h3, h4) { color: var(--text-on-ink); }
.panel-ink p { color: var(--text-on-ink-muted); }
.panel-ink:hover { border-color: var(--line-on-ink-strong); }

/* Brass hairline sweeps the top edge on hover */
.focus-card {
  position: relative;
  padding: clamp(24px, 2.8vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.focus-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 460ms var(--ease-out);
}
.focus-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.focus-card:hover::before { transform: scaleX(1); }
.focus-card .tag { display: block; margin-bottom: 12px; font-size: 0.77rem; font-weight: 600; color: var(--brass); }
.focus-card h3 { margin-bottom: 10px; }
.focus-card p { margin-bottom: 0; font-size: var(--fs-sm); }
.focus-card .link-underline { margin-top: 16px; }

/* Enumerated benefit — used only where content really is a list of items */
.benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.on-ink .benefit { border-bottom-color: var(--line-on-ink); }
.benefit-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.benefit :is(h3, h4) { margin-bottom: 6px; }
.benefit p { margin-bottom: 0; font-size: var(--fs-sm); }

/* Process steps */
.steps { border-top: 1px solid var(--line); }
.on-ink .steps { border-top-color: var(--line-on-ink); }
.step-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(22px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.on-ink .step-row { border-bottom-color: var(--line-on-ink); }
.step-row:hover { background: rgba(169, 130, 47, 0.045); }
.step-num {
  padding-top: 3px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 450;
  line-height: 1;
  color: var(--brass);
}
.step-row :is(h3, h4) { margin-bottom: 7px; }
.step-row p { margin-bottom: 0; font-size: var(--fs-sm); }

/* Illustrative testimonial — labelled as such, this is a prototype */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(26px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.quote-card:hover { border-color: var(--brass); box-shadow: var(--shadow-md); }
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote-card blockquote::before { content: "\201C"; color: var(--brass); }
.quote-card blockquote::after { content: "\201D"; color: var(--brass); }
.quote-card figcaption {
  max-width: none;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.quote-card figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   13  OPPORTUNITIES
   -------------------------------------------------------------------------- */
.opp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: clamp(16px, 2vw, 22px);
  margin-bottom: clamp(28px, 3vw, 40px);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.opp-toolbar select,
.opp-toolbar input[type="search"] {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.opp-toolbar select:focus,
.opp-toolbar input[type="search"]:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169, 130, 47, 0.14);
  outline: none;
}
.opp-count { flex: 0 0 auto; margin-left: auto; font-size: 0.87rem; font-weight: 600; color: var(--text-muted); }

.opp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 27px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.opp-card:hover { border-color: var(--brass); box-shadow: var(--shadow-md); }
.opp-card > .btn { margin-top: auto; }
.opp-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.opp-card h3 { font-size: 1.22rem; margin-bottom: 8px; }

.opp-badge {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.opp-badge.status { border-color: var(--brass); color: var(--brass); background: rgba(169, 130, 47, 0.08); }

.opp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.opp-fields dt { margin-bottom: 3px; color: var(--text-faint); }
.opp-fields dd { margin: 0; font-weight: 600; color: var(--ink); }

.opp-demo-note {
  padding: 9px 11px;
  border: 1px dashed var(--brass);
  border-radius: var(--radius);
  background: rgba(169, 130, 47, 0.06);
  font-size: 0.78rem;
  color: var(--brass);
}

/* --------------------------------------------------------------------------
   14  FAQ, COMPARE, FLOW
   -------------------------------------------------------------------------- */
.faq-search { margin-bottom: clamp(28px, 3vw, 40px); }
.faq-search input {
  width: 100%;
  padding: 16px 19px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.faq-search input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169, 130, 47, 0.14);
  outline: none;
}
.faq-category { margin-bottom: clamp(32px, 4vw, 48px); }
.faq-category h3 { margin-bottom: 6px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 21px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}
.faq-q:hover { color: var(--brass); }
.faq-q .icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--brass);
  transform: translate(-50%, -50%);
}
.faq-q .icon::before { width: 14px; height: 1.5px; }
.faq-q .icon::after {
  width: 1.5px; height: 14px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.faq-item.open .faq-q { color: var(--brass); }
.faq-item.open .faq-q .icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 320ms var(--ease); }
.faq-a p { max-width: 72ch; padding: 0 0 21px; font-size: var(--fs-sm); }
.faq-item.hidden { display: none; }

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-col { padding: clamp(24px, 3vw, 36px); min-width: 0; }
.compare-col.brass { background: var(--ink); color: var(--text-on-ink); }
.compare-col :is(h3, h4) { margin-bottom: 18px; }
.compare-col.brass :is(h3, h4) { color: var(--brass-bright); }
.compare-col ul li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.compare-col.brass ul li { border-top-color: var(--line-on-ink); color: var(--text-on-ink-muted); }
.compare-col ul li:first-child { border-top: none; }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.flow-node {
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.flow-node:hover { border-color: var(--brass); color: var(--brass); }
.flow-arrow { padding: 0 10px; color: var(--brass); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   15  INSIGHTS
   -------------------------------------------------------------------------- */
.insight-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.insight-toolbar input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.insight-toolbar input[type="search"]:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169, 130, 47, 0.14);
  outline: none;
}
.chip {
  padding: 9px 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--brass); color: var(--brass); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.article-card:hover { border-color: var(--brass); box-shadow: var(--shadow-md); }
.article-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.article-card:hover .article-card-media img { transform: scale(1.06); }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.4vw, 26px); }
.article-card .tag { font-size: 0.75rem; font-weight: 600; color: var(--brass); }
.article-card h3 { font-size: 1.16rem; margin: 10px 0 8px; }
.article-card p { font-size: 0.9rem; }
.article-card .read-time { margin-top: auto; padding-top: 14px; }
.article-card.hidden { display: none; }
.read-time { font-size: var(--fs-xs); color: var(--text-faint); }

/* --------------------------------------------------------------------------
   16  FORMS & AUTH
   -------------------------------------------------------------------------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin-bottom: 8px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: var(--line-strong); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169, 130, 47, 0.15);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 132px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-error { display: none; margin-top: 7px; font-size: 0.82rem; color: var(--danger); }
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea { border-color: var(--danger); }
.form-field.invalid input:focus,
.form-field.invalid select:focus,
.form-field.invalid textarea:focus { box-shadow: 0 0 0 3px rgba(161, 63, 63, 0.15); }
.form-field.invalid .form-error { display: block; }
.checkbox-field { display: flex; align-items: flex-start; gap: 11px; font-size: 0.88rem; color: var(--text-muted); }
.checkbox-field input { width: auto; margin-top: 4px; flex: none; accent-color: var(--brass); }
.form-note { font-size: var(--fs-sm); color: var(--text-muted); }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(63, 107, 78, 0.08);
  border: 1px solid var(--ok);
  border-left-width: 3px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ok);
}
.form-success.visible { display: block; }

/* Auth: a brass-lit plate beside a focused card. No page hero here. */
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100svh - var(--header-h));
}
.auth-aside {
  order: -1;           /* visually first at desktop; second in the DOM */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  padding: clamp(36px, 5vw, 72px);
  background: var(--ink);
  color: var(--text-on-ink);
  overflow: hidden;
}
.auth-aside-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink-deep) url("../images/auth-panel.jpg") center / cover no-repeat;
  background-image: image-set(url("../images/auth-panel.webp") type("image/webp"), url("../images/auth-panel.jpg") type("image/jpeg"));
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(6, 10, 17, 0.94), rgba(6, 10, 17, 0.6) 55%, rgba(6, 10, 17, 0.4));
}
.auth-aside .logo { color: var(--text-on-ink); font-size: 1.5rem; }
.auth-aside h2 { max-width: 22ch; color: var(--text-on-ink); }
.auth-aside p { max-width: 42ch; font-size: var(--fs-sm); color: var(--text-on-ink-muted); }
.auth-aside .fact-list { max-width: 420px; margin-top: 8px; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 40px);
  background: var(--paper);
}
.auth-card { width: 100%; max-width: 440px; padding: 0; background: none; border: none; }
.auth-card h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 0.3em; }
.auth-card > p:first-of-type { margin-bottom: 30px; }
.auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-foot a { color: var(--brass); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   17  CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 8vw, 104px);
  background: var(--ink);
  color: var(--text-on-ink);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(80% 130% at 50% 0%, rgba(169, 130, 47, 0.18) 0%, transparent 60%);
}
.cta-band h2 { max-width: 26ch; margin-inline: auto; color: var(--text-on-ink); }
.cta-band p { max-width: 54ch; margin: 14px auto 0; color: var(--text-on-ink-muted); }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* --------------------------------------------------------------------------
   18  FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 7vw, 88px) 0 28px;
  background: var(--ink-deep);
  color: var(--text-on-ink-muted);
  overflow: hidden;
}
.site-footer-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ink-deep) url("../images/footer.jpg") center bottom / cover no-repeat;
  background-image: image-set(url("../images/footer.webp") type("image/webp"), url("../images/footer.jpg") type("image/jpeg"));
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(6, 10, 17, 0.94) 0%, rgba(6, 10, 17, 0.86) 55%, rgba(6, 10, 17, 0.96) 100%);
}
/* Brass hairline marks the transition from content into footer */
.site-footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--brass) 32%, var(--brass) 68%, transparent);
  opacity: 0.55;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.footer-brand { min-width: 0; }
.footer-brand .logo { color: var(--text-on-ink); }
.footer-brand p { max-width: 40ch; margin-top: 16px; font-size: 0.88rem; color: var(--text-on-ink-muted); }
.footer-col { min-width: 0; }
.footer-col h2 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-on-ink);
}
.footer-col a {
  display: inline-block;
  padding: 6px 0;
  font-size: 0.88rem;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--brass-bright); transform: translateX(3px); }
html[dir="rtl"] .footer-col a:hover { transform: translateX(-3px); }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius);
  color: var(--text-on-ink-muted);
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.footer-social a:hover { border-color: var(--brass); color: var(--brass-bright); background: rgba(169, 130, 47, 0.1); }
.footer-social svg { width: 17px; height: 17px; }

.footer-contact { margin-top: 20px; font-size: 0.88rem; }
.footer-contact a { color: var(--text-on-ink-muted); }
.footer-contact a:hover { color: var(--brass-bright); }

.footer-disclaimer {
  max-width: 100ch;
  padding: 26px 0;
  border-top: 1px solid var(--line-on-ink);
  font-size: 0.79rem;
  line-height: 1.65;
  color: var(--text-on-ink-muted);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-on-ink);
  font-size: 0.79rem;
}
.footer-bottom a:hover { color: var(--brass-bright); }

/* --------------------------------------------------------------------------
   19  MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 10, 17, 0.7);
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; animation: fadeIn 220ms var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 86svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(26px, 4vw, 40px);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modalIn 320ms var(--ease-out) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.modal-close:hover { color: var(--ink); border-color: var(--line); }

/* --------------------------------------------------------------------------
   20  UTILITIES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-7); }
.small { font-size: var(--fs-sm); color: var(--text-muted); }
.measure { max-width: 68ch; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.risk-callout {
  margin: 28px 0;
  padding: 20px 26px;
  background: var(--paper-dim);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.risk-callout strong { color: var(--ink); }
.risk-callout a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.on-ink .risk-callout { background: rgba(245, 242, 236, 0.05); color: var(--text-on-ink-muted); }
.on-ink .risk-callout strong { color: var(--text-on-ink); }

.risk-list { border-top: 1px solid var(--line); }
.risk-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.risk-list :is(h3, h4) { margin-bottom: 7px; }
.risk-list p { margin-bottom: 0; font-size: 0.93rem; }

.legal-body h2 { margin-top: 2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 1.6em; font-size: 1.2rem; }
.legal-body p, .legal-body li { font-size: 0.95rem; }
.legal-body ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.legal-body li { margin-bottom: 0.5em; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   21  RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-link { padding: 10px 11px; font-size: 0.89rem; }
  .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-asym { grid-template-columns: 1fr; }
  .figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure-grid .row-2 { grid-row: auto; }
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside { min-height: 320px; order: 0; }
  .auth-aside .fact-list { display: none; }
}

@media (max-width: 920px) {
  .main-nav,
  .header-actions > .btn-ghost,
  .header-actions > .lang { display: none; }
  .menu-toggle { display: block; }
  .header-actions > .btn-brass { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial { grid-template-columns: 1fr; }
  .editorial.reverse .editorial-media { order: 0; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-cue { display: none; }
  .compare { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  h1 { letter-spacing: -0.016em; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .figure-grid { grid-template-columns: 1fr; }
  .figure-grid .span-2 { grid-column: span 1; }
  .hero { min-height: 92svh; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .page-hero { min-height: 380px; }
  .step-row { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .step-num { font-size: 1.3rem; }
  .opp-toolbar { flex-direction: column; align-items: stretch; }
  .opp-toolbar select, .opp-toolbar input[type="search"] { flex: 1 1 auto; width: 100%; }
  .opp-count { margin-left: 0; }
  .opp-fields { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .media-frame.offset { box-shadow: 10px 10px 0 -1px rgba(169, 130, 47, 0.16), var(--shadow-md); }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  :root { --fs-h1: 2.15rem; }
  .container, .container-narrow, .container-wide { padding-inline: 18px; }
  .prototype-banner { font-size: 0.72rem; padding: 8px 14px; }
  .lang-menu { min-width: 0; width: 100%; }
  .risk-callout { padding: 16px 18px; }
}

/* Short landscape phones: don't force a full-height hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 560px; }
  .hero-meta { display: none; }
}

/* --------------------------------------------------------------------------
   22  REDUCED MOTION & PRINT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  /* never leave reveal-animated content invisible */
  .js [data-reveal],
  .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .rule-draw { transform: scaleX(1) !important; }
  .media-reveal::after { display: none; }
  .hero-media.no-video { animation: none; }
  .hero-media video { opacity: 1; }
  .hero-cue i { animation: none; transform: scaleY(1); }
  .page-hero-media, .image-band-media { transform: none !important; }
}

@media print {
  .site-header, .mobile-panel, .hero-media, .hero-scrim, .hero-cue, .lang,
  .prototype-banner, .site-footer-media, .modal-overlay, .skip-link { display: none !important; }
  body { background: #fff; color: #000; overflow: visible; }
  .hero, .page-hero, .cta-band, .site-footer, .on-ink, .image-band {
    background: #fff !important;
    color: #000 !important;
    min-height: 0 !important;
    padding: 24px 0 !important;
  }
  .hero h1, .page-hero h1, .on-ink h2, .on-ink h3, .image-band h2 { color: #000 !important; }
  a { text-decoration: underline; }
}

/* Statement card — a claim, then the limits on that claim.
   Used where the copy defines a role by also saying what the role is not. */
.statement-card {
  position: relative;
  align-self: start;
  padding: clamp(26px, 3vw, 36px);
  background: var(--ink);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.statement-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 100% 0%, rgba(169, 130, 47, 0.20), transparent 62%);
}
.statement-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--brass), rgba(169, 130, 47, 0));
}
.statement-card .eyebrow { color: var(--brass-bright); }
.statement-card h3 { color: var(--text-on-ink); margin-bottom: 12px; }
.statement-card p { color: var(--text-on-ink-muted); font-size: var(--fs-sm); }

.statement-not {
  margin: 22px 0 0;
  border-top: 1px solid var(--line-on-ink);
}
.statement-not li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-on-ink);
  font-size: var(--fs-sm);
  color: var(--text-on-ink-muted);
}
.statement-not li::before {
  content: "\00D7";
  color: var(--brass);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.statement-foot {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--brass-pale) !important;
}

/* Contact card — the address is the point, so it gets the type. */
.contact-card {
  position: relative;
  padding: clamp(26px, 3vw, 34px);
  background: var(--ink);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(110% 100% at 0% 100%, rgba(46, 90, 85, 0.34), transparent 60%);
}
.contact-card .eyebrow { color: var(--brass-bright); margin-bottom: 12px; }
.contact-email {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: -0.015em;
  color: var(--text-on-ink);
  padding-bottom: 6px;
  word-break: break-word;
}
.contact-email::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0.3);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}
.contact-email:hover { color: var(--brass-pale); }
.contact-email:hover::after { transform: scaleX(1); }
.contact-note {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-on-ink);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--text-on-ink-muted);
}
.contact-note::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brass);
}

/* Focus grid: five cards, deliberately unequal.
   Six tracks — the first three take a third each, the last two take a half
   each. Nothing is left orphaned, and the sizes carry the hierarchy. */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.focus-grid > * { min-width: 0; }
.focus-grid > *:nth-child(-n+3) { grid-column: span 2; }
.focus-grid > *:nth-child(n+4)  { grid-column: span 3; }
.focus-grid > *:nth-child(n+4) { min-height: 300px; }

@media (max-width: 1024px) {
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-grid > *:nth-child(-n+3),
  .focus-grid > *:nth-child(n+4) { grid-column: span 1; }
  .focus-grid > *:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .focus-grid { grid-template-columns: 1fr; }
  .focus-grid > *:nth-child(5) { grid-column: span 1; }
}

/* Small-scale headings: h3 used inside components keeps the h4 type size,
   so promoting these for a correct document outline changes nothing visually. */
.panel h3,
.step-row h3,
.benefit h3,
.risk-list h3,
.compare-col h3,
.quote-card h3,
.opp-card h3.compact {
  font-size: var(--fs-h4);
  letter-spacing: -0.005em;
}
.faq-category h2 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

/* --------------------------------------------------------------------------
   23  ADDENDA — dynamically rendered opportunity cards
   -------------------------------------------------------------------------- */
.opp-card-media {
  position: relative;
  aspect-ratio: 16 / 7;
  margin: calc(-1 * clamp(20px, 2.4vw, 27px)) calc(-1 * clamp(20px, 2.4vw, 27px)) 4px;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.opp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.opp-card:hover .opp-card-media img { transform: scale(1.06); }

/* Entrance for cards injected after a filter change */
.opp-card.is-in { animation: oppIn 520ms var(--ease-out) both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes oppIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .opp-card.is-in { animation: none; }
}
