/* Fonts are served from this site, so a visit contacts no one else. "S6 Sans" and "S6 Mono" are
   subsets of IBM Plex Sans and IBM Plex Mono, renamed as their licence requires; the licences
   are beside the files in /assets/fonts/. */
@font-face { font-family: "Saira Stencil One"; src: url("fonts/saira-stencil-one-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "S6 Sans"; src: url("fonts/s6-sans-var.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "S6 Mono"; src: url("fonts/s6-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "S6 Mono"; src: url("fonts/s6-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* The page is dark by design; declaring it stops browser dark modes re-coloring it. */
  color-scheme: only dark;
  --field: #161a0d;
  --field-2: #1e2412;
  --field-3: #283018;
  --od: #5E6B33;
  --od-deep: #3c4621;
  --tan: #A5915B;
  --tan-hi: #c4b078;
  --bone: #E8DFC3;
  --bone-dim: #b5ad8e;
  --black: #121210;
  --line: rgba(165, 145, 91, .22);
  --line-strong: rgba(165, 145, 91, .5);
  --stencil: "Saira Stencil One", "Chakra Petch", sans-serif;
  --display: "Chakra Petch", sans-serif;
  --body: "S6 Sans", system-ui, sans-serif;
  --mono: "S6 Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
/* Some mobile browsers only skip their forced dark mode when a page has its own dark-scheme rule. */
@media (prefers-color-scheme: dark) { :root { color-scheme: only dark; } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background-color: var(--field);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(94, 107, 51, .34), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-attachment: scroll, fixed, fixed;
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The grid is loud at full strength; this veil leaves it as a faint map sheet. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: rgba(22, 26, 13, .84);
}
/* Grain sits behind the content so it textures the field without hazing type or the badge. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .11; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--tan-hi); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(22, 26, 13, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.top__logo img { display: block; height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav a { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--bone-dim); }
.nav a:hover { color: var(--bone); }
.nav a.btn { color: var(--black); }
.nav a.btn--ghost { color: var(--bone); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }
/* Two buttons beside the logo on a phone: the wordmark is cropped to its hexagon to make room. */
@media (max-width: 480px) {
  .top__in { gap: 10px; }
  .top__logo { display: block; width: 28px; overflow: hidden; flex: none; }
  .top__logo img { height: 30px; max-width: none; }
  .nav { gap: 8px; }
  .nav .btn--sm { padding: 9px 10px; font-size: .7rem; letter-spacing: .06em; }
}

.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 13px 22px;
  background: var(--tan); color: var(--black);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--bone); color: var(--black); transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: .78rem; white-space: nowrap; }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-strong); clip-path: none; }
.btn--ghost:hover { background: rgba(165, 145, 91, .14); color: var(--bone); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-family: var(--stencil); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .92; letter-spacing: .01em; text-transform: uppercase;
  margin: 18px 0 26px; color: var(--bone);
}
.hero h1 span { white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--tan); display: block; }
.hero__lede { font-size: clamp(1.05rem, 1.5vw, 1.24rem); max-width: 56ch; color: var(--bone); margin: 0 0 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.status { display: inline-flex; align-items: center; gap: 10px; }
.status i { width: 8px; height: 8px; background: var(--tan-hi); border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.hero__mark { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.hero__mark .badge { position: absolute; inset: 14%; width: 72%; height: 72%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
/* A JPEG clipped to the hexagon: some mobile dark modes re-color SVG and drawn graphics but leave photos alone. */
.hero__mark .badge img { display: block; width: 100%; height: 100%; clip-path: polygon(50% 3.2%, 9.5% 26.6%, 9.5% 73.4%, 50% 96.8%, 90.5% 73.4%, 90.5% 26.6%); }
.hero__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.ring--rev { animation-duration: 140s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--line-strong); background: rgba(30, 36, 18, .8); }
.fact { padding: 20px 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1; color: var(--tan-hi); }
.fact span { display: block; margin-top: 8px; font-size: .92rem; color: var(--bone-dim); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { max-width: 260px; order: -1; justify-self: start; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
}

/* ---------- numbered paragraphs ---------- */
.para { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); position: relative; }
.para--od { background: var(--od-deep); border-top-color: var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.para__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.para__num { font-family: var(--stencil); font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--tan); }
.para__head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.08; margin: 6px 0 0; text-transform: uppercase; letter-spacing: .01em; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 62ch; margin: 0 0 1em; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.two--gap { margin-top: 32px; }

.mission { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.18; max-width: 26ch; margin: 0; color: var(--bone); }
.mission mark { background: none; color: var(--tan-hi); }
.gloss { border-left: 3px solid var(--tan); padding: 4px 0 4px 20px; color: var(--bone); }
.gloss dfn { font-family: var(--display); font-style: normal; font-weight: 700; font-size: 1.3rem; }
.gloss p { margin: 6px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 20px 0 20px 64px; border-top: 1px solid var(--line); position: relative; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "3." counter(s, lower-alpha); position: absolute; left: 0; top: 22px; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--tan); }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--bone-dim); }

.term { background: var(--black); border: 1px solid var(--line-strong); box-shadow: 14px 14px 0 rgba(0, 0, 0, .28); min-width: 0; }
.term__bar { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.term pre { margin: 0; padding: 18px 16px 20px; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.75; color: var(--bone); }
.term .p { color: var(--tan); user-select: none; }
.term .c { color: #7d7860; }
.term .k { color: var(--tan-hi); }

/* ---------- catalog ---------- */
.catbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 14px; background: transparent; color: var(--bone-dim); border: 1px solid var(--line-strong); cursor: pointer;
}
.filters button:hover { color: var(--bone); }
.filters button[aria-pressed="true"] { background: var(--tan); color: var(--black); border-color: var(--tan); }
.catalog { columns: 3 300px; column-gap: 22px; }
.cat { break-inside: avoid; margin: 0 0 22px; border: 1px solid var(--line); background: rgba(30, 36, 18, .86); }
.cat__name { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 12px 16px; background: var(--od-deep); border-bottom: 1px solid var(--line-strong); font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.cat__count { font-family: var(--mono); font-weight: 400; font-size: .78rem; color: var(--tan-hi); }
.cat__list { list-style: none; margin: 0; padding: 0; }
.item { padding: 14px 16px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.item__name { font-weight: 600; line-height: 1.3; }
.item__vendor { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tan); margin-top: 3px; }
.item__summary { margin: 6px 0 0; font-size: .9rem; line-height: 1.5; color: var(--bone-dim); }
.tag { flex: none; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--bone-dim); white-space: nowrap; margin-top: 2px; }
.tag--ready { background: var(--tan); border-color: var(--tan); color: var(--black); font-weight: 500; }
.tag--preview { border-style: dashed; border-color: var(--tan); color: var(--tan); }
.item__note { margin: 6px 0 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--bone-dim); }
.item[hidden], .cat[hidden] { display: none; }
.note { margin-top: 22px; font-size: .92rem; color: var(--bone-dim); max-width: 78ch; }

/* ---------- sustainment / signal ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.card { background: var(--od-deep); padding: 26px 24px 28px; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.12rem; text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 8px; }
.card p { margin: 0; color: var(--bone); font-size: .97rem; }
.card code, .rules code, .lede code { font-family: var(--mono); font-size: .86em; color: var(--tan-hi); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 16px 0 16px 30px; border-top: 1px solid var(--line); position: relative; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 12px; background: var(--tan); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.rules b { display: block; font-family: var(--display); font-size: 1.08rem; letter-spacing: .02em; }
.rules span { color: var(--bone-dim); font-size: .96rem; }

.contact { margin-top: clamp(48px, 7vw, 88px); padding: clamp(28px, 5vw, 56px); background: var(--od); border: 1px solid var(--tan); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.contact h2 { font-family: var(--stencil); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1; margin: 0 0 12px; text-transform: uppercase; }
.contact p { margin: 0; max-width: 52ch; color: #f3ecd6; }
.contact .btn { background: var(--black); color: var(--bone); }
.contact .btn:hover { background: var(--bone); color: var(--black); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

footer { padding: 36px 0 56px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--bone-dim); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-start; }
.foot img { height: 40px; width: auto; display: block; margin-bottom: 10px; }
.foot p { margin: 0; max-width: 62ch; }
.foot .foot__links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise:nth-child(2) { animation-delay: .08s; } .rise:nth-child(3) { animation-delay: .16s; } .rise:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .ring, .status i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- plain pages: demo request, privacy, not found ---------- */
.page { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.page h1 { font-family: var(--stencil); font-weight: 400; font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: .96; text-transform: uppercase; margin: 14px 0 20px; }
.page__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .page__grid { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; margin: 2.2em 0 .5em; color: var(--tan-hi); }
.prose p, .prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose code { font-family: var(--mono); font-size: .88em; color: var(--tan-hi); overflow-wrap: anywhere; }

.panel { border: 1px solid var(--line-strong); background: rgba(30, 36, 18, .92); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 20px; background: var(--od-deep); border-bottom: 1px solid var(--line-strong); }
.panel__head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.panel__body { padding: clamp(18px, 3vw, 28px); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-family: var(--display); font-weight: 600; font-size: .98rem; letter-spacing: .03em; }
.field .opt { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); margin-left: 6px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--bone);
  background: var(--black); border: 1px solid var(--line-strong); border-radius: 0; padding: 12px 14px; min-height: 48px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tan) 50%), linear-gradient(135deg, var(--tan) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; border-color: var(--tan-hi); }
.field [aria-invalid="true"] { border-color: #e2a08a; box-shadow: inset 3px 0 0 #e2a08a; }
.field__hint { margin: 0; font-size: .86rem; color: var(--bone-dim); }
.field__error { margin: 0; font-size: .92rem; font-weight: 600; color: #f0b6a2; }
.field__error::before { content: "! "; font-family: var(--mono); }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--tan); }
.check label { font-family: var(--body); font-weight: 400; font-size: .95rem; letter-spacing: 0; line-height: 1.5; }
/* The trap for form-filling robots: off-screen for people, and hidden from assistive technology in the markup. */
.field--hp { position: absolute; left: -6000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
button.btn { border: 0; cursor: pointer; }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.notice { border: 1px solid var(--line-strong); border-left: 4px solid var(--tan); background: var(--field-2); padding: 14px 18px; margin: 0 0 22px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.notice b { font-family: var(--display); letter-spacing: .03em; }
.notice--error { border-left-color: #e2a08a; }
.notice--ok { border-left-color: var(--tan-hi); background: var(--od-deep); }
.expect { list-style: none; margin: 22px 0 0; padding: 0; }
.expect li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; color: var(--bone); }
.expect li:last-child { border-bottom: 1px solid var(--line); }
.expect li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 12px; background: var(--tan); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
