:root {
  color-scheme: dark;
  --panel-black: #090a08;
  --panel: #171812;
  --panel-2: #222219;
  --panel-3: #2d2c22;
  --paper: #f3edd8;
  --muted: #c5bea3;
  --dim: rgba(243, 237, 216, 0.68);
  --line: rgba(221, 212, 182, 0.2);
  --line-strong: rgba(221, 212, 182, 0.34);
  --green: #35ff4f;
  --green-deep: #0f7a28;
  --amber: #f0b84f;
  --red: #d45d4c;
  --steel: #77705d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(243, 237, 216, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #070806 0%, #11120d 42%, #0b0c09 100%);
  background-size: 28px 28px, auto;
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.65rem 0.85rem;
  background: var(--green);
  color: #071008;
  font-weight: 850;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem clamp(1rem, 4vw, 3.4rem);
  background: rgba(9, 10, 8, 0.88);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.brand,
.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.72rem;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  width: clamp(12rem, 22vw, 17rem);
  height: 2.55rem;
  object-fit: contain;
}

.brand-mark {
  display: block;
  width: 2.55rem;
  aspect-ratio: 1;
  filter: drop-shadow(0 0 10px rgba(53, 255, 79, 0.2));
}

.brand-name,
.footer-brand {
  font-weight: 850;
  letter-spacing: 0;
}

.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-nav {
  gap: clamp(0.75rem, 2.4vw, 1.4rem);
  color: var(--dim);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav a,
.site-footer a {
  text-decoration-color: transparent;
  text-underline-offset: 0.28em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 28rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 84svh;
  padding: clamp(8rem, 13vh, 10rem) clamp(1rem, 5vw, 4rem) clamp(4rem, 8vh, 6rem);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 8, 6, 0.96) 0%,
      rgba(7, 8, 6, 0.82) 37%,
      rgba(7, 8, 6, 0.48) 65%,
      rgba(7, 8, 6, 0.72) 100%
    ),
    radial-gradient(circle at 72% 28%, rgba(53, 255, 79, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(7, 8, 6, 0.3), rgba(7, 8, 6, 0.84));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 5rem clamp(0.8rem, 4vw, 3rem) auto;
  z-index: 2;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(53, 255, 79, 0.86),
    rgba(240, 184, 79, 0.56) 34%,
    transparent
  );
  box-shadow: 0 0 18px rgba(53, 255, 79, 0.16);
  opacity: 0.78;
  pointer-events: none;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(53, 255, 79, 0.08), transparent 44%),
    #050704;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  filter: saturate(1.04) contrast(1.08);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 58rem;
}

.hero-systems {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 0.85rem;
  align-self: end;
  padding: 1rem 1rem 1rem 1.15rem;
  border-left: 2px solid rgba(53, 255, 79, 0.48);
  border-top: 1px solid rgba(243, 237, 216, 0.13);
  border-bottom: 1px solid rgba(243, 237, 216, 0.13);
  background:
    linear-gradient(90deg, rgba(5, 8, 5, 0.58), rgba(5, 8, 5, 0.2)),
    linear-gradient(180deg, rgba(53, 255, 79, 0.08), transparent 50%);
  backdrop-filter: blur(5px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.hero-systems::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -2px;
  width: 2px;
  background: var(--green);
  box-shadow: 0 0 22px rgba(53, 255, 79, 0.42);
  pointer-events: none;
}

.hud-label {
  margin: 0;
  color: var(--amber);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hud-core {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.05;
}

.hud-list {
  position: relative;
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0.1rem 0 0 1.05rem;
  list-style: none;
}

.hud-list::before {
  content: "";
  position: absolute;
  top: 0.46rem;
  bottom: 0.48rem;
  left: 0.32rem;
  border-left: 1px dashed rgba(53, 255, 79, 0.5);
}

.hud-list li {
  position: relative;
  display: grid;
  gap: 0.08rem;
  padding-left: 0.55rem;
}

.hud-list li::before {
  content: "";
  position: absolute;
  left: -0.92rem;
  top: 0.38rem;
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid var(--green);
  background: #071008;
  box-shadow: 0 0 14px rgba(53, 255, 79, 0.24);
}

.hud-list strong {
  color: var(--green);
  font-size: 0.92rem;
  line-height: 1.16;
}

.hud-list span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.28;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--amber);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 1rem;
  overflow-wrap: normal;
  color: var(--paper);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.25rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  color: var(--paper);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  color: var(--paper);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 49rem;
  margin-bottom: 0.8rem;
  color: var(--green);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 850;
}

.hero-sublede {
  max-width: 50rem;
  color: var(--dim);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.mission {
  max-width: 51rem;
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(53, 255, 79, 0.34);
  border-left: 7px solid var(--green);
  border-radius: 5px;
  background: #0d120b;
  color: var(--paper);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 780;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green);
  color: #071008;
  box-shadow: 0 0 24px rgba(53, 255, 79, 0.2);
}

.button-secondary {
  border-color: var(--line-strong);
  background: #11120d;
  color: var(--paper);
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem);
}

#portfolio,
#flight-rules,
#contact {
  scroll-margin-top: 7.25rem;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.split,
.stance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(18rem, 0.76fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.split p,
.stance-list p,
.section-heading p,
.contact-panel p,
.disclosure-grid p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1rem;
}

.intro-band {
  border-block: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(240, 184, 79, 0.08), transparent 46%),
    var(--panel);
}

.section-heading {
  display: grid;
  gap: 0.2rem;
  max-width: 50rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading.compact {
  max-width: 42rem;
  margin-bottom: 1.8rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.project-card {
  position: relative;
  grid-column: span 3;
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 0.82rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(243, 237, 216, 0.055), transparent 42%),
    var(--panel);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(53, 255, 79, 0.12);
  border-radius: inherit;
  opacity: 0.46;
  pointer-events: none;
  animation: cardSignal 8s ease-in-out infinite;
}

.project-card:hover,
.project-card:focus-within {
  border-color: rgba(53, 255, 79, 0.34);
  box-shadow: 0 26px 82px rgba(0, 0, 0, 0.34), 0 0 28px rgba(53, 255, 79, 0.08);
  transform: translateY(-2px);
}

.project-card:nth-child(5) {
  grid-column: 2 / span 4;
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.58rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0d0e0b;
  color: var(--paper);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.panel-label span {
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.panel-label b {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
}

.screen-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid #070806;
  border-radius: 4px;
  background: #060704;
  box-shadow: inset 0 0 0 1px rgba(221, 212, 182, 0.12);
  aspect-ratio: 1.58;
}

.screen-frame::before {
  content: "";
  position: absolute;
  inset: -18% -55%;
  z-index: 2;
  background: linear-gradient(
    100deg,
    transparent 33%,
    rgba(53, 255, 79, 0.12) 47%,
    rgba(240, 184, 79, 0.1) 50%,
    transparent 64%
  );
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-38%) skewX(-12deg);
  animation: frameSweep 7.4s ease-in-out infinite;
}

.screen-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 7px,
    rgba(243, 237, 216, 0.035) 7px 8px
  );
  animation: scanlineDrift 11s linear infinite;
  pointer-events: none;
}

.screen-frame img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  filter: saturate(0.82) contrast(1.08);
  animation: screenPan 14s ease-in-out infinite alternate;
  transition: transform 260ms ease, filter 260ms ease;
}

.project-card:hover .screen-frame img {
  filter: saturate(0.98) contrast(1.12);
  transform: scale(1.075) rotateX(1.4deg) rotateY(-1.8deg);
}

.project-copy {
  padding: 0 0.25rem 0.25rem;
}

.project-kicker {
  margin-bottom: 0.35rem;
  color: var(--amber);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy p:not(.project-kicker) {
  color: var(--muted);
}

.flight-rules {
  border-block: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(53, 255, 79, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(212, 93, 76, 0.08), transparent 44%),
    var(--panel-2);
}

.stance-list {
  display: grid;
  gap: 1rem;
}

.contact-panel {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 2px solid rgba(53, 255, 79, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(53, 255, 79, 0.12), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow);
}

.contact-panel h2,
.contact-panel p {
  max-width: 52rem;
}

.contact-panel .button {
  margin-top: 0.8rem;
}

.contact-email {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--green);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  text-underline-offset: 0.24em;
  overflow-wrap: anywhere;
}

.disclosures {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.disclosure-grid p {
  min-height: 100%;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.site-footer {
  border-top: 2px solid var(--line);
  background: #070806;
  color: var(--muted);
  padding: 1.3rem clamp(1rem, 5vw, 4rem);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-brand {
  color: var(--paper);
}

.site-footer nav {
  gap: 1rem;
  font-size: 0.9rem;
}

.legal-hero {
  padding: 8.5rem clamp(1rem, 5vw, 4rem) 3rem;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(240, 184, 79, 0.1), transparent 38%),
    var(--panel);
}

.legal-hero .section-inner,
.legal-content {
  max-width: 840px;
}

.legal-hero h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 5.4rem);
}

.legal-content {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem);
}

.legal-content h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.06;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content a {
  color: var(--green);
  text-underline-offset: 0.2em;
}

@keyframes screenPan {
  from {
    object-position: 48% 48%;
  }
  to {
    object-position: 54% 52%;
  }
}

@keyframes cardSignal {
  0%,
  100% {
    opacity: 0.2;
  }
  42% {
    opacity: 0.62;
  }
  53% {
    opacity: 0.34;
  }
}

@keyframes frameSweep {
  0%,
  20% {
    opacity: 0;
    transform: translateX(-38%) skewX(-12deg);
  }
  32% {
    opacity: 0.92;
  }
  50%,
  100% {
    opacity: 0;
    transform: translateX(38%) skewX(-12deg);
  }
}

@keyframes scanlineDrift {
  to {
    background-position: 0 24px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 9rem;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 8, 6, 0.92), rgba(7, 8, 6, 0.72)),
      radial-gradient(circle at 65% 20%, rgba(53, 255, 79, 0.14), transparent 40%);
  }

  .hero-systems {
    max-width: 38rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .split,
  .stance-grid {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .disclosure-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card:nth-child(5) {
    grid-column: auto;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .brand-logo {
    width: min(14rem, calc(100vw - 6.3rem));
  }

  .site-nav {
    gap: 0.6rem;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(2.55rem, 11.8vw, 3.45rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-video {
    object-position: 58% center;
  }

  .hero-systems {
    padding: 0.9rem 0.85rem 0.9rem 1rem;
  }

  .panel-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-label b {
    text-align: left;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
