/* Exindel — Ghost theme, design direction B
   Structured and light: white header, navy feature bands, square-edged cards and buttons.
   Colours are the brand palette (brand/Exindel_Brand_Guidelines.md); type is IBM Plex Sans.
   Contrast: text pairs below are WCAG AA. Periwinkle on white is 3.7:1, so it is used for
   accents, borders and focus rings (non-text, 3:1), never for body-size text on white. */

:root {
  /* Brand palette */
  --midnight: #1A2044;   /* Primary Brand */
  --space: #0B1021;      /* Background Dark */
  --periwinkle: #5082E6; /* Accent Primary */
  --mint: #8ABBB8;       /* Accent Mint */
  --charcoal: #232832;   /* Neutral Dark: body copy */
  --slate: #5A6982;      /* Neutral Muted: secondary text, input borders */
  --off-white: #F8FAFC;  /* Surface Light */
  --white: #FFFFFF;      /* Card / Surface */

  /* Roles */
  --bg: var(--off-white);
  --surface: var(--white);
  --text: var(--charcoal);
  --text-2: var(--slate);
  --heading: var(--midnight);
  --line: rgba(90, 105, 130, 0.2);   /* Slate tint: decorative dividers only */
  --line-2: rgba(90, 105, 130, 0.35);
  --tint: rgba(80, 130, 230, 0.1);   /* Periwinkle tint behind Midnight text */
  --focus: var(--periwinkle);
  --danger: #B42318;                 /* Form errors: not a brand colour; AA on off-white and white */

  --radius: 2px;
  --max: 1200px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: var(--gh-font-body, "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif);
  --font-heading: var(--gh-font-heading, var(--font));
  --mono: "IBM Plex Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--midnight); color: var(--white); padding: 10px 16px; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: 600; color: var(--heading); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
h3, .h3 { font-size: 1.25rem; line-height: 1.3; }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.h4 { font-size: 1.125rem; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.kicker, .eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid var(--midnight); cursor: pointer;
  background: var(--midnight); color: var(--white);
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--space); border-color: var(--space); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--midnight); border-color: var(--slate); }
.btn.ghost:hover { border-color: var(--midnight); background: var(--tint); }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--midnight); font-weight: 600; font-size: 15px; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--periwinkle); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link svg { transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.ctas.left { justify-content: flex-start; }
.cta-note { margin: 16px 0 0; font-size: 14px; color: var(--text-2); }

/* Dark bands (navy): light text, light buttons */
.dark, .cta-card, .site-foot { color: var(--off-white); --heading: var(--white); --text-2: rgba(248, 250, 252, 0.78); --line: rgba(248, 250, 252, 0.14); }
.dark .btn, .cta-card .btn { background: var(--off-white); border-color: var(--off-white); color: var(--midnight); }
.dark .btn:hover, .cta-card .btn:hover { background: var(--white); border-color: var(--mint); }
.dark .btn.ghost { background: transparent; color: var(--white); border-color: rgba(248, 250, 252, 0.6); }
.dark .kicker, .cta-card .kicker { color: var(--mint); }

/* Latest Posts: readable and manually scrollable with native horizontal scrolling. */
.latest-posts { background: var(--white); border-bottom: 1px solid var(--line); color: var(--midnight); }
.latest-posts-inner { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.latest-posts-label { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.latest-posts-viewport { min-width: 0; flex: 1; overflow-x: auto; }
.latest-posts-track { display: flex; width: max-content; }
.latest-posts-list { display: flex; align-items: center; flex: none; gap: 28px; margin: 0; padding: 0 28px 0 4px; list-style: none; }
.latest-posts-list li { flex: none; }
.latest-posts-list a { display: block; padding: 14px 0; font-size: 14px; white-space: nowrap; }
.latest-posts-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.latest-posts-list a:focus-visible { outline-offset: 0; }
@media (max-width: 480px) {
  .latest-posts-inner { gap: 8px; }
  .latest-posts-label { font-size: 10px; letter-spacing: 0; }
}
.latest-posts-toggle { flex: none; min-width: 48px; min-height: 44px; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--white); color: var(--midnight); font: inherit; font-size: 12px; cursor: pointer; }
.latest-posts-toggle[hidden] { display: none; }
.latest-posts.is-moving .latest-posts-viewport { overflow-x: hidden; }
.latest-posts.is-moving .latest-posts-track { animation: latest-posts-scroll var(--ticker-duration) linear infinite; }
.latest-posts.is-paused .latest-posts-track, .latest-posts:hover .latest-posts-track, .latest-posts:focus-within .latest-posts-track { animation-play-state: paused; }
/* Keyboard focus restores the original list so every headline can scroll into view. */
.latest-posts-viewport:focus-within .latest-posts-track { animation: none; }
.latest-posts.is-moving .latest-posts-viewport:focus-within { overflow-x: auto; }
.latest-posts-viewport:focus-within .latest-posts-copy, .latest-posts-copy[hidden] { display: none; }
@keyframes latest-posts-scroll { to { transform: translateX(calc(-1 * var(--ticker-distance))); } }
@media (prefers-reduced-motion: reduce) {
  .latest-posts.is-moving .latest-posts-track { animation: none; }
  .latest-posts.is-moving .latest-posts-viewport { overflow-x: auto; }
  .latest-posts-copy, .latest-posts-toggle { display: none; }
}

/* ---------- Header ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-nav.scrolled { box-shadow: 0 6px 20px -12px rgba(11, 16, 33, 0.25); }
.nav-inner { position: relative; display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--midnight); }
.brand img { width: auto; height: 28px; }
.wordmark { font-weight: 700; font-size: 15px; letter-spacing: .16em; }
.nav-menu { margin-left: auto; }
.menu { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-menu .menu a {
  position: relative; display: block; padding: 8px 12px;
  font-size: 15px; font-weight: 500; color: var(--charcoal);
  transition: color .2s;
}
.nav-menu .menu a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--periwinkle); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-menu .menu a:hover { color: var(--midnight); }
.nav-menu .menu a:hover::after, .nav-menu .is-current a::after { transform: scaleX(1); }
.nav-menu .is-current a { color: var(--midnight); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: var(--midnight);
}
.nav-toggle span {
  position: absolute; left: 12px; width: 20px; height: 2px; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.open .nav-toggle span:nth-child(2) { opacity: 0; }
.open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-inner { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; margin: 1px 0 0;
    padding: 4px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(11, 16, 33, 0.3);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .open .nav-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-menu .menu { flex-direction: column; gap: 0; }
  .nav-menu .menu a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-menu .menu a::after { left: 0; right: auto; width: 32px; }
}

/* ---------- Footer ---------- */
.site-foot { background: var(--space); padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 48px; padding-bottom: 36px; }
.site-foot .brand { color: var(--white); }
.foot-motto { margin: 14px 0 0; color: var(--mint); font-weight: 500; letter-spacing: .02em; }
.foot-col, .foot-col .menu { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-foot a { color: var(--text-2); transition: color .2s; }
.site-foot a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between;
  position: relative; padding-top: 20px;
  font-size: 14px; color: var(--text-2);
}
.foot-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.foot-base .menu { gap: 24px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ---------- Sections & page heads ---------- */
section { scroll-margin-top: calc(var(--header-h) + 8px); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding-bottom: clamp(56px, 8vw, 96px); }
.section-head { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p:last-child { margin: 14px 0 0; color: var(--text-2); }
.section-head.split {
  max-width: none; display: flex; flex-wrap: wrap; gap: 20px 48px;
  align-items: flex-end; justify-content: space-between;
}
.section-head.split > div { max-width: 40rem; }
.page-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero h1 { max-width: 20ch; }
.page-lede { margin: 18px 0 0; max-width: 40rem; color: var(--text-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.page-lede a, .empty a { color: var(--midnight); text-decoration: underline; text-decoration-color: var(--periwinkle); text-underline-offset: 3px; }
.empty { margin: 28px 0 0; color: var(--text-2); }
.more { margin: 28px 0 0; }

/* ---------- Home ---------- */
/* Hero: text on navy, and the signal panel running to the right edge (stacked under the text on a phone) */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--midnight); }
.hero-text {
  padding: clamp(48px, 8vw, 104px) clamp(24px, 4vw, 56px) clamp(48px, 8vw, 104px)
           max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));  /* lines up with .wrap */
}
.hero h1 { max-width: 16ch; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.lede { margin: 20px 0 0; max-width: 34rem; color: var(--text-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
/* The panel's gradient runs between two tints of Midnight, as in the B mockup */
.hero-visual { position: relative; overflow: hidden; min-height: 260px; background: linear-gradient(135deg, #232A57 0%, #11173A 100%); }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(138, 187, 184, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 187, 184, .12) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-visual canvas, .hero-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-visual img { object-fit: cover; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-visual { min-height: 220px; } }

/* Stage band: Explore · Innovate · Deliver, each a link to its part of the site */
.stages { background: var(--white); border-bottom: 1px solid var(--line); }
.stage-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage { display: grid; gap: 4px; padding: 24px clamp(16px, 3vw, 32px); border-right: 1px solid var(--line); transition: background-color .2s; }
.stage:first-child { padding-left: 0; }
.stage:last-child { border-right: 0; }
.stage:hover { background: var(--tint); }
.stage-word { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.stage-name { color: var(--midnight); font-size: 1.125rem; font-weight: 600; }
.stage-note { font-size: 15px; color: var(--text-2); }
@media (max-width: 760px) {
  .stage-row { grid-template-columns: minmax(0, 1fr); }
  .stage, .stage:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stage:last-child { border-bottom: 0; }
}

/* Lab strip: the four Research Areas on navy */
.lab-strip { background: var(--midnight); }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.areas li { padding: 24px clamp(16px, 2vw, 24px) 0 0; }
.areas h3 { font-size: 1.125rem; }
.areas p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }
@media (max-width: 980px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* Outputs: the newest Build next to the Papers line */
.outputs-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.outputs-row .empty { margin: 0; }
@media (max-width: 760px) { .outputs-row { grid-template-columns: minmax(0, 1fr); } }

.founder-strip { padding-top: 0; }
.founder-strip .founder { margin-bottom: 0; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.section-tight > .filters { margin-bottom: 28px; }
.chip {
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); color: var(--charcoal); border: 1px solid var(--line-2);
  font: inherit; font-size: 14px; font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--midnight); }
.chip.is-active { background: var(--midnight); color: var(--white); border-color: var(--midnight); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .3s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: 0 12px 28px -18px rgba(11, 16, 33, 0.35); }
.card[hidden] { display: none; }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 20px 22px 18px; }
.card h3 { margin: 12px 0 8px; font-size: 1.125rem; }
.card-link:hover h3 { text-decoration: underline; text-decoration-color: var(--periwinkle); text-underline-offset: 4px; }
.card p { margin: 0 0 20px; color: var(--text-2); font-size: 15px; }
.card-meta {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2);
}
.card-img { margin: -20px -22px 18px; width: calc(100% + 44px); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.type, .topic {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate);
}
.type { padding: 3px 8px; background: var(--tint); color: var(--midnight); }
.topic { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }

/* ---------- Subscribe ---------- */
.cta-card { padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); background: var(--midnight); }
.cta-card h2 { max-width: 22ch; }
.cta-card > p { margin: 14px 0 0; max-width: 38rem; color: var(--text-2); }
.member-note strong { color: var(--white); font-weight: 600; }
.subscribe-form { position: relative; margin: 28px 0 0; max-width: 520px; display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe-form input[type=email] {
  flex: 1 1 220px; min-width: 0; padding: 12px 14px;
  border: 1px solid var(--slate); border-radius: var(--radius);
  background: var(--white); color: var(--charcoal); font: inherit; font-size: 16px;
}
.nl-choices { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 6px; padding: 0; border: 0; }
.nl-choices label { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.nl-choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--periwinkle); }
.subscribe-form .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.subscribe-form.none-chosen .pick-one { display: block; color: var(--text-2); }
.subscribe-form input::placeholder { color: var(--slate); }
.subscribe-form .t-busy, .subscribe-form.loading .t-idle { display: none; }
.subscribe-form.loading .t-busy { display: inline; }
.form-msg { display: none; flex-basis: 100%; margin: 6px 0 0; font-size: 15px; }
.subscribe-form.success .ok { display: block; color: var(--mint); }
.subscribe-form.error .err { display: block; color: var(--white); }
@media (max-width: 520px) { .subscribe-form .btn { flex: 1 1 100%; } }

/* ---------- Join the Lab ---------- */
.join-intro { margin: 12px 0 0; color: var(--text-2); }
.join-form { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 20px 16px; }
.join-form .field { flex: 1 1 100%; min-width: 0; }
.join-form .field.half { flex: 1 1 260px; }
.join-form label { display: block; font-weight: 600; color: var(--heading); }
.join-form .optional { font-weight: 400; color: var(--text-2); }
.join-form .hint { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.join-form input, .join-form select, .join-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  border: 1px solid var(--slate); border-radius: var(--radius);
  background: var(--white); color: var(--charcoal); font: inherit; font-size: 16px;
}
.join-form textarea { resize: vertical; min-height: 6.5em; }
.join-form [aria-invalid=true] { border-color: var(--danger); }
.join-form .field-error { margin: 6px 0 0; font-size: 15px; color: var(--danger); }
.join-form .field-error:empty { display: none; }
.join-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join-actions { flex-basis: 100%; }
.join-form .btn:disabled { opacity: 0.6; cursor: wait; }
.join-form .t-busy, .join-form.loading .t-idle { display: none; }
.join-form.loading .t-busy { display: inline; }
.join-form.success .ok { display: block; padding: 14px 16px; background: var(--tint); color: var(--midnight); font-weight: 500; }
.join-form.error .err { display: block; color: var(--danger); }
.join-form .err a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .join-form .btn { width: 100%; } }

/* ---------- Article ---------- */
.article-head { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 32px; }
.article-head h1 { margin-top: 16px; font-size: clamp(2rem, 4.4vw, 3rem); }
.article-lede { margin: 16px 0 0; color: var(--text-2); font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.article-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-2); }
.article-image { margin-top: 8px; margin-bottom: 40px; }
.article-image img { width: 100%; }
.article-image figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--text-2); }
.page .article-head + .gh-content, .page-template .article-head + .gh-content { padding-bottom: clamp(56px, 8vw, 96px); }

.gh-content { font-size: 18px; line-height: 1.7; padding-bottom: 48px; }
.gh-content > * + * { margin-top: 1.3em; margin-bottom: 0; }
.gh-content > :first-child { margin-top: 0; }
.gh-content h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.6vw, 1.85rem); }
.gh-content h3 { margin-top: 1.8em; font-size: 1.3rem; }
.gh-content h2 + *, .gh-content h3 + * { margin-top: .6em; }
.gh-content a { color: var(--midnight); text-decoration: underline; text-decoration-color: var(--periwinkle); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gh-content a:hover { text-decoration-color: var(--midnight); }
.gh-content strong { color: var(--midnight); }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .4em; }
.gh-content li::marker { color: var(--slate); }
.gh-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--periwinkle); color: var(--midnight); font-size: 1.1em; }
.gh-content hr { border: 0; height: 1px; background: var(--line-2); margin: 3em 0; }
.gh-content code { font-family: var(--mono); font-size: .88em; padding: .12em .35em; background: var(--tint); color: var(--midnight); }
.gh-content pre { overflow-x: auto; padding: 18px 22px; background: var(--space); color: var(--off-white); font-size: 15px; line-height: 1.6; }
.gh-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--text-2); }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.gh-content th, .gh-content td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; }
.gh-content th { color: var(--midnight); font-weight: 600; }

/* Daily Brief: the AI label, and the badge on a Pick */
.ai-label { margin: 18px 0 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.ai-label::before { content: ""; width: 8px; height: 8px; background: var(--mint); }
.article-head .pick { margin: 10px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--midnight); }

.post-end { margin: 0 auto; padding-top: 24px; padding-bottom: clamp(48px, 7vw, 80px); font-size: 18px; color: var(--text-2); }
.post-end::before { content: ""; display: block; height: 1px; margin-bottom: 24px; background: var(--line-2); }
.post-end a { color: var(--midnight); font-weight: 600; text-decoration: underline; text-decoration-color: var(--periwinkle); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Outputs: the Papers and Builds parts, the Papers policy, and a Build's way back */
.output-part + .output-part { padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.output-part h2 { margin: 0; }
.output-part h2 + .grid, .output-part h2 + .policy { margin-top: 24px; }
.part-intro { margin: 10px 0 24px; max-width: 40rem; color: var(--text-2); }
.policy {
  max-width: 44rem; padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--mint);
}
.policy p { margin: 0; color: var(--text-2); }
.policy .policy-line { margin-bottom: 10px; color: var(--heading); font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; line-height: 1.35; }
.card-go { color: var(--midnight); font-weight: 600; }
.back { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--midnight); }
.back:hover { text-decoration: underline; text-decoration-color: var(--periwinkle); text-underline-offset: 3px; }

/* About: the Founder's photo, name, line and LinkedIn */
.founder {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 36px); margin-bottom: clamp(36px, 5vw, 56px);
  padding: clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--mint);
}
.founder-photo { flex: none; margin: 0; width: clamp(120px, 26vw, 200px); }
.founder-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.founder-text p { margin: 0; }
.founder-name { color: var(--heading); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.2; }
.founder-text .founder-line { margin-top: 6px; color: var(--text-2); }
.founder-text .founder-links { margin-top: 14px; }
.founder-links a { color: var(--midnight); font-weight: 600; text-decoration: underline; text-decoration-color: var(--periwinkle); text-underline-offset: 3px; }
@media (max-width: 520px) { .founder { flex-direction: column; align-items: flex-start; } }

/* Koenig wide/full cards (required by Ghost) */
.kg-width-wide { position: relative; width: min(1040px, calc(100vw - 2 * var(--gutter))); left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }

.comments { padding-bottom: clamp(48px, 7vw, 96px); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: 15px; color: var(--text-2); }
.pagination a { color: var(--midnight); font-weight: 600; text-decoration: underline; text-decoration-color: var(--periwinkle); text-underline-offset: 4px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* Website-only edited speech, stored as a native Ghost HTML card. */
.reading-transcript { margin-block: 2rem; padding: 1.25rem; border: 1px solid #ccd5dc; overflow-wrap: anywhere; scroll-margin-top: 6rem; }
.reading-transcript summary { cursor: pointer; font-weight: 600; }
.reading-transcript summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.reading-transcript[open] summary { margin-bottom: 1.25rem; }
.reading-transcript > :last-child { margin-bottom: 0; }
