/* =========================================================================
   Followap — design system
   Modern heritage / archive. Deep indigo drawn from the original 2000
   wordmark, warm paper, editorial serif display over a clean sans.
   No external dependencies: system font stacks only.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  color-scheme: light;

  /* Brand — sampled from the original Followap wordmark */
  --indigo-950: #100D24;
  --indigo-900: #1B1642;
  --indigo-800: #241D5C;
  --indigo-700: #322876;
  --indigo-600: #3F33A0;
  --indigo-500: #4F41C8;
  --indigo-400: #7266E0;
  --indigo-300: #A79EF0;
  --indigo-100: #E4E0FA;

  /* Presence palette — the states iFollow actually broadcast */
  --presence-available: #2FA36B;
  --presence-busy: #D2493F;
  --presence-away: #D89A2B;
  --presence-offline: #9A96AE;

  /* Surfaces */
  --paper: #FBF9F5;
  --paper-2: #F3EFE6;
  --paper-3: #EAE5D9;
  --surface: #FFFFFF;

  /* Semantic */
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --card: var(--surface);
  --text: #17132F;
  --text-mid: #4A4568;
  --text-dim: #6E6989;
  --brand: var(--indigo-600);
  --brand-hover: var(--indigo-500);
  --on-brand: #FFFFFF;
  --rule: rgba(23, 19, 47, 0.12);
  --rule-strong: rgba(23, 19, 47, 0.24);

  /* Inverted blocks (hero, footer, feature bands) */
  --inv-bg: var(--indigo-900);
  --inv-bg-2: var(--indigo-800);
  --inv-text: #F4F2FB;
  --inv-text-dim: #B3ADD4;
  --inv-rule: rgba(255, 255, 255, 0.14);
  --inv-brand: var(--indigo-300);

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    "Hoefler Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "SFMono-Regular", ui-monospace, "Roboto Mono", Menlo,
    Consolas, "Liberation Mono", monospace;

  /* Fluid scale */
  --step--2: clamp(0.69rem, 0.67rem + 0.09vw, 0.75rem);
  --step--1: clamp(0.83rem, 0.8rem + 0.13vw, 0.91rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.11rem);
  --step-1: clamp(1.2rem, 1.14rem + 0.29vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.34rem + 0.48vw, 1.8rem);
  --step-3: clamp(1.73rem, 1.57rem + 0.76vw, 2.29rem);
  --step-4: clamp(2.07rem, 1.84rem + 1.16vw, 2.91rem);
  --step-5: clamp(2.49rem, 2.14rem + 1.73vw, 3.7rem);
  --step-6: clamp(2.99rem, 2.48rem + 2.53vw, 4.7rem);

  /* Space */
  --gutter: clamp(1.25rem, 0.9rem + 1.7vw, 2.5rem);
  --section-y: clamp(4rem, 2.8rem + 6vw, 8rem);
  --measure: 68ch;
  --wide: 1240px;
  --narrow: 760px;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(23, 19, 47, 0.06),
    0 4px 12px rgba(23, 19, 47, 0.05);
  --shadow-md: 0 2px 4px rgba(23, 19, 47, 0.06),
    0 12px 32px rgba(23, 19, 47, 0.09);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0D0B1C;
    --bg-alt: #14112A;
    --card: #191534;
    --text: #EDEBF7;
    --text-mid: #B6B1D0;
    --text-dim: #8F8AAB;
    --brand: var(--indigo-300);
    --brand-hover: #C4BDF8;
    --on-brand: #14112A;
    --rule: rgba(255, 255, 255, 0.12);
    --rule-strong: rgba(255, 255, 255, 0.24);
    --inv-bg: #07060F;
    --inv-bg-2: #100D24;
    --inv-text: #F4F2FB;
    --inv-text-dim: #A9A3CB;
    --inv-rule: rgba(255, 255, 255, 0.12);
    --inv-brand: var(--indigo-300);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D0B1C;
  --bg-alt: #14112A;
  --card: #191534;
  --text: #EDEBF7;
  --text-mid: #B6B1D0;
  --text-dim: #8F8AAB;
  --brand: var(--indigo-300);
  --brand-hover: #C4BDF8;
  --on-brand: #14112A;
  --rule: rgba(255, 255, 255, 0.12);
  --rule-strong: rgba(255, 255, 255, 0.24);
  --inv-bg: #07060F;
  --inv-bg-2: #100D24;
  --inv-text: #F4F2FB;
  --inv-text-dim: #A9A3CB;
  --inv-rule: rgba(255, 255, 255, 0.12);
  --inv-brand: var(--indigo-300);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- 2. Reset ----------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

img,
svg,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.017em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.16s var(--ease);
}

a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- 3. Layout ---------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: var(--narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}

.section--alt {
  background: var(--bg-alt);
}

.section--inv {
  background: var(--inv-bg);
  color: var(--inv-text);
}

.section--inv h1,
.section--inv h2,
.section--inv h3 {
  color: var(--inv-text);
}

.section--inv a {
  color: var(--inv-brand);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.75rem 1.25rem;
  font-size: var(--step--1);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- 4. Type helpers --------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  flex: none;
}

.section--inv .eyebrow {
  color: var(--inv-text-dim);
}

.display {
  font-size: var(--step-5);
}

.h1 {
  font-size: var(--step-5);
}
.h2 {
  font-size: var(--step-4);
}
.h3 {
  font-size: var(--step-2);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 46ch;
}

.section--inv .lede {
  color: var(--inv-text-dim);
}

.section-head {
  max-width: 58ch;
  margin-bottom: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

.section-head p {
  color: var(--text-mid);
  font-size: var(--step-1);
  margin-top: 1.25rem;
  line-height: 1.55;
}

.section--inv .section-head p {
  color: var(--inv-text-dim);
}

/* ---------- 5. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.btn--ghost {
  border-color: var(--rule-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.section--inv .btn--primary,
.hero .btn--primary {
  background: var(--inv-text);
  color: var(--indigo-900);
}

.section--inv .btn--primary:hover,
.hero .btn--primary:hover {
  background: #fff;
  color: var(--indigo-900);
}

.section--inv .btn--ghost,
.hero .btn--ghost {
  border-color: var(--inv-rule);
  color: var(--inv-text);
}

.section--inv .btn--ghost:hover,
.hero .btn--ghost:hover {
  border-color: var(--inv-text);
  color: var(--inv-text);
}

.btn__arrow {
  transition: transform 0.22s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}

.arrow-link::after {
  content: "→";
  transition: transform 0.22s var(--ease);
}

.arrow-link:hover::after {
  transform: translateX(4px);
}

/* ---------- 6. Header ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

/* Logo — the swoosh from the 2000 wordmark, redrawn as SVG */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex: none;
}

.logo__lockup {
  position: relative;
  display: block;
  padding-top: 0.42em;
  font-family: var(--sans);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1;
  color: inherit;
}

.logo__swoosh {
  position: absolute;
  top: 0;
  right: -0.06em;
  width: 62%;
  height: 0.42em;
  overflow: visible;
  color: var(--brand);
}

.logo__swoosh path {
  fill: currentColor;
}

.logo:hover {
  color: var(--text);
}

.logo:hover .logo__swoosh {
  color: var(--brand-hover);
}

.site-header--inv .logo,
.site-header--inv .logo:hover {
  color: var(--inv-text);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 0.6rem + 1.6vw, 2.25rem);
}

.nav__link {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  position: relative;
  padding-block: 0.35rem;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  color: var(--text);
  padding: 0.5rem 0.9rem;
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--rule);
    font-size: var(--step-0);
  }

  .nav__link::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions .btn {
    display: none;
  }
}

/* ---------- 7. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--inv-bg);
  color: var(--inv-text);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  /* Deep radial lift behind the headline */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 90% at 12% 0%,
      rgba(79, 65, 200, 0.42) 0%,
      transparent 62%
    ),
    radial-gradient(90% 70% at 92% 96%, rgba(114, 102, 224, 0.24) 0%, transparent 60%);
  z-index: -2;
}

/* The swoosh, blown up as an architectural background mark */
.hero__swoosh {
  position: absolute;
  top: 4%;
  left: -14%;
  width: 128%;
  height: auto;
  opacity: 0.13;
  color: var(--indigo-300);
  z-index: -1;
  pointer-events: none;
}

.hero__swoosh path {
  fill: currentColor;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
  padding-block: clamp(4.5rem, 3rem + 8vw, 8.5rem);
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--inv-brand);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}

.hero__eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero h1 {
  font-size: var(--step-6);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin-bottom: 1.75rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--indigo-300);
}

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--inv-text-dim);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.6rem + 2vw, 2rem) clamp(1.5rem, 0.5rem + 3vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--inv-rule);
  max-width: 30rem;
}

@media (min-width: 1180px) {
  .hero__facts {
    grid-template-columns: repeat(4, minmax(0, auto));
    justify-content: start;
    align-items: end;
    max-width: none;
  }
}

.hero__fact dd {
  white-space: nowrap;
}

.hero__fact dt {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inv-text-dim);
  margin-bottom: 0.4rem;
}

.hero__fact dd {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--inv-text);
}

/* ---------- 8. Presence panel (hero visual) ------------------------------ */

.presence {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--inv-rule);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

@media (max-width: 980px) {
  .presence {
    justify-self: start;
  }
}

.presence__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--inv-rule);
}

.presence__title {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inv-text-dim);
}

.presence__chip {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  color: var(--indigo-300);
  border: 1px solid var(--inv-rule);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
}

.presence__list {
  list-style: none;
}

.presence__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.presence__row:last-child {
  border-bottom: 0;
}

.presence__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--presence-offline);
  position: relative;
  transition: background 0.5s var(--ease);
}

.presence__dot[data-state="available"] {
  background: var(--presence-available);
}
.presence__dot[data-state="busy"] {
  background: var(--presence-busy);
}
.presence__dot[data-state="away"] {
  background: var(--presence-away);
}
.presence__dot[data-state="offline"] {
  background: var(--presence-offline);
}

.presence__dot[data-state="available"]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--presence-available);
  opacity: 0;
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.presence__name {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--inv-text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presence__status {
  font-family: var(--mono);
  font-size: var(--step--2);
  color: var(--inv-text-dim);
  flex: none;
  transition: color 0.5s var(--ease);
}

.presence__foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--inv-rule);
  font-size: var(--step--2);
  line-height: 1.5;
  color: var(--inv-text-dim);
}

/* ---------- 9. Marquee / operator wall ----------------------------------- */

.operators {
  border-top: 1px solid var(--inv-rule);
  background: var(--inv-bg-2);
  color: var(--inv-text);
  padding-block: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  overflow: hidden;
}

.operators__label {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--inv-text-dim);
  text-align: center;
  margin-bottom: 1.75rem;
}

.marquee {
  display: flex;
  gap: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 1rem + 3vw, 3.75rem);
  padding-right: clamp(2rem, 1rem + 3vw, 3.75rem);
  flex: none;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.marquee__item {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--inv-text);
  opacity: 0.62;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.marquee__item:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
}

/* ---------- 10. Stats ---------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  background: var(--bg);
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}

.stat__value {
  font-family: var(--serif);
  font-size: var(--step-5);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  display: block;
  margin-bottom: 0.6rem;
}

.stat__value small {
  font-size: 0.5em;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}

.stat__label {
  font-size: var(--step--1);
  color: var(--text-mid);
  line-height: 1.45;
}

.stat__note {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  color: var(--text-dim);
}

/* ---------- 11. Timeline ------------------------------------------------- */

.timeline {
  position: relative;
}

.timeline__rail {
  list-style: none;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 1.5rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
  /* Fade the right edge so a clipped card reads as "more to scroll",
     not as broken layout. */
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
}

.timeline__rail::-webkit-scrollbar {
  height: 6px;
}

.timeline__rail::-webkit-scrollbar-track {
  background: var(--inv-rule);
  border-radius: 100px;
}

.timeline__rail::-webkit-scrollbar-thumb {
  background: var(--indigo-400);
  border-radius: 100px;
}

.tl-item {
  list-style: none;
  flex: none;
  width: clamp(240px, 20vw, 300px);
  scroll-snap-align: start;
  padding: 0 1.75rem 0 0;
  position: relative;
}

.tl-item__marker {
  position: relative;
  height: 2.5rem;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.tl-item__marker::before {
  /* the connecting rail */
  content: "";
  position: absolute;
  left: 0;
  right: -1.75rem;
  top: 50%;
  height: 1px;
  background: var(--inv-rule);
}

.tl-item:last-child .tl-item__marker::before {
  right: 0;
}

.tl-item__dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--inv-bg);
  border: 2px solid var(--indigo-400);
  flex: none;
}

.tl-item--major .tl-item__dot {
  background: var(--indigo-300);
  border-color: var(--indigo-300);
  box-shadow: 0 0 0 5px rgba(167, 158, 240, 0.18);
}

.tl-item__year {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-300);
  margin-bottom: 0.7rem;
}

.tl-item__title {
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--inv-text);
  margin-bottom: 0.7rem;
}

.tl-item__body {
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--inv-text-dim);
  padding-right: 0.5rem;
}

.tl-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: var(--step--2);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo-300);
  text-decoration: none;
}

.tl-item__link::after {
  content: "→";
  transition: transform 0.22s var(--ease);
}

.tl-item__link:hover::after {
  transform: translateX(3px);
}

.timeline__hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inv-text-dim);
}

/* ---------- 12. Cards / grids -------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 2rem);
}

.grid--2 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 800px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.card--link:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__kicker {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.card__title {
  font-size: var(--step-2);
  line-height: 1.15;
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__body {
  color: var(--text-mid);
  font-size: var(--step--1);
  line-height: 1.6;
}

.card--link {
  position: relative;
}

/* Product / capability card */
.cap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.cap__icon {
  width: 44px;
  height: 44px;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.cap__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap__abbr {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.cap__name {
  font-size: var(--step-2);
  line-height: 1.15;
}

.cap__body {
  color: var(--text-mid);
  font-size: var(--step--1);
  line-height: 1.6;
}

.cap__list {
  list-style: none;
  margin-top: 0.35rem;
  display: grid;
  gap: 0.5rem;
}

.cap__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--step--1);
  color: var(--text-mid);
  line-height: 1.5;
}

.cap__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- 13. Pull quote ----------------------------------------------- */

.pullquote {
  margin: 0;
  max-width: 42ch;
}

.pullquote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.32;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.pullquote blockquote::before {
  content: "\201C";
  color: var(--brand);
}

.pullquote blockquote::after {
  content: "\201D";
  color: var(--brand);
}

.pullquote figcaption {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--text-mid);
  line-height: 1.5;
}

.pullquote figcaption strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.section--inv .pullquote blockquote::before,
.section--inv .pullquote blockquote::after {
  color: var(--inv-brand);
}

.section--inv .pullquote figcaption {
  color: var(--inv-text-dim);
  border-top-color: var(--inv-rule);
}

.section--inv .pullquote figcaption strong {
  color: var(--inv-text);
}

/* Split feature: quote beside media */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 1.2rem + 3vw, 4rem);
  align-items: center;
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
}

.figure figcaption {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.05em;
  color: var(--text-dim);
  line-height: 1.5;
}

.section--inv .figure figcaption {
  color: var(--inv-text-dim);
}

.section--inv .figure img {
  border-color: var(--inv-rule);
}

/* ---------- 14. Archive list --------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.filter {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.filter:hover {
  border-color: var(--rule-strong);
  color: var(--text);
}

.filter[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.archive {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.archive__item {
  border-bottom: 1px solid var(--rule);
}

.archive__link {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: clamp(1.4rem, 1rem + 1.2vw, 2rem) 0;
  text-decoration: none;
  color: inherit;
  transition: padding 0.22s var(--ease);
}

.archive__link:hover {
  color: inherit;
  padding-inline: 0.75rem;
}

@media (max-width: 760px) {
  .archive__link {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .archive__link:hover {
    padding-inline: 0;
  }
}

.archive__date {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.archive__title {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.018em;
  transition: color 0.16s var(--ease);
  text-wrap: balance;
}

.archive__link:hover .archive__title {
  color: var(--brand);
}

.archive__excerpt {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--step--1);
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 62ch;
}

.archive__tag {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
  align-self: center;
}

.archive__item.is-hidden {
  display: none;
}

/* ---------- 15. Article -------------------------------------------------- */

.article-head {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2rem, 1.4rem + 2vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

/* The head block already carries generous bottom padding — don't stack a
   full section rhythm on top of it. */
.article-head + .section {
  padding-top: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.article-head h1 {
  font-size: var(--step-4);
  line-height: 1.08;
  max-width: 22ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.article-standfirst {
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--text-mid);
  max-width: 52ch;
  font-style: italic;
}

.prose {
  max-width: var(--measure);
  font-size: var(--step-0);
  line-height: 1.72;
  color: var(--text-mid);
}

.prose > * + * {
  margin-top: 1.4em;
}

.prose h2 {
  font-size: var(--step-2);
  color: var(--text);
  margin-top: 2.6em;
  line-height: 1.2;
}

.prose h3 {
  font-size: var(--step-1);
  color: var(--text);
  margin-top: 2.2em;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose blockquote {
  margin: 2.2em 0;
  padding: 0 0 0 1.75rem;
  border-left: 2px solid var(--brand);
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
}

.prose blockquote cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-style: normal;
  color: var(--text-dim);
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  display: grid;
  gap: 0.6rem;
}

.prose li::marker {
  color: var(--brand);
}

.prose hr {
  margin: 2.8em 0;
}

.prose a {
  text-decoration: underline;
}

.prose .source-note {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-left: 2px solid var(--rule-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--text-dim);
}

.prose .contacts {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  line-height: 1.9;
  color: var(--text-dim);
  white-space: pre-line;
}

/* Article footer nav */
.article-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.article-nav__link {
  background: var(--bg);
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.18s var(--ease);
}

.article-nav__link:hover {
  background: var(--bg-alt);
  color: inherit;
}

.article-nav__dir {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.article-nav__title {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.25;
  color: var(--text);
}

.article-nav__link--next {
  text-align: right;
  align-items: flex-end;
}

@media (max-width: 560px) {
  .article-nav__link--next {
    text-align: left;
    align-items: flex-start;
  }
}

/* ---------- 16. Contact -------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 1.2rem + 3vw, 4.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.field label {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-note {
  font-size: var(--step--2);
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 1rem;
}

.info-block + .info-block {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.info-block h3 {
  font-size: var(--step-1);
  margin-bottom: 0.75rem;
}

.info-block p {
  color: var(--text-mid);
  font-size: var(--step--1);
  line-height: 1.65;
}

/* ---------- 17. Footer --------------------------------------------------- */

.site-footer {
  background: var(--inv-bg);
  color: var(--inv-text);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(2rem, 1.2rem + 3vw, 4rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  border-bottom: 1px solid var(--inv-rule);
}

.footer-brand .logo {
  color: var(--inv-text);
  margin-bottom: 1.25rem;
}

.footer-brand .logo__swoosh {
  color: var(--indigo-300);
}

.footer-brand p {
  color: var(--inv-text-dim);
  font-size: var(--step--1);
  line-height: 1.65;
  max-width: 38ch;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--inv-text-dim);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  color: var(--inv-text);
  text-decoration: none;
  font-size: var(--step--1);
  opacity: 0.82;
  transition: opacity 0.16s var(--ease);
}

.footer-col a:hover {
  opacity: 1;
  color: var(--inv-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
  color: var(--inv-text-dim);
  line-height: 1.7;
}

.footer-bottom p {
  max-width: 62ch;
}

.footer-logo-original {
  width: 118px;
  opacity: 0.9;
  border-radius: var(--radius);
  background: #fff;
  padding: 0.35rem 0.5rem;
}

/* ---------- 18. Misc ----------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
}

.section--inv .badge,
.hero .badge {
  color: var(--inv-brand);
  border-color: var(--inv-rule);
}

.std-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.std-list li {
  list-style: none;
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--text-mid);
  background: var(--card);
}

.section--inv .std-list li {
  border-color: var(--inv-rule);
  color: var(--inv-text-dim);
  background: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .site-header,
  .site-footer,
  .article-nav,
  .filters {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ---------- 19. Film and radio ------------------------------------------ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.video-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
}

.video {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.video__thumb {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--indigo-900);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s var(--ease), transform 0.4s var(--ease);
}

.video:hover .video__thumb {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video:hover .video__thumb img {
  transform: scale(1.03);
  opacity: 0.85;
}

.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  isolation: isolate;
  padding-left: 4px;
}

.video__play::before {
  content: "";
  position: absolute;
  /* Sits behind the glyph: without this it paints over it. */
  z-index: -1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(16, 13, 36, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.video:hover .video__play::before {
  background: var(--indigo-600);
  transform: scale(1.06);
}

.video__play {
  z-index: 1;
}

.video__time {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  font-family: var(--mono);
  font-size: var(--step--2);
  color: #fff;
  background: rgba(16, 13, 36, 0.78);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  z-index: 1;
}

.video__meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.video__kind {
  font-family: var(--mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.video__title {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
}

.video:hover .video__title {
  color: var(--brand);
}

.video__note {
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--text-mid);
}
