/* home.css — the homepage. Scoped to .home so nothing here reaches another
   page. The lens carousel, the publications carousel and the technology
   cards are components (templates/components/lens-carousel.html,
   news-carousel.html, technology-cards.html), styled here because the
   homepage is, for now, the only page that carries them. */

.home {
  --h-accent: #b07a4a;
  --h-accent-deep: #8a5f38;
  --h-ink: #1a1a1a;
  --h-text: #333333;
  --h-muted: #555555;
  --h-quiet: #767067;
  --h-faint: #c0bfbb;
  --h-rule: #e6e6e6;
  --h-warm: #f6f3ed;
  --h-warm-rule: #e6e0d6;
  --h-panel: #faf8f4;
  --h-night: #16140f;
  --h-mono: 'JetBrains Mono', ui-monospace, monospace;
  --h-serif: 'Vollkorn', Palatino, 'Times New Roman', serif;
  --h-wide: 1240px;
  --h-mid: 1080px;
  background: #fefefe;
  color: var(--h-text);
  font-family: var(--h-serif);
}
.home a { color: var(--h-ink); text-decoration: none; }
.home a:hover { color: var(--h-accent-deep); }
.home h1, .home h2, .home h3, .home p { margin: 0; }
.home :focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }

.h-label {
  font-family: var(--h-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--h-quiet);
}
.h-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--h-ink);
  border-radius: 999px;
  background: #fefefe;
  color: var(--h-ink);
  font-family: var(--h-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.h-pill--dark { background: var(--h-ink); color: #fefefe; min-height: 48px; padding: 0 22px; letter-spacing: 0.12em; }
.home a.h-pill--dark { color: #fefefe; }
.home a.h-pill--dark:hover { color: #fefefe; background: #000; }
.h-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--h-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── the banner ───────────────────────────────────────────────────────── */
.home-intro {
  max-width: var(--h-mid);
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.home-intro .home-eyebrow {
  margin: 0 0 20px;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666666;
}
.home-intro h1 {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5.2vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--h-ink);
  max-width: 18ch;
}
.home-intro h1 em { font-style: italic; color: var(--h-accent); }
.home-intro .home-standfirst {
  margin: 0 auto 28px;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.45;
  color: #666666;
  max-width: 62ch;
  text-wrap: pretty;
}
.home-intro .home-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }
.home-intro .home-tags span {
  font-family: var(--h-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c8a85;
}

/* ── what the Foundation does ─────────────────────────────────────────── */
.home-about { max-width: 760px; margin: 0 auto; padding: 60px 24px; display: flex; flex-direction: column; gap: 20px; }
.home-about h2 { font-size: 1.9rem; font-weight: 400; font-style: italic; line-height: 1.25; color: var(--h-ink); }
.home-about p { font-size: 1.08rem; line-height: 1.8; color: var(--h-text); }
.home-more { display: flex; flex-direction: column; gap: 20px; }
.home-more[hidden] { display: none; }
.home-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.home-people div { padding: 18px 18px 20px; background: var(--h-panel); border-radius: 7px; display: flex; flex-direction: column; gap: 8px; }
.home-people strong { font-family: var(--h-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--h-accent-deep); }
.home-people span { font-size: 1rem; line-height: 1.6; color: var(--h-text); }
.home-thesis { background: #fbfaf8; border: 1px solid #eeeeee; border-radius: 7px; padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.home-thesis p { font-size: 1.18rem; font-style: italic; line-height: 1.6; color: var(--h-ink); }
.home-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.home-steps a { border-top: 2px solid var(--h-accent); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.home-steps .step-title { font-size: 1.02rem; line-height: 1.4; color: var(--h-ink); }
.home-steps .step-desc { font-size: 0.92rem; line-height: 1.5; color: var(--h-muted); }
.home-about .h-pill { align-self: flex-start; }
.home-about .h-pill svg { transition: transform 0.2s; }
.home-about .h-pill[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ── governance: a neutral forum ──────────────────────────────────────── */
.home-gov { background: var(--h-warm); border-top: 1px solid var(--h-warm-rule); }
.home-gov__inner { max-width: var(--h-wide); margin: 0 auto; padding: 76px 24px 64px; display: flex; flex-direction: column; gap: 48px; }
.home-gov__lead { display: flex; flex-direction: column; gap: 18px; max-width: 880px; }
.home-gov__lead h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 400; line-height: 1.15; color: var(--h-ink); }
.home-gov__lead p { font-size: 1.15rem; line-height: 1.75; color: var(--h-text); max-width: 68ch; }
.home-gov__lead .home-quote { font-size: 1.3rem; font-style: italic; line-height: 1.5; color: var(--h-accent); }
.home-forum { display: flex; flex-direction: column; gap: 20px; }
.home-forum ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.home-forum li { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--h-ink); padding-top: 16px; }
.home-forum .n { font-family: var(--h-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--h-accent); }
.home-forum .t { font-size: 1.2rem; line-height: 1.3; color: var(--h-ink); }
.home-forum .d { font-size: 1rem; line-height: 1.6; color: var(--h-muted); }
.home-forum .now { font-family: var(--h-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--h-quiet); }
.home-gov__split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px 64px; }
.home-neutral { display: flex; flex-direction: column; gap: 18px; }
.home-neutral__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 28px; }
.home-neutral__grid a { display: flex; flex-direction: column; gap: 6px; }
.home a.home-neutral__item { color: var(--h-text); }
.home-neutral__grid .t { font-size: 1.12rem; color: var(--h-ink); }
.home-neutral__grid .d { font-size: 0.98rem; line-height: 1.6; color: var(--h-muted); }
.home-neutral__grid .go, .home-part .go { font-family: var(--h-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--h-accent-deep); }
.home-neutral > .h-link { align-self: flex-start; border-bottom: 1px solid var(--h-faint); }
.home-part { background: #fefefe; border: 1px solid var(--h-warm-rule); border-radius: 8px; padding: 24px 24px 12px; display: flex; flex-direction: column; gap: 6px; align-self: start; }
.home-part a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; border-bottom: 1px solid #eeeeee; }
.home-part a:last-child { border-bottom: 0; }
.home-part a span:first-child { font-size: 1.06rem; }
.home-found { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-top: 20px; border-top: 1px solid var(--h-warm-rule); }
.home-found a { display: flex; align-items: center; min-height: 44px; font-size: 1.02rem; }

/* ── section heads ────────────────────────────────────────────────────── */
.home-lens__head, .home-news__head, .home-tech__head {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.home-lens__head h2, .home-news__head h2, .home-tech__head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--h-ink);
}
.home-tech__head p { font-size: 1.08rem; line-height: 1.75; color: var(--h-muted); }

.round {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid #d3cfc7;
  background: #fefefe;
  color: var(--h-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.round:hover { border-color: var(--h-ink); }

/* ── the lens carousel ────────────────────────────────────────────────── */
.home-lens { background: transparent; border-top: 1px solid var(--h-rule); padding: 52px 0 20px; display: flex; flex-direction: column; gap: 28px; }
.lens { --slide: min(1000px, calc(100vw - 96px)); display: flex; flex-direction: column; gap: 18px; }
.lens__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px calc((100% - var(--slide)) / 2);
  scroll-padding: 0 calc((100% - var(--slide)) / 2);
}
.lens__track::-webkit-scrollbar { display: none; }
.lens__slide { flex: 0 0 var(--slide); scroll-snap-align: center; transition: opacity 0.3s; }
.lens__slide[data-off] { opacity: 0.45; }
.lens__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #16140f;
  box-shadow: 0 10px 30px rgba(26, 20, 10, 0.12);
}
.lens__stage img, .lens__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lens__stage video { object-fit: contain; background: #000; }
.lens__over { position: absolute; inset: 0; box-sizing: border-box; padding: 26px 30px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.lens__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--h-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #f1e8da; }
.lens__top span { display: inline-flex; align-items: center; gap: 8px; }
.lens__top span + span { color: rgba(241, 232, 218, 0.7); }
.lens__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.lens__words { display: flex; flex-direction: column; gap: 6px; flex: 1 1 360px; min-width: 0; }
.lens__title { font-size: clamp(1.4rem, 2.8vw, 2.3rem); line-height: 1.12; color: #fffaf2; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.lens__sub { font-size: 1.04rem; font-style: italic; line-height: 1.45; color: #efe4d3; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.lens__soon {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(254, 254, 254, 0.14);
  border: 1px solid rgba(254, 254, 254, 0.45);
  font-family: var(--h-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fffaf2;
}
.lens__bottom audio { flex: 1 1 320px; min-width: 240px; }
.lens__controls { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; }
.lens__steps { display: flex; gap: 4px; padding: 4px; border: 1px solid #d8d0c3; border-radius: 999px; background: #fefefe; }
.lens__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--h-muted);
  font-family: var(--h-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.lens__step[aria-current="true"] { background: var(--h-ink); color: #fefefe; }
.lens__guide { max-width: 960px; width: 100%; box-sizing: border-box; margin: -6px auto 6px; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lens__about { font-size: 1.12rem; font-style: italic; line-height: 1.5; color: var(--h-text); text-align: center; }
.lens__ways { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 32px; }
.lens__ways li { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--h-warm-rule); }
.lens__way { display: inline-flex; align-items: center; gap: 8px; font-family: var(--h-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--h-accent-deep); }
.lens__what { font-size: 1.02rem; line-height: 1.6; color: var(--h-muted); }

/* ── the explainer teaser ─────────────────────────────────────────────── */
.home-about { max-width: 880px; padding-top: 32px; padding-bottom: 64px; }

/* ── recent publications ──────────────────────────────────────────────── */
.home-news { background: var(--h-warm); border-top: 1px solid var(--h-warm-rule); border-bottom: 1px solid var(--h-warm-rule); padding: 64px 0 52px; display: flex; flex-direction: column; gap: 30px; }
.home-news__all { text-align: center; }
.news { display: flex; flex-direction: column; gap: 22px; }
.news__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px max(24px, calc((100% - var(--h-wide)) / 2 + 24px)) 14px;
  scroll-padding: 0 max(24px, calc((100% - var(--h-wide)) / 2 + 24px));
}
.news__track::-webkit-scrollbar { display: none; }
.news-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 10px 16px;
  box-sizing: border-box;
  background: #fefefe;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(60, 45, 25, 0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.home a.news-card { color: var(--h-text); }
.news-card:hover { box-shadow: 0 10px 28px rgba(60, 45, 25, 0.14); transform: translateY(-2px); }
.news-card__art { position: relative; display: block; aspect-ratio: 640 / 520; border-radius: 12px; overflow: hidden; }
.news-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 999px;
  background: #fefefe;
  color: var(--h-ink);
  font-family: var(--h-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card__headline {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #fffaf2;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}
.news-card__text {
  padding: 0 6px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--h-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__meta { margin-top: auto; padding: 0 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--h-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--h-quiet); }
.news-card__icons { display: flex; gap: 6px; }
.news-card__icons i { width: 28px; height: 28px; border-radius: 50%; background: #f4efe6; color: var(--h-ink); display: inline-flex; align-items: center; justify-content: center; }
.news-card__icons i.is-soon { background: transparent; border: 1px dashed #b3a591; color: #7d705f; box-sizing: border-box; }
.news__controls { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; }
.news__dots { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: rgba(254, 254, 254, 0.7); }
.news__dots i { width: 6px; height: 6px; border-radius: 3px; background: #cdbfa9; transition: width 0.25s, background 0.25s; }
.news__dots i.is-on { width: 22px; background: var(--h-ink); }

/* ── the technologies ─────────────────────────────────────────────────── */
.home-tech { background: #fefefe; padding: 72px 0 64px; display: flex; flex-direction: column; gap: 30px; }
.home-tech .lens__steps { background: #fefefe; }
.home-tech__cards { max-width: var(--h-wide); width: 100%; box-sizing: border-box; margin: 12px auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 28px; }
.home-tech__all { text-align: center; }
.tech-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tech-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 10px 18px;
  background: #fefefe;
  border: 1px solid var(--h-rule);
  border-radius: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.home a.tech-card { color: var(--h-text); }
.tech-card:hover { box-shadow: 0 10px 28px rgba(26, 20, 10, 0.12); transform: translateY(-2px); }
.tech-card__art { position: relative; display: block; aspect-ratio: 640 / 400; border-radius: 12px; overflow: hidden; }
.tech-card__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tech-card__name { position: absolute; left: 16px; bottom: 12px; font-size: 1.7rem; line-height: 1; color: #fffaf2; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }
.tech-card__status { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: #fefefe; color: var(--h-accent-deep); font-family: var(--h-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.tech-card__line { padding: 4px 6px 0; font-family: var(--h-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-accent-deep); }
.tech-card__text { padding: 0 6px; font-size: 1rem; line-height: 1.5; color: var(--h-muted); }

@media (max-width: 640px) {
  .lens { --slide: calc(100vw - 40px); }
  .lens__track { gap: 10px; }
  .lens__stage { aspect-ratio: 4 / 5; }
  .lens__stage:has(video) { aspect-ratio: 16 / 9; }
  .lens__over { padding: 18px 18px 16px; }
  .lens__step { padding: 0 10px; gap: 6px; font-size: 10px; letter-spacing: 0.06em; }
  .lens__controls .round { display: none; }
  .news-card { flex-basis: 78vw; }
  .news__controls [data-prev], .news__controls [data-next] { display: none; }
  .home-gov__split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home * { scroll-behavior: auto !important; transition: none !important; }
}

/* Titles set over generated art: a shade under the lower edge keeps them
   legible whatever the motif behind. */
.news-card__art::after, .tech-card__art::after {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(180deg, rgba(10, 10, 20, 0) 0%, rgba(10, 10, 20, 0.5) 100%);
  pointer-events: none;
}
.news-card__headline, .tech-card__name, .news-card__chip, .tech-card__status { z-index: 1; }

/* ── the explainer, from _sources/explainer.md ────────────────────────── */
.home-explainer { display: flex; flex-direction: column; gap: 18px; }
.home-explainer[hidden] { display: none; }
.home-explainer h3 { margin: 26px 0 0; font-size: 1.55rem; font-weight: 400; font-style: italic; line-height: 1.25; color: var(--h-ink); }
.home-explainer h4 { margin: 14px 0 0; font-family: var(--h-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-accent-deep); }
.home-explainer h3 strong, .home-explainer h4 strong { font-weight: inherit; }
.home-explainer p { font-size: 1.12rem; line-height: 1.8; color: var(--h-text); text-align: left; hyphens: manual; margin: 0; }
.home-explainer p strong { font-weight: 600; color: var(--h-ink); }

/* ── the explainer, set as one of the Foundation's papers ─────────────── */
.paper { background: #fefefe; border: 1px solid var(--h-rule); border-radius: 10px; box-shadow: 0 2px 14px rgba(40, 30, 15, 0.05); overflow: hidden; }
.paper__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--h-rule);
  background: #fefefe;
  font-family: var(--h-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h-ink);
}
.paper__mark { font-family: var(--h-serif); font-size: 15px; letter-spacing: 0; text-transform: none; }
.paper__sep { color: #ccc; }
.paper__where--quiet { color: #8c8a85; }
.paper__tags { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.paper__tag { border: 1px solid #d9d4cb; border-radius: 3px; padding: 2px 8px; font-size: 9px; color: var(--h-quiet); }
.paper__tag--accent { border-color: var(--h-accent); color: var(--h-accent-deep); }
.paper__body { padding: 44px 56px 48px; display: flex; flex-direction: column; gap: 22px; }
.paper__head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 26px; margin-bottom: 4px; border-bottom: 1px solid #f0ede8; }
.paper .paper__eyebrow { font-family: var(--h-mono); font-size: 10.5px; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; color: var(--h-accent-deep); }
.paper .paper__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; font-style: normal; line-height: 1.1; color: var(--h-ink); }
.paper .paper__subtitle { font-size: 1.3rem; font-style: italic; line-height: 1.4; color: var(--h-muted); }
.paper .paper__byline { font-family: var(--h-mono); font-size: 10px; line-height: 1.6; letter-spacing: 0.12em; text-transform: uppercase; color: var(--h-quiet); }
.paper__section { display: block; margin-top: 30px; font-family: var(--h-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--h-quiet); }
.paper__section + h3 { margin-top: 6px; }
.home-explainer h3 { margin-top: 0; }
.home-about .home-explainer { gap: 18px; }
@media (max-width: 640px) {
  .paper__body { padding: 28px 20px 32px; }
  .paper__tags { margin-left: 0; width: 100%; }
}

/* The Foundation's mark, opening the introduction: the Sov mark itself
   (static/img/mark.svg, in ink), without the masthead's circle. */
.home-glyph { display: inline-flex; margin-bottom: 14px; color: var(--h-ink); }
.home-glyph__mark {
  width: 34px;
  height: 64px;
  display: block;
  background-color: currentColor;
  -webkit-mask: url("/static/img/mark.svg") center / contain no-repeat;
  mask: url("/static/img/mark.svg") center / contain no-repeat;
}

/* The end card on a video that chains another: "Up next". */
.lens__next {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(16, 14, 10, 0.86);
}
.lens__next[hidden] { display: none; }
.lens__next-label { font-family: var(--h-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #d9cfbf; }
.lens__next-title { font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.2; color: #fffaf2; max-width: 30ch; }
.h-pill--light { background: #fefefe; border-color: #fefefe; color: var(--h-ink); }

/* The second paper, under the technologies' carousel. */
.home-about--stack { padding-top: 36px; padding-bottom: 8px; }

/* A table in an explainer (the names, in plain words). */
.home-explainer .reg-wrap { overflow-x: auto; }
.home-explainer table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.home-explainer th { font-family: var(--h-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--h-quiet); text-align: left; padding: 8px 10px; border-bottom: 1px solid #d9d4cb; }
.home-explainer td { padding: 8px 10px; border-bottom: 1px solid #f0ede8; color: var(--h-text); vertical-align: top; line-height: 1.5; }
.home-explainer td:first-child { font-family: var(--h-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--h-ink); white-space: nowrap; }
.home-explainer code { font-family: var(--h-mono); font-size: 0.86em; background: #f4efe6; border-radius: 3px; padding: 0.05em 0.35em; }

/* Video 1, Video 2: the parts of a chained video, under its stage. */
.lens__parts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.lens__part {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d8d0c3;
  border-radius: 999px;
  background: #fefefe;
  color: var(--h-muted);
  font-family: var(--h-serif);
  font-size: 0.95rem;
  cursor: pointer;
}
.lens__part b { font-family: var(--h-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-accent-deep); }
.lens__part[aria-pressed="true"] { background: var(--h-ink); border-color: var(--h-ink); color: #fefefe; }
.lens__part[aria-pressed="true"] b { color: #e9c99f; }
