/* Midnight Signal is a local information preview. The background and waveform
   are decorative; neither is driven by market data. */
:root {
  color-scheme: dark;
  --night: #050a12;
  --panel: #09111f;
  --text: #f0f5ff;
  --muted: #b0c0d7;
  --cyan: #81e8ff;
  --violet: #b79aff;
  --line: #24354b;
  --font: Inter,"Segoe UI",Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  /* Without scripts, panels form a long document. Immediate anchor jumps
     keep distant sections stable and reachable; the wheel owns its motion. */
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

button,a,summary {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  /* Text actions fit their contents; image cards and icon controls set their own sizes. */
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  white-space: normal;
  overflow-wrap: anywhere;
}

button:disabled {
  cursor: not-allowed;
  color: #b8c7d8;
  background: #111b29;
  border-color: #415269;
}

button:disabled:hover {
  transform: none;
  box-shadow: none;
}

a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}

h1,h2,h3,p {
  margin-top: 0;
}

/* Long headings must remain readable when text is enlarged on a narrow screen. */
h1,h2,h3 {
  overflow-wrap: anywhere;
  line-height: 1.12;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.8rem,3.3vw,2.8rem);
  font-weight: 550;
}

h3 {
  font-size: 1.25rem;
  font-weight: 550;
}

p {
  color: var(--muted);
}

button {
  border: 1px solid var(--line);
  background: #101e30;
  border-radius: 8px;
  padding: 10px 16px;
}

a,button,summary {
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--cyan);
  color: #07101d;
  padding: 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.preview-strip {
  min-height: 32px;
  padding: 6px 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #172438;
  background: #0b1421;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: #c0d2e8;
}

.preview-strip>span:last-child {
  margin-left: 15px;
  color: #8eabc8;
}

.status-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.site-shell {
  max-width: 1600px;
  margin: auto;
  padding: 0 5%;
}

.member-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.member-bar p {
  min-width: 0;
  margin: 0;
  font-size: .72rem;
}

#member-display-name {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
  margin-left: 8px;
  color: var(--cyan);
}

/* Account entry remains a separate, keyboard-reachable link beside sign-out. */
.member-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex-shrink: 0;
  font-size: .78rem;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media(max-width:500px) {
  .member-bar {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .member-bar p {
    flex-basis: 100%;
  }
}

.member-bar button {
  flex-shrink: 0;
  min-height: 44px;
  font-size: .78rem;
}

.member-status {
  font-size: .8rem;
  margin: 10px 0 0;
}

.member-status:empty {
  display: none;
}

.session-checking .site-shell,
.session-checking #information-dialog {
  visibility: hidden;
}

.session-notice {
  margin: 30px auto;
  padding: 24px;
  max-width: 560px;
  border: 1px solid var(--cyan);
}

.session-notice a {
  display: inline-block;
  margin: 12px;
  text-decoration: underline;
}

.site-header {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 23px;
}

.wordmark>span {
  font-size: 1.85rem;
  letter-spacing: .18em;
  font-weight: 600;
}

.brand-point {
  color: var(--cyan);
  letter-spacing: 0;
}

.wordmark small {
  font-size: .63rem;
  line-height: 1.4;
  letter-spacing: .09em;
  padding-left: 23px;
  border-left: 1px solid var(--line);
  color: #b7cce5;
}

.support-action {
  display: grid;
  text-align: center;
  gap: 5px;
}

/* The contact form stays inside its section and grows with long drafts. */
.contact-form { display:grid;gap:12px;margin:28px 0 36px;padding:24px;border:1px solid #33465e;border-radius:16px;background:#0c1726; }
.contact-form label { color:#e7f1ff;font-weight:600; }
.contact-form select,.contact-form textarea { width:100%;min-width:0;color:#eef5ff;background:#070f1b;border:1px solid #455c78;border-radius:9px;padding:12px;font:inherit; }
/* The hidden label tracks the selected word. Its extra 6px and matching borders
   leave breathing room for native select text, so the last letter is not clipped. */
.contact-topic-field { display:grid;position:relative;justify-self:start;max-width:100%; }
#contact-topic-value { visibility:hidden;white-space:nowrap;padding:9px 40px 9px 12px;min-height:44px;border:1px solid transparent; }
.contact-form select { position:absolute;inset:0;width:100%;height:100%;min-height:44px;padding-right:34px;appearance:none; }
.contact-topic-field::after { content:"";position:absolute;right:13px;top:50%;width:6px;height:6px;border-right:1.5px solid #d0e1f5;border-bottom:1.5px solid #d0e1f5;transform:translateY(-70%) rotate(45deg);pointer-events:none; }
.contact-form textarea { resize:vertical;min-height:260px;line-height:1.6; }
.contact-form :is(select,textarea,button):focus-visible { outline:2px solid #93e8ff;outline-offset:3px; }
.contact-message-meta { display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px;color:#aec1d9;font-size:.8rem; }
.contact-actions { display:flex;align-items:center;flex-wrap:wrap;gap:18px; }
.contact-form .fine-print { margin:0; }
.contact-actions button { min-height:44px;cursor:pointer; }
.contact-actions button:disabled { opacity:.6;cursor:default; }
.contact-form [data-error="true"] { color:#ffc0c0; }
#contact-status { margin:0;color:#9be6cf;min-height:1.5em; }
@media (max-width:600px) { .contact-form { padding:16px; } }

.donate-button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .025em;
  padding: 9px 16px;
}

.donate-button span {
  margin-left: 0;
}

.support-action>span {
  font-size: .61rem;
  color: #a1b4ce;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  margin: -91px 175px 47px 300px;
  position: relative;
  z-index: 2;
  min-height: 44px;
}

.main-nav>a {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  font-size: .79rem;
  min-height: 44px;
  border-bottom: 1px solid transparent;
}

.main-nav>a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.main-nav>a>span:first-child {
  font-size: 1.25rem;
  color: #b5d6eb;
}

.nav-arrow {
  display: none;
}

.hero {
  position: relative;
  min-height: 610px;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  padding: 94px 0 0;
  border: 0;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0 -1px;
  z-index: -2;
  background: url("assets/midnight-landscape.png") center 55%/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,rgba(5,10,18,.35),transparent 80%),linear-gradient(0deg,var(--night),transparent 19%,transparent 80%,rgba(5,10,18,.25));
}

.hero-copy {
  position: relative;
  padding-left: 2.5%;
  max-width: 850px;
}

/* The invented market figures belong to the artwork. Keep them away from
   the reading area and out of focus order; the caption states their status. */
.market-texture {
  position: absolute;
  top: 56px;
  right: 3%;
  bottom: 82px;
  width: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  color: #9de3ff;
  opacity: .43;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.market-texture>div {
  padding-left: 14px;
  border-left: 1px solid #9de3ff70;
}

.market-texture span {
  display: block;
  font-size: .55rem;
  letter-spacing: .12em;
  margin-bottom: 7px;
}

.market-texture strong {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -.05em;
}

.market-texture small {
  margin-left: 8px;
  font-size: .62rem;
}

@media (max-width: 1100px) {
  .market-texture {
    top: auto;
    bottom: 74px;
    left: 3%;
    right: 3%;
    width: auto;
    flex-direction: row;
  }

  .market-texture strong {
    font-size: 1.35rem;
  }
}

@media (max-width: 600px) {
  .market-texture {
    bottom: 52px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .market-texture>div {
    padding-left: 6px;
  }

  .market-texture span {
    font-size: .37rem;
    letter-spacing: .01em;
  }

  .market-texture strong {
    display: block;
    font-size: 1rem;
  }

  .market-texture small {
    margin: 0;
    font-size: .48rem;
  }
}

.eyebrow {
  font-size: .63rem;
  letter-spacing: .2em;
  font-weight: 600;
  color: #b0c9e5;
  margin-bottom: 23px;
}

.short-rule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
  vertical-align: middle;
  margin-right: 13px;
}

h1 {
  font-size: clamp(3rem,5.7vw,5.6rem);
  letter-spacing: -.055em;
  margin: 0 0 27px;
  font-weight: 600;
  line-height: 1.04;
}

h1>span {
  background: linear-gradient(110deg,#d8f6ff 0%,#76dfff 38%,#bd99f9 80%);
  color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #cfdef0;
}

.hero-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  padding: 12px 16px;
  border: 1px solid #4d809d;
  border-radius: 7px;
  background: #0a1827dd;
}

.hero-cta:hover {
  background: #132a3f;
}

.play-glyph {
  font-size: 1.5rem;
  line-height: 1;
}

.cta-status {
  font-size: .5rem;
  letter-spacing: .13em;
  margin-left: 8px;
  color: #b4c7de;
}

.hero-caption {
  position: absolute;
  bottom: 16px;
  left: 2.5%;
  right: 2.5%;
  display: flex;
  justify-content: space-between;
  font-size: .55rem;
  letter-spacing: .16em;
  color: #b1c9df;
}

.hero-caption>span:last-child {
  font-size: .6rem;
  letter-spacing: .03em;
  color: #a4b8ce;
}

.signature-wave {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: .6;
}

.signature-wave span {
  width: 2px;
  height: 4px;
  background: var(--cyan);
}

.signature-wave span:nth-child(3n) {
  height: 8px;
}

.signature-wave span:nth-child(4n) {
  height: 13px;
  background: var(--violet);
}

.signature-wave.pulse {
  animation: signal-response .7s ease-out 1;
}

@keyframes signal-response {
  40% {
    transform: scaleY(2);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: .6;
  }
}

.build-note {
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 30px;
  padding: 38px 2.5% 45px;
}

.build-note .eyebrow {
  display: block;
  margin-bottom: 13px;
}

.build-note h2 {
  font-size: 1.4rem;
  margin: 0;
}

.build-note p {
  font-size: .8rem;
  margin: 0;
}

.text-link {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: .78rem;
  color: var(--cyan);
  display: inline-flex;
  gap: 22px;
  align-items: center;
  min-height: 44px;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.featured {
  padding: 60px 2.5% 70px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 60px;
}

.founder-feature {
  display: block;
  min-width: 0;
}

.feature-art {
  aspect-ratio: 2.15;
  position: relative;
  background: linear-gradient(0deg,#050a1260,#050a1210),url("assets/benji-speaking-introduction.png") center/cover;
  border: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.founder-feature:hover .feature-art {
  filter: brightness(1.08);
}

.start-label {
  position: absolute;
  top: 18px;
  left: 19px;
  color: var(--cyan);
  font-size: .58rem;
  letter-spacing: .18em;
}

.large-play {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 1px solid #a1e8ff;
  border-radius: 50%;
  font-size: 2rem;
  background: #09162a99;
  padding-left: 4px;
}

.art-note {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: .55rem;
  color: #c1d2e9;
}

.feature-caption {
  padding-top: 19px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.feature-caption .eyebrow {
  font-size: .52rem;
  margin-bottom: 8px;
}

.feature-caption h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
}

.duration {
  font-size: .78rem;
  white-space: nowrap;
}

.duration small {
  display: block;
  color: var(--muted);
  font-size: .6rem;
}

.feature-aside {
  padding-top: 12px;
}

.feature-aside h3 {
  font-size: 1.8rem;
  line-height: 1.2;
}

.feature-aside>p:not(.eyebrow) {
  font-size: .83rem;
  max-width: 380px;
}

.production-note {
  font-size: .7rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 28px 0 12px;
}

.fine-print {
  font-size: .7rem!important;
}

.panel-sources {
  max-width: 1000px;
  margin: auto;
}

.content-panel {
  padding: 50px 0;
  border: 0;
  scroll-margin-top: 20px;
}

.content-panel h2 {
  max-width: 760px;
}

.panel-intro {
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 30px;
}

.key-points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
  margin: 30px 0;
}

.key-points li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}

.key-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.key-points strong {
  color: var(--text);
}

details {
  border: 0;
  margin: 26px 0;
  padding: 0 2px;
}

summary {
  padding: 19px 0;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text);
}

details p {
  font-size: .9rem;
  max-width: 750px;
}

details p:last-child {
  margin-bottom: 22px;
}

.process {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin: 40px 0 30px;
}

.process li {
  border: 0;
  padding-top: 18px;
}

.process li>span {
  color: var(--cyan);
  font-size: .7rem;
  letter-spacing: .1em;
}

.process h3 {
  font-size: 1.1rem;
  margin: 16px 0 12px;
}

.process p {
  font-size: .8rem;
}

.notice {
  border: 0;
  padding: 1px 0;
  font-size: .79rem;
  color: #b5c7de;
}

.roadmap-entry {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  padding: 26px 0;
  border: 0;
}

.roadmap-tag {
  color: var(--cyan);
  font-size: .62rem;
  letter-spacing: .12em;
  padding-top: 5px;
}

.roadmap-tag.violet {
  color: var(--violet);
}

.roadmap-entry time {
  font-size: .7rem;
  color: #a8bbd1;
}

.roadmap-entry h3 {
  margin: 12px 0;
}

.roadmap-entry p {
  font-size: .87rem;
  margin-bottom: 12px;
}

.state-label {
  font-size: .65rem;
  color: var(--cyan);
}

.contact-state {
  padding: 25px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.contact-state h3 {
  margin: 13px 0;
}

.contact-state p {
  font-size: .9rem;
}

.forum-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding: 25px 0;
  margin-bottom: 25px;
  border: 0;
}

.forum-entry > div {
  flex: 1 1 280px;
}

.forum-entry h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.forum-entry p:last-child {
  font-size: .9rem;
  margin-bottom: 0;
}

.forum-access {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 24px 0;
  margin-bottom: 20px;
}

.forum-access h3 {
  color: var(--cyan);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.forum-access p {
  font-size: .85rem;
  max-width: 600px;
}

.forum-access button,
.forum-actions > button,
.forum-thread-body button {
  font-size: .78rem;
  max-width: 100%;
  white-space: normal;
}

.forum-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.forum-filters {
  flex-wrap: wrap;
  gap: 8px;
}

.forum-filters button {
  font-size: .8rem;
  min-height: 44px;
  background: transparent;
}

.forum-filters button[aria-pressed="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: #123144;
}

.forum-result-count {
  font-size: .72rem;
  margin: 16px 0;
}

.forum-thread {
  margin: 0;
  border-bottom: 0;
}

.forum-thread:last-child {
  border: 0;
}

.forum-thread summary {
  position: relative;
  list-style: none;
  padding: 23px 28px 23px 0;
}

.forum-thread summary::-webkit-details-marker {
  display: none;
}

.forum-thread summary::after {
  content: "+";
  position: absolute;
  top: 45%;
  right: 5px;
  font-size: 1.3rem;
  color: var(--cyan);
}

.forum-thread[open] summary::after {
  content: "−";
}

.forum-topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  font-size: .59rem;
  letter-spacing: .12em;
  color: var(--cyan);
}

.forum-topic-meta > span {
  color: var(--muted);
}

.forum-topic-title {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 9px 0 5px;
}

.forum-topic-hint {
  display: block;
  font-size: .78rem;
  color: var(--muted);
}

.forum-thread-body {
  padding: 0 0 23px;
}

.forum-thread-body .text-link {
  display: flex;
  width: fit-content;
  margin-bottom: 12px;
}

/* Discussion content is plain text and can contain long unbroken words. */
#forum [hidden] {
  display: none !important;
}

.forum-topic-button {
  display: block;
  width: fit-content;
  padding: 24px 0;
  text-align: left;
  border-radius: 0;
  background: transparent;
  border: 0;
  margin-bottom: 16px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.forum-topic-button:hover {
  background: transparent;
}

.forum-topic-button:hover .forum-topic-title {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.forum-topic-button > span {
  display: block;
}

.forum-topic-button .forum-topic-title {
  margin: 12px 0 9px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.45;
}

.forum-primary {
  border-color: #80d5ec;
  background: #153342;
  color: var(--cyan);
}

.forum-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.forum-empty {
  padding: 32px 0;
  margin: 20px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.forum-empty h3 {
  font-size: 1.3rem;
}

.forum-empty p {
  margin-bottom: 0;
  font-size: .87rem;
}

.forum-back {
  margin: 10px 0 25px;
  background: transparent;
}

.forum-conversation {
  padding: 24px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow-wrap: anywhere;
}

.forum-conversation h3 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.4;
  margin: 10px 0 16px;
}

.forum-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d4e1f3;
  font-size: .9rem;
  line-height: 1.8;
  margin: 20px 0 0;
}

.forum-replies-heading {
  margin: 30px 0 8px;
  font-size: 1rem;
}

.forum-reply {
  padding: 24px 0;
  border: 0;
  overflow-wrap: anywhere;
}

.forum-reply .forum-message {
  margin-top: 10px;
}

.forum-form {
  margin: 25px 0;
}

.forum-form fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}

.forum-form label {
  display: block;
  margin: 20px 0 9px;
  font-size: .85rem;
  font-weight: 600;
}

.forum-form input,
.forum-form textarea,
.forum-form select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 13px;
  border: 1px solid #49617b;
  border-radius: 7px;
  color: var(--text);
  background: #081321;
  font: inherit;
  font-size: 1rem;
}

.forum-form textarea {
  resize: vertical;
  min-height: 130px;
}

.forum-form input::placeholder,
.forum-form textarea::placeholder {
  color: #a8b7ce;
  opacity: 1;
}

.forum-form :is(input, textarea, select):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* Leave room for the visible focus ring before either report form's helper text. */
#forum-report-note-help,
#forum-report-decision-help {
  margin-top: 12px;
}

.forum-form button[type="submit"] {
  margin-top: 12px;
  min-height: 46px;
}

.forum-form :disabled {
  opacity: .65;
}

.forum-error {
  border: 1px solid #e9b7a1;
  background: #34242a;
  color: #ffe0d3;
  padding: 14px;
  border-radius: 7px;
  font-size: .85rem;
}

.forum-guidelines {
  margin: 28px 0;
}

.forum-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.forum-post-actions button {
  min-height: 44px;
  padding: 10px 14px;
  font-size: .85rem;
  white-space: normal;
}

.forum-danger {
  border-color: #b88b85;
  color: #ffd7cf;
}

.forum-moderator-entry {
  margin: 0 0 20px;
  border-color: #ab9ce2;
  color: #d6ccff;
}

.forum-state-note {
  margin: 16px 0 0;
  color: #f1d5a5;
  font-size: .85rem;
  line-height: 1.6;
}

.forum-history-item {
  border: 0;
  padding: 16px 0;
  overflow-wrap: anywhere;
}

.forum-history-item p {
  margin: 8px 0;
}

#forum-moderation-view h4 {
  font-size: 1rem;
}

#forum-latest-version {
  margin-top: 20px;
}

/* Private reporting uses the same open reading flow as discussions. Only
   controls have boundaries; long notes wrap instead of widening the dialog. */
.forum-private-actions {
  margin: 0 0 24px;
}

.forum-private-actions .forum-moderator-entry {
  margin: 0;
}

.forum-report-example {
  margin: 28px 0;
}

.forum-report-item {
  padding: 24px 0;
  overflow-wrap: anywhere;
}

.forum-report-item h4 {
  margin: 8px 0;
  font-size: 1rem;
}

.forum-report-item p {
  margin: 9px 0;
}

#forum-report-filters {
  flex-wrap: wrap;
  margin: 20px 0;
}

#forum-report-review-view h4 {
  font-size: 1rem;
}

.footer-forum {
  font-size: .72rem;
  color: var(--cyan);
}

.footer-forum > span {
  display: block;
  font-size: .6rem;
  color: var(--muted);
}

.threshold {
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 30px 0;
  border: 0;
  padding: 25px 0;
}

.threshold strong {
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--cyan);
}

.threshold span {
  font-size: .9rem;
}

.threshold small {
  font-size: .75rem;
  color: var(--muted);
}

footer {
  border: 0;
  padding: 30px 2.5% 40px;
  display: flex;
  gap: 35px;
  align-items: center;
}

footer .footer-brand {
  font-weight: 600;
  letter-spacing: .18em;
  font-size: 1rem;
}

footer p {
  font-size: .67rem;
  margin: 0;
}

footer p span {
  color: #9db3d0;
}

.support-policy {
  margin-left: auto;
  font-size: .64rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The HTML sections remain readable without script. Enhancement hides only
   inactive panels; native dialog supplies background inertness. */
.js-only {
  display: none;
}

.enhanced .js-only {
  display: flex;
}

.enhanced .panel-sources {
  display: none;
}

.modal-open {
  overflow: hidden;
}

#information-dialog {
  /* The native dialog retains focus and dismissal behavior, while its canvas
     fills the viewport so information does not sit inside a framed box. */
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--text);
  border: 0;
  border-radius: 0;
  background: var(--night);
  box-shadow: none;
}

#information-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section-navigation {
  flex-shrink: 0;
  width: 100%;
  background: var(--night);
  z-index: 30;
}

dialog::backdrop {
  background: #020710d9;
  backdrop-filter: blur(10px);
}

.dialog-topline {
  flex-shrink: 0;
  min-height: 60px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  gap: 20px;
}

.dialog-topline>span {
  font-size: .57rem;
  letter-spacing: .16em;
  color: #9bb5d4;
}

.dialog-topline button {
  background: transparent;
  padding: 7px 12px;
  border-color: transparent;
  box-shadow: none;
  font-size: .8rem;
  min-height: 40px;
}

.dialog-topline button:hover {
  color: var(--cyan);
  background: #142c4066;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dialog-body {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  max-width: 1080px;
  margin: 0 auto;
  overscroll-behavior: contain;
  padding: 32px 40px 60px;
}

.dialog-body>.content-panel {
  border: 0;
  padding: 0;
}

.dialog-body .eyebrow {
  margin-bottom: 16px;
}

.video-library {
  max-width: 1080px;
  margin: 0 auto 70px;
  padding: 42px 2.5% 30px;
  border: 0;
  scroll-margin-top: 24px;
}

.video-library [hidden] {
  display: none !important;
}

.video-library h2 {
  margin-bottom: 18px;
}

.wheel-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 12px;
}

.wheel-toolbar p {
  font-size: .8rem;
  margin: 0;
}

.wheel-toolbar button {
  font-size: .8rem;
  background: transparent;
}

.wheel-layout {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-wheel {
  min-width: 0;
  display: flex;
  overflow-x: auto;
  gap: 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #4e6b87 transparent;
  width: 100%;
  /* Leave space for the 15% preview growth without clipping card text. */
  padding: 40px max(28px,calc((100% - 300px)/2));
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.video-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
  scroll-snap-align: center;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  position: relative;
  transform: scale(1);
  opacity: .84;
  transition: transform .22s,opacity .22s;
  user-select: none;
}

.video-card.selected {
  opacity: 1;
  box-shadow: none;
}

.video-card.selected .video-card-title,
.video-card:hover .video-card-title {
  color: var(--cyan);
}

.video-card-select {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  border: 0;
  border-radius: inherit;
  padding: 0;
  text-align: left;
  background: transparent;
}

.video-card:focus-within,
.video-card.pressed {
  z-index: 1;
  transform: scale(1.15);
  opacity: 1;
}

.video-card:focus-within {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.video-card-select:focus-visible {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .video-card:hover {
    z-index: 1;
    transform: scale(1.15);
    opacity: 1;
  }
}

.video-art {
  display: block;
  width: 100%;
  height: 157px;
  position: relative;
  overflow: hidden;
  background: #0b1320;
}

.video-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #050a12cc, transparent 50%);
  pointer-events: none;
}

.episode-label {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 16px;
  font-size: .65rem;
  letter-spacing: .15em;
  color: #e2f2ff;
}

.video-card-copy {
  width: 100%;
  padding: 18px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.video-state {
  font-size: .65rem;
  letter-spacing: .13em;
  color: #bfcde1;
}

.video-card-title {
  display: block;
  font-weight: 550;
  font-size: 1.06rem;
  line-height: 1.3;
  margin: 9px 0 18px;
}

.video-meta {
  font-size: .75rem;
  color: #bdd0e7;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.video-meta span {
  color: #b3badb;
}

.wheel-arrow {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wheel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 25px;
}

.wheel-bottom>p {
  font-size: .68rem;
  margin: 0;
}

.wheel-bottom>p>span {
  margin-left: 8px;
  color: var(--cyan);
}

#wheel-dots {
  color: var(--cyan);
  letter-spacing: .25em;
  font-size: .65rem;
}

.play-button {
  font-size: .8rem;
}

.video-wheel.text-list {
  display: grid;
  gap: 8px;
  padding: 12px 6px;
  scroll-snap-type: none;
}

.text-list .video-card {
  display: block;
  transform: none;
  opacity: 1;
  border-radius: 0;
}

.text-list .video-card:hover,
.text-list .video-card:focus-within,
.text-list .video-card.pressed {
  /* A text row uses its focus outline; scaling it would obscure adjacent rows. */
  transform: none;
}

.text-list .video-art {
  display: none;
}

.text-list .video-card-copy {
  padding: 16px 0;
}

.text-list .video-card-title {
  margin: 5px 0 12px;
}

.inline-player {
  width: min(100%, 760px);
  margin: 30px auto 36px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 24px;
}

.inline-player-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.inline-player-heading>div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.inline-player-heading .eyebrow {
  font-size: .6rem;
  margin-bottom: 10px;
}

.inline-player-heading h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  line-height: 1.25;
  margin: 0;
}

#collapse-player {
  min-height: 44px;
  flex-shrink: 0;
  font-size: .78rem;
}

.inline-player-stage {
  width: 100%;
  min-width: 0;
  border-radius: 0;
  background: #02060c;
  overflow: hidden;
}

#inline-video {
  display: block;
  width: 100%;
  max-height: 58svh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #02060c;
}

.inline-placeholder {
  position: relative;
  min-height: 220px;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  /* A short landscape viewport may need taller artwork to keep its notice
     readable. The actual video remains capped independently at 58svh. */
  display: flex;
  align-items: end;
  isolation: isolate;
}

#inline-player-poster {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inline-placeholder::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #02071110, #020711f5);
}

.inline-placeholder-copy {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: clamp(20px, 4vw, 34px);
}

.inline-placeholder-copy .video-state {
  color: var(--cyan);
  font-size: .65rem;
}

.inline-placeholder-copy p {
  color: var(--text);
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  line-height: 1.25;
  margin: 12px 0 9px;
}

.inline-placeholder-copy>span:last-child {
  color: #cfdaeb;
  font-size: .8rem;
  line-height: 1.5;
}

.inline-player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.inline-player-actions button {
  min-height: 44px;
}

.inline-player-status {
  font-size: .78rem;
  line-height: 1.5;
  margin: 14px 0 0;
}

/* Keep subscriptions visible as two open lists. Prices stay with their names,
   and annual payment labels remain readable when the columns stack on phones. */
.donation-transparency,
.donation-subscriptions,
.donation-reporting {
  margin-top: clamp(48px, 7vw, 88px);
}

#support h3 {
  margin-top: 32px;
  color: var(--text);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 550;
  line-height: 1.3;
}

#support .fine-print {
  /* These spending qualifications must override the legacy small-print rule. */
  font-size: .85rem!important;
  line-height: 1.7;
}

.donation-subscriptions h4 {
  margin: 40px 0 12px;
  font-size: 1.15rem;
  color: var(--cyan);
  font-weight: 550;
}

.subscription-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
  margin: 24px 0;
}

.subscription-cycle {
  min-width: 0;
}

.donation-subscriptions .subscription-cycle h4 {
  font-size: 1.5rem;
  margin: 0 0 16px;
}

.subscription-simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subscription-simple-list>li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 4px;
  padding: 9px 0;
  font-size: 1rem;
  line-height: 1.5;
}

.subscription-label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.subscription-price {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* A usage rate needs more room than a fixed price, especially on narrow screens. */
.subscription-simple-list>li[data-price-kind="unit"] {
  grid-template-columns: minmax(0, 1fr);
}

.subscription-unit-price {
  text-align: left;
  overflow-wrap: anywhere;
}

.subscription-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

.subscription-status[data-payment-state="paid"] {
  color: var(--cyan);
}

.subscription-list-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
  color: var(--cyan);
  font-size: 1rem;
}

.subscription-list-total strong {
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.subscription-cost-summary {
  margin-top: 24px;
}

.subscription-cost-summary p,
.subscription-intro {
  font-size: .9rem;
  line-height: 1.65;
}

.subscription-cost-summary p {
  margin: 12px 0;
}

.cost-incomplete strong {
  color: var(--cyan);
}

@media(max-width:800px) {
  .subscription-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

.donation-disclosure-list {
  padding-left: 22px;
  margin: 24px 0;
}

.donation-disclosure-list li {
  padding-left: 6px;
  margin: 14px 0;
}

/* Examples share the reading canvas. Spacing, labels and connecting arrows
   express the sequence without enclosing each step inside a decorative box. */
.explain-example {
  width: 100%;
  min-width: 0;
  margin: 44px 0 56px;
  padding: 0;
  border: 0;
  background: transparent;
}

.explain-example figcaption {
  max-width: 760px;
  margin-bottom: 28px;
}

.explain-example figcaption>strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.35;
  font-weight: 550;
  letter-spacing: -.015em;
}

.example-caption {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

.example-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.example-flow:has(>li:nth-child(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.example-flow>li {
  position: relative;
  min-width: 0;
}

.example-flow>li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -28px;
  top: 15px;
  color: var(--muted);
  font-size: 1.35rem;
}

/* Editing, deleting and restoring are choices, not a required sequence. */
.example-flow.example-options>li:not(:last-child)::after {
  content: none;
}

.example-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--cyan);
}

.example-flow>li:nth-child(even) .example-icon {
  color: var(--violet);
}

.example-flow strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
}

.example-flow p {
  margin: 10px 0 0;
  font-size: .88rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.example-number {
  display: block;
  color: var(--cyan);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.example-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(210px, .75fr);
  align-items: center;
  gap: 36px;
}

.example-reading-visual {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  color: var(--cyan);
}

.example-reading dl {
  margin: 0;
  min-width: 0;
}

.example-reading dl>div {
  margin-bottom: 18px;
}

.example-reading dt {
  color: var(--cyan);
  font-weight: 600;
  font-size: .9rem;
}

.example-reading dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.example-conversation-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.example-message,
.example-answer {
  min-width: 0;
  padding: 0;
  overflow-wrap: anywhere;
}

.example-message>span,
.example-answer>span {
  display: block;
  color: var(--cyan);
  font-size: .85rem;
  margin-bottom: 12px;
}

.example-answer>span {
  color: var(--violet);
}

.example-message p,
.example-answer p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.example-connector {
  display: block;
  width: 48px;
  height: 48px;
  color: var(--muted);
}

@media(max-width:680px) {
  .example-flow,
  .example-flow:has(>li:nth-child(4)) {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .example-flow>li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
  }
  .example-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .example-flow strong,
  .example-flow p {
    grid-column: 2;
  }
  .example-flow>li:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: auto;
    left: 17px;
    bottom: -32px;
  }
  .example-reading-layout,
  .example-conversation-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .example-reading-visual {
    max-width: 420px;
  }
  .example-connector {
    width: 36px;
    height: 36px;
    transform: rotate(90deg);
    margin-left: 4px;
  }
}

@media(min-width:681px) and (max-width:1000px) {
  /* Four narrow steps are easier to follow down the page than across
     multiple wrapped rows with ambiguous connecting arrows. */
  .example-flow:has(>li:nth-child(4)) {
    grid-template-columns: minmax(0, 1fr);
  }
  .example-flow:has(>li:nth-child(4))>li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 24px;
  }
  .example-flow:has(>li:nth-child(4)) .example-icon {
    grid-row: 1 / 3;
  }
  .example-flow:has(>li:nth-child(4)) :is(strong, p) {
    grid-column: 2;
  }
  .example-flow:has(>li:nth-child(4))>li:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: auto;
    left: 20px;
    bottom: -32px;
  }
}

@media(min-width:1600px) {
  .main-nav {
    gap: 40px;
  }
  .hero {
    min-height: 660px;
  }
}

/* Six readable controls move below the header before they crowd Donate. */
@media(max-width:1340px) {
  .main-nav {
    margin: -12px 0 24px;
    gap: 40px;
    justify-content: center;
    border: 0;
    padding-top: 12px;
  }
  .site-header {
    height: 105px;
  }
  .hero {
    min-height: 570px;
    padding-top: 80px;
  }
  .hero-copy {
    padding-left: 3%;
  }
  h1 {
    font-size: 4.5rem;
  }
  .build-note {
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
  }
  .build-note>.text-link {
    grid-column: 2;
  }
  .feature-grid {
    gap: 35px;
  }
}

@media(max-width:760px) {
  #member-display-name {
    display: block;
    margin-left: 0;
    max-width: 170px;
  }
  .site-shell {
    padding: 0 6%;
  }
  .site-header {
    min-height: 95px;
    height: auto;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 0;
  }
  .wordmark {
    gap: 0;
  }
  .wordmark>span {
    font-size: 1.6rem;
  }
  .wordmark small {
    display: none;
  }
  .donate-button {
    font-size: .8rem;
    padding: 7px 12px;
  }
  .support-action>span {
    font-size: .53rem;
  }
  .main-nav {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 6px;
    margin: 0 0 20px;
    padding: 12px 0 0;
  }
  .main-nav>a {
    flex-direction: column;
    font-size: .8rem;
    gap: 3px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 5px 0 8px;
  }
  .main-nav>a>span:first-child {
    font-size: 1.2rem;
  }
  .hero {
    padding-top: 45px;
    min-height: 570px;
  }
  .hero-copy {
    padding-left: 0;
  }
  .hero .eyebrow {
    font-size: .49rem;
    letter-spacing: .15em;
  }
  .hero-art {
    background-position: 65% 75%;
    background-size: auto 100%;
    opacity: .85;
  }
  .hero::after {
    background: linear-gradient(180deg,#050a12a0 25%,transparent 75%,var(--night)),linear-gradient(90deg,#050a1250,transparent);
  }
  h1 {
    font-size: clamp(2.65rem,8.7vw,4rem);
    margin-bottom: 22px;
  }
  .hero-description {
    font-size: .86rem;
  }
  .hero-cta {
    font-size: .75rem;
    margin-top: 15px;
    padding: 10px 13px;
    gap: 9px;
  }
  .cta-status {
    font-size: .43rem;
    margin-left: 2px;
  }
  .hero-caption {
    left: 0;
    right: 0;
    bottom: 10px;
    flex-direction: column;
    gap: 5px;
    font-size: .48rem;
  }
  .hero-caption>span:last-child {
    font-size: .53rem;
  }
  .build-note {
    grid-template-columns: 1fr;
    padding: 30px 0;
    gap: 18px;
  }
  .build-note>.text-link {
    grid-column: auto;
  }
  .build-note h2 {
    font-size: 1.45rem;
  }
  .build-note p {
    font-size: .8rem;
  }
  .featured {
    padding: 40px 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 1.65rem;
  }
  .section-heading .eyebrow {
    font-size: .55rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .feature-art {
    aspect-ratio: 1.8;
  }
  .feature-aside {
    border: 0;
    padding: 8px 0 0;
  }
  .feature-aside h3 {
    font-size: 1.45rem;
  }
  .feature-aside .eyebrow {
    font-size: .55rem;
  }
  .production-note {
    margin-top: 18px;
  }
  .feature-caption h3 {
    font-size: 1.02rem;
  }
  .feature-caption .eyebrow {
    font-size: .48rem;
  }
  .art-note {
    font-size: .48rem;
  }
  .process {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 25px;
  }
  .process li {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 14px;
  }
  .process h3 {
    margin: 0 0 8px;
  }
  .process p {
    grid-column: 2;
  }
  .roadmap-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .roadmap-entry h3 {
    font-size: 1.15rem;
  }
  .threshold {
    gap: 20px;
  }
  .threshold strong {
    font-size: 3.2rem;
  }
  footer {
    flex-wrap: wrap;
    gap: 18px;
    padding: 25px 0;
  }
  .support-policy {
    margin-left: 0;
    width: 100%;
    font-size: .6rem;
  }
  dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
  }
  .dialog-topline {
    padding: 0 20px;
    height: 64px;
  }
  .dialog-topline>span {
    font-size: .5rem;
  }
  .dialog-body {
    padding: 30px 22px;
    max-height: calc(100dvh - 64px);
  }
  .dialog-body h2 {
    font-size: 2.1rem;
  }
  .panel-intro {
    font-size: .95rem;
  }
  .video-wheel {
    gap: 14px;
    padding: 36px max(24px,calc((100% - 220px)/2));
  }
  .video-card {
    flex-basis: 220px;
  }
  .video-art {
    height: 140px;
  }
  .video-card-copy {
    padding: 14px 0;
  }
  .video-card-title {
    font-size: .95rem;
  }
  .wheel-layout {
    position: relative;
    gap: 6px;
  }
  .wheel-arrow {
    /* Overlay arrows leave room for neighboring cards on narrow phones. */
    position: absolute;
    z-index: 2;
    flex-basis: 32px;
    width: 32px;
    height: 44px;
    font-size: 1.6rem;
    border-radius: 7px;
  }
  #previous-video {
    left: 0;
  }
  #next-video {
    right: 0;
  }
  .wheel-toolbar {
    gap: 12px;
  }
  .wheel-toolbar button {
    font-size: .75rem;
    padding: 8px;
  }
  .wheel-toolbar p {
    font-size: .75rem;
  }
  .wheel-bottom {
    flex-wrap: wrap;
    gap: 15px;
  }
  .wheel-bottom .play-button {
    margin-left: auto;
    font-size: .7rem;
  }
  #wheel-dots {
    font-size: .55rem;
  }
  .inline-player {
    padding: 0;
  }
  .inline-player-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .inline-placeholder {
    min-height: 220px;
  }
  .key-points {
    font-size: .9rem;
  }
  .notice {
    font-size: .74rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
  .video-card,
  .video-card:hover,
  .video-card:focus-within,
  .video-card.pressed {
    transform: none !important;
  }
}

@media(forced-colors:active) {
  h1>span {
    background: none;
    color: CanvasText;
  }
  .hero-art {
    display: none;
  }
  .status-dot {
    background: CanvasText;
  }
  .video-card.selected {
    outline: 2px solid Highlight;
  }
}

/* The member front page shares one open backdrop. Account forms and the
   separate film-review pages keep their existing layouts. */
.front-page {
  --page-gutter: clamp(24px, 5vw, 80px);
  --market-ribbon-height: 64px;
  padding-top: var(--market-ribbon-height);
  background: radial-gradient(ellipse 80% 500px at 72% 0, #14274566, transparent), var(--night);
}

.front-page .site-shell {
  padding-inline: var(--page-gutter);
}

.front-page .member-bar {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 12px 0 0;
  border: 0;
}

.front-page .member-bar p {
  flex-basis: auto;
  font-size: .7rem;
}

.front-page #member-display-name {
  display: inline-block;
  margin-left: 6px;
}

.front-page .member-bar :is(a, button) {
  min-height: 44px;
  font-size: .73rem;
}

.front-page .member-bar button {
  border: 0;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  color: #b0c0d7;
}

.front-page .member-bar button:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.front-page .site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  height: auto;
  min-height: 0;
  gap: 20px 32px;
  padding: 28px 0 22px;
}

.front-page .wordmark {
  --word-font-size: .875rem;
  --word-offset: 4px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0;
  width: 360px;
  max-width: 100%;
  /* Reserve the same label row height without letting word length set the gaps. */
  padding-bottom: calc(var(--word-font-size) * 1.3 + 7px);
}

/* Space the capital letter boxes evenly; each label follows its own capital. */
.front-page .wordmark > .wordmark-pair {
  position: relative;
  display: block;
  flex: 0 0 auto;
  text-align: center;
  min-width: 0;
  /* Two 2px size steps larger, including the fluid desktop size. */
  font-size: clamp(2.6rem, calc(3.1vw + .25rem), 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.front-page .wordmark-pair > span { display: block; }

/* The curved S extends 1px below the flat capitals in the header font.
   Lift only its visible shape so the capital letters share a level bottom. */
.front-page .wordmark-pair:nth-child(3) > span {
  transform: translateY(-1px);
}

.front-page .wordmark small {
  position: absolute;
  display: block;
  top: calc(100% + 7px);
  left: 50%;
  width: max-content;
  /* All five words share the same 4px offset from their capital's center. */
  transform: translateX(calc(-50% + var(--word-offset)));
  padding: 0;
  border: 0;
  font-size: var(--word-font-size);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .02em;
  white-space: nowrap;
}

.front-page .support-action {
  align-self: center;
}

.front-page .donate-button {
  min-height: 44px;
  border-radius: 999px;
  background: #17243980;
  border-color: #53657a;
}

.front-page .main-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 32px;
  margin: 0;
  padding: 0;
  border: 0;
}

.front-page .main-nav > a {
  flex-direction: row;
  padding: 4px 0;
  min-height: 44px;
  font-size: .81rem;
  color: #bdcee2;
}

.front-page .main-nav > a:hover {
  color: var(--cyan);
}

.front-page .main-nav > a > span {
  display: none;
}

/* The landscape reaches the page edges and fades on both vertical joins,
   so the hero reads as a backdrop instead of a rectangular image panel. */
.front-page .hero {
  margin-inline: calc(-1 * var(--page-gutter));
  /* Leave a clear reading gap below the wordmark while the portrait sits beside it. */
  padding: 24px var(--page-gutter) 110px;
  min-height: 650px;
}

.front-page .hero-art {
  inset: 0;
  /* Half a CSS inch lowers the whole landscape, keeping the moon below the
     rollout offer without moving the text, portrait or fixed edge fades. */
  --hero-art-offset-y: 48px;
  background-position: center calc(56% + var(--hero-art-offset-y));
  background-size: cover;
  opacity: .95;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 72%, transparent);
}

.front-page .hero::after {
  background: linear-gradient(90deg, #050a1266, transparent 82%),
    linear-gradient(180deg, #050a1240, transparent 55%, var(--night));
}

.front-page .hero-copy {
  padding: 0;
}

.front-page .hero-cta {
  padding: 13px 22px;
  border-radius: 999px;
  background: #0a1827aa;
  box-shadow: 0 8px 40px #050a1250;
}

.front-page .hero-caption {
  left: var(--page-gutter);
  right: var(--page-gutter);
  bottom: 28px;
}

.front-page .market-texture {
  right: var(--page-gutter);
  top: 90px;
  bottom: 130px;
}

/* Invented prices move at about 24 pixels per second. Matching groups give
   a seamless loop without a provider frame, network requests, or links. */
.market-ribbon {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--market-ribbon-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: #080f1ded;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px #9cbed21a;
}

.market-ribbon-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.market-ribbon-track {
  display: flex;
  width: max-content;
}

.market-ribbon.is-ready .market-ribbon-track {
  animation: market-ribbon-scroll 72s linear infinite;
}

.market-ribbon-quotes {
  display: flex;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.market-ribbon-quotes li {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  width: 218px;
  padding: 16px 18px;
  white-space: nowrap;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.market-ribbon-quotes strong {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #c4d7ed;
}

.market-ribbon-quotes small {
  font-size: .68rem;
}

.price-up { color: #8ad8bc; }
.price-down { color: #f2a0a7; }

.front-page [id] { scroll-margin-top: calc(var(--market-ribbon-height) + var(--member-navigation-height, 86px) + 16px); }
.front-page .skip-link {
  top: calc(var(--market-ribbon-height) + 8px);
  z-index: 40;
  transform: translateY(calc(-100% - var(--market-ribbon-height) - 16px));
}
.front-page .skip-link:focus { transform: translateY(0); }

@keyframes market-ribbon-scroll {
  to { transform: translateX(-50%); }
}

@media (min-width: 1440px) {
  .front-page .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-block: 34px;
  }
  .front-page .main-nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    gap: 4px 24px;
    /* Shift the desktop row about 5/8 inch (60 CSS pixels), as requested. */
    transform: translateX(-60px);
  }
  .front-page .support-action { grid-column: 3; grid-row: 1; }
}

@media (max-width: 1100px) {
  .front-page .market-texture {
    top: auto;
    bottom: 90px;
    left: var(--page-gutter);
    right: var(--page-gutter);
  }
}

@media (max-width: 760px) {
  .front-page { --page-gutter: 6vw; }
  .front-page .member-bar { gap: 2px 16px; padding-top: 8px; }
  .front-page .member-bar p { margin-right: auto; }
  .front-page #member-display-name { max-width: 110px; }
  .front-page .site-header { padding: 22px 0 12px; gap: 18px 12px; }
  .front-page .wordmark { --word-font-size: .75rem; }
  .front-page .wordmark > .wordmark-pair { font-size: 2.6rem; }
  .front-page .support-action > span { max-width: 120px; }
  .front-page .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 12px;
  }
  .front-page .main-nav > a { font-size: .76rem; }
  .front-page .hero { padding-top: 8px; min-height: 590px; }
  .front-page .hero-art { background-position: 65% calc(75% + var(--hero-art-offset-y)); background-size: auto 100%; opacity: .8; }
  .front-page .hero::after { background: linear-gradient(180deg, #050a1266, transparent 70%, var(--night)); }
  .front-page .hero-cta { font-size: .75rem; padding: 12px 18px; }
  .front-page .hero-caption { bottom: 20px; }
  .front-page .market-texture { display: none; }
  .market-ribbon { padding-inline: 12px; gap: 4px; }
}

@media (max-width: 600px) {
  .front-page .site-header { grid-template-columns: minmax(0, 1fr); }
  /* Reserve room for the final label extending beyond its narrower capital. */
  .front-page .wordmark { width: min(calc(100% - 10px), 340px); }
  .front-page .support-action { display: flex; align-items: center; gap: 14px; justify-self: start; }
  .front-page .main-nav { grid-row: 3; }
}

/* Static prices remain readable by horizontal scrolling when scripts are absent. */
.market-ribbon:not(.is-ready) .market-ribbon-window { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  .market-ribbon .market-ribbon-track { animation: none; }
  .market-ribbon-window { overflow-x: auto; }
  .market-ribbon-quotes[aria-hidden="true"] { display: none; }
}

@media (forced-colors: active) {
  .market-ribbon { background: Canvas; border-bottom: 1px solid CanvasText; }
  .market-ribbon-window { mask-image: none; }
}

/* The browser's explicit preference has the same effect as the OS preference.
   Native video playback is never stopped by this decorative-motion setting. */
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-reduce-motion="true"] .market-ribbon-window { overflow-x: auto; }
html[data-reduce-motion="true"] .market-ribbon-quotes[aria-hidden="true"] { display: none; }
html[data-reduce-motion="true"] :is(.video-card, .video-card:hover, .video-card:focus-within) { transform: none !important; }

/* Sticky flow reserves its own height, including when quote text grows at high zoom.
   This preserves the ordinary 64px desktop strip without a fixed-height overlap. */
.front-page { padding-top: 0; }
.market-ribbon { position: sticky; height: auto; min-height: 64px; padding-inline: 0; gap: 0; }
.market-ribbon-quotes li { width: max(218px, 13.625rem); }
.motion-setting input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #81e8ff; }
.front-page :is(h1,h2,h3,p), .management-page :is(h1,h2,h3,p) { overflow-wrap: anywhere; }
.front-page .site-header { container: brand-header / inline-size; }

/* Relative units make the fallback activate for enlarged text as well as narrow
   windows. Each word remains with its capital; the ordinary desktop is untouched. */
@container brand-header (max-width: 55rem) {
  .front-page .wordmark {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 3rem), 1fr));
    gap: 18px 4px;
    padding-bottom: 0;
  }
  .front-page .wordmark > .wordmark-pair { display: grid; justify-items: center; gap: 7px; }
  .front-page .wordmark small {
    position: static;
    transform: translateX(var(--word-offset));
    max-width: calc(100% - var(--word-offset));
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 600px) {
  .market-ribbon { padding: 0; }
  .market-ribbon-window { flex-basis: 100%; }
  .front-page .hero h1 { font-size: clamp(1.8rem, 8vw, 3rem); }
}
@media (max-width: 350px) {
  /* The labels may use the small gap between columns rather than splitting a word.
     Enlarged root text still reflows the containing brand grid into fewer columns. */
  .front-page .wordmark small { max-width: none; white-space: nowrap; }
}
/* A short zoomed viewport must be able to scroll past the decorative strip. */
@media (max-height: 500px) { .market-ribbon { position: relative; } }

/* Section content scrolls below the same header; short windows retain room to
   read rather than allowing enlarged navigation to consume the whole view. */
@media (max-height: 500px) {
  .section-navigation { max-height: 45dvh; overflow-y: auto; }
}
