:root {
  --bg: #05060A;
  --surface: #090C14;
  --text: #F4F6FA;
  --muted: #8E96A8;
  --corona: #E2E8F4;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(226, 232, 244, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

html {
  background-color: var(--bg);
  color: var(--text);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-color: rgba(226, 232, 244, 0.26) var(--bg);
}

body {
  min-height: 100svh;
  width: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background: rgba(226, 232, 244, 0.22);
  color: var(--text);
}

/* Pure CSS sparse deep-space starfield (works with JS disabled) */
.starfield-css {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 11% 14%, rgba(244, 246, 250, 0.36) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 24% 32%, rgba(226, 232, 244, 0.28) 50%, transparent 100%),
    radial-gradient(1px 1px at 38% 9%, rgba(244, 246, 250, 0.22) 50%, transparent 100%),
    radial-gradient(1px 1px at 54% 21%, rgba(244, 246, 250, 0.30) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 71% 12%, rgba(226, 232, 244, 0.32) 50%, transparent 100%),
    radial-gradient(1px 1px at 86% 27%, rgba(244, 246, 250, 0.24) 50%, transparent 100%),
    radial-gradient(1px 1px at 16% 62%, rgba(244, 246, 250, 0.20) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 33% 78%, rgba(244, 246, 250, 0.26) 50%, transparent 100%),
    radial-gradient(1px 1px at 61% 68%, rgba(226, 232, 244, 0.22) 50%, transparent 100%),
    radial-gradient(1px 1px at 81% 74%, rgba(244, 246, 250, 0.28) 50%, transparent 100%);
  opacity: 0.84;
}

.starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Full-screen unboxed shell (100% viewport width, no side borders) */
.frame-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Top full-bleed header overlay */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 5rem;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 18px;
  height: 18px;
  background: url("/vecna-icon.svg?v=6") center / contain no-repeat;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.brand-label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text);
}

.header-axis {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.axis-line {
  width: 64px;
  height: 1px;
  background: var(--line-strong);
}

.axis-node {
  width: 5px;
  height: 5px;
  background: var(--corona);
}

.page {
  flex: 1;
  width: 100%;
}

/* Section 1: Full-Viewport 100vw x 100svh Hero */
.hero {
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6.5rem 5rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Full-bleed WebGL2 solar eclipse canvas spanning the entire hero viewport */
.eclipse-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(240px, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 820px;
  text-align: left;
  order: 1;
}

.eclipse-wrap {
  position: relative;
  z-index: 1;
  order: 2;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.eclipse-svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
  animation: coronaPulse 10s ease-in-out infinite;
}

.eclipse-animated .eclipse-svg {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

.headline {
  font-family: "Sora", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2.125rem, 3.25vw, 3.125rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.625rem;
}

.headline-row {
  display: block;
}

.headline-accent {
  color: #CBD5E1;
  position: relative;
}

.subheadline {
  font-size: clamp(1.125rem, 1.35vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(244, 246, 250, 0.84);
  max-width: 56ch;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}

.teaser {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 2.375rem;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  align-items: center;
}

/* Sharp 0px architectural button with shutter sweep */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.9375rem 1.5rem;
  border: 1px solid rgba(244, 246, 250, 0.32);
  background-color: rgba(9, 12, 20, 0.82);
  color: var(--text);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  transition:
    border-color 220ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(226, 232, 244, 0.1);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.cta-label,
.cta-arrow {
  position: relative;
  z-index: 1;
}

.cta-button-sm {
  padding: 0.8125rem 1.375rem;
  font-size: 0.8125rem;
}

.cta-arrow {
  display: inline-block;
  color: var(--corona);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover,
.cta-button:focus-visible {
  border-color: var(--corona);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
  outline: none;
}

.cta-button:hover::before,
.cta-button:focus-visible::before {
  transform: scaleX(1);
}

.cta-button:focus-visible {
  outline: 2px solid var(--corona);
  outline-offset: 4px;
}

.cta-button:hover .cta-arrow,
.cta-button:focus-visible .cta-arrow {
  transform: translateX(4px);
}

/* Section 2: Full-Width Team Section */
.team {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 5.5rem 5rem;
  position: relative;
}

.team-inner {
  width: 100%;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.team-rail {
  padding-top: 0.375rem;
}

.rail-label {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.team-main {
  min-width: 0;
}

.section-rule {
  width: 36px;
  height: 2px;
  background-color: var(--corona);
  margin-bottom: 1.25rem;
}

.team-heading {
  font-family: "Sora", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.875rem;
  max-width: 640px;
  text-wrap: balance;
}

.team-copy {
  font-size: clamp(1.0625rem, 1.22vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(244, 246, 250, 0.82);
  max-width: none;
  margin-bottom: 3rem;
}

/* Unboxed Monochrome Logo Grid */
.logo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 3rem;
  row-gap: 3rem;
  align-items: center;
  margin-bottom: 0;
}

.logo-cell {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.company-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 28px;
  object-fit: contain;
  opacity: 0.86;
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-cell:hover .company-logo {
  opacity: 1;
  transform: translateY(-1px);
}

/* Individual optical balance for authentic SVG aspect ratios */
.logo-amazon {
  height: 28px;
}

.logo-c3ai {
  height: 27px;
}

.logo-bcg {
  height: 26px;
}

.logo-mathworks {
  height: 26px;
}

.logo-docker {
  height: 30px;
}

.logo-adobe,
.logo-adb {
  height: 25px;
  width: auto;
}

.logo-usg-ic {
  height: 58px;
  filter: grayscale(1) brightness(1.38) contrast(1.12);
}

.logo-georgetown {
  height: 28px;
}

.logo-dartmouth {
  height: 23px;
}

.logo-iit {
  height: 30px;
}

.logo-northwestern {
  height: 23px;
}

.team-cta {
  display: flex;
  align-items: center;
}

/* Full-Width Footer */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 1.875rem 5rem 2.25rem;
  position: relative;
}

.footer-inner {
  padding-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-link:hover {
  color: var(--text);
}

/* Sequential Entrance & Solar Corona Keyframes */
.fade-step {
  animation: fadeUp 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.step-1 {
  animation-delay: 0ms;
}

.step-2 {
  animation-delay: 130ms;
}

.step-3 {
  animation-delay: 260ms;
}

.step-4 {
  animation-delay: 390ms;
}

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

@keyframes coronaPulse {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* Tablet layout (<= 1040px, including 768px) */
@media (max-width: 1040px) {
  .site-header {
    padding: 1.25rem 2.5rem;
  }

  .hero {
    padding: 6rem 2.5rem 4rem;
  }

  .team {
    padding: 4rem 2.5rem;
  }

  .site-footer {
    padding: 1.75rem 2.5rem 2rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 1.5rem;
  }

  .headline {
    font-size: clamp(2rem, 3.8vw, 2.75rem);
  }

  .team-inner {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 1.75rem;
  }

  .logo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 2.25rem;
  }

  .span-3,
  .span-4 {
    grid-column: span 2;
  }

  .logo-cell-seal {
    grid-column: span 2;
  }
}

/* Phone layout (<= 680px, including 375px): solar eclipse placed above the text and scaled down */
@media (max-width: 680px) {
  .site-header {
    padding: 1.125rem 1.5rem;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-start;
    padding: 4.5rem 1.5rem 3.5rem;
  }

  .team {
    padding: 3.5rem 1.5rem;
  }

  .site-footer {
    padding: 1.5rem 1.5rem 2rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .eclipse-wrap {
    order: 1;
    max-width: 250px;
    justify-self: center;
  }

  .hero-copy {
    order: 2;
  }

  .headline {
    font-size: clamp(2.0625rem, 8.5vw, 2.5rem);
    margin-bottom: 1.25rem;
  }

  .subheadline {
    font-size: 1.0625rem;
    margin-bottom: 1rem;
  }

  .teaser {
    margin-bottom: 1.875rem;
  }

  .team-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.75rem;
    row-gap: 2rem;
  }

  .span-3,
  .span-4 {
    grid-column: span 1;
  }

  .logo-cell-seal {
    grid-column: span 2;
  }

  .logo-cell {
    padding: 0.25rem 0;
    min-height: 48px;
  }
}

/* Reduced motion: gentle shader animation continues, disable entrance transforms */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .fade-step,
  .eclipse-svg {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .eclipse-animated .eclipse-svg {
    opacity: 0 !important;
  }
}
