/* ============================================================
   ASGARD AEROSPACE EUROPE — DESIGN SYSTEM
   ============================================================ */

:root {
  /* base palette */
  --bg-void:      oklch(11% 0.008 250);
  --bg-base:      oklch(14% 0.010 250);
  --bg-panel:    oklch(17% 0.010 250);
  --bg-raised:   oklch(21% 0.010 250);
  --bg-hover:    oklch(25% 0.011 250);

  --line:        oklch(28% 0.010 250);
  --line-strong: oklch(40% 0.012 250);
  --line-faint:  oklch(20% 0.010 250);

  --text-hi:     oklch(95% 0.004 250);
  --text:        oklch(82% 0.006 250);
  --text-dim:    oklch(62% 0.008 250);
  --text-faint:  oklch(45% 0.010 250);

  /* accents */
  --accent:      oklch(72% 0.14 235);   /* electric blue */
  --accent-hi:   oklch(82% 0.12 235);
  --accent-dim:  oklch(52% 0.12 235);
  --signal:      oklch(84% 0.14 78);    /* signal amber, used sparingly */
  --alert:       oklch(68% 0.19 22);    /* used for problem state */

  /* type */
  --f-display: "Archivo", "Inter Tight", system-ui, sans-serif;
  --f-body:    "Inter Tight", "Inter", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  /* spacing */
  --w-max: 1440px;
  --pad:   clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-void); color: var(--text); font-family: var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: hidden; font-size: 15px; line-height: 1.55; letter-spacing: -0.003em; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg-void); }

/* utility */
.mono { font-family: var(--f-mono); font-feature-settings: "ss01"; letter-spacing: 0; }
.display { font-family: var(--f-display); letter-spacing: -0.025em; line-height: 0.95; font-weight: 500; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.rule { height: 1px; background: var(--line); width: 100%; }
.rule-v { width: 1px; background: var(--line); }

/* section container */
.shell { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad); position: relative; }
section { position: relative; }

/* --------- nav --------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  backdrop-filter: blur(14px);
  background: color-mix(in oklch, var(--bg-void) 82%, transparent);
  border-bottom: 1px solid var(--line-faint);
  transition: background 0.25s;
}
.nav-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand .mark { width: 26px; height: 26px; }
.nav-brand .name {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 15px;
  color: var(--text-hi);
}
.nav-brand .sub {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--text-hi); border-bottom-color: var(--accent); }
.nav-cta {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bg-void);
  background: var(--text-hi);
  padding: 10px 16px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hi); }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* --------- buttons --------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--text-hi);
  background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--bg-raised); border-color: var(--accent); color: var(--text-hi); }
.btn.primary { background: var(--text-hi); color: var(--bg-void); border-color: var(--text-hi); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn .arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* --------- section chrome --------- */
.sec-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-bottom: 56px;
}
.sec-head .sec-id {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 6px;
}
.sec-head .sec-id strong { color: var(--text-hi); font-weight: 500; }
.sec-head h2 {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  color: var(--text-hi);
  max-width: 22ch;
}
.sec-head .lede {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 58ch;
  margin-top: 18px;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
}

.sec-pad { padding: 120px 0; }

/* technical coordinate label */
.coord {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* hairline card */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 28px;
  position: relative;
}
.card-ornate::before, .card-ornate::after {
  content: ""; position: absolute; width: 8px; height: 8px;
  border: 1px solid var(--accent);
}
.card-ornate::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.card-ornate::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* kpi stat */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .n { font-family: var(--f-display); font-size: clamp(32px, 4vw, 48px); line-height: 1; color: var(--text-hi); font-weight: 500; letter-spacing: -0.02em; }
.stat .n small { font-family: var(--f-mono); font-size: 13px; color: var(--text-dim); margin-left: 6px; letter-spacing: 0; text-transform: uppercase; }
.stat .l { font-family: var(--f-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 0.14em; text-transform: uppercase; }

/* grid bg pattern */
.grid-bg {
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--line) 60%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--line) 60%, transparent) 1px, transparent 1px);
  background-size: 80px 80px;
}

.scanline::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px);
  pointer-events: none;
}

/* tag / pill */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-dim);
  padding: 4px 8px;
  border: 1px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag.on { color: var(--accent); border-color: var(--accent); }
.tag.hq { color: var(--signal); border-color: color-mix(in oklch, var(--signal) 40%, var(--line)); }

/* blinker */
@keyframes blink { 0%, 65% { opacity: 1; } 75%, 100% { opacity: 0.2; } }
.blink { animation: blink 1.6s infinite; }

/* subtle entrance */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp 0.9s cubic-bezier(.2,.7,.2,1) both; }

/* marquee for partners/capabilities */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------- hero --------- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed hero with map as dominant visual */
.hero-bleed {
  padding: 0;
  min-height: 100vh;
  background: var(--bg-void);
}
.hero-map-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-map-layer .net-svg {
  position: absolute;
  top: 50%;
  left: 28%;
  transform: translate(0, -50%);
  width: 85%;
  height: 110%;
  min-width: 1000px;
}
/* Left-side fade so headline copy stays legible over the map */
.hero-map-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      oklch(11% 0.008 250 / 0.98) 0%,
      oklch(11% 0.008 250 / 0.92) 22%,
      oklch(11% 0.008 250 / 0.55) 42%,
      oklch(11% 0.008 250 / 0.15) 60%,
      oklch(11% 0.008 250 / 0) 80%);
}
.hero-map-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 60% 50%, transparent 40%, oklch(8% 0.008 250 / 0.85) 100%);
}

.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 80% 20%, oklch(16% 0.015 245 / 0.5), transparent 45%),
    radial-gradient(circle at 10% 80%, oklch(15% 0.018 235 / 0.4), transparent 50%),
    var(--bg-void);
}
.hero-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 0%, transparent 80%);
}
.hero-bleed .hero-inner {
  position: relative;
  z-index: 2;
  display: block;
  padding: 140px 0 80px;
}
.hero-bleed .hero-copy {
  max-width: 620px;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; width: 100%; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text-hi);
  margin: 20px 0 28px;
}
.hero-bleed h1 {
  font-size: clamp(52px, 7.2vw, 104px);
  line-height: 0.96;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero .sub {
  color: var(--text-dim);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 64px; border-top: 1px solid var(--line); padding-top: 24px;
  max-width: 620px;
}
.hero-meta > div { padding-right: 16px; }
.hero-meta-val {
  font-family: var(--f-display);
  font-size: 17px;
  color: var(--text-hi);
  margin-top: 6px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .hero-map-layer .net-svg { left: 15%; opacity: 0.55; }
  .hero-map-fade { background: linear-gradient(180deg, oklch(11% 0.008 250 / 0.7), oklch(11% 0.008 250 / 0.92)); }
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero-bleed .hero-inner { padding: 120px 0 60px; }
}

/* --------- footer --------- */
.ftr {
  border-top: 1px solid var(--line);
  background: var(--bg-base);
  padding: 80px 0 32px;
  margin-top: 120px;
}
.ftr h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.025em;
  color: var(--text-hi);
  max-width: 22ch;
  line-height: 1;
}
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-top: 60px; }
.ftr-col h5 { font-family: var(--f-mono); font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; }
.ftr-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ftr-col a { font-size: 14px; color: var(--text); }
.ftr-col a:hover { color: var(--accent); }
.ftr-bottom {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em;
}
@media (max-width: 900px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}

/* --------- scroll indicator --------- */
.scroll-ind {
  position: absolute;
  bottom: 32px; left: var(--pad);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.scroll-ind .line-anim { width: 40px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-ind .line-anim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  animation: scanl 2.4s linear infinite;
}
@keyframes scanl { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* --------- scroll reveal --------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
