/* =========================================================
   FSOne — fsone.net
   Palette sampled directly from the 2026 logo:
   green #80C050, grey #7F7F7F, black wordmark, on a
   dark navy field for the hero and dark bands.
   ========================================================= */

:root {
  --brand:      #80C050;   /* logo green, sampled */
  --brand-dark: #6BA641;   /* hover / pressed */
  --brand-deep: #4A8129;   /* small type and links on light backgrounds */
  --brand-tint: #F0F7E9;
  --brand-glow: rgba(128, 192, 80, 0.16);

  --grey:    #7F7F7F;      /* logo grey, sampled */
  --grey-lt: #B9BEC4;

  --navy:   #0E1C2F;       /* hero and dark bands */
  --navy-2: #1A2C44;       /* borders on navy */
  --navy-3: #24374F;

  --ink:  #2E3236;
  --head: #1A1E21;
  --muted: #6A7178;
  --rule: #E2E5E7;
  --paper: #FFFFFF;
  --paper-alt: #F5F7F4;
  --on-dark: #D7DDE4;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shell: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --rail: 190px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.14; margin: 0; color: var(--head); letter-spacing: -0.012em; }
p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--head); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--brand); color: #fff; padding: 12px 18px; }
.skip:focus { left: 12px; top: 12px; }

/* ---------------- Masthead ---------------- */

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.masthead .shell { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { display: block; height: 50px; width: auto; }
@media (max-width: 560px) { .brand img { height: 40px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 21px; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 14.5px;
  font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { color: var(--brand-deep); border-bottom-color: var(--brand); }
.nav .nav-cta {
  background: var(--brand); border: 1px solid var(--brand); border-radius: 3px;
  padding: 10px 18px; color: #fff;
}
.nav .nav-cta:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--rule);
  border-radius: 3px; color: var(--ink); font-family: var(--sans); font-size: 14px;
  font-weight: 600; padding: 9px 14px; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px -18px rgba(14,28,47,.5);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 22px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .nav .nav-cta { margin-top: 16px; text-align: center; }
}

/* ---------------- Hero, on navy, with the wave field ---------------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--on-dark);
  padding: clamp(60px, 10vw, 116px) 0 0;
}
.hero h1, .hero h2 { color: #fff; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .shell { position: relative; z-index: 2; }

/* Wave field: seamless 480-unit tile, each layer drifting one full tile.
   Longest cycle is 9s, so the whole field re-synchronises well under 10s. */
.wave { will-change: transform; }
@keyframes drift-left  { from { transform: translateX(0);      } to { transform: translateX(-480px); } }
@keyframes drift-right { from { transform: translateX(-480px); } to { transform: translateX(0);      } }
@keyframes node-pulse  { 0%, 100% { opacity: .25; } 50% { opacity: .8; } }

.wave-1 { animation: drift-left  9s linear infinite; }
.wave-2 { animation: drift-right 7.5s linear infinite; }
.wave-3 { animation: drift-left  6s linear infinite; }
.wave-4 { animation: drift-right 8.5s linear infinite; }
.wave-5 { animation: drift-left  7s linear infinite; }
.wave-nodes circle { animation: node-pulse 6s ease-in-out infinite; }
.wave-nodes circle:nth-child(3n)   { animation-delay: -2s; }
.wave-nodes circle:nth-child(3n+1) { animation-delay: -4s; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--brand);
  margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--brand); display: block; }

.hero h1 { font-size: clamp(37px, 6.2vw, 66px); max-width: 15ch; margin-bottom: 26px; }
.hero .lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--on-dark); max-width: 60ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 13px 26px; border-radius: 3px; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #10233A; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { color: #fff; border-color: var(--navy-3); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-glow); }
.band-alt .btn-ghost, .band:not(.band-dark) .btn-ghost { color: var(--head); border-color: #CBD1D4; }
.band-alt .btn-ghost:hover, .band:not(.band-dark) .btn-ghost:hover { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-tint); }
.band:not(.band-dark) .btn-primary { color: #fff; }

.factstrip {
  position: relative; z-index: 2;
  margin: clamp(48px, 7vw, 82px) 0 0;
  border-top: 2px solid var(--brand);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.factstrip div { padding: 22px 22px 26px; border-right: 1px solid var(--navy-2); }
.factstrip div:last-child { border-right: 0; }
.factstrip dt { font-size: 13px; color: var(--brand); font-weight: 700; margin-bottom: 5px; }
.factstrip dd { margin: 0; font-family: var(--serif); font-size: 19px; color: #fff; line-height: 1.3; }
@media (max-width: 800px) {
  .factstrip { grid-template-columns: repeat(2, 1fr); }
  .factstrip div:nth-child(2n) { border-right: 0; }
  .factstrip div:nth-child(n+3) { border-top: 1px solid var(--navy-2); }
}
@media (max-width: 460px) {
  .factstrip { grid-template-columns: 1fr; }
  .factstrip div { border-right: 0; }
  .factstrip div + div { border-top: 1px solid var(--navy-2); }
}

/* ---------------- Section frame ---------------- */

.band { padding: clamp(58px, 8vw, 104px) 0; border-bottom: 1px solid var(--rule); }
.band-alt { background: var(--paper-alt); }
.band-dark { background: var(--navy); color: var(--on-dark); border-bottom-color: var(--navy-2); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark a { color: var(--brand); }
.band-dark a:hover { color: #fff; }
.band-dark .rail-label { color: var(--brand); }

.split { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 26px; } }

.rail-label { font-size: 13.5px; font-weight: 700; color: var(--brand-deep); position: sticky; top: 112px; align-self: start; }
.rail-label::after { content: ""; display: block; height: 2px; background: var(--brand); margin-top: 12px; width: 100%; }
@media (max-width: 860px) { .rail-label { position: static; } }

.band h2 { font-size: clamp(28px, 3.6vw, 41px); margin-bottom: 20px; max-width: 22ch; }
.band .intro { font-size: 18.5px; color: var(--muted); max-width: 64ch; }
.band-dark .intro { color: var(--on-dark); }

/* ---------------- Capabilities ---------------- */

.caps { margin-top: 44px; border-top: 1px solid var(--rule); }
.cap { display: grid; grid-template-columns: minmax(0,1fr) 210px; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.cap h3 { font-size: 25px; margin-bottom: 10px; }
.cap p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 60ch; }
.cap .codes { font-size: 14px; color: var(--muted); }
.cap .codes b { display: block; color: var(--brand-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.cap .codes span { display: block; margin: 2px 0 10px; }
.cap .codes span:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .cap { grid-template-columns: 1fr; gap: 14px; }
  .cap .codes { border-left: 3px solid var(--brand); padding-left: 14px; }
}

/* ---------------- Data tables ---------------- */

.table-wrap { margin-top: 38px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 12px; }
th, td { text-align: left; padding: 15px 18px 15px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { font-size: 13.5px; font-weight: 700; color: var(--brand-deep); border-bottom: 2px solid var(--brand); padding-bottom: 10px; }
tbody th { font-weight: 700; color: var(--head); width: 34%; }
td .cite { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.band-dark th, .band-dark td { border-bottom-color: var(--navy-2); }
.band-dark tbody th { color: #fff; }
.band-dark thead th { color: var(--brand); border-bottom-color: var(--brand); }
.band-dark td .cite { color: var(--grey-lt); }

/* ---------------- Ownership ---------------- */

.owner-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 42px; border-top: 2px solid var(--brand); }
.owner-grid > div { padding: 28px 30px 30px; border-bottom: 1px solid var(--rule); }
.owner-grid > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.owner-grid h3 { font-size: 21px; margin-bottom: 9px; }
.owner-grid p { margin: 0; font-size: 16px; color: var(--muted); }
.band-dark .owner-grid > div { border-bottom-color: var(--navy-2); }
.band-dark .owner-grid > div:nth-child(odd) { border-right-color: var(--navy-2); }
.band-dark .owner-grid p { color: var(--on-dark); }
@media (max-width: 760px) {
  .owner-grid { grid-template-columns: 1fr; }
  .owner-grid > div:nth-child(odd) { border-right: 0; }
}

.seal-note {
  margin-top: 34px; padding: 20px 24px;
  border-left: 4px solid var(--brand); background: var(--brand-tint);
  font-size: 16px; color: var(--ink);
}
.seal-note strong { color: var(--head); }
.band-dark .seal-note { background: var(--brand-glow); color: var(--on-dark); }
.band-dark .seal-note strong { color: #fff; }

/* ---------------- Delivery ---------------- */

.deliver { margin-top: 42px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--navy-2); border: 1px solid var(--navy-2); }
.deliver > div { background: var(--navy); padding: 26px 24px 28px; border-top: 3px solid var(--brand); }
.deliver h3 { font-size: 20px; margin-bottom: 8px; }
.deliver p { margin: 0; font-size: 16px; color: var(--on-dark); }
@media (max-width: 820px) { .deliver { grid-template-columns: 1fr; } }

/* ---------------- Contact ---------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: clamp(28px, 5vw, 60px); margin-top: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--rule); border-top: 3px solid var(--brand); background: var(--paper); padding: 30px; border-radius: 3px; }
.contact-card h3 { font-size: 21px; margin-bottom: 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 3px; }

/* ---------------- Footer ---------------- */

.foot { background: var(--navy); color: var(--on-dark); padding: 56px 0 30px; }
.foot .brand { background: #fff; padding: 14px 20px; border-radius: 4px; margin-bottom: 18px; }
.foot .brand img { height: 56px; }
.foot-tagline { font-style: italic; color: var(--brand); font-size: 16px; margin: -8px 0 16px; }
.foot-top { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(2, minmax(0,1fr)); gap: 36px; }
@media (max-width: 780px) { .foot-top { grid-template-columns: 1fr; gap: 28px; } }
.foot h4 { font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.foot p { font-size: 15.5px; color: var(--on-dark); opacity: .85; max-width: 46ch; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; font-size: 15.5px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: var(--brand); text-decoration: underline; }
.foot-base {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--navy-2);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 14px; color: var(--grey-lt);
}

/* Path to a sole-source award */

.steps { margin-top: 52px; }
.steps > h3 { font-size: 26px; margin-bottom: 12px; }
.steps > p.steps-lede { font-size: 16.5px; color: var(--muted); max-width: 62ch; margin-bottom: 34px; }
.steps ol {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0;
}
.steps ol::before {
  content: ""; position: absolute; z-index: 1;
  top: 22px; left: 23px; right: 46px; height: 2px;
  background: var(--brand); opacity: .4;
}
.steps li { position: relative; z-index: 2; padding-right: 26px; }
.step-n {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--brand); background: var(--paper);
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--brand-deep); margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.steps h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 8px; color: var(--head); }
.steps li p { margin: 0 0 12px; font-size: 15.5px; color: var(--muted); }
.step-cite { display: block; font-size: 13px; font-weight: 700; color: var(--brand-deep); }
.band-alt .step-n { background: var(--paper-alt); }
.band-dark .step-n { background: var(--navy); color: var(--brand); }
.band-dark .steps h4 { color: #fff; }
.band-dark .steps li p { color: var(--on-dark); }
.band-dark .step-cite { color: var(--brand); }

@media (max-width: 860px) {
  .steps ol { grid-template-columns: 1fr; }
  .steps ol::before { top: 8px; bottom: 34px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps li { padding: 0 0 30px 0; }
  .steps li:last-child { padding-bottom: 0; }
}

/* Purpose */

.lexicon { margin: 36px 0 40px; padding: 4px 0 6px 26px; border-left: 4px solid var(--brand); }
.lexicon .term {
  display: block; font-family: var(--serif); font-size: clamp(30px, 4vw, 40px);
  font-weight: 600; font-style: italic; color: var(--head); letter-spacing: -0.015em;
}
.lexicon .gloss { margin: 12px 0 0; font-size: 18px; color: var(--ink); max-width: 56ch; }
.lexicon .src { margin-top: 12px; font-size: 13px; color: var(--muted); }
.band-dark .lexicon .gloss { color: var(--on-dark); }
.band-dark .lexicon .term { color: #fff; }

.purpose-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(26px, 4vw, 48px); margin-top: 6px;
  padding-top: 32px; border-top: 1px solid var(--rule);
}
.purpose-grid h3 { font-size: 23px; margin-bottom: 12px; }
.purpose-grid p { font-size: 16.5px; color: var(--muted); margin-bottom: .85em; }
.purpose-grid p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .purpose-grid { grid-template-columns: 1fr; } }

.principles-head { font-size: 23px; margin: 46px 0 0; }
.principles {
  list-style: none; counter-reset: p; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0;
  border-top: 2px solid var(--brand);
}
.principles li { counter-increment: p; padding: 24px 26px 4px 0; }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: 15px; font-weight: 600;
  color: var(--brand-deep); margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.principles h4 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 8px; color: var(--head); }
.principles p { margin: 0; font-size: 15.5px; color: var(--muted); }
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; }
  .principles li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .principles li:last-child { border-bottom: 0; }
}


/* Security work in detail */

.secdetail { margin-top: 54px; padding-top: 34px; border-top: 2px solid var(--brand); }
.secdetail > h3 { font-size: 24px; margin-bottom: 10px; }
.secdetail-lede { font-size: 16.5px; color: var(--muted); max-width: 58ch; margin-bottom: 28px; }
.secgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.secgrid > div { background: var(--paper); padding: 24px 26px 22px; }
.band-alt .secgrid > div { background: var(--paper-alt); }
.secgrid h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 0 0 9px; color: var(--head); }
.secgrid p { margin: 0 0 12px; font-size: 15.5px; color: var(--muted); }
.sectags { display: block; font-size: 12.5px; font-weight: 700; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.secnote { margin-top: 24px; font-size: 15.5px; color: var(--muted); max-width: 72ch; }
.secnote b { color: var(--head); }
@media (max-width: 760px) { .secgrid { grid-template-columns: 1fr; } }


/* Print */

@media print {
  .masthead { position: static; }
  .rail-label { position: static; }
  .wave { animation: none; }
  .secdetail, .secgrid, .secgrid > div,
  .cap, .steps li, .deliver > div, .owner-grid > div { break-inside: avoid; }
}
