/* ═══════════════════════════════════════════════════════════════
   ARO Community — built from the Paper artboard
   "ARO — Agent Reliability Operations" (1440 desktop).
   Blue is the scarce accent; ink is the closing bookend.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --blue: #0052ff;
  --blue-active: #003ecc;
  --ink: #0a0b0d;
  --body: #5b616e;
  --muted: #7c828a;
  --muted-soft: #a8acb3;
  --hairline: #dee1e6;
  --hairline-soft: #eef0f3;
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --on-dark: #ffffff;
  --on-ink-soft: #a8acb3;
  --dark-card: #16181c;
  --dark-line: #1f2226;

  /* space & shape */
  --radius: 20px;
  --radius-sm: 12px;
  --section: 112px;
  --gutter: 32px;
  --wrap: 1200px;

  /* type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;
}

/* — Reset & baseline — */
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 88px }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100% }
button, input { font: inherit; color: inherit }
button { cursor: pointer; background: transparent; border: 0; padding: 0 }
a { color: inherit; text-decoration: none }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; letter-spacing: -0.02em }
p, ul { margin: 0 }
ul { list-style: none; padding: 0 }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px }
.on-ink :focus-visible { outline-color: var(--on-dark) }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important }
}

/* — Shared type — */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-ink .eyebrow { color: var(--on-ink-soft) }

/* — Layout — */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding: var(--section) 0 }

.skip {
  position: fixed;
  top: -100px; left: 20px;
  background: var(--ink); color: var(--on-dark);
  padding: 12px 20px; border-radius: 8px;
  font-size: 14px; z-index: 30;
}
.skip:focus { top: 12px }

/* ─────────────────────────────────
   Header
   ───────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 14px }
.logo { height: 28px; width: auto; flex-shrink: 0; color: var(--ink) }
.on-ink .logo { color: var(--on-dark) }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.02em;
  padding-left: 12px;
  border-left: 1px solid rgba(0,0,0,0.22);
  white-space: nowrap;
}
.navlinks { display: flex; align-items: center; gap: 32px; font-size: 16px }
.navlinks a { transition: color .15s }
.navlinks a:hover { color: var(--blue) }
.nav-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  transition: background .15s;
}
.nav-cta:hover { background: #24262b }

/* Hamburger toggle — hidden on desktop, where .navlinks shows inline. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  transition: border-color .15s, background .15s, color .15s;
}
.nav-toggle:hover { border-color: var(--ink) }
.nav-toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark) }

/* ─────────────────────────────────
   Hero
   ───────────────────────────────── */
.hero {
  background: var(--surface-soft);
  padding: 40px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 480px);
  gap: 72px;
  align-items: center;
}
.hero-headline { display: flex; flex-direction: column; gap: 14px }
.display {
  font-size: 88px;
  font-weight: 600;
  line-height: 88px;
  letter-spacing: -0.045em;
}
.display .accent { display: block; color: var(--muted); font-weight: 400 }
.hero-details { display: flex; flex-direction: column; gap: 24px; margin-top: 40px }
.hero-def { max-width: 560px; font-size: 17px; line-height: 27px; color: var(--body) }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 44px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: var(--on-dark) }
.btn-primary:hover { background: var(--blue-active) }
.btn-arrow { font-family: var(--font-mono); font-size: 15px; line-height: 15px }

.listen-on { display: flex; flex-direction: column; gap: 14px; margin-top: 4px }
.listen-on-label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.listen-pills { display: flex; flex-wrap: wrap; gap: 10px }
.listen-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 10px 16px 10px 12px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  transition: border-color .15s;
}
.listen-pill:hover { border-color: var(--body) }
.listen-pill-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.listen-pill--youtube .listen-pill-icon { background: #ff0033 }

/* Reliability-loop diagram */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 20px }
.loop { position: relative; width: min(480px, 100%); container-type: inline-size }
.loop > svg { width: 100%; height: auto }
.loop-node {
  position: absolute;
  width: 30.83%;               /* 148 / 480 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.833cqw;
  text-align: center;
}
.loop-node b { font-size: 2.708cqw; font-weight: 500; line-height: 3.542cqw }
.loop-node span { font-size: 2.292cqw; line-height: 2.917cqw; color: var(--muted) }
.loop-node--monitor { left: 34.58%; top: 5.91% }   /* 166,26 */
.loop-node--involve { left: 68.75%; top: 44.09% }  /* 330,194 */
.loop-node--respond { left: 34.58%; top: 82.27% }  /* 166,362 */
.loop-node--learn   { left: 0.42%;  top: 44.09% }  /* 2,194 */
.loop-hub {
  position: absolute;
  left: 38.33%; top: 45%;      /* 184,198 */
  width: 23.33%;               /* 112 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.042cqw;
  color: var(--on-dark);
}
.loop-hub b { font-size: 4.583cqw; font-weight: 500; line-height: 5cqw; letter-spacing: -0.05em }
.loop-hub span { font-family: var(--font-mono); font-size: 1.875cqw; line-height: 2.292cqw; letter-spacing: 0.15em }
.loop-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: center;
}

/* ─────────────────────────────────
   Logos — infinite marquee
   A light connective strip, not a full section: less vertical
   padding than --section. The track is the logo list rendered
   twice (app.js) and the keyframe moves it by exactly -50% of its
   own width, i.e. one full list, so the loop has no visible seam.
   ───────────────────────────────── */
.logos { padding: 56px 0 72px; background: var(--surface-soft) }
.logos-head { display: flex; flex-direction: column; gap: 6px }
.logos-heading {
  font-size: 52px;
  font-weight: 500;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 96px, #000 calc(100% - 96px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 96px, #000 calc(100% - 96px), transparent 100%);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: logo-scroll 18s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused }
.logo-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center }
.logo-item img { height: 104px; width: auto; display: block }

@keyframes logo-scroll {
  from { transform: translateX(0) }
  to   { transform: translateX(-20%) }
}
/* Frozen, not fast-forwarded: an infinite loop at the global
   .01ms-duration override would just flicker rather than go still. */
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation-play-state: paused }
}

/* ─────────────────────────────────
   Section heads
   ───────────────────────────────── */
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 56px }
/* Head that carries the rail controls opposite the title. */
.section-head--rail {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}
.section-head-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.section-head h2 {
  font-size: 52px;
  font-weight: 500;
  line-height: 56px;
  letter-spacing: -0.02em;
}

/* ─────────────────────────────────
   Episode cover art
   ───────────────────────────────── */
.cover {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s;
}
.cover:hover { transform: translateY(-3px) }
.cover-play {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform .15s;
}
.cover-play svg { margin-left: 3px }

/* WITH a thumbnail (custom upload or a real YouTube video link): the
   image is the whole card, shown at its own natural size — never
   cropped or stretched to fit a fixed box. The play button centers
   over it instead of sitting at a fixed corner. */
.cover-img { width: 100%; height: auto; display: block }
/* A safety floor only — real images always render far taller than
   this once scaled to the card width, so it never crops anything.
   It only matters if a thumbnail path is broken and the image below
   gets hidden, which would otherwise collapse the card to nothing. */
.cover--media { min-height: 180px }
.cover--media .cover-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cover--media:hover .cover-play { transform: translate(-50%, -50%) scale(1.05) }

/* WITHOUT a thumbnail yet: the original palette-gradient cover with
   the title/EP/duration lettered directly on it. */
.cover--fallback {
  aspect-ratio: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.cover--fallback .cover-play { position: absolute; right: 20px; bottom: 60px }
.cover--fallback:hover .cover-play { transform: scale(1.05) }
.cover-top, .cover-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.cover-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 27px;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.cover-brand {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.05em;
  text-transform: none;
  color: rgba(255,255,255,0.95);
}

/* Per-episode palettes, named so the editor can offer them by name */
.cover--blue   { background: linear-gradient(135deg, #0052ff 0%, #002890 100%) }
.cover--orange { background: linear-gradient(135deg, #f97316 0%, #c2410c 100%) }
.cover--teal   { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%) }
.cover--violet { background: linear-gradient(135deg, #4c1d95 0%, #1e1b4b 100%) }
.cover--gold   { background: linear-gradient(135deg, #eab308 0%, #a16207 100%) }
.cover--red    { background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%) }

/* ─────────────────────────────────
   Featured episode
   ───────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 460px);
  gap: 56px;
  align-items: center;
}
.featured .cover--fallback { padding: 24px }
.featured-cover { width: 100%; max-width: 580px }
.featured .cover-title { font-size: 29px; line-height: 32px; text-align: center }
.featured .cover--fallback .cover-play { bottom: 64px }
.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}
.featured-body h2 {
  font-size: 48px;
  line-height: 50px;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.guest {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.guest-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hairline), var(--hairline-soft));
  display: grid; place-items: center;
  font-size: 15px; font-weight: 500; line-height: 19px;
  flex-shrink: 0;
}
.guest-name { font-size: 15px; font-weight: 500; line-height: 20px }
.guest-role { font-size: 13px; line-height: 18px; color: var(--body) }
.featured-desc { font-size: 16px; line-height: 26px; color: var(--body); margin-bottom: 28px }
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px }
.btn-youtube { background: #ff0033; color: var(--on-dark); padding: 12px 20px; min-height: 0 }
.btn-youtube:hover { background: #cc0028 }
.btn-outline { border: 1px solid var(--hairline); padding: 12px 20px; min-height: 0 }
.btn-outline:hover { border-color: var(--ink) }

/* ─────────────────────────────────
   Earlier episodes — rail
   ───────────────────────────────── */
.recent { background: var(--surface-soft) }
.recent-rail {
  --edge-pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex;
  gap: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--edge-pad);
  padding: 4px var(--edge-pad) 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.recent-rail::-webkit-scrollbar { display: none }
.recent-card {
  flex: 0 0 357px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rail-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 6px;   /* sits on the title's baseline, not its descenders */
}
.rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: border-color .15s, background .15s, opacity .15s;
}
.rail-btn:hover:not(:disabled) { border-color: var(--ink); background: var(--surface-soft) }
.rail-btn:disabled { opacity: 0.3; cursor: not-allowed }

.recent-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.recent-title {
  font-size: 19px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.02em;
}
.recent-guest { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: var(--body) }
.recent-guest .guest-avatar { width: 28px; height: 28px; font-size: 11px; line-height: 14px }

/* ─────────────────────────────────
   Upcoming
   ───────────────────────────────── */
.upcoming-list { border-top: 1px solid var(--hairline) }
.upcoming-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--hairline);
  transition: background .15s;
}
.upcoming-item:hover { background: var(--surface-soft) }
.upcoming-title { font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: -0.015em }
.upcoming-title small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0;
  color: var(--body);
}
.upcoming-notify {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.upcoming-notify:hover { border-color: var(--blue); background: var(--blue); color: var(--on-dark) }
/* Static placeholder for a slot that isn't open for signups yet —
   same pill shape as .upcoming-notify, muted instead of blue since
   it isn't clickable. */
.upcoming-status {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  white-space: nowrap;
}
/* The inline email form that replaces the button spans the full row
   instead of squeezing into the narrow column the button used to fit. */
.upcoming-item .inline-subscribe { grid-column: 1 / -1; margin-top: 4px }

/* ─────────────────────────────────
   Field notes
   ───────────────────────────────── */
.notes { background: var(--surface-soft) }
.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px }
.note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  height: 260px;
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--canvas);
  text-align: left;
  width: 100%;
  transition: border-color .15s, background .15s, transform .15s;
}
.note:hover { border-color: var(--body); transform: translateY(-2px) }
.note-eyebrow, .note-more {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
  line-height: 14px;
}
.note-more { font-size: 12px; line-height: 15px; letter-spacing: 0.04em }
.note-title { font-size: 22px; font-weight: 500; line-height: 28px; letter-spacing: -0.02em; text-wrap: balance }
.note--accent { background: var(--blue); border-color: var(--blue); color: var(--on-dark) }
.note--accent:hover { background: var(--blue-active); border-color: var(--blue-active) }
.note--accent .note-eyebrow, .note--accent .note-more { color: rgba(255,255,255,0.75) }
.note--accent .note-title { font-size: 28px; line-height: 34px }

/* ─────────────────────────────────
   Council
   ───────────────────────────────── */
.council-grid { display: grid; grid-template-columns: minmax(0, 472px) minmax(0, 568px); gap: 96px; align-items: start }
.council-intro { display: flex; flex-direction: column; gap: 24px }
.council-intro h2 { font-size: 52px; line-height: 56px }
.council-intro p { font-size: 17px; line-height: 27px; color: var(--body); white-space: pre-line }
.council-points { border-bottom: 1px solid var(--hairline) }
.council-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}
.council-num {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-top: 6px;
}
.council-point h3 { font-size: 22px; font-weight: 500; line-height: 28px; letter-spacing: -0.015em }
.council-point p { margin-top: 10px; font-size: 15px; line-height: 25px; color: var(--body) }

/* ─────────────────────────────────
   Join — ink bookend
   ───────────────────────────────── */
.join { background: var(--ink); color: var(--on-dark); padding: var(--section) 0 }
.join-grid { display: grid; grid-template-columns: minmax(0, 564px) minmax(0, 476px); gap: 96px; align-items: end }
.join h2 {
  font-size: 64px;
  font-weight: 500;
  line-height: 68px;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.join-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.join-stat-value { font-size: 34px; font-weight: 500; line-height: 34px; letter-spacing: -0.03em; margin-bottom: 8px }
.join-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
}
.join-right { display: flex; flex-direction: column; gap: 24px }
.join-right > p { font-size: 16px; line-height: 26px; color: var(--on-ink-soft) }
.join-entry-points { display: flex; flex-wrap: wrap; gap: 12px }
.entry-point {
  width: 232px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
}
.entry-point:hover { border-color: var(--on-ink-soft); background: var(--dark-card) }
.entry-point-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--dark-card);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.entry-point-copy { display: flex; flex-direction: column; gap: 2px }
.entry-point-copy strong { font-size: 14px; font-weight: 500; line-height: 18px }
.entry-point-copy small {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
  white-space: nowrap;
}
/* Inline email capture — "Notify me" and "Join us" both expand a
   trigger into this in place, rather than navigating away. */
.inline-subscribe { display: flex; flex-direction: column; gap: 8px; align-items: flex-start }
.inline-subscribe-prompt { font-size: 13px; line-height: 18px; color: var(--body) }
.on-ink .inline-subscribe-prompt { color: var(--on-ink-soft) }
.inline-subscribe-form { display: flex; flex-wrap: wrap; gap: 8px; width: 100% }
.inline-subscribe-form input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
}
.on-ink .inline-subscribe-form input {
  background: var(--dark-card);
  border-color: var(--dark-line);
  color: var(--on-dark);
}
.inline-subscribe-form input:focus { outline: none; border-color: var(--blue) }
.inline-subscribe-form button {
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--blue);
  color: var(--on-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, opacity .15s;
}
.inline-subscribe-form button:hover { background: var(--blue-active) }
.inline-subscribe-form button:disabled { opacity: 0.6; cursor: not-allowed }
.inline-subscribe-success { font-size: 13px; line-height: 18px; color: var(--blue); font-weight: 500 }
.on-ink .inline-subscribe-success { color: #6fa8ff }
.inline-subscribe-success-detail { font-size: 12px; line-height: 17px; color: var(--muted) }
.on-ink .inline-subscribe-success-detail { color: var(--on-ink-soft) }
.inline-subscribe-error { font-size: 12px; line-height: 16px; color: #ef4444; width: 100% }
/* ─────────────────────────────────
   Footer
   ───────────────────────────────── */
footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 32px 0 }
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.footer .logo { height: 22px }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px }
.footer-links a:hover { color: var(--ink) }

/* ─────────────────────────────────
   Responsive
   ───────────────────────────────── */
@media (max-width: 1120px) {
  .hero-grid, .featured-grid, .council-grid, .join-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .join-grid { align-items: start }
  .note { height: auto; min-height: 220px }
}
/* Nav collapses to a hamburger below tablet width — the full row
   (brand + 4 links + Join pill) doesn't reliably fit a 768px screen,
   and at this larger nav-link size needs the same 1120px breakpoint
   the rest of the site's two-column sections already collapse at. */
@media (max-width: 1120px) {
  .nav-toggle { display: flex }
  .navlinks {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 16px 32px rgba(10,11,13,0.1);
    padding: 4px var(--gutter) 16px;
  }
  .navlinks[data-open] { display: flex }
  .navlinks a:not(.nav-cta) {
    padding: 14px 2px;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 15px;
  }
  .navlinks .nav-cta {
    margin-top: 14px;
    justify-content: center;
    text-align: center;
    padding: 14px 18px;
  }
  /* The edit-mode toggle can land in this panel too (it's inserted as
     .navlinks' first child) — match it to the nav-cta treatment
     instead of leaving it as a small pill stretched full-width. */
  .navlinks .edit-toggle {
    margin-bottom: 8px;
    text-align: center;
    padding: 14px 18px;
  }
}
@media (max-width: 860px) {
  :root { --section: 80px }
  .display { font-size: clamp(48px, 9vw, 88px); line-height: 1 }
  .section-head h2, .council-intro h2 { font-size: clamp(32px, 5.5vw, 52px); line-height: 1.08 }
  .logos-heading { font-size: clamp(32px, 5.5vw, 52px); line-height: 1.08 }
  .featured-body h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.06 }
  .join h2 { font-size: clamp(34px, 6.5vw, 64px); line-height: 1.06 }
  .section-head--rail { flex-wrap: wrap; gap: 24px }
  .section-head--rail .rail-controls { padding-bottom: 0 }
  .upcoming-item { grid-template-columns: 1fr; gap: 12px }
  .upcoming-notify, .upcoming-status { justify-self: start }
  .entry-point { width: 100% }
  .logos { padding: 48px 0 56px }
  .logo-track { gap: 48px }
  .logo-item img { height: 80px }
  .logo-marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  }
}
@media (max-width: 620px) {
  .notes-grid { grid-template-columns: minmax(0, 1fr) }
  .recent-card { flex-basis: min(357px, 82vw) }
  .footer { flex-direction: column; align-items: flex-start; gap: 20px }
  .listen-pill { height: 44px }
  .upcoming-notify, .upcoming-status { min-height: 44px; display: inline-flex; align-items: center; justify-content: center }
  .join-stats { gap: 16px }
  .join-stat-value { font-size: clamp(20px, 6.5vw, 34px); line-height: 1.1 }
  .hero-visual { margin-inline: calc(-1 * var(--gutter)) }
  .logo-item img { height: 64px }
  .logo-track { gap: 36px }
}
@media (max-width: 460px) {
  .brand-tag { display: none }
}

/* ─────────────────────────────────
   Practitioners
   ───────────────────────────────── */
.page-head { padding: 72px 0 0 }
.page-head h1 {
  font-size: 72px;
  font-weight: 600;
  line-height: 74px;
  letter-spacing: -0.04em;
  margin-top: 14px;
  max-width: 16ch;
}
.page-head .lead {
  margin-top: 24px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 27px;
  color: var(--body);
}
.page-head .rule { margin-top: 56px; border-top: 1px solid var(--hairline) }

/* Editorial horizontal profiles — one full-width section per
   practitioner, not a grid of cards. */
.practitioners-list { display: flex; flex-direction: column }
.practitioner {
  display: grid;
  grid-template-columns: minmax(200px, 28%) 1fr;
  align-items: start;
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}
.practitioners-list > .practitioner:first-child { border-top: 0; padding-top: 0 }

.practitioner-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--hairline), var(--hairline-soft));
  display: grid;
  place-items: center;
}
.practitioner-photo-img { width: 100%; height: 100%; object-fit: cover; display: block }
.practitioner-photo-initials { font-size: clamp(40px, 6vw, 72px); font-weight: 500; color: var(--muted) }

.practitioner-info { min-width: 0; padding-top: 4px }
.practitioner-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.practitioner-name { font-size: 32px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em }
.practitioner-linkedin {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  color: #0a66c2;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}
.practitioner-linkedin:hover { border-color: #0a66c2; background: rgba(10, 102, 194, 0.08) }
.practitioner-role { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--body) }
.practitioner-note {
  margin-top: 24px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 28px;
  color: var(--body);
  white-space: pre-line;
}
.practitioner-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px }
.practitioner-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
}

@media (max-width: 1120px) {
  .page-head h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04 }
  .practitioner { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 }
  .practitioner-photo { width: min(320px, 100%) }
  .practitioner-name { font-size: 28px }
}
@media (max-width: 860px) {
  .page-head { padding-top: 48px }
  .practitioner { padding: 40px 0 }
}

/* ─────────────────────────────────
   Edit mode
   Chrome that only exists while editing; the page itself is
   untouched when it is off.
   ───────────────────────────────── */
.edit-toggle {
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--canvas);
  transition: border-color .15s, color .15s, background .15s;
}
.edit-toggle:hover { border-color: var(--ink); color: var(--ink) }
.edit-toggle.is-on { background: var(--blue); border-color: var(--blue); color: var(--on-dark) }

.edit-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--on-dark);
  padding: 12px 0;
}
.edit-bar[hidden] { display: none }
.edit-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px }
.edit-bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
}
.edit-bar-actions { display: flex; gap: 8px }
.edit-bar .rec-btn { border-color: #333; color: var(--on-dark); background: transparent }
.edit-bar .rec-btn:hover { border-color: var(--on-ink-soft); background: var(--dark-card) }
body.editing { padding-bottom: 64px }

/* Per-record controls: hidden until edit mode is on. */
.rec-tools { display: none }
body.editing .rec-tools {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline);
}
body.editing .upcoming-item .rec-tools { grid-column: 1 / -1; margin-top: 4px }
body.editing .council-point .rec-tools { grid-column: 2 }
.rec-btn {
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--canvas);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color .15s, color .15s;
}
.rec-btn:hover { border-color: var(--ink); color: var(--ink) }
.note .rec-tools { border-top-color: var(--hairline-soft) }

[data-add] { display: none }
body.editing [data-add] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px dashed var(--hairline);
  border-radius: 999px;
  background: var(--canvas);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
  transition: border-color .15s, color .15s;
}
body.editing [data-add]:hover { border-color: var(--blue); color: var(--blue) }


.empty-note {
  font-size: 15px;
  line-height: 25px;
  color: var(--muted);
  padding: 24px 0;
}

/* Editor dialog */
.editor {
  width: min(680px, calc(100vw - 32px));
  max-height: 86vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(10,11,13,0.24);
}
.editor::backdrop { background: rgba(10,11,13,0.45) }
.ed-form { display: flex; flex-direction: column; max-height: 86vh }
.ed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--hairline);
}
.ed-head h2 { font-size: 20px; font-weight: 500; line-height: 26px; letter-spacing: -0.015em }
.ed-x { font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 8px }
.ed-x:hover { color: var(--ink) }
.ed-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 28px;
  overflow-y: auto;
}
.ed-field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1 }
.ed-field--half { grid-column: auto }
.ed-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ed-field input, .ed-field textarea, .ed-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
}
.ed-field textarea { resize: vertical; min-height: 76px }
.ed-field #f_json { font-family: var(--font-mono); font-size: 12px; line-height: 18px }
.ed-field input:focus, .ed-field textarea:focus, .ed-field select:focus {
  outline: none; border-color: var(--blue);
}
.ed-check { flex-direction: row; align-items: center; gap: 10px }
.ed-check input { width: auto }
.ed-check span {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.ed-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 20px 28px;
  border-top: 1px solid var(--hairline);
}
.btn-sm { min-height: 0; padding: 10px 20px; font-size: 13px }
.btn-ghost-sm {
  min-height: 0; padding: 10px 20px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--canvas);
}
.btn-ghost-sm:hover { border-color: var(--ink) }

@media (max-width: 620px) {
  .ed-body { grid-template-columns: minmax(0, 1fr) }
  .ed-field--half { grid-column: 1 / -1 }
  .edit-bar-inner { flex-direction: column; align-items: flex-start; gap: 10px }
}

/* "Add conversation" sits at the end of the rail, the same size as a
   card, so it reads as the next slot rather than a stray button. */
.recent-card--add { display: none }
body.editing .recent-card--add {
  display: flex;
  flex: 0 0 357px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 12px;
  width: 357px;
  height: 357px;
  margin-top: 0;
  padding: 0;
  border: 1px dashed var(--hairline);
  border-radius: 16px;
  background: var(--canvas);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color .15s, color .15s;
}
body.editing .recent-card--add:hover { border-color: var(--blue); color: var(--blue) }
.add-plus { font-family: var(--font-sans); font-size: 34px; line-height: 34px; font-weight: 300 }

/* Reorder arrows — same pill as Edit/Delete, just tighter. */
.rec-move {
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 13px;
  letter-spacing: 0;
}
.rec-btn:disabled { opacity: 0.35; cursor: not-allowed }
.rec-btn:disabled:hover { border-color: var(--hairline); color: var(--muted) }

/* The email CTA takes the full width under the two social links. */
.entry-point--wide { width: 100% }
