/* ============================================================
   Cortex Engineering — Website v2
   Brand: navy #14283C dominant · green #355E3B secondary ·
   orange #D9531E trim · warm paper #F6F4EF
   Type: Oswald (display) / Arial Narrow → Barlow Condensed (body)
   ============================================================ */

:root {
  --navy: #14283C;
  --navy-2: #1B3354;
  --navy-3: #0E1D2C;
  --green: #355E3B;
  --green-bright: #4F9C5B;
  --orange: #D9531E;
  --orange-2: #C2461A;
  --white: #FFFFFF;
  --paper: #F6F4EF;
  --rule: rgba(20, 40, 60, 0.10);
  --ink: #14283C;
  --muted: #44566A;
  --annH: 44px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Arial Narrow', 'Barlow Condensed', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 1.14rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-2); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; padding: 12px 20px; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; outline: 2px solid var(--orange); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---- eyebrow + rule ---- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 48px; height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}
.on-dark .eyebrow { color: rgba(255,255,255,0.85); }
.on-dark h2, .on-dark h3 { color: var(--white); }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 17px 38px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--orange-2); border-color: var(--orange-2); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn.ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.ghost-navy { background: transparent; color: var(--navy); border-color: rgba(20,40,60,0.4); }
.btn.ghost-navy:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ============ ANNOUNCEMENT BAR ============ */
.annc-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--annH);
  background: var(--green);
  border-bottom: 2px solid var(--orange);
  display: flex; align-items: center;
}
.annc-inner {
  max-width: 1240px; width: 100%;
  margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 16px;
}
.annc-new {
  background: var(--orange); color: var(--white);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 4px 12px; flex-shrink: 0;
}
.annc-text {
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.annc-text strong { color: var(--white); font-weight: 600; }
.annc-link {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white); border-bottom: 2px solid var(--orange);
  padding-bottom: 1px; white-space: nowrap; flex-shrink: 0;
}
.annc-link:hover { color: var(--orange); }
.annc-close {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,0.85); font-size: 1.35rem; line-height: 1;
  cursor: pointer; flex-shrink: 0; padding: 0 2px;
}
.annc-close:hover { color: var(--white); }
.annc-bar.hidden { display: none; }
body.has-annc nav.main { top: var(--annH); }

/* ============ NAV ============ */
nav.main {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(14,29,44,0.55), rgba(14,29,44,0));
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
nav.main.scrolled {
  background: rgba(14, 29, 44, 0.97);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { height: 60px; width: auto; transition: height 0.35s var(--ease); }
nav.main.scrolled .brand img { height: 46px; }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav-links a:not(.cta):not(.li-icon)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover:not(.cta):not(.li-icon)::after { width: 100%; }
.nav-links a.cta {
  display: inline-block;
  border: 1px solid var(--orange);
  border-radius: 4px;
  padding: 11px 26px;
  transition: background 0.2s var(--ease);
}
.nav-links a.cta:hover { background: var(--orange); }
.nav-links a.li-icon { display: inline-flex; align-items: center; opacity: 0.9; }
.nav-links a.li-icon:hover { opacity: 1; color: var(--orange); }
.nav-links a.li-icon svg { fill: currentColor; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--white); cursor: pointer; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,29,44,0.90) 0%, rgba(14,29,44,0.56) 44%, rgba(14,29,44,0.20) 100%),
    linear-gradient(to bottom, rgba(14,29,44,0.26) 0%, rgba(14,29,44,0.14) 52%, rgba(14,29,44,0.84) 100%),
    url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/Tampa_Skyline_with_I-275_Aerial_%2849329541083%29.jpg/1920px-Tampa_Skyline_with_I-275_Aerial_%2849329541083%29.jpg') center/cover no-repeat;
  animation: heroZoom 22s var(--ease-out) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-net { position: absolute; inset: 0; pointer-events: none; opacity: 0; animation: netIn 2s var(--ease) 0.5s forwards; }
@keyframes netIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-net { animation: none; opacity: 1; } }
.hero-content {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 150px 32px 64px;
}
.hero .eyebrow { color: rgba(255,255,255,0.92); text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 34px;
  text-shadow: 0 3px 26px rgba(0,0,0,0.35);
}
.hero h1 span {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: lineUp 0.85s var(--ease-out) forwards;
}
.hero h1 span:nth-child(1) { animation-delay: 0.12s; }
.hero h1 span:nth-child(2) { animation-delay: 0.30s; }
.hero h1 span:nth-child(3) { animation-delay: 0.48s; color: var(--green-bright); }
@keyframes lineUp { to { opacity: 1; transform: none; } }
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 34px;
  opacity: 0;
  animation: lineUp 0.9s var(--ease-out) 0.72s forwards;
}
.hero-foot p {
  max-width: 500px;
  font-size: 1.22rem;
  line-height: 1.62;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.sbe-chip {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 11px 22px;
  margin-top: 20px;
  border-left: 3px solid var(--orange);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  right: 40px; bottom: 36px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  writing-mode: vertical-rl;
  animation: hintFloat 2.6s ease-in-out infinite;
}
@keyframes hintFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }



/* Full-resolution hero source (3600x2400) only where it earns the bytes.
   Wikimedia serves this file at 1920px or the original — no mid-size thumbs. */
@media (min-resolution: 1.5dppx), (min-width: 1800px) {
  .hero-bg {
    background-image:
      linear-gradient(100deg, rgba(14,29,44,0.90) 0%, rgba(14,29,44,0.56) 44%, rgba(14,29,44,0.20) 100%),
      linear-gradient(to bottom, rgba(14,29,44,0.26) 0%, rgba(14,29,44,0.14) 52%, rgba(14,29,44,0.84) 100%),
      url('https://commons.wikimedia.org/wiki/Special:FilePath/Tampa%20Skyline%20with%20I-275%20Aerial%20(49329541083).jpg?width=2560');
  }
}

/* A 1920x1280 photo costs ~9.8MB of decoded memory whether or not it is on
   screen. On a phone that is a meaningful slice of the budget, so serve the
   1280px rendition there — 4.4MB, and still 3x the CSS width of the band.
   1280 and 1920 are the only renditions Wikimedia has cached for this file. */
@media (max-width: 720px) {
  .hero-bg {
    background-image:
      linear-gradient(100deg, rgba(14,29,44,0.90) 0%, rgba(14,29,44,0.56) 44%, rgba(14,29,44,0.20) 100%),
      linear-gradient(to bottom, rgba(14,29,44,0.26) 0%, rgba(14,29,44,0.14) 52%, rgba(14,29,44,0.84) 100%),
      url('https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/Tampa_Skyline_with_I-275_Aerial_%2849329541083%29.jpg/1280px-Tampa_Skyline_with_I-275_Aerial_%2849329541083%29.jpg');
  }
}

/* ---- Hero: 3D corridor model overlay ---- */
.hero-model-wrap {
  position: absolute; top: 4%; right: -3%; width: 70%; height: 84%;
  pointer-events: none;
  background: radial-gradient(58% 62% at 62% 46%, rgba(14,29,44,0.44) 0%, rgba(14,29,44,0) 72%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 20%, #000 48%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 20%, #000 48%, #000 100%);
  opacity: 0; animation: modelIn 1.6s var(--ease) 0.9s forwards;
}
@keyframes modelIn { to { opacity: 1; } }
.hero-model { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 7px rgba(240,121,63,0.34)); }
.hero-model g { fill: none; stroke: #F0793F; stroke-linecap: round; }
.hero-model path { vector-effect: non-scaling-stroke; }
.hm-ground path { stroke: rgba(255,255,255,0.34); stroke-width: 1; stroke-dasharray: 5 7; }
.hm-edge path { stroke-width: 2.1; }
.hm-lo path { stroke-width: 1.5; opacity: 0.62; }
.hm-rung path { stroke-width: 1; opacity: 0.42; }
.hm-rung-lo path { opacity: 0.28; }
.hm-pier path { stroke-width: 1.5; opacity: 0.55; }
.hm-node circle { fill: #F0793F; stroke: none; opacity: 0.85; }
.hero-model .hm-edge path, .hero-model .hm-lo path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: hmDraw 2.6s var(--ease-out) 1.1s forwards;
}
@keyframes hmDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-model-wrap { animation: none; opacity: 1; }
  .hero-model .hm-edge path, .hero-model .hm-lo path { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 1024px) { .hero-model-wrap { width: 84%; height: 62%; top: 8%; opacity: 0; animation-name: modelInFaint; } @keyframes modelInFaint { to { opacity: 0.55; } } }
@media (max-width: 700px) { .hero-model-wrap { display: none; } }

/* ============ FILM HERO ============ */
.filmhero { position: relative; background: var(--navy-3); }
/* Sticky brand line, pinned under the nav while the hero scrolls past.
   Lives OUTSIDE .filmhero-stage on purpose — that stage's overflow:hidden
   would make it a scroll container and silently break position:sticky.
   The top strip is contested. The film's logo lockup sits at 336 in a 1080
   stage, so it clears the 148–187 band only once stageH > 601px, and
   stageH = min(width/1.778, 0.86*vh) — so BOTH axes gate it: width >= 1120
   keeps the aspect-ratio cap from squashing the stage, height >= 740 keeps
   the svh cap from doing the same. That also clears the poster h1 (needs
   506) and the big words (need 543). */
.filmhero-line { display: none; }
@media (min-width: 1120px) and (min-height: 740px) {
  .filmhero-line { display: block; position: sticky; top: 148px; height: 0; z-index: 4; pointer-events: none; }
  body:not(.has-annc) .filmhero-line { top: 104px; }
}
.filmhero-line span {
  display: inline-block; margin-left: 32px; padding: 9px 17px;
  background: rgba(14,29,44,0.66); border-left: 2px solid var(--orange);
  font-family: var(--font-display); font-weight: 500; font-size: 0.76rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); white-space: nowrap;
}
.filmhero-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  max-width: calc(86svh * 16 / 9); margin: 0 auto;
  overflow: hidden; background: var(--navy-3);
}
/* iframe runs 44px taller so the engine's playback bar is cropped away */
.filmhero-stage iframe:not([src]) { display: none; }
.filmhero-stage iframe {
  position: absolute; top: 0; left: 0; z-index: 2;
  width: 100%; height: calc(100% + 44px);
  border: 0; display: block; pointer-events: none;
}
/* Poster sits UNDER the opaque film: it is what a visitor sees if the film
   never loads, and it carries the page's real h1. */
.film-poster { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.film-poster .motif { position: absolute; width: 128%; opacity: 0.15; pointer-events: none; }
.film-poster-in { position: relative; text-align: center; padding: 0 32px; }
.film-poster .eyebrow { justify-content: center; color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.film-poster h1 {
  color: var(--white); font-weight: 600; letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.08;
}
.film-poster h1 span { display: block; }
.film-poster h1 span.g { color: var(--green-bright); }
.filmhero-cta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  padding: 58px 24px 26px;
  background: linear-gradient(to top, rgba(14,29,44,0.9) 0%, rgba(14,29,44,0.42) 44%, rgba(14,29,44,0) 100%);
}
.filmhero .scroll-hint { z-index: 3; animation: none; opacity: 0.72; }
/* Green primary CTA, film hero only. The brand standard reserves filled CTAs
   for orange or navy, so this is a deliberate exception. Fill is canonical
   --green (white label at 7.5:1, better than the orange's 5.0:1); the
   --green-bright hairline stops #355E3B reading near-black on the dark film. */
.filmhero-cta .btn:not(.ghost) { background: var(--green); border-color: var(--green-bright); transition: background 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease); }
.filmhero-cta .btn:not(.ghost):hover { background: var(--green); border-color: var(--green-bright); filter: brightness(0.86); }

/* ============ MARQUEE ============ */
.marquee {
  background: var(--navy-3);
  border-top: 3px solid var(--orange);
  overflow: hidden;
  padding: 17px 0;
}
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 28px;
}
.marquee-track span::after { content: "\2022"; color: var(--orange); margin-left: 28px; }
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* ============ WELCOME (Dylan) ============ */
.welcome { padding: 120px 0; background: var(--paper); }
.welcome-inner { display: grid; grid-template-columns: auto 1fr; gap: 72px; align-items: center; }
.welcome-photo { position: relative; width: 340px; }
.welcome-photo .disc {
  width: 340px; height: 340px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--orange);
  overflow: hidden;
  position: relative;
}
.welcome-photo .disc img {
  position: absolute;
  left: 50%; bottom: -32%;
  width: 125%;
  max-width: none;
  transform: translateX(-50%);
}
.welcome-badge {
  position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 20px;
  white-space: nowrap;
  border-left: 3px solid var(--orange);
}
.welcome-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 12px; }
.welcome-role {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.welcome-copy p { color: var(--muted); margin-bottom: 18px; max-width: 720px; text-wrap: pretty; }
.welcome-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.welcome-chips span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid rgba(20,40,60,0.18);
  background: var(--white);
  padding: 9px 15px;
  border-radius: 2px;
}

/* ============ STORY ============ */
.statement { padding: 140px 0 130px; }
.statement h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  text-transform: none;
  line-height: 1.38;
  letter-spacing: 0;
  max-width: 1020px;
  color: var(--navy);
}
.statement h2 em { font-style: normal; color: var(--green); }
.statement .follow {
  margin-top: 30px;
  max-width: 740px;
  font-size: 1.18rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ============ SERVICES ============ */
.svc-intro { padding: 0 0 72px; }
.svc-intro h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.svc-intro p { margin-top: 24px; max-width: 760px; font-size: 1.18rem; color: var(--muted); }
.svc { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.svc.flip .svc-photo { order: 2; }
.svc-photo { position: relative; overflow: hidden; min-height: 420px; }
.svc-photo .ph {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 1.1s var(--ease-out);
  transform: scale(1.02);
}
.svc:hover .svc-photo .ph { transform: scale(1.08); }
.svc-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,29,44,0.42), rgba(14,29,44,0.08) 45%);
}
.svc-photo .tag {
  position: absolute;
  left: 36px; bottom: 26px;
  z-index: 2;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 4.6rem;
  font-weight: 600;
  opacity: 0.55;
  line-height: 1;
}
.svc-text {
  background: var(--navy);
  color: var(--white);
  padding: 88px 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.svc.flip .svc-text { background: var(--navy-2); }
.svc-text .eyebrow { color: rgba(255,255,255,0.8); }
.svc-text h3 { color: var(--white); font-size: clamp(1.9rem, 2.8vw, 2.5rem); margin-bottom: 26px; }
.svc-text > p { color: rgba(255,255,255,0.92); margin-bottom: 30px; max-width: 540px; font-size: 1.16rem; }
.svc-person { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; }
.svc-person .avatar {
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--orange);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.svc.flip .svc-person .avatar { background: var(--white); }
.svc-person .avatar img {
  position: absolute;
  left: 50%; bottom: -42%;
  width: 140%;
  max-width: none;
  transform: translateX(-50%);
}
.svc-person .nm {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.svc-person .rl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  color: #E8A48A;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 3px;
}
.svc-person .xp { font-size: 1.02rem; line-height: 1.5; color: rgba(255,255,255,0.8); margin-top: 7px; max-width: 400px; }
.svc-list { list-style: none; margin-bottom: 40px; }
.svc-list li {
  font-family: var(--font-display);
  font-weight: 400;
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 0.96rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.svc-list li::after { content: "\2192"; color: var(--orange); }

/* ============ WHY CORTEX ============ */
.principles { padding: 140px 0; background: var(--paper); }
.principles-head { max-width: 920px; margin-bottom: 64px; }
.principles-head h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.phead-lede { margin-top: 26px; color: var(--muted); font-size: 1.18rem; max-width: 780px; }
.phead-lede strong { color: var(--navy); font-weight: 700; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pcard {
  position: relative;
  background: var(--white);
  padding: 44px 40px 42px;
  border: 1px solid var(--rule);
  border-top: 3px solid rgba(20,40,60,0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pcard:hover {
  transform: translateY(-5px);
  border-top-color: var(--orange);
  box-shadow: 0 18px 40px rgba(20,40,60,0.12);
}
.pcard .pnum {
  position: absolute;
  top: 26px; right: 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(20,40,60,0.10);
  transition: color 0.3s var(--ease);
}
.pcard:hover .pnum { color: rgba(217,83,30,0.32); }
.picon { width: 42px; height: 42px; color: var(--orange); margin-bottom: 24px; display: block; }
.pcard h3 { font-size: 1.35rem; font-weight: 500; margin-bottom: 14px; padding-right: 72px; }
.pcard p { color: var(--muted); font-size: 1.1rem; max-width: 540px; text-wrap: pretty; }

/* ============ STATS ============ */
.stats {
  position: relative;
  background: var(--navy-3);
  color: var(--white);
  padding: 72px 0;
  border-top: 3px solid var(--orange);
  overflow: hidden;
}
.stats .motif {
  position: absolute;
  right: -80px; top: -60px;
  width: 520px;
  opacity: 0.35;
  pointer-events: none;
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat { border-left: 2px solid rgba(255,255,255,0.2); padding-left: 28px; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 5.6vw, 4.4rem);
  color: var(--white);
  display: block;
  line-height: 1;
}
.stat .num em { font-style: normal; color: var(--green-bright); }
.stat .lbl {
  margin-top: 14px;
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.78);
}

/* ============ BRAND FILM BAND ============ */
/* The iframe is 44px taller than the frame so the engine's playback bar
   (stacked below its canvas) lands in the cropped strip — the film reads
   as a film, not an embed. pointer-events:none keeps stray clicks from
   scrubbing it. */
.filmband { background: var(--navy-3); }
.film-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  max-width: calc(78svh * 16 / 9); margin: 0 auto;
  overflow: hidden; background: #0E1D2C;
}
.film-frame iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: calc(100% + 44px);
  border: 0; display: block; pointer-events: none;
}
@media (max-width: 700px) { .film-frame { max-width: none; } }

/* ============ SBE BAND ============ */
.sbe { background: var(--green); color: var(--white); padding: 66px 0; }
.sbe-inner { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: start; }
.sbe-inner > .btn { margin-top: 40px; }
.sbe h2 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.sbe p { color: rgba(255,255,255,0.95); max-width: 700px; font-size: 1.18rem; text-wrap: pretty; }
.sbe .eyebrow { color: rgba(255,255,255,0.9); }
.sbe .eyebrow::before { background: var(--white); }
.sbe .btn.ghost:hover { color: var(--green); }

/* Prequalification work groups */
.prequal { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.30); max-width: 700px; }
.pq-lbl { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.88); margin-bottom: 6px; }
.pq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.pq-grid > div { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.pq-code { flex: 0 0 auto; min-width: 46px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.05em; color: var(--white); }
.pq-name { font-size: 1.04rem; line-height: 1.35; color: rgba(255,255,255,0.94); }

/* ============ BIG CTA ============ */
.bigcta {
  position: relative;
  padding: 180px 0;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(rgba(14,29,44,0.78), rgba(14,29,44,0.86)),
    url('assets/bridge-structures.jpg') center/cover no-repeat;
}
.bigcta h2 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 600;
  max-width: 1000px;
  margin: 0 auto 26px;
}
.bigcta p { max-width: 620px; margin: 0 auto 42px; color: rgba(255,255,255,0.92); font-size: 1.18rem; }
.bigcta .eyebrow { justify-content: center; color: rgba(255,255,255,0.88); }

/* ---- Closing CTA over the aerial ---- */
/* Layer order is DOM order (all z-auto) so the scrim evens out the photo's
   left-heavy gradient for centered copy, while the corridor model and node
   canvas stay above it. */
.closer { position: relative; overflow: hidden; background: none; padding: 130px 0; }
.closer .hero-bg { animation: none; }
.closer-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14,29,44,0.34) 0%, rgba(14,29,44,0.26) 45%, rgba(14,29,44,0.62) 100%); }
.closer > .container { position: relative; z-index: 2; }

/* ============ CONTACT ============ */
.contact { padding: 140px 0; }
.contact h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; margin-top: 60px; }
.contact-info .row { padding: 22px 0; border-top: 1px solid var(--rule); }
.contact-info .row:last-child { border-bottom: 1px solid var(--rule); }
.contact-info .lbl {
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.contact-info a, .contact-info span.val { font-size: 1.16rem; color: var(--navy); font-weight: 700; }
.contact-info a:hover { color: var(--orange); }
form.cform { background: var(--paper); padding: 52px; border-top: 3px solid var(--orange); }
.form-row { margin-bottom: 20px; }
.form-row label {
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid rgba(20,40,60,0.22);
  border-radius: 2px;
  background: var(--white);
  font-family: inherit;
  font-size: 1.06rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--orange); }
.form-row textarea { min-height: 150px; resize: vertical; }
/* Honeypot: visible to a bot reading the DOM, unreachable for a person. */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { margin-top: 18px; color: #A8321A; font-size: 1rem; line-height: 1.5; }
.form-err a { color: #A8321A; text-decoration: underline; }
.cform-ok { background: var(--paper); padding: 52px; border-top: 3px solid var(--green-bright); }
.cform-ok .eyebrow { color: var(--green); margin-bottom: 14px; }
.cform-ok h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: var(--navy); margin-bottom: 16px; }
.cform-ok p { font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.cform-ok a { color: var(--orange); font-weight: 700; }

/* ============ FOOTER ============ */
footer { background: var(--navy-3); color: var(--white); padding: 84px 0 0; }
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-top img { height: 58px; }
.foot-top .tag {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.foot-top .tag em { font-style: normal; color: var(--green-bright); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding: 52px 0; }
.foot-grid h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  margin-bottom: 20px;
  font-weight: 600;
}
.foot-grid p, .foot-grid li { color: rgba(255,255,255,0.78); font-size: 1.02rem; }
.foot-grid a { color: rgba(255,255,255,0.78); }
.foot-grid ul { list-style: none; }
.foot-grid ul li { margin-bottom: 10px; }
.foot-grid a:hover { color: var(--orange); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.foot-bottom a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.foot-bottom a:hover { color: var(--orange); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero h1 span, .hero-foot, .scroll-hint, .marquee-track { animation: none; }
  .hero h1 span, .hero-foot { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .svc:hover .svc-photo .ph { transform: none; }
}

/* ============ RESPONSIVE ============ */
/* Tighten the desktop nav row before the hamburger takes over at 900px */
@media (min-width: 901px) and (max-width: 1120px) {
  .nav-inner { padding: 0 22px; }
  .brand img { height: 50px; }
  nav.main.scrolled .brand img { height: 42px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.8rem; letter-spacing: 0.1em; }
  .nav-links a.cta { padding: 9px 16px; }
}
@media (max-width: 1024px) {
  .svc { grid-template-columns: 1fr; }
  .svc.flip .svc-photo { order: 0; }
  .svc-text { padding: 64px 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .sbe-inner { grid-template-columns: 1fr; }
  .sbe-inner > .btn { margin-top: 0; }
  .pq-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; align-items: flex-start; }
  .hero-content { padding-top: 162px; padding-bottom: 72px; }
}
@media (min-width: 1025px) and (max-height: 880px) {
  .hero { min-height: auto; align-items: flex-start; }
  .hero-content { padding-top: 168px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.4rem); margin-bottom: 24px; }
}
@media (max-width: 900px) {
  .welcome-inner { grid-template-columns: 1fr; gap: 44px; justify-items: center; text-align: center; }
  .welcome-copy p { margin-left: auto; margin-right: auto; }
  .welcome-chips { justify-content: center; }
  .welcome-copy .eyebrow { justify-content: center; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 90px; }
  .container { padding: 0 22px; }
  .annc-inner { padding: 0 22px; }
  .annc-text { font-size: 0.76rem; }
  .nav-inner { padding: 0 22px; }
  .brand img, nav.main.scrolled .brand img { height: 40px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-3);
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  }
  .nav-links.open { display: flex; }
  nav.main:not(.scrolled) { background: rgba(14,29,44,0.9); }
  .hero-content { padding: 150px 22px 76px; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-foot p { font-size: 1.14rem; }
  .scroll-hint { display: none; }
  /* The fixed announcement bar (44px) and nav (80px) float over the film. On a
     desktop the stage is ~700px tall and they land on empty sky; at 390px wide
     the 16:9 stage is only 219px tall, so they buried more than half of it.
     Push the film clear of the chrome instead of overlaying it. */
  .filmhero { padding-top: calc(var(--annH) + 80px); }
  body:not(.has-annc) .filmhero { padding-top: 80px; }
  .filmhero-stage { max-width: none; }
  /* No film (offline, blocked CDN, dead WebGL): the poster is the hero, so give
     it room rather than holding it to the film's 16:9 box. */
  html.film-failed .filmhero-stage { aspect-ratio: auto; min-height: 46svh; }
  .filmhero-cta { flex-direction: column; padding: 16px 22px; }
  /* Film absent (lite device, or it failed to mount): the stage becomes a real
     column, the poster a flow item, and the CTA drops below it. With the film
     PLAYING the poster stays absolute behind it and the CTA stays pinned — a
     static CTA in a stage of absolute siblings lands at the top, over the film. */
  html.film-lite .filmhero-cta, html.film-failed .filmhero-cta { position: static; background: none; padding: 26px 22px 4px; }
  html.film-lite .filmhero-stage, html.film-failed .filmhero-stage { display: flex; flex-direction: column; }
  html.film-lite .film-poster, html.film-failed .film-poster { position: relative; inset: auto; width: 100%; flex: 1 1 auto; min-height: 0; }
  .filmhero-cta .btn { text-align: center; }

  .statement, .principles, .contact { padding: 90px 0; }
  .welcome { padding: 84px 0; }
  .bigcta { padding: 120px 0; }
  .closer { padding: 92px 0; }
  .stats { padding: 58px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard { padding: 36px 26px 38px; }
  .pcard h3 { padding-right: 48px; }
  .foot-grid { grid-template-columns: 1fr; }
  form.cform { padding: 34px 22px; }
  .svc-photo .tag { font-size: 3.2rem; left: 22px; }
  .welcome-photo, .welcome-photo .disc { width: 260px; }
  .welcome-photo .disc { height: 260px; }
}

/* ============ LITE HERO ============ */
/* film-lite goes on <html> before first paint (phones, touch-only tablets,
   low-memory devices — set in the head script). The film iframe never gets a
   src on this path: the poster IS the hero, animated in pure CSS. Nothing
   external to fetch, nothing that can crash. */
html.film-lite .filmhero-stage iframe { display: none; }
html.film-lite .filmhero-stage { aspect-ratio: auto; max-width: none; min-height: max(400px, 56svh); }
/* The CTA row is absolutely pinned to the stage bottom while the film plays.
   Any path that returns it to normal flow (lite, film-failed, narrow) must also
   turn the stage into a real column and let the poster BE a flow item — left
   absolute, the poster contributes no height and the buttons stack above the
   tagline instead of below it. */
html.film-lite .filmhero-stage { display: flex; flex-direction: column; }
html.film-lite .film-poster { position: relative; inset: auto; width: 100%; flex: 1 1 auto; min-height: 0; padding: 8px 0 4px; }
html.film-lite .filmhero { padding-top: calc(var(--annH) + 80px); padding-bottom: 28px; }
html.film-lite body:not(.has-annc) .filmhero { padding-top: 80px; }
html.film-lite .film-poster .motif { width: 200%; max-width: none; }
html.film-lite .film-poster h1 { font-size: clamp(2.3rem, 9.6vw, 3.6rem); }
html.film-lite .filmhero-cta { position: static; background: none; padding: 30px 22px 8px; }
html.film-lite .filmhero .scroll-hint { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.film-lite .film-poster .eyebrow { opacity: 0; animation: liteUp 0.6s var(--ease-out) 0.1s forwards; }
  html.film-lite .film-poster h1 span { opacity: 0; animation: liteUp 0.8s var(--ease-out) forwards; }
  html.film-lite .film-poster h1 span:nth-child(1) { animation-delay: 0.28s; }
  html.film-lite .film-poster h1 span:nth-child(2) { animation-delay: 0.52s; }
  html.film-lite .film-poster h1 span:nth-child(3) { animation-delay: 0.76s; }
  html.film-lite .filmhero-cta { opacity: 0; animation: liteUp 0.8s var(--ease-out) 1.1s forwards; }
  html.film-lite .film-poster .motif { animation: liteDrift 40s ease-in-out infinite alternate; }
}
@keyframes liteUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes liteDrift { from { transform: translate(-2.5%, -2%); } to { transform: translate(2.5%, 2%) scale(1.07); } }

/* ============ SMALL-SCREEN FILM STACK ============ */
@media (max-width: 820px) {
  html:not(.film-lite):not(.film-failed) .filmhero-stage { aspect-ratio: auto; max-width: none; display: grid; grid-template-columns: 100%; }
  html:not(.film-lite):not(.film-failed) .filmhero-stage iframe { grid-area: 1 / 1; position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  html:not(.film-lite):not(.film-failed) .film-poster { grid-area: 1 / 1; position: relative; inset: auto; width: 100%; z-index: 1; }
  html:not(.film-lite):not(.film-failed) .filmhero-cta { grid-area: 2 / 1; position: static; background: none; padding: 22px 22px 4px; flex-direction: column; }
  html:not(.film-lite):not(.film-failed) .filmhero .scroll-hint { display: none; }
}

/* Prequal grid: source is in reading order (3.1, 3.2, 3.3, 4.1.1, 4.1.2) so a
   one-column phone reads correctly; the 2-up desktop grid flows down its
   columns rather than across rows. */
@media (min-width: 721px) { .pq-grid { grid-auto-flow: column; grid-template-rows: repeat(3, auto); } }
