:root {
  --bg: #07142b;
  --bg-soft: #0c1d38;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(128, 203, 255, 0.18);
  --text: #edf7ff;
  --text-soft: #b8d4e8;
  --accent: #6bd0ff;
  --accent-strong: #3f63e6;
  --halo: #d6faff;
  --max: 1240px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --body-size: 1.24rem;
  --body-leading: 1.78;
  --deck-size: 1.2rem;
  --card-size: 1.06rem;
  --prose-width: 72ch;
}

html[data-page-width="wide"] {
  --prose-width: 108ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html[data-text-size="compact"] {
  --body-size: 0.9rem;
  --body-leading: 1.65;
  --deck-size: 0.95rem;
  --card-size: 0.85rem;
}

html[data-text-size="comfortable"] {
  --body-size: 1.12rem;
  --body-leading: 1.78;
  --deck-size: 1.18rem;
  --card-size: 1rem;
}

html[data-text-size="large"] {
  --body-size: 1.5rem;
  --body-leading: 1.9;
  --deck-size: 1.45rem;
  --card-size: 1.25rem;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(63, 99, 230, 0.16), transparent 38%),
    radial-gradient(circle at 20% 20%, rgba(107, 208, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #07142b 0%, #040b17 100%);
  line-height: var(--body-leading);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--halo);
}

strong {
  color: var(--text);
}

.site-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 20, 43, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav,
.site-footer__inner,
.page-shell {
  width: min(calc(100% - 6rem), var(--max));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.site-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.site-parent:hover { opacity: 1; }
.site-parent__mark { width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; }
.site-parent__label {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.site-parent__suffix {
  color: var(--text-soft);
  font-weight: 500;
  margin-left: 0.2em;
}
.site-parent__sep {
  color: var(--text-soft);
  opacity: 0.4;
  font-size: 1.25rem;
  margin: 0 0.35rem;
  -webkit-user-select: none;
  user-select: none;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-brand img {
  width: 32px;
  height: 32px;
}

.site-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-links a {
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

.site-links a.is-current {
  color: var(--halo);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.nav-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 140ms ease, opacity 140ms ease;
}

.site-shell.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-shell.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-shell.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Reading controls — tab anchored flush to left viewport edge, below nav */
.reading-controls-wrap {
  position: fixed;
  left: 0;
  top: 120px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  z-index: 200;
}

.reading-controls-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: none;
  border-radius: 0 6px 6px 0;
  background: #0c1d38;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.reading-controls-toggle:hover,
.reading-controls-wrap.reading-open .reading-controls-toggle {
  color: var(--text);
  background: #132844;
  border-color: rgba(255, 255, 255, 0.25);
}

.reading-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: #0c1d38;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 1rem;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.reading-controls-wrap.reading-open .reading-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.text-size-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.text-size-control__label {
  padding: 0 0.35rem 0 0.5rem;
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-size-control__button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.text-size-control__button:nth-of-type(1) {
  font-size: 0.84rem;
}

.text-size-control__button:nth-of-type(2) {
  font-size: 0.98rem;
}

.text-size-control__button:nth-of-type(3) {
  font-size: 1.1rem;
}

.text-size-control__button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.text-size-control__button.is-active {
  color: var(--halo);
  background: rgba(107, 208, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(107, 208, 255, 0.2);
}

.page-width-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.page-width-control__label {
  padding: 0 0.35rem 0 0.5rem;
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-width-control__button {
  padding: 0.25rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.page-width-control__button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.page-width-control__button.is-active {
  color: var(--halo);
  background: rgba(107, 208, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(107, 208, 255, 0.2);
}

.page-shell {
  padding: 3rem 0 5rem;
}

/* Single prose column: doc-hero and body share same left edge */
.page-prose {
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
}

.page-prose h1,
.page-prose h2,
.page-prose h3 {
  line-height: 1.15;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

.page-prose h1 {
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  margin-bottom: 1rem;
}

.page-prose h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  margin-top: 3.2rem;
  margin-bottom: 1rem;
}

.page-prose h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-prose p,
.page-prose li {
  color: var(--text-soft);
  font-size: var(--body-size);
}

.page-prose ul {
  padding-left: 1.25rem;
}

.page-prose hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
}

/* Homepage and other non-prose pages */
.page-shell h1,
.page-shell h2,
.page-shell h3,
.page-shell p,
.page-shell li,
.page-shell ul {
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
}

/* Homepage: single centered column for consistent alignment */
.home-prose {
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  margin: 0 0 2.5rem;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__mark {
  position: relative;
}

.hero__mark img {
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 1;
}

.hero > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 208, 255, 0.18), rgba(63, 99, 230, 0.05) 65%, transparent 72%);
}

.hero__eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(107, 208, 255, 0.12);
  border: 1px solid rgba(107, 208, 255, 0.24);
  color: var(--halo);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero p {
  width: 100%;
  margin-bottom: 0.7rem;
  text-align: center;
}

.hero h1 {
  width: 100%;
  margin-bottom: 0.55rem;
  text-align: center;
}

.hero p strong {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--halo);
}

.section-card {
  margin-top: 2rem;
  padding: 1.6rem 0 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-card > p {
  margin-left: auto;
  margin-right: auto;
}

.section-card > h2 {
  margin-top: 0;
}

.section-card__lead {
  max-width: var(--prose-width);
  margin: 0.5rem 0 1.25rem;
  font-size: var(--deck-size);
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Homepage: intro and explore ── */
.home-intro p {
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
}
.home-intro p + p {
  margin-top: 1rem;
}

.home-intro-modes {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.home-intro-mode {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.home-intro-mode img {
  border-radius: 16px;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.home-intro-mode__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.home-intro-mode__label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.home-intro-mode__desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.4;
}

/* Community image inside explore frame */
.home-explore-frame .home-visual {
  margin: 0.5rem auto 1.75rem;
  max-width: min(300px, 70vw);
}

/* Explore tool frame */
.home-explore-frame {
  margin: 2rem auto 2.5rem;
  width: min(calc(100% - 6rem), var(--max));
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(107, 208, 255, 0.06), rgba(63, 99, 230, 0.08));
  border: 1px solid rgba(107, 208, 255, 0.22);
  border-top: 2px solid rgba(107, 208, 255, 0.35);
  border-radius: 12px;
}

.home-explore-frame .home-explore-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--halo);
}

@media (max-width: 640px) {
  .home-explore-frame {
    width: calc(100% - 3rem);
    padding: 1.25rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .home-explore-frame {
    width: calc(100% - 2rem);
  }

  .home-intro-modes {
    max-width: 100%;
  }

  .home-intro-mode img {
    width: 60px;
    height: 60px;
  }
}

.home-visual {
  margin: 0 auto 2.5rem;
  max-width: min(520px, 90vw);
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.home-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* Fade edges into page bg — solid by 72% to cover square corners (~71%) */
  background: radial-gradient(
    circle at 50% 50%,
    transparent 50%,
    var(--bg) 72%
  );
}

.home-visual__img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 0;
}

.home-explore-title {
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.card {
  display: block;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 208, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(107, 208, 255, 0.03));
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.12rem;
}

.card p {
  margin: 0;
  font-size: var(--card-size);
  max-width: none;
}

.card time {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
}

/* Journal timeline */
.journal-timeline .journal-entry {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.journal-timeline .journal-entry:first-of-type {
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: 0;
}

.journal-entry__date {
  display: block;
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.journal-entry__type {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(107, 208, 255, 0.12);
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: lowercase;
}

.journal-entry__title {
  margin: 0.4rem 0 0.75rem;
  font-size: 1.15rem;
}

.journal-entry__body {
  color: var(--text-soft);
  font-size: var(--body-size);
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
}

.journal-entry__body p:last-child {
  margin-bottom: 0;
}

.doc-hero {
  padding: 0.5rem 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 100%;
}

/* Blog post byline with avatar — modest size, aligned with title/date */
.post-byline {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.post-byline__avatar-wrap {
  flex-shrink: 0;
  padding-top: 0.35rem; /* Align avatar top with title line */
}

.post-byline__avatar {
  width: clamp(2.5rem, 4vw, 3.25rem);
  height: clamp(2.5rem, 4vw, 3.25rem);
  display: block;
  border-radius: 50%;
  object-fit: contain;
}

.post-byline__meta {
  flex: 1;
}

.post-byline__meta h1 {
  margin-bottom: 0.35rem;
}

.post-byline__meta time {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.post-banner {
  margin: 1.5rem 0 0;
}

.post-banner__image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 48px rgba(5, 12, 24, 0.28);
}

.doc-hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-hero__deck {
  margin: 0;
  font-size: var(--deck-size);
  color: #d2e6f5;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.site-footer__inner {
  padding: 1.5rem 0 2.5rem;
  font-size: 0.92rem;
}

/* ── Explore page (What HALOS means for you) ── */
.explore-section {
  padding-top: 0;
}

.explore-intro {
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
  font-size: var(--body-size);
  line-height: var(--body-leading);
  color: var(--text-soft);
}

.explore-form-section {
  margin-top: 1.5rem;
}

.explore-form {
  position: relative;
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
}

.explore-field {
  margin-bottom: 1.75rem;
}

.explore-field label,
.explore-label {
  display: block;
  font-size: var(--deck-size);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.explore-field .required,
.explore-field .optional {
  font-weight: 400;
  color: var(--text-soft);
  font-size: 0.9em;
}

.explore-hint {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}

.explore-form select,
.explore-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: var(--body-size);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 140ms ease, background 140ms ease;
}

.explore-form select:hover,
.explore-form select:focus,
.explore-form textarea:hover,
.explore-form textarea:focus {
  border-color: rgba(107, 208, 255, 0.4);
  background: var(--surface-strong);
  outline: none;
}

.explore-form textarea {
  resize: vertical;
  min-height: 4rem;
}

.explore-custom-wrap {
  margin-top: 0.75rem;
}

.explore-custom-wrap textarea {
  margin-top: 0;
}

.explore-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.explore-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.explore-option:hover,
.explore-option:focus-within {
  border-color: rgba(107, 208, 255, 0.35);
  background: var(--surface-strong);
}

.explore-option input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.explore-option span {
  flex: 1;
  font-size: var(--card-size);
  line-height: 1.5;
  color: var(--text);
}

.explore-actions {
  margin-top: 2rem;
}

.explore-btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 140ms ease;
  border: 1px solid transparent;
}

.explore-btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.explore-btn-primary:hover,
.explore-btn-primary:active {
  background: var(--halo);
  color: var(--bg);
  border-color: var(--halo);
}

.explore-btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.explore-btn-ghost:hover,
.explore-btn-ghost:active {
  border-color: var(--accent);
  color: var(--halo);
}

.explore-output-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.explore-output-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.explore-output-actions {
  margin-bottom: 0.75rem;
}

.explore-output-content {
  margin-bottom: 1.25rem;
}

.explore-output-content textarea {
  width: 100%;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: vertical;
  overflow-x: auto;
  word-break: break-word;
}

.explore-links {
  margin-bottom: 1rem;
}

.explore-link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: rgba(107, 208, 255, 0.12);
  border: 1px solid rgba(107, 208, 255, 0.3);
  border-radius: 8px;
  font-weight: 600;
  transition: all 140ms ease;
}

.explore-link:hover {
  background: rgba(107, 208, 255, 0.2);
  border-color: rgba(107, 208, 255, 0.5);
  color: var(--halo);
}

.explore-output-note {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.explore-output-note a {
  color: var(--accent);
}

.explore-char-warning {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(107, 208, 255, 0.08);
  border: 1px solid rgba(107, 208, 255, 0.2);
  border-radius: 8px;
}

.explore-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.explore-guardrail-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 100, 80, 0.15);
  border: 1px solid rgba(255, 100, 80, 0.4);
  border-radius: 6px;
  color: #ffb4a8;
  font-size: 0.95rem;
}

.explore-char-count {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.explore-char-count[hidden] {
  display: none;
}

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

@media (max-width: 720px) {
  .site-nav,
  .page-shell {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-brand {
    flex: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-collapse {
    max-height: 0;
    overflow: hidden;
    width: 100%;
    flex-basis: 100%;
    transition: max-height 0.25s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-shell.nav-open .nav-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }

  .site-links {
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 0.75rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero__mark img {
    width: 96px;
    height: 96px;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .explore-option {
    padding: 1rem 1rem;
  }

  .explore-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Body text only: slightly larger on phones for readability; headers unchanged */
  .page-prose p,
  .page-prose li,
  .page-shell p,
  .page-shell li,
  .journal-entry__body,
  .journal-entry__body p,
  .card p,
  .section-card p,
  .hero p {
    font-size: max(var(--body-size), 1.15rem);
  }

  .site-nav,
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .page-shell {
    padding: 2rem 0 4rem;
  }

  .post-byline__avatar-wrap {
    padding-top: 0.25rem;
  }

  .post-byline__avatar {
    width: clamp(2.25rem, 8vw, 2.75rem);
    height: clamp(2.25rem, 8vw, 2.75rem);
  }

  .explore-form select,
  .explore-form textarea {
    padding: 0.9rem 1rem;
  }

  .explore-output-content textarea {
    font-size: max(0.85rem, 1.05rem);
  }
}

@media (pointer: coarse) {
  .site-links a {
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .text-size-control__button {
    min-width: 44px;
    min-height: 44px;
  }

  .page-width-control__button {
    min-height: 44px;
  }

  .explore-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .explore-option {
    min-height: 44px;
    padding: 0.85rem 1rem;
  }

  .explore-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
  }
}

/* ── Supporters / Signatory Registry ── */
.supporters-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.supporters-filters label {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.supporters-filter {
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
}

.supporters-filters input[type="checkbox"] {
  margin-right: 0.35rem;
}

.supporters-list-wrap {
  margin-top: 1rem;
}

.supporters-table-wrap {
  overflow-x: auto;
}

.supporters-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.supporters-table th,
.supporters-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.supporters-table th {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.supporters-table td {
  color: var(--text);
}

.supporters-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.supporters-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.supporters-badge--founder {
  background: linear-gradient(135deg, #3F63E6 0%, #2a4299 100%);
  color: #fff;
}

.supporters-badge--founding {
  background: rgba(107, 208, 255, 0.2);
  color: var(--halo);
}

.supporters-badge--early {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.supporters-table td a {
  margin-right: 0.75rem;
}

.supporters-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.supporters-pagination__btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
}

.supporters-pagination__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(107, 208, 255, 0.2);
}

.supporters-pagination__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.supporters-pagination__info {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.supporters-list-wrap.hidden,
.supporters-empty.hidden {
  display: none !important;
}

.supporters-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-soft);
}

/* Adopt HALOS callout */
.adopt-callout {
  margin: 0 auto 2.5rem;
  width: min(calc(100% - 6rem), var(--max));
}

.adopt-callout__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(63, 99, 230, 0.18), rgba(107, 208, 255, 0.10));
  border: 1px solid rgba(107, 208, 255, 0.38);
  border-top: 2px solid rgba(107, 208, 255, 0.5);
  border-radius: 12px;
}

.adopt-callout__headline {
  margin: 0 0 0.35rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--halo);
}

.adopt-callout__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.adopt-callout__desc code {
  font-size: 0.85em;
  background: rgba(107, 208, 255, 0.12);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--accent);
}

.adopt-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.adopt-mode-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(107, 208, 255, 0.18);
  border-radius: 10px;
  background: rgba(107, 208, 255, 0.04);
  transition: border-color 140ms ease, background 140ms ease;
}

.adopt-mode-chip:hover {
  border-color: rgba(107, 208, 255, 0.32);
  background: rgba(107, 208, 255, 0.08);
}

.adopt-mode-chip img {
  flex-shrink: 0;
  border-radius: 5px;
}

.adopt-mode-chip__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.adopt-mode-chip__label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.adopt-mode-chip__desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  color: var(--text-soft);
  opacity: 0.7;
}

.adopt-callout__action {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.adopt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}

.adopt-btn__icon {
  flex-shrink: 0;
}

.adopt-btn:hover {
  background: var(--halo);
  border-color: var(--halo);
  color: var(--bg);
  box-shadow: 0 0 22px rgba(107, 208, 255, 0.4);
}

.adopt-btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.adopt-btn--copied {
  background: rgba(107, 208, 255, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}

.adopt-callout__guide-link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.adopt-callout__guide-link:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .adopt-callout {
    width: calc(100% - 3rem);
  }

  .adopt-callout__inner {
    padding: 1.25rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .adopt-callout {
    width: calc(100% - 2rem);
  }

  .adopt-modes {
    grid-template-columns: 1fr;
  }

  .adopt-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Layer stack (framework diagram) ── */
.layer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 1.25rem;
}

.layer {
  position: relative;
  display: block;
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  color: inherit;
}

.layer:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 208, 255, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(107, 208, 255, 0.03));
}

/* Stretched-link pattern: h3 link covers entire card */
.layer__title-link {
  color: var(--text);
  text-decoration: none;
}

.layer__title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 18px;
}

.layer__title-link:hover {
  color: var(--halo);
}

.layer h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.layer p {
  margin: 0;
  font-size: var(--card-size);
  color: var(--text-soft);
  max-width: none;
}

.layer__badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layer--provenance {
  width: 88%;
  margin-bottom: -4px;
  z-index: 1;
  border-top: 3px solid var(--accent);
}

.layer--provenance .layer__badge {
  background: rgba(107, 208, 255, 0.14);
  color: var(--accent);
  border: 1px solid rgba(107, 208, 255, 0.25);
}

.layer--principles {
  width: 100%;
  border-bottom: 3px solid var(--accent-strong);
}

.layer--principles .layer__badge {
  background: rgba(63, 99, 230, 0.16);
  color: #93b4ff;
  border: 1px solid rgba(63, 99, 230, 0.3);
}

.layer__github {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 140ms ease, color 140ms ease, border-color 140ms ease;
}

.layer__github:hover {
  opacity: 1;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.layer__github svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .layer--provenance {
    width: 100%;
  }
}

/* ── Nav dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 140ms ease;
}

.nav-dropdown__trigger:hover {
  color: var(--halo);
}

.nav-dropdown__trigger::after {
  content: " \25BE";
  font-size: 0.75em;
  opacity: 0.6;
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  padding: 0.5rem 0;
  background: rgba(12, 29, 56, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  transform: translateX(-50%) translateY(-4px);
  z-index: 30;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--text-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: color 100ms ease, background 100ms ease;
}

.nav-dropdown__menu a:hover {
  color: var(--halo);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 720px) {
  .nav-dropdown__trigger::after {
    content: none;
  }

  .nav-dropdown__menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .nav-dropdown__menu a {
    padding: 0.35rem 0.25rem;
  }
}

@media (max-width: 720px) and (pointer: coarse) {
  .nav-dropdown__trigger {
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ── 404 page ── */
.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-page h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 0.5rem;
  color: var(--text);
}

.error-page p {
  font-size: var(--body-size);
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.error-page__links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.error-page__links a {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 140ms ease, background 140ms ease;
}

.error-page__links a:hover {
  border-color: rgba(107, 208, 255, 0.4);
  background: rgba(107, 208, 255, 0.06);
}

/* ── Hero provocation (redesigned homepage hero) ── */
.hero-provocation {
  text-align: center;
  padding: 10vh 0 4rem;
  margin-bottom: 0;
  position: relative;
}

.hero-provocation::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 208, 255, 0.22) 0%, rgba(63, 99, 230, 0.10) 40%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-provocation::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 250, 255, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-provocation > * {
  position: relative;
  z-index: 1;
}

.hero-provocation__question {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.hero-provocation__body {
  max-width: 56ch;
  margin: 0 auto 3rem;
  font-size: var(--deck-size);
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-provocation__reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-provocation__mark {
  position: relative;
  display: inline-block;
  overflow: visible;
  border-radius: 20px;
}

.hero-provocation__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(214, 250, 255, 0.3) 25%,
    rgba(107, 208, 255, 0.1) 50%,
    transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.hero-provocation__mark img {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  display: block;
}

/* Northern lights aurora behind logo mark */
.hero-provocation__mark .aurora {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
  opacity: 0.8;
}

.aurora__layer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.aurora__layer--1 {
  background: radial-gradient(ellipse at 38% 45%,
    rgba(52, 211, 153, 0.55) 0%,
    rgba(16, 185, 129, 0.3) 30%,
    rgba(63, 99, 230, 0.12) 55%,
    transparent 70%);
  animation: aurora-drift-1 8s ease-in-out infinite;
}

.aurora__layer--2 {
  background: radial-gradient(ellipse at 62% 50%,
    rgba(167, 139, 250, 0.55) 0%,
    rgba(139, 92, 246, 0.3) 30%,
    rgba(107, 208, 255, 0.1) 55%,
    transparent 70%);
  animation: aurora-drift-2 11s ease-in-out infinite;
}

.aurora__layer--3 {
  background: radial-gradient(ellipse at 50% 55%,
    rgba(45, 212, 191, 0.45) 0%,
    rgba(52, 211, 153, 0.2) 25%,
    rgba(139, 92, 246, 0.15) 50%,
    transparent 70%);
  animation: aurora-drift-3 14s ease-in-out infinite;
}

@keyframes aurora-drift-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.75;
  }
  25% {
    transform: translate(24px, -14px) scale(1.12);
    opacity: 1;
  }
  50% {
    transform: translate(-18px, 12px) scale(0.93);
    opacity: 0.55;
  }
  75% {
    transform: translate(14px, 6px) scale(1.06);
    opacity: 0.9;
  }
}

@keyframes aurora-drift-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.65;
  }
  30% {
    transform: translate(-22px, 12px) scale(1.14);
    opacity: 1;
  }
  60% {
    transform: translate(18px, -10px) scale(0.9);
    opacity: 0.5;
  }
  80% {
    transform: translate(-10px, -6px) scale(1.08);
    opacity: 0.8;
  }
}

@keyframes aurora-drift-3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }
  20% {
    transform: translate(16px, 10px) scale(1.1);
    opacity: 0.85;
  }
  45% {
    transform: translate(-14px, -12px) scale(0.94);
    opacity: 0.6;
  }
  70% {
    transform: translate(10px, 18px) scale(1.16);
    opacity: 1;
  }
  90% {
    transform: translate(-8px, -4px) scale(0.97);
    opacity: 0.65;
  }
}

.hero-provocation h1 {
  margin: 0.25rem 0 0.3rem;
  font-size: clamp(2.4rem, 4vw, 4rem);
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 0 48px rgba(107, 208, 255, 0.18);
}

.hero-provocation__subtitle strong {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--halo);
  letter-spacing: 0.03em;
}

/* ── Three-sentence explainer ── */
.home-explainer {
  border-top: none;
  padding-top: 2rem;
}

.home-explainer__text {
  max-width: var(--prose-width);
  margin: 0 auto;
  font-size: calc(var(--deck-size) + 0.05rem);
  line-height: 1.8;
  color: var(--text-soft);
}

.color-halo {
  color: var(--halo);
  font-weight: 600;
}

.color-accent {
  color: var(--accent);
  font-weight: 600;
}

/* ── Story timeline ── */
.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0;
  max-width: var(--prose-width);
  margin-left: auto;
  margin-right: auto;
}

.story-step {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.story-step:first-child {
  border-top: none;
}

.story-step__badge {
  flex-shrink: 0;
}

.story-step__badge img {
  border-radius: 12px;
}

.story-step__content {
  min-width: 0;
}

.story-step__title {
  margin: 0 0 0.35rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.story-step__desc {
  margin: 0;
  font-size: var(--card-size);
  color: var(--text-soft);
  line-height: 1.55;
}

.story-step__annotation {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: var(--text-soft);
  text-align: right;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.story-step__tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.story-step__tag--ai {
  background: rgba(107, 208, 255, 0.18);
  color: var(--accent);
  border: 1px solid rgba(107, 208, 255, 0.35);
}

.story-step__tag--human {
  background: rgba(214, 250, 255, 0.14);
  color: var(--halo);
  border: 1px solid rgba(214, 250, 255, 0.3);
}

.story-cta {
  margin-top: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .story-step {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  .story-step__badge img {
    width: 48px;
    height: 48px;
  }

  .story-step__annotation {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }

  .hero-provocation {
    padding: 6vh 0 2.5rem;
  }

  .hero-provocation::before {
    width: 350px;
    height: 350px;
  }
}

/* ── Audience cards ── */
.card-grid--audience {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card--audience h3 {
  color: var(--accent);
}

/* ── Adopt phases ── */
.adopt-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.adopt-phase {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.adopt-phase__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(107, 208, 255, 0.14);
  color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.adopt-phase__text {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.adopt-phase__text strong {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.adopt-phase__text code {
  font-size: 0.85em;
  background: rgba(107, 208, 255, 0.12);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--accent);
}

.adopt-preview {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.adopt-preview__label {
  margin: 0 0 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.adopt-preview__code {
  margin: 0;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-soft);
  overflow-x: auto;
}

.adopt-preview__code code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

@media (max-width: 520px) {
  .adopt-phases {
    grid-template-columns: 1fr;
  }
}

/* ── Social proof ── */
.social-proof {
  border-top: none;
  padding-top: 0;
}

.social-proof__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--prose-width);
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(63, 99, 230, 0.1), rgba(107, 208, 255, 0.06));
  border: 1px solid rgba(107, 208, 255, 0.18);
  border-radius: 12px;
}

.social-proof__badge img {
  display: block;
  flex-shrink: 0;
}

.social-proof__text p {
  margin: 0 0 0.5rem;
  font-size: var(--card-size);
  max-width: none;
}

.social-proof__link {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

@media (max-width: 520px) {
  .social-proof__inner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
}

/* ── Go Further (4-card) ── */
.card-grid--further {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ── Closing statement ── */
.closing {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.closing p {
  color: var(--text-soft);
  font-size: var(--body-size);
}

/* ── Scroll reveal animations ── */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .story-step.scroll-reveal {
    transform: translateY(16px);
    transition-delay: calc(var(--step-index, 0) * 80ms);
  }
}

/* ── Hero mark dramatic emergence ── */
@media (prefers-reduced-motion: no-preference) {
  /* Override default scroll-reveal for hero container — animate children instead */
  .hero-provocation__reveal.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-provocation__mark,
  .hero-provocation__reveal h1,
  .hero-provocation__subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero-provocation__reveal.is-visible .hero-provocation__mark {
    opacity: 1;
    transform: translateY(0);
    transition: none;
    animation: halos-mark-emerge 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0ms both;
  }

  .hero-provocation__reveal.is-visible h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 380ms;
  }

  .hero-provocation__reveal.is-visible .hero-provocation__subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 580ms;
  }

  .hero-provocation__reveal.is-visible .hero-provocation__mark::after {
    animation: halos-light-bloom 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
  }

  @keyframes halos-mark-emerge {
    0% {
      opacity: 0;
      transform: translateY(20px) scale(0.84);
      filter: brightness(0.3) drop-shadow(0 0 0px rgba(107, 208, 255, 0));
    }
    38% {
      opacity: 1;
      transform: translateY(0) scale(1.09);
      filter: brightness(1.8) drop-shadow(0 0 24px rgba(107, 208, 255, 0.95))
              drop-shadow(0 0 52px rgba(107, 208, 255, 0.45));
    }
    55% {
      filter: brightness(2.0) drop-shadow(0 0 32px rgba(214, 250, 255, 1))
              drop-shadow(0 0 64px rgba(107, 208, 255, 0.65));
    }
    75% {
      transform: scale(1.02);
      filter: brightness(1.25) drop-shadow(0 0 18px rgba(107, 208, 255, 0.55));
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: brightness(1) drop-shadow(0 0 10px rgba(107, 208, 255, 0.28));
    }
  }

  @keyframes halos-light-bloom {
    0% {
      transform: translate(-50%, -50%) scale(0.6);
      opacity: 0;
    }
    40% {
      opacity: 0.9;
    }
    100% {
      transform: translate(-50%, -50%) scale(2.2);
      opacity: 0;
    }
  }
}
