/* =========================================================================
   REDHAWK TECHNOLOGIES — styles.css
   Vanilla CSS. All sizing in rem/em + clamp(). Sprintura is ~1.45x wide,
   so display clamps are capped conservatively and headings wrap + break-word.
   ========================================================================= */

/* ---- Display font (in-page headlines/titles only) ---------------------- */
@font-face {
  font-family: "Sprintura";
  src: url("/fonts/SprinturaDemoRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --bg: #340808;
  --bg-deep: #240505;
  --bg-up: #421010;
  --bg-card: #2a0707;
  --bg-card-2: #3d0c0c;
  --ink: #f4ead4;
  --ink-dim: #d6c9a8;
  --ink-muted: #8a7a5a;
  --ink-faint: #5a4a32;
  --gold: #c9a86a;
  --gold-bright: #e8c87a;
  --gold-dim: #8a7344;
  --amber: #d9a441;
  --red: #c41e3a;
  --line: rgba(244, 234, 212, 0.10);
  --grid: rgba(244, 234, 212, 0.045);

  --nav-h: 4rem;
  --maxw: 90rem;
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);

  /* Display (Sprintura) — conservative maxes for an extra-wide face */
  --fs-masthead:  clamp(1.55rem, 0.9rem + 3.3vw, 3.5rem);
  --fs-page:      clamp(2rem, 1.1rem + 3.4vw, 4.25rem);
  --fs-detail:    clamp(1.5rem, 0.95rem + 2.5vw, 2.9rem);
  --fs-tile:      clamp(1rem, 0.85rem + 0.7vw, 1.45rem);
  --fs-section:   clamp(1.05rem, 0.9rem + 0.9vw, 1.55rem);
  --fs-initials:  clamp(2rem, 1.4rem + 3.6vw, 4.25rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Root scale + base -------------------------------------------------- */
html {
  font-size: clamp(14px, 0.875rem + 0.3vw, 18px);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  overflow-wrap: break-word;
}

/* Display + mono helpers */
.display { font-family: "Sprintura", "IBM Plex Sans", serif; font-style: italic; line-height: 1.08; letter-spacing: 0.005em; overflow-wrap: break-word; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ---- Accessibility: skip link + focus ----------------------------------- */
.skip-link {
  position: fixed; top: 0; left: 0; z-index: 400;
  background: var(--bg-up); color: var(--ink);
  padding: 0.65rem 1rem; border: 1px solid var(--gold-dim);
  font-family: "IBM Plex Mono", monospace; font-size: 0.8rem;
  transform: translateY(-130%); transition: transform 0.15s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* =========================================================================
   BACKGROUND
   ========================================================================= */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
.bg-grid {
  position: absolute; inset: -80px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: bgdrift 90s linear infinite;
  will-change: transform;
}
@keyframes bgdrift { from { transform: translate(0, 0); } to { transform: translate(48px, 48px); } }
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(125% 115% at 50% 38%, transparent 42%, rgba(36, 5, 5, 0.62) 100%);
}
.crosshair {
  position: absolute; font-family: "IBM Plex Mono", monospace;
  font-size: 1rem; line-height: 1; color: var(--ink-faint); user-select: none;
}
.crosshair--tl { top: 4.9rem; left: 0.9rem; }
.crosshair--tr { top: 4.9rem; right: 0.9rem; }
.crosshair--bl { bottom: 0.9rem; left: 0.9rem; }
.crosshair--br { bottom: 0.9rem; right: 0.9rem; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(52, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav__logo img {
  height: 1.6rem; width: auto;
  /* provided logo is a dark-crimson lockup on a (now keyed-out) background;
     lift it so it reads on the deep-burgundy nav */
  filter: brightness(1.7) saturate(1.25) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}
.nav__links { display: none; align-items: center; gap: clamp(1rem, 2.5vw, 2.3rem); }
.nav__links a {
  position: relative; font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  color: var(--ink-dim); padding: 0.4rem 0; transition: color 0.18s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.1rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__burger {
  display: flex; width: 2.6rem; height: 2.6rem; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.32rem; margin-right: -0.5rem;
}
.nav__burger span { display: block; width: 1.4rem; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.47rem) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.47rem) rotate(-45deg); }

/* ---- Mobile slide-in panel --------------------------------------------- */
.mobile { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s linear 0.3s; }
.mobile.is-open { visibility: visible; transition: visibility 0s; }
.mobile__backdrop { position: absolute; inset: 0; background: rgba(20, 3, 3, 0.6); opacity: 0; transition: opacity 0.28s var(--ease); }
.mobile.is-open .mobile__backdrop { opacity: 1; }
.mobile__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(82vw, 19rem);
  background: var(--bg-up); border-left: 1px solid var(--line);
  padding: 5rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 0.25rem;
  transform: translateX(100%); transition: transform 0.3s var(--ease);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
}
.mobile.is-open .mobile__panel { transform: translateX(0); }
.mobile__panel a {
  font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.92rem; color: var(--ink-dim); padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  transition: color 0.18s, padding-left 0.18s;
}
.mobile__panel a:hover, .mobile__panel a[aria-current="page"] { color: var(--ink); padding-left: 0.4rem; }
.mobile__panel a[aria-current="page"] { border-left: 2px solid var(--gold); padding-left: 0.6rem; }
.mobile__close { position: absolute; top: 1rem; right: 1.2rem; font-size: 1.8rem; line-height: 1; color: var(--ink-dim); }
.mobile__close:hover { color: var(--ink); }

/* =========================================================================
   MAIN / SLIDE / TRANSITIONS
   ========================================================================= */
main { padding-top: var(--nav-h); }
.slide {
  max-width: var(--maxw); margin: 0 auto;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(2rem, 5vw, 4.5rem) var(--pad-x) clamp(2.5rem, 5vw, 4rem);
  opacity: 1; transition: opacity 0.3s var(--ease);
}
.slide.is-out { opacity: 0; }

/* shared page header */
.page-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-title { font-family: "Sprintura", serif; font-style: italic; font-size: var(--fs-page); line-height: 1.05; color: var(--ink); overflow-wrap: break-word; }
.page-intro { margin-top: 1rem; max-width: 52rem; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem); color: var(--ink-dim); font-weight: 300; }

/* =========================================================================
   BUTTON
   ========================================================================= */
.btn {
  display: inline-block; font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem;
  color: var(--ink); border: 1px solid var(--gold-dim); padding: 0.85rem 1.7rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { border-color: var(--gold-bright); background: rgba(201, 168, 106, 0.10); color: var(--gold-bright); }

/* =========================================================================
   HOME  (v3: masthead + stacked full-width reveal sections)
   ========================================================================= */
.home { display: flex; flex-direction: column; gap: clamp(2.5rem, 7vw, 6rem); }
.home__masthead {
  min-height: calc(82vh - var(--nav-h)); min-height: calc(82svh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: clamp(1.4rem, 3.5vw, 2.5rem);
}
.home__title { font-family: "Sprintura", serif; font-style: italic; font-size: var(--fs-masthead); line-height: 1.06; color: var(--ink); overflow-wrap: break-word; }
.home__subtitle { font-family: "Sprintura", serif; font-style: italic; font-size: calc(var(--fs-masthead) * 0.62); line-height: 1.1; color: var(--gold); overflow-wrap: break-word; margin-top: -0.35rem; }
.home__cta { margin-top: 0.4rem; }

/* a single home reveal section: stage + caption, roughly one viewport tall */
.home-reveal {
  min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.home-reveal__stage {
  width: 100%; max-width: 74rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.25s var(--ease);
}
.home-reveal__caption { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.home-reveal__name { font-family: "Sprintura", serif; font-style: italic; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.85rem); color: var(--ink); transition: color 0.18s var(--ease); }
.home-reveal__caption:hover .home-reveal__name { color: var(--gold-bright); }
.home-reveal__tagline { font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; color: var(--ink-muted); letter-spacing: 0.02em; max-width: 40rem; }

/* =========================================================================
   GLARE (first visit to / only)
   ========================================================================= */
.glare { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; place-items: center; }
.glare.is-leaving { animation: glareFade 0.6s var(--ease) forwards; }
@keyframes glareFade { to { opacity: 0; } }
.glare__logo { position: relative; width: min(60vw, 30rem); aspect-ratio: 4565 / 598; }
.glare.is-leaving .glare__logo { animation: glareSettle 0.6s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
@keyframes glareSettle { to { transform: translate(-12vw, -34vh) scale(0.16); opacity: 0; } }
.glare__base { width: 100%; height: 100%; object-fit: contain; filter: brightness(1.4) saturate(1.15); }
.glare__glint {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: url("/img/logo/redhawk-logo-transparent.png"); mask-image: url("/img/logo/redhawk-logo-transparent.png");
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.glare__glint::before {
  content: ""; position: absolute; top: -25%; bottom: -25%; left: 0; width: 42%;
  background: linear-gradient(100deg, transparent, rgba(232, 200, 122, 0.7) 38%, #fff7e4 50%, rgba(232, 200, 122, 0.7) 62%, transparent);
  filter: blur(7px); mix-blend-mode: screen;
  transform: translateX(-280%);
  animation: glintSweep 1.2s cubic-bezier(0.45, 0, 0.25, 1) forwards;
}
@keyframes glintSweep { from { transform: translateX(-280%); } to { transform: translateX(380%); } }

/* entrance for freshly-rendered content */
.enter { animation: enterUp 0.5s var(--ease) both; }
@keyframes enterUp { from { opacity: 0; transform: translateY(0.8rem); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================================
   HOME REVEALS  (extracted from fc_reveal.html / eg_reveal.html, scoped per
   reveal so the two never collide; every animation is gated on .go so the
   IntersectionObserver can replay it on each entry.)
   ========================================================================= */
.rv { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.rv .grid-bg {
  position: absolute; inset: 0; opacity: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 42px 42px;
}
.rv .vig { position: absolute; inset: 0; pointer-events: none; }
.rv .anim, .rv .shot { position: absolute; inset: 0; }
.rv .anim svg { width: 100%; height: 100%; display: block; }

/* shared reveal keyframes (identical definitions across the two reveals) */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes textIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rvDraw { to { stroke-dashoffset: 0; } }

/* ---- Federated Constellation reveal (.rv-fc) ---------------------------- */
.rv-fc .vig { background: radial-gradient(120% 120% at 50% 45%, transparent 40%, rgba(0, 0, 0, 0.55) 100%); }
.rv-fc .star { fill: var(--ink); opacity: 0; }
.rv-fc .rim { fill: none; stroke: var(--gold-bright); stroke-width: 2; opacity: 0; filter: drop-shadow(0 0 10px rgba(232, 200, 122, 0.7)); }
.rv-fc .globefill { fill: url(#gfill); opacity: 0; }
.rv-fc .wire { fill: none; stroke: var(--gold); stroke-width: 0.8; opacity: 0; }
.rv-fc .ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.rv-fc .ring ellipse { fill: none; stroke: var(--gold); stroke-width: 1; }
.rv-fc .ln { stroke: var(--gold); stroke-width: 1; opacity: 0; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.rv-fc .nd { opacity: 0; transform-box: fill-box; transform-origin: center; }
.rv-fc .nd .halo { fill: var(--gold); opacity: 0.14; }
.rv-fc .nd .core { fill: #fff6df; }
.rv-fc .nd.far .core { fill: var(--ink); }
.rv-fc .nd.far .halo { fill: var(--ink); }
.rv-fc .nd.quar .core { fill: var(--red); }
.rv-fc .nd.quar .halo { fill: var(--red); opacity: 0.2; }
.rv-fc .pulse { fill: #fff; opacity: 0; filter: drop-shadow(0 0 6px var(--gold-bright)); }
.rv-fc .title { position: absolute; left: 0; right: 0; bottom: 11%; text-align: center; opacity: 0; }
.rv-fc .title h1 { font-family: "Sprintura", serif; font-style: italic; font-weight: 400; color: var(--ink); font-size: clamp(20px, 3.4vw, 42px); line-height: 1; text-shadow: 0 0 24px rgba(0, 0, 0, 0.7); padding: 0 4%; }
.rv-fc .shot { opacity: 0; background: #060a12; }
.rv-fc .shot img { width: 100%; height: 100%; object-fit: contain; display: block; }

.rv-fc.go .grid-bg { animation: fadeIn 0.5s ease forwards; }
.rv-fc.go .star { animation: twinkle 3s ease-in-out infinite; }
.rv-fc.go .rim { animation: fadeIn 0.8s ease forwards; animation-delay: 0.3s; }
.rv-fc.go .globefill { animation: fadeIn 1s ease forwards; animation-delay: 0.4s; }
.rv-fc.go .wire { animation: fadeIn 1s ease forwards; animation-delay: 0.6s; }
.rv-fc.go .ring { animation: ringIn 0.9s ease forwards; }
.rv-fc.go .ln { animation: rvDraw 0.7s ease forwards, lnFade 0.7s ease forwards; }
.rv-fc.go .nd { animation: pop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.rv-fc.go .nd .core { animation: glow 2.2s ease-in-out infinite; }
.rv-fc.go .pulse { animation: travel 1.25s ease-in-out forwards; }
.rv-fc.go .title { animation: textIn 0.9s ease forwards; animation-delay: 2s; }
.rv-fc.go .anim { animation: animOut 0.9s ease forwards; animation-delay: 3.9s; }
.rv-fc.go .shot { animation: shotIn 1s ease forwards; animation-delay: 3.9s; }

@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@keyframes ringIn { 0% { opacity: 0; transform: scale(0.55); } 100% { opacity: 0.4; transform: scale(1); } }
@keyframes lnFade { from { opacity: 0; } to { opacity: 0.5; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 2px var(--gold)); } 50% { filter: drop-shadow(0 0 9px var(--gold-bright)); } }
@keyframes travel { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes animOut { 0% { opacity: 1; } 100% { opacity: 0; transform: scale(1.04); } }
@keyframes shotIn { 0% { opacity: 0; transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }

/* ---- Edge Guardian reveal (.rv-eg) -------------------------------------- */
.rv-eg .vig { background: radial-gradient(120% 120% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.5) 100%); }
.rv-eg .rail { stroke: var(--gold); fill: none; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.rv-eg .rail.in { stroke-width: 1.5; opacity: 0.5; }
.rv-eg .rail.out { stroke-width: 1; opacity: 0.28; }
.rv-eg .gate-housing { fill: rgba(20, 6, 6, 0.6); stroke: var(--gold); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.rv-eg .aperture { fill: var(--gold-bright); opacity: 0; }
.rv-eg .shield { fill: rgba(232, 200, 122, 0.07); stroke: var(--gold-bright); stroke-width: 1.6; opacity: 0; }
.rv-eg .scan { stroke: var(--gold-bright); stroke-width: 1.2; opacity: 0; }
.rv-eg .glyph { opacity: 0; }
.rv-eg .glyph.approve { stroke: var(--gold-bright); }
.rv-eg .glyph.modify { stroke: var(--amber); }
.rv-eg .glyph.reject { stroke: var(--red); }
.rv-eg .chip { opacity: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 4px rgba(244, 234, 212, 0.5)); }
.rv-eg .title { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; opacity: 0; }
.rv-eg .title h1 { font-family: "Sprintura", serif; font-style: italic; font-weight: 400; color: var(--ink); font-size: clamp(20px, 3.4vw, 42px); line-height: 1; text-shadow: 0 0 24px rgba(0, 0, 0, 0.7); }

.rv-eg.go .grid-bg { animation: fadeIn 0.5s ease forwards; }
.rv-eg.go .rail { animation: rvDraw 0.7s ease forwards, rfade 0.7s ease forwards; }
.rv-eg.go .gate-housing { animation: gateIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.3s; }
.rv-eg.go .aperture { animation: apGlow 2.2s ease-in-out infinite; animation-delay: 1s; }
.rv-eg.go .shield { animation: fadeIn 0.6s ease forwards; animation-delay: 0.7s; }
.rv-eg.go .scan { animation: scan 2.4s ease-in-out infinite; animation-delay: 1s; }
.rv-eg.go .glyph { animation: fadeIn 0.6s ease forwards; animation-delay: 1.2s; }
.rv-eg.go .chip.approve { animation: egApprove 3.2s linear infinite; }
.rv-eg.go .chip.modify { animation: egModify 3.2s linear infinite; }
.rv-eg.go .chip.reject { animation: egReject 3.2s linear infinite; }
.rv-eg.go .title { animation: textIn 0.9s ease forwards; animation-delay: 1.8s; }

@keyframes rfade { from { opacity: 0; } }
@keyframes gateIn { 0% { opacity: 0; transform: scaleY(0.2); } 100% { opacity: 1; transform: scaleY(1); } }
@keyframes apGlow { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }
@keyframes scan { 0% { opacity: 0; transform: translateY(-96px); } 15% { opacity: 0.8; } 85% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(96px); } }
@keyframes egApprove { 0% { transform: translate(0,0); fill: #f4ead4; opacity: 0; } 4% { opacity: 1; } 40% { transform: translate(535px,0); fill: #f4ead4; } 46% { fill: #e8c87a; } 95% { opacity: 1; } 100% { transform: translate(1140px,-185px); fill: #e8c87a; opacity: 0; } }
@keyframes egModify { 0% { transform: translate(0,0); fill: #f4ead4; opacity: 0; } 4% { opacity: 1; } 40% { transform: translate(535px,0); fill: #f4ead4; } 46% { fill: #d9a441; } 95% { opacity: 1; } 100% { transform: translate(1140px,0px); fill: #d9a441; opacity: 0; } }
@keyframes egReject { 0% { transform: translate(0,0); fill: #f4ead4; opacity: 0; } 4% { opacity: 1; } 40% { transform: translate(535px,0); fill: #f4ead4; } 46% { fill: #c41e3a; } 95% { opacity: 1; } 100% { transform: translate(1140px,185px); fill: #c41e3a; opacity: 0; } }

/* =========================================================================
   PRODUCT TILE ANIMATIONS  (extracted from products_tiles.html, scoped per
   product key; ambient/looping. Used in the /products grid tiles and as the
   header visual on the six non-screenshot product detail pages.)
   ========================================================================= */
.pa { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 120% at 50% 40%, #340c0c, #220707); border: 1px solid var(--line); }
.pa svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* FC */
.pa-fc .wire { fill: none; stroke: var(--gold); stroke-width: 0.8; opacity: 0.5; }
.pa-fc .rim { fill: none; stroke: var(--gold-bright); stroke-width: 1.4; opacity: 0.8; }
.pa-fc .gn { fill: #fff6df; animation: fcpulse 3s ease-in-out infinite; }
@keyframes fcpulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; filter: drop-shadow(0 0 4px var(--gold-bright)); } }
/* EG */
.pa-eg .gate { fill: rgba(20, 6, 6, 0.5); stroke: var(--gold); stroke-width: 1.2; }
.pa-eg .ap { fill: none; stroke: var(--gold-bright); stroke-width: 1.4; }
.pa-eg .a { animation: egA 2.6s linear infinite; }
.pa-eg .m { animation: egM 2.6s linear infinite; animation-delay: 0.5s; }
.pa-eg .r { animation: egR 2.6s linear infinite; animation-delay: 1s; }
@keyframes egA { 0% { transform: translate(0,0); fill: #f4ead4; opacity: 0; } 6% { opacity: 1; } 45% { transform: translate(118px,0); fill: #f4ead4; } 52% { fill: #e8c87a; } 94% { opacity: 1; } 100% { transform: translate(236px,-44px); fill: #e8c87a; opacity: 0; } }
@keyframes egM { 0% { transform: translate(0,0); fill: #f4ead4; opacity: 0; } 6% { opacity: 1; } 45% { transform: translate(118px,0); fill: #f4ead4; } 52% { fill: #d9a441; } 94% { opacity: 1; } 100% { transform: translate(236px,0); fill: #d9a441; opacity: 0; } }
@keyframes egR { 0% { transform: translate(0,0); fill: #f4ead4; opacity: 0; } 6% { opacity: 1; } 45% { transform: translate(118px,0); fill: #f4ead4; } 52% { fill: #c41e3a; } 94% { opacity: 1; } 100% { transform: translate(236px,44px); fill: #c41e3a; opacity: 0; } }
/* Vanguard */
.pa-va .hub { fill: rgba(232, 200, 122, 0.12); stroke: var(--gold-bright); stroke-width: 1.4; animation: vahub 2s ease-in-out infinite; }
.pa-va .vp { fill: #fff6df; filter: drop-shadow(0 0 3px var(--gold-bright)); animation: vapulse 2s linear infinite; }
@keyframes vapulse { 0% { transform: translate(0,0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes vahub { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
/* SkyTracer */
.pa-sk .wave { fill: none; stroke: var(--gold); stroke-width: 1.4; opacity: 0.5; }
.pa-sk .live { fill: #fff6df; filter: drop-shadow(0 0 5px var(--gold-bright)); offset-path: path('M12.0,108.1 L19.0,104.2 L26.0,103.9 L33.0,110.4 L40.0,108.5 L47.0,90.5 L54.0,71.1 L61.0,66.0 L68.0,68.6 L75.0,64.2 L82.0,56.1 L89.0,60.9 L96.0,80.5 L103.0,96.9 L110.0,99.4 L117.0,99.4 L124.0,108.2 L131.0,116.6 L138.0,108.6 L145.0,88.9 L152.0,76.2 L159.0,75.2 L166.0,71.7 L173.0,59.1 L180.0,51.9 L187.0,62.6 L194.0,81.0 L201.0,89.7 L208.0,90.4 L215.0,98.2 L222.0,113.4 L229.0,118.4 L236.0,105.7 L243.0,90.0 L250.0,85.1 L257.0,83.2 L264.0,71.1 L271.0,54.8 L278.0,52.6 L285.0,66.1'); animation: skrun 3s linear infinite; }
@keyframes skrun { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }
.pa-sk .anom { fill: none; stroke: var(--red); stroke-width: 1.6; animation: skanom 1.6s ease-out infinite; }
@keyframes skanom { 0% { opacity: 0.9; r: 3; transform-box: fill-box; transform-origin: center; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.pa-sk .anomc { fill: var(--red); }
/* GHMS */
.pa-gh .ghn { fill: var(--gold-bright); animation: ghsurge 3.4s ease-in-out infinite; }
@keyframes ghsurge { 0%, 12% { fill: #e8c87a; filter: none; } 3% { fill: #c41e3a; filter: drop-shadow(0 0 6px #c41e3a); } 13%, 100% { fill: #e8c87a; } }
/* Jammertrace-X */
.pa-jx .jb { fill: var(--gold); transform-box: fill-box; transform-origin: bottom; animation: jbeat 1.2s ease-in-out infinite alternate; }
@keyframes jbeat { 0% { transform: scaleY(0.5); } 100% { transform: scaleY(1.05); } }
.pa-jx .threat { fill: var(--red); animation: jthreat 2.2s ease-in-out infinite; }
@keyframes jthreat { 0%, 40% { transform: scaleY(0.6); fill: var(--gold); } 55% { transform: scaleY(1.5); fill: var(--red); filter: drop-shadow(0 0 6px #c41e3a); } 100% { transform: scaleY(0.6); fill: var(--gold); } }
/* Lunarguard */
.pa-lg .track { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.25; }
.pa-lg .wire { fill: none; stroke: var(--gold); stroke-width: 0.7; opacity: 0.5; }
.pa-lg .rim { fill: none; stroke: var(--gold-bright); stroke-width: 1.3; opacity: 0.85; }
.pa-lg .moon { fill: #2a1d10; stroke: var(--gold); stroke-width: 1; opacity: 0.9; }
.pa-lg .rk { fill: #fff6df; filter: drop-shadow(0 0 4px var(--gold-bright)); offset-path: path('M60.0,85.0 L60.4,89.5 L61.4,93.9 L63.1,98.0 L65.5,101.7 L68.6,104.9 L72.3,107.5 L76.6,109.4 L81.5,110.6 L86.9,111.0 L92.9,110.6 L99.2,109.4 L106.0,107.5 L113.1,104.9 L120.5,101.7 L128.2,98.0 L136.0,93.9 L144.0,89.5 L152.0,85.0 L160.0,80.5 L168.0,76.1 L175.8,72.0 L183.5,68.3 L190.9,65.1 L198.0,62.5 L204.8,60.6 L211.1,59.4 L217.1,59.0 L222.5,59.4 L227.4,60.6 L231.7,62.5 L235.4,65.1 L238.5,68.3 L240.9,72.0 L242.6,76.1 L243.6,80.5 L244.0,85.0 L243.6,89.5 L242.6,93.9 L240.9,98.0 L238.5,101.7 L235.4,104.9 L231.7,107.5 L227.4,109.4 L222.5,110.6 L217.1,111.0 L211.1,110.6 L204.8,109.4 L198.0,107.5 L190.9,104.9 L183.5,101.7 L175.8,98.0 L168.0,93.9 L160.0,89.5 L152.0,85.0 L144.0,80.5 L136.0,76.1 L128.2,72.0 L120.5,68.3 L113.1,65.1 L106.0,62.5 L99.2,60.6 L92.9,59.4 L86.9,59.0 L81.5,59.4 L76.6,60.6 L72.3,62.5 L68.6,65.1 L65.5,68.3 L63.1,72.0 L61.4,76.1 L60.4,80.5 L60.0,85.0'); offset-rotate: auto; animation: lgrun 9s linear infinite; }
@keyframes lgrun { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } }

/* =========================================================================
   LIGHTBOX  (click-to-zoom for the Federated Constellation detail screenshot)
   ========================================================================= */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10, 2, 2, 0.92); display: flex; align-items: center; justify-content: center; padding: 5vh 5vw; cursor: zoom-out; opacity: 0; animation: lbIn 0.2s var(--ease) forwards; }
@keyframes lbIn { to { opacity: 1; } }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); }
.lightbox__close { position: absolute; top: 0.9rem; right: 1.3rem; font-size: 2rem; line-height: 1; color: var(--ink-dim); }
.lightbox__close:hover { color: var(--ink); }
.zoomable { cursor: zoom-in; }

/* =========================================================================
   LANDING GRID + TILES
   ========================================================================= */
.grid {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.tile {
  display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; height: 100%;
  padding: 1rem 1rem 1.25rem; background: var(--bg-card); border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.tile:hover {
  border-color: rgba(201, 168, 106, 0.55); background: var(--bg-card-2);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 168, 106, 0.25);
}
.tile__visual { width: 100%; }
.tile__name { font-family: "Sprintura", serif; font-style: italic; font-size: var(--fs-tile); line-height: 1.1; color: var(--ink); overflow-wrap: break-word; }
.tile__tagline { font-size: 0.9rem; color: var(--ink-dim); font-weight: 300; line-height: 1.5; }

/* placeholder visual (initials) */
.ph {
  display: grid; place-items: center; aspect-ratio: 5 / 4; width: 100%;
  background: var(--bg-deep); border: 1px solid var(--line); color: var(--gold); overflow: hidden;
}
.ph__initials { font-family: "Sprintura", serif; font-style: italic; font-size: var(--fs-initials); letter-spacing: 0.03em; line-height: 1; }
.ph--missing { color: var(--ink-muted); padding: 1rem; }
.ph--missing .ph__file { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; text-align: center; word-break: break-all; color: var(--ink-muted); }
.ph--wide { aspect-ratio: 16 / 9; }
/* real image inside a tile/frame */
.img-cover { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border: 1px solid var(--line); background: var(--bg-card); }

/* =========================================================================
   DETAIL PAGES  (mobile-first: single column + chip rail by default;
   the two-column rail layout is added at >=769px so narrow viewports never
   force a wide layout that would defeat the breakpoint.)
   ========================================================================= */
.detail { display: block; }
.detail__main { min-width: 0; }

/* side rail — mobile default: horizontal, scrollable chip strip above title */
.rail { min-width: 0; margin-bottom: 1.75rem; }
.rail__title { display: none; }
.rail__list {
  display: flex; flex-direction: row; gap: 0.5rem;
  overflow-x: auto; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.rail__list a {
  flex: 0 0 auto; display: block; white-space: nowrap;
  border: 1px solid var(--line); padding: 0.4rem 0.85rem; font-size: 0.78rem; line-height: 1.35;
  color: var(--ink-dim); transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.rail__list a:hover { color: var(--ink); border-color: var(--gold-dim); }
.rail__item--current a { color: var(--ink); border-color: var(--gold); font-weight: 500; }

/* main content */
.detail__title { font-family: "Sprintura", serif; font-style: italic; font-size: var(--fs-detail); line-height: 1.08; color: var(--ink); overflow-wrap: break-word; }
.detail__tagline { margin-top: 0.75rem; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); color: var(--gold); font-weight: 300; line-height: 1.35; }
.detail__overview, .detail__body { margin-top: 1.5rem; font-size: clamp(1rem, 0.97rem + 0.25vw, 1.12rem); color: var(--ink); line-height: 1.7; }
.detail__body { max-width: 60rem; }

/* product hero: overview + visual (mobile-first: stacked) */
.product-hero { display: block; margin-top: 1.75rem; }
.product-hero__visual { width: 100%; max-width: 30rem; margin-top: 1.5rem; }
.product-hero__visual .hero-img { width: 100%; height: auto; border: 1px solid var(--line); background: var(--bg-card); }

/* product sections */
.sections { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.section-card { min-width: 0; padding: 1.4rem 1.5rem; background: var(--bg-card); border: 1px solid var(--line); border-top: 2px solid var(--gold-dim); }
.section-card h3 { font-family: "Sprintura", serif; font-style: italic; font-size: var(--fs-section); line-height: 1.12; color: var(--gold-bright); margin-bottom: 0.7rem; overflow-wrap: break-word; }
.section-card p { font-size: 0.97rem; color: var(--ink-dim); line-height: 1.65; }

/* cross-links */
.xlinks { margin-top: clamp(2.25rem, 4vw, 3.25rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.85rem; }
.xrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.75rem; }
.xrow__label { font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--ink-muted); flex: 0 0 auto; }
.xrow__links { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.5; }
.xrow__links a { color: var(--gold); transition: color 0.16s; }
.xrow__links a:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.xrow__sep { color: var(--ink-faint); margin: 0 0.15rem; }

/* =========================================================================
   COMPANY / CONTACT (centered)
   ========================================================================= */
.centered { max-width: 54rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding-top: clamp(1rem, 4vw, 3rem); }
.centered__title { font-family: "Sprintura", serif; font-style: italic; font-size: var(--fs-page); line-height: 1.05; color: var(--ink); }
.centered__intro { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); color: var(--gold); font-weight: 300; }
.centered__body { font-size: clamp(1rem, 0.97rem + 0.25vw, 1.12rem); color: var(--ink); line-height: 1.75; }

.infoblock { display: flex; flex-direction: column; gap: 0.25rem; align-items: center; margin-top: 0.5rem; }
.infoblock__label { font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--ink-muted); margin-bottom: 0.35rem; }
.infoblock__line { font-size: 1rem; color: var(--ink-dim); }
.infoblock__line--strong { color: var(--ink); }
.maillink { color: var(--gold); border-bottom: 1px solid var(--gold-dim); padding-bottom: 1px; transition: color 0.16s, border-color 0.16s; }
.maillink:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* =========================================================================
   404
   ========================================================================= */
.notfound { max-width: 40rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding-top: clamp(2rem, 8vw, 6rem); }
.notfound__code { font-family: "Sprintura", serif; font-style: italic; font-size: clamp(3.5rem, 2rem + 9vw, 8rem); color: var(--gold); line-height: 1; }
.notfound__msg { font-size: 1.1rem; color: var(--ink-dim); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x) 1.5rem;
  display: grid; gap: clamp(1.75rem, 3vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.footer__col { min-width: 0; }
.footer__col h4 { font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; color: var(--gold); margin-bottom: 1rem; }
.footer__brandcol h4 { color: var(--ink); }
.footer__col p { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.65; font-weight: 300; }
.footer__col li { margin-bottom: 0.5rem; }
.footer__col li a { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.4; transition: color 0.16s; }
.footer__col li a:hover { color: var(--ink); }
.footer__contact .footer__line { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.55; }
.footer__mail { color: var(--red); transition: color 0.16s; border-bottom: 1px solid rgba(196, 30, 58, 0.4); }
.footer__mail:hover { color: #e84a62; border-color: #e84a62; }
.footer__bottom {
  border-top: 1px solid var(--line); max-width: var(--maxw); margin: 0 auto;
  padding: 1.25rem var(--pad-x); text-align: center;
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-muted);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
/* Desktop / tablet (>768px): show nav links, restore the vertical side rail
   and the two-column product hero. */
@media (min-width: 769px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }

  .detail { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }

  .rail { position: sticky; top: calc(var(--nav-h) + 1rem); margin-bottom: 0; }
  .rail__title { display: block; font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; color: var(--ink-muted); margin-bottom: 0.85rem; padding-left: 0.9rem; }
  .rail__list { flex-direction: column; gap: 0; overflow: visible; padding-bottom: 0; border-left: 1px solid var(--line); }
  .rail__list a { border: none; border-left: 2px solid transparent; margin-left: -1px; white-space: normal; padding: 0.5rem 0.9rem; font-size: 0.82rem; }
  .rail__list a:hover { border-left-color: var(--gold-dim); }
  .rail__item--current a { border-color: transparent; border-left-color: var(--gold); }
  .rail__item--current a::before { content: "\25B8\00a0"; color: var(--gold); }

  .product-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
  .product-hero .detail__overview { margin-top: 0; }
  .product-hero__visual { max-width: none; margin-top: 0; }
}

@media (max-width: 480px) {
  .home__flagship-frame { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bg-grid { animation: none; }
  /* The FC reveal collapses to its static dashboard; no concept animation. */
  .rv-fc .anim { display: none !important; }
  .rv-fc .shot { opacity: 1 !important; animation: none !important; }
  /* Edge Guardian has no screenshot — show its built gate at rest (no motion)
     so the reveal box is never blank for reduced-motion visitors. */
  .rv-eg .grid-bg { opacity: 1 !important; }
  .rv-eg .rail { stroke-dashoffset: 0 !important; }
  .rv-eg .rail.in { opacity: 0.5 !important; }
  .rv-eg .rail.out { opacity: 0.28 !important; }
  .rv-eg .gate-housing, .rv-eg .shield, .rv-eg .glyph, .rv-eg .title { opacity: 1 !important; }
  .rv-eg .aperture { opacity: 0.45 !important; }
}
