/* ==========================================================================
   Optima Assurance USA — ISO certification, compliance & risk management
   Ported from the Lovable prototype. Tokens below are the originals, read off
   the rendered page, with one deliberate change (see --chip-ink).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour — sampled from the Optima Assurance logo ------------------------ */
  --bg:            #f8fafc;  /* page background                              */
  --surface:       #ffffff;  /* cards                                        */
  --ink:           #0a2038;  /* brand navy — dark panels                     */
  --fg:            #0e1b2c;  /* headings, primary text                       */
  --muted:         #646f80;  /* body copy, secondary text                    */
  --chip-ink:      #161f32;  /* framework pills                              */
  --hairline:      #e2e8f0;  /* borders, dividers                            */
  --secondary:     #f1f5f9;  /* alternating band + pill background           */
  --primary:       #0f2b4a;  /* brand navy — buttons, links (13.7:1 on bg)   */
  --primary-hover: #16406e;  /* lifts rather than darkens; primary is dark   */
  --accent-wash:   #e9eef5;  /* navy tint — icon chips                       */
  --accent-fg:     #0f2b4a;  /* text on accent-wash                          */
  --on-ink:        #f4f7fb;  /* text on dark panels                          */

  /* Brand gold needs three values, because the logo's gold is not accessible
     as text. Sampled #a87848 measures 3.69:1 on the page background — under
     the 4.5:1 AA minimum — and 4.27:1 on the navy panel, also under. So the
     literal brand gold is used only for strokes and rules (decorative, no
     contrast minimum), and text gets darkened or lightened variants. */
  --gold:         #a87848;  /* brand gold — rules, seal strokes, the dot     */
  --gold-text:    #8f6535;  /* gold text on light  (4.92:1)                  */
  --gold-on-ink:  #c89a63;  /* gold text on navy   (6.47:1)                  */

  --gradient-glow: radial-gradient(60% 60% at 50% 0%,
                   color-mix(in oklab, var(--gold) 16%, transparent) 0%,
                   transparent 70%);
  --gradient-ink:  linear-gradient(160deg, var(--ink) 0%,
                   color-mix(in oklab, var(--ink) 84%, var(--primary)) 100%);

  --shadow-card: 0 1px 2px rgb(16 24 42 / 0.04), 0 12px 32px -16px rgb(16 24 42 / 0.18);
  --shadow-lift: 0 2px 4px rgb(16 24 42 / 0.05), 0 24px 48px -20px rgb(16 24 42 / 0.28);

  /* Type ------------------------------------------------------------------ */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body:    "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --size-eyebrow: 0.6875rem;
  --size-xs:      0.75rem;
  --size-sm:      0.875rem;
  --size-base:    1rem;
  --size-lede:    1.125rem;
  --size-card:    1.1875rem;
  --size-h3:      1.375rem;
  --size-h2:      clamp(1.875rem, 2.6vw + 1rem, 2.6rem);
  --size-h1:      clamp(2.5rem, 4.4vw + 1rem, 4.5rem);
  --size-stat:    clamp(1.5rem, 1.4vw + 1rem, 1.875rem);

  /* Space ----------------------------------------------------------------- */
  --space-2xs: 0.375rem;
  --space-xs:  0.625rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: clamp(4.5rem, 7vw, 7rem);

  --shell:  72rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.32s var(--ease);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* --------------------------------------------------------------------------
   3. Draft mode — highlights every [placeholder].
      Delete data-draft from the <html> tag when the copy is real.
   -------------------------------------------------------------------------- */

[data-draft] .ph {
  background: linear-gradient(transparent 82%, #ffe9a8 82%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* On block elements the gradient would run the full column width. */
[data-draft] p.ph, [data-draft] li.ph, [data-draft] h1.ph,
[data-draft] h2.ph, [data-draft] h3.ph, [data-draft] h4.ph,
[data-draft] div.ph { width: fit-content; }

/* On the dark CTA panel a yellow underline is invisible — outline instead. */
[data-draft] .panel .ph {
  background: none;
  box-shadow: inset 0 -2px 0 0 #ffc933;
}

.draft-note { display: none; }

[data-draft] .draft-note {
  display: block;
  margin-top: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  border-left: 2px solid #d9a400;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fdf6e3;
  color: #6b5400;
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-2xl); }

.section--tint {
  background: var(--secondary);
  border-block: 1px solid var(--hairline);
}

.section__head { max-width: 44rem; margin-bottom: var(--space-xl); }
.section__lede { margin-top: var(--space-sm); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--size-sm);
}

.skip-link:focus { left: var(--gutter); top: var(--space-xs); }

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

/* --------------------------------------------------------------------------
   5. Type roles
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  margin-bottom: var(--space-md);
  color: var(--gold-text);
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--dot { display: flex; align-items: center; gap: 0.5rem; }

.eyebrow--dot::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.display {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display__soft { display: block; color: var(--muted); }

.headline {
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede { color: var(--muted); font-size: var(--size-lede); line-height: 1.625; }
.small { color: var(--muted); font-size: var(--size-sm); line-height: 1.6; }

/* --------------------------------------------------------------------------
   6. Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: 0.875rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__mark {
  display: block;
  width: 2.125rem;
  height: 2.125rem;
  flex: none;
}

.wordmark__mark img { width: 100%; height: 100%; object-fit: contain; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--size-sm);
  font-weight: 500;
}

.nav__link {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__link:hover { color: var(--fg); }

/* On narrow screens the nav wraps and the masthead grows to ~163px — a fifth of
   the viewport, and taller than scroll-padding-top, so anchor targets landed
   underneath it. Below this width it stops sticking and the problem goes away. */
@media (max-width: 48rem) {
  html { scroll-padding-top: 1rem; }
  .masthead { position: static; }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--size-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }

.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { color: var(--primary); }

.btn--outline { background: transparent; border-color: var(--hairline); color: var(--fg); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }

.btn--on-ink { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.22); color: #fff; }
.btn--on-ink:hover { background: rgb(255 255 255 / 0.18); }

.btn__arrow { transition: transform var(--transition); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) var(--space-2xl);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  z-index: -1;
  pointer-events: none;
}

/* Each line is its own block span, so no character cap is needed — capping it
   forced "Zero compliance friction." onto a third line. */
.hero__title { max-width: 24ch; }
.hero__title span { display: block; }
.hero__lede { max-width: 40rem; margin-block: var(--space-md) var(--space-lg); }

.hero__frameworks {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline);
}

.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

.pill {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--secondary);
  color: var(--chip-ink);
  font-size: var(--size-xs);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

.card-grid { display: grid; gap: var(--space-md); }

/* Explicit counts, not auto-fit: auto-fit gave the four services a 3+1 orphan
   row at desktop widths instead of the 2x2 the design calls for. */
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 62rem) { .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 48rem) {
  .card-grid--2, .card-grid--3 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  position: relative;
  padding: var(--space-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--accent-wash);
  color: var(--accent-fg);
  flex: none;
}

.card__icon svg { width: 1.125rem; height: 1.125rem; }

.card__num {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  font-variant-numeric: tabular-nums;
}

.card__title {
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--size-card);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.card__text { color: var(--muted); font-size: var(--size-sm); line-height: 1.65; }

.card__list { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--hairline); }

/* Check lists ------------------------------------------------------------- */

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding-block: 0.25rem;
  color: var(--muted);
  font-size: var(--size-sm);
  line-height: 1.55;
}

.checks svg { width: 0.875rem; height: 0.875rem; margin-top: 0.3rem; flex: none; color: var(--primary); }

/* --------------------------------------------------------------------------
   10. Principles — three columns in one bordered frame
   -------------------------------------------------------------------------- */

.frame {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.frame__cell { padding: var(--space-lg); border-left: 1px solid var(--hairline); }
.frame__cell:first-child { border-left: 0; }

.frame__label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.frame__rule { width: 2rem; height: 2px; margin-block: var(--space-sm); border: 0; background: var(--gold); }

.frame__title {
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--size-card);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

/* Stacked, the vertical rules must become horizontal ones. */
@media (max-width: 48rem) {
  .frame__cell { border-left: 0; border-top: 1px solid var(--hairline); }
  .frame__cell:first-child { border-top: 0; }
}

/* --------------------------------------------------------------------------
   11. About — portrait beside the credentials
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--space-lg), 5vw, var(--space-xl));
  align-items: center;
}

@media (max-width: 56rem) { .about { grid-template-columns: 1fr; } }

.portrait {
  aspect-ratio: 3 / 4;   /* matches the source photo (810x1080) — no crop */
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--secondary);
}

.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Empty state until a real photograph exists. Needs its own fill and a darker
   dash — on the tinted band, --secondary on --secondary is invisible. */
.portrait--empty {
  display: grid;
  place-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border: 2px dashed color-mix(in srgb, var(--muted) 38%, transparent);
  background: var(--surface);
  text-align: center;
}

.portrait--empty svg { width: 2.25rem; height: 2.25rem; margin-inline: auto; color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  margin-top: var(--space-lg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.stat { padding: var(--space-md); border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: 0; }

.stat__value {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--size-stat);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.stat__label { margin-top: 0.125rem; color: var(--muted); font-size: var(--size-xs); line-height: 1.4; }

/* --------------------------------------------------------------------------
   12. Case studies
   -------------------------------------------------------------------------- */

.tag {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-fg);
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--accent-wash);
  color: var(--accent-fg);
  font-size: var(--size-sm);
  font-weight: 600;
}

.result svg { width: 0.875rem; height: 0.875rem; flex: none; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: var(--space-md);
  color: var(--primary);
  font-size: var(--size-sm);
  font-weight: 600;
  text-decoration: none;
}

.card__link:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 0.2em; }

/* Without this the <use> sprite falls back to the 300x150 default SVG size. */
.card__link svg { width: 0.8125rem; height: 0.8125rem; flex: none; }

/* --------------------------------------------------------------------------
   13. Closing panel
   -------------------------------------------------------------------------- */

.panel {
  padding: clamp(var(--space-xl), 6vw, 4.5rem) clamp(var(--space-lg), 5vw, 4rem);
  border-radius: var(--radius-xl);
  background: var(--gradient-ink);
  color: var(--on-ink);
}

.panel .eyebrow { color: var(--gold-on-ink); }
.panel__title { max-width: 18ch; font-family: var(--font-display); font-optical-sizing: auto;
                font-size: var(--size-h2); font-weight: 500; line-height: 1.18;
                letter-spacing: -0.02em; text-wrap: balance; }
.panel__text { max-width: 38rem; margin-block: var(--space-md) var(--space-lg);
               color: rgb(255 255 255 / 0.75); font-size: var(--size-lede); line-height: 1.6; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.footer { border-top: 1px solid var(--hairline); padding-block: var(--space-xl) var(--space-lg); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__tagline { max-width: 22rem; margin-top: var(--space-sm); }

.footer__title {
  margin-bottom: var(--space-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__list li { padding-block: 0.1875rem; font-size: var(--size-sm); }

/* An email address has no break opportunities, so at narrow widths it pushed the
   footer column past the viewport (33px of horizontal scroll at 390px).
   `anywhere` (not `break-word`) is required — only `anywhere` reduces the
   min-content width the grid uses to size the column. */
.footer__list, .footer__list a { overflow-wrap: anywhere; }

.footer__list a { color: var(--muted); text-decoration: none; transition: color var(--transition); }
.footer__list a:hover { color: var(--primary); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: var(--size-xs);
}

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.7s var(--ease) both; }
  .reveal:nth-child(1) { animation-delay: 0.02s; }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.14s; }
  .reveal:nth-child(4) { animation-delay: 0.20s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

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

@media print {
  .masthead, .panel, .skip-link { display: none; }
  body { background: #fff; }
}

/* ==========================================================================
   19. Copy-deck components
   Added for the Optima Assurance USA deck: audience strip, certification seal,
   reference codes, the five-stage process rail, and the sector grid.
   The certificate motif (REF/ codes, seal, issuing-body line) is the deck's
   signature device — it makes the page read like the document it sells.
   ========================================================================== */

/* Hero split: copy left, seal right ---------------------------------------- */

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .seal { display: none; }   /* decorative — no content lost when hidden */
}

/* Certification seal ------------------------------------------------------- */

.seal { width: 15rem; height: 15rem; flex: none; }

/* Ring text must fit the circumference: 2*pi*38 = 238 user units. At 76 chars,
   that allows ~3.1 units per char. IBM Plex Mono advance is 0.6em, so
   4px font + 0.12em tracking = 2.88/char = 219 units. Any larger and the
   string wraps past its own start and clips. */
.seal__ring { fill: var(--gold-text); font-family: var(--font-mono);
              font-size: 4px; letter-spacing: 0.12em; text-transform: uppercase; }

.seal__disc { fill: none; stroke: var(--hairline); stroke-width: 1; }
.seal__inner { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.5; }
.seal__mark { fill: none; stroke: var(--gold); stroke-width: 1.6;
              stroke-linecap: round; stroke-linejoin: round; }

/* Centre text sits inside the r=30 inner ring (60 units wide). "Assurance USA"
   at 4px/0.1em is ~39 units — fits. On one line the full name did not. */
.seal__est { fill: var(--muted); font-family: var(--font-mono); font-size: 4px;
             letter-spacing: 0.1em; text-anchor: middle; text-transform: uppercase; }

@media (prefers-reduced-motion: no-preference) {
  .seal__rotor { animation: seal-spin 46s linear infinite; transform-origin: 50% 50%; }
}

@keyframes seal-spin { to { transform: rotate(360deg); } }

/* Audience strip ----------------------------------------------------------- */

.audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem var(--space-sm);
  margin-top: var(--space-lg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  letter-spacing: 0.06em;
}

/* Separator trails each item rather than preceding the next one: a leading "|"
   dangled at the start of the wrapped line. */
.audience li:not(:last-child)::after {
  content: "|";
  margin-left: var(--space-sm);
  color: var(--hairline);
}

/* Reference codes ---------------------------------------------------------- */

.ref {
  color: var(--gold-text);
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  letter-spacing: 0.1em;
}

.hero__ref {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--hairline);
}

.card__ref { margin-top: var(--space-md); padding-top: var(--space-sm);
             border-top: 1px solid var(--hairline); }

/* Five-stage process rail --------------------------------------------------- */

.stages { position: relative; margin-top: var(--space-lg); }

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--hairline);
}

.stage:last-child { border-bottom: 1px solid var(--hairline); }

.stage__num {
  color: var(--gold-text);
  font-family: var(--font-mono);
  font-size: var(--size-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  padding-top: 0.2em;
}

.stage__title {
  margin-bottom: var(--space-2xs);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--size-card);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.stage__text { max-width: 46rem; color: var(--muted); font-size: var(--size-sm); line-height: 1.65; }

@media (max-width: 40rem) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}

/* Sector grid --------------------------------------------------------------- */

.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.sector {
  padding: var(--space-md);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--transition), transform var(--transition);
}

.sector:hover { border-color: var(--primary); transform: translateY(-2px); }

.sector__label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--gold-text);
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sector__name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* Why Optima: portrait beside the three reasons ------------------------------ */

.reasons { margin-top: var(--space-lg); }

.reason {
  padding-block: var(--space-md);
  border-top: 1px solid var(--hairline);
}

.reason:last-child { border-bottom: 1px solid var(--hairline); }

.reason__label {
  color: var(--gold-text);
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reason__title {
  margin-block: var(--space-2xs) var(--space-2xs);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--size-card);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

/* ==========================================================================
   20. Contact dialog
   The email address is never written into the HTML — it is assembled in JS
   from parts, so scrapers reading the static document find nothing. The
   dialog exists because mailto: silently fails for webmail users who have no
   registered handler; the provider links give them a working route.
   ========================================================================== */

.contact-dialog {
  width: min(26rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-lift);
}

.contact-dialog::backdrop { background: rgb(10 32 56 / 0.45); backdrop-filter: blur(2px); }

.contact-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md) var(--space-sm);
}

.contact-dialog__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--size-card);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.contact-dialog__close {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
  transition: border-color var(--transition), color var(--transition);
}

.contact-dialog__close:hover { border-color: var(--primary); color: var(--primary); }

.contact-dialog__list { border-top: 1px solid var(--hairline); }

.contact-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.8125rem var(--space-md);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: var(--size-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition);
}

.contact-option:hover { background: var(--accent-wash); }
.contact-option:last-child { border-bottom: 0; }

.contact-option__name { font-weight: 500; }
.contact-option__hint { display: block; margin-top: 1px; color: var(--muted); font-size: var(--size-xs); }
.contact-option__icon { width: 1.125rem; height: 1.125rem; flex: none; color: var(--primary); }
.contact-option__go { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-size: var(--size-xs); }

.contact-dialog__foot {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--hairline);
  background: var(--secondary);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--size-eyebrow);
  letter-spacing: 0.04em;
}

/* Reveal-on-click trigger in the footer */
.contact-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--size-sm);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.contact-trigger:hover { color: var(--primary); }
.contact-trigger::after { content: "\2197"; font-size: var(--size-xs); }

@media (prefers-reduced-motion: no-preference) {
  .contact-dialog[open] { animation: dialog-in 0.22s var(--ease); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(0.5rem) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
