/* ==========================================================================
   LJ Risk Management & Training Solutions
   Human-centered safety & readiness consultancy — soft blues, greys, air.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* --- Blues ------------------------------------------------------------ */
  --brand:        #1d4e89;   /* primary, a friendlier sibling of the logo navy */
  --brand-deep:   #002e62;   /* logo navy — type and deep grounds */
  --brand-mid:    #3e7cb1;
  --brand-soft:   #7fa9d0;
  --sky:          #dceaf6;
  --mist:         #eef4fa;

  /* --- Greys (blue-biased, never neutral) ------------------------------- */
  --ink:          #14263d;
  --text:         #38485a;
  --muted:        #6b7d91;
  --hairline:     rgba(29, 78, 137, 0.13);
  --hairline-2:   rgba(29, 78, 137, 0.07);

  /* --- Grounds ---------------------------------------------------------- */
  --bg:           #fbfcfe;
  --glow-a:       rgba(126, 168, 210, 0.30);
  --glow-b:       rgba(176, 205, 232, 0.34);
  --glow-c:       rgba(221, 232, 244, 0.60);

  --panel:        rgba(255, 255, 255, 0.78);
  --panel-solid:  #ffffff;
  --panel-shadow: 0 1px 2px rgba(20, 38, 61, 0.05), 0 18px 40px -22px rgba(20, 38, 61, 0.30);
  --panel-lift:   0 2px 4px rgba(20, 38, 61, 0.06), 0 28px 56px -26px rgba(20, 38, 61, 0.38);

  /* --- Deep band -------------------------------------------------------- */
  --deep-1:       #0d2b4e;
  --deep-2:       #1d4e89;
  --deep-text:    #eaf2fa;
  --deep-muted:   #a9c4de;
  --deep-accent:  #8fc0e8;
  --deep-line:    rgba(255, 255, 255, 0.18);

  /* --- Type ------------------------------------------------------------- */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --cond:    "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  --measure: 1140px;
  --narrow: 800px;
  --gutter: clamp(20px, 5vw, 60px);
  --r-sm: 10px;
  --r:    18px;
  --r-lg: 30px;

  /* --- Banner artwork --------------------------------------------------- */
  --bn-sky-1:      #ffffff;
  --bn-sky-2:      #e8f1fa;
  --bn-sky-3:      #cfe2f3;
  --bn-sun:        #ffffff;
  --bn-ribbon:     rgba(255, 255, 255, 0.72);
  --bn-ridge-1:    rgba(124, 163, 203, 0.28);
  --bn-ridge-2:    rgba(78, 123, 172, 0.30);
  --bn-ridge-3:    rgba(46, 88, 136, 0.34);
  --bn-haze:       #eaf2fb;
  --bn-wave-1:     #0a1f3d;
  --bn-wave-2:     #14406f;
  --bn-wave-3:     #2a6199;
  --bn-wave-soft:  rgba(125, 172, 216, 0.42);
  --bn-dot:        rgba(150, 196, 240, 0.5);
  --bn-edge:       #5aa4ea;
  --bn-edge-hair:  rgba(255, 255, 255, 0.8);
  --bn-arc:        rgba(122, 170, 218, 0.32);
  --bn-motif:      #4e84be;
  --bn-motif-plate: rgba(255, 255, 255, 0.55);
  --bn-motif-op:   0.2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:      #7fb3e0;
    --brand-deep: #a9cdea;
    --brand-mid:  #6ba3d4;
    --brand-soft: #4b7ba8;
    --sky:        #17304b;
    --mist:       #101c29;

    --ink:        #e6eef7;
    --text:       #c3d1e0;
    --muted:      #8b9db0;
    --hairline:   rgba(143, 192, 232, 0.16);
    --hairline-2: rgba(143, 192, 232, 0.08);

    --bg:         #0a1119;
    --glow-a:     rgba(29, 78, 137, 0.30);
    --glow-b:     rgba(21, 56, 97, 0.34);
    --glow-c:     rgba(13, 43, 78, 0.40);

    --panel:        rgba(23, 34, 48, 0.76);
    --panel-solid:  #17222f;
    --panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 18px 40px -22px rgba(0, 0, 0, 0.70);
    --panel-lift:   0 2px 4px rgba(0, 0, 0, 0.34), 0 28px 56px -26px rgba(0, 0, 0, 0.80);

    --deep-1:     #071b31;
    --deep-2:     #113254;

    --bn-sky-1:      #101b26;
    --bn-sky-2:      #0e1a28;
    --bn-sky-3:      #0c1826;
    --bn-sun:        #4d7ba8;
    --bn-ribbon:     rgba(120, 165, 210, 0.10);
    --bn-ridge-1:    rgba(96, 140, 186, 0.16);
    --bn-ridge-2:    rgba(60, 100, 146, 0.26);
  --bn-ridge-3:    rgba(42, 76, 116, 0.34);
  --bn-haze:       #0f1c29;
    --bn-ridge-3:    rgba(42, 76, 116, 0.34);
    --bn-haze:       #0f1c29;
    --bn-wave-1:     #04101f;
    --bn-wave-2:     #0a2743;
    --bn-wave-3:     #14406f;
    --bn-wave-soft:  rgba(40, 84, 132, 0.34);
    --bn-dot:        rgba(120, 170, 220, 0.24);
    --bn-edge:       #4a8ecb;
    --bn-edge-hair:  rgba(180, 214, 244, 0.30);
    --bn-arc:        rgba(90, 138, 186, 0.34);
    --bn-motif:      #74a6d8;
    --bn-motif-plate: rgba(16, 27, 38, 0.6);
    --bn-motif-op:   0.26;
  }
}

:root[data-theme="dark"] {
  --brand:      #7fb3e0;
  --brand-deep: #a9cdea;
  --brand-mid:  #6ba3d4;
  --brand-soft: #4b7ba8;
  --sky:        #17304b;
  --mist:       #101c29;

  --ink:        #e6eef7;
  --text:       #c3d1e0;
  --muted:      #8b9db0;
  --hairline:   rgba(143, 192, 232, 0.16);
  --hairline-2: rgba(143, 192, 232, 0.08);

  --bg:         #0a1119;
  --glow-a:     rgba(29, 78, 137, 0.30);
  --glow-b:     rgba(21, 56, 97, 0.34);
  --glow-c:     rgba(13, 43, 78, 0.40);

  --panel:        rgba(23, 34, 48, 0.76);
  --panel-solid:  #17222f;
  --panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.30), 0 18px 40px -22px rgba(0, 0, 0, 0.70);
  --panel-lift:   0 2px 4px rgba(0, 0, 0, 0.34), 0 28px 56px -26px rgba(0, 0, 0, 0.80);

  --deep-1:     #071b31;
  --deep-2:     #113254;

  --bn-sky-1:      #101b26;
  --bn-sky-2:      #0e1a28;
  --bn-sky-3:      #0c1826;
  --bn-sun:        #4d7ba8;
  --bn-ribbon:     rgba(120, 165, 210, 0.10);
  --bn-ridge-1:    rgba(96, 140, 186, 0.16);
  --bn-ridge-2:    rgba(60, 100, 146, 0.26);
  --bn-ridge-3:    rgba(42, 76, 116, 0.34);
  --bn-haze:       #0f1c29;
  --bn-wave-1:     #04101f;
  --bn-wave-2:     #0a2743;
  --bn-wave-3:     #14406f;
  --bn-wave-soft:  rgba(40, 84, 132, 0.34);
  --bn-dot:        rgba(120, 170, 220, 0.24);
  --bn-edge:       #4a8ecb;
  --bn-edge-hair:  rgba(180, 214, 244, 0.30);
  --bn-arc:        rgba(90, 138, 186, 0.34);
  --bn-motif:      #74a6d8;
  --bn-motif-plate: rgba(16, 27, 38, 0.6);
  --bn-motif-op:   0.26;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 640px at 8% -8%,  var(--glow-a), transparent 62%),
    radial-gradient(820px 620px at 98% 12%,  var(--glow-b), transparent 60%),
    radial-gradient(1200px 800px at 46% 108%, var(--glow-c), transparent 62%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }
[hidden] { display: none !important; }

a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---- Type --------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.005em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { margin: 0; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.eyebrow--deep { color: var(--deep-accent); }

.lede {
  font-size: clamp(1.08rem, 1.9vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
}

.muted { color: var(--muted); }
.narrow { max-width: 70ch; }

/* ---- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(54px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

/* A tinted band or deep panel carries its own generous padding — don't
   double it up with the section's, which leaves dead space between blocks. */
.section:has(> .band-soft), .section:has(> .deep) { padding-block: clamp(26px, 3.5vw, 48px); }

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--tight { gap: 11px; }
.stack--loose { gap: 34px; }
.stack--xl { gap: clamp(40px, 6vw, 72px); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}

.split--lean { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 880px) { .split--lean { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--hairline-2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-block: 13px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }

.brand__text { display: flex; flex-direction: column; line-height: 1.04; }

.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand__sub {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }

.nav a {
  position: relative;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color .18s ease, background-color .18s ease;
}

.nav a:hover { color: var(--brand); background: var(--hairline-2); }

.nav a[aria-current="page"] {
  color: var(--brand);
  background: color-mix(in srgb, var(--sky) 70%, transparent);
}

@media (max-width: 660px) {
  .site-header__inner { padding-block: 10px; }
  .brand img { height: 36px; }
  .brand__name { font-size: 1rem; }
  .brand__sub { font-size: 0.68rem; letter-spacing: 0.11em; }
  .nav a { font-size: 0.93rem; letter-spacing: 0.06em; padding: 6px 9px; }
}

/* ---- Page opener -------------------------------------------------------- */
.opener { padding-block: clamp(46px, 7vw, 88px) clamp(30px, 4vw, 52px); }
.opener .stack { max-width: 30ch; }
.opener .lede { max-width: 58ch; }

.opener__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

@media (max-width: 900px) {
  .opener__grid { grid-template-columns: 1fr; }
  .opener .stack, .opener .lede { max-width: none; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding-block: clamp(44px, 7vw, 92px) clamp(36px, 5vw, 64px);
  /* the logo's radial glow bleeds past its box; clip so a phone never gains
     a horizontal scrollbar. overflow-x: clip does not create a scroll
     container, so sticky positioning elsewhere is unaffected. */
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 430px; margin-inline: auto; }
}

.hero h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }

.hero__strap {
  font-family: var(--cond);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-mid);
  font-weight: 600;
}

.hero__art { position: relative; }

.hero__art::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--sky), transparent 68%);
  z-index: 0;
}

.hero__art img { position: relative; z-index: 1; width: 100%; }

.hero__note {
  padding-left: 20px;
  border-left: 2px solid var(--brand-soft);
  color: var(--ink);
  font-size: 1.04rem;
  max-width: 48ch;
}

/* ---- Marks row (Assess / Manage / Train / Empower) ---------------------- */
.marks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
  padding: 22px;
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}

.mark { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 6px; }
.mark svg { width: 34px; height: 34px; color: var(--brand); }

.mark b {
  font-family: var(--cond);
  font-size: 1.04rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

.mark span { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }

/* ---- Soft panel --------------------------------------------------------- */
.card {
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: var(--panel-shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .22s ease, transform .22s ease;
}

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

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--sky), color-mix(in srgb, var(--sky) 40%, transparent));
  color: var(--brand);
  flex: none;
}

.card__icon svg { width: 24px; height: 24px; }

/* ---- Deep band: a floating rounded panel, not a full-bleed block -------- */
.deep {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--deep-1) 0%, var(--deep-2) 78%, #2a6199 100%);
  color: var(--deep-text);
  padding: clamp(36px, 5.5vw, 68px);
  box-shadow: 0 30px 70px -34px rgba(13, 43, 78, 0.75);
}

.deep h1, .deep h2, .deep h3, .deep h4 { color: var(--deep-text); }
.deep p, .deep .lede { color: var(--deep-muted); }
.deep .ticks li { color: var(--deep-muted); }
.deep .ticks li::before { background: var(--deep-accent); }

.deep__mark {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: min(360px, 48%);
  opacity: 0.10;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}

.deep > * { position: relative; z-index: 1; }

/* ---- Soft feature band (tinted, rounded, floats in the flow) ------------ */
.band-soft {
  border-radius: var(--r-lg);
  background: linear-gradient(160deg,
      color-mix(in srgb, var(--sky) 62%, transparent) 0%,
      color-mix(in srgb, var(--mist) 80%, transparent) 100%);
  padding: clamp(32px, 5vw, 60px);
}

/* ---- Flowing timeline (replaces boxed sequences) ----------------------- */
.flow { display: flex; flex-direction: column; gap: 0; }

.flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 4px 26px;
  padding-block: 26px;
}

.flow__item::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--hairline), var(--brand-soft), var(--hairline));
}

.flow__item:first-child::before { top: 42px; }
.flow__item:last-child::before  { bottom: calc(100% - 42px); }

.flow__dot {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel-solid);
  box-shadow: 0 0 0 1px var(--hairline), 0 10px 24px -14px rgba(20, 38, 61, 0.55);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.06em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.flow__dot svg { width: 26px; height: 26px; color: var(--brand); }

.flow__body { display: flex; flex-direction: column; gap: 11px; padding-top: 10px; }
.flow__body h3 { font-size: 1.32rem; }
.flow__body p { color: var(--muted); }

.flow__meta {
  font-family: var(--cond);
  font-size: 0.97rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-mid);
}

@media (max-width: 600px) {
  .flow__item { grid-template-columns: 46px 1fr; gap: 4px 18px; }
  .flow__item::before { left: 22px; }
  .flow__dot { width: 46px; height: 46px; font-size: 1.04rem; }
  .flow__dot svg { width: 20px; height: 20px; }
  .flow__body { padding-top: 4px; }
}

/* ---- Rows (replace tables) --------------------------------------------- */
.rows { display: flex; flex-direction: column; }

.row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.6fr) minmax(110px, 0.5fr);
  gap: 8px 28px;
  padding-block: 24px;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}

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

.row__name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.row__desc { color: var(--muted); }

.row__tag {
  font-family: var(--cond);
  font-size: 0.97rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-mid);
  justify-self: start;
}

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---- Definition rows ---------------------------------------------------- */
.defs { display: flex; flex-direction: column; margin: 0; }

.defs__row {
  display: grid;
  grid-template-columns: minmax(130px, 210px) 1fr;
  gap: 6px 30px;
  padding-block: 18px;
  border-top: 1px solid var(--hairline);
}

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

.defs__row dt {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
}

.defs__row dd { margin: 0; color: var(--muted); }

@media (max-width: 600px) { .defs__row { grid-template-columns: 1fr; } }

/* ---- Ticks -------------------------------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.55;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-soft);
}

/* ---- Pills -------------------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }

.pills li {
  font-family: var(--cond);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--sky) 62%, transparent);
  border-radius: 999px;
  padding: 7px 16px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn svg { width: 17px; height: 17px; }

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(29, 78, 137, 0.9);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(29, 78, 137, 0.95); }

.btn--quiet { background: transparent; color: var(--brand); border-color: var(--hairline); }
.btn--quiet:hover { border-color: var(--brand-soft); background: var(--hairline-2); }

.btn--on-deep { background: #fff; color: var(--deep-1); }
.btn--on-deep:hover { transform: translateY(-2px); background: var(--deep-accent); }

.btn--ghost-deep { background: transparent; color: var(--deep-text); border-color: var(--deep-line); }
.btn--ghost-deep:hover { border-color: var(--deep-accent); color: var(--deep-accent); }

/* ---- Figures ------------------------------------------------------------ */
figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }

figure svg { width: 100%; height: auto; display: block; }

figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.figure-card {
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: var(--panel-shadow);
  padding: clamp(20px, 3vw, 34px);
}

.diagram { color: var(--brand); }
.diagram text { font-family: "Barlow Condensed", Arial, sans-serif; letter-spacing: 0.06em; }
.diagram .d-label { fill: var(--ink); font-size: 15px; font-weight: 600; text-transform: uppercase; }
.diagram .d-sub   { fill: var(--muted); font-size: 12.5px; }
.diagram .d-edge  { fill: var(--brand-mid); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.diagram .d-node  { fill: var(--panel-solid); }

/* ---- Readiness progression --------------------------------------------- */
.ladder { display: flex; flex-direction: column; gap: 16px; }

.ladder__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  align-items: stretch;
}

.ladder__seg { height: 9px; border-radius: 999px; background: var(--hairline); }
.ladder__seg[data-fill="1"] { background: color-mix(in srgb, var(--brand-soft) 42%, transparent); }
.ladder__seg[data-fill="2"] { background: color-mix(in srgb, var(--brand-soft) 72%, transparent); }
.ladder__seg[data-fill="3"] { background: var(--brand-mid); }
.ladder__seg[data-fill="4"] { background: linear-gradient(90deg, var(--brand-mid), var(--brand-deep)); }

.ladder__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 22px; }

.ladder__step { display: flex; flex-direction: column; gap: 7px; }

.ladder__step b {
  font-family: var(--cond);
  font-size: 1.2rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.ladder__step p { font-size: 0.93rem; color: var(--muted); }
.ladder__step--target b { color: var(--brand-deep); }

.ladder__flag {
  align-self: flex-start;
  font-family: var(--cond);
  font-size: 0.82rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-mid));
  border-radius: 999px;
  padding: 3px 12px;
}

@media (max-width: 700px) { .ladder__track { display: none; } }

/* ---- Quote -------------------------------------------------------------- */
.quote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.1vw, 2rem);
  line-height: 1.32;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
  padding-left: 26px;
  border-left: 3px solid var(--brand-soft);
}

.deep .quote { color: var(--deep-text); border-left-color: var(--deep-accent); }

/* ---- Stats -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
  gap: 18px 30px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.stat { display: flex; flex-direction: column; gap: 1px; }

.stat b {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-family: var(--cond);
  font-size: 0.96rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Divider with emblem ------------------------------------------------ */
.divider { display: flex; align-items: center; gap: 20px; padding-block: clamp(14px, 3vw, 30px); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.divider img { width: 42px; opacity: 0.8; flex: none; }

/* ---- Form --------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-family: var(--cond);
  font-size: 1.02rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}

.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: var(--panel-solid);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brand-soft); }
.field textarea { resize: vertical; min-height: 132px; }

.form__note { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ---- Placeholder marker ------------------------------------------------- */
.ph {
  display: inline-block;
  font-family: var(--cond);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
  background: color-mix(in srgb, var(--sky) 75%, transparent);
  border: 1px dashed var(--brand-soft);
  padding: 2px 10px;
  border-radius: 999px;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding-block: clamp(44px, 6vw, 70px) 28px;
  border-top: 1px solid var(--hairline);
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--sky) 45%, transparent));
}

.footer-grid {
  display: grid;
  /* min() lets every track shrink below its ideal width on a phone, so the
     page never gains a horizontal scrollbar. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 34px;
  padding-bottom: 30px;
}

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col img { width: 190px; }
.footer-col p { font-size: 0.95rem; color: var(--muted); }

.footer-col h4 {
  font-family: var(--cond);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 0.97rem; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-tag {
  font-family: var(--cond);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--brand-mid);
}

/* ---- Skip link ---------------------------------------------------------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 18px; z-index: 100; border-radius: 0 0 var(--r-sm) 0; }
.skip:focus { left: 0; }

/* ---- Icon sprite host --------------------------------------------------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ==========================================================================
   Page banner — generated artwork in the brand's banner language
   ========================================================================== */
.banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: clamp(14px, 2.5vw, 34px);
}

.banner__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

.banner {
  --bn-wave-h: clamp(96px, 12vw, 164px);
}

/* The navy band is a fixed-height strip pinned to the bottom of the banner,
   and the copy is padded clear of it — so text can never land on the navy. */
.banner__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: var(--bn-wave-h);
  z-index: -1;
  display: block;
}

.banner__inner {
  position: relative;
  padding-block: clamp(38px, 4.6vw, 62px)
                 calc(var(--bn-wave-h) + clamp(26px, 4vw, 54px));
}

.banner__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

@media (max-width: 900px) {
  .banner__grid { grid-template-columns: 1fr; }
  .banner__logo { order: -1; max-width: 330px; }
}

.banner__copy { max-width: 54ch; }
.banner__copy .lede { max-width: 50ch; }
.banner__grid--solo { grid-template-columns: 1fr; }
.banner__grid--solo .banner__copy { max-width: 52ch; }
.banner h1 { font-size: clamp(2.2rem, 4.6vw, 3.35rem); }

.banner__logo img { width: 100%; max-width: 440px; margin-inline: auto; }

.banner__strap {
  font-family: var(--cond);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-mid);
  font-weight: 600;
}

/* --- artwork parts, themed through tokens ------------------------------- */
.bn-sky-a { stop-color: var(--bn-sky-1); }
.bn-sky-b { stop-color: var(--bn-sky-2); }
.bn-sky-c { stop-color: var(--bn-sky-3); }

.bn-sun-a { stop-color: var(--bn-sun); stop-opacity: 0.85; }
.bn-sun-b { stop-color: var(--bn-sun); stop-opacity: 0; }

.bn-wave-a { stop-color: var(--bn-wave-1); }
.bn-wave-b { stop-color: var(--bn-wave-2); }
.bn-wave-c { stop-color: var(--bn-wave-3); }

.bn-ribbons path { fill: var(--bn-ribbon); }
.bn-ribbons path:nth-child(1) { opacity: 0.62; }
.bn-ribbons path:nth-child(2) { opacity: 0.38; }
.bn-ribbons path:nth-child(3) { opacity: 0.2; }

.bn-ridge-far path { fill: var(--bn-ridge-1); }
.bn-ridge-mid path { fill: var(--bn-ridge-2); }
.bn-ridge-near path { fill: var(--bn-ridge-3); }
.bn-haze-a { stop-color: var(--bn-haze); stop-opacity: 0; }
.bn-haze-b { stop-color: var(--bn-haze); stop-opacity: 0.75; }

.bn-wave2 { fill: var(--bn-wave-soft); }
.bn-dot   { fill: var(--bn-dot); }

.bn-edge {
  fill: none;
  stroke: var(--bn-edge);
  stroke-width: 3;
}

.bn-edge--hair { stroke: var(--bn-edge-hair); stroke-width: 1.5; }

.bn-arc {
  fill: none;
  stroke: var(--bn-arc);
  stroke-width: 2.5;
}

.bn-arc--thin { stroke-width: 1.25; opacity: 0.6; }

.bn-motif { opacity: var(--bn-motif-op); }
.bn-motif-line  { fill: none; stroke: var(--bn-motif); stroke-width: 2.4; }
.bn-motif-fill  { fill: var(--bn-motif); }
.bn-motif-soft  { fill: var(--bn-motif); opacity: 0.5; }
.bn-motif-plate { fill: var(--bn-motif-plate); }
.bn-motif-ink   { color: var(--bn-motif); }

@media (prefers-reduced-motion: no-preference) {
  .banner__copy > *, .banner__logo {
    animation: bn-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .banner__copy > *:nth-child(2) { animation-delay: 0.06s; }
  .banner__copy > *:nth-child(3) { animation-delay: 0.12s; }
  .banner__copy > *:nth-child(4) { animation-delay: 0.18s; }
  .banner__logo { animation-delay: 0.1s; }
}

@keyframes bn-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
