/* ============================================================
   MINUTEMEN LABS
   1775 meets 2026. Federal ink + parchment + brass + signal.
   ============================================================ */

:root {
  /* palette */
  --ink:        #0a0e16;   /* near-black federal navy   */
  --ink-2:      #0f1623;   /* raised panel              */
  --ink-3:      #15203324; /* hairline tint             */
  --navy:       #17273f;
  --parchment:  #ece1c8;   /* primary text              */
  --parchment-2:#cabfa6;   /* secondary text            */
  --parchment-3:#8a8067;   /* tertiary text             */
  --muted:      #837a66;
  --brass:      #cb9b50;   /* primary accent            */
  --brass-2:    #e6bd6c;
  --muster:     #c2483c;   /* old model / red           */
  --signal:     #74c48c;   /* live / local / green      */
  --line:       rgba(236, 225, 200, 0.12);
  --line-2:     rgba(236, 225, 200, 0.07);

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* metrics */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.075rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* ---------- atmosphere ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% -10%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- typography helpers ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem); }
em { font-style: italic; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.kicker--muster { color: var(--muster); }
.kicker--brass  { color: var(--brass-2); }
.kicker--signal { color: var(--signal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  will-change: transform;
}
.btn--lg { padding: 1.05em 2em; font-size: 0.85rem; }
.btn--brass {
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(203,155,80,0.5);
}
.btn--brass:hover {
  background: var(--brass-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -16px rgba(203,155,80,0.8);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--parchment);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-2); transform: translateY(-2px); }

/* ---------- dots ---------- */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); display: inline-block; flex: none; }
.dot--live { background: var(--signal); box-shadow: 0 0 0 0 rgba(116,196,140,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(116,196,140,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(116,196,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(116,196,140,0); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand__mark { position: relative; display: inline-flex; align-items: center; }
.brand__mark .star { fill: var(--brass); }
.brand__cursor {
  width: 7px; height: 18px; background: var(--signal); margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.brand__type {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.16em;
  display: flex; gap: 0.4em; align-items: baseline;
}
.brand__type strong { font-weight: 600; color: var(--parchment); }
.brand__type em { font-style: normal; color: var(--brass); }

.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--parchment-2); position: relative; padding: 0.2em 0;
  transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--brass); transition: width .28s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover { color: var(--parchment); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 0.5rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav__toggle span { width: 24px; height: 2px; background: var(--parchment); transition: transform .3s, opacity .3s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { transform: translateY(-0px) rotate(-45deg); opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; z-index: 2; padding: clamp(3rem, 7vw, 6.5rem) var(--gutter) 3rem; max-width: var(--maxw); margin-inline: auto; }
.hero__field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.glow {
  position: absolute; top: -12%; right: -6%; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(203,155,80,0.16), transparent 62%);
  filter: blur(8px);
}
.rule { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-2); }
.rule--1 { top: 36%; } .rule--2 { bottom: 18%; }

.hero__copy { max-width: 54rem; }

.broadside {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--parchment-2);
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.5em 0.95em;
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-bottom: 1.6rem;
}
.broadside__star { color: var(--brass); }

.hero__title {
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.hero__title em {
  display: block; color: var(--brass); font-weight: 500;
  font-variation-settings: "opsz" 80;
}
.hero__lede {
  max-width: 60ch; margin-top: 1.6rem; color: var(--parchment-2);
  font-size: clamp(1.02rem, 0.97rem + 0.3vw, 1.18rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero__signals {
  display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--parchment-2);
  text-transform: uppercase;
}
.hero__signals li { display: inline-flex; align-items: center; gap: 0.55em; }

/* ---------- live mission board ---------- */
.board {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #0c1422, #080c14);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.95), inset 0 1px 0 rgba(236,225,200,0.05);
}
.board__chrome {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-2);
  background: rgba(255,255,255,0.015);
}
.board__tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.board__tab {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--muted); padding: 0.35em 0.7em; border-radius: 5px; white-space: nowrap;
}
.board__tab--active { color: var(--brass-2); background: rgba(203,155,80,0.12); }
.board__chrome-right { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.board__pill {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--signal);
  border: 1px solid rgba(116,196,140,0.28); border-radius: 100px; padding: 0.3em 0.7em;
  white-space: nowrap;
}
.board__pill--ghost { color: var(--parchment-2); border-color: var(--line); }

.board__prompt {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-2);
  background: rgba(0,0,0,0.25);
  font-family: var(--mono); font-size: 0.82rem;
}
.board__caret { color: var(--brass); flex: none; }
.board__prompt-text { color: var(--parchment); white-space: nowrap; overflow: hidden; }
.board__prompt-cursor { width: 7px; height: 1.05em; background: var(--signal); display: inline-block; vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
.board__muster {
  margin-left: auto; flex: none; color: var(--ink); background: var(--brass);
  font-weight: 600; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45em 0.85em; border-radius: 5px;
}

/* fixed-height stage so chat and board never resize the page */
.board__stage { height: clamp(420px, 52vh, 520px); position: relative; }
[hidden] { display: none !important; }

/* chat / planning view */
.board__chat {
  height: 100%; overflow-y: auto; padding: 1.1rem 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.board__chat::-webkit-scrollbar { width: 6px; }
.board__chat::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.msg {
  max-width: 84%; font-size: 0.85rem; line-height: 1.5;
  padding: 0.7rem 0.9rem; border-radius: 12px;
  animation: taskIn .42s cubic-bezier(.2,.7,.2,1) both;
}
.msg__who { display: block; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.msg--user { align-self: flex-end; background: rgba(203,155,80,0.12); border: 1px solid rgba(203,155,80,0.28); color: var(--parchment); border-bottom-right-radius: 4px; }
.msg--ai { align-self: flex-start; background: #101a28; border: 1px solid var(--line-2); color: var(--parchment-2); border-bottom-left-radius: 4px; }
.msg--ai strong { color: var(--brass-2); font-weight: 600; }
.msg ul { margin: 0.6rem 0 0; display: grid; gap: 0.45rem; }
.msg li { position: relative; padding-left: 1.2em; color: var(--parchment); }
.msg li::before { content: "?"; position: absolute; left: 0; color: var(--brass); font-family: var(--mono); font-weight: 600; }
.msg--typing { padding: 0.7rem 0.95rem; }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 0.9em; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: bounce 1.3s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bounce { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.board__cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2);
  height: 100%;
}
.col { background: #0a121e; display: flex; flex-direction: column; min-height: 0; }
.col__head {
  flex: none;
  display: flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--parchment-2);
  padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line-2);
}
.col--prog .col__head { color: var(--brass-2); }
.col--review .col__head { color: #d8a7c4; }
.col--done .col__head { color: var(--signal); }
.col__count {
  font-style: normal; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07); border-radius: 5px; font-size: 0.68rem; color: var(--parchment-2);
}
.col__body {
  padding: 0.6rem; display: flex; flex-direction: column; gap: 0.6rem;
  flex: 1; min-height: 0; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.col__body::-webkit-scrollbar { width: 6px; }
.col__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.task {
  display: flex; gap: 0.6rem; align-items: stretch;
  background: linear-gradient(180deg, #121d2d, #0e1622);
  border: 1px solid var(--line-2); border-radius: 7px;
  padding: 0.6rem 0.7rem;
  animation: taskIn .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes taskIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.task__bar { width: 3px; border-radius: 2px; flex: none; background: var(--brass); }
.task[data-agent="1"] .task__bar { background: #cb9b50; }
.task[data-agent="2"] .task__bar { background: #74c48c; }
.task[data-agent="3"] .task__bar { background: #6ea8d8; }
.task[data-agent="4"] .task__bar { background: #d8a7c4; }
.task[data-agent="5"] .task__bar { background: #c2483c; }
.task[data-agent="6"] .task__bar { background: #d6b15e; }
.task__main { min-width: 0; }
.task__title { font-size: 0.8rem; line-height: 1.3; color: var(--parchment); font-family: var(--sans); font-weight: 500; }
.task__meta { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
.task__agent { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); letter-spacing: 0.04em; }
.task__tag {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass); border: 1px solid var(--line); border-radius: 4px; padding: 0.1em 0.4em;
}
.col--done .task { opacity: 0.72; }
.col--done .task__title { text-decoration: line-through; text-decoration-color: rgba(116,196,140,0.5); }

/* dependency awareness */
.task__dep {
  display: block; margin-top: 0.45rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.02em; color: var(--muted);
}
.task--blocked { opacity: 0.45; }
.task--blocked .task__bar { background: #38465a !important; }
.task--blocked .task__dep { color: var(--muster); }
.task--ready .task__dep { color: var(--signal); }

/* muster clock (before / after) */
.muster-clock {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.2rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent);
}
.muster-clock .lbl { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.5rem; }
.muster-clock .big { font-family: var(--display); font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem); display: block; line-height: 1.1; }
.muster-clock .sub { color: var(--parchment-2); font-family: var(--mono); font-size: 0.82rem; }
.muster-clock__old .big { color: var(--muster); }
.muster-clock__new .big { color: var(--signal); }
.muster-clock__arrow { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--brass); }
.muster-clock__arrow span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative; z-index: 2;
  border-block: 1px solid var(--line-2);
  background: var(--ink-2);
  overflow: hidden; padding: 0.9rem 0;
}
.marquee__track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: scroll 32s linear infinite;
  font-family: var(--display); font-style: italic; font-size: clamp(1.1rem, 0.9rem + 1vw, 1.7rem);
  color: var(--parchment-2);
}
.marquee__track .sep { color: var(--brass); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { margin-top: 0.2rem; }
.section__sub {
  font-family: var(--mono); font-size: 0.85rem; color: var(--brass-2);
  margin-top: 1.2rem; letter-spacing: 0.03em;
}

/* ---------- problem ---------- */
.problem { border-top: 1px solid var(--line-2); }
.problem__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.problem__lede { font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem); max-width: 60ch; color: var(--parchment); font-family: var(--display); font-weight: 400; line-height: 1.5; }
/* the delivery chain as a Join-or-Die serpent */
/* min-width: 0 lets the figure shrink inside the grid; the svg scrolls within it instead of widening the page */
.serpent { margin: 0; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.serpent__svg { display: block; width: 100%; min-width: 620px; height: auto; color: var(--parchment-2); }
.serpent__motto { font-family: var(--display); font-style: italic; font-size: 30px; letter-spacing: 0.14em; fill: var(--brass-2); }
.serpent__tail { fill: currentColor; }
.serpent__body path { fill: none; stroke: currentColor; stroke-width: 20; stroke-linecap: round; }
.serpent__scale path { fill: none; stroke: var(--ink); stroke-width: 11; stroke-dasharray: 2.5 7; }
.serpent__cuts path { fill: none; stroke: var(--muster); stroke-width: 1.6; stroke-dasharray: 4 4; }
.serpent__head path { fill: currentColor; }
.serpent__head circle { fill: var(--ink); }
.serpent__head .serpent__tongue { fill: none; stroke: var(--muster); stroke-width: 2.4; stroke-linecap: round; }
.serpent__labels text { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; fill: var(--muted); }
.serpent__note { margin-top: 0.4rem; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; max-width: 64ch; line-height: 1.6; }
/* on narrow screens the serpent scales to fit: thicker strokes and larger
   labels compensate for the viewBox shrink, and the motto moves into HTML */
.serpent__motto-sm { display: none; font-family: var(--display); font-style: italic; font-size: 1.35rem; letter-spacing: 0.14em; color: var(--brass-2); margin-bottom: 0.5rem; }
@media (max-width: 680px) {
  .serpent__motto-sm { display: block; }
  .serpent__svg { min-width: 0; }
  .serpent__svg .serpent__motto { display: none; }
  .serpent__body path { stroke-width: 30; }
  .serpent__scale path { stroke-width: 17; stroke-dasharray: 4 10; }
  .serpent__labels text { font-size: 27px; letter-spacing: 0.1em; }
  .serpent__cuts path { stroke-width: 3; stroke-dasharray: 7 7; }
  .serpent__head .serpent__tongue { stroke-width: 5; }
  .serpent__head circle { r: 6px; }
}

/* segments draw themselves in, then the head, labels, and cuts arrive */
.serpent .serpent__seg { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.9s cubic-bezier(.4,0,.2,1), opacity 0.2s; }
.serpent.in .serpent__seg { stroke-dashoffset: 0; opacity: 1; }
.serpent.in .serpent__seg:nth-of-type(1) { transition-delay: 0.1s; }
.serpent.in .serpent__seg:nth-of-type(2) { transition-delay: 0.35s; }
.serpent.in .serpent__seg:nth-of-type(3) { transition-delay: 0.6s; }
.serpent.in .serpent__seg:nth-of-type(4) { transition-delay: 0.85s; }
.serpent.in .serpent__seg:nth-of-type(5) { transition-delay: 1.1s; }
.serpent__tail, .serpent__scale, .serpent__head, .serpent__labels, .serpent__cuts, .serpent__motto { opacity: 0; transition: opacity 0.8s; }
.serpent.in .serpent__tail { opacity: 1; transition-delay: 0.05s; }
.serpent.in .serpent__head { opacity: 1; transition-delay: 1.35s; }
.serpent.in .serpent__scale { opacity: 0.45; transition-delay: 1.55s; }
.serpent.in .serpent__labels { opacity: 1; transition-delay: 1.65s; }
.serpent.in .serpent__cuts { opacity: 0.65; transition-delay: 1.85s; }
.serpent.in .serpent__motto { opacity: 1; transition-delay: 1.95s; }

/* drop cap on the problem lede */
.problem__lede::first-letter {
  font-family: var(--display); font-weight: 600; font-size: 4.1em; line-height: 0.78;
  float: left; margin: 0.05em 0.14em 0 0; color: var(--brass-2);
}

/* ---------- approach ---------- */
.approach__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.4rem; }
.card {
  border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.6rem, 3vw, 2.6rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.card h3 { margin-bottom: 1rem; }
.card p + p { margin-top: 1rem; }
.card p { color: var(--parchment-2); }
.card--lead { background: linear-gradient(180deg, rgba(203,155,80,0.05), transparent); border-color: rgba(203,155,80,0.22); }
.card--lead h3 { color: var(--brass-2); }
.card__punch { color: var(--parchment) !important; font-family: var(--display); font-style: italic; font-size: 1.15rem; line-height: 1.45; }

/* ---------- muster flow ---------- */
.muster { border-top: 1px solid var(--line-2); }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.flow__step {
  background: var(--ink); padding: clamp(1.4rem, 2.2vw, 2rem) 1.4rem; position: relative;
  transition: background-color .3s;
}
.flow__step:hover { background: var(--ink-2); }
.flow__num { font-family: var(--mono); font-size: 0.74rem; color: var(--brass); letter-spacing: 0.1em; }
.flow__step h3 { font-size: 1.15rem; margin: 0.9rem 0 0.6rem; }
.flow__step p { font-size: 0.92rem; color: var(--parchment-2); line-height: 1.55; }
.flow__step::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--brass), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.flow__step:hover::before { transform: scaleX(1); }

/* ---------- proclamation band ---------- */
.proclaim {
  position: relative; z-index: 2;
  border-block: 1px solid var(--line-2);
  background:
    radial-gradient(70% 130% at 50% 0%, rgba(203, 155, 80, 0.07), transparent 60%),
    var(--ink-2);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
}
.proclaim__line {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(1.7rem, 1.1rem + 2.8vw, 3.1rem); line-height: 1.2; letter-spacing: -0.01em;
}
.proclaim__line em { color: var(--brass-2); }
.proclaim__line strong { color: var(--signal); font-weight: 600; font-style: normal; }
.proclaim__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-top: 1.6rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--parchment-2);
}
.proclaim__chips li { display: inline-flex; align-items: center; gap: 0.55em; }

/* ---------- iron ---------- */
.iron { border-top: 1px solid var(--line-2); }
.iron__grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.iron__copy p { color: var(--parchment-2); max-width: 52ch; }
.iron__copy p + p { margin-top: 1rem; }
.iron__points { margin-top: 1.8rem; display: grid; gap: 0.85rem; }
.iron__points li { display: flex; align-items: center; gap: 0.7em; font-family: var(--mono); font-size: 0.85rem; color: var(--parchment); }

/* server rack */
.rack { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.rack__frame {
  width: 100%; max-width: 320px;
  border: 2px solid var(--line); border-radius: 8px; padding: 0.8rem;
  background: linear-gradient(180deg, #0c1320, #070b12);
  display: grid; gap: 0.55rem;
  box-shadow: 0 40px 80px -50px #000, inset 0 1px 0 rgba(236,225,200,0.05);
}
.rack__unit {
  height: 38px; border: 1px solid var(--line-2); border-radius: 3px;
  background: linear-gradient(180deg, #131c2b, #0d141f);
  display: flex; align-items: center; gap: 7px; padding: 0 0.7rem;
}
.rack__unit i { width: 3px; height: 16px; background: #1f2a3b; border-radius: 1px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #2a3445; }
.led--green { background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: pulse 2.4s infinite; }
.led--amber { background: var(--brass); box-shadow: 0 0 7px rgba(203,155,80,0.7); animation: blink 2.8s steps(1) infinite; }
.rack__unit--gpu { justify-content: space-between; }
.rack__label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; color: var(--brass); }
.rack__unit--gpu .bar { flex: 1; height: 6px; margin-left: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--signal), rgba(116,196,140,0.1)); background-size: 200% 100%; animation: load 2.6s ease-in-out infinite; }
.rack__unit--gpu .bar:nth-child(3) { animation-delay: .4s; } .rack__unit--gpu .bar:nth-child(4) { animation-delay: .8s; }
@keyframes load { 0%,100% { background-position: 120% 0; } 50% { background-position: 0 0; } }
.rack__unit--store { justify-content: center; border-style: dashed; }
.rack__caption { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cap {
  background: var(--ink); padding: 1.3rem 1.4rem;
  font-family: var(--mono); font-size: 0.88rem; letter-spacing: 0.02em; color: var(--parchment);
  display: flex; align-items: center; gap: 0.8em; transition: background-color .25s, color .25s;
}
.cap::before { content: "\2605"; color: var(--brass); font-size: 0.7em; transition: transform .3s; }
.cap:hover { background: var(--ink-2); color: var(--brass-2); }
.cap:hover::before { transform: rotate(72deg) scale(1.3); }

/* ---------- mission: the declaration ---------- */
.mission { border-top: 1px solid var(--line-2); }
.mission__doc { position: relative; max-width: 47rem; margin-inline: auto; }
.mission__paper {
  position: relative;
  padding: clamp(2.6rem, 6vw, 4.4rem) clamp(1.6rem, 5vw, 3.8rem) clamp(3rem, 6vw, 4.2rem);
  background:
    radial-gradient(130% 90% at 28% 0%, rgba(255, 252, 240, 0.55), transparent 55%),
    linear-gradient(163deg, #f1e7cf 0%, #e7d9ba 52%, #d9c79e 100%);
  color: #241a0e;
  transform: rotate(-0.6deg);
  box-shadow: 0 40px 80px -38px rgba(0, 0, 0, 0.9);
  clip-path: polygon(0% 1.6%, 5% 0.4%, 14% 1.2%, 26% 0.2%, 37% 1.3%, 51% 0.3%, 63% 1.4%, 75% 0.2%, 87% 1.2%, 96% 0.3%, 100% 2.2%, 99.3% 12%, 100% 24%, 99.2% 37%, 99.8% 51%, 99.1% 64%, 100% 77%, 99.2% 89%, 100% 97.6%, 94% 99.6%, 83% 98.9%, 71% 100%, 58% 99.1%, 45% 99.9%, 32% 99%, 19% 99.8%, 8% 99.1%, 0% 98.4%, 0.7% 88%, 0% 76%, 0.9% 63%, 0.2% 50%, 0.8% 37%, 0.1% 25%, 0.9% 12%);
}
.mission__paper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mission__row {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: #8a6428; text-align: center;
}
.mission__row span { color: #8c2b22; }
.mission__title {
  text-align: center; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.9rem); color: #241a0e; margin-top: 1.1rem;
}
.mission__orn { display: flex; align-items: center; gap: 0.9rem; color: #8c2b22; margin: 1.2rem auto 1.8rem; max-width: 22rem; font-size: 0.8rem; }
.mission__orn span { flex: 1; height: 1px; background: rgba(36, 26, 14, 0.35); }
.mission__quote p {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem); line-height: 1.55;
  color: #2b2010; text-align: left;
}
.mission__quote em { color: #8c2b22; }
.mission__quote p::first-letter {
  font-family: var(--display); font-weight: 600; font-size: 3.9em; line-height: 0.75;
  float: left; margin: 0.06em 0.13em 0 0; color: #8c2b22;
}
.mission__sign {
  margin-top: 2.2rem; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem;
  padding-right: clamp(4rem, 14vw, 8rem); position: relative; z-index: 1;
}
.mission__sig {
  font-family: "Pinyon Script", "Snell Roundhand", cursive;
  font-size: clamp(2.1rem, 4.5vw, 2.9rem); line-height: 1; color: #1c1308;
  transform: rotate(-2.5deg);
}
.mission__sigsub { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: #7c6233; }
.mission__seal {
  position: absolute; width: clamp(98px, 16vw, 142px); height: auto;
  right: clamp(0.4rem, 4vw, 2rem); bottom: -34px;
  transform: rotate(9deg);
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
}
.seal__text { font-family: var(--mono); }

/* ---------- contact ---------- */
.contact {
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(203,155,80,0.08), transparent 60%);
}
.contact__inner { max-width: 44rem; margin-inline: auto; }
.contact h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.contact__lede { color: var(--parchment-2); margin: 1.4rem auto 2.4rem; max-width: 50ch; }
.contact__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 2; text-align: center;
  padding: 3rem var(--gutter) 3.5rem; border-top: 1px solid var(--line-2);
}
.footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer__brand .star { fill: var(--brass); }
.footer__tag { font-family: var(--display); font-style: italic; color: var(--parchment-2); margin-top: 1rem; }
.footer__meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 1rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.flow__step.reveal { transition-delay: calc(var(--i) * 90ms); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .approach__grid { grid-template-columns: 1fr; }
  .iron__grid { grid-template-columns: 1fr; }
  .rack { order: -1; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .board__cols {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .col { scroll-snap-align: start; }
  .board__tab:not(.board__tab--active) { display: none; }
}

/* ============================================================
   ENGRAVINGS: defs, musket dividers, lanterns, star ring
   ============================================================ */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* musket section dividers */
.musket-divider {
  display: flex; align-items: center; gap: 1.6rem;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
  color: var(--brass);
}
.musket-divider::before, .musket-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.musket-divider__svg { width: clamp(250px, 40vw, 460px); height: auto; opacity: 0.9; flex: none; }
.musket-divider--flip .musket-divider__svg { transform: scaleX(-1); }
/* a divider already separates these sections, so trim the doubled padding */
.section:has(> .musket-divider) { padding-top: clamp(2rem, 4vw, 3rem); }

/* signal lanterns. one if by land, two if by sea */
.lantern { width: 15px; height: 21px; color: var(--muted); transition: color 0.4s; }
.lantern--lit {
  color: var(--brass-2); --flame: 1;
  animation: flicker 2.8s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(230, 189, 108, 0.55)); }
  48%      { filter: drop-shadow(0 0 9px rgba(230, 189, 108, 0.9)); }
  60%      { filter: drop-shadow(0 0 5px rgba(230, 189, 108, 0.6)); }
}
.board__lanterns { display: inline-flex; align-items: center; gap: 4px; cursor: help; }
.contact__lanterns { display: flex; justify-content: center; gap: 1.6rem; margin-bottom: 1.4rem; }
.contact__lanterns .lantern { width: 30px; height: 42px; }
.lantern--late { animation-delay: 1.3s; }

/* thirteen-star ring drifting behind the hero */
.stars-ring {
  position: absolute; top: -14%; right: -10%;
  width: min(56vw, 640px); height: auto;
  color: var(--brass); opacity: 0.11;
  animation: ringspin 240s linear infinite;
  transform-origin: center;
}
@keyframes ringspin { to { transform: rotate(1turn); } }

/* board tabs you can actually pull on */
.board__tab[data-tab] { cursor: pointer; transition: color 0.2s, background-color 0.2s; }
.board__tab[data-tab]:hover { color: var(--parchment); }
.board__pill--model { cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.board__pill--model:hover { color: var(--brass-2); border-color: rgba(203, 155, 80, 0.4); }

/* ============================================================
   MUSTER FORM: choose your commission
   ============================================================ */
.muster-form { max-width: 58rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; text-align: left; }
.mf__paths { border: 0; padding: 0; margin: 0; }
.mf__legend {
  width: 100%; text-align: center; margin-bottom: 1.4rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--parchment-2);
}
.mf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mf__path { position: relative; display: block; }
.mf__path input { position: absolute; opacity: 0; pointer-events: none; }
.mf__path-card {
  position: relative; display: flex; flex-direction: column; gap: 0.6rem; height: 100%;
  padding: 1.5rem 1.6rem 1.4rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s;
}
.mf__path-card:hover { transform: translateY(-2px); border-color: rgba(203, 155, 80, 0.45); }
.mf__path input:checked + .mf__path-card {
  border-color: var(--brass);
  background: linear-gradient(180deg, rgba(203, 155, 80, 0.08), transparent);
}
.mf__path input:focus-visible + .mf__path-card { outline: 2px solid var(--brass); outline-offset: 3px; }
.mf__path-card svg { width: 30px; height: 30px; color: var(--brass); }
.mf__path-card strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--parchment); }
.mf__path-card > span { color: var(--parchment-2); font-size: 0.92rem; line-height: 1.55; }
.mf__check {
  position: absolute; top: 1rem; right: 1.1rem; font-style: normal;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-2); opacity: 0; transition: opacity 0.25s;
}
.mf__path input:checked + .mf__path-card .mf__check { opacity: 1; }

.mf__fields { margin-top: 1.6rem; display: grid; gap: 1rem; opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.mf__fields--in { opacity: 1; transform: none; }
.mf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mf__field { display: flex; flex-direction: column; gap: 0.45rem; }
.mf__field > span {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--parchment-2);
}
.mf__field input, .mf__field select, .mf__field textarea {
  font-family: var(--mono); font-size: 0.9rem; color: var(--parchment);
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.8em 0.95em; width: 100%;
  transition: border-color 0.25s, background-color 0.25s;
}
.mf__field input:focus, .mf__field select:focus, .mf__field textarea:focus {
  outline: none; border-color: var(--brass); background: rgba(203, 155, 80, 0.05);
}
.mf__field ::placeholder { color: var(--parchment-3); opacity: 1; }
.mf__field textarea { resize: vertical; min-height: 7.5em; line-height: 1.6; }
.mf__field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23cb9b50' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95em center;
}
.mf--attempted input:invalid, .mf--attempted select:invalid, .mf--attempted textarea:invalid { border-color: rgba(194, 72, 60, 0.65); }
.mf__hp { position: absolute; left: -5000px; opacity: 0; height: 0; width: 0; }
.mf__actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.mf__alt { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.mf__alt a { color: var(--brass); border-bottom: 1px solid rgba(203, 155, 80, 0.4); transition: color 0.2s; }
.mf__alt a:hover { color: var(--brass-2); }
.mf__done { text-align: center; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.mf__done-lanterns { display: flex; justify-content: center; gap: 1.2rem; }
.mf__done-lanterns .lantern { width: 26px; height: 36px; }
.mf__done h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 1.2rem; }
.mf__done p { color: var(--parchment-2); margin-top: 0.8rem; }

/* model gateway rack unit: allow-listed endpoints */
.rack__unit--gateway { justify-content: flex-start; gap: 5px; }
.rack__unit--gateway .rack__label { margin-right: auto; }
.gate {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.08em;
  color: var(--muster); border: 1px solid rgba(194, 72, 60, 0.5); border-radius: 3px;
  padding: 0.15em 0.4em; text-decoration: line-through; flex: none;
}
.gate--on { color: var(--signal); border-color: rgba(116, 196, 140, 0.45); text-decoration: none; }

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.open { flex-wrap: wrap; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 0.4rem; width: 100%; order: 3;
    padding-top: 1rem; margin-top: 0.5rem; border-top: 1px solid var(--line-2);
  }
  .nav.open .nav__cta { display: inline-flex; order: 4; margin: 0.5rem 0 0; }
  .muster-clock { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .muster-clock__arrow { transform: rotate(90deg); }
  .flow { grid-template-columns: 1fr; }
  .mf__grid, .mf__row { grid-template-columns: 1fr; }
}
