/* BLCKWNG homepage. Colours and lighting rules follow the brand kit v1. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Expanded";
  src: url("/fonts/archivo-bold-112.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --void: #0A0B0C;
  --deep: #050606;
  --charcoal: #15171A;
  --line: #1C1F22;
  --graphite: #2A2E33;
  --ash: #8A9096;
  --mist: #B9BFC4;
  --bone: #E9ECEC;
  --rule-light: #C5CACD;
  --ink-soft: #3A3F44;
  --core: #F2FFFD;
  --ghost: #A8F0E6;
  --edge: #BFF5EC;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Archivo", system-ui, sans-serif;
  --display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--edge); }
a:focus-visible { outline: 2px solid var(--edge); outline-offset: 3px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .wrap { padding-inline: 2rem; }
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bone);
  color: var(--void);
}
.skip:focus { left: 0.5rem; }

/* Header */

.top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) { .top { padding-inline: 2rem; } }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark { width: 28px; height: auto; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav a { display: inline-block; padding: 0.5rem 0; }

/* Hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  padding-block: 4rem 6rem;
}

.hero-text {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-mark {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.eyebrow, .label {
  margin: 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow { color: var(--edge); }
.label { color: var(--ash); }

.wordmark { margin: 0; line-height: 0; }
.wordmark img { width: min(100%, 560px); height: auto; }

.lede {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  line-height: 1.35;
}

.sub {
  margin: 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--mist);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.5rem;
  border: 1px solid var(--graphite);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-solid { background: var(--bone); color: var(--void); border-color: var(--bone); }
.btn-solid:hover { background: var(--core); color: var(--void); }

.mark { width: min(100%, 360px); height: auto; overflow: visible; }

@media (max-width: 640px) {
  .hero { gap: 2rem; padding-block: 2rem 4rem; }
  .hero-mark { order: -1; flex-basis: 100%; justify-content: flex-start; }
  .mark { width: 150px; }
}

/* Research band */

.band { background: var(--bone); color: var(--void); }
.band .wrap { padding-block: 5rem; }
.band .label { color: var(--ink-soft); }

.section-lede {
  margin: 1rem 0 2.5rem;
  max-width: 24ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-light); }
.areas li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-light);
}
.area-id { flex: 0 0 4rem; font-family: var(--mono); font-size: 0.875rem; color: var(--ink-soft); }
.areas h3 {
  flex: 1 1 260px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
}
.areas p { flex: 2 1 360px; margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }

/* Sections */

.section { padding-block: 5rem; border-top: 1px solid var(--line); }
.band + .section { border-top: 0; }

.now {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding: 2rem;
  border: 1px solid var(--graphite);
  background: var(--deep);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: flex-start;
  padding: 0.625rem 1rem;
  border: 1px solid var(--graphite);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--edge);
}
.throbber { width: 22px; height: auto; }

.now-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 1rem; }
.now-text h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  line-height: 1.2;
}
.now-text p { margin: 0; max-width: 60ch; line-height: 1.6; color: var(--mist); }
.text-link { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.06em; color: var(--edge); }

.about { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; }
.about-lede {
  flex: 1 1 320px;
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.4;
}
.about p:not(.about-lede) { flex: 1 1 360px; margin: 0; line-height: 1.7; color: var(--mist); }

/* Footer */

.footer { border-top: 1px solid var(--line); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}

/* Mark lighting: one sweep on load, then rest on the signature state. */

.spar, .blade { fill: var(--bone); }
.lit { fill: var(--core); }
.glow { fill: var(--ghost); opacity: 0; }

.blade { animation: pass 1.4s ease-out both; }
.glow { animation: flare 1.4s ease-out both; }
.b4, .g4 { animation-delay: 0.3s; }
.b3, .g3 { animation-delay: 0.55s; }
.b2, .g2 { animation-delay: 0.8s; }
.b1 { animation: ignite 1.4s ease-out 1.05s both; }
.g1 { animation: flare-hold 1.4s ease-out 1.05s both, breathe 6s ease-in-out 2.6s infinite; }

@keyframes pass { 0% { fill: var(--graphite); } 35% { fill: var(--core); } 100% { fill: var(--bone); } }
@keyframes ignite { 0% { fill: var(--graphite); } 35%, 100% { fill: var(--core); } }
@keyframes flare { 0%, 100% { opacity: 0; } 35% { opacity: 1; } }
@keyframes flare-hold { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0.85; } }
@keyframes breathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.55; } }

/* Throbber: scan, one blade at a time, bottom to top. */

.p { fill: var(--graphite); animation: scan 1.6s linear infinite; }
.k4 { animation-delay: 0s; }
.k3 { animation-delay: 0.4s; }
.k2 { animation-delay: 0.8s; }
.k1 { animation-delay: 1.2s; }
@keyframes scan { 0%, 20% { fill: var(--core); } 25%, 100% { fill: var(--graphite); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blade, .glow, .b1, .g1, .p { animation: none; }
  .b1 { fill: var(--core); }
  .g1 { opacity: 0.85; }
  .k3, .k4 { fill: var(--core); }
}
