/* ============================================================
   Arctern Advisory — shared stylesheet
   ============================================================ */

:root {
  --navy: #04263d;
  --navy-deep: #041b30;
  --navy-text: #0a0a3d;
  --red: #d2232a;
  --red-dark: #ad1c22;
  --sage: #9fc3bd;
  --sage-light: #caddda;
  --sage-pale: #eef4f2;
  --ink: #1c2b33;
  --ink-soft: #4c5c64;
  --paper: #ffffff;
  --border: #dfe7e5;
  --max-width: 1160px;
  --radius: 10px;
  --shadow: 0 12px 30px -18px rgba(4, 38, 61, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--navy-text);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1, h2 {
  font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
}
h3, h4 {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--navy); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ---------- Top utility / announcement bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0e8;
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfe0e8; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link img { height: 42px; width: 42px; border-radius: 9px; }
.logo-wordmark {
  font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--navy-text);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-wordmark strong { font-weight: 600; }
.logo-wordmark span { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-family: "Lato", sans-serif; }

nav.primary-nav { display: flex; align-items: center; gap: 28px; }
nav.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover,
nav.primary-nav a.active { color: var(--navy-text); border-bottom-color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: transparent; color: var(--navy-text); border-color: var(--navy-text); }
.btn-secondary:hover { background: var(--navy-text); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy-text); }

@media (max-width: 900px) {
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
  .nav-actions .btn-secondary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-top: 84px;
  padding-bottom: 84px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--sage-light);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 { color: #fff; }
.hero p.lead { color: #d7e4e6; font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-bird {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  opacity: 0.16;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-bird { display: none; }
}

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(2px);
}
.hero-panel h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.hero-panel ul { margin: 0; padding-left: 20px; color: #d7e4e6; font-size: 0.94rem; }
.hero-panel li { margin-bottom: 8px; }

/* ---------- Section blocks ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-alt { background: var(--sage-pale); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #cfdfe3; }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
  display: block;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card .card-eyebrow { color: var(--red); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.card-flat {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--sage-light);
  color: var(--navy-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 1.1rem;
}

/* Program cards */
.program-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.program-flag {
  height: 6px;
  background: var(--sage);
}
.program-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.program-card .status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage-pale);
  color: var(--navy-text);
  margin-bottom: 14px;
  width: fit-content;
}
.program-card .status.soon { background: #f4e9c9; color: #7a5c00; }
.program-card .status.info { background: #dfe9f5; color: #2c5c8a; }
.program-card .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.program-card .badge-row .status { margin-bottom: 0; }
.tag-sm { display: inline-block; width: fit-content; background: var(--sage-pale); color: var(--navy-text); padding: 4px 10px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.program-card ul { padding-left: 18px; margin: 14px 0; color: var(--ink-soft); font-size: 0.93rem; }
.program-card li { margin-bottom: 6px; }
.program-card .cta { margin-top: auto; padding-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.program-link[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.cta-pending-note { font-size: 0.72rem; font-style: italic; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: step;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
}
.step-num::before { content: counter(step); }

/* ---------- Testimonial / quote ---------- */
.quote-block {
  border-left: 4px solid var(--red);
  padding: 8px 0 8px 24px;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  color: var(--navy-text);
  font-style: italic;
}
.quote-block cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.85rem; color: var(--ink-soft); font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* ---------- Callout / disclaimer boxes ---------- */
.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  background: var(--sage-pale);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.callout.warn { border-left-color: var(--red); background: #fbeceb; }
.callout strong { color: var(--navy-text); }

/* ---------- Forms ---------- */
.form-tabs { display: flex; gap: 10px; margin-bottom: 28px; }
.form-tab-btn {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.form-tab-btn.active { border-color: var(--navy-text); color: var(--navy-text); background: var(--sage-pale); }

.form-panel { display: none; }
.form-panel.active { display: block; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--navy-text); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--navy-text); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.checkbox-field input { width: auto; margin-top: 3px; }

/* ---------- Contact details strip ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .contact-strip { grid-template-columns: 1fr; } }
.contact-strip .card-flat h3 { font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #fbe0df; max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--red-dark); }
.cta-band .btn-primary:hover { background: #f2f2f2; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: #b9cad0;
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
footer.site-footer h4 { color: #fff; font-family: "IBM Plex Sans", Arial, sans-serif; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
footer.site-footer a { color: #b9cad0; text-decoration: none; }
footer.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 34px; width: 34px; border-radius: 7px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #8fa3aa;
}
.footer-bottom a { color: #8fa3aa; }
.footer-legal-note { font-size: 0.78rem; color: #7d939b; max-width: 900px; margin-top: 18px; line-height: 1.6; }

/* ---------- Misc ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: var(--sage-pale); color: var(--navy-text); padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.divider { height: 1px; background: var(--border); margin: 56px 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-sm { font-size: 0.87rem; }
.legal-doc h2 { margin-top: 2em; }
.legal-doc h3 { margin-top: 1.4em; }
.legal-doc p, .legal-doc li { color: var(--ink-soft); }
.legal-doc { max-width: 780px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }

/* ============================================================
   One-page site — v2 (nav, hero, reveal animations, marquee)
   ============================================================ */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

/* ---------- Floating nav ---------- */
.nav-v2 {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav-v2.scrolled {
  background: rgba(4, 38, 61, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6);
}
.nav-v2 .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-v2 .logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-v2 .logo-link img { height: 38px; width: 38px; border-radius: 8px; }
.nav-v2 .logo-wordmark { font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif; font-size: 1.05rem; color: #fff; letter-spacing: 0.02em; font-weight: 600; }

.nav-v2-links { display: flex; align-items: center; gap: 4px; }
.nav-v2-links a {
  position: relative;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-v2-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-v2-links a.active { color: var(--navy-text); background: #fff; }

.nav-v2-cta {
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
}
.nav-v2-cta:hover { background: var(--red-dark) !important; color: #fff !important; }

.nav-v2-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
  z-index: 210;
}
.nav-v2-toggle span {
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
.nav-v2-toggle span:nth-child(1) { top: 14px; }
.nav-v2-toggle span:nth-child(2) { top: 22px; }
.nav-v2-toggle span:nth-child(3) { top: 30px; }
.nav-v2-toggle.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-v2-toggle.open span:nth-child(2) { opacity: 0; }
.nav-v2-toggle.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  font-size: 2rem;
  padding: 14px 0;
}
.mobile-menu .btn { margin-top: 20px; }

@media (max-width: 860px) {
  .nav-v2-links { display: none; }
  .nav-v2-toggle { display: block; }
  .nav-v2 .nav-actions .btn { display: none; }
}

/* ---------- Hero v2 ---------- */
.hero-v2 {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #0c3a5c 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
}
.hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  pointer-events: none;
}
/* Background video — spans the full hero width but is height-capped by
   JS (see assets/site.js) to end exactly where the marquee ticker
   begins, never bleeding into it. */
.hero-v2-media {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 0;
  overflow: hidden;
  height: 0; /* set by JS once layout is known */
}
.hero-v2-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-v2-media-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,38,61,0.5) 0%, rgba(4,38,61,0.68) 60%, var(--navy-deep) 100%);
}
.hero-v2 .container { position: relative; z-index: 2; text-align: center; }
.hero-v2-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage-light);
  border: 1px solid rgba(159, 195, 189, 0.4);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 28px;
}
.hero-v2 h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 18ch;
  margin: 0 auto 22px;
  font-weight: 500;
}
.hero-v2 p.lead {
  color: #c3d6dc;
  max-width: 52ch;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}
.hero-v2-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-marquee {
  margin-top: 88px;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee-track span {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee-track span.dot { color: var(--red); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(255,255,255,0.7), transparent);
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ---------- Section labels ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}
.section-label .num {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-style: italic;
  color: var(--red);
  font-size: 0.95rem;
}
.section-label .line { width: 32px; height: 1px; background: var(--border); }
.section-navy .section-label .line { background: rgba(255,255,255,0.25); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.3,1), transform 0.8s cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger.in-view .reveal-child {
  opacity: 1;
  transform: none;
}
.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal-child:nth-child(1) { transition-delay: 0.02s; }
.reveal-child:nth-child(2) { transition-delay: 0.12s; }
.reveal-child:nth-child(3) { transition-delay: 0.22s; }
.reveal-child:nth-child(4) { transition-delay: 0.32s; }
.reveal-child:nth-child(5) { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-child { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none; }
  .pin-dot::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Bio section ---------- */
.bio-portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--sage) 140%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}
.bio-portrait span {
  font-family: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  font-size: 3rem;
  color: #fff;
  font-weight: 500;
}
.bio-meta {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.bio-meta div { text-align: center; }
.bio-meta .meta-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 4px; }
.bio-meta .meta-value { font-family: "IBM Plex Sans", Arial, sans-serif; color: var(--navy-text); font-size: 1rem; }

.pending-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--sage-pale);
  border: 1px dashed var(--sage);
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 18px;
}
.section-navy .pending-note {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
  color: #cfdfe3;
}

/* ---------- Product filter (search + region globe) ---------- */
.product-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
}
.product-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.2s ease;
}
.product-search:focus-within { border-color: var(--navy-text); }
.product-search svg { flex: none; color: var(--ink-soft); }
.product-search input {
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: transparent;
  width: 100%;
  text-align: left;
}
.product-search input::placeholder { color: #9aa9ad; }

/* ---------- Region globe ---------- */
.region-globe-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.region-globe {
  position: relative;
  width: 260px;
  height: 260px;
}
.region-globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 18px 40px -16px rgba(4,38,61,0.5);
}
.region-globe.is-dragging .region-globe-canvas { cursor: grabbing; }
.globe-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--pin-scale, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.pin-dot {
  position: relative;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(210,35,42,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pin-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(210,35,42,0.35);
  animation: pin-pulse 2.4s ease-out infinite;
}
@keyframes pin-pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}
.pin-label {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(4,38,61,0.72);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.globe-pin:hover .pin-dot,
.globe-pin:focus-visible .pin-dot,
.globe-pin.is-active .pin-dot {
  background: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 0 5px rgba(255,255,255,0.35);
}
.globe-pin.is-active .pin-label { background: var(--red); }
.globe-pin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 10px; }

.globe-reset {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.globe-reset:hover { border-color: var(--navy-text); color: var(--navy-text); }
.globe-reset.is-active { background: var(--navy-text); border-color: var(--navy-text); color: #fff; }

@media (max-width: 640px) {
  .region-globe { width: 210px; height: 210px; }
}

/* ---------- Products flow (horizontal, right-to-left motion) ---------- */
/* Scrolls two ways at once: a steady JS-driven auto-slide (assets/site.js)
   keeps it moving right-to-left on its own, but the track is also a real
   scroll container — drag it, swipe it, or turn a wheel on it and it
   follows your input, pausing the auto-slide until you let go. */
.product-flow {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.product-flow::-webkit-scrollbar { display: none; }
.product-flow.is-grabbing { cursor: grabbing; }
.product-flow-track {
  display: flex;
  width: max-content;
  gap: 24px;
}
.product-flow .program-card { flex: 0 0 300px; width: 300px; }

/* A country selected on the globe (or a search match) shows a still,
   single pass of results instead of the continuously sliding loop. */
.product-flow.is-static {
  cursor: auto;
  -webkit-mask-image: none;
  mask-image: none;
}
.product-flow.is-static .product-flow-track {
  width: 100%;
  justify-content: center;
}
.product-flow-empty {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 0;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.link-reset {
  background: none;
  border: none;
  padding: 0;
  color: var(--navy-text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Product ticker (products section) ---------- */
.product-ticker {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin: 44px 0 0;
}
.product-ticker .marquee-track { animation-duration: 20s; }
.product-ticker .marquee-track span { color: var(--ink-soft); font-size: 0.92rem; }
.product-ticker .marquee-track span.dot { color: var(--red); }

/* ---------- Process rail ---------- */
.process-rail { position: relative; max-width: 760px; margin: 0 auto; }
.process-rail::before {
  content: "";
  position: absolute;
  left: 23px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.process-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding-bottom: 40px;
  position: relative;
}
/* A fixed minimum row height (independent of how each item's copy
   happens to wrap) keeps every dot the same distance from the next,
   regardless of font metrics or line count. */
.process-item:not(:last-child) { min-height: 148px; }
.process-item:last-child { padding-bottom: 0; }
.process-item .dot-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy-text);
  display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Simple page header (legal pages) ---------- */
.simple-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.simple-header .container { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Small screen refinements ---------- */
@media (max-width: 480px) {
  .hero-v2 h1 { font-size: 2.1rem; }
  .hero-v2 p.lead { font-size: 1rem; }
  .hero-marquee { margin-top: 56px; }
  .bio-portrait { width: 160px; height: 160px; }
  .bio-portrait span { font-size: 2.2rem; }
  section { padding: 56px 0; }
  .cta-band { padding: 32px 20px; }
}
