* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:    #111f44;
  --deep:    #1c2a60;
  --mid:     #192f67;
  --orange:  #f5780a;
  --orange2: #ff9d3d;
  --blue:    #5aa8ff;
  --white:   #e8edf5;
  --dim:     #86a3be;
  /* Outline colour for the orange display type. Deliberately darker than
     --navy: it has to clear 4.5:1 against --orange (#f5780a) and it does at
     7.09:1. A lighter outline is mathematically impossible — orange sits at
     0.33 luminance, so 4.5:1 lighter would need luminance 1.65 and white is
     1.0. See the ORANGE DISPLAY OUTLINE block in pages.css. */
  --type-outline: #060b18;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
}

/* ─── ROCKET SCROLL INDICATOR ─── */
#rocket-rail {
  position: fixed;
  right: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 1000;
  pointer-events: none;
}
#rail-track {
  position: absolute;
  top: 80px;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(245,120,10,0.3) 20%, rgba(245,120,10,0.3) 80%, transparent);
}
#rocket-ship {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 80px;
  width: 32px;
  height: 32px;
  transition: top 0.08s linear;
  filter: drop-shadow(0 0 6px rgba(245,120,10,0.6));
}
#rocket-exhaust {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  opacity: 0.8;
  animation: flicker 0.15s ease-in-out infinite alternate;
  top: 80px;
  transition: top 0.08s linear;
}
@keyframes flicker {
  from { opacity: 0.6; height: 18px; width: 6px; }
  to   { opacity: 1.0; height: 28px; width: 9px; }
}

/* section progress dots */
#nav-dots {
  position: fixed;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1000;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245,120,10,0.25);
  border: 1px solid rgba(245,120,10,0.4);
  transition: all 0.3s;
  cursor: pointer;
}
.dot.active {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 8px rgba(245,120,10,0.6);
}

/* ─── MAIN SCROLL CONTAINER ─── */
#world {
  position: relative;
}

/* ─── SECTION 1: SPACE / HERO ─── */
#space {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 170px;
}
#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#nebula {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(26,80,160,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 60%, rgba(80,20,120,0.15) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 80px;
  max-width: 560px;
  width: 100%;
}
.mission-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  position: absolute;
  top: 100px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
  z-index: 10;
}
.mission-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--orange);
}
.hero-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(66px, 9.5vw, 126px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -2px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}
.hero-h1 .line1 { color: #1a70e0; -webkit-text-stroke: 2px var(--white); paint-order: stroke fill; }
.hero-h1 .line2 { color: #1a70e0; -webkit-text-stroke: 2px var(--white); paint-order: stroke fill; }
.hero-h1 .line3 {
  color: var(--white);
  font-size: 1.15em;
  -webkit-text-stroke: 2px #1a77e0;
  paint-order: stroke fill;
}

/* WCAG 1.4.10 Reflow. The clamp floor is 66px and .line3 multiplies it by
   1.15, so "Multiplied." rendered 338px wide in a 320px viewport and forced
   horizontal scrolling. Only the home page failed this. */
@media (max-width: 400px) {
  .hero-h1 {
    font-size: clamp(40px, 12vw, 66px);
    letter-spacing: -1px;
  }
  .hero-h1 .line3 { font-size: 1.05em; }
  .hero-visual svg { max-width: 100%; height: auto; }
}

/* Also WCAG 1.4.10. #contact is a grid, and grid items default to
   min-width:auto, so a descendant that cannot wrap — here an unbroken address
   string — resolved the single column to 314.4px inside a 272px content box
   and pushed the whole document to 338px. min-width:0 lets the track shrink to
   its container; overflow-wrap then lets the string itself break. */
@media (max-width: 768px) {
  #contact > * {
    min-width: 0;
  }
  .contact-info,
  .contact-info p,
  .contact-info a,
  .form-side {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
.hero-sub {
  font-size: 18px;
  line-height: 1.75;
  color: var(--dim);
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.7s forwards;
}
.hero-sub strong { color: var(--white); font-weight: 500; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--orange);
  padding: 16px 36px;
  text-decoration: none;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.9s forwards;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover { background: #ff9d3d; transform: translateY(-2px); }
.hero-cta::after { content: '↓'; font-size: 16px; }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}
.scroll-hint span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,120,10,0.6), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1.0; transform: scaleY(1.2); }
}

/* ─── ATMOSPHERE TRANSITION ─── */
#atmosphere {
  position: relative;
  height: 50vh;
  background: linear-gradient(
    to bottom,
    var(--navy) 0%,
    #0d1a3a 30%,
    #1a2a50 60%,
    #1e2d45 100%
  );
  overflow: hidden;
}
.cloud-layer {
  position: absolute;
  width: 100%;
  opacity: 0.15;
}

/* ─── SECTION 2: HUNTSVILLE SKYLINE ─── */
#skyline-#skyline-section {
  position: relative;
  /* 100vh to see the scene + 50vh of parallax scroll budget */
  height: 150vh;
  overflow: hidden;
}

/* Sticky inner stage — holds the scene in view while the section scrolls behind it */
#skyline-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#sky-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #12082a 0%,
    #1a0e32 25%,
    #160c28 55%,
    #0a0618 80%,
    #111f44 100%
  );
}

/* city glow */
#city-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: radial-gradient(ellipse 90% 55% at 50% 100%, rgba(245,120,10,0.18) 0%, rgba(180,60,10,0.06) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

#skyline-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  /* Ensure full viewBox is always visible — no cropping */
  flex-shrink: 0;
}

.skyline-content {
  position: absolute;
  top: 18%;
  left: 140px;
  z-index: 10;
  max-width: 560px;
}

/* ─── SECTION 3: CITY GROUND ─── */
#ground-section {
  position: relative;
  background: var(--navy);
  min-height: 100vh;
  z-index: 2;
}

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 80px;
  pointer-events: none; /* nav itself is transparent — children handle clicks */
  transition: background 0.4s, border-bottom 0.4s;
}
#nav.scrolled {
  background: rgba(17,31,68,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,140,255,0.12);
  pointer-events: all;
}

/* Logo — pinned top-left */
.nav-logo {
  position: fixed;
  top: 0;
  left: 126px;
  height: 80px;
  z-index: 501;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  pointer-events: all;
}
.nav-badge-img {
  position: fixed;
  top: 0;
  left: 0;
  height: 120px;
  width: auto;
  display: block;
  z-index: 502;
  filter: brightness(1.15) drop-shadow(0 0 6px rgba(255,255,255,0.15));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  pointer-events: all;
}
.nav-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: 2px;
  color: var(--white);
  white-space: nowrap;
  line-height: 1.1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.nav-acronym {
  font-style: normal;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 3px;
}

/* Nav links — pinned top-right, never overlaps anything */
.nav-links {
  position: fixed;
  top: 0;
  right: 40px;
  height: 80px;
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  z-index: 501;
  pointer-events: all;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
.nav-links a:hover { color: var(--orange); }
.nav-links .cta-link {
  color: var(--navy) !important;
  background: var(--orange);
  padding: 9px 22px;
  font-size: 13px;
  text-shadow: none;
  letter-spacing: 2px;
}
.nav-links .cta-link:hover { background: var(--orange2); }

/* ── Hamburger button (hidden on wide screens) ── */
#nav-hamburger {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 502;
  background: none;
  border: 1px solid rgba(245,120,10,0.5);
  padding: 8px 12px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  pointer-events: all;
}
#nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  transition: all 0.3s;
}
#nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-hamburger.open span:nth-child(2) { opacity: 0; }
#nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile dropdown menu ── */
#nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17,31,68,0.97);
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 40px;
  backdrop-filter: blur(12px);
  overflow-y: auto;
  padding: 24px 0;
}
#nav-mobile-menu.open { display: flex; }
#nav-mobile-menu a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
#nav-mobile-menu a:hover { color: var(--orange); }
#nav-mobile-menu .cta-link {
  color: var(--navy) !important;
  background: var(--orange);
  padding: 14px 40px;
  font-size: 28px;
}

/* ── Breakpoint: hide links, show hamburger below 1500px ── */
@media (max-width: 1500px) {
  .nav-links { display: none !important; }
  #nav-hamburger { display: flex; }
}

/* ─── SERVICES SECTION ─── */
#services {
  padding: 60px 80px 40px 140px;
  height: auto;
  position: relative;
  z-index: 3;
  background: var(--navy);
  border-top: 1px solid rgba(45,140,255,0.1);
}
.section-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--orange);
}
.section-h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(44px,5.5vw,72px);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 32px;
}
.section-h2 em { font-style: normal; color: var(--blue); }

.services-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(45,140,255,0.12);
}
.services-header .section-label { margin-bottom: 0; flex-shrink: 0; }
.services-header-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(45,140,255,0.15), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(45,140,255,0.1);
  border: 1px solid rgba(45,140,255,0.1);
}
.svc {
  background: #070c1e;
  padding: 26px 28px;
  position: relative;
  transition: background 0.2s;
  opacity: 0;
  transform: translateY(24px);
}
.svc.revealed {
  animation: fadeUp 0.6s ease forwards;
}
.svc:hover { background: #0d1530; }
.svc::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}
.svc:hover::before { transform: scaleY(1); }
.svc-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  color: var(--orange);
  opacity: 0.9;
  display: block;
}
.svc-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--blue);
  margin-bottom: 6px;
}
.svc h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 10px;
}
.svc p {
  font-size: 14px;
  color: rgba(160,185,210,0.9);
  line-height: 1.6;
}
.svc-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.svc-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(160,185,210,0.8);
  border: 1px solid rgba(45,140,255,0.25);
  padding: 4px 9px;
  text-transform: uppercase;
}
.services-cta {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.services-cta-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(200,215,235,0.65);
  text-transform: uppercase;
}
.services-cta-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--orange);
  padding: 14px 36px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.services-cta-btn:hover {
  background: #e06a08;
  transform: translateX(4px);
}

/* ─── ABOUT SECTION ─── */
#about {
  padding: 100px 80px 60px 140px;
  height: auto;
  background: #060c1c;
  border-top: 1px solid rgba(45,140,255,0.1);
  display: grid;
  grid-template-columns: 1fr 280px 1fr;
  gap: 60px;
  align-items: start;
}

/* Portrait column */
.about-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: sticky;
  top: 80px;
}

.portrait-frame {
  position: relative;
  width: 260px;
}

/* Decorative corner brackets */
.portrait-frame::before,
.portrait-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
}
.portrait-frame::before {
  top: -4px; left: -4px;
  border-top: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
}
.portrait-frame::after {
  bottom: -4px; right: -4px;
  border-bottom: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
}

.portrait-frame img {
  width: 100%;
  display: block;
  /* Remove the black background, keep illustration */
  mix-blend-mode: normal;
  /* Subtle blue tint to tie into the ATCS palette */
  filter: drop-shadow(0 0 24px rgba(45,140,255,0.15));
}

/* Inner corner brackets (top-right, bottom-left) */
.portrait-inner-br {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  border-top: 2px solid rgba(45,140,255,0.5);
  border-right: 2px solid rgba(45,140,255,0.5);
  z-index: 2;
}
.portrait-inner-tl {
  position: absolute;
  bottom: -4px; left: -4px;
  width: 20px; height: 20px;
  border-bottom: 2px solid rgba(45,140,255,0.5);
  border-left: 2px solid rgba(45,140,255,0.5);
  z-index: 2;
}

.portrait-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 16px;
  text-align: center;
}

.portrait-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-top: 6px;
  text-align: center;
}

.portrait-creds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}

.portrait-cred {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--dim);
  border: 1px solid rgba(45,140,255,0.15);
  padding: 2px 7px;
  text-transform: uppercase;
}
.about-text p {
  font-size: 17px;
  color: var(--dim);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text p strong { color: var(--white); font-weight: 500; }

.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(45,140,255,0.1);
  opacity: 0;
  transform: translateX(-16px);
}
.tl-item:first-child { border-top: 1px solid rgba(45,140,255,0.1); }
.tl-item.revealed { animation: slideIn 0.5s ease forwards; }
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}
.tl-year {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--orange);
  padding-top: 2px;
}
.tl-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 3px;
}
.tl-co {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.tl-desc { font-size: 14px; color: var(--dim); line-height: 1.6; }

/* ─── CONTACT ─── */
#contact {
  padding: 100px 80px 60px 140px;
  height: auto;
  background: var(--navy);
  border-top: 1px solid rgba(45,140,255,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-info p {
  font-size: 17px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 28px;
}
.c-detail {
  padding: 14px 0;
  border-bottom: 1px solid rgba(45,140,255,0.1);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.c-detail:first-of-type { border-top: 1px solid rgba(45,140,255,0.1); }
.c-lbl {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  width: 72px;
  flex-shrink: 0;
  padding-top: 2px;
}
.c-val { font-size: 16px; color: var(--white); }
.c-val a { color: var(--blue); text-decoration: none; }
.c-val a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  background: rgba(25,47,103,0.8);
  border: 1px solid rgba(45,140,255,0.15);
  color: var(--white);
  padding: 11px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(45,140,255,0.5);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(134,163,190,0.96); }
.field select option { background: #0d1530; }
.field textarea { resize: vertical; min-height: 100px; }
.f-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--orange);
  border: none;
  padding: 13px 32px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.f-btn:hover { background: var(--orange2); }
.callback-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(25,47,103,0.8);
  border: 1px solid rgba(45,140,255,0.15);
  color: var(--dim);
  padding: 11px 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.callback-toggle:hover { border-color: rgba(45,140,255,0.4); }
.callback-toggle.active {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(245,120,10,0.08);
}
.callback-toggle svg { flex-shrink: 0; }

/* ─── CONTACT TRUST BADGES ─── */
.trust-badges {
  display: flex;
  gap: 10px;
  margin: 26px 0 30px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(45,140,255,0.05);
  border: 1px solid rgba(45,140,255,0.18);
  padding: 10px 14px;
  flex: 1;
  min-width: 100px;
}
.tb-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.tb-lbl {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
  line-height: 1.4;
}

/* ─── WHAT HAPPENS NEXT ─── */
.expect-block { margin-bottom: 30px; }
.expect-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.expect-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(45,140,255,0.07);
}
.expect-step:first-of-type { border-top: 1px solid rgba(45,140,255,0.07); }
.step-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 1px;
  flex-shrink: 0;
  padding-top: 2px;
  width: 20px;
}
.step-txt {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.5;
}

/* ─── FORM SIDE ─── */
.form-side { display: flex; flex-direction: column; }
.form-intro {
  background: rgba(255,107,0,0.05);
  border: 1px solid rgba(255,107,0,0.2);
  border-bottom: none;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-intro-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
}
.form-intro-sub {
  font-size: 12.5px;
  /* Was rgba(134,163,190,0.55), which composites to #4b5c70 on the form
     surface: 2.75:1, failing WCAG 1.4.3. The alpha was the whole problem —
     --dim is #86a3be and passes at 6.42:1 solid. Same for .form-note below,
     .about-photo-caption, and its inline span. Do not reintroduce alpha on a
     muted token; darken the surface instead if it reads too hot. */
  color: var(--dim);
  font-style: italic;
}
.form-note {
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.6;
  margin-top: -6px;
}

/* ─── ABOUT SECTION ─── */
#about {
  padding: 100px 80px 80px 140px;
  min-height: 100vh;
  background: var(--deep);
  border-top: 1px solid rgba(45,140,255,0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-copy { display: flex; flex-direction: column; }
.about-copy p {
  font-size: 17px;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-copy p:last-of-type { margin-bottom: 0; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0 36px;
}
.about-stat {
  background: rgba(45,140,255,0.05);
  border: 1px solid rgba(45,140,255,0.15);
  padding: 16px 18px;
}
.about-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.5px;
}
.about-stat-lbl {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 5px;
  line-height: 1.4;
}
.about-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.about-industry {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(45,140,255,0.25);
  padding: 5px 10px;
}
.about-photo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 720px;
  background: rgba(25,47,103,0.6);
  border: 1px solid rgba(45,140,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.about-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(45,140,255,0.03) 8px,
    rgba(45,140,255,0.03) 9px
  );
}
.about-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
  opacity: 0.35;
}
.about-photo-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--blue);
}
.about-photo-placeholder span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}
.about-photo-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--orange);
  border-style: solid;
  border-width: 0;
  opacity: 0.6;
}
.about-photo-corner.tl { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.about-photo-corner.tr { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.about-photo-corner.bl { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.about-photo-corner.br { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.about-photo-caption {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}

/* The second caption line. Was an inline style carrying opacity:0.75 on top of
   the parent's 0.6, compositing to 2.24:1 — the worst contrast on the site. */
.about-photo-caption-sub {
  display: inline-block;
  font-size: 0.92em;
}

/* ─── FOOTER ─── */
footer {
  padding: 28px 80px;
  border-top: 1px solid rgba(45,140,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #040810;
}
.ft-l {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--dim);
  text-transform: uppercase;
}
.ft-l strong { color: var(--orange); }
.ft-r {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(134,163,190,0.96);
  text-transform: uppercase;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ─── SPRINT 3: PARALLAX LAYER GPU HINTS ─── */
#px-layer-0, #px-layer-1, #px-layer-2,
#px-layer-3, #px-layer-4, #px-layer-5 {
  will-change: transform;
  transform-origin: center bottom;
}
/* Skyline section — overflow handled by sticky stage */
#skyline-stage {
  overflow: hidden;
}
/* River layer stays pinned — no transform */
#px-layer-river {
  will-change: auto;
}

/* star twinkle */
@keyframes twinkle {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* city lights pulse */
@keyframes winBlink {
  0%,95%,100% { opacity: 1; }
  97%         { opacity: 0.3; }
}

/* ─── SPRINT 1: BUILDING REVEAL ANIMATIONS ─── */
.bld-group {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
  transform: translateY(60px);
  opacity: 0;
}
.bld-group.risen {
  transform: translateY(0);
  opacity: 1;
}

/* ── Borderlands cel-shading on buildings ── */
#px-layer-2, #px-layer-3, #px-layer-4 {
  filter: brightness(2.2) saturate(0.55) contrast(1.1);
}
#skyline-svg .bld-group rect,
#skyline-svg .bld-group path,
#skyline-svg .bld-group polygon,
#skyline-svg .bld-group ellipse {
  paint-order: stroke fill;
  stroke: #07040f;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
#skyline-svg .bld-group circle {
  paint-order: stroke fill;
  stroke: #07040f;
  stroke-width: 1.2;
}
/* Keep hair-thin detail lines unchanged */
#skyline-svg .bld-group line { stroke-width: inherit; }

/* Staggered delays for each building group */
.bld-group:nth-child(1)  { transition-delay: 0.05s; }
.bld-group:nth-child(2)  { transition-delay: 0.12s; }
.bld-group:nth-child(3)  { transition-delay: 0.18s; }
.bld-group:nth-child(4)  { transition-delay: 0.22s; }
.bld-group:nth-child(5)  { transition-delay: 0.28s; }
.bld-group:nth-child(6)  { transition-delay: 0.08s; }
.bld-group:nth-child(7)  { transition-delay: 0.15s; }
.bld-group:nth-child(8)  { transition-delay: 0.20s; }
.bld-group:nth-child(9)  { transition-delay: 0.25s; }
.bld-group:nth-child(10) { transition-delay: 0.32s; }
/* Saturn V rises last, dramatically — slow slide from below */
#saturn-v-group {
  transition: transform 4.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 3.6s ease;
  transition-delay: 1.5s;
  transform: translateY(120px);
  opacity: 0;
}
#saturn-v-group.risen {
  transform: translateY(0);
  opacity: 1;
}
/* Space Shuttle SVG image — JS animates x attribute */
#shuttle-img {
  opacity: 0;
}
/* Hills and ground always visible */
.ground-group { opacity: 1; transform: none; }

/* ─── SPRINT 2: ROCKET IGNITION EFFECTS ─── */

/* Section ignition flash */
.section-ignite {
  position: relative;
}
.section-ignite::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0s;
  z-index: 5;
}
.section-ignite.ignited::before {
  transform: scaleX(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Section heading spark on ignition */
.section-h2 .ignite-word {
  display: inline-block;
  transition: color 0s;
}
.ignited .section-h2 .ignite-word {
  animation: wordIgnite 0.8s ease forwards;
}
@keyframes wordIgnite {
  0%   { color: var(--orange); text-shadow: 0 0 20px rgba(245,120,10,0.8); }
  60%  { color: var(--orange2); text-shadow: 0 0 8px rgba(245,120,10,0.3); }
  100% { color: var(--blue); text-shadow: none; }
}

/* Rocket trail smoke */
#rocket-trail {
  position: fixed;
  right: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
}
.trail-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  animation: trailFade 1.2s ease forwards;
}
@keyframes trailFade {
  0%   { opacity: 0.7; width: 3px; height: 3px; }
  40%  { opacity: 0.3; width: 2px; height: 2px; }
  100% { opacity: 0; width: 1px; height: 1px; }
}

/* Rocket ignition burst */
#rocket-burst {
  position: fixed;
  z-index: 1001;
  pointer-events: none;
  width: 60px;
  height: 60px;
  right: 5px;
  top: 80px;
  transition: top 0.08s linear;
  display: none;
  opacity: 0;
}
#rocket-burst.fire {
  display: block;
  animation: burstFade 0.5s ease forwards;
}
@keyframes burstFade {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.5); }
}

/* Skyline section content reveal - slides in from left on ignition */
.skyline-content {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateX(-40px);
}
.skyline-content.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Section label ignition sweep */
.section-label-wrap {
  overflow: hidden;
  position: relative;
}
.section-label-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,120,10,0.15), transparent);
  transition: none;
}
.ignited .section-label-wrap::after {
  animation: labelSweep 0.8s ease forwards 0.1s;
}
@keyframes labelSweep {
  from { left: -100%; }
  to   { left: 200%; }
}

/* Services grid ignition - orange border flash */
.services-grid.grid-ignited {
  animation: gridFlash 0.6s ease forwards;
}
@keyframes gridFlash {
  0%   { border-color: rgba(245,120,10,0.6); box-shadow: 0 0 20px rgba(245,120,10,0.15); }
  100% { border-color: rgba(45,140,255,0.1); box-shadow: none; }
}

/* About timeline ignition - items slide in faster */
.ignited .tl-item {
  animation: none !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease !important;
}

/* Contact section ignition glow */
#contact.ignited .contact-info h2,
#contact.ignited .section-label {
  animation: contactIgnite 0.6s ease forwards;
}
@keyframes contactIgnite {
  0%   { opacity: 0.3; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════ */
/* SPLASH / LOADING SCREEN                     */
/* ═══════════════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111f44;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: all;
  /* Fade out after 5s */
  animation: splashFadeOut 0.8s ease 5s forwards;
}

#splash.gone {
  display: none;
}

@keyframes splashFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* Scanline texture on splash */
#splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,115,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,115,232,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Radial glow behind portrait */
#splash::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,120,10,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.splash-portrait {
  position: relative;
  z-index: 1;
  width: clamp(220px, 32vw, 400px);
  filter: drop-shadow(0 0 40px rgba(245,120,10,0.2))
          drop-shadow(0 0 80px rgba(45,140,255,0.1));
  opacity: 0;
  transform: translateY(20px);
  animation: splashPortraitIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}

@keyframes splashPortraitIn {
  to { opacity: 1; transform: translateY(0); }
}

.splash-wordmark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  opacity: 0;
  animation: splashWordmarkIn 0.8s ease 0.9s forwards;
}

@keyframes splashWordmarkIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.splash-acronym {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 9vw, 100px);
  letter-spacing: 20px;
  text-transform: uppercase;
  color: #e8edf5;
  line-height: 1;
  /* Subtle orange underline */
  border-bottom: 1px solid rgba(245,120,10,0.6);
  padding-bottom: 8px;
}

.splash-fullname {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(15px, 2vw, 22px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #86a3be;
  text-align: center;
  margin-top: 4px;
}

.splash-tagline {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #f5780a;
  text-align: center;
  margin-top: 8px;
  opacity: 0;
  animation: splashWordmarkIn 0.8s ease 1.4s forwards;
}

/* Progress bar that fills over 5 seconds */
.splash-progress-track {
  width: clamp(280px, 40vw, 420px);
  height: 2px;
  background: rgba(45,140,255,0.15);
  z-index: 1;
  margin-top: 8px;
}

.splash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f5780a, #5aa8ff);
  width: 0%;
  animation: splashProgress 5s linear 0.5s forwards;
}

@keyframes splashProgress {
  to { width: 100%; }
}

.splash-progress-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  letter-spacing: 4px;
  color: rgba(134,163,190,0.96);
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
  opacity: 0;
  animation: splashWordmarkIn 0.5s ease 1s forwards;
  margin-top: 28px;
}

/* Nav badge image replaces the orange AT box */
/* Nav badge handled in nav-logo block above */

/* ─── HERO PHOTO ─── */
#hero-photo-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 68%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

#hero-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0;
  animation: fadeIn 1.4s ease 0.8s forwards;
  mix-blend-mode: screen;
  filter: brightness(0.9) contrast(1.05) saturate(1.1);
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 100%);
}

/* ─── SME PHOTO IN SKYLINE SECTION ─── */
#sme-photo-wrap {
  position: absolute;
  right: 0;
  top: 80px;
  bottom: 0;
  width: 65%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
#sme-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: lighten;
  filter: brightness(0.95) contrast(1.05) saturate(1.0);
  opacity: 0;
  transition: opacity 1.2s ease;
  mask-image: linear-gradient(to right, transparent 0%, black 14%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%, black 100%);
}
#sme-photo.revealed {
  opacity: 1;
}

/* ── Fixed Moon ───────────────────────────────────────── */
#moon-fixed {
  position: fixed;
  top: 170px;        /* just below the 120px nav badge */
  left: 8px;
  width: 110px;
  height: 110px;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
#moon-fixed.moon-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════ */

/* ─── MOBILE RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Skyline: show static on mobile — disable sticky parallax */
  #skyline-section { height: 50vh !important; overflow: hidden !important; padding: 0 !important; }
  #skyline-stage   { position: relative !important; height: 50vh !important; }

  /* About photo frame: reasonable height, no overflow */
  .about-photo-frame { aspect-ratio: 3 / 4; max-height: 320px; }
  .about-photo-placeholder { width: 140px; height: 140px; }
  .about-photo-placeholder svg { width: 80px; height: 80px; }

  /* Hide fixed overlay elements that overlap content on mobile */
  #rocket-rail, #nav-dots, #moon-fixed,
  #rocket-burst, #rocket-trail { display: none !important; }

  /* Clip nav badge to nav height */
  .nav-logo { overflow: hidden; }

  /* Nav */
  #nav { padding: 0 16px; }
  .nav-name { font-size: clamp(13px, 3.8vw, 17px) !important; white-space: normal; line-height: 1.2; }

  /* Hero */
  #space { padding: 80px 24px 40px; }
  .hero-content { max-width: 100%; padding-right: 0; }
  .hero-h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-cta { width: 100%; justify-content: center; }

  /* Section padding */
  #services { padding: 48px 24px 40px; }
  #about    { padding: 48px 24px 48px; grid-template-columns: 1fr !important; gap: 40px; }
  #contact  { padding: 48px 24px 48px; grid-template-columns: 1fr !important; gap: 40px; }

  /* Services → single column */
  .services-grid { grid-template-columns: 1fr !important; }

  /* About: copy first, photo below */
  .about-copy       { order: 1; }
  .about-photo-wrap { order: 2; max-width: 260px; margin: 0 auto; }

  /* Contact: first/last name stack */
  .f-row { grid-template-columns: 1fr; }

  /* Trust badges: 2×2 grid */
  .trust-badges { gap: 8px; }
  .trust-badge  { flex: 1 1 calc(50% - 8px); min-width: 0; }

  /* Footer */
  footer { flex-direction: column; gap: 8px; padding: 24px; text-align: center; }

  /* Splash — prevent horizontal overflow on narrow viewports */
  #splash { overflow: hidden; padding: 0 20px; box-sizing: border-box; }
  .splash-portrait   { width: clamp(160px, 52vw, 280px); }
  .splash-acronym    { font-size: clamp(52px, 16vw, 100px); letter-spacing: 10px; }
  .splash-fullname   { font-size: 13px; letter-spacing: 3px; padding: 0 8px; }
  .splash-tagline    { font-size: 11px; letter-spacing: 2px; padding: 0 8px; line-height: 1.6; }
  .splash-progress-track { width: 100%; }
  .splash-progress-label { font-size: 12px; letter-spacing: 3px; }
}


/* ─── ACCESSIBILITY UTILITIES ───────────────────────────────────────────────
   Added 2026-09-06 after a WCAG 2.1 AA audit. See ADA-ACCESSIBILITY-REMEDIATION.md
   in the atcs_ai_services folder for the full finding list. */

/* WCAG 2.4.1 Bypass Blocks. Without this a keyboard user tabs the whole nav on
   every page load before reaching content. */
.skip-link {
  /* position:fixed, not absolute. With absolute, tabbing after the page has
     been scrolled put this at the top of the *document* — off screen and
     invisible, which fails 2.4.7 Focus Visible while appearing to pass. */
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--orange);
  color: #fff;
  padding: 12px 20px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

/* Clears the 80px fixed nav rather than landing on top of the badge logo at
   the top-left corner. Top-left is the convention, but only where nothing is
   already sitting there. */
.skip-link:focus {
  left: 16px;
  top: 92px;
}

@media (max-width: 768px) {
  .skip-link:focus {
    left: 12px;
    top: 84px;
  }
}

/* Available to assistive technology, absent from the visual design. Not
   display:none, which would remove it from the accessibility tree entirely. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* WCAG 2.2.2 Pause, Stop, Hide. The hero SVG carries ~150 elements running
   twinkle and winBlink on infinite loops. Those are inline style attributes,
   so !important is doing real work here and is not optional. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
