/* Super Sour Waffles — SSWAF · Military modern / propaganda-adjacent */

:root {
  --black: #0a0a0a;
  --black-elevated: #121212;
  --white: #f5f5f3;
  --white-muted: #a8a8a4;
  --red: #c41e1e;
  --red-glow: rgba(196, 30, 30, 0.35);
  --border: rgba(245, 245, 243, 0.12);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --space: clamp(1rem, 3vw, 2rem);
  --header-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--white);
  background-color: var(--black);
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Film grain */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.97) 0%, rgba(10, 10, 10, 0.88) 60%, transparent 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}

/* Textured plate (SVG) + official bolt PNG from images.evetech.net */
.corp-logo {
  position: relative;
  display: grid;
  place-items: center;
  grid-template: 1fr / 1fr;
  flex-shrink: 0;
  line-height: 0;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.corp-logo-plate,
.corp-logo-bolt {
  grid-area: 1 / 1;
}

.corp-logo-plate {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corp-logo-bolt {
  width: 78%;
  height: 78%;
  object-fit: contain;
  z-index: 1;
}

.corp-logo--header {
  width: 48px;
  height: 48px;
}

.brand:hover .corp-logo {
  box-shadow: 0 0 0 1px var(--red-glow), 0 0 24px var(--red-glow);
  transform: scale(1.02);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-ticker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--red);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--black-elevated);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-of-type {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem var(--space);
    background: var(--black);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) var(--space) 4rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 40%, transparent 95%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
  }
}

.hero-content {
  position: relative;
  max-width: 900px;
}

.hero-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

@media (max-width: 959px) {
  .hero-emblem {
    order: -1;
    max-width: 220px;
    margin: 0 auto;
  }
}

.corp-logo--hero {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  filter: drop-shadow(0 0 40px rgba(196, 30, 30, 0.2));
}

.corp-logo--hero .corp-logo-bolt {
  width: 76%;
  height: 76%;
}

.hero-emblem-caption {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.hero-classified {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin: 0 0 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--red);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.hero-line {
  display: block;
}

.hero-line-accent {
  color: var(--black);
  background: var(--white);
  padding: 0 0.12em 0.06em 0.08em;
  box-decoration-break: clone;
  width: fit-content;
  box-shadow: 8px 8px 0 var(--red);
}

.hero-tagline {
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--white-muted);
  max-width: 32ch;
}

.hero-tagline strong {
  color: var(--white);
  font-weight: 600;
}

.ticker {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stripe {
  position: absolute;
  right: -20%;
  top: 20%;
  width: 45%;
  height: 120%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    var(--red-glow) 35%,
    transparent 70%
  );
  transform: skewX(-12deg);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: #e02424;
  border-color: #e02424;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--white-muted);
  background: rgba(245, 245, 243, 0.05);
}

.btn-large {
  padding: 1.1rem 2.25rem;
  font-size: 0.8rem;
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) var(--space);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

/* Mission */
.mission-body {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .mission-body {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.propaganda-quote {
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 4px solid var(--red);
  background: var(--black-elevated);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
  font-style: normal;
}

.propaganda-quote em {
  font-style: normal;
  color: var(--red);
}

.mission-text {
  margin: 0;
  color: var(--white-muted);
}

/* Doctrine */
.doctrine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doctrine-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.doctrine-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.doctrine-id {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--black);
  background: var(--white);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
}

.doctrine-list h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.doctrine-list p {
  margin: 0;
  color: var(--white-muted);
  font-size: 1rem;
}

/* Ship loadouts (EVEShip.fit) */
.loadouts {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.loadouts-header {
  margin-bottom: 2rem;
}

.loadouts-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.06em;
}

.loadouts-lead {
  margin: 0;
  max-width: 65ch;
  color: var(--white-muted);
}

.loadouts-lead a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 0.2em;
}

.loadouts-lead a:hover {
  color: var(--red);
}

.loadout-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .loadout-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.loadout-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--border);
  background: var(--black-elevated);
  border-left: 3px solid var(--red);
}

.loadout-class {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.loadout-ship {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
}

.loadout-desc {
  margin: 0 0 1.25rem;
  flex: 1;
  color: var(--white-muted);
  font-size: 0.95rem;
}

.loadout-btn {
  align-self: flex-start;
}

/* Command */
.command-kb {
  margin: -1rem 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.command-kb a {
  color: var(--red);
  text-decoration: none;
}

.command-kb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.command-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.command-card--featured {
  grid-column: 1 / -1;
}

/* Large CEO left · three compact stacked right */
@media (min-width: 800px) {
  .command-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
    grid-template-rows: repeat(3, auto);
    align-items: stretch;
  }

  .command-card--featured {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .command-card--compact:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .command-card--compact:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .command-card--compact:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
  }
}

.command-card {
  padding: 0;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--black-elevated) 0%, var(--black) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.command-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  z-index: 1;
}

.command-portrait {
  display: block;
  object-fit: contain;
  object-position: center center;
  background: var(--black-elevated);
  filter: grayscale(0.12) contrast(1.06);
  image-rendering: auto;
}

/* CEO: large square portrait on top (matches previous “standard” cards) */
.command-card--featured .command-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-height: min(73.6vw, 576px);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

/* Command row: compact horizontal strip like the old CEO card */
.command-card--compact {
  flex-direction: row;
  align-items: stretch;
}

.command-card--compact .command-portrait {
  width: 145px;
  height: 145px;
  flex-shrink: 0;
  align-self: center;
  border-right: 1px solid var(--border);
  border-bottom: none;
}

.command-card-body {
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.command-card--compact .command-card-body {
  padding: 1.1rem 1.25rem 1.1rem 1rem;
}

.command-card--compact .command-name {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.command-card--compact .command-note {
  font-size: 0.9rem;
}

@media (max-width: 599px) {
  .command-card--compact {
    flex-direction: column;
  }

  .command-card--compact .command-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-height: min(93.5vw, 462px);
    align-self: stretch;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .command-card--compact .command-card-body {
    padding: 1.35rem 1.35rem 1.35rem 1.2rem;
  }
}

.command-rank {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 0.75rem;
}

.command-name {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.command-note {
  margin: 0;
  color: var(--white-muted);
  font-size: 1rem;
}

/* Enlist */
.enlist {
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.enlist-panel {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(196, 30, 30, 0.08) 0%, transparent 45%),
    var(--black-elevated);
  position: relative;
  overflow: hidden;
}

.enlist-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.enlist-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.06em;
}

.enlist-panel > p:first-of-type {
  margin: 0 0 2rem;
  color: var(--white-muted);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.enlist-fineprint {
  margin: 2rem 0 0;
  font-size: 0.75rem;
  color: var(--white-muted);
  opacity: 0.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--space);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--red);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}
