/* INBUI — laboratory bulletin */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-latin-ext.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ground: #0b0c11;
  --panel: #14161e;
  --panel-2: #10121a;
  --line: #394052;
  --line-strong: #444c60;
  --text: #eef1f6;
  --muted: #a3abbd;
  --faint: #7b8396;
  --blue: #2f45ff;
  --blue-deep: #2236e0;
  --blue-light: #a9b6ff;
  --on-blue: #ffffff;
  --on-blue-soft: #dfe4ff;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --logo: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --space-section: clamp(88px, 11vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--ground);
  scrollbar-width: thin;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--mono);
  font-stretch: 75%;
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--blue);
}

::selection { background: var(--blue); color: var(--on-blue); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 2px solid var(--ground); border-radius: 6px; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 2px;
}

.ico { width: 0.95em; height: 0.95em; flex: none; vertical-align: -0.1em; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--blue); color: var(--on-blue); padding: 10px 14px; text-decoration: none;
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.skip:focus { top: 16px; }

.wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 28px) var(--gutter) 0;
}

/* ---------- shared atoms ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.frame {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  overflow: hidden;
}
.frame img { width: 100%; border-radius: 1px; }

.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  min-height: 44px;
  padding: 0.7em 1.15em;
  font-family: var(--mono);
  font-stretch: 75%;
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  border-radius: 2px;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.btn .ico { transition: transform 220ms var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--frame {
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
}
.btn--frame:hover { border-color: var(--blue-light); background: rgba(47, 69, 255, 0.14); }
.btn--frame[aria-current="true"], .btn--frame[aria-current="page"] { border-color: var(--blue-light); background: rgba(47, 69, 255, 0.2); }
.btn--primary {
  color: var(--on-blue);
  background: var(--blue);
  border: 1px solid var(--blue);
  font-weight: 500;
}
.btn--primary:hover { background: var(--blue-deep); border-color: var(--blue-light); }
.btn--invert {
  color: var(--blue);
  background: var(--on-blue);
  border: 1px solid var(--on-blue);
  font-weight: 500;
}
.btn--invert:hover { background: transparent; color: var(--on-blue); }

.textlink {
  display: inline-flex; align-items: center; gap: 0.6em;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}
.textlink:hover { color: var(--text); }
.textlink .ico { transition: transform 220ms var(--ease); }
.textlink:hover .ico { transform: translate(2px, -2px); }
.textlink[href^="#"]:hover .ico { transform: translateY(2px); }

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 96%;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  max-width: 21ch;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: clamp(1.2rem, 1.6vw, 1.42rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
.h3 a { text-decoration: none; }
.h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.h3--lg { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; letter-spacing: -0.02em; }

.meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.linkrow {
  display: flex; flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.linkrow a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 0.32em;
  text-decoration-thickness: 1px;
}
.linkrow a:hover { color: var(--text); }

/* ---------- wordmark ---------- */

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--text);
  font-family: var(--logo);
  font-weight: 700;
  font-size: 30px;
  line-height: 0.92;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transform-origin: 0 100%;
  transition: transform 620ms var(--ease);
}
.wordmark.is-open { transform: scale(var(--fit, 1)); }
.wm-line { display: block; }
.wm-line--top { display: inline-flex; align-items: baseline; }
.wm-k { display: inline-block; }
.wm-x, .wm-gap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  max-width: 0;
  transition: max-width 620ms var(--ease);
}
.wm-x > span {
  display: inline-block;
  color: var(--muted);
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 360ms var(--ease), transform 520ms var(--ease);
}
.wm-gap { width: 0.26em; }
.wordmark.is-open .wm-x { max-width: var(--w, 6em); }
.wordmark.is-open .wm-gap { max-width: 0.26em; }
.wordmark.is-open .wm-x > span { opacity: 1; transform: none; transition-delay: 90ms; }
.wordmark.is-open .wm-k { color: var(--text); }
.wordmark:hover .wm-x > span, .wordmark:focus-visible .wm-x > span { color: var(--blue-light); }
html:not(.motion) .wordmark,
html:not(.motion) .wm-x,
html:not(.motion) .wm-gap,
html:not(.motion) .wm-x > span { transition-duration: 1ms; }
html:not(.motion) .wm-x > span { transform: none; }

/* ---------- masthead ---------- */

.masthead { padding: 22px clamp(18px, 2.2vw, 30px) 18px; }
.masthead__top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.masthead__id { display: grid; gap: 16px; flex: 1 1 auto; min-width: 0; }
.wm-box { min-width: 0; overflow: clip; overflow-clip-margin: 8px; padding: 4px; margin: -4px; }
.masthead__desc {
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
  padding-bottom: 2px;
}
.masthead__nav {
  display: grid; grid-template-columns: repeat(4, auto); gap: 8px;
  flex: none;
}
.masthead__nav .btn { justify-content: center; }
.masthead__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap;
  padding-top: 15px;
}
.readout {
  display: flex; gap: 6px 16px; flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.readout__clock { color: var(--text); min-width: 11ch; }
.readout__clock::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: var(--blue-light); vertical-align: 0.06em;
}
.motion .readout__clock::before { animation: tick 2s steps(1, end) infinite; }
@keyframes tick { 50% { opacity: 0.25; } }

/* ---------- hero ---------- */

.hero { padding-top: 14px; }

/* the stage: the painting in the dark, lit by a movable lamp; only the blue screens glow on their own */
@property --lamp-r { syntax: "<length>"; inherits: true; initial-value: 260px; }
.stage {
  --lx: 40%;
  --ly: 34%;
  --lamp-r: clamp(190px, 21vw, 330px);
  position: relative;
  padding: 10px;
  height: var(--stage-h, clamp(460px, 64svh, 760px));
  isolation: isolate;
  touch-action: pan-y;
}
.stage__scene {
  position: absolute; inset: 10px;
  overflow: hidden;
  border-radius: 1px;
  background: #07080b;
}
.stage__layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--opx, 50%) var(--opy, 46%);
}
.stage__painting { filter: saturate(0.92); }
.stage__dark {
  position: absolute; inset: 0;
  background: rgba(6, 7, 10, 0.86);
  -webkit-mask-image: radial-gradient(circle var(--lamp-r) at var(--lx) var(--ly), rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.32) 42%, #000 100%);
  mask-image: radial-gradient(circle var(--lamp-r) at var(--lx) var(--ly), rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.32) 42%, #000 100%);
}
.stage__screens--glow { filter: blur(16px) saturate(1.5) brightness(1.15); opacity: 0.85; mix-blend-mode: screen; }
.stage__scrim {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 7, 10, 0.82) 0%, rgba(6, 7, 10, 0) 46%),
    linear-gradient(to right, rgba(6, 7, 10, 0.55) 0%, rgba(6, 7, 10, 0) 48%);
}
.stage__title {
  position: absolute;
  z-index: 2;
  left: clamp(26px, 3.4vw, 52px);
  bottom: clamp(24px, 3vw, 46px);
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--text);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.hero__word { display: block; }
.stage__hud {
  position: absolute; z-index: 2;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.stage__hud span { color: var(--text); margin-right: 10px; }
.stage__hud--fig { top: 26px; left: clamp(26px, 3.4vw, 52px); }
.stage__hud--hint { right: clamp(26px, 3.4vw, 52px); bottom: clamp(26px, 3vw, 46px); transition: opacity 600ms var(--ease); }
.stage__hud--hint.is-done { opacity: 0; }
@media (hover: none) { .stage__hud--hint { display: none; } }
.stage__next {
  position: absolute; z-index: 2;
  top: 18px; right: 18px;
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  background: rgba(16, 18, 26, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.stage__next:hover { border-color: var(--blue-light); background: rgba(47, 69, 255, 0.22); }
.stage__next-label { color: var(--blue-light); }
.stage__next-when { color: var(--muted); }
.stage__next-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-light); }
.motion .stage__next-dot { animation: tick 2s steps(1, end) infinite; }

/* boot: screens flicker on, then the lamp opens */
.motion .stage__screens { animation: boot 900ms steps(1, end) 120ms both; }
.motion .stage__dark { animation: lamp-on 1200ms var(--ease) 650ms both; }
@keyframes boot {
  0% { opacity: 0; } 18% { opacity: 1; } 26% { opacity: 0.15; } 40% { opacity: 1; } 52% { opacity: 0.4; } 64%, 100% { opacity: 1; }
}
@keyframes lamp-on { from { --lamp-r: 0px; } }

.hero__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap;
  padding: 18px 2px 0;
}
.hero__lede {
  color: var(--muted);
  max-width: 70ch;
  font-size: 15px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
figcaption span { color: var(--text); margin-right: 10px; }

/* hero entrance: H1 words land on the width axis after the wordmark decodes */
.motion .hero__word { animation: land 860ms var(--ease) both; }
.motion .hero__word:nth-child(1) { animation-delay: 820ms; }
.motion .hero__word:nth-child(2) { animation-delay: 940ms; }
.motion .hero__word:nth-child(3) { animation-delay: 1060ms; }
@keyframes land {
  0% { opacity: 0; font-stretch: 62%; transform: translateY(0.12em); }
  35% { opacity: 1; }
  100% { opacity: 1; font-stretch: 100%; transform: none; }
}

/* ---------- sections ---------- */

.section { padding-top: var(--space-section); }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(36px, 4.5vw, 60px);
}
.section__note { color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* image reveal: a one-time scan wipe, content visible by default */
.motion .reveal.is-pending img { clip-path: inset(0 0 100% 0); }
.motion .reveal.is-in img { animation: scan 900ms var(--ease) both; }
.motion .reveal.is-in::after {
  content: "";
  position: absolute; left: 8px; right: 8px; top: 8px; bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
  pointer-events: none;
  animation: scanline 900ms var(--ease) both;
}
@keyframes scan { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scanline {
  0% { transform: translateY(-100%); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

/* feature (flagship project) */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 52px);
  align-items: center;
  margin-bottom: clamp(56px, 6vw, 88px);
}
.feature--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.feature--flip > .frame { order: 2; }
.feature__body { display: grid; gap: 16px; justify-items: start; }
.feature__body > p:not(.meta) { max-width: 54ch; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.facts li { border: 1px solid var(--line-strong); border-radius: 2px; padding: 6px 10px; }
.facts strong { color: var(--text); font-weight: 500; margin-right: 4px; }
.facts__live { color: var(--text); border-color: var(--blue-light) !important; }
.facts__live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--blue-light); vertical-align: 0.06em; }
.motion .facts__live::before { animation: tick 2s steps(1, end) infinite; }

/* project grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(24px, 3vw, 44px);
}
.card { display: grid; gap: 13px; align-content: start; justify-items: start; }
.card__media { width: 100%; margin-bottom: 8px; transition: border-color 220ms var(--ease); }
.card__media img { transition: transform 700ms var(--ease), filter 400ms var(--ease); }
.card:hover .card__media { border-color: var(--line-strong); }
.card:hover .card__media img { transform: scale(1.025); }
.card > p:not(.meta) { max-width: 60ch; color: var(--text); }
.card .textlink { margin-top: 4px; }

/* formats */
.formats {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.formats__intro {
  position: sticky; top: 28px;
  display: grid; gap: 22px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.formats__intro > p { color: var(--muted); max-width: 48ch; }
.formats__figure { margin: 10px 0 0; }
.ledger { border-top: 1px solid var(--line); counter-reset: none; }
.ledger__row {
  display: grid; gap: 12px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}
.ledger__row > p:not(.proof) { max-width: 58ch; }
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 4px 9px;
}
.proof { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.proof a { color: var(--blue-light); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
.proof a:hover { color: var(--text); }
.steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 5px 9px;
  background: var(--panel-2);
}
.steps li::before { content: counter(step) " "; color: var(--blue-light); }
.steps li + li { position: relative; margin-left: 14px; }
.steps li + li::after {
  content: ""; position: absolute; left: -15px; top: 50%; width: 12px; border-top: 1px solid var(--line-strong);
}

/* partners index */
.index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line);
}
.index li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms var(--ease);
}
.index li:hover { background: var(--panel); }
.index__name {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 86%;
  word-spacing: 0.06em;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.index__proj { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: right; flex: none; max-width: 46%; }

/* ---------- contact: the blue screen ---------- */

.bsod {
  margin-top: var(--space-section);
  background: var(--blue);
  color: var(--on-blue);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 88px) clamp(22px, 6vw, 96px) clamp(28px, 4vw, 56px);
  display: grid;
  gap: 22px;
  justify-items: start;
}
.bsod ::selection { background: var(--on-blue); color: var(--blue); }
.bsod a:focus-visible { outline-color: var(--on-blue); }
.bsod__face {
  font-family: var(--display);
  font-weight: 300;
  font-stretch: 100%;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.bsod__title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0;
  text-wrap: balance;
}
.bsod__text { max-width: 58ch; color: var(--on-blue-soft); font-size: 15.5px; font-weight: 400; }
.bsod__progress { font-size: 15.5px; font-weight: 400; }
.bsod__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 8px; }
.bsod__mail {
  font-size: 15px; font-weight: 400; color: var(--on-blue);
  text-underline-offset: 0.3em; text-decoration-thickness: 1px;
}
.bsod__foot {
  width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 40px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12.5px; letter-spacing: 0.02em; color: var(--on-blue-soft);
}
.bsod__foot strong { color: var(--on-blue); font-weight: 500; }
.bsod__foot address { text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.7; }
.cursor {
  display: inline-block; width: 0.62em; height: 1.05em; margin-left: 6px;
  background: var(--on-blue); vertical-align: -0.2em;
}
.motion .cursor { animation: blink 1.1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- footer ---------- */

.footer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  padding: clamp(56px, 8vw, 112px) 0 clamp(28px, 3vw, 44px);
}
.wordmark--xl { font-size: clamp(3.2rem, 9.5vw, 8.5rem); line-height: 0.9; }
.footer__meta {
  display: grid; gap: 12px; justify-items: end; text-align: right;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.footer__meta .linkrow { justify-content: flex-end; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .masthead__top { flex-direction: column; align-items: stretch; }
  .masthead__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip > .frame { order: 0; }
  .formats { grid-template-columns: 1fr; }
  .formats__intro { position: static; }
  .formats__figure { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .masthead__id { flex-direction: column; align-items: flex-start; gap: 16px; }
  .wordmark { font-size: 26px; }
  .masthead__desc { font-size: 13.5px; }
  .masthead { padding-top: 18px; }
  .masthead__top { gap: 20px; padding-bottom: 16px; }
  .masthead__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .masthead__nav .btn { min-height: 42px; padding-block: 0.55em; }
  .masthead__bottom { padding-top: 12px; }
  .masthead__bottom .linkrow { display: none; }
  .readout { gap: 4px 12px; font-size: 11px; }
  .grid { grid-template-columns: 1fr; }
  .index { grid-template-columns: 1fr; }
  .index__proj { max-width: 50%; }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .footer__meta { justify-items: start; text-align: left; }
  .footer__meta .linkrow { justify-content: flex-start; }
  .wordmark--xl { font-size: clamp(3rem, 17vw, 5rem); }
  .stage { --lamp-r: clamp(150px, 42vw, 240px); }
  .stage__hud--fig { display: none; }
  .stage__next { top: 14px; left: 14px; right: auto; max-width: calc(100% - 28px); gap: 4px 8px; padding: 6px 9px; font-size: 11px; }
  .stage__next-label { display: none; }
  .stage__title { font-size: clamp(3rem, 14vw, 4.4rem); left: 24px; bottom: 24px; }
  .hero__bar { padding-top: 16px; }
}

@media (max-width: 420px) {
  .masthead { padding: 16px 16px 14px; }
  .masthead__top { gap: 16px; padding-bottom: 14px; }
  .masthead__desc { font-size: 13px; line-height: 1.55; }
  .masthead__nav .btn { min-height: 38px; padding-block: 0.45em; }
  .hero { padding-top: 10px; }
  .hero__lede { font-size: 14px; line-height: 1.6; }
  .btn { font-size: 12.5px; padding: 0.7em 0.95em; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
}

/* Caelestinus plate: a heartbeat trace over the programme mark */
.card__media--pulse { position: relative; }
.pulse { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; }
.pulse path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pulse__base { stroke: #2c3446; stroke-width: 2; }
.pulse__trace { stroke: var(--blue-light); stroke-width: 2.5; stroke-dasharray: 260 1400; stroke-dashoffset: 0; }
.motion .pulse.is-live .pulse__trace { animation: pulse 3.2s linear infinite; }
@keyframes pulse { from { stroke-dashoffset: 260; } to { stroke-dashoffset: -1400; } }

/* ---------- in the news: a live wire ---------- */
.live {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.live.is-live .live__dot { background: var(--blue-light); box-shadow: 0 0 0 0 rgba(169, 182, 255, 0.6); }
.motion .live.is-live .live__dot { animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(169, 182, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(169, 182, 255, 0); } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  appearance: none; cursor: pointer;
  min-height: 36px; padding: 0.45em 0.9em;
  font: inherit; font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line-strong); border-radius: 2px;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--blue-light); }
.chip[aria-pressed="true"] { color: var(--on-blue); background: var(--blue); border-color: var(--blue); }
.chip:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

.wire { border-top: 1px solid var(--line); }
.wire__year {
  font-family: var(--display); font-weight: 800; font-stretch: 86%;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.02em; line-height: 1;
  padding: 30px 0 12px;
  color: var(--text);
}
.wire__item {
  display: grid;
  grid-template-columns: 8ch minmax(0, 1fr) minmax(0, 15rem) 8ch;
  gap: 4px 22px;
  align-items: baseline;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms var(--ease);
}
.wire__item:hover { background: var(--panel); }
.wire__item time { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wire__title {
  font-family: var(--display); font-weight: 600; font-stretch: 92%;
  font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.003em;
  text-decoration: none; color: var(--text);
}
.wire__title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.wire__src { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.wire__kind {
  justify-self: end;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 3px 7px;
}
.wire__item[data-kind="tv"] .wire__kind, .wire__item[data-kind="radio"] .wire__kind, .wire__item[data-kind="podcast"] .wire__kind, .wire__item[data-kind="video"] .wire__kind { color: var(--blue-light); border-color: rgba(169, 182, 255, 0.5); }
.wire__new { margin-left: 8px; font-family: var(--mono); font-stretch: 75%; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--blue-light); vertical-align: 0.1em; }
.wire__item.is-fresh { animation: arrive 700ms var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
html:not(.motion) .wire__item.is-fresh { animation: none; }
.wire__more { margin-top: 26px; }
.wire__empty { padding: 22px 4px; color: var(--muted); border-bottom: 1px solid var(--line); }

@media (max-width: 960px) {
  .wire__item { grid-template-columns: 9ch minmax(0, 1fr) auto; }
  .wire__src { grid-column: 2; grid-row: 2; }
  .wire__kind { grid-column: 3; grid-row: 1; }
}
@media (max-width: 720px) {
  .wire__item { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding: 14px 2px; }
  .wire__item time { grid-column: 1; grid-row: 1; }
  .wire__kind { grid-column: 2; grid-row: 1; justify-self: start; }
  .wire__title { grid-column: 1 / -1; grid-row: 2; }
  .wire__src { grid-column: 1 / -1; grid-row: 3; }
  .live { align-items: flex-start; }
  .live__dot { margin-top: 0.4em; }
}

/* ---------- dated status: upcoming / now / past ---------- */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); flex: none; }
.status--now { color: var(--text); }
.status--now::before { background: var(--blue); box-shadow: 0 0 0 3px rgba(47, 69, 255, 0.35); }
.motion .status--upcoming::before { animation: tick 2s steps(1, end) infinite; }
.status--past { color: var(--muted); }
.status--past::before { background: transparent; border: 1px solid var(--faint); }
.facts__live.is-closed { color: var(--muted); border-color: var(--line-strong) !important; }
.facts__live.is-closed::before { background: var(--faint); animation: none; }

/* ---------- the challenge collector (on the blue screen) ---------- */
.challenge {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 10px;
  max-width: 980px;
}
.challenge__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-blue-soft);
}
.challenge__size { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.challenge__size legend { width: 100%; padding: 0; }
.challenge__size label { position: relative; cursor: pointer; }
.challenge__size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.challenge__size span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0.55em 1.2em;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 2px; color: var(--on-blue);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.challenge__size input:checked + span { background: var(--on-blue); color: var(--blue); }
.challenge__size input:focus-visible + span { outline: 2px solid var(--on-blue); outline-offset: 3px; }
.challenge__size label:hover span { background: rgba(255, 255, 255, 0.14); }
.challenge__size input:checked + span:hover { background: var(--on-blue); }
.field { display: block; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 15px; font-weight: 400; color: var(--on-blue);
  background: rgba(10, 18, 120, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 2px;
  padding: 0.7em 0.85em;
  caret-color: var(--on-blue);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5em; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-blue-soft); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--on-blue); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--on-blue); outline-offset: 2px; border-color: var(--on-blue); background: rgba(10, 18, 120, 0.4); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ffd7a8; border-width: 2px; }
.field__error { display: block; min-height: 1.2em; margin-top: 6px; font-size: 12.5px; color: #ffe3c2; }
.challenge .bsod__progress { grid-column: 1 / -1; margin-top: 4px; }
html:not(.js) .challenge .bsod__progress { display: none; }
.challenge .bsod__actions { grid-column: 1 / -1; margin-top: 0; }
.challenge__note { grid-column: 1 / -1; font-size: 12.5px; color: var(--on-blue-soft); }
.btn--invert { cursor: pointer; font-family: var(--mono); }
@media (max-width: 720px) {
  .challenge { grid-template-columns: 1fr; }
}

/* ---------- news: homepage highlights and the /news/ page ---------- */
.wire--latest .wire__item time { white-space: nowrap; }
.wire--latest .wire__item { grid-template-columns: 12ch minmax(0, 1fr) minmax(0, 15rem) 8ch; }
.news--page { padding-top: clamp(40px, 5vw, 72px); }
.news__back { margin-bottom: 26px; }
.ico--flip { transform: rotate(180deg); }
.textlink:hover .ico--flip { transform: rotate(180deg) translateX(3px); }
.h2--page { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 18ch; }
.news__intro { color: var(--muted); max-width: 70ch; margin: -18px 0 28px; }
.news__cta {
  display: flex; justify-content: space-between; align-items: center; gap: 18px 32px; flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 80px);
  padding: 26px clamp(20px, 3vw, 32px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.news__cta p { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.2; max-width: 40ch; }
@media (max-width: 960px) {
  .wire--latest .wire__item { grid-template-columns: 12ch minmax(0, 1fr) auto; }
}
@media (max-width: 720px) {
  .wire--latest .wire__item { grid-template-columns: auto minmax(0, 1fr); }
  .news__intro { margin-top: -8px; }
}

.footer__ig { justify-content: flex-end; }
.footer__ig-label { color: var(--muted); }
@media (max-width: 720px) { .footer__ig { justify-content: flex-start; } }
