@charset "UTF-8";
/* ============================================================================
   CloudTAK for Colorado BSAR — white paper
   DFPC Center of Excellence for Advanced Technology Aerial Firefighting

   Single stylesheet for index.html. No build step, no preprocessor.

   Theming: every colour is a custom property. Light values live in :root and
   the dark scheme re-points the same names in ONE block (§2), so components
   below never need their own prefers-color-scheme override. Semantic names
   (--surface, --heading, --strong) exist for exactly that reason — reach for
   them rather than the raw --paper-N / --ink-N scale when styling a component.

   CONTENTS
     1.  Design tokens
     2.  Dark scheme
     3.  Reset & base
     4.  Typography
     5.  Layout primitives
     6.  Reading progress
     7.  Sticky rail
     8.  Cover
     9.  Stat band
     10. Section scaffolding
     11. Recommendations
     12. Cards
     13. Figures
     14. Tables & status pills
     15. Integration catalog
     16. Architecture diagram
     17. Pull quotes
     18. Callouts & placeholders
     19. Roadmap
     20. Asks
     21. References
     22. Footer
     23. Scroll reveal
     24. Print
   ========================================================================= */


/* ============================================================================
   1. DESIGN TOKENS
   ========================================================================= */

:root {
  /* ---- neutral scale ---------------------------------------------------- */
  --ink:            #0A0E14;
  --ink-2:          #111A26;
  --ink-3:          #1C2736;
  --paper:          #FFFFFF;
  --paper-2:        #F6F8FA;
  --paper-3:        #EDF1F5;
  --body:           #2C3745;
  --muted:          #5F6E80;
  --faint:          #93A1B2;
  --rule:           #E1E7EE;
  --rule-strong:    #C9D3DE;

  /* ---- semantic surfaces ------------------------------------------------
     --surface      card / panel sitting on a default section
     --surface-alt  card / panel sitting on a `.sect.alt` section
     --surface-sunken  table headers and other recessed areas
     --hover        row and summary hover wash                               */
  --surface:        var(--paper);
  --surface-alt:    var(--paper);
  --surface-sunken: var(--paper-2);
  --hover:          var(--paper-2);

  /* ---- semantic text ----------------------------------------------------- */
  --heading:        var(--ink);      /* h1–h4 and headline-weight UI text */
  --strong:         var(--ink);      /* bold runs inside body copy */
  --lead:           var(--muted);    /* section standfirst */

  /* ---- CloudTAK accent --------------------------------------------------- */
  --gold:           #FFD700;
  --amber:          #FF9820;
  --amber-ink:      #8A5200;         /* accent text at body contrast */
  --amber-on-dark:  #FFC15E;         /* accent text on the cover and footer */
  --grad:           linear-gradient(115deg, #FF9820 0%, #FFCE04 46%, #FFD700 62%);

  /* ---- Colorado ---------------------------------------------------------- */
  --co-blue:        #00205B;
  --co-red:         #BF2033;
  --danger:         var(--co-red);   /* re-pointed in dark for contrast */

  /* ---- status ------------------------------------------------------------ */
  --ok:    #177245;  --ok-bg:   #E7F4EC;
  --warn:  #8A5200;  --warn-bg: #FDF2E0;
  --info:  #1B4E8F;  --info-bg: #E8F0FA;

  /* ---- diagram ----------------------------------------------------------- */
  --diagram-core:        #111A26;    /* filled "core platform" nodes */
  --diagram-core-stroke: #33475C;

  /* ---- elevation --------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(10,14,20,.05), 0 2px 8px rgba(10,14,20,.04);
  --shadow-md: 0 2px 4px rgba(10,14,20,.05), 0 12px 32px rgba(10,14,20,.07);
  --shadow-lg: 0 4px 8px rgba(10,14,20,.06), 0 24px 64px rgba(10,14,20,.11);

  /* ---- type ramps -------------------------------------------------------- */
  --sans:    "Inter", "Inter Tight", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:   "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* ---- metrics ----------------------------------------------------------- */
  --gutter:       clamp(1.25rem, 5vw, 4rem);
  --measure:      74rem;   /* full content column */
  --text-measure: 42rem;   /* prose column, held to a readable line length */
}


/* ============================================================================
   2. DARK SCHEME
   The only place colour is re-pointed for dark. Components stay scheme-agnostic.
   ========================================================================= */

@media (prefers-color-scheme: dark) {
  :root {
    --ink:            #060A0F;
    --paper:          #0D131B;
    --paper-2:        #121A24;
    --paper-3:        #18222E;
    --body:           #C3CEDB;
    --muted:          #8E9DAE;
    --faint:          #63748A;
    --rule:           #22303F;
    --rule-strong:    #33475C;

    --surface:        var(--paper-2);
    --surface-alt:    var(--paper-3);
    --surface-sunken: var(--paper-3);
    --hover:          var(--paper-3);

    --heading:        #EAF0F7;
    --strong:         #E3EAF2;
    --lead:           #A6B4C4;

    --amber-ink:      #FFC15E;
    --danger:         #F08A96;

    --ok:    #5BD08D;  --ok-bg:   #0F2A1D;
    --warn:  #E8B061;  --warn-bg: #2C2113;
    --info:  #7FB2F0;  --info-bg: #12243A;

    --diagram-core:        #1E2C3D;
    --diagram-core-stroke: #46607D;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 2px 4px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.4);
    --shadow-lg: 0 4px 8px rgba(0,0,0,.4), 0 24px 64px rgba(0,0,0,.5);
  }
}


/* ============================================================================
   3. RESET & BASE
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.68;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
}


/* ============================================================================
   4. TYPOGRAPHY
   ========================================================================= */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--heading);
}
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.65rem); }
h3 { font-size: clamp(1.125rem, 1.02rem + .5vw, 1.375rem); letter-spacing: -.014em; }
h4 { font-size: 1rem; letter-spacing: -.008em; }

p { margin: 0 0 1.15em; }
a { color: inherit; }

/* prose — the narrow reading column inside a section */
.prose { max-width: var(--text-measure); }
.prose h3 { margin: 2.25rem 0 .75rem; }
.prose ul,
.prose ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--strong); font-weight: 600; }

.prose--spaced { margin-top: 2rem; }


/* ============================================================================
   5. LAYOUT PRIMITIVES
   ========================================================================= */

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: var(--text-measure); }

section[id] { scroll-margin-top: 5.5rem; }

/* card grids — column counts are a floor, not a fixed track count */
.grid { display: grid; gap: clamp(.85rem, 1.6vw, 1.15rem); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }

/* center-spine timeline: nodes on a central line, cards branching left/right */
.timeline {
  --tl-gap: clamp(1.25rem, 3.2vw, 2.75rem);   /* space between spine and card */
  --tl-node: 12px;
  position: relative;
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  padding: 0;
}
.timeline::before {                            /* central spine */
  content: "";
  position: absolute;
  left: 50%;
  top: .35rem;
  bottom: .35rem;
  width: 1px;
  background: var(--rule-strong);
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  width: 50%;
  box-sizing: border-box;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:nth-child(odd) {                       /* left column */
  margin-left: 0;
  padding-right: var(--tl-gap);
}
.tl-item:nth-child(even) {                      /* right column */
  margin-left: 50%;
  padding-left: var(--tl-gap);
}
.tl-item::before {                              /* node on the spine */
  content: "";
  position: absolute;
  top: .3rem;
  width: var(--tl-node);
  height: var(--tl-node);
  border: 2px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper);
  z-index: 1;
}
.tl-item:nth-child(odd)::before  { right: calc(var(--tl-node) / -2); }
.tl-item:nth-child(even)::before { left:  calc(var(--tl-node) / -2); }
.tl-item::after {                               /* connector from spine to card */
  content: "";
  position: absolute;
  top: calc(.3rem + var(--tl-node) / 2);
  width: var(--tl-gap);
  height: 1px;
  background: var(--rule);
}
.tl-item:nth-child(odd)::after  { right: 0; }
.tl-item:nth-child(even)::after { left: 0; }
.tl-item.now::before {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 20%, transparent);
}

.tl-content {
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s, border-color .22s;
}
.tl-content:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}
.tl-content h3 { margin: 0 0 .5rem; }
.tl-content p { margin: 0; font-size: .9375rem; line-height: 1.62; color: var(--muted); }
.tl-content p + p { margin-top: .7rem; }

@media (max-width: 700px) {                     /* collapse to a single left rail */
  .timeline::before { left: 5px; transform: none; }
  .tl-item,
  .tl-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: calc(var(--tl-gap) + 5px);
    padding-right: 0;
  }
  .tl-item::before,
  .tl-item:nth-child(odd)::before,
  .tl-item:nth-child(even)::before { left: 0; right: auto; }
  .tl-item::after,
  .tl-item:nth-child(odd)::after,
  .tl-item:nth-child(even)::after { left: 5px; right: auto; }
}


/* ============================================================================
   6. READING PROGRESS
   ========================================================================= */

#progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  transform: scaleX(0);          /* driven by scroll handler */
  transform-origin: 0 50%;
  background: var(--grad);
  pointer-events: none;
}


/* ============================================================================
   7. STICKY RAIL
   Hidden until the cover has scrolled past, then slides down.
   ========================================================================= */

#rail {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(1.8) blur(14px);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), border-color .32s;
}
#rail.on {
  transform: none;
  border-bottom-color: var(--rule);
}

.rail-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--measure);
  margin-inline: auto;
  padding: .65rem var(--gutter);
}

.rail-mark {
  display: flex;
  flex: none;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.rail-mark img { display: block; height: 22px; width: auto; }
.rail-mark b {
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--heading);
}

.rail-nav {
  display: flex;
  gap: .15rem;
  margin-left: auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;      /* a swipe in the strip never becomes a back-swipe */
  scrollbar-width: none;
}
.rail-nav::-webkit-scrollbar { display: none; }

.rail-nav a {
  padding: .4rem .6rem;
  border-radius: 6px;
  font-size: .775rem;
  font-weight: 500;
  letter-spacing: .005em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  transition: color .18s, background .18s;
}
.rail-nav a:hover {
  color: var(--heading);
  background: var(--hover);
}
.rail-nav a[aria-current="true"] {
  color: var(--amber-ink);
  background: var(--warn-bg);
}

/* Small screens keep the nav as a swipeable strip: the wordmark text yields its
   space, links grow to touch-target height, and the clipped right edge fades to
   signal there is more to scroll. The scroll spy keeps the active link in view. */
@media (max-width: 900px) {
  .rail-in { gap: .75rem; }
  .rail-mark b { display: none; }
  .rail-nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
  }
  .rail-nav a { padding-block: .6rem; }
}


/* ============================================================================
   8. COVER
   Dark in both schemes, so its colours are literal rather than tokenised.
   ========================================================================= */

.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
  color: #D9E2EC;
  background:
    radial-gradient(120% 90% at 78%  8%, rgba(255,152,32,.16), transparent 58%),
    radial-gradient( 90% 70% at  8% 96%, rgba(  0, 64,140,.30), transparent 62%),
    linear-gradient(168deg, #0F1926 0%, #0A0E14 46%, #080C12 100%);
}
.cover::after {                    /* gradient hairline along the top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  height: 3px;
  background: var(--grad);
}
.cover .wrap { position: relative; z-index: 2; }

/* --- background texture --------------------------------------------------- */

.cover-topo {
  position: absolute;
  inset: -12% -6% auto -6%;
  z-index: 0;
  height: 132%;
  opacity: .30;
  -webkit-mask-image: linear-gradient(175deg, #000 5%, rgba(0,0,0,.55) 45%, transparent 88%);
          mask-image: linear-gradient(175deg, #000 5%, rgba(0,0,0,.55) 45%, transparent 88%);
}
.cover-topo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.cover-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(100% 75% at 50% 30%, #000, transparent 78%);
          mask-image: radial-gradient(100% 75% at 50% 30%, #000, transparent 78%);
}

/* --- agency lockup -------------------------------------------------------- */

.lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.lockup-group { display: flex; align-items: center; gap: 1.15rem; }
.lockup img { display: block; width: auto; }
.lockup .em      { height: 56px; }
.lockup .em-wide { height: 40px; }
.lockup .em-cpw  { height: 46px; }   /* CPW mark is optically larger — hold it back */

.lockup-div {
  flex: none;
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.16);
}
.lockup-spacer { flex: 1 1 2rem; }

/* once the lockup wraps to two rows the divider is an orphan */
@media (max-width: 900px) {
  .lockup-div,
  .lockup-spacer { display: none; }
}

.lockup-role {
  margin-bottom: .3rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #7B8CA1;
}
.lockup-name {
  font-family: var(--display);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.008em;
  color: #E4EBF3;
}
.lockup-name span {
  display: block;
  font-size: .8125rem;
  font-weight: 400;
  color: #8C9CB0;
}

/* --- cover type ----------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;                     /* the full row is wider than a phone */
  align-items: center;
  gap: .6rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #93A6BC;
}
.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255,215,0,.8);
}
.eyebrow .sep {
  width: 14px;
  height: 1px;
  background: rgba(255,255,255,.24);
}

.version-chip {
  padding: .2rem .45rem;
  border: 1px solid rgba(255,152,32,.45);
  border-radius: 3px;
  background: rgba(255,152,32,.10);
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .1em;
  color: var(--amber-on-dark);
}

.cover h1 {
  max-width: 19ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.1rem, 1.1rem + 5.4vw, 4.6rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.036em;
  color: #FFFFFF;
}
.cover h1 .hl {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cover .deck {
  max-width: 52ch;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1rem + .8vw, 1.55rem);
  font-weight: 300;
  line-height: 1.5;
  color: #A9B9CC;
}
.cover .deck b { font-weight: 400; color: #E8EFF6; }

/* --- three overarching themes -------------------------------------------- */

.cover .themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding: 0;
  list-style: none;
}
.cover .themes li {
  padding-top: 1.25rem;
  border-top: 3px solid var(--amber);
}
.cover .themes-n {
  display: block;
  margin-bottom: .85rem;
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--amber-on-dark);
}
.cover .themes p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1rem + .7vw, 1.5rem);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -.006em;
  color: #DCE5EF;
}
.cover .themes em {
  font-style: italic;
  font-weight: 500;
  color: #FFFFFF;
}
@media (max-width: 720px) {
  .cover .themes { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* --- document metadata ---------------------------------------------------- */

.docmeta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 1px;                              /* hairline rules via background */
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.09);
}
.docmeta div { padding: .95rem 1.15rem; background: rgba(10,14,20,.55); }
.docmeta dt {
  margin-bottom: .35rem;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #7B8CA1;
}
.docmeta dd {
  margin: 0;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #DCE5EF;
}
/* two author lines need more room than a 170px track gives them */
.docmeta-authors { grid-column: span 2; }
/* on phones, pin two columns and move the wide authors cell to a full-width
   last row - five cells would otherwise leave a grey gap-fill block */
@media (max-width: 640px) {
  .docmeta { grid-template-columns: repeat(2, 1fr); }
  .docmeta-authors { grid-column: 1 / -1; order: 1; }
}


/* ============================================================================
   9. STAT BAND
   ========================================================================= */

.band {
  color: #C7D3E0;
  background: var(--ink-2);
  border-block: 1px solid rgba(255,255,255,.07);
}
.band .wrap { padding-inline: 0; }      /* cells run to the container edge */

/* names the band, so the figures are not mistaken for BSAR counts */
.band-label {
  margin: 0;
  padding: 1.5rem var(--gutter) 0;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7B8CA1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 1px;
  background: rgba(255,255,255,.08);
}
/* phones get a fixed two-up layout; an odd trailing stat spans the row so the
   1px gap-fill background never shows through an empty cell */
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.stat {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.6rem);
  background: var(--ink-2);
}
.stat .n {
  display: flex;
  align-items: baseline;
  gap: .1em;
  margin-bottom: .5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.038em;
  color: #fff;
}
.stat .n .u {                            /* trailing unit: /yr, hrs, M */
  font-size: .44em;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--gold);
}
.stat .l { font-size: .8125rem; line-height: 1.45; color: #93A6BC; }
.stat .l b {
  display: block;
  margin-bottom: .15rem;
  font-size: .875rem;
  font-weight: 600;
  color: #DCE5EF;
}


/* ============================================================================
   10. SECTION SCAFFOLDING
   ========================================================================= */

.sect {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--rule);
}
.sect:first-of-type { border-top: 0; }
.sect.alt { background: var(--paper-2); }

.sect-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

.sect-num {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.sect-num::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.sect-head p.lead {
  max-width: 48ch;
  margin: 1.15rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--lead);
}

/* a secondary heading within a section (e.g. "Terms" in the appendix) */
.sect-head--sub {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}
.sect-head--sub h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }


/* ============================================================================
   11. RECOMMENDATIONS
   Numbered list rendered as stacked panels with hairline dividers.
   ========================================================================= */

.recs {
  display: grid;
  gap: 1px;
  counter-reset: r;
  margin: 2rem 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--rule);
}
.recs li {
  position: relative;
  counter-increment: r;
  margin: 0;
  padding: 1.35rem 1.5rem 1.35rem 4rem;
  background: var(--surface);
}
.recs li::before {
  content: counter(r, decimal-leading-zero);
  position: absolute;
  left: 1.5rem;
  top: 1.4rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--amber-ink);
}
.recs b {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--heading);
}
.recs span { font-size: .9375rem; line-height: 1.6; color: var(--muted); }

/* a 4rem number gutter costs a fifth of a phone screen - tighten it */
@media (max-width: 480px) {
  .recs li { padding: 1.2rem 1.15rem 1.2rem 3rem; }
  .recs li::before { left: 1.15rem; }
}


/* ============================================================================
   12. CARDS
   ========================================================================= */

.card {
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s, border-color .22s;
}
.sect.alt .card { background: var(--surface-alt); }
.card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; font-size: .9375rem; line-height: 1.62; color: var(--muted); }
.card p + p { margin-top: .7rem; }

.card-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: .95rem;
  border: 1px solid color-mix(in srgb, var(--amber) 26%, transparent);
  border-radius: 9px;
  background: var(--warn-bg);
  color: var(--amber-ink);
}
.card-ico svg { width: 17px; height: 17px; stroke-width: 1.7; }

.card-tag {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* problem statements carry a warning accent rather than the brand accent */
.card.gap .card-ico {
  border-color: color-mix(in srgb, var(--danger) 26%, transparent);
  background:   color-mix(in srgb, var(--danger)  9%, transparent);
  color: var(--danger);
}

/* grid of short platform attributes sitting directly above a figure */
.attr-grid { margin-bottom: 1rem; }


/* ============================================================================
   13. FIGURES
   ========================================================================= */

figure { margin: clamp(2rem, 4vw, 3rem) 0 0; }
figure img,
figure video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
figcaption {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  max-width: var(--text-measure);
  margin-top: .9rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--faint);
}
figcaption b {
  flex: none;
  padding-top: .12em;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-ink);
}

/* story screenshots open in a fullscreen lightbox */
figure img.fig-zoom { cursor: zoom-in; }

.fig-modal {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  padding: clamp(1rem, 4vw, 3rem);
  background: transparent;
}
.fig-modal[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.fig-modal::backdrop { background: rgba(6, 10, 15, .9); }
.fig-modal img {
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  cursor: zoom-out;
}
.fig-modal-fig {
  margin: 0;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amber-on-dark);
}
/* the page must not keep scrolling under an open lightbox */
body:has(.fig-modal[open]) { overflow: hidden; }

.fig-modal-close {
  position: absolute;
  top: clamp(.75rem, 2vw, 1.5rem);
  right: clamp(.75rem, 2vw, 1.5rem);
  width: 2.75rem;                        /* 44px touch target */
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(6, 10, 15, .5);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}


/* ============================================================================
   14. TABLES & STATUS PILLS
   ========================================================================= */

.tbl-scroll {
  overflow-x: auto;                      /* wide tables scroll, page never does */
  overscroll-behavior-x: contain;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: .9rem;
}
thead th {
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--surface-sunken);
  font-family: var(--display);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
tbody td {
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.55;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--hover); }

td.need {
  width: 26%;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.008em;
  color: var(--strong);
}
td.cap { width: 44%; color: var(--muted); }

code,
.repo {
  padding: .12em .38em;
  border-radius: 4px;
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: .85em;
  white-space: nowrap;
  color: var(--amber-ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .6rem;
  border-radius: 20px;
  font-family: var(--display);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.pill.ok  { color: var(--ok);   background: var(--ok-bg); }
.pill.dev { color: var(--warn); background: var(--warn-bg); }
.pill.new { color: var(--info); background: var(--info-bg); }


/* ============================================================================
   15. INTEGRATION CATALOG
   <details> groups; a beforeprint handler opens them all for paper.
   ========================================================================= */

.cat {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.cat + .cat { margin-top: .85rem; }

.cat > summary {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.05rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--heading);
  transition: background .18s;
}
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary:hover { background: var(--hover); }
.cat > summary::after {                  /* chevron */
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .22s;
}
.cat[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

.cat-count {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--faint);
}

/* Borders rather than a gap-fill background, so a partly-filled last row
   shows card background instead of a grey block. */
.feeds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.feed {
  padding: .85rem 1.35rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.feed b {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--amber-ink);
}
.feed span { font-size: .8125rem; line-height: 1.45; color: var(--muted); }


/* ============================================================================
   16. ARCHITECTURE DIAGRAM
   Styles for the inline SVG in §07. Scoped to .diagram so the very generic
   class names (.box, .lbl, .flow) cannot leak into the rest of the page.
   ========================================================================= */

.diagram {
  padding: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.diagram svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

/* --- nodes ---------------------------------------------------------------- */

.diagram .box {
  fill: var(--surface-sunken);
  stroke: var(--rule-strong);
  stroke-width: 1.25;
  rx: 10;
}
.diagram .box-core {                     /* filled state-platform nodes */
  fill: var(--diagram-core);
  stroke: var(--diagram-core-stroke);
}
.diagram .hub {                          /* the COTAK circle at the center */
  fill: var(--diagram-core);
  stroke: var(--diagram-core-stroke);
  stroke-width: 1.5;
}

/* --- node labels ---------------------------------------------------------- */

.diagram .lbl {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.2px;
  fill: var(--heading);
}
.diagram .lbl-sm { font-size: 12.5px; }
.diagram .lbl-w  { fill: #FFFFFF; }      /* on a filled core node */

.diagram .sub {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--muted);
}
.diagram .sub-sm { font-size: 10px; }
.diagram .sub-w  { fill: #93A6BC; }

/* --- zones ---------------------------------------------------------------- */

.diagram .zone {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  fill: var(--faint);
}
.diagram .zbox {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  rx: 14;
}

/* --- flows ---------------------------------------------------------------- */

.diagram .flow {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1.5;
  marker-end: url(#ah);
}
.diagram .flow-g {                       /* primary CoT path, brand accent */
  fill: none;
  stroke: #FFB300;
  stroke-width: 2;
  marker-end: url(#ahg);
}
.diagram .flowlbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .5px;
  fill: var(--faint);
}


/* ============================================================================
   17. PULL QUOTES
   ========================================================================= */

.pull {
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-block: 1px solid var(--rule);
}
.pull p {
  max-width: 26ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  font-weight: 300;
  line-height: 1.38;
  letter-spacing: -.015em;
  color: var(--heading);
}
.pull p em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* ============================================================================
   18. CALLOUTS & PLACEHOLDERS
   ========================================================================= */

.note {
  max-width: var(--text-measure);
  margin: 1.75rem 0;
  padding: 1.1rem 1.35rem;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: var(--warn-bg);
  font-size: .9rem;
  line-height: 1.62;
  color: var(--body);
}
.note b {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.note p:last-child { margin-bottom: 0; }

/* Unresolved placeholder: deliberately loud. Every one of these is a value that
   must be filled in before the document is circulated. */
.ph {
  padding: .1em .45em;
  border: 1px dashed color-mix(in srgb, var(--amber) 55%, transparent);
  border-radius: 4px;
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--amber) 14%, transparent) 0 6px,
    transparent 6px 12px
  );
  font-family: var(--mono);
  font-size: .85em;
  white-space: nowrap;
  color: var(--amber-ink);
}
/* the cover and footer are dark in both schemes */
.cover .ph,
footer .ph {
  border-color: rgba(255,193,94,.5);
  color: var(--amber-on-dark);
}


/* ============================================================================
   19. ROADMAP
   ========================================================================= */

.phases { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

.phase {
  position: relative;
  padding: 0 0 2.25rem 2.5rem;
  border-left: 1px solid var(--rule);
}
.phase:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.phase::before {                         /* timeline node */
  content: "";
  position: absolute;
  left: -5px;
  top: .4rem;
  width: 9px;
  height: 9px;
  border: 2px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper);
}
.phase.now::before {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 20%, transparent);
}

.phase-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .4rem;
}
.phase-meta .t {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.phase h3 { margin: 0 0 .5rem; }
.phase p {
  max-width: 52ch;
  margin: 0 0 .75rem;
  font-size: .9375rem;
  color: var(--muted);
}
.phase ul {
  max-width: 52ch;
  margin: 0;
  padding-left: 1.2em;
  font-size: .9rem;
  color: var(--muted);
}
.phase li { margin-bottom: .3em; }

/* dispatch flow - each step carries its own figure: stacked above the text on
   small screens, beside it on large ones */
.phase-fig { margin: 0 0 1.25rem; }
.phase-fig figcaption { margin-top: .7rem; }

@media (min-width: 901px) {
  .phases.figured .phase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: start;
  }
  .phases.figured .phase-fig { grid-column: 2; grid-row: 1; margin: 0; }
  .phases.figured .phase-body { grid-column: 1; grid-row: 1; }
}


/* ============================================================================
   20. ASKS
   ========================================================================= */

.asks {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--rule);
}
.ask {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.4rem 1.6rem;
  background: var(--surface);
}
.ask-n {
  padding-top: .2rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--amber-ink);
}
.sect.alt .ask { background: var(--surface-alt); }
.ask h3 { margin-bottom: .35rem; font-size: 1.0625rem; }
.ask h3:last-child { margin-bottom: 0; }   /* items with no supporting sentence */
.ask p { margin: 0; font-size: .9375rem; color: var(--muted); }


/* ============================================================================
   21. REFERENCES
   ========================================================================= */

.refs {
  max-width: var(--text-measure);
  margin: 0;
  padding: 0;
  counter-reset: ref;
  list-style: none;
  font-size: .875rem;
}
.refs li {
  position: relative;
  counter-increment: ref;
  padding: .7rem 0 .7rem 2.25rem;
  border-bottom: 1px solid var(--rule);
  line-height: 1.55;
  color: var(--muted);
}
.refs li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  top: .7rem;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--faint);
}
.refs cite { font-style: normal; font-weight: 600; color: var(--strong); }
.refs a {
  color: var(--info);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--info) 30%, transparent);
  word-break: break-word;
}
.refs a:hover { border-bottom-color: var(--info); }


/* ============================================================================
   22. FOOTER
   ========================================================================= */

footer {
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--ink);
  color: #8C9CB0;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.foot-brand { max-width: 34ch; }
.foot-brand img { display: block; height: 26px; width: auto; margin-bottom: 1rem; }
.foot-brand p { margin: 0; font-size: .875rem; line-height: 1.6; color: #8C9CB0; }

.foot-contact { display: grid; gap: .3rem; font-size: .875rem; }
.foot-contact b { font-family: var(--display); font-weight: 600; color: #DCE5EF; }

.foot-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.foot-logos img { display: block; height: 44px; width: auto; opacity: .92; }

.foot-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
  font-size: .8125rem;
  color: #63748A;
}
.foot-bot a {
  color: #93A6BC;
  text-decoration: none;
  border-bottom: 1px solid rgba(147,166,188,.28);
}
.foot-bot a:hover { color: #DCE5EF; }


/* ============================================================================
   23. SCROLL REVEAL
   Gated on the .js class set in <head>, so the document stays fully legible
   with scripting off, with a failed script, or in a PDF pipeline.
   ========================================================================= */

.js .rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1),
              transform .6s cubic-bezier(.22, 1, .36, 1);
}
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
}


/* ============================================================================
   24. PRINT
   Chrome renders this to ~24 letter pages. Cover and band keep their dark
   fills via print-color-adjust; everything else drops to ink on white.
   ========================================================================= */

@media print {
  :root {
    --paper: #fff;  --paper-2: #fff;  --paper-3: #f2f2f2;
    --surface: #fff;  --surface-alt: #fff;  --surface-sunken: #f2f2f2;  --hover: #fff;
    --body: #1a1a1a;  --muted: #444;  --faint: #666;
    --heading: #000;  --strong: #000;  --lead: #444;
    --rule: #ccc;  --rule-strong: #999;
  }

  #rail,
  #progress,
  .cover-grid,
  .scroll-cue { display: none !important; }

  body { font-size: 10.5pt; line-height: 1.5; }

  .cover {
    padding-block: 1.5rem 2.5rem;
    background: #0A0E14 !important;
    -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
  }
  .band,
  footer {
    -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
  }

  .sect { padding-block: 1.75rem; page-break-inside: auto; }

  .sect-head, .card, .phase, figure, .diagram, .tbl-scroll, .recs li,
  .stats, .stat, .ask, .cat, .pull { page-break-inside: avoid; }

  h2, h3 { page-break-after: avoid; }

  .card:hover { transform: none; box-shadow: none; }

  /* groups are force-opened by the beforeprint handler */
  .feeds { display: grid !important; }
  .cat > summary::after { display: none; }

  .rv { opacity: 1 !important; transform: none !important; }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #666;
    word-break: break-all;
  }
  .refs a::after { content: none; }
}
