/* ==========================================================================
   BASE — reset, typography, layout primitives, buttons
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { margin: 0 0 var(--s-4); max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--crimson); }

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

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin-bottom: .4em; }

address { font-style: normal; }
strong, b { font-weight: 650; }
hr { border: 0; height: 1px; background: var(--mist-dk); margin: var(--s-7) 0; }

::selection { background: var(--crimson); color: #fff; }

/* ---- Focus: always visible, never removed ---- */
:focus-visible {
  outline: 3px solid var(--crimson-lt);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.on-dark :focus-visible,
.sect--dark :focus-visible { outline-color: #FF8797; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  z-index: var(--z-toast);
  background: var(--crimson); color: #fff;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--t-fast) var(--ease-ui);
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */

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

/* overflow contains the decorative .glow blobs and .watermark numerals so they
   can bleed past the content edge without ever widening the document */
.sect { position: relative; padding-block: var(--section-y); overflow: hidden; }
.sect--tight { padding-block: clamp(48px, 6vw, 84px); }
.sect--mist { background: var(--mist); }
.sect--dark { background: var(--navy-900); color: var(--on-dark); }
.sect--dark h1, .sect--dark h2, .sect--dark h3,
.sect--dark h4, .sect--dark h5, .sect--dark h6 { color: var(--white); }
.sect--dark p { color: var(--on-dark-2); }
.sect--dark a { color: var(--brand-blue-xlt); }
.sect--dark a:hover { color: var(--crimson-lt); }

/* Ambient glow blobs behind focal points */
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
  pointer-events: none; z-index: 0;
}
.glow--blue { background: radial-gradient(circle, rgba(61,75,120,.75), transparent 68%); }
.glow--crimson { background: radial-gradient(circle, rgba(200,16,46,.42), transparent 68%); }

.sect > .wrap { position: relative; z-index: var(--z-base); }

/* Oversized watermark numeral behind headings */
.watermark {
  position: absolute; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(9rem, 26vw, 24rem); line-height: .8;
  letter-spacing: -.06em; color: currentColor; opacity: .028;
  user-select: none;
}

/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: var(--s-3);
}
.sect--dark .eyebrow, .on-dark .eyebrow { color: var(--crimson-lt); }
.eyebrow::before {
  content: ""; width: 26px; height: 1px; flex: none;
  background: currentColor; opacity: .6;
}

.sect-head { max-width: 760px; margin-bottom: var(--s-8); }
.sect-head--center { margin-inline: auto; text-align: center; }
.sect-head--center .eyebrow::before { display: none; }
.sect-head p { font-size: var(--fs-lead); color: var(--slate); }
.sect--dark .sect-head p { color: var(--on-dark-2); }
.sect-head--center p { margin-inline: auto; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  min-height: 52px; padding: 14px var(--s-6);
  font-family: var(--font-display); font-size: .95rem; font-weight: 650;
  letter-spacing: -.01em; line-height: 1.2; text-align: center;
  border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer; isolation: isolate;
  transition: transform var(--t-mid) var(--ease-out),
              box-shadow var(--t-mid) var(--ease-out),
              background-color var(--t-mid) var(--ease-ui),
              border-color var(--t-mid) var(--ease-ui),
              color var(--t-mid) var(--ease-ui);
}
.btn svg { flex: none; width: 18px; height: 18px; }

/* gradient sweep on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-chrome);
  opacity: 0; transition: opacity var(--t-mid) var(--ease-ui);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--crimson); color: #fff;
  box-shadow: 0 1px 2px rgba(144,0,0,.3), 0 10px 28px rgba(200,16,46,.32);
}
.btn--primary:hover {
  color: #fff; background: var(--crimson-lt);
  transform: translateY(-2px);
  box-shadow: var(--glow-crimson), 0 18px 44px rgba(200,16,46,.4);
}

.btn--navy {
  background: var(--brand-blue); color: #fff;
  box-shadow: 0 1px 2px rgba(6,11,24,.3), 0 10px 28px rgba(61,75,120,.3);
}
.btn--navy:hover { color: #fff; background: var(--brand-blue-lt); transform: translateY(-2px); box-shadow: var(--glow-blue); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: rgba(11,18,32,.22);
}
.btn--ghost:hover {
  color: var(--ink); border-color: var(--ink);
  background: rgba(11,18,32,.04); transform: translateY(-2px);
}
.on-dark .btn--ghost, .sect--dark .btn--ghost {
  color: var(--white); border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
}
.on-dark .btn--ghost:hover, .sect--dark .btn--ghost:hover {
  color: var(--white); border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.10);
}

.btn--sm { min-height: 42px; padding: 10px var(--s-5); font-size: .875rem; }
.btn--lg { min-height: 58px; padding: 17px var(--s-7); font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); align-items: center; }

/* ---- Text link with animated underline ---- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--brand-blue); position: relative; padding-bottom: 2px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-mid) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.sect--dark .link-arrow { color: var(--brand-blue-xlt); }

/* ==========================================================================
   UTILITY
   ========================================================================== */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
