/* Copyright (c) 2025-2026 Strategic Task Solutions, LLC. All rights reserved. */
/* Strategic Task Solutions - "The Briefing" design system.
   Sibling to Watchglass C5ISR (shared navy/gold + Inter body) with its own voice:
   Space Grotesk display, JetBrains Mono data labels, corner-bracket reticle motif. */

:root {
  --navy-deep: #0a1322;
  --navy:      #111c31;
  --navy-2:    #16233d;
  --panel:     #1c2c4e;
  --gold:      #c2a25a;
  --gold-soft: #d8bd82;
  --gold-dim:  #8a713c;
  --ink:       #eef2f8;
  --body:      #b7c0d0;
  --muted:     #7d8798;
  --faint:     #566074;
  --line:      rgba(194,162,90,.16);
  --line-2:    rgba(255,255,255,.07);
  --max:       1200px;
  --disp: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --body-f: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0; background: var(--navy-deep); color: var(--body);
  font-family: var(--body-f); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--disp); color: var(--ink); line-height: 1.08; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--gold-soft); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* faint global grid/scanline texture */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(194,162,90,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194,162,90,.025) 1px, transparent 1px);
  background-size: 72px 72px;
}
main, nav, footer { position: relative; z-index: 1; }

/* ── mono data voice ─────────────────────────────── */
.mono { font-family: var(--mono); letter-spacing: .04em; }
.kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold); display: inline-block;
}

/* ── corner-bracket reticle ──────────────────────── */
.reticle { position: relative; display: inline-block; width: 1em; height: 1em; flex: 0 0 auto; }
.reticle i { position: absolute; width: 34%; height: 2px; background: var(--gold); }
.reticle i:nth-child(1){ top:0; left:0 } .reticle i:nth-child(2){ top:0; right:0 }
.reticle i:nth-child(3){ bottom:0; left:0 } .reticle i:nth-child(4){ bottom:0; right:0 }
.reticle u { position: absolute; width: 2px; height: 34%; background: var(--gold); }
.reticle u:nth-child(5){ top:0; left:0 } .reticle u:nth-child(6){ top:0; right:0 }
.reticle u:nth-child(7){ bottom:0; left:0 } .reticle u:nth-child(8){ bottom:0; right:0 }
.reticle b { position: absolute; width: 16%; height: 16%; border-radius: 50%; background: var(--gold); top: 42%; left: 42%; }

/* bracket-framed block: corners that "lock on" when revealed */
.brk { position: relative; }
.brk::before, .brk::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold);
  opacity: 0; transition: opacity .5s ease, transform .5s ease;
}
.brk::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; transform: translate(6px,6px); }
.brk::after  { bottom: -8px; right: -8px; border-left: 0; border-top: 0; transform: translate(-6px,-6px); }
.brk.lock::before, .brk.lock::after { opacity: 1; transform: translate(0,0); }

/* ── nav ─────────────────────────────────────────── */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(10,19,34,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mk { width: 34px; height: 34px; }
.brand .nm { display: flex; flex-direction: column; line-height: 1.1; }
.brand .nm b { font-family: var(--disp); font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.brand .nm span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; }
.navlinks { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.navlinks a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.navlinks a:hover, .navlinks a.active { color: var(--ink); }
.navlinks a.cta { color: var(--navy-deep); background: var(--gold); padding: 9px 18px; font-weight: 600; }
.navlinks a.cta:hover { background: var(--gold-soft); }
.navtoggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 10px; cursor: pointer; font-family: var(--mono); font-size: 11px; }

/* ── buttons ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 14px 26px;
  background: var(--gold); color: var(--navy-deep); border: 1px solid var(--gold); transition: .2s; }
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold-soft); }
.btn.ghost:hover { background: rgba(194,162,90,.08); color: var(--gold); transform: none; }

/* ── hero ────────────────────────────────────────── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 80% at 70% 30%, transparent 0%, var(--navy-deep) 78%),
              linear-gradient(90deg, var(--navy-deep) 8%, transparent 60%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-ghost { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); z-index: 1;
  font-family: var(--disp); font-weight: 700; font-size: 40vh; color: rgba(255,255,255,.022);
  letter-spacing: -.04em; pointer-events: none; user-select: none; }
.hero-readout { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .18em; color: var(--faint); text-transform: uppercase; margin-bottom: 30px; }
.hero-readout span { display: inline-flex; align-items: center; gap: 8px; }
.hero-readout span::before { content: ""; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; opacity: .8; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; max-width: 16ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .sub { font-family: var(--disp); font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: var(--gold-soft); font-weight: 500; margin: 6px 0 22px; }
.hero .lede { max-width: 56ch; color: var(--body); font-size: 1.06rem; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-scan { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .4; }

/* ── section scaffolding ─────────────────────────── */
section.band { padding: 100px 0; position: relative; }
section.band + section.band { border-top: 1px solid var(--line-2); }
.alt { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-top: 14px; text-wrap: balance; }
.sec-head h2 em { font-style: normal; color: var(--gold); }
.sec-head p { color: var(--muted); font-size: 1.05rem; margin-top: 10px; }
.idx { font-family: var(--mono); color: var(--gold-dim); font-size: 12px; letter-spacing: .2em; }

/* ── dossier stat band ───────────────────────────── */
.dossier { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.dossier .cell { background: var(--navy-deep); padding: 30px 26px; }
.dossier .big { font-family: var(--disp); font-size: 2.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.dossier .big em { font-style: normal; color: var(--gold); }
.dossier .lab { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ── capability ledger (indexed, hover-expand) ───── */
.ledger { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--line-2); transition: background .25s, padding .25s; cursor: default; }
.row:hover { background: rgba(194,162,90,.04); padding-left: 14px; padding-right: 14px; }
.row .no { font-family: var(--mono); color: var(--gold); font-size: 13px; letter-spacing: .1em; padding-top: 5px; }
.row h3 { font-size: 1.3rem; margin: 0 0 4px; }
.row .desc { color: var(--muted); font-size: .98rem; max-width: 64ch; }
.row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s ease, margin .35s; }
.row:hover .tags { max-height: 120px; opacity: 1; margin-top: 14px; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--body); border: 1px solid var(--line); padding: 5px 10px; }
.row .arrow { color: var(--faint); font-family: var(--mono); align-self: center; transition: color .2s, transform .2s; }
.row:hover .arrow { color: var(--gold); transform: translateX(4px); }

/* ── split / feature blocks ──────────────────────── */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.flip > *:first-child { order: 2; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; font-size: 1rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 11px; height: 11px; border: 2px solid var(--gold); }
.ticks li strong { color: var(--ink); }

/* figure frame (for MidJourney imagery slots) */
.figframe { position: relative; border: 1px solid var(--line); background: var(--navy-2); aspect-ratio: 3/2; overflow: hidden; }
.figframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figframe.contain { aspect-ratio: auto; background: var(--navy-deep); }
.figframe.contain img, .figframe.contain video { height: auto; object-fit: contain; display: block; }
.figframe .plc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--faint); text-transform: uppercase; text-align: center; padding: 20px; }
.figframe::before, .figframe::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold); z-index: 2; }
.figframe::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.figframe::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.figframe video { width: 100%; height: 100%; object-fit: cover; display: block; }
.figcap { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: radial-gradient(circle at center, rgba(8,15,32,.55), rgba(8,15,32,.15) 70%); }
.figcap span:last-child { font-family: var(--disp); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: var(--ink); letter-spacing: .02em; text-shadow: 0 2px 24px rgba(8,15,32,.9); }
.figcap em { font-style: normal; color: var(--gold); }
.figcap .reticle { font-size: 34px; }

/* ── product (watchglass) teaser ─────────────────── */
.wg { position: relative; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); padding: 7px 13px; display: inline-flex; align-items: center; gap: 8px; }
.chip::before { content: ""; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* ── reveal animation ────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ── CTA band ────────────────────────────────────── */
.cta-band { text-align: center; background: linear-gradient(120deg, var(--navy) 0%, var(--panel) 100%); padding: 86px 0; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ── footer ──────────────────────────────────────── */
footer.site { background: #070f1c; border-top: 1px solid var(--line); padding: 56px 0 40px; }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
footer.site h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
footer.site a { display: block; color: var(--body); margin-bottom: 8px; font-size: .94rem; }
footer.site a:hover { color: var(--gold-soft); }
footer.site .own { color: var(--muted); font-size: .9rem; max-width: 42ch; }
footer.site .legal { border-top: 1px solid var(--line-2); margin-top: 34px; padding-top: 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--faint); line-height: 1.9; }

/* ── screenshot slideshow ────────────────────────── */
.show { max-width: 1040px; margin: 0 auto; }
.show-frame { position: relative; aspect-ratio: 16/9; border: 1px solid var(--line); background: var(--navy-deep); overflow: hidden; }
.show-frame::before, .show-frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold); z-index: 4; pointer-events: none; }
.show-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.show-frame::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; background: var(--navy-deep); display: block; }
.show-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 14px;
  padding: 16px 20px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink);
  background: linear-gradient(transparent, rgba(8,15,32,.92)); }
.show-cap .ix { color: var(--gold); flex: 0 0 auto; }
.show-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 42px; height: 42px;
  background: rgba(8,15,32,.6); border: 1px solid var(--line); color: var(--gold); cursor: pointer;
  font-family: var(--mono); font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.show-nav:hover { background: rgba(8,15,32,.9); border-color: var(--gold); }
.show-nav.prev { left: 12px; } .show-nav.next { right: 12px; }
.show-dots { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.dot { width: 9px; height: 9px; border: 1px solid var(--gold-dim); background: transparent; cursor: pointer; padding: 0; transition: background .2s, border-color .2s; }
.dot.on { background: var(--gold); border-color: var(--gold); }

/* ── inner-page hero ─────────────────────────────── */
.phero { position: relative; padding: 150px 0 60px; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(194,162,90,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(194,162,90,.04) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); }
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; text-wrap: balance; }
.phero h1 em { font-style: normal; color: var(--gold); }
.phero .lede { color: var(--muted); max-width: 58ch; font-size: 1.08rem; margin-top: 14px; }

/* prose + lists */
.prose { max-width: 62ch; }
.prose p { color: var(--body); }
.cols2 { columns: 2; column-gap: 40px; }
.complist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: var(--line-2); border: 1px solid var(--line-2); }
.complist li { background: var(--navy-deep); padding: 16px 20px; font-size: .96rem; color: var(--body); display: flex; align-items: center; gap: 12px; }
.complist li::before { content: ""; width: 7px; height: 7px; background: var(--gold); flex: 0 0 auto; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; }
.cert { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft);
  border: 1px solid var(--line); padding: 9px 15px; display: inline-flex; align-items: center; gap: 9px; }
.cert::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* mission log / timeline */
.log { display: grid; gap: 0; }
.log .item { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.log .item:last-child { border-bottom: 1px solid var(--line-2); }
.log .role { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.log .item h3 { font-size: 1.25rem; margin: 0 0 6px; }
.log .item p { color: var(--muted); margin: 0; font-size: .98rem; max-width: 70ch; }

/* NAICS */
.naics { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.naics .n { background: var(--navy-deep); padding: 14px 18px; display: flex; gap: 14px; align-items: baseline; font-size: .9rem; color: var(--body); }
.naics .n b { font-family: var(--mono); color: var(--gold); font-size: .9rem; letter-spacing: .06em; flex: 0 0 auto; }

/* feature card grid (watchglass page) */
.fgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: var(--line-2); border: 1px solid var(--line-2); }
.fcard { background: var(--navy-deep); padding: 30px 28px; }
.fcard .no { font-family: var(--mono); color: var(--gold); font-size: 12px; letter-spacing: .14em; margin-bottom: 14px; }
.fcard h3 { font-size: 1.2rem; margin: 0 0 8px; }
.fcard p { color: var(--muted); font-size: .96rem; margin: 0; }

/* contact + form */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.info .item { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.info .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.info .v { color: var(--ink); font-size: 1.02rem; }
.form { background: var(--navy-2); border: 1px solid var(--line); padding: 30px; }
.form .fr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 7px; }
.form input, .form select, .form textarea { width: 100%; background: var(--navy-deep); border: 1px solid var(--line-2); color: var(--ink);
  font: inherit; padding: 12px 13px; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form .btn { margin-top: 24px; border: none; cursor: pointer; width: 100%; justify-content: center; }

/* ── responsive ──────────────────────────────────── */
@media (max-width: 920px) {
  .navlinks { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); border-bottom: 1px solid var(--line); padding: 8px 0 12px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s; box-shadow: 0 16px 30px rgba(0,0,0,.4); }
  .navlinks.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .navlinks a { padding: 14px 28px; }
  .navlinks a.cta { margin: 8px 28px; text-align: center; justify-content: center; }
  .navtoggle { display: inline-flex; }
  .dossier { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.flip > *:first-child { order: 0; }
  footer.site .cols { grid-template-columns: 1fr; }
  .hero-ghost { font-size: 28vh; }
  .row { grid-template-columns: 40px 1fr; }
  .row .arrow { display: none; }
  .cols2 { columns: 1; }
  .complist, .naics, .fgrid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form .fr { grid-template-columns: 1fr; }
  .log .item { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 680px) {
  :root { --max: 100%; }
  .wrap { padding: 0 20px; }
  .hero { min-height: auto; padding: 104px 0 56px; }
  .hero-ghost { font-size: 22vh; right: -6%; }
  .hero-readout { gap: 10px 18px; margin-bottom: 22px; }
  section.band { padding: 56px 0; }
  section.band + section.band { border-top: 1px solid var(--line-2); }
  .cta-band { padding: 58px 0; }
  .phero { padding: 104px 0 40px; }
  .sec-head { margin-bottom: 34px; }
  .split { gap: 28px; }
  .dossier .cell { padding: 24px 20px; }
  .dossier .big { font-size: 2.2rem; }
  .cta .btn, .hero .cta .btn { width: 100%; justify-content: center; }
  .hero .cta, .cta-band .cta { width: 100%; }
  .row { padding: 22px 0; }
  .row:hover { padding-left: 0; padding-right: 0; }
}
