/* =========================================================
   Axia School — Ariana theme
   Version: 1.3.3
   Brand: axia Medical Academy (Studio Nim visual identity, 2025)
   Palette, patterns and tone of voice follow the brand book.
   ========================================================= */

/* ---------- Fonts (self hosted) ---------- */
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* brand book colours */
  --teal: #00808E;
  --aqua: #98D6D5;
  --leaf: #9BD19F;
  --sun: #E5DE85;

  /* derived */
  --teal-deep: #006C79;
  --teal-ink: #00565F;
  --ink: #042A2F;
  --ink-2: #073A41;
  --ink-3: #0B4B54;
  --paper: #F2F7F6;
  --paper-2: #E6F0EF;
  --white: #FFFFFF;

  --fg: #072B30;
  --fg-soft: #476E72;
  --fg-on-ink: #D6E9E8;
  --fg-on-ink-soft: #9CBFC1;

  --line: rgba(7, 43, 48, .12);
  --line-strong: rgba(7, 43, 48, .22);
  --line-ink: rgba(152, 214, 213, .18);
  --line-ink-strong: rgba(152, 214, 213, .34);

  /* type */
  --ff-display: 'Jost', 'Trebuchet MS', system-ui, sans-serif;
  --ff-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --t-hero: clamp(2.5rem, min(6vw, 9.2svh), 6.2rem);
  --t-h1: clamp(2.15rem, min(4.6vw, 7.6svh), 4.2rem);
  --t-h2: clamp(1.85rem, 3.15vw, 3.15rem);
  --t-h3: clamp(1.25rem, 1.5vw, 1.6rem);
  --t-h4: clamp(1.05rem, 1vw, 1.2rem);
  --t-body: clamp(1rem, .28vw + .94rem, 1.1rem);
  --t-small: .875rem;
  --t-mono: .75rem;

  /* metrics */
  --gut: clamp(18px, 4.4vw, 88px);
  --wrap: clamp(1160px, 84vw, 1880px);
  --wrap-narrow: 1080px;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --pad-sec: clamp(58px, 8.4vw, 148px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: var(--t-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

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

li { list-style: none; }

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

.field--ink :focus-visible,
.site-footer :focus-visible { outline-color: var(--aqua); }

::selection { background: var(--aqua); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

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

.sec { padding-block: var(--pad-sec); position: relative; }
.sec--tight { padding-block: clamp(52px, 5vw, 92px); }
.sec--flush-top { padding-top: clamp(40px, 4vw, 72px); }

.field--ink {
  background: var(--ink);
  color: var(--fg-on-ink);
}
.field--ink h1,
.field--ink h2,
.field--ink h3,
.field--ink h4 { color: var(--white); }

.field--paper { background: var(--paper); }
.field--white { background: var(--white); }
.field--aqua { background: var(--aqua); color: var(--ink); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.field--ink .eyebrow { color: var(--aqua); }

.sec__head {
  display: grid;
  gap: 22px 48px;
  align-items: end;
  grid-template-columns: 1fr;
  margin-bottom: clamp(34px, 4vw, 62px);
}
.sec__title { font-size: var(--t-h2); }
.sec__lead {
  color: var(--fg-soft);
  max-width: 52ch;
  font-size: 1.02rem;
}
.field--ink .sec__lead { color: var(--fg-on-ink-soft); }

@media (min-width: 900px) {
  .sec__head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .sec__head--split .sec__aside { justify-self: end; text-align: left; max-width: 42ch; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  --btn-bd: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .005em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 128, 142, .22); color: #fff; }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn .btn__ico { transition: transform .4s var(--ease); }
.btn:hover .btn__ico { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--line-strong);
}
.btn--ghost::after { background: var(--teal); }
.btn--ghost:hover { border-color: var(--teal); }

.btn--on-ink {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: var(--line-ink-strong);
}
.btn--on-ink::after { background: var(--aqua); }
.btn--on-ink:hover { color: var(--ink); border-color: var(--aqua); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--teal-ink);
  --btn-bd: #fff;
}
.btn--light::after { background: var(--ink); }
.btn--light:hover { color: #fff; }

.btn--sm { padding: 10px 18px; font-size: .85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 14px; }
.field--ink .link-arrow { color: var(--aqua); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease), height .4s var(--ease);
}
.site-header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand { display: flex; align-items: center; flex: none; }
.brand img {
  width: auto;
  height: 26px;
  transition: opacity .3s var(--ease);
}
.brand__light { display: none; }

body.has-hero-dark .site-header .brand__light { display: block; }
body.has-hero-dark .site-header .brand__dark { display: none; }

.site-header {
  background: rgba(242, 247, 246, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
body.has-hero-dark .site-header {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.has-hero-dark .site-header.is-stuck {
  background: rgba(4, 42, 47, .82);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line-ink);
}

.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 32px); }

.nav-link {
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--fg);
  position: relative;
  padding-block: 6px;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-link:hover::after,
.nav-item.is-current .nav-link::after { transform: scaleX(1); transform-origin: left; }
.nav-item.is-current .nav-link { color: var(--teal); }

body.has-hero-dark .site-header .nav-link { color: rgba(255, 255, 255, .84); }
body.has-hero-dark .site-header .nav-link:hover,
body.has-hero-dark .site-header .nav-item.is-current .nav-link { color: #fff; }

/* menu item flagged with the "btn-pill" class in the admin panel */
.nav-link.btn-pill {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-link.btn-pill::after { display: none; }
.nav-link.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 128, 142, .3); color: #fff; }
body.has-hero-dark .site-header .nav-link.btn-pill { color: #fff; }

.nav-item { position: relative; }
.nav-item .dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: 0 22px 50px rgba(4, 42, 47, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  color: var(--fg);
  transition: background-color .25s var(--ease);
}
.dropdown a:hover { background: var(--paper-2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background-color .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
body.has-hero-dark .site-header .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, .35); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--ink);
  padding: calc(var(--header-h) + 30px) var(--gut) 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .6s var(--ease);
  visibility: hidden;
}
body.nav-open .nav-drawer {
  clip-path: circle(150% at calc(100% - 44px) 38px);
  visibility: visible;
}
.nav-drawer__list { display: flex; flex-direction: column; gap: 4px; }
.nav-drawer__list a {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 400;
  color: #fff;
  padding-block: 10px;
  display: block;
  opacity: 0;
  transform: translateY(18px);
  border-bottom: 1px solid var(--line-ink);
}
body.nav-open .nav-drawer__list a {
  animation: drawerIn .6s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 140ms);
}
@keyframes drawerIn { to { opacity: 1; transform: none; } }
.nav-drawer__foot {
  margin-top: auto;
  color: var(--fg-on-ink-soft);
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; }
}
@media (min-width: 1024px) {
  .nav-drawer { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--fg-on-ink);
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(24px, 6.2svh, 104px));
  padding-bottom: clamp(34px, 5.6svh, 96px);
  min-height: min(100svh, 1020px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(0, 128, 142, .55), transparent 62%),
    radial-gradient(80% 70% at 8% 96%, rgba(155, 209, 159, .14), transparent 60%);
  pointer-events: none;
}
.hero__pattern {
  position: absolute;
  inset: -10% -5%;
  background: url('../img/pattern-lattice.svg') repeat;
  background-size: 132px;
  opacity: .1;
  pointer-events: none;
  will-change: transform;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  gap: clamp(26px, 4.4vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
.hero__title {
  font-size: var(--t-hero);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .98;
  color: #fff;
  margin-bottom: clamp(13px, 2.4svh, 26px);
}
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* the mask has to clear descenders (g, y, p) — pad, then pull back */
  padding-bottom: .22em;
  margin-bottom: -.22em;
}
.hero__title .word > span {
  display: inline-block;
  transform: translateY(140%);
  animation: wordUp .9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
@keyframes wordUp { to { transform: none; } }
.hero__title em {
  font-style: normal;
  color: var(--aqua);
  position: relative;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: 2px;
  background: var(--aqua);
  transform-origin: left;
  transform: scaleX(0);
  animation: underline 1s var(--ease) forwards;
  animation-delay: .9s;
}
@keyframes underline { to { transform: scaleX(1); } }

.hero__lead {
  color: var(--fg-on-ink-soft);
  max-width: 46ch;
  font-size: clamp(.98rem, .4vw + .92rem, 1.2rem);
  margin-bottom: clamp(20px, 3.2svh, 34px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: clamp(14px, 2.6svh, 28px);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(155, 209, 159, .6);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(155, 209, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 209, 159, 0); }
}
.hero__rotator {
  display: inline-block;
  min-width: 12ch;
  color: #fff;
}
.hero__rotator span {
  display: inline-block;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.hero__rotator.is-swapping span { opacity: 0; transform: translateY(-6px); }

/* hero artwork */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: min(clamp(360px, 33vw, 680px), 62svh);
  width: 100%;
  justify-self: center;
}
.hero__art svg { width: 100%; height: 100%; overflow: visible; animation: artFloat 11s ease-in-out infinite; }
@keyframes artFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(-.6deg); }
}
.hero__art .band {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 1400);
  stroke-dashoffset: var(--len, 1400);
  animation: draw 2.2s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__art .node {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePop .7s var(--ease) backwards;
}
@keyframes nodePop { from { transform: scale(0); opacity: 0; } }
.hero__art .orbit {
  transform-box: fill-box;
  transform-origin: center;
  animation: orbitSpin 90s linear infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.hero__art .halo {
  animation: haloPulse 7s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.06); opacity: .85; }
}
.hero__badge {
  position: absolute;
  inset: 34% 34%;
  display: grid;
  place-items: center;
}
.hero__badge img { width: 100%; height: auto; }

.hero__stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-ink);
  margin-top: clamp(18px, 3.4svh, 58px);
  padding-top: clamp(15px, 2.4svh, 26px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}
.stat__num {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, min(2.4vw, 3.4svh), 2.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__label {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-on-ink-soft);
  margin-top: 8px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-on-ink-soft);
  white-space: nowrap;
  pointer-events: none;
}
.hero__scroll i {
  display: block;
  width: 46px; height: 1px;
  background: var(--line-ink-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--aqua);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .hero__art { max-width: 420px; order: -1; }
  .hero { min-height: 0; }
}

/* page hero (inner pages) */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--fg-on-ink);
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(56px, 7vw, 96px));
  padding-bottom: clamp(56px, 7vw, 92px);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 100% at 88% 0%, rgba(0, 128, 142, .5), transparent 60%);
}
.page-hero__pattern {
  position: absolute;
  inset: 0;
  background: url('../img/pattern-wave.svg') repeat;
  background-size: 300px;
  opacity: .12;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero__title {
  font-size: var(--t-h1);
  font-weight: 400;
  letter-spacing: -.03em;
  color: #fff;
  max-width: 20ch;
}
.page-hero__lead {
  margin-top: 22px;
  color: var(--fg-on-ink-soft);
  max-width: 62ch;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 22px;
}
.crumbs span { color: var(--fg-on-ink-soft); }

/* ---------- Encyclopedia shelf ---------- */
@property --fade-l { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --fade-r { syntax: '<length>'; inherits: false; initial-value: 0px; }

.shelf {
  --fade-l: 0px;
  --fade-r: 0px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(268px, 74vw), 1fr);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-block: 14px 30px;
  margin-block: -14px -18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: --fade-l .45s var(--ease), --fade-r .45s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.shelf::-webkit-scrollbar { width: 0; height: 0; display: none; }
.shelf { --fade-size: clamp(20px, 5vw, 88px); }
.shelf.is-scrollable { --fade-r: var(--fade-size); }
.shelf.is-scrollable.at-end { --fade-r: 0px; }
.shelf.is-scrollable:not(.at-start) { --fade-l: var(--fade-size); }
.shelf-nav[hidden] { display: none; }

.topic {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.topic:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(4, 42, 47, .12);
  border-color: transparent;
}
.topic__art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--c1, var(--teal)), var(--c2, var(--ink)));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.topic__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/pattern-lattice.svg') repeat;
  background-size: 90px;
  opacity: .2;
  filter: brightness(0) invert(1);
  transition: transform .8s var(--ease);
}
.topic:hover .topic__art::after { transform: scale(1.12) rotate(4deg); }
.topic__ico {
  position: relative;
  z-index: 2;
  width: 62px; height: 62px;
  color: #fff;
  opacity: .96;
}
.topic__ico svg { width: 100%; height: 100%; }
.topic__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.topic__title { font-size: 1.22rem; }
.topic__desc { font-size: .92rem; color: var(--fg-soft); }
.topic__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.topic__foot .go {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--teal);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.topic:hover .topic__foot .go { background: var(--teal); color: #fff; border-color: var(--teal); }

.shelf-nav { display: flex; gap: 10px; }
.shelf-nav button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s;
}
.shelf-nav button:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.shelf-nav button[disabled] { opacity: .35; cursor: not-allowed; }
.shelf-nav button[disabled]:hover { background: transparent; color: var(--fg); border-color: var(--line-strong); }

/* ---------- Resources index ---------- */
.res-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
.res {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  transition: transform .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
.res:hover { transform: translateX(6px); border-color: var(--teal); }
.res__ico {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--teal);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.res:hover .res__ico { background: var(--teal); color: #fff; }
.res__title { font-size: 1.06rem; font-family: var(--ff-display); font-weight: 500; }
.res__meta { font-size: .86rem; color: var(--fg-soft); }
.res__go { margin-left: auto; color: var(--teal); flex: none; }

.res-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }

/* ---------- Podcast ---------- */
.pod {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1120px) { .pod { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }

.pod-feature {
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line-ink);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px);
  position: relative;
  overflow: hidden;
}
.pod-feature::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(152, 214, 213, .22), transparent 65%);
  pointer-events: none;
}
.pod-feature__top { display: flex; gap: 20px; align-items: center; margin-bottom: 26px; }
.pod-cover {
  width: clamp(84px, 12vw, 122px);
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--teal), var(--ink));
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-ink);
}
.pod-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/pattern-wave.svg') repeat;
  background-size: 130px;
  opacity: .3;
  filter: brightness(0) invert(1);
}
.pod-cover img { width: 56%; position: relative; z-index: 2; }
.pod-feature__title { font-size: clamp(1.4rem, 2.1vw, 2rem); color: #fff; }
.pod-feature__meta {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-top: 10px;
}

/* player */
.player { display: grid; gap: 14px; }
.player__row { display: flex; align-items: center; gap: 16px; }
.player__toggle {
  width: 58px; height: 58px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: var(--aqua);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.player__toggle:hover { transform: scale(1.06); background: #fff; }
.player__toggle .ico-pause { display: none; }
[data-player].is-playing .player__toggle .ico-pause { display: block; }
[data-player].is-playing .player__toggle .ico-play { display: none; }

.player__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 42px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.player__wave i {
  display: block;
  flex: 1;
  min-width: 2px;
  background: var(--line-ink-strong);
  border-radius: 2px;
  height: calc(14% + var(--h, 40%) * .8);
  transform-origin: center;
  transition: background-color .3s var(--ease);
}
[data-player].is-playing .player__wave i {
  background: var(--aqua);
  animation: waveBeat 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--n) * 44ms);
}
@keyframes waveBeat { to { transform: scaleY(.45); } }

.player__bar {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--line-ink);
  cursor: pointer;
  flex: 1;
}
.player__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--aqua);
  border-radius: 4px;
}
.player__bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--b, 0%);
  background: var(--line-ink-strong);
  border-radius: 4px;
  transition: width .35s linear;
}
.player__bar span { z-index: 2; }
.player__bar::after {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--p, 0%);
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.player__bar:hover::after,
.player__bar:focus-visible::after { opacity: 1; }

.player__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .08em;
  color: var(--fg-on-ink-soft);
}
.player__time { flex: none; font-variant-numeric: tabular-nums; }
.player__rate {
  border: 1px solid var(--line-ink-strong);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.player__rate:hover { background: var(--aqua); color: var(--ink); border-color: var(--aqua); }
[data-player].has-error .player__toggle { background: var(--line-ink); color: var(--fg-on-ink-soft); cursor: not-allowed; }
.player__error {
  display: none;
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  color: var(--sun);
}
[data-player].has-error .player__error { display: block; }

/* episode list */
.ep-list { display: grid; gap: 12px; }
.ep {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line-ink);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .03);
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.ep:hover { border-color: var(--line-ink-strong); background: rgba(255, 255, 255, .06); transform: translateX(4px); }
.ep.is-active { border-color: var(--aqua); }
.ep__play {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-ink-strong);
  background: transparent;
  color: var(--aqua);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.ep__play:hover { background: var(--aqua); color: var(--ink); }
.ep__play .ico-pause { display: none; }
.ep.is-playing .ep__play .ico-pause { display: block; }
.ep.is-playing .ep__play .ico-play { display: none; }
.ep__body { min-width: 0; }
.ep__title {
  font-family: var(--ff-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.24;
}
.ep__meta {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  color: var(--fg-on-ink-soft);
  margin-top: 6px;
  text-transform: uppercase;
}
.ep__dur { margin-left: auto; flex: none; font-family: var(--ff-mono); font-size: var(--t-mono); color: var(--fg-on-ink-soft); font-variant-numeric: tabular-nums; }

/* sticky mini player */
.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 85;
  width: min(620px, calc(100% - 28px));
  transform: translate(-50%, 160%);
  background: rgba(4, 42, 47, .92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-ink-strong);
  border-radius: 999px;
  padding: 10px 16px 10px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--fg-on-ink);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .3);
  transition: transform .55s var(--ease);
}
.dock.is-open { transform: translate(-50%, 0); }
.dock__toggle {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: var(--aqua);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.dock__toggle .ico-pause { display: none; }
.dock.is-playing .dock__toggle .ico-pause { display: block; }
.dock.is-playing .dock__toggle .ico-play { display: none; }
.dock__body { min-width: 0; flex: 1; }
.dock__title {
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dock__bar {
  height: 3px;
  border-radius: 3px;
  background: var(--line-ink);
  margin-top: 7px;
  overflow: hidden;
}
.dock__bar span { display: block; height: 100%; width: 0%; background: var(--aqua); }
.dock__close {
  border: none;
  background: transparent;
  color: var(--fg-on-ink-soft);
  cursor: pointer;
  padding: 6px;
  flex: none;
}
.dock__close:hover { color: #fff; }
@media (max-width: 560px) { .dock { bottom: 12px; padding: 8px 12px 8px 8px; } }

/* ---------- Roundtable ---------- */
.rt-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.rt-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.rt {
  position: relative;
  border: 1px solid var(--line-ink);
  border-radius: var(--r-lg);
  padding: 24px;
  background: rgba(255, 255, 255, .04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.rt::before {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 128, 142, .55), transparent 68%);
  transition: transform .7s var(--ease);
}
.rt:hover { transform: translateY(-6px); border-color: var(--line-ink-strong); }
.rt:hover::before { transform: scale(1.25); }
.rt__date {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aqua);
  position: relative;
}
.rt__title { font-size: 1.24rem; color: #fff; position: relative; }
.rt__meta { font-size: .88rem; color: var(--fg-on-ink-soft); position: relative; }
.rt__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  padding-top: 12px;
}
.faces { display: flex; }
.faces .face {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--aqua);
  border: 2px solid var(--ink-2);
  margin-left: -9px;
}
.faces .face:first-child { margin-left: 0; }
.faces .face:nth-child(2) { background: var(--leaf); }
.faces .face:nth-child(3) { background: var(--sun); }

/* marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-ink);
  padding-block: 16px;
  margin-top: clamp(38px, 4vw, 62px);
  -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;
  gap: 44px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: var(--fg-on-ink-soft);
  display: flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* ---------- News / posts ---------- */
.news { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 1060px) { .news { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; } }

.post-lead {
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post-lead:hover { transform: translateY(-5px); box-shadow: 0 26px 50px rgba(4, 42, 47, .12); }
.post-lead__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--teal), var(--ink));
  overflow: hidden;
}
.post-lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-lead:hover .post-lead__media img { transform: scale(1.05); }
.post-lead__media--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/pattern-chevron.svg') repeat;
  background-size: 150px;
  opacity: .28;
  filter: brightness(0) invert(1);
}
.post-lead__body { padding: 24px 26px 28px; display: grid; gap: 12px; }
.post-lead__title { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.post-lead__excerpt { color: var(--fg-soft); font-size: .96rem; }

.post-meta {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.post-meta .sep { color: var(--line-strong); }
.field--ink .post-meta { color: var(--aqua); }

.post-rows { display: grid; gap: 4px; align-content: start; }
.post-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-inline-start .4s var(--ease);
}
.post-row:hover { padding-inline-start: 10px; }
.post-row__thumb {
  width: 62px; height: 62px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--aqua), var(--teal));
  flex: none;
  position: relative;
}
.post-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row__title {
  font-family: var(--ff-display);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.25;
}
.post-row__date {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  color: var(--fg-soft);
  letter-spacing: .1em;
  margin-top: 7px;
  text-transform: uppercase;
}
.field--ink .post-row { border-color: var(--line-ink); }
.field--ink .post-row__date { color: var(--fg-on-ink-soft); }

.empty-note {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 26px;
  color: var(--fg-soft);
  font-size: .95rem;
}
.field--ink .empty-note { border-color: var(--line-ink); color: var(--fg-on-ink-soft); }

/* ---------- Events ---------- */
.events { display: grid; gap: 0; }
.event {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.event:last-child { border-bottom: 1px solid var(--line); }
.event__date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}
.event__day {
  font-family: var(--ff-display);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 400;
}
.event__mon {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 6px;
}
.event__title { font-size: 1.14rem; font-family: var(--ff-display); font-weight: 500; }
.event__meta {
  font-size: .86rem;
  color: var(--fg-soft);
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.event__cta { grid-column: 2; }
@media (min-width: 760px) {
  .event { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .event__cta { grid-column: auto; }
}
.event::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width .6s var(--ease);
}
.event:hover::after { width: 100%; }

/* ---------- WhatsApp band ---------- */
.wa {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--teal), var(--teal-ink));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(30px, 4.4vw, 62px);
  display: grid;
  gap: 26px;
  align-items: center;
}
.wa::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px; height: 520px;
  background: url('../img/pattern-chevron.svg') repeat;
  background-size: 140px;
  opacity: .16;
  filter: brightness(0) invert(1);
  transform: rotate(-12deg);
}
.wa__inner { position: relative; z-index: 2; display: grid; gap: 22px; }
.wa__icon {
  width: 68px; height: 68px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
  color: #fff;
}
.wa__title { font-size: clamp(1.7rem, 2.8vw, 2.7rem); color: #fff; }
.wa__lead { color: rgba(255, 255, 255, .85); max-width: 52ch; }
@media (min-width: 900px) {
  .wa { grid-template-columns: minmax(0, 1fr) auto; }
  .wa__actions { justify-self: end; }
}

/* ---------- Board ---------- */
.board {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .board { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.member { text-align: center; display: grid; gap: 6px; justify-items: center; }
.member__avatar {
  width: clamp(84px, 9vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  background: var(--aqua);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.member__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/pattern-lattice.svg') repeat;
  background-size: 60px;
  opacity: .22;
}
.member:hover .member__avatar { transform: translateY(-6px) scale(1.03); }
.member:nth-child(2n) .member__avatar { background: var(--leaf); }
.member:nth-child(3n) .member__avatar { background: var(--sun); }
.member:nth-child(5n) .member__avatar { background: #BFE4E3; }
.member__name { font-family: var(--ff-display); font-size: 1.02rem; font-weight: 500; }
.member__role {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
}
.member__org { font-size: .84rem; color: var(--fg-soft); line-height: 1.4; }
.field--ink .member__org { color: var(--fg-on-ink-soft); }
.field--ink .member__role { color: var(--aqua); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.form__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.field-row { display: grid; gap: 7px; }
.field-row label {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--fg);
  font-size: .96rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field-row select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 42px; }
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 128, 142, .14);
}
.form__note { font-size: .82rem; color: var(--fg-soft); }
.form__status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(155, 209, 159, .22);
  border: 1px solid rgba(0, 128, 142, .3);
  font-size: .9rem;
}
.form__status.is-visible { display: block; }
.form__status.is-error { background: rgba(229, 222, 133, .3); }

.join-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 46px);
  position: relative;
  overflow: hidden;
}
.join-card::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 320px; height: 320px;
  background: url('../img/pattern-lattice.svg') repeat;
  background-size: 90px;
  opacity: .13;
  pointer-events: none;
}
.join-card > * { position: relative; z-index: 2; }

/* newsletter inline form */
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-ink-strong);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.subscribe input::placeholder { color: var(--fg-on-ink-soft); }
.subscribe input:focus { outline: none; border-color: var(--aqua); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--fg-on-ink-soft);
  padding-top: clamp(56px, 6vw, 92px);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 -120px 0;
  height: 320px;
  background: url('../img/pattern-wave.svg') repeat-x;
  background-size: 340px;
  opacity: .1;
  pointer-events: none;
}
.footer__grid {
  display: grid;
  gap: 38px;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 2;
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .footer__grid { grid-template-columns: 1.25fr 1.15fr .85fr 1.25fr; gap: 46px; } }

.footer__brand img { height: 30px; width: auto; margin-bottom: 20px; }
.footer__about { max-width: 40ch; font-size: .92rem; }
.footer__title {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 18px;
}
.footer__list { display: grid; gap: 11px; }
.footer__list--split {
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  column-gap: 34px;
  justify-content: start;
}
@media (max-width: 699px) {
  .footer__list--split { grid-auto-flow: row; grid-template-rows: none; }
}
.footer__list a,
.footer__contact a { font-size: .93rem; transition: color .3s var(--ease); }
.footer__list a:hover,
.footer__contact a:hover { color: #fff; }
.footer__contact { display: grid; gap: 12px; font-size: .93rem; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { flex: none; margin-top: 3px; color: var(--teal); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-ink);
  display: grid;
  place-items: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.socials a:hover { background: var(--aqua); color: var(--ink); border-color: var(--aqua); transform: translateY(-3px); }

.footer__bar {
  margin-top: clamp(38px, 4vw, 62px);
  border-top: 1px solid var(--line-ink);
  padding-block: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  position: relative;
  z-index: 2;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__credit {
  margin-left: auto;
  text-align: right;
  color: var(--fg-on-ink-soft);
  font-size: .78rem;
}
.footer__credit a { color: var(--fg-on-ink); border-bottom: 1px solid var(--line-ink-strong); }
.footer__credit a:hover { color: var(--aqua); border-bottom-color: var(--aqua); }
.footer__credit span { opacity: .45; margin-inline: 6px; }
@media (max-width: 860px) {
  .footer__bar { justify-content: flex-start; }
  .footer__credit { margin-left: 0; text-align: left; }
}

/* ---------- Article / prose ---------- */
.article { padding-top: calc(var(--header-h) + clamp(40px, 5vw, 70px)); }
.article__head { max-width: 860px; margin-inline: auto; }
.article__title {
  font-size: var(--t-h1);
  font-weight: 400;
  letter-spacing: -.03em;
  margin-block: 18px 20px;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.article__cover {
  max-width: 1120px;
  margin: clamp(30px, 4vw, 52px) auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
}
.article__cover img { width: 100%; height: auto; }
.article__body { max-width: 760px; margin-inline: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--teal);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.tag:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.toc-wrap {
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-block: 30px;
  background: var(--white);
}
.toc-wrap a { color: var(--teal-deep); text-decoration: none; }
.toc-wrap a:hover { text-decoration: underline; }
.toc-wrap ul { display: grid; gap: 8px; }
.toc-wrap li { font-size: .93rem; }

.prose { font-size: 1.06rem; line-height: 1.78; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); margin-top: 1.9em; }
.prose h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin-top: 1.6em; }
.prose p { color: #16383C; }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .5em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose blockquote {
  border-left: 3px solid var(--aqua);
  padding: 6px 0 6px 22px;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--teal-ink);
}
.prose img { border-radius: var(--r-md); }
.prose figure figcaption { font-size: .84rem; color: var(--fg-soft); margin-top: 8px; }
.prose code {
  font-family: var(--ff-mono);
  font-size: .88em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 5px;
}
.prose pre {
  background: var(--ink);
  color: var(--fg-on-ink);
  padding: 20px;
  border-radius: var(--r-md);
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--paper-2); font-family: var(--ff-display); }
.prose hr { border: none; border-top: 1px solid var(--line); margin-block: 2em; }

/* Ariana summary box */
.ariana-summary {
  background: linear-gradient(150deg, rgba(152, 214, 213, .3), rgba(155, 209, 159, .16));
  border: 1px solid rgba(0, 128, 142, .22);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 30px);
  margin-block: 30px;
}
.ariana-summary__title {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin: 0 0 12px;
  font-weight: 500;
}
.ariana-summary__text { font-size: 1rem; line-height: 1.7; color: #123B3F; margin: 0; }
.ariana-summary__list { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 7px; }
.ariana-summary__list li { list-style: disc; font-size: .96rem; color: #123B3F; }

.author-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--white);
  margin-top: clamp(38px, 4vw, 58px);
}
.author-box__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--aqua);
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--ink);
}
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__name { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 500; }
.author-box__role {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 4px;
}
.author-box__bio { font-size: .94rem; color: var(--fg-soft); margin-top: 10px; }
.author-box__links { display: flex; gap: 14px; margin-top: 12px; font-size: .86rem; }

/* ---------- Archives ---------- */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(4, 42, 47, .12); }
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--teal), var(--ink));
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media--empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/pattern-lattice.svg') repeat;
  background-size: 100px;
  opacity: .24;
  filter: brightness(0) invert(1);
}
.card__body { padding: 22px 22px 26px; display: grid; gap: 11px; flex: 1; align-content: start; }
.card__title { font-size: 1.2rem; }
.card__excerpt { font-size: .93rem; color: var(--fg-soft); }
.card__foot {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}

.pagination {
  margin-top: clamp(40px, 4vw, 64px);
  display: flex;
  justify-content: center;
}
.pagination ul,
.pagination .pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--fg);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.pagination a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.pagination .current,
.pagination [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* search form */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.search-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-ink-strong);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
.search-form input::placeholder { color: var(--fg-on-ink-soft); }
.search-form input:focus { outline: none; border-color: var(--aqua); }

/* 404 */
.nf { text-align: center; display: grid; gap: 22px; justify-items: center; }
.nf__code {
  font-family: var(--ff-display);
  font-size: clamp(6rem, 22vw, 15rem);
  line-height: .82;
  color: var(--teal);
  letter-spacing: -.05em;
}
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Split / content blocks ---------- */
.split {
  display: grid;
  gap: clamp(28px, 4vw, 62px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 940px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split__media {
  border-radius: var(--r-xl);
  aspect-ratio: 5 / 4;
  background: linear-gradient(150deg, var(--teal), var(--ink));
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../img/pattern-chevron.svg') repeat;
  background-size: 130px;
  opacity: .22;
  filter: brightness(0) invert(1);
}
.split__media img { width: 46%; position: relative; z-index: 2; }

.value-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.value-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.value {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.value__k {
  font-family: var(--ff-mono);
  font-size: var(--t-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.value__t { font-size: 1.24rem; }
.value__d { font-size: .95rem; color: var(--fg-soft); }
.field--ink .value { border-color: var(--line-ink); }
.field--ink .value__d { color: var(--fg-on-ink-soft); }
.field--ink .value__k { color: var(--aqua); }

.quote {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -.02em;
  max-width: 22ch;
}
.quote em { font-style: normal; color: var(--teal); }
.field--ink .quote em { color: var(--aqua); }

/* ---------- Reveal animations ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

.has-js [data-reveal="fade"] { transform: none; }
.has-js [data-reveal="left"] { transform: translateX(-26px); }
.has-js [data-reveal="scale"] { transform: scale(.96); }

/* progress rail */
.rail {
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
@media (min-width: 1440px) { body.has-rail .rail { display: flex; } }
.rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  color: inherit;
}
.rail__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.rail__label {
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-soft);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
  background: rgba(242, 247, 246, .92);
  padding: 4px 9px;
  border-radius: 7px;
  pointer-events: none;
}
.rail__item:hover .rail__label,
.rail__item:focus-visible .rail__label { opacity: 1; transform: none; }
.rail__item.is-active .rail__dot { background: var(--teal); transform: scale(1.7); }
body.rail-on-dark .rail__dot { background: var(--line-ink-strong); }
body.rail-on-dark .rail__label { color: var(--fg-on-ink); background: rgba(4, 42, 47, .92); }
body.rail-on-dark .rail__item.is-active .rail__dot { background: var(--aqua); }

/* scroll progress line */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--teal), var(--aqua));
  z-index: 95;
  pointer-events: none;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .hero__title .word > span { transform: none; }
  .hero__art .band { stroke-dashoffset: 0; }
  .hero__art .orbit { animation: none; }
  .marquee__track { animation: none; }
}

/* ---------- Post grid (home + archives) ---------- */
.news-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-grid > .card:first-child { grid-column: span 2; grid-row: span 2; }
  .news-grid > .card:first-child .card__title { font-size: clamp(1.5rem, 2.2vw, 2.05rem); }
  .news-grid > .card:first-child .card__body { padding: 26px 30px 32px; }
}

.card__media img,
.post-lead__media img,
.post-row__thumb img {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.res__title,
.res__meta,
.topic__title,
.topic__desc,
.card__title,
.card__excerpt { display: block; }

.res__title { margin-bottom: 3px; }

/* never show an empty chip if a taxonomy field is unused */
.tag:empty,
.post-meta:empty,
.post-meta span:empty,
.card__foot span:empty { display: none; }

.subscribe .form__status { flex-basis: 100%; margin-top: 4px; }

/* generic prose-free content lists */
.check-list { display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .97rem;
}
.check-list li::before {
  content: "";
  width: 18px; height: 18px;
  flex: none;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: inset 0 0 0 5px rgba(0, 128, 142, .28);
}

.faq { display: grid; gap: 0; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 40px 22px 0;
  font-family: var(--ff-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.faq__q::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-right: 1.6px solid var(--teal);
  border-bottom: 1.6px solid var(--teal);
  transform: rotate(45deg);
  transition: transform .4s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a { padding: 0 0 24px; color: var(--fg-soft); font-size: .98rem; max-width: 70ch; }
.faq__item summary { list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }

/* =========================================================
   Motion layer — split headings, ticker, spotlight, magnetics
   ========================================================= */

/* word-by-word heading reveal (applied by JS) */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .22em;
  margin-bottom: -.22em;
}
[data-split] .w > .i {
  display: inline-block;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .95s var(--ease), opacity .6s linear;
  will-change: transform;
}
[data-split].is-split-in .w > .i { transform: none; opacity: 1; }

/* brand ticker */
.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--white);
  padding-block: clamp(16px, 1.8vw, 24px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.field--ink + .ticker { border-top-color: transparent; }
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerRun 46s linear infinite;
  animation-direction: var(--tick-dir, normal);
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tickerRun { to { transform: translate3d(-50%, 0, 0); } }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  padding-inline: clamp(11px, 1.5vw, 22px);
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.5vw, 1.7rem);
  letter-spacing: -.01em;
  color: var(--fg);
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--teal);
  transform: rotate(45deg);
  opacity: .55;
}
.ticker__item:nth-child(even) { color: var(--teal); }
.ticker__item:nth-child(3n)::after { background: var(--leaf); }
.ticker__item:nth-child(4n)::after { background: var(--sun); }

/* pointer spotlight on cards */
.card,
.topic,
.res { position: relative; }
.card::after,
.topic::after,
.res::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .45s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 128, 142, .13), transparent 68%);
}
.card:hover::after,
.topic:hover::after,
.res:hover::after { opacity: 1; }

/* magnetic controls */
.is-magnetic { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  [data-split] .w > .i { transform: none; opacity: 1; }
  .ticker__track { animation: none; }
  .hero__art svg { animation: none; }
  .shelf { scroll-behavior: auto; }
}
@media (hover: none) {
  .card::after, .topic::after, .res::after { display: none; }
}

/* =========================================================
   Responsive system — viewport height, breakpoints, edges
   ========================================================= */

/* --- short viewports (14" laptops, split windows, landscape phones) --- */
@media (max-height: 900px) and (min-width: 900px) {
  :root { --t-hero: clamp(2.4rem, min(5.6vw, 8.4svh), 4.9rem); }
  .hero { min-height: min(100svh, 880px); }
  .hero__stats { gap: 16px 14px; }
  .stat__label { margin-top: 5px; letter-spacing: .1em; }
}
@media (max-height: 760px) and (min-width: 900px) {
  :root { --t-hero: clamp(2.2rem, min(5vw, 8svh), 4.2rem); }
  .hero {
    padding-top: calc(var(--header-h) + clamp(22px, 4.4svh, 60px));
    padding-bottom: clamp(28px, 4.4svh, 60px);
  }
  .hero__lead { font-size: .98rem; max-width: 40ch; }
  .hero__art { max-width: min(clamp(300px, 27vw, 520px), 56svh); }
}
@media (max-height: 620px) and (orientation: landscape) {
  :root { --t-hero: clamp(2rem, min(4.4vw, 10.5svh), 3.4rem); }
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: 30px;
  }
  .hero__inner { align-items: start; }
  .hero__lead { max-width: 40ch; }
  .nav-drawer { padding-top: calc(var(--header-h) + 16px); overflow-y: auto; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .hero__stats { display: none; }
}

/* --- laptops 1024–1279: nav must not crowd the logo --- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header__inner { gap: 18px; }
  .site-nav__list { gap: clamp(12px, 1.4vw, 20px); }
  .nav-link { font-size: .88rem; }
  .nav-link.btn-pill { padding-inline: 18px; }
}

/* --- big desktops: keep line lengths sane inside a wide frame --- */
@media (min-width: 1700px) {
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sec__lead { max-width: 46ch; }
  .hero__lead { max-width: 44ch; }
}
@media (min-width: 2000px) {
  :root { --t-body: 1.12rem; }
  .news-grid { gap: 28px; }
}

/* --- narrow phones: nothing may spill sideways --- */
@media (max-width: 420px) {
  :root { --r-xl: 22px; --r-lg: 18px; }
  .btn { padding: 13px 20px; letter-spacing: .12em; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .player__foot { flex-wrap: wrap; gap: 10px; }
  .pod-feature__top { gap: 14px; }
  .sec__head--split { gap: 18px; }
}

/* --- overflow guards that apply everywhere --- */
.prose table { display: block; overflow-x: auto; }
.hero__title,
.sec__title,
.page-hero__title,
.card__title,
.topic__title,
.ep__title,
.rt__title,
.event__title { overflow-wrap: anywhere; }
.prose a,
.footer__list a,
.footer__contact a { overflow-wrap: anywhere; }

/* the rail must never sit on top of the content frame */
@media (min-width: 1440px) and (max-width: 1560px) {
  .rail { left: 16px; }
}

/* --- streaming feedback --- */
[data-player].is-loading .player__toggle,
[data-player].is-loading .ep__play { position: relative; }
[data-player].is-loading .player__toggle::after,
[data-player].is-loading .ep__play::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: currentColor;
  opacity: .8;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ep.is-loading .ep__dur::after { content: " ·"; }
@media (prefers-reduced-motion: reduce) {
  [data-player].is-loading .player__toggle::after,
  [data-player].is-loading .ep__play::after { animation: none; }
}

/* section head utility row (link + carousel controls) */
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 24px;
}

/* compact chrome on small phones */
@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .brand img { height: 23px; }
  .footer__grid { gap: 30px; }
}

/* nothing may create a sideways scrollbar */
html, body { max-width: 100%; }
.sec, .hero, .page-hero, .ticker, .marquee { max-width: 100vw; }

/* the scroll cue only appears when the hero has room for it */
@media (min-width: 1100px) and (min-height: 940px) {
  .hero__scroll { display: flex; }
  .hero { padding-bottom: max(clamp(34px, 5.6svh, 96px), 92px); }
}

/* --- carousel on touch: edge-to-edge track, cards settle centred --- */
@media (max-width: 760px) {
  .shelf {
    --fade-size: 22px;
    margin-inline: calc(var(--gut) * -1);
    padding-inline: var(--gut);
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
  }
  .shelf > * { scroll-snap-align: center; scroll-snap-stop: always; }
  .shelf.at-start { --fade-l: 0px; }
}
