/* Premonition Systems — one stylesheet: a.css + motion.css + the page styles from the approved mockups.
   Nothing inline (CSP default-src 'self'). Motion sits behind prefers-reduced-motion: no-preference;
   every element's resting style is its final, visible state. */

/* Plus Jakarta Sans 2.7.1 (SIL OFL 1.1, fonts/OFL.txt), self-hosted. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/PlusJakartaSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/PlusJakartaSans-Medium.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/PlusJakartaSans-Bold.ttf") format("truetype"); }

/* ---- a.css ---- */
:root {
  --navy: #0B1D33;
  --royal: #114BA8;
  --cyan: #22D3EE;
  --ice: #E6FBFF;
  --ice-soft: #F4FDFF;
  --white: #FFFFFF;
  --ink: #0B1D33;
  --ink-2: #3D4B5C;      /* secondary text, 9.1:1 on white */
  --line: #DCE6EE;
  --font: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--royal); }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.04; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* Skip link + focus */
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(11,29,51,.07);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 34px; width: auto; }
.links { display: flex; gap: 30px; align-items: center; list-style: none; margin: 0; padding: 0; }
.links a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.links a:hover { color: var(--royal); }
.links a[aria-current="page"] { color: var(--royal); }
.links .btn-sm { background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 999px; }
.links .btn-sm:hover { background: var(--royal); color: #fff; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 20px; top: 60px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; list-style: none; margin: 0; box-shadow: 0 20px 50px rgba(11,29,51,.12); min-width: 200px; }
.menu li a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.menu li a:hover { background: var(--ice-soft); }

/* Buttons */
.btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; padding: 14px 26px; border-radius: 999px; text-decoration: none; }
.btn-primary { background: var(--royal); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { color: var(--royal); box-shadow: inset 0 0 0 1.5px var(--royal); }
.btn-ghost:hover { background: var(--royal); color: #fff; }
.more { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.more::after { content: " \203A"; }
.more:hover { text-decoration: underline; }

/* Sections */
section { padding: clamp(88px, 13vw, 168px) 0; }
.center { text-align: center; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--royal); margin-bottom: 18px; }
.display { font-size: clamp(2.7rem, 7.4vw, 6rem); }
.h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
.h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.45rem); color: var(--ink-2); max-width: 40ch; margin: 26px auto 0; line-height: 1.5; }
.left .lede { margin-left: 0; }
.ice { background: var(--ice-soft); }
.dark { background: var(--navy); color: #fff; }
.dark .lede { color: #C7D6E6; }
.dark .eyebrow { color: var(--cyan); }
.dark a { color: var(--cyan); }
.dark .btn-primary { color: #fff; }
.dark :focus-visible { outline-color: var(--cyan); }
.rule { width: 56px; height: 3px; background: var(--cyan); border-radius: 2px; margin: 0 auto 30px; }

/* Hero */
.hero { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(72px, 10vw, 140px); }
.hero .mark { height: clamp(150px, 20vw, 230px); width: auto; margin: 0 auto 44px; }
.hero .btns { margin-top: 40px; }

/* Product tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { border-radius: 30px; padding: clamp(36px, 5vw, 64px); min-height: 520px; display: flex; flex-direction: column; text-align: center; align-items: center; overflow: hidden; position: relative; }
.tile.light { background: var(--ice-soft); }
.tile.deep { background: var(--navy); color: #fff; }
.tile .status { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tile.light .status { color: var(--royal); }
.tile.deep .status { color: var(--cyan); }
.tile h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 14px 0 12px; }
.tile .tag { font-size: 1.2rem; font-weight: 500; }
.tile.light .tag { color: var(--ink-2); }
.tile.deep .tag { color: #C7D6E6; }
.tile .more { margin-top: 22px; }
.tile.deep .more { color: var(--cyan); }
.tile .art { margin-top: auto; padding-top: 40px; width: 100%; display: flex; justify-content: center; }

/* Illustrative UI frames (no real product imagery) */
.frame { width: min(100%, 420px); aspect-ratio: 16/10; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px rgba(11,29,51,.14), 0 0 0 1px rgba(11,29,51,.06); padding: 14px; display: grid; grid-template-columns: 26% 1fr; gap: 12px; }
.frame .side { background: var(--ice); border-radius: 10px; }
.frame .main { display: grid; gap: 10px; align-content: start; }
.frame .bar { height: 10px; border-radius: 6px; background: #E9EEF3; }
.frame .bar.b { background: var(--royal); width: 40%; height: 12px; }
.frame .bar.c { background: var(--cyan); width: 62%; }
.frame .bar.w70 { width: 70%; } .frame .bar.w50 { width: 50%; } .frame .bar.w85 { width: 85%; }
.phone { width: 190px; aspect-ratio: 9/18; border-radius: 34px; background: #0F2742; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px #24476F; display: grid; gap: 9px; align-content: start; }
.phone .scr-top { height: 70px; border-radius: 22px 22px 12px 12px; background: linear-gradient(135deg, var(--royal), var(--cyan)); }
.phone .row { height: 34px; border-radius: 12px; background: #183757; }
.phone .row.s { width: 70%; }

/* Statement grid */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.split .links-row { display: flex; gap: 28px; flex-wrap: wrap; }

/* Lists */
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts .k { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.facts .v { color: var(--ink-2); font-size: 1.1rem; }
.dark .facts, .dark .facts li { border-color: rgba(255,255,255,.14); }
.dark .facts .v { color: #C7D6E6; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.three .n { font-size: .85rem; font-weight: 700; color: var(--cyan); letter-spacing: .1em; }
.three h3 { font-size: 1.6rem; margin: 12px 0 10px; letter-spacing: -0.02em; }
.three p { color: #C7D6E6; font-size: 1.05rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 44px; font-size: .9rem; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot img { height: 30px; width: auto; margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--royal); text-decoration: underline; }
.foot h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Phone */
@media (max-width: 860px) {
  .links { display: none; }
  .menu { display: block; }
  .tiles, .split, .three, .foot { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .facts li { grid-template-columns: 1fr; gap: 6px; }
  .brand img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- motion.css ---- */
/* Next-page band: layout is not motion, so it applies to everyone. */
.next { border-top: 1px solid var(--line); }
.next a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: clamp(48px, 7vw, 88px) 0; text-decoration: none; color: var(--ink); }
.next .next-k { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.next .next-t { font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.next .next-t::after { content: " \203A"; color: var(--royal); }
.next a:hover .next-t { color: var(--royal); }

/* No one-word last line under the hero (not motion; applies to everyone). */
.lede { text-wrap: pretty; }
/* Desktop Home lede: keep "it." off a line of its own (build fix, CSS only). */
.hero-motion .lede { text-wrap: balance; }

/* Hero headline lines sit in a mask so each can rise into view. */
.line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }
.mark-wrap { position: relative; width: max-content; margin: 0 auto 44px; }
.mark-wrap .mark { margin: 0; }

@media (prefers-reduced-motion: no-preference) {

  /* From a.css: button color easing and the page-hero fade-up, moved behind the motion query. */
  .btn { transition: background .2s var(--ease), color .2s var(--ease); }
  .fade-up { animation: up .9s var(--ease) both; }
  .fade-up.d1 { animation-delay: .12s; } .fade-up.d2 { animation-delay: .24s; } .fade-up.d3 { animation-delay: .36s; }
  @keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  /* 1. Page to page: the header stays put, the page beneath it lifts away and the next settles in. */
  @view-transition { navigation: auto; }
  .nav { view-transition-name: site-nav; }
  ::view-transition-group(site-nav) { animation-duration: 0s; }
  ::view-transition-old(root) { animation: vt-out .26s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .52s var(--ease) .06s both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

  /* 2. The one orchestrated moment: Home hero entrance (about 1.8 s, once per load). */
  .hero-motion .mark { animation: mark-in 1.1s var(--ease) both; }
  .hero-motion .mark-wrap::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
    box-shadow: 0 0 0 2px var(--cyan);
    opacity: 0; animation: ping 1.6s var(--ease) .55s both; pointer-events: none;
  }
  .hero-motion .line > span { animation: line-up .95s var(--ease) both; }
  .hero-motion .line:nth-child(1) > span { animation-delay: .32s; }
  .hero-motion .line:nth-child(2) > span { animation-delay: .44s; }
  .hero-motion .lede { animation: soft-in .8s var(--ease) .78s both; }
  .hero-motion .btns { animation: soft-in .8s var(--ease) .92s both; }
  @keyframes mark-in { from { opacity: 0; transform: scale(.86); filter: blur(10px); } }
  @keyframes ping { 0% { opacity: .55; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.45); } }
  @keyframes line-up { from { transform: translateY(105%); } }
  @keyframes soft-in { from { opacity: 0; transform: translateY(10px); } }

  /* Answers to the visitor's own action. */
  .more::after { display: inline-block; transition: transform .25s var(--ease); }
  .more:hover::after, .more:focus-visible::after { transform: translateX(4px); }
  .next .next-t::after { display: inline-block; transition: transform .3s var(--ease); }
  .next a:hover .next-t::after, .next a:focus-visible .next-t::after { transform: translateX(10px); }
  .next .next-t { transition: color .25s var(--ease); }

  /* 3. Scroll-linked, where supported (Chrome, Edge, Safari 26). Elsewhere the page is simply static. */
  @supports (animation-timeline: view()) {

    /* Header gains its hairline and shadow only once the page has moved. */
    .nav { animation: nav-lift linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    @keyframes nav-lift {
      from { border-bottom-color: transparent; box-shadow: none; }
      to { box-shadow: 0 8px 30px rgba(11,29,51,.06); }
    }

    /* Principle band: the cyan rule draws, then the two lines rise, as the band arrives. */
    .reveal .rule { animation: rule-draw linear both; animation-timeline: view(); animation-range: entry 30% cover 35%; }
    .reveal .line > span { animation: line-up linear both; animation-timeline: view(); }
    .reveal .line:nth-child(1) > span { animation-range: entry 40% cover 38%; }
    .reveal .line:nth-child(2) > span { animation-range: entry 55% cover 44%; }
    @keyframes rule-draw { from { transform: scaleX(0); } }

    /* Product tiles: the illustration drifts up through its tile as the tile crosses the screen. */
    .tile .art { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes drift { from { transform: translateY(64px); } to { transform: translateY(-24px); } }

    /* Close: the last line settles from loose to set spacing as it arrives. */
    .settle { animation: settle linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    @keyframes settle { from { letter-spacing: .06em; opacity: .25; } }
  }
}

/* ---- Products (m-products.html) ---- */
.product-hero { text-align: center; }
.product-hero .status { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--royal); }
.dark .product-hero .status { color: var(--cyan); }
.product-hero h2 { font-size: clamp(3.4rem, 10vw, 8rem); margin: 16px 0 18px; }
.product-hero .tag { font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.025em; }
.product-hero .body { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; margin: 18px auto 0; }
.dark .product-hero .body { color: #C7D6E6; }
.stage { margin: clamp(56px, 8vw, 96px) auto 0; display: grid; justify-items: center; }
.stage .frame { width: min(100%, 760px); padding: 20px; gap: 16px; border-radius: 22px; }
.stage .frame .bar { height: 14px; }
.stage .phone { width: 250px; }
.shot { display: block; height: auto; }
.shot-desk { width: min(100%, 960px); border-radius: 18px; box-shadow: 0 30px 60px rgba(11,29,51,.14), 0 0 0 1px rgba(11,29,51,.08); }
.shot-phone { width: 250px; border-radius: 34px; box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 2px #24476F; }
.stage .cap { font-size: .9rem; color: var(--ink-2); margin-top: 18px; }
.dark .stage .cap { color: #C7D6E6; }
.parts { list-style: none; padding: 0; margin: clamp(56px, 8vw, 88px) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.parts li { text-align: center; padding: 26px 12px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: 1.02rem; }
.parts li::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); margin: 0 auto 14px; }
.meta { margin-top: 44px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.for { font-size: .95rem; color: var(--ink-2); margin-top: 28px; }
.dark .for { color: #C7D6E6; }
@media (max-width: 860px) { .parts { grid-template-columns: 1fr 1fr; } .parts li:last-child { grid-column: 1 / -1; } }

/* ---- Capabilities and Government (m-capabilities.html, m-government.html) ---- */
.statement-card { border-radius: 30px; background: var(--ice-soft); padding: clamp(32px, 5vw, 64px); }
.statement-card .facts li { grid-template-columns: minmax(200px, 1fr) 2fr; }
.statement-card .actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.naics { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.statement-card .facts .naics li { display: block; padding: 0; border: 0; }
.naics b { font-weight: 700; color: var(--ink); margin-right: 10px; font-variant-numeric: tabular-nums; }
.work { padding-top: clamp(72px, 10vw, 128px); }
.work .h2 { margin-bottom: 36px; }
.work .prose { max-width: 62ch; display: grid; gap: 22px; font-size: 1.2rem; line-height: 1.6; color: var(--ink-2); }
.work .prose a { color: var(--royal); font-weight: 600; }
.data .h2 { margin-bottom: 48px; }
.held { border-radius: 24px; border: 1.5px dashed #B86200; padding: 22px 26px; margin-top: 28px; color: var(--ink-2); }
.held b { color: var(--ink); }
.cs { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 36px; }
.reach .h2 { margin-bottom: 20px; }
.reach .mail { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.reach .btns { margin-top: 32px; }
@media (max-width: 860px) { .statement-card .facts li { grid-template-columns: 1fr; } }

/* ---- About, Contact, 404 (m-about.html, m-contact.html, 404.html) ---- */
.facts-card { border-radius: 30px; background: var(--ice-soft); padding: clamp(32px, 5vw, 64px); }
.facts-card .facts li { grid-template-columns: minmax(200px, 1fr) 2fr; }
.founder { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { aspect-ratio: 4/5; border-radius: 30px; background: var(--ice); display: flex; align-items: flex-end; justify-content: center; padding: 20px; }
.founder h2 { margin-bottom: 20px; }
.founder .lede { margin: 0; padding: 0; max-width: 60ch; text-align: left; }
@media (max-width: 860px) {
  .facts-card .facts li { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}
.portrait.has-photo { padding: 0; overflow: hidden; display: block; }
.portrait.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Former inline style="" attributes, one class each (CSP: no inline styles) ---- */
.pb-40 { padding-bottom: 40px; }
.mb-56 { margin-bottom: 56px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }
.lede.lede-tight { margin: 0 0 28px; }
.btns.mt-36 { margin-top: 36px; }
.btns.mt-40 { margin-top: 40px; }
.hero.pb-hero { padding-bottom: clamp(48px, 7vw, 96px); }
section.pt-band { padding-top: clamp(72px, 10vw, 128px); }
.facts-card.card-white { background: #fff; }
.hero.minh-60 { min-height: 60vh; }
.hero .mark.mark-404 { height: 120px; width: auto; margin: 0 auto 40px; display: block; }
