/*
  Implementation checklist

  [x] 1. Create clean standalone mag-new.html prototype shell.
  [x] 2. Write the wireframe/frame scroll animation plan into this file.
  [x] 3. Add temporary full-screen scroll-scrub prototype for the wireframe section.
  [x] 4. Upgrade the first viewport into a cinematic full-bleed MAG hero.
  [x] 5. Prepare the frame-sequence image pipeline and swap the wireframe section to canvas frames.
  [x] 6. Build video capability panels.
  [x] 7. Add mission-stage section.
  [x] 8. Add leadership / our team section.
  [x] 9. Add final contact section and responsive polish.

  MAG wireframe/frame scroll animation plan

  Signature interaction:
  Turn the build/wireframe footage into an immersive full-screen scroll-controlled sequence where the platform
  moves from technical concept to mission-ready vessel.

  Final target:
  1. Export the chosen wireframe/build source into 80-160 compressed WebP/JPEG frames.
  2. Preload an initial batch so the first interaction feels instant.
  3. Draw frames to a sticky full-viewport canvas based on scroll progress.
  4. Keep the visible experience nearly chrome-free: no metadata cards, no copy blocks, no stage panel.
  5. Add a reduced-motion fallback that shows a strong poster frame.
  6. Use this as the centerpiece between the cinematic hero and capability sections.

  This implementation uses the exported Build 1 JPG frames in a full-screen canvas sequence. The original
  Build 1 movie remains as a fallback reference, but the signature interaction is now frame-accurate.
*/

:root {
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.68);
  --dim: rgba(244, 241, 234, 0.42);
  --black: #030504;
  --panel: rgba(8, 12, 11, 0.74);
  --line: rgba(244, 241, 234, 0.16);
  --accent: #7cffbc;
  --warning: #d8b36a;
  --max: 1180px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(124, 255, 188, 0.10), transparent 28rem),
    linear-gradient(180deg, #050706 0%, #030504 46%, #090b09 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.18) 0,
    rgba(255, 255, 255, 0.18) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(3, 5, 4, 0.92), rgba(3, 5, 4, 0.35));
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 172px;
}

.brand-logo {
  display: block;
  width: clamp(138px, 13vw, 178px);
  height: auto;
  filter: invert(1) brightness(1.45) contrast(1.08);
  opacity: 0.94;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.nav a:hover {
  color: var(--ink);
}

.nav-login {
  margin-left: clamp(18px, 4vw, 58px);
  padding: 10px 14px;
  border: 1px solid rgba(244, 241, 234, 0.22);
  color: var(--ink);
  background: rgba(3, 5, 4, 0.34);
  line-height: 1;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-login:hover {
  border-color: rgba(124, 255, 188, 0.58);
  background: rgba(124, 255, 188, 0.10);
  color: var(--accent);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.menu-toggle {
  position: relative;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(244, 241, 234, 0.20);
  background: rgba(3, 5, 4, 0.40);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.menu-toggle span:nth-child(1) {
  top: 13px;
}

.menu-toggle span:nth-child(2) {
  top: 20px;
}

.menu-toggle span:nth-child(3) {
  top: 27px;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  padding: 8px;
  border: 1px solid rgba(244, 241, 234, 0.16);
  background:
    linear-gradient(180deg, rgba(9, 12, 10, 0.98), rgba(3, 5, 4, 0.98)),
    rgba(3, 5, 4, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-menu a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.10);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobile-menu a:last-child {
  border-bottom: 0;
  color: var(--accent);
}

.mobile-menu a::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.site-header.is-menu-open .menu-toggle {
  border-color: rgba(124, 255, 188, 0.46);
  background: rgba(124, 255, 188, 0.10);
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.site-header.is-menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header) + 9vh) clamp(20px, 4vw, 56px) 8vh;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
  filter: saturate(0.9) contrast(1.12) brightness(0.78);
  z-index: -3;
  animation: heroMediaIn 900ms ease-out both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.90) 0%, rgba(3, 5, 4, 0.58) 34%, rgba(3, 5, 4, 0.10) 78%),
    linear-gradient(0deg, rgba(3, 5, 4, 0.92) 0%, rgba(3, 5, 4, 0) 42%);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: 24%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(124, 255, 188, 0.9), transparent);
  animation: scan 2.6s 0.25s ease-out forwards;
  z-index: -1;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  animation: contentRise 640ms 120ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(72px, 15vw, 196px);
  line-height: 0.82;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-claim {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18em;
  max-width: 980px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 86px);
  line-height: 0.92;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-claim span {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: wordReveal 700ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.hero-claim span:nth-child(1) {
  animation-delay: 260ms;
}

.hero-claim span:nth-child(2) {
  animation-delay: 360ms;
}

.hero-claim span:nth-child(3) {
  animation-delay: 460ms;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 241, 234, 0.92);
}

.hero-copy {
  max-width: 610px;
  margin: 26px 0 34px;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.22;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-top: clamp(34px, 7vh, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-meta-item {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.hero-meta-item:last-child {
  border-right: 0;
}

.hero-meta-label {
  display: block;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-meta-value {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--black);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--black);
}

.scroll-sequence {
  position: relative;
  min-height: 430svh;
  background: #030504;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sequence-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.sequence-frame-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000 url("../Content/Wireframe/Build_1__001.jpg") center / cover no-repeat;
}

.sequence-canvas,
.sequence-fallback-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: grayscale(0.1) contrast(1.18) brightness(0.86);
  transform: scale(calc(1.015 + (var(--sequence-progress, 0) * 0.025)));
  transform-origin: center;
}

.sequence-canvas {
  display: block;
}

.sequence-fallback-video {
  display: none;
}

.sequence-frame-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 44%, rgba(0, 0, 0, 0.36) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 22%, transparent 70%, rgba(0, 0, 0, 0.46));
  z-index: 1;
  pointer-events: none;
}

.sequence-frame-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 9px
  );
  mix-blend-mode: overlay;
  opacity: 0.18;
  z-index: 2;
  pointer-events: none;
}

.mission {
  position: relative;
  padding: clamp(82px, 12vw, 160px) clamp(20px, 4vw, 56px);
  background:
    linear-gradient(180deg, #030504 0%, #07100c 48%, #030504 100%),
    radial-gradient(circle at 12% 22%, rgba(124, 255, 188, 0.10), transparent 28rem);
  border-bottom: 1px solid var(--line);
}

.mission-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.mission-media {
  position: sticky;
  top: calc(var(--header) + 28px);
  min-height: min(74svh, 680px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050706;
  isolation: isolate;
}

.mission-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  filter: saturate(0.82) contrast(1.18) brightness(0.72);
  transition: opacity 240ms ease, filter 240ms ease;
  z-index: -3;
}

.mission-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 5, 4, 0.10), rgba(3, 5, 4, 0.88)),
    linear-gradient(90deg, rgba(3, 5, 4, 0.28), rgba(3, 5, 4, 0.04));
}

.mission-media::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(124, 255, 188, 0.24);
  pointer-events: none;
}

.mission-media-content {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 42px);
}

.mission-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 8vw, 118px);
  line-height: 0.88;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-readout span {
  border: 1px solid rgba(244, 241, 234, 0.14);
  padding: 9px 11px;
  background: rgba(3, 5, 4, 0.44);
}

.mission-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.mission-step {
  appearance: none;
  width: 100%;
  padding: clamp(24px, 4vw, 42px) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, padding-left 180ms ease;
}

.mission-step:hover,
.mission-step:focus-visible,
.mission-step.is-active {
  color: var(--ink);
  padding-left: 18px;
}

.mission-step:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.mission-step-index {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-step-title {
  display: block;
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-step-copy {
  display: block;
  max-width: 440px;
  margin-top: 14px;
  color: currentColor;
  font-size: 16px;
  line-height: 1.45;
}

.capabilities {
  padding: clamp(82px, 12vw, 160px) clamp(20px, 4vw, 56px);
  background:
    linear-gradient(180deg, rgba(3, 5, 4, 1), rgba(8, 11, 10, 0.96)),
    radial-gradient(circle at 82% 16%, rgba(124, 255, 188, 0.10), transparent 28rem);
  border-bottom: 1px solid var(--line);
}

.capabilities-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.capabilities-heading {
  max-width: 860px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.capabilities-heading h2 {
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
}

.capabilities-heading p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.38;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-panel {
  position: relative;
  min-height: clamp(360px, 45vw, 540px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #070908;
  color: var(--ink);
  isolation: isolate;
}

.capability-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  filter: saturate(0.78) contrast(1.2) brightness(0.68);
  transform: scale(1.04);
  transition: opacity 260ms ease, filter 260ms ease, transform 700ms ease;
  z-index: -3;
}

.capability-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 5, 4, 0.10), rgba(3, 5, 4, 0.84)),
    linear-gradient(90deg, rgba(3, 5, 4, 0.74), rgba(3, 5, 4, 0.15));
}

.capability-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(244, 241, 234, 0.14);
  opacity: 0.48;
  transition: border-color 220ms ease, opacity 220ms ease;
  pointer-events: none;
}

.capability-panel:hover video,
.capability-panel:focus-within video {
  opacity: 0.76;
  filter: saturate(0.96) contrast(1.18) brightness(0.78);
  transform: scale(1);
}

.capability-panel:hover::after,
.capability-panel:focus-within::after {
  opacity: 1;
  border-color: rgba(124, 255, 188, 0.42);
}

.capability-content {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 42px);
}

.capability-title {
  max-width: 560px;
  margin: auto 0 0;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 0.94;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-copy {
  max-width: 470px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.capability-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 24px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.capability-link::after {
  content: "";
  width: 34px;
  height: 1px;
  margin-left: 12px;
  background: currentColor;
  transition: width 180ms ease;
}

.capability-panel:hover .capability-link::after,
.capability-panel:focus-within .capability-link::after {
  width: 52px;
  color: var(--accent);
}

.team {
  position: relative;
  padding: clamp(82px, 12vw, 160px) clamp(20px, 4vw, 56px);
  background:
    linear-gradient(180deg, rgba(8, 11, 10, 0.96), rgba(3, 5, 4, 1)),
    radial-gradient(circle at 16% 12%, rgba(216, 179, 106, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(124, 255, 188, 0.08), transparent 24rem);
  border-bottom: 1px solid var(--line);
}

.team-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.team-heading {
  max-width: 900px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.team-heading h2 {
  margin: 0;
  font-size: clamp(46px, 7.2vw, 94px);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
}

.team-heading p {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.38;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.team-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 5, 4, 0.46);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.team-card:hover {
  background: rgba(10, 15, 13, 0.78);
  border-color: rgba(124, 255, 188, 0.26);
  transform: translateY(-4px);
}

.team-photo {
  position: relative;
  aspect-ratio: 1 / 0.92;
  margin: 0;
  overflow: hidden;
  background: #050706;
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 48%, rgba(3, 5, 4, 0.42)),
    linear-gradient(90deg, rgba(3, 5, 4, 0.22), transparent 42%);
  pointer-events: none;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08) brightness(0.92);
  transform: scale(1.02);
  transition: transform 700ms ease, filter 260ms ease;
}

.team-card:hover .team-photo img {
  filter: saturate(1) contrast(1.12) brightness(0.98);
  transform: scale(1);
}

.team-card[data-member="steve"] .team-photo img {
  object-position: 50% 42%;
}

.team-card[data-member="tyler"] .team-photo img {
  object-position: 50% 34%;
}

.team-card[data-member="nathan"] .team-photo img {
  object-position: 50% 38%;
}

.team-content {
  display: flex;
  min-height: 330px;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(22px, 3vw, 34px);
}

.team-role {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-name {
  margin: 14px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.94;
  font-weight: 900;
  text-transform: uppercase;
}

.team-bio {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.contact {
  position: relative;
  padding: clamp(78px, 11vw, 150px) clamp(20px, 4vw, 56px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(3, 5, 4, 0.98) 0%, rgba(12, 14, 12, 0.96) 64%, rgba(3, 5, 4, 1) 100%),
    radial-gradient(circle at 12% 18%, rgba(124, 255, 188, 0.10), transparent 30rem);
  border-bottom: 1px solid var(--line);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(244, 241, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, 0.08) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 72%);
  mask-image: linear-gradient(90deg, black 0%, transparent 72%);
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, var(--max));
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  margin: 0 auto;
}

.contact-copy-block,
.contact-form {
  min-width: 0;
}

.contact-copy-block h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.94;
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.contact-copy-block > p {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.42;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(34px, 5vw, 60px) 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.contact-detail {
  min-height: 92px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.025);
}

.contact-detail dt {
  margin: 0;
  color: var(--dim);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-detail dd {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-detail a {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.065), rgba(244, 241, 234, 0.025)),
    rgba(3, 5, 4, 0.72);
  border: 1px solid rgba(244, 241, 234, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 9px;
}

.field span {
  color: var(--dim);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(244, 241, 234, 0.20);
  border-radius: 0;
  background: rgba(3, 5, 4, 0.52);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  outline: 0;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field input {
  min-height: 50px;
  padding: 0 14px;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
  padding: 14px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(124, 255, 188, 0.66);
  background: rgba(8, 12, 11, 0.86);
  box-shadow: 0 0 0 3px rgba(124, 255, 188, 0.08);
}

.contact-submit {
  width: fit-content;
  margin-top: 4px;
  cursor: pointer;
}

.site-footer {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 4vw, 56px) clamp(28px, 5vw, 52px);
  background:
    linear-gradient(180deg, #030504 0%, #070908 100%),
    radial-gradient(circle at 78% 8%, rgba(124, 255, 188, 0.09), transparent 24rem);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer-cta {
  max-width: 900px;
  padding-bottom: clamp(42px, 7vw, 86px);
  border-bottom: 1px solid var(--line);
}

.footer-cta h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.92;
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
}

.footer-cta p {
  max-width: 620px;
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.42;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(2, minmax(180px, 0.48fr)) minmax(240px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(34px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  display: block;
  width: 172px;
  height: auto;
  filter: invert(1) brightness(1.45) contrast(1.08);
  opacity: 0.94;
}

.footer-summary {
  max-width: 360px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.footer-column h3,
.footer-identity h3 {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-column a,
.footer-identity a {
  display: block;
  width: fit-content;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  transition: color 180ms ease;
}

.footer-column a:hover,
.footer-identity a:hover {
  color: var(--ink);
}

.footer-identity p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes scan {
  0% {
    opacity: 0;
    transform: translateY(-18vh);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(48vh);
  }
}

@keyframes heroMediaIn {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  100% {
    opacity: 0.64;
    transform: scale(1);
  }
}

@keyframes contentRise {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 780px) {
  :root {
    --header: 68px;
  }

  .nav {
    display: none;
  }

  .menu-toggle,
  .mobile-menu {
    display: block;
  }

  .hero {
    align-items: center;
  }

  .hero-claim {
    font-size: clamp(30px, 13vw, 58px);
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-meta-item:last-child {
    border-bottom: 0;
  }

  .mission-inner {
    grid-template-columns: 1fr;
  }

  .mission-media {
    position: relative;
    top: auto;
    min-height: 560px;
  }

  .capabilities-heading,
  .capability-grid,
  .team-grid,
  .contact-inner,
  .contact-details,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .capability-panel {
    min-height: 420px;
  }

  .team-content {
    min-height: auto;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .sequence-canvas,
  .sequence-fallback-video {
    transform: none;
  }
}
