/* Garrison Special Risks — site styles */

:root {
  --navy: #1B1C57;
  --navy-deep: #0D0E33;
  --navy-light: #26287A;
  --ink: #14152E;
  --muted: #4F5170;
  --mist: #C9CAE6;
  --mist-soft: #D9DAEE;
  --line: #D6D7E0;
  --paper: #F4F4F2;
  --white: #FFFFFF;
  --amber: #E0A84A;
  --wrap: 1280px;
  --pad: clamp(24px, 4vw, 40px);
  --section: clamp(80px, 10vw, 120px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }
h1, h2, h3, p, figure { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); }
.bg-white { background: var(--white); }
/* Gradients: subtle on cards, pronounced on the closing section */
.glow-soft {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(190,196,255,.20), transparent 60%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(100,110,220,.18), transparent 65%),
    linear-gradient(150deg, #15164A 0%, var(--navy) 55%, #222472 100%);
}
.glow-strong {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 92% 8%, rgba(200,205,255,.38), transparent 60%),
    radial-gradient(circle at 105% 105%, rgba(100,110,220,.55), transparent 50%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(60,66,170,.35), transparent 70%),
    linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
}
.glow-strong::before {
  content: "";
  position: absolute;
  width: 160%;
  height: 200px;
  left: 20%;
  top: 30%;
  transform: rotate(-58deg);
  border-radius: 50%;
  filter: blur(24px);
  background: linear-gradient(90deg, transparent 0%, rgba(110,120,220,.22) 40%, rgba(215,220,255,.34) 50%, rgba(110,120,220,.18) 60%, transparent 100%);
  pointer-events: none;
}
.glow-strong::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,13,44,.70) 0%, rgba(12,13,44,.30) 45%, transparent 70%);
  pointer-events: none;
}
.glow-strong > * { position: relative; z-index: 1; }
.on-navy { background-color: var(--navy); color: var(--white); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-navy .eyebrow, .hero .eyebrow { color: var(--mist); }

.h2 {
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
}

/* Section header: title left, intro right */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
}
.sec-head > div { flex: 1 1 420px; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head > p { flex: 1 1 340px; max-width: 420px; font-size: 14px; color: var(--muted); }

/* Ruled grid: 1px lines between cells, safe on any width */
.grid-ruled {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art span { position: absolute; border-radius: 50%; }
.hero-art .r1 { width: 1500px; height: 1500px; right: -1050px; top: -420px; box-shadow: inset 90px 0 120px -60px rgba(190,196,255,.45); }
.hero-art .r2 { width: 1300px; height: 1300px; right: -760px; top: -120px; box-shadow: inset 50px 0 70px -40px rgba(220,224,255,.35); }
.hero-art .r3 { width: 1700px; height: 1700px; right: -1350px; top: -700px; box-shadow: inset 140px 0 160px -90px rgba(120,130,230,.4); }
.hero-art .beam1 { width: 160%; height: 220px; left: 10%; top: 48%; transform: rotate(-58deg); filter: blur(22px);
  background: linear-gradient(90deg, transparent 0%, rgba(110,120,220,.25) 40%, rgba(215,220,255,.4) 50%, rgba(110,120,220,.2) 60%, transparent 100%); }
.hero-art .beam2 { width: 140%; height: 60px; left: 22%; top: 40%; transform: rotate(-61deg); filter: blur(9px);
  background: linear-gradient(90deg, transparent 0%, rgba(235,238,255,.35) 50%, transparent 100%); }
.hero-art .glow { width: 900px; height: 900px; right: -260px; bottom: -520px; filter: blur(30px);
  background: radial-gradient(circle at 40% 40%, rgba(100,110,220,.35), transparent 65%); }
.hero-art .shade { inset: 0; border-radius: 0; background: linear-gradient(90deg, rgba(12,13,44,.85) 0%, rgba(12,13,44,.45) 42%, transparent 68%); }

.hero-inner {
  position: relative;
  padding-top: 32px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vw, 120px);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 6px; line-height: 1; }
.brand-name { font-size: 20px; font-weight: 500; letter-spacing: .26em; }
.brand-sub { font-size: 9px; letter-spacing: .42em; color: var(--mist); }

.nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; }
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  padding: 0; border: 0;
  background: transparent; color: var(--white);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.nav-open .menu-btn .i-open { display: none; }
.nav-open .menu-btn .i-close { display: block; }
.nav-mobile { display: none; flex-direction: column; border-top: 1px solid rgba(255,255,255,.22); margin-top: 24px; }
.nav-mobile a { padding: 18px 0; font-size: 22px; border-bottom: 1px solid rgba(255,255,255,.14); }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-open .nav-mobile { display: flex; }
}

.hero h1 {
  max-width: 1120px;
  margin-top: 20px;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px);
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.hero-foot {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.hero-foot p { flex: 1 1 300px; max-width: 380px; font-size: 14px; color: var(--mist-soft); }
.hero-foot .text-link { border-bottom-color: rgba(255,255,255,.5); }

/* ---------- Practice ---------- */
.card { background: var(--white); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.card h3 { font-weight: 400; font-size: 28px; line-height: 1.2; }
.card .body { color: var(--muted); }
.card .tags { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; min-height: calc(16px + 3.2em); }

/* ---------- Why ---------- */
.point { background: var(--white); padding: 40px 32px; display: flex; flex-direction: column; gap: 14px; }
.point .num { font-size: 40px; letter-spacing: -.02em; color: var(--navy); }
.point h3 { font-weight: 500; font-size: 20px; }
.point p:last-child { font-size: 14px; color: var(--muted); }

.photo {
  position: relative;
  height: clamp(420px, 40vw, 520px);
  margin-top: 56px;
  overflow: hidden;
  background: var(--navy);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,14,51,.88) 0%, rgba(13,14,51,.55) 45%, transparent 75%); }
.photo-caption {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 4vw, 48px);
  bottom: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  max-width: 520px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.photo-caption .eyebrow { color: var(--mist); }
.photo-caption .quote { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; }
.photo-caption .quote + p { font-size: 14px; color: var(--mist-soft); }

/* ---------- Method ---------- */
.step {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(190,196,255,.20), transparent 60%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(100,110,220,.18), transparent 65%),
    linear-gradient(150deg, #15164A 0%, var(--navy) 55%, #222472 100%);
  color: var(--white);
  min-height: 200px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.step h3 { font-weight: 500; font-size: 18px; line-height: 1.3; margin-bottom: 12px; }
.step p { font-size: 13px; color: var(--mist); }
.step .num { font-size: 40px; letter-spacing: -.02em; color: var(--white); }

/* ---------- Garrison Index ---------- */
.standoff { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.standoff-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.standoff-copy p { max-width: 460px; color: var(--muted); }
.standoff-copy p.small { font-size: 14px; }

.score-card {
  flex: 1 1 360px;
  max-width: 500px;
  margin-left: auto;
  padding: 28px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 22px;
  background:
    radial-gradient(circle at 88% 0%, rgba(124,134,235,.24), transparent 55%),
    linear-gradient(155deg, #1C1E62 0%, #0F1038 55%, #0A0B2A 100%);
  box-shadow: 0 30px 60px -30px rgba(15,16,56,.55);
}
.sc-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .3em; color: #9FA2CF; }
.sc-top span:first-child { color: var(--white); }
.sc-top span:last-child { letter-spacing: .08em; }
.sc-label { font-size: 12px; color: #9FA2CF; }
.sc-score { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.sc-score strong { font-size: 64px; line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.sc-score span { font-size: 14px; color: #9FA2CF; }
.sc-status { margin-top: 12px; font-size: 13px; color: var(--amber); }
.sc-trend { width: 100%; height: 40px; display: block; }
.sc-rows { font-size: 13px; }
.sc-rows div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgba(159,162,207,.2); }
.sc-rows div:last-child { border-bottom: 1px solid rgba(159,162,207,.2); }
.sc-rows span:first-child { color: var(--mist); }
.score-card figcaption { font-size: 11px; color: #9FA2CF; }

/* ---------- Leadership ---------- */
.person { background: var(--paper); padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; }
.portrait {
  flex: 0 1 240px;
  min-width: 200px;
  height: 300px;
  background: #E4E5EC;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
  object-fit: cover;
}
.person-text { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.person-text .name { font-size: 28px; line-height: 1.2; }
.person-text .role { font-size: 13px; color: var(--muted); }
.person-text .bio { margin-top: 10px; max-width: 440px; font-size: 15px; color: var(--muted); }
.principle { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 348px; }
.principle p:first-child { font-size: 24px; line-height: 1.35; }

/* ---------- Contact ---------- */
.contact-inner { padding-top: var(--section); padding-bottom: 48px; display: flex; flex-direction: column; gap: 32px; }
.contact-inner h2 { max-width: 820px; font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.08; letter-spacing: -.02em; }
.contact-inner .lead { max-width: 480px; color: var(--mist-soft); }
.contact-email { font-size: clamp(22px, 2.6vw, 32px); gap: 10px; border-bottom-color: rgba(255,255,255,.5); word-break: break-all; }
.contact-alt { font-size: 14px; color: var(--mist); }
.contact-alt a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.4); }

.site-footer {
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: var(--mist);
}
.site-footer > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer > div:first-child { max-width: 720px; }
.site-footer a { border-bottom: 1px solid rgba(255,255,255,.3); }

/* Accessibility */
:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 16px; background: var(--white); color: var(--ink); }
.skip:focus { left: 8px; }

@media (max-width: 760px) {
  .step { min-height: 0; gap: 24px; }
  .principle { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
