/* Ephor — reset, capsule header, brand, buttons, dropdowns, dialogs, reveal. */

* { box-sizing: border-box; }
/* an author display beats the UA hidden rule — restate it once, globally
   (the same lesson site/'s .cf-track[hidden] learned; docs/marketing-site.md) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--carbon);
  font: 400 var(--fs-body)/var(--lh-body) var(--font);
  text-align: start;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-block-start: 0; }
h1, h2, h3 { font-weight: 400; letter-spacing: var(--ls-heading); }
/* the browser's own bold is 700, which the site does not ship: left to it,
   "The event:" came out in a bold the browser faked (audit, 2026-10-08) */
b, strong { font-weight: 600; }
main { overflow: hidden; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.skip {
  position: absolute; inset-block-start: -48px; inset-inline-start: 16px;
  z-index: 300; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill);
  background: var(--navy); color: var(--white);
}
.skip:focus { inset-block-start: 12px; }

/* ---- the capsule header ---- */
.site-header {
  position: fixed; z-index: 100; inset: 0 0 auto;
  inline-size: var(--shell);
  margin: var(--s-12) auto 0; transition: margin 0.5s;
}
.site-header.is-scrolled { margin-block-start: var(--s-8); }
.nav-pill {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-2); padding-inline-start: var(--inset);
  border: 1px solid transparent; border-radius: var(--r-shell); isolation: isolate;
}
.nav-glass, .nav-plate { position: absolute; z-index: -1; inset: 0; border-radius: inherit; }
.nav-glass { backdrop-filter: blur(40px); }
.nav-plate {
  opacity: 0; background-image: var(--nav-tint);
  backdrop-filter: blur(30px); transition: opacity 0.48s;
}
.is-scrolled .nav-plate { opacity: 1; }
/* At the top of the page the header belongs to the hero: its words on the
   hero's own ground, no capsule. The capsule (the glass, the sky inside it
   and, at night, its hairline) comes forward once the page moves, or when
   the phone menu opens from the top (owner, 2026-10-08). */
.nav-glass, .nav-weather { transition: opacity 0.48s; }
.site-header:not(.is-scrolled, .menu-open) :is(.nav-glass, .nav-weather) { opacity: 0; }

/* Over a dark section the pill inverts. The header is fixed, so it crosses the
   FAQ and the footer on every visit; navy text on near-black is simply gone.
   CHILD combinator on .nav-links > a, not descendant: the dropdown panels
   live inside .nav-links, stay opaque WHITE in every state, and a descendant
   selector painted their links white-on-white — found the day the night sky
   shipped, but latent in this on-dark rule since the dropdowns were built. */
.site-header.on-dark .nav-plate {
  opacity: 1; background-image: linear-gradient(#ffffff26, #ffffff0f);
}
.site-header.on-dark .nav-pill { border-color: #ffffff2e; }
.site-header.on-dark .brand,
.site-header.on-dark .brand-word,
.site-header.on-dark .nav-links > a,
.site-header.on-dark .nav-module-trigger,
.site-header.on-dark .menu { color: var(--white); }
.site-header.on-dark .brand small { color: var(--on-dark-3); }
.site-header.on-dark .nav-module-trigger svg { color: var(--sky); }
.site-header.on-dark .nav-cta { background: #fff; color: var(--navy); }

.brand { display: flex; align-items: center; gap: var(--s-3); line-height: 1; color: var(--navy); }
.brand-word {
  display: flex; flex-direction: column; gap: var(--s-1);
  font-size: var(--fs-brand); font-weight: 500; letter-spacing: var(--ls-brand); line-height: 1;
}
/* 11px floor — this was 0.565rem (9px), the smallest text on the page */
.brand small { display: inline-block; font-size: var(--fs-micro); letter-spacing: var(--ls-brand-tag); opacity: 0.66; line-height: 1; }
/* THE WATCH RING (owner pick 2026-08-28, of four in docs/brand-mark.md §house):
   an open ring — the closed circuit of evidence — with the cobalt watcher
   seated IN its gap at 45° upper-right, the top of the same rising diagonal
   the belt climbs. Ring inherits the brand color; the watcher is the one
   cobalt, lightened on dark grounds; the mark is pinned and never mirrors.
   THE SEAT IS GIVEN AND THE GAP IS DERIVED (owner 2026-09-20): −45° is the
   identity, and the gap's arc is the watcher's diameter plus the two round
   caps, so the dot exactly fills the hole. Here that is 2×5.8 + 4.5 = 16.1
   at r 21, a half-width of 21.9634° — which is what index.html's three
   lockup paths draw, and nothing to re-guess if the stroke ever moves. */
/* sized to the wordmark's full two-line height, not to its cap height — at
   1.45rem it read as a bullet point beside the name rather than a mark */
.brand-mark { inline-size: 2.35rem; block-size: 2.35rem; flex: none; }
/* The mark acts out its meaning, twice and only twice. On load the ring
   DRAWS ITSELF CLOSED (the audit loop completing — arc length ~115.85 for
   r21 across 316.073°, the sweep left by the derived gap of 2×21.9634°;
   the dasharray is 116 because it has only to be ≥ that, and it must be
   re-checked if the gap ever widens) and the watcher pops into its seat.
   On hover the watcher DOES ITS ROUNDS: one clockwise patrol, back to
   the seat. No idle loop — a logo that never rests is a spinner. */
.brand-mark path {
  stroke-dasharray: 116;
  animation: ring-close 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.15s backwards;
}
@keyframes ring-close { from { stroke-dashoffset: 116; } to { stroke-dashoffset: 0; } }
.brand-mark .watcher {
  transform-box: fill-box; transform-origin: center;
  animation: watcher-seat 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.9s backwards;
}
@keyframes watcher-seat { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
/* the watcher's round IS the page: scroll progress rotates the outer frame
   (0° at the top, a full clockwise round completed at the end), and the
   hover lap rides INSIDE it, so the two never fight. main.js sets
   --scroll-round from the same scroll handler the header already owns. */
.brand-mark .progress, .footer-ring .progress {
  transform-box: view-box; transform-origin: 50% 50%;
  /* transform, NOT the standalone rotate property: standalone rotate/scale
     are inert on SVG <g>/<circle> in shipping engines — discovered when the
     scroll round did nothing, which also exposed the hover patrol as silently
     broken (a completed lap and no lap both end at the seat, so the original
     round-trip check could not tell them apart) */
  transform: rotate(var(--scroll-round, 0deg));
  transition: transform 90ms linear;
}
.brand-mark .patrol { transform-box: view-box; transform-origin: 50% 50%; }
a:hover .brand-mark .patrol { animation: patrol 1.5s cubic-bezier(0.45, 0, 0.25, 1); }
@keyframes patrol { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .brand-mark path, .brand-mark .watcher, a:hover .brand-mark .patrol { animation: none; }
  .brand-mark .progress, .footer-ring .progress { transform: none; transition: none; }
}
/* cobalt #2a46d4 dims against the dark footer and inverted header — the
   watcher lightens there, same trade the favicon makes on its navy tile */
.site-header.on-dark .watcher, .footer .watcher { fill: #5b9dff; }

/* stretched to the pill's full inner height so a dropdown anchored at 100%
   opens BELOW the capsule; anchored to the little trigger instead, the panel
   started 9px inside the pill and its hover tint bled over the capsule edge */
.nav-links {
  display: flex; align-self: stretch; align-items: center;
  gap: var(--s-6); margin-inline-start: auto; font-size: var(--fs-body); line-height: var(--lh-body);
}
.nav-links > a { display: flex; align-items: center; }
/* the Orion link wears Orion's belt (owner, 2026-10-07): the .belt class in
   modules.css, beside the name — on the desktop pill and in the phone menu */
.nav-product { display: inline-flex; align-items: center; gap: var(--s-1); }
.nav-links i { font-style: normal; color: var(--teal); }

.nav-cta, .button-primary, .footer-cta {
  display: flex; align-items: center; gap: var(--s-2);
  border: 0; border-radius: var(--r-pill); background: var(--navy); color: var(--white);
  padding: var(--s-3) var(--s-6); font-size: var(--fs-body); font-weight: 500;
  transition: transform 0.32s ease, opacity 0.32s ease;
}
.nav-cta:hover, .button-primary:hover, .footer-cta:hover { transform: scale(0.98); opacity: 0.92; }
.menu, .mobile-menu { display: none; }

/* ---- nav dropdowns (modules / contact) ---- */
/* stretch too, or the panel anchors to the 24px trigger instead of the pill */
.nav-module-menu { position: relative; display: flex; align-self: stretch; align-items: center; }
.nav-module-trigger {
  display: inline-flex; align-items: center; gap: var(--s-1); padding: 0;
  border: 0; background: transparent; color: inherit; font: inherit; line-height: inherit;
}
.nav-module-trigger svg { color: var(--teal); transition: rotate 0.25s ease; }
.nav-module-trigger[aria-expanded="true"] svg { rotate: 180deg; }
.nav-module-panel {
  position: absolute; inset-block-start: calc(100% + 1.15rem); inset-inline-start: 50%;
  display: grid; gap: var(--s-1); inline-size: 16rem; padding: var(--s-2);
  border: 1px solid var(--line-soft); border-radius: var(--r-panel);
  /* Opaque, and clipped to its own corners. Translucent-over-blur made the
     hover tint read as a smear against whatever the capsule sat on, and the
     effect changed with the section behind it — which is why it looked
     intermittent rather than broken. */
  background: #fff; overflow: hidden;
  box-shadow: var(--shadow-lift);
  translate: -50% 0;
  animation: nav-panel-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.nav-module-panel button { inline-size: 100%; border: 0; background: transparent; font: inherit; text-align: start; }
.nav-module-panel a, .nav-module-panel button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-3) var(--s-3); border-radius: var(--r-card); color: var(--navy);
  transition: background 0.2s ease, translate 0.2s ease;
}
.nav-module-panel a:hover, .nav-module-panel a:focus-visible,
.nav-module-panel button:hover, .nav-module-panel button:focus-visible {
  background: var(--ice); outline: none; translate: 0.15rem 0;
}
.nav-module-panel span { display: flex; flex-direction: column; gap: var(--s-0); }
.nav-module-panel b { font-size: var(--fs-body); font-weight: 500; }
.nav-module-panel small { color: var(--grey); font-size: var(--fs-micro); line-height: var(--lh-heading); }
/* drops DOWN into place — the old version started half a rem HIGHER, which
   pushed it into the capsule for the length of the animation */
@keyframes nav-panel-in {
  from { opacity: 0; translate: -50% 0.4rem; scale: 0.98; }
  to { opacity: 1; translate: -50% 0; scale: 1; }
}

/* ---- shared eyebrow ---- */
.eyebrow {
  font-size: var(--fs-caption); font-weight: 500; letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--teal);
}
/* the eyebrow worn as a pill, above a section title */
.shift-tag {
  inline-size: max-content; margin: 0; padding: var(--s-1) var(--s-2);
  border-radius: var(--r-pill); background: var(--ice);
}

/* ---- the section head: eyebrow, title, lede — ONE component ----
   Six sections wrote their heads six ways (three left, three centred, gaps
   of 20 to 80px). The system's rule: left, on the text line, the lede under
   the title, then the head-gap to the content. The closing call in the
   footer is the one centred head (closing.css). To centre every head
   instead, this is the only rule to change. */
.section-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6);
  margin-block: 0 var(--head-gap); text-align: start;
}
/* the measure is on the words, not the box: a narrow box was centred by the
   FAQ's own centring, and its title left the line */
.section-head h2 {
  max-inline-size: var(--measure);
  margin: 0; font-size: var(--fs-h2); line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading); text-wrap: balance;
}
.section-head > p:not(.eyebrow) {
  margin: 0; max-inline-size: var(--measure); color: var(--mutek);
  font-size: var(--fs-lede); line-height: var(--lh-body);
}
/* a compound that must not break at its hyphen ("month-/end." on a phone) */
.nowrap { white-space: nowrap; }

/* ---- dialogs (pilot + contact) ---- */
.backdrop {
  position: fixed; z-index: 200; inset: 0; display: grid;
  /* start, not centre, and scrollable: a centred dialog taller than the
     viewport pushes its own submit button off the bottom of a short phone
     with no way to reach it */
  justify-items: center; align-items: start;
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s-5); background: #16294e99; backdrop-filter: blur(7px);
}
/* on a tall viewport it still sits centred */
@media (min-height: 800px) { .backdrop { align-items: center; } }
.dialog {
  position: relative; inline-size: min(540px, 100%); padding: var(--s-10);
  border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lift);
}
.dialog .close { position: absolute; inset-inline-end: 1rem; inset-block-start: 1rem; border: 0; background: transparent; color: var(--navy); }
/* the letterhead: one brand lockup in the shell, above whichever form is
   showing. The mark is the STATIC seal (no progress/patrol groups — a seal
   on a letter, not an instrument), but the scoped entrance animations still
   apply, so the ring draws itself closed each time a form opens. */
.dialog-brand {
  margin-block-end: var(--s-6); padding-block-end: var(--s-4);
  border-block-end: 1px solid var(--line-soft);
}
.dialog-brand .brand-mark { inline-size: 1.9rem; block-size: 1.9rem; }
.dialog-brand .brand-word > span { font-size: var(--fs-body); }
.dialog h2 { margin: var(--s-4) 0 var(--s-2); font-size: var(--fs-title); line-height: var(--lh-heading); text-wrap: balance; }
/* descendant, not child: the intro paragraphs sit inside [data-dialog] wrappers */
.dialog p:not(.eyebrow) { line-height: var(--lh-body); color: var(--slate); }
.dialog form { display: grid; gap: var(--s-3); margin-block-start: var(--s-6); }
.dialog label { font-size: var(--fs-small); font-weight: 500; }
.dialog input, .dialog textarea {
  inline-size: 100%; margin-block-start: var(--s-2); padding: var(--s-3);
  border: 1px solid #ccd5d8; border-radius: var(--r-sm); outline-color: var(--teal);
  /* 16px: an iPhone zooms the page into a field set smaller, and the words
     typed are the reader's, not a label's, so they are not medium */
  font-size: var(--fs-body); font-weight: 400;
}
.dialog form button, .success button {
  display: flex; justify-content: center; align-items: center; gap: var(--s-2);
  border: 0; border-radius: var(--r-pill); background: var(--navy); color: var(--white);
  padding: var(--s-3); margin-block-start: var(--s-1); font-weight: 500;
}
.success > svg { color: var(--green); }
.success button { background: none; color: var(--teal); padding-inline-start: 0; }

/* ---- scroll reveal ---- */
html.reveals-armed [data-reveal] {
  opacity: 0; translate: 0 1rem;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), translate 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
html.reveals-armed [data-reveal].is-revealed { opacity: 1; translate: 0 0; }

/* icons: lucide geometry, stroke = currentColor */
.icon { inline-size: 1em; block-size: 1em; flex: none; }
