@font-face { font-family: "Barlow Condensed"; font-weight: 600; src: url("assets/fonts/barlowcondensed/BarlowCondensed-SemiBold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter"; font-weight: 100 900; src: url("assets/fonts/inter/Inter.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; src: url("assets/fonts/ibmplexmono/IBMPlexMono-Regular.ttf") format("truetype"); font-display: swap; }

:root { --max: 1200px; --pad: 24px; --gap: 18px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); color: var(--soft); -webkit-font-smoothing: antialiased; }
body { font-family: var(--body); font-size: 17px; line-height: 1.6; background: var(--black); }
img { display: block; max-width: 100%; }
a { color: var(--white); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--hot-red); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.label { letter-spacing: .32em; }
.label .r { color: var(--hot-red); }
.display { font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--white); line-height: .92; letter-spacing: .005em; }
.status { display: inline-flex; align-items: center; gap: 10px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hot-red); box-shadow: 0 0 10px var(--hot-red); }
.logo-glow { mix-blend-mode: lighten; }

  /* One type scale for every section. Display sizes step down by role; all body copy is one size. */
  :root {
    --fs-hero: clamp(44px, 7.4vw, 108px);
    --fs-h2: clamp(32px, 4.2vw, 56px);
    --fs-statement: calc(min(100vw - 48px, 1152px) / 39.5); /* Purpose statement fits one line */
    --fs-h3: clamp(24px, 2.2vw, 30px);
    --fs-body: 18px;
    --fs-lede: clamp(18px, 1.6vw, 21px);
    --section-y: 120px;
  }
  /* One continuous black behind the whole page: sections never paint their own background,
     so there are no colour steps between them. Colour comes only from the filaments. */
  html, body { background: var(--black); }
  section, header, footer { position: relative; background: transparent; }
  p, li { font-size: var(--fs-body); }
  .display { text-wrap: balance; }
  .one-line { white-space: nowrap; }
  @media (max-width: 899px) { .one-line { white-space: normal; } :root { --fs-statement: 24px; } }

  /* Neon: a near-white core (highest contrast on the black) inside a Hot Red tube glow.
     Red text keeps the same glow with a pale core so it still reads as lit. */
  .neon { color: var(--white);
    text-shadow: 0 0 1px rgba(255,255,255,.9), 0 0 4px rgba(255,214,206,.55), 0 0 10px rgba(240,36,36,.95),
                 0 0 22px rgba(240,36,36,.75), 0 0 44px rgba(197,18,18,.6), 0 0 80px rgba(143,9,9,.5); }
  .neon .hot, .neon.hot { color: var(--hot-red);
    text-shadow: 0 0 2px rgba(255,140,120,.55), 0 0 12px rgba(240,36,36,.6), 0 0 28px rgba(197,18,18,.5),
                 0 0 56px rgba(143,9,9,.45); }
  .label.neon { color: var(--soft); text-shadow: 0 0 6px rgba(240,36,36,.8), 0 0 16px rgba(197,18,18,.55); }

  /* Light-trail layers: one canvas per section, behind the content, each with its own motion.
     Edges fade to transparent so neighbouring sections blend into the same black. */
  canvas.fil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
               -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%);
                       mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); }
  .layer { position: relative; z-index: 1; }

  /* Hero: from B, Signal */
  .nav { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
  .nav .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; }
  .nav .display { font-size: 24px; letter-spacing: .08em; }
  .hero { min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
  .hero .bg { position: absolute; inset: 0; background: url("assets/bg-s09.jpg") center / cover no-repeat; opacity: .55;
              -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000 35%, transparent 100%);
                      mask-image: radial-gradient(75% 70% at 50% 45%, #000 35%, transparent 100%); }
  .hero-inner { position: relative; z-index: 2; padding: 120px var(--pad) 90px; }
  .hero img { width: min(520px, 80vw); margin: 0 auto; filter: drop-shadow(0 0 60px rgba(240,36,36,.25)); }
  .hero h1 { font-size: var(--fs-hero); margin-top: 8px; }
  .hero .lede { max-width: 820px; margin: 22px auto 0; color: var(--soft); font-size: var(--fs-lede); text-wrap: balance; text-shadow: 0 1px 14px rgba(5,5,5,.95); }
  .hero .label { margin-top: 34px; justify-content: center; color: var(--soft); }
  .scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; width: 1px; height: 56px; background: linear-gradient(var(--signal-red), rgba(197,18,18,0)); }

  /* Section 2, flow: from C, Console */
  .flow { padding: var(--section-y) 0; overflow: hidden; }
  .flow h2 { font-size: var(--fs-h2); margin: 14px 0 50px; }
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--mid);
           background: rgba(5,5,5,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .step { padding: 28px 24px 34px; border-right: 1px solid var(--mid); position: relative; }
  .step:last-child { border-right: 0; }
  .step .n { font-family: var(--mono); color: var(--hot-red); font-size: 13px; letter-spacing: .3em; }
  .step h3 { font-size: var(--fs-h3); margin: 22px 0 10px; }
  .step p { text-wrap: pretty; }
  .step::after { content: ""; position: absolute; top: 34px; right: -6px; width: 11px; height: 11px; border-top: 1px solid var(--signal-red); border-right: 1px solid var(--signal-red); transform: rotate(45deg); background: var(--black); z-index: 1; }
  .step:last-child::after { display: none; }

  /* Section 3, principles: from C, Console */
  .spec { padding: var(--section-y) 0 100px; overflow: hidden; }
  .spec h2 { font-size: var(--fs-h2); margin: 14px 0 0; }
  .sheet { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--mid); margin-top: 40px; }
  .sheet .k { font-family: var(--mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); text-shadow: 0 0 10px var(--black), 0 0 4px var(--black); padding: 26px 0; border-bottom: 1px solid var(--mid); }
  .sheet .k span { color: var(--hot-red); margin-right: 10px; }
  .sheet .k.wide { border-bottom: 0; padding-bottom: 0; grid-column: 1 / -1; }
  .sheet .v { padding: 22px 0 26px; border-bottom: 1px solid var(--mid); font-size: var(--fs-body); line-height: 1.7; text-wrap: pretty; text-shadow: 0 1px 12px rgba(5,5,5,.95); }
  .sheet .v.big { grid-column: 1 / -1; padding-top: 14px; font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--white); font-size: var(--fs-statement); line-height: 1.08; text-wrap: balance; }

  /* Closing: logo from C, stacked lines from B, red last line from A */
  .end { padding: 140px 0; text-align: center; overflow: hidden; }
  .end img { width: min(260px, 56vw); margin: 0 auto 36px; }
  .end .display { font-size: var(--fs-h2); line-height: 1.12; }
  .end .display span { display: block; }
  .end .label { margin-top: 30px; color: var(--soft); }

  /* Footer: wordmark from A */
  footer { border-top: 1px solid var(--mid); padding: 34px 0 40px; }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); flex-wrap: wrap; }
  footer .display { font-size: 24px; letter-spacing: .08em; }

  @media (max-width: 899px) {
    :root { --section-y: 84px; }
    .steps { grid-template-columns: 1fr 1fr; }
    .step:nth-child(2) { border-right: 0; }
    .step:nth-child(-n+2) { border-bottom: 1px solid var(--mid); }
    .step::after { display: none; }
    .sheet { grid-template-columns: 1fr; }
    .sheet .k { border-bottom: 0; padding-bottom: 0; }
  }
  @media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .step { border-right: 0; border-bottom: 1px solid var(--mid); }
    .step:last-child { border-bottom: 0; }
  }

/* Long status labels can wrap while the wordmark keeps its design width. */
.nav .status { min-width: 0; color: var(--soft); }
.status::before { flex: none; }

.missing { min-height: 100vh; display: grid; align-items: center; }
.missing h1 { font-size: var(--fs-h2); margin: 14px 0; }
.missing a { text-decoration: underline; }
