:root {
  --navy:        #002868;   /* Old Glory Blue */
  --navy-deep:   #001235;
  --navy-darker: #000817;
  --gold:        #C9A961;
  --gold-bright: #E6C173;
  --gold-dark:   #8B7339;
  --cream:       #F7F2E7;
  --paper:       #FBF8F1;
  --ink:         #0E1424;
  --slate:       #2A3245;
  --slate-mute:  #586278;
  --line:        rgba(14, 20, 36, 0.12);
  --line-gold:   rgba(201, 169, 97, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ─── TOP BRAND BAR ─────────────────────────────────────────── */
.brandbar {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-dark);
}
.brandbar .left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brandbar .right { display: flex; gap: 22px; flex-wrap: wrap; }
.brandbar a { color: var(--gold-bright); text-decoration: none; }
.brandbar a:hover { color: var(--cream); }
.brandbar .pin {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201,169,97,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(201,169,97,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-darker) 0%, var(--navy-deep) 50%, var(--navy) 100%);
  color: var(--cream);
  padding: 90px 32px 110px;
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}

/* lightning streaks via CSS */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  top: -10%;
  width: 2px;
  height: 70%;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.0) 10%, rgba(230,193,115,0.7) 30%, rgba(255,255,255,0.95) 60%, transparent 100%);
  filter: blur(0.5px);
  opacity: 0.55;
  transform: rotate(8deg);
  pointer-events: none;
}
.hero::before { right: 22%; }
.hero::after { right: 14%; transform: rotate(-6deg); height: 55%; opacity: 0.35; }

/* subtle rain mesh */
.hero .mesh {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(75deg, transparent 0px, transparent 8px, rgba(255,255,255,0.025) 9px, transparent 10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 38px; height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 110px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 18px;
}
.hero h1 .accent {
  color: var(--gold-bright);
  display: block;
}
.hero h1 .italic {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 0.72em;
  color: var(--cream);
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 400;
  display: inline-block;
  margin-top: 6px;
}

.hero .lede {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(247, 242, 231, 0.82);
  margin-top: 24px;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

.hero .stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 16px 18px;
  text-align: right;
  line-height: 1.7;
  background: rgba(0, 8, 23, 0.4);
}
.stamp strong { color: var(--cream); display: block; font-size: 13px; letter-spacing: 0.18em; }

/* ─── INDEX / JUMP NAV ──────────────────────────────────────── */
.index {
  background: var(--ink);
  color: var(--cream);
  padding: 26px 32px;
  border-bottom: 1px solid var(--gold-dark);
}
.index-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.index-label {
  color: var(--gold);
  margin-right: 14px;
  border-right: 1px solid var(--gold-dark);
  padding-right: 14px;
}
.index a {
  color: var(--cream);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 2px;
  transition: all 0.18s ease;
}
.index a:hover { background: var(--gold); color: var(--navy-deep); }

/* ─── SECTION WRAPPERS ──────────────────────────────────────── */
section { padding: 96px 32px; }
.wrap { max-width: 1240px; margin: 0 auto; }

.section-head {
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.section-head .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head .kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
}
.section-head h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy-deep);
}
.section-head h2 .it {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  text-transform: none;
  color: var(--gold-dark);
  font-size: 0.85em;
  letter-spacing: -0.01em;
}
.section-head .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-mute);
  text-align: right;
  border: 1px solid var(--line);
  padding: 10px 14px;
  white-space: nowrap;
}

/* ─── STANDARDS / PROTOCOLS BLOCK ───────────────────────────── */
.protocols {
  background: var(--paper);
}
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.protocol-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 36px;
  background: var(--paper);
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
}
.protocol-card:hover { background: #FFFFFF; transform: translateY(-2px); }
.protocol-card::after {
  content: "↗";
  position: absolute;
  top: 36px;
  right: 36px;
  font-size: 18px;
  color: var(--gold-dark);
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.protocol-card:hover::after { opacity: 1; transform: translate(2px, -2px); }
.protocol-card .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold-dark);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.protocol-card h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 26px;
  color: var(--navy-deep);
  line-height: 1.15;
  margin-bottom: 14px;
}
.protocol-card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}
.protocol-card .tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid var(--gold-dark);
  padding: 4px 9px;
  margin-top: 18px;
}

/* ─── CARRIER GRID ──────────────────────────────────────────── */
.carriers { background: var(--cream); }
.carrier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.carrier {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 32px 26px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.carrier:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px -18px rgba(0, 40, 104, 0.35);
}
.carrier .idx {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--slate-mute);
  letter-spacing: 0.18em;
}
.carrier .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.carrier h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy-deep);
  line-height: 1.05;
  margin-bottom: 6px;
}
.carrier .sub {
  font-size: 12px;
  color: var(--slate-mute);
  line-height: 1.4;
  margin-bottom: 18px;
}
.carrier .cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.carrier .cta::after {
  content: "→";
  transition: transform 0.2s ease;
}
.carrier:hover .cta::after { transform: translateX(4px); }
.carrier.feature {
  background: var(--navy-deep);
  color: var(--cream);
}
.carrier.feature h3 { color: var(--gold-bright); }
.carrier.feature .badge { color: var(--gold); }
.carrier.feature .sub { color: rgba(247,242,231,0.7); }
.carrier.feature .cta { color: var(--cream); }
.carrier.feature .idx { color: var(--gold-dark); }

/* ─── AUTHORITIES ROW ───────────────────────────────────────── */
.authorities { background: var(--paper); }
.auth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--navy-deep);
}
.auth {
  border-right: 1px solid var(--line);
  padding: 36px 28px;
  position: relative;
  transition: background 0.2s ease;
}
.auth:hover { background: #FFFFFF; }
.auth::after {
  content: "↗";
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 14px;
  color: var(--gold-dark);
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.auth:hover::after { opacity: 1; transform: translate(2px, -2px); }
.auth:last-child { border-right: none; }
.auth .roman {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 18px;
}
.auth h4 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy-deep);
  line-height: 1.1;
  margin-bottom: 10px;
}
.auth p {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.55;
}

/* ─── 51-POINT CHECKLIST ────────────────────────────────────── */
.checklist {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.checklist::before {
  content: "51";
  position: absolute;
  top: 40px;
  right: -20px;
  font-family: 'Anton', sans-serif;
  font-size: 380px;
  line-height: 1;
  color: rgba(201, 169, 97, 0.06);
  pointer-events: none;
  letter-spacing: -0.04em;
}
.checklist .section-head { border-color: rgba(247, 242, 231, 0.15); }
.checklist .section-head h2 { color: var(--cream); }
.checklist .section-head h2 .it { color: var(--gold-bright); }
.checklist .section-head .kicker { color: var(--gold-bright); }
.checklist .section-head .meta { color: var(--gold); border-color: var(--gold-dark); }
.checklist .lede-box {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: start;
}
.checklist .lede-box p {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--cream);
}
.checklist .lede-box .pull {
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.cl-category {
  margin-top: 56px;
  position: relative;
}
.cl-category:first-of-type { margin-top: 0; }
.cl-category-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
}
.cl-category-head .cnum {
  font-family: 'Anton', sans-serif;
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
}
.cl-category-head h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--cream);
  font-style: italic;
}

.cl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201, 169, 97, 0.2);
  border: 1px solid rgba(201, 169, 97, 0.2);
}
.cl-item {
  background: var(--navy);
  padding: 22px 22px;
  position: relative;
  transition: background 0.2s ease;
}
.cl-item:hover { background: var(--navy-deep); }
.cl-item .point {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 8px;
}
.cl-item h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 8px;
  line-height: 1.2;
}
.cl-item p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(247, 242, 231, 0.78);
}

/* ─── HAIL SIZE TABLE ───────────────────────────────────────── */
.hail { background: var(--paper); }
.hail-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.hail-text h3 {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 30px;
  color: var(--navy-deep);
  margin-bottom: 22px;
  line-height: 1.2;
}
.hail-text p {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 16px;
}
.hail-text p strong { color: var(--navy-deep); }

.hail-table {
  background: #FFFFFF;
  border: 1px solid var(--line);
}
.hail-table .row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: center;
}
.hail-table .row:last-child { border-bottom: none; }
.hail-table .row.head {
  background: var(--navy-deep);
  color: var(--gold-bright);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 22px;
}
.hail-table .row .mat { color: var(--ink); }
.hail-table .row .sz { font-family: 'JetBrains Mono', monospace; color: var(--gold-dark); font-weight: 600; }

.hail-compare {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.hail-compare .cell {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
.hail-compare .cell:nth-child(2n) { border-right: none; }
.hail-compare .cell:nth-last-child(-n+2) { border-bottom: none; }
.hail-compare .cell strong { color: var(--navy-deep); }
.hail-compare .cell span { font-family: 'JetBrains Mono', monospace; color: var(--gold-dark); }

/* ─── CALL TO ACTION ────────────────────────────────────────── */
.cta-section {
  background: var(--navy-darker);
  color: var(--cream);
  padding: 100px 32px;
  text-align: center;
  border-top: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(201,169,97,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .inner { position: relative; max-width: 820px; margin: 0 auto; }
.cta-section .eyebrow { justify-content: center; }
.cta-section h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 62px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 20px;
}
.cta-section h2 .it {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  text-transform: none;
  color: var(--gold-bright);
  letter-spacing: -0.01em;
  font-size: 0.9em;
}
.cta-section p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(247,242,231,0.82);
  margin-bottom: 36px;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 18px 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--gold);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-darker);
}
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(201,169,97,0.15); }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(247,242,231,0.65);
  padding: 60px 32px 32px;
  font-size: 13px;
}
.foot {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201,169,97,0.18);
}
.foot h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.foot .brand-line {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.1;
}
.foot .brand-line .slash { color: var(--gold); }
.foot .tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--gold-bright);
  margin-bottom: 18px;
}
.foot a { color: rgba(247,242,231,0.78); text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: var(--gold-bright); }
.colophon {
  max-width: 1240px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,242,231,0.4);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero .stamp { justify-self: start; text-align: left; }
  .protocol-grid { grid-template-columns: 1fr; }
  .carrier-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-grid { grid-template-columns: repeat(2, 1fr); }
  .auth { border-bottom: 1px solid var(--line); }
  .auth:nth-child(2n) { border-right: none; }
  .cl-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist .lede-box { grid-template-columns: 1fr; gap: 30px; }
  .hail-inner { grid-template-columns: 1fr; gap: 40px; }
  .foot { grid-template-columns: 1fr; gap: 30px; }
  section { padding: 70px 24px; }
}
@media (max-width: 580px) {
  .hero { padding: 60px 20px 80px; }
  .brandbar { padding: 12px 20px; font-size: 10px; }
  .brandbar .left, .brandbar .right { gap: 14px; }
  .carrier-grid { grid-template-columns: 1fr; }
  .cl-grid { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth { border-right: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .meta { align-self: flex-start; }
}

/* fade-in for sections */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.section-head, .carrier, .protocol-card, .auth, .cl-item, .hail-text, .hail-table {
  animation: rise 0.7s ease both;
}