/* =====================================================================
   Mavion — shared design system
   ---------------------------------------------------------------------
   Single source of truth for every page outside the homepage. The home
   page (index.html) carries an identical copy inline for its critical
   path; this file mirrors that system 1:1 and adds the components the
   content-grid / network / info pages need (page heads, filter chips,
   the unified story-card grid). Pull it in with:

     <link rel="stylesheet" href="/mavion.css?v=1" />
     <script src="/mavion-chrome.js?v=1" defer></script>
     <script src="/mavion-cards.js?v=1" defer></script>

   Spec: premium, cinematic, dark-mode editorial. Hierarchy from scale,
   whitespace, and a serif/sans/mono type system — never bright colour.
   ===================================================================== */

/* ════════════════════════ Tokens ════════════════════════ */
:root {
  --bg:         #08090b;   /* the near-black stage          */
  --bg-raised:  #0e0f12;   /* header / footer / live band   */
  --bg-card:    #131419;   /* lifted surfaces, tiles        */
  --line:       rgba(255,255,255,.075);
  --line-2:     rgba(255,255,255,.15);

  --white:      #fafafa;
  --text:       #e6e7ea;   /* summaries / body              */
  --dim:        #9a9ca2;   /* meta, supporting              */
  --dimmer:     #80828a;   /* big numerals, faint stamps (AA contrast) */

  --red:        #ff3b33;   /* breaking / live ONLY          */
  --red-soft:   rgba(255,59,51,.13);
  --blue:       #4c8dff;   /* interactive ONLY              */
  --blue-soft:  rgba(76,141,255,.14);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --rhythm: clamp(60px, 8vw, 116px);
  --radius: 16px;

  --ease: cubic-bezier(.16, 1, .3, 1);     /* expo-out, cinematic */
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ════════════════════════ Reset ════════════════════════ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: rgba(76,141,255,.32); color: #fff; }

.serif { font-family: var(--serif); font-optical-sizing: auto; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.tnum { font-variant-numeric: tabular-nums lining; }

.skip {
  position: fixed; left: 14px; top: -60px; z-index: 200;
  background: var(--blue); color: #04060c; font-weight: 600;
  padding: 10px 16px; border-radius: 10px; transition: top .2s var(--ease-soft);
}
.skip:focus { top: 14px; }

/* faint cinematic vignette + grain, fixed behind everything */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.backdrop::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% -10%, rgba(76,141,255,.05), transparent 60%),
              radial-gradient(100% 100% at 50% 120%, rgba(0,0,0,.5), transparent 55%);
}
.backdrop::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 3px 3px;
}
main, .mast, .foot { position: relative; z-index: 1; }

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

/* ════════════════════════ Masthead ════════════════════════ */
.mast {
  position: sticky; top: 0; z-index: 60;
  transition: background .3s var(--ease-soft), border-color .3s var(--ease-soft), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.mast.is-scrolled {
  background: rgba(11,12,16,.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--line);
}
.mast__inner {
  display: flex; align-items: center; gap: 22px;
  height: 72px;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }
.brand__name { font-family: var(--serif); font-optical-sizing: auto; font-weight: 540; font-size: 1.34rem; letter-spacing: -.01em; color: var(--white); line-height: 1; }
/* Inline section nav retired — the menu button is the nav now (links live
   in the full-screen menu + footer). Kept in DOM for crawlers, hidden in UI. */
.mast__nav { display: none; }
.mast__nav a {
  position: relative; color: var(--dim); font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .11em;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  transition: color .18s var(--ease-soft);
}
.mast__nav a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 1.5px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .24s var(--ease);
}
.mast__nav a:hover, .mast__nav a.is-active { color: var(--white); }
.mast__nav a:hover::after, .mast__nav a.is-active::after { transform: scaleX(1); }
.mast__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.iconbtn {
  width: 40px; height: 40px; border-radius: 9px; color: var(--dim);
  display: grid; place-items: center;
  border: 1px solid var(--line); transition: color .18s, border-color .18s, background .18s;
}
.iconbtn:hover { color: var(--white); border-color: var(--line-2); }
.iconbtn svg { width: 17px; height: 17px; }
.subscribe {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-soft); border: 1px solid rgba(76,141,255,.4); color: #bcd4ff;
  font-size: .8rem; font-weight: 600; padding: 8px 15px; border-radius: 9px;
  transition: background .18s, border-color .18s, transform .12s;
}
.subscribe:hover { background: rgba(76,141,255,.22); border-color: var(--blue); color: #fff; }
.subscribe:active { transform: scale(.97); }
.burger { display: grid; }   /* menu button available on desktop too */

/* mobile nav sheet */
.sheet {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8,9,11,.97); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-soft);
  padding: 26px var(--gutter); overflow-y: auto;
}
.sheet.is-open { opacity: 1; visibility: visible; }
/* menu content centred to the editorial measure on wide screens */
.sheet__top, .sheet__links, .sheet__sub { max-width: var(--wrap); margin-inline: auto; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(26px, 4vw, 44px); }
.sheet__brand img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; }
.sheet__brand .brand__name { font-family: var(--serif); font-optical-sizing: auto; font-weight: 540; font-size: 1.34rem; letter-spacing: -.01em; color: var(--white); }
.sheet__ctrls { display: flex; align-items: center; gap: 10px; }
.sheet__links { display: grid; gap: 2px; }
.sheet__links a {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 460;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem); color: var(--white); padding: 11px 0;
  border-bottom: 1px solid var(--line); letter-spacing: -.01em;
  transition: color .15s, padding-left .2s var(--ease);
}
.sheet__links a:hover { color: #fff; padding-left: 8px; }
/* two-column mega-menu on desktop */
@media (min-width: 900px) { .sheet__links { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 96px); } }
.sheet__sub { margin-top: clamp(26px, 3vw, 38px); display: flex; flex-wrap: wrap; gap: 10px; }
.sheet__sub a {
  font-size: .85rem; font-weight: 500; color: var(--dim);
  border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px;
  transition: color .15s, border-color .15s, background .15s;
}
.sheet__sub a:hover { color: var(--white); border-color: var(--line-2); }

/* ════════════════════════ Shared bits ════════════════════════ */
.kick {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
}
.kick--live { color: var(--red); }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255,59,51,.6); animation: pulse 1.9s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,51,.55); opacity: 1; }
  70%  { box-shadow: 0 0 0 7px rgba(255,59,51,0); opacity: .85; }
  100% { box-shadow: 0 0 0 0 rgba(255,59,51,0); opacity: 1; }
}
.meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .02em;
  color: var(--dim);
}
.meta .sep { color: var(--dimmer); }
.meta .byline { font-family: var(--sans); font-weight: 500; color: var(--text); letter-spacing: 0; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--sans);
  font-size: .62rem; font-weight: 700; letter-spacing: .02em; color: #cdd9ee;
  background: linear-gradient(135deg, #2a3142, #161a24);
  border: 1px solid var(--line-2);
}

/* image frame — single cinematic grade + scrim for the whole site */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, #181b22, #0b0c10); border-radius: 12px; }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.04) brightness(.92);
  transform: scale(1.01);
  transition: transform 1.2s var(--ease), filter .5s var(--ease-soft);
}
a:hover .media img, .card:hover .media img { transform: scale(1.06); filter: saturate(1) contrast(1.04) brightness(1); }

/* section header — chapter index + editorial title + view-all */
.sec { padding-top: var(--rhythm); }
.sec__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 18px; margin-bottom: clamp(26px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line);
}
.sec__index {
  font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dimmer); display: block; margin-bottom: 10px;
}
.sec__index.is-live { color: var(--red); }
.sec__title { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.018em; line-height: 1.04; color: var(--white); }
.sec__more {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: .82rem; font-weight: 500; color: var(--dim);
  padding-bottom: 2px; transition: color .18s, gap .2s var(--ease);
}
.sec__more svg { width: 15px; height: 15px; }
.sec__more:hover { color: var(--blue); gap: 10px; }

/* generic card title */
.ct { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; color: var(--white); letter-spacing: -.012em; line-height: 1.16; transition: color .18s var(--ease-soft); }
a:hover .ct { color: #fff; }
.dek { color: var(--dim); font-size: .92rem; line-height: 1.55; margin-top: 9px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ════════════════════════ Hero (lead + rail) ════════════════════════ */
.hero { padding-top: clamp(26px, 4vw, 52px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(22px, 3vw, 46px); align-items: stretch;
}
.hero__lead {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: clamp(440px, 56vw, 660px); display: flex; align-items: flex-end;
  isolation: isolate; border: 1px solid var(--line);
}
.hero__lead .media { position: absolute; inset: 0; border-radius: 0; }
.hero__lead .media img { filter: saturate(.92) contrast(1.05) brightness(.9); }
.hero__lead:hover .media img { transform: scale(1.055); filter: saturate(1) contrast(1.05) brightness(.98); }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(8,9,11,.95) 0%, rgba(8,9,11,.78) 36%, rgba(8,9,11,.42) 62%, rgba(8,9,11,.5) 100%);
}
.hero__lead.is-breaking::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 2;
  background: var(--red); box-shadow: 0 0 18px rgba(255,59,51,.6);
}
.hero__body { position: relative; z-index: 2; padding: clamp(22px, 3.2vw, 46px); width: 100%; }
.hero__cover { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.hero__cover:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: var(--red-soft); border: 1px solid rgba(255,59,51,.4);
  color: #ff9f9a; font-size: .66rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.hero__title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 480;
  font-size: clamp(2.3rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -.022em;
  color: #fff; margin: 6px 0 0; max-width: 17ch; text-wrap: balance;
}
.hero__dek { font-size: clamp(1rem, 1.2vw, 1.18rem); line-height: 1.55; color: var(--text); margin-top: 16px; max-width: 56ch; }
.hero__meta { margin-top: 22px; }

.hero__rail { display: flex; flex-direction: column; }
.rail__head {
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dimmer); padding-bottom: 14px;
  border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.rail__item {
  display: grid; grid-template-columns: 1fr 104px; gap: 16px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.rail__item:last-child { border-bottom: 0; }
.rail__item .media { aspect-ratio: 4/3; border-radius: 9px; }
.rail__txt .ct { font-size: 1.06rem; margin-top: 9px; }
.rail__txt .meta { margin-top: 11px; }

/* generic card variants (featured rows, grids, latest list) */
.card { display: block; }
.card .media { aspect-ratio: 16/9; margin-bottom: 15px; }
.card .ct { font-size: 1.14rem; }
.card .meta { margin-top: 12px; }
.card--lead .media { aspect-ratio: 16/10; }
.card--lead .ct { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.card--lead .dek { font-size: 1rem; margin-top: 12px; }

.card--h { display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: start; }
.card--h .media { aspect-ratio: 1/1; margin-bottom: 0; border-radius: 10px; }
.card--h .ct { font-size: 1.02rem; }
.card--h .meta { margin-top: 9px; }

/* ════════════════════════ Footer ════════════════════════ */
.foot { margin-top: var(--rhythm); background: var(--bg-raised); border-top: 1px solid var(--line); }
.newsletter {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 60px); align-items: center;
  padding: clamp(40px, 6vw, 76px) 0; border-bottom: 1px solid var(--line);
}
.newsletter h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.7rem); letter-spacing: -.02em; color: var(--white); line-height: 1.06; }
.newsletter p { color: var(--dim); margin-top: 12px; max-width: 46ch; font-size: .96rem; }
.nl__form { display: flex; gap: 10px; min-width: min(380px, 78vw); }
.nl__form input {
  flex: 1; background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px;
  padding: 13px 16px; color: var(--white); font: inherit; font-size: .9rem;
}
.nl__form input::placeholder { color: var(--dimmer); }
.nl__form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.nl__btn { background: var(--blue); color: #04060c; font-weight: 600; font-size: .9rem; padding: 13px 22px; border-radius: 11px; transition: transform .12s, filter .18s; }
.nl__btn:hover { filter: brightness(1.08); }
.nl__btn:active { transform: scale(.97); }

.foot__main { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); padding: clamp(44px, 6vw, 72px) 0 clamp(30px, 4vw, 48px); }
.foot__brand .brand { margin-bottom: 16px; }
.foot__brand p { color: var(--dim); font-size: .88rem; line-height: 1.6; max-width: 30ch; }
.foot__col h4 { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 14px; }
.foot__col a { display: block; color: var(--dim); font-size: .86rem; padding: 6px 0; transition: color .15s; }
.foot__col a:hover { color: var(--white); }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 22px 0 34px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--dimmer); }
.foot__bottom a { color: var(--dim); }
.foot__bottom a:hover { color: var(--white); }
.foot__social { display: flex; gap: 8px; }
.foot__social a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--dim); transition: color .15s, border-color .15s; }
.foot__social a:hover { color: var(--white); border-color: var(--line-2); }
.foot__social svg { width: 16px; height: 16px; }

/* ════════════════════════ Scroll reveal ════════════════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   CONTENT-GRID PAGES  (/all, /section/:slug, and any index-style page)
   ===================================================================== */

/* Page head — restrained editorial masthead for index pages.
   Mono chapter index → Fraunces title → dek → mono meta, with a
   full-width hairline beneath. Optional red edge marker for live. */
.phead { padding-top: clamp(34px, 5vw, 64px); }
.phead__crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .04em;
  color: var(--dimmer); margin-bottom: 18px;
}
.phead__crumbs a { color: var(--dim); transition: color .15s; }
.phead__crumbs a:hover { color: var(--white); }
.phead__crumbs .sep { opacity: .6; }
.phead__crumbs strong { color: var(--text); font-weight: 600; }
.phead__index {
  font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dimmer); display: block; margin-bottom: 12px;
}
.phead__index.is-live { color: var(--red); }
.phead__title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 480;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.03; letter-spacing: -.022em;
  color: #fff; max-width: 18ch; text-wrap: balance;
}
.phead__dek { font-size: clamp(1rem, 1.1vw, 1.12rem); line-height: 1.55; color: var(--dim); margin-top: 16px; max-width: 60ch; }
.phead__meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--dim);
}
.phead__meta span { display: inline-flex; align-items: center; gap: 7px; }

/* Filter / section chips — sticky rail under the masthead.
   Rest = hairline + dim. Hover = blue cue (interactive). Active = white
   fill (selected). Blue stays the "you can click" signal per discipline. */
.chips-bar {
  position: sticky; top: 72px; z-index: 40;
  padding: 14px 0; margin-top: clamp(26px, 3.5vw, 40px);
  background: rgba(8,9,11,.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; white-space: nowrap;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .02em; padding: 8px 15px; border-radius: 999px;
  color: var(--dim); background: transparent; border: 1px solid var(--line);
  transition: color .18s var(--ease-soft), border-color .18s, background .18s;
}
.chip:hover { color: var(--blue); border-color: rgba(76,141,255,.4); background: var(--blue-soft); }
.chip.is-active {
  color: #06070a; background: var(--white); border-color: var(--white);
}
.chip.is-active:hover { color: #06070a; background: #fff; }

/* Unified story-card grid */
.grid-sec { padding-top: clamp(30px, 4vw, 48px); }
.grid-count {
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dimmer); margin-bottom: clamp(20px, 2.5vw, 30px);
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(24px, 2.8vw, 40px) clamp(20px, 2.4vw, 34px);
}
/* the grid's cards inherit .card from the home system above */

.grid-empty {
  grid-column: 1 / -1; text-align: center; padding: clamp(48px, 8vw, 90px) 24px;
}
.grid-empty__icon {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 14px;
  display: grid; place-items: center; color: var(--blue); background: var(--blue-soft);
}
.grid-empty__icon svg { width: 24px; height: 24px; }
.grid-empty__title { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--white); letter-spacing: -.018em; }
.grid-empty__sub { color: var(--dim); margin-top: 10px; font-size: .96rem; line-height: 1.6; }
.grid-empty__cta { display: inline-flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.grid-empty__cta a { padding: 11px 20px; border-radius: 11px; font-weight: 600; font-size: .88rem; transition: filter .18s, background .18s, border-color .18s, color .18s; }
.grid-empty__cta .is-primary { background: var(--blue); color: #04060c; }
.grid-empty__cta .is-primary:hover { filter: brightness(1.08); }
.grid-empty__cta .is-ghost { border: 1px solid var(--line-2); color: var(--text); }
.grid-empty__cta .is-ghost:hover { border-color: var(--blue); color: #fff; }

/* Load more */
.loadmore-wrap { margin-top: clamp(34px, 4vw, 54px); display: flex; justify-content: center; }
.loadmore {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); color: var(--text); font-weight: 500; font-size: .86rem;
  padding: 12px 24px; border-radius: 11px; transition: border-color .18s, background .18s, color .18s;
}
.loadmore:hover { border-color: var(--blue); background: var(--blue-soft); color: #fff; }
.loadmore svg { width: 15px; height: 15px; }

/* ════════════════════════ Responsive ════════════════════════ */
@media (max-width: 1080px) {
  .mast__nav a { padding: 8px 8px; font-size: .8rem; }
}
@media (max-width: 1000px) {
  .mast__nav { display: none; }
  .burger { display: grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lead { min-height: clamp(380px, 64vw, 520px); }
}
@media (max-width: 840px) {
  .newsletter { grid-template-columns: 1fr; }
  .foot__main { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .sec__title { font-size: 1.7rem; }
  .foot__main { grid-template-columns: 1fr; gap: 26px; }
  .nl__form { min-width: 0; width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
  .chips-bar { top: 64px; }
}
@media (max-width: 768px) {
  .mast__inner { height: 64px; }
  .chips-bar { top: 64px; }
}
@media (max-width: 420px) {
  .rail__item { grid-template-columns: 1fr 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .media img { transform: none !important; }
}

/* =====================================================================
   SHARED PRIMITIVES  (info / marketing / utility pages)
   Buttons, panels, form controls, and long-form prose — all on tokens,
   so careers / contact / legal / status / 404 etc. stay consistent.
   ===================================================================== */

/* Buttons — blue is the only fill (interactive); ghost is hairline. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .9rem; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: filter .18s, background .18s, border-color .18s, color .18s, transform .12s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--blue); color: #04060c; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue-soft); color: #fff; }
.btn--block { width: 100%; }

/* Panel — a lifted card surface for forms, callouts, info blocks. */
.panel {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 38px);
}
.panel--raised { background: var(--bg-raised); }

/* Form controls */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.label { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.input, .textarea, .select {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px;
  padding: 13px 15px; color: var(--white); font: inherit; font-size: .94rem;
  transition: border-color .18s, box-shadow .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--dimmer); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239a9ca2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }

/* Long-form prose — legal, licensing, marketing copy. ~70ch measure. */
.prose { max-width: 72ch; color: var(--text); font-size: 1.02rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.018em; line-height: 1.12; color: var(--white); margin-top: 1.8em; }
.prose h3 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: 1.3rem; letter-spacing: -.012em; color: var(--white); margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose a { color: var(--blue); border-bottom: 1px solid rgba(76,141,255,.3); transition: border-color .15s; }
.prose a:hover { border-bottom-color: var(--blue); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose strong { color: var(--white); font-weight: 600; }
.prose blockquote { border-left: 2px solid var(--line-2); padding-left: 18px; color: var(--dim); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px; padding: .12em .4em; }

/* Centered hero for utility pages (404 / status / coming-soon). */
.util { min-height: 64vh; display: grid; place-items: center; padding: var(--rhythm) 0; text-align: center; }
.util__inner { max-width: 560px; }
.util__index { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); }
.util__title { font-family: var(--serif); font-optical-sizing: auto; font-weight: 480; font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.022em; line-height: 1.02; color: #fff; margin-top: 14px; text-wrap: balance; }
.util__dek { color: var(--dim); font-size: 1.05rem; line-height: 1.6; margin-top: 16px; }
.util__cta { display: inline-flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
