/* Money In A Wheelbarrow · billboard designs. Design-system tokens only. */

:root {
  --edge: var(--space-3);
  --ground: var(--color-neutral-900);
  --card: var(--color-neutral-1000);
  --line: var(--color-border-subtle);
  --content-max: 76rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--space-20); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--color-text-primary); overflow-x: clip;
  font-family: var(--type-body-font-family); font-size: var(--type-body-font-size); line-height: var(--type-body-line-height);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
::selection { background: var(--color-brand-lilac); color: var(--color-text-on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--space-4); top: var(--space-4); z-index: var(--z-dropdown); padding: var(--space-2) var(--space-4); background: var(--color-brand-lilac); color: var(--color-text-on-accent); transform: translateY(-200%); }
.skip:focus { transform: none; }
main:focus, .chapter:focus { outline: none; }
.ico { width: var(--space-4); height: var(--space-4); flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sub { font-size: var(--font-size-16); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-3); }

/* ---------- buttons ---------- */
.hbtn {
  display: inline-flex; align-items: center; gap: var(--space-2); height: var(--space-10); padding-inline: var(--space-4);
  border: 0; border-radius: var(--radius-xs); cursor: pointer;
  font-size: var(--font-size-14); font-weight: var(--font-weight-semibold); line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--motion-duration-fast) var(--motion-easing-standard), transform var(--motion-duration-press) var(--motion-easing-standard);
}
.hbtn:active { transform: scale(var(--motion-scale-press)); }
.hbtn--lg { height: var(--space-12); padding-inline: var(--space-5); font-size: var(--font-size-16); }
.hbtn--lilac { background: var(--color-brand-lilac); color: var(--color-text-on-accent); }
.hbtn--lilac:hover { background: var(--color-action-primary-bg-hover); }
.hbtn--paper { background: var(--color-brand-paper); color: var(--color-text-inverse); }
.hbtn--paper:hover { background: var(--color-neutral-100); }
.hbtn--ghost { background: transparent; color: var(--color-text-secondary); box-shadow: inset 0 0 0 var(--border-width-hairline) var(--color-border-default); }
.hbtn--ghost:hover { color: var(--color-text-primary); background: var(--color-bg-surface-raised); }
.hbtn__meta { font-weight: var(--font-weight-regular); opacity: 0.7; font-feature-settings: var(--font-feature-tabular); }
.hbtn__meta:empty { display: none; }

/* ---------- layout ---------- */
main { padding-inline: var(--layout-gutter-fluid); }
.chapter { max-width: var(--content-max); margin-inline: auto; padding-block: var(--space-24) var(--layout-section-fluid); border-top: var(--border-width-hairline) solid var(--line); }
.chapter__num { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--font-size-13); color: var(--color-text-tertiary); font-feature-settings: var(--font-feature-tabular); margin-bottom: var(--space-3); }
.chapter__count::before { content: "·"; margin-right: var(--space-3); color: var(--color-text-disabled); }
.chapter__h { font-family: var(--type-h2-font-family); font-weight: var(--type-h2-font-weight); font-size: var(--font-size-fluid-h2); line-height: var(--type-h2-line-height); letter-spacing: var(--type-h2-letter-spacing); }
.chapter__lede { margin-top: var(--space-4); max-width: 36rem; font-size: var(--font-size-fluid-lede); line-height: var(--font-line-height-lede); color: var(--color-text-secondary); text-wrap: pretty; }

/* ---------- hero: text + the envelope ---------- */
.hero { border-top: 0; min-height: 100svh; display: grid; align-items: center; gap: var(--space-4); padding-block: calc(var(--space-24) + var(--space-4)) var(--space-16); }
.hero__wordmark { width: clamp(5.5rem, 14vw, 8rem); height: auto; margin-bottom: var(--space-8); }
.hero__kicker { font-size: var(--font-size-16); color: var(--color-brand-lilac); font-weight: var(--font-weight-semibold); }
.hero__title { margin-top: var(--space-2); font-family: var(--font-family-display); font-weight: var(--font-weight-extrabold); font-size: clamp(3rem, 1.2rem + 7.2vw, 6.5rem); line-height: 0.92; letter-spacing: -0.045em; }
.hero__lede { margin-top: var(--space-5); max-width: 30rem; font-size: var(--font-size-fluid-lede); line-height: var(--font-line-height-lede); color: var(--color-text-secondary); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-16); } }

/* ---------- the envelope ---------- */
.wp__stage { display: grid; gap: var(--space-4); width: min(100%, 38rem); min-width: 0; justify-self: center; }
.wp__scene { position: relative; width: 100%; padding-top: 40%; }
.env { position: relative; width: 100%; aspect-ratio: 3 / 2; perspective: 1400px; }
.env__back { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: var(--radius-xs); background: var(--color-brand-lilac) var(--liner) 0 0 / 34% auto repeat; }
.env__back::after { content: ""; position: absolute; inset: 0; background: var(--color-brand-lilac); opacity: 0.55; }
.env__cards { position: absolute; inset: 0; z-index: 2; }
/* three whole boards, 2:1, tucked inside; they slide out fanned */
.tc { position: absolute; top: 10%; left: 18%; width: 64%; aspect-ratio: 2 / 1; display: block; padding: 0; border: 0; border-radius: var(--radius-xs); overflow: hidden; background: var(--color-neutral-1000); cursor: zoom-in; box-shadow: var(--elevation-overlay); will-change: transform; }
.tc img { width: 100%; height: 100%; object-fit: cover; }
.tc:focus-visible { outline-offset: var(--focus-ring-width); }
.env__fold { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.env__fold--l { clip-path: polygon(0 0, 50% 52%, 0 100%); background: var(--color-brand-lilac); }
.env__fold--r { clip-path: polygon(100% 0, 50% 52%, 100% 100%); background: var(--color-brand-lilac); }
.env__fold--b { clip-path: polygon(0 100%, 50% 52%, 100% 100%); background: var(--color-brand-lilac-soft); }
.env__crease { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.env__crease path { fill: none; stroke: var(--color-alpha-black-10); stroke-width: 1; }
.env__label { position: absolute; z-index: 4; left: 50%; bottom: 9%; width: 42%; aspect-ratio: 240 / 84; translate: -50% 0; display: grid; place-content: center; text-align: center; line-height: 1.05; pointer-events: none; }
.env__scallop { position: absolute; inset: 0; width: 100%; height: 100%; }
.env__scallop rect, .env__scallop circle { fill: var(--color-brand-paper); }
.env__to, .env__name { position: relative; color: var(--color-brand-lilac-deep); white-space: nowrap; }
.env__to { font-size: clamp(var(--font-size-11), 1.5vw, var(--font-size-14)); }
.env__name { font-family: var(--font-family-display); font-weight: var(--font-weight-extrabold); font-size: clamp(var(--font-size-14), 2.4vw, 1.375rem); letter-spacing: -0.02em; }
.env__flap { position: absolute; inset: 0; z-index: 6; transform-origin: 50% 0; filter: drop-shadow(0 2px 3px var(--color-alpha-black-16)); pointer-events: none; }
.env__flap-out, .env__flap-in { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 52%); }
.env__flap-out { background: var(--color-brand-lilac); }
.env__flap-in { opacity: 0; background: var(--color-brand-lilac) var(--liner) 0 0 / 34% auto repeat; }
.env__flap-in::after { content: ""; position: absolute; inset: 0; background: var(--color-brand-lilac); opacity: 0.55; }
.env__seal { position: absolute; left: 50%; top: 52%; translate: -50% -50%; width: 11%; aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--color-brand-black); box-shadow: var(--elevation-raised); }
.env__seal img { width: 56%; height: auto; }
/* the whole closed envelope is one button; it steps aside once open so the cards take the clicks */
.env__hit { position: absolute; inset: 0; z-index: 7; padding: 0; border: 0; border-radius: var(--radius-xs); background: none; cursor: pointer; }
.env.is-open .env__hit { display: none; }
@media (hover: hover) { .env:not(.is-open) .env__hit:hover ~ .env__flap .env__seal, .env:not(.is-open):hover .env__seal { scale: 1.08; transition: scale var(--motion-duration-base) var(--motion-easing-out); } }
/* open state (no-GSAP and reduced motion) */
.env.is-open .env__flap { transform: rotateX(180deg); z-index: 0; }
.env.is-open .env__flap-out { opacity: 0; }
.env.is-open .env__flap-in { opacity: 1; }
.env.is-open .env__seal { opacity: 0; }
.env.is-open .tc--l { transform: translate(-11%, -118%) rotate(-7deg); }
.env.is-open .tc--c { transform: translate(0, -66%); }
.env.is-open .tc--r { transform: translate(11%, -118%) rotate(7deg); }
.wp__under { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.wp__hint { font-size: var(--font-size-13); color: var(--color-text-tertiary); }
@media (prefers-reduced-motion: reduce) { .tc { will-change: auto; } }

/* ---------- mockup cards ---------- */
.posts { display: grid; gap: var(--layout-grid-gap-fluid); margin-top: var(--space-10); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post--wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post { display: grid; align-content: start; gap: var(--space-4); padding: var(--space-1) var(--space-1) var(--space-4); border: var(--border-width-hairline) solid var(--line); border-radius: var(--radius-sm); background: var(--card); transition: border-color var(--motion-duration-base) var(--motion-easing-standard); min-width: 0; }
.post:hover, .post:focus-within { border-color: var(--color-border-strong); }
.post__open { position: relative; display: block; padding: 0; border: 0; border-radius: var(--radius-xs); overflow: hidden; background: var(--color-neutral-800); cursor: zoom-in; }
.post__open img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-duration-slow) var(--motion-easing-out); }
@media (hover: hover) { .post__open:hover img { transform: scale(var(--motion-scale-hover-media)); } }
.post__body { display: grid; gap: var(--space-1); padding-inline: var(--space-3); }
.post__name { font-size: var(--font-size-16); font-weight: var(--font-weight-semibold); }
.post__line { font-size: var(--font-size-14); line-height: var(--font-line-height-body-sm); color: var(--color-text-secondary); text-wrap: pretty; }
.post__meta { margin-top: var(--space-1); font-size: var(--font-size-12); color: var(--color-text-tertiary); font-feature-settings: var(--font-feature-tabular); }
.post .hbtn { justify-self: start; margin-inline: var(--space-3); }
/* ---------- downloads ---------- */
.how { display: grid; gap: var(--space-12); margin-top: var(--space-10); }
@media (min-width: 1024px) { .how { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--layout-grid-gap-fluid); } }
.specs { display: grid; align-content: start; }
.specs > div { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-top: var(--border-width-hairline) solid var(--line); font-size: var(--font-size-16); line-height: var(--font-line-height-body-sm); }
.specs > div:last-child { border-bottom: var(--border-width-hairline) solid var(--line); }
.specs dt { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }
.specs dd { color: var(--color-text-secondary); }
.wp__dl { display: grid; }
.wp__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding-block: var(--space-3); border-top: var(--border-width-hairline) solid var(--line); }
.wp__row:last-child { border-bottom: var(--border-width-hairline) solid var(--line); }
.wp__th { width: var(--space-20); height: var(--space-10); flex: none; border-radius: var(--radius-xs); object-fit: cover; background: var(--color-neutral-800); }
.wp__rowt { flex: 1 1 0; display: grid; font-size: var(--font-size-14); color: var(--color-text-primary); min-width: 0; }
.wp__rowt span { font-size: var(--font-size-12); color: var(--color-text-tertiary); font-feature-settings: var(--font-feature-tabular); }
.wp__row.is-on .wp__rowt { font-weight: var(--font-weight-semibold); }
.wp__get { font-size: var(--font-size-13); }


/* ---------- footer: the giant lilac wordmark ---------- */
.foot { max-width: var(--content-max); margin-inline: auto; padding-bottom: clamp(var(--space-8), 4vw, var(--space-16)); }
.foot__meta { padding-block: var(--space-4); border-top: var(--border-width-hairline) solid var(--line); font-size: var(--font-size-13); color: var(--color-text-tertiary); }
.foot__mark { margin-top: clamp(var(--space-6), 3vw, var(--space-12)); overflow: hidden; }
.foot__wordmark { display: block; width: 100%; height: auto; }

/* ---------- lightbox ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-neutral-1000); color: var(--color-text-primary); overflow: hidden; }
.lb:fullscreen { width: 100vw; height: 100vh; }
.lb[open] { display: grid; place-items: center; animation: lbIn var(--motion-duration-sheet) var(--motion-easing-out); }
@keyframes lbIn { from { opacity: 0; } }
.lb::backdrop { background: var(--color-overlay-backdrop); }
.lb__fig { position: absolute; inset: 0; margin: 0; }
.lb__img { position: absolute; inset: var(--space-4) var(--space-4) calc(var(--space-16) + var(--space-2)); width: calc(100% - var(--space-8)); height: calc(100% - var(--space-20) - var(--space-2)); object-fit: contain; }
.lb__cap { position: absolute; left: var(--space-4); bottom: var(--space-4); max-width: calc(100% - var(--space-32)); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--color-scrim-solid); font-size: var(--font-size-13); color: var(--color-text-secondary); }
.lb__count { color: var(--color-text-tertiary); font-feature-settings: var(--font-feature-tabular); }
.lb__get { color: var(--color-brand-lilac); font-weight: var(--font-weight-semibold); text-underline-offset: 0.25em; }
.lb__btn { position: fixed; display: grid; place-items: center; width: var(--space-12); height: var(--space-12); padding: 0; border: var(--border-width-hairline) solid var(--color-border-default); border-radius: var(--radius-pill); background: var(--card); cursor: pointer; }
.lb__btn svg { width: var(--space-6); height: var(--space-6); }
.lb__btn:hover { background: var(--color-bg-surface-raised); }
.lb__prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lb__next { right: var(--space-4); top: 50%; transform: translateY(-50%); }
.lb__close { right: var(--space-4); top: var(--space-4); }
.lb__btn[hidden] { display: none; }
@media (max-width: 767px) {
  .lb__img { bottom: calc(var(--space-32) + var(--space-4)); height: calc(100% - var(--space-32) - var(--space-12)); top: var(--space-16); }
  .lb__cap { bottom: calc(var(--space-12) + var(--space-8)); max-width: calc(100% - var(--space-8)); }
  .lb__prev, .lb__next { top: auto; bottom: var(--space-4); transform: none; }
  .lb__prev { left: calc(50% - var(--space-12) - var(--space-2)); }
  .lb__next { right: calc(50% - var(--space-12) - var(--space-2)); }
}

/* ---------- folder nav ---------- */
.fn { --fn-w: min(19rem, calc(100vw - var(--edge) * 2)); --ink: var(--color-lilac-950); position: fixed; z-index: var(--z-header); left: var(--edge); top: calc(var(--edge) + var(--space-2)); width: var(--fn-w); font-size: var(--font-size-14); line-height: var(--font-line-height-label); }
.fn button { border: 0; background: none; cursor: pointer; text-align: left; }
.fn button:not(.fn-toggle) { padding: 0; }
.fn a { text-decoration: none; }
.fn-chev { width: var(--space-4); height: var(--space-4); flex: none; transition: transform var(--motion-duration-move) var(--motion-easing-out); }
.fn.is-open .fn-chev { transform: rotate(180deg); }
.fn-mark { display: grid; place-items: center; flex: none; width: var(--space-8); height: var(--space-8); border-radius: var(--radius-xs); background: var(--color-brand-black); }
.fn-mark img { width: var(--space-5); }
.fn-cur { flex: 1; min-width: 0; }
.fn-cur-t { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--font-weight-semibold); }
.fn .fn-toggle {
  position: relative; display: flex; align-items: center; gap: var(--space-3); width: 100%; height: var(--space-12); padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2);
  color: var(--ink); border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  background: linear-gradient(168deg, var(--color-lilac-100), var(--color-lilac-200) 40%, var(--color-lilac-300)); box-shadow: var(--elevation-overlay);
  transition: border-radius var(--motion-duration-move) var(--motion-easing-out), transform var(--motion-duration-press) var(--motion-easing-standard);
}
.fn .fn-toggle::before { content: ""; position: absolute; left: 0; bottom: 100%; width: 44%; height: var(--space-2); background: var(--color-lilac-100); clip-path: polygon(0 0, calc(100% - var(--space-2)) 0, 100% 100%, 0 100%); border-radius: var(--radius-xs) 0 0 0; }
.fn .fn-toggle:active { transform: scale(var(--motion-scale-press)); }
.fn .fn-toggle:focus-visible { outline-color: var(--color-brand-lilac); }
.fn.is-open .fn-toggle { border-radius: 0 var(--radius-sm) 0 0; box-shadow: none; }
.fn-body {
  position: relative; color: var(--ink); background: var(--color-lilac-300); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--elevation-overlay); padding-top: var(--space-2);
  clip-path: inset(0 0 100% 0 round 0 0 var(--radius-sm) var(--radius-sm)); visibility: hidden;
  transition: clip-path var(--motion-duration-sheet) var(--motion-easing-out-ios), visibility 0s linear var(--motion-duration-sheet);
}
.fn.is-open .fn-body { clip-path: inset(0 0 0 0 round 0 0 var(--radius-sm) var(--radius-sm)); visibility: visible; transition: clip-path var(--motion-duration-open) var(--motion-easing-out-ios), visibility 0s; }
.fn-sheet { margin: 0 var(--space-2) var(--space-2); padding: var(--space-3); border-radius: var(--radius-xs); background: var(--color-lilac-100); }
.fn-ph { display: grid; gap: 2px; margin-bottom: var(--space-2); }
.fn-ph b { font-size: var(--font-size-14); }
.fn-ph span { font-size: var(--font-size-12); opacity: 0.72; }
.fn-list { display: grid; gap: 2px; }
.fn-row { display: flex; align-items: center; gap: var(--space-2); min-height: var(--space-10); padding: var(--space-1) var(--space-2); border-radius: var(--radius-xs); color: inherit; transition: background-color var(--motion-duration-fast) var(--motion-easing-standard); }
.fn-row:hover { background: color-mix(in srgb, var(--color-lilac-300) 55%, transparent); }
.fn-row[aria-current] { background: var(--ink); color: var(--color-lilac-100); }
.fn-n { flex: none; min-width: 1.6em; font-size: var(--font-size-12); font-feature-settings: var(--font-feature-tabular); opacity: 0.66; }
.fn-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-body :focus-visible { outline-color: var(--ink); outline-offset: 1px; }
@media (max-width: 767px) { .fn { --fn-w: min(16rem, calc(100vw - var(--edge) * 2)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* compact on scroll: only the V and the current thumb; the name slides back on hover or focus */
.fn.is-compact { width: auto; }
.fn.is-compact .fn-toggle { width: auto; height: calc(var(--space-8) + var(--space-1)); gap: calc(var(--space-1) * 1.5); padding: var(--space-1) var(--space-2) var(--space-1) var(--space-1); font-size: var(--font-size-13); }
.fn.is-compact .fn-toggle::before { width: 50%; height: 6px; }
.fn.is-compact .fn-mark { width: calc(var(--space-6) + var(--space-1)); height: calc(var(--space-6) + var(--space-1)); }
.fn.is-compact .fn-mark img { width: var(--space-4); }
.fn.is-compact .fn-cur { flex: none; }
.fn.is-compact .fn-cur-ico { width: var(--space-5); height: var(--space-5); }
.fn.is-compact .fn-cur-t { max-width: 0; opacity: 0; }
.fn.is-compact .fn-chev { width: var(--space-3); height: var(--space-3); opacity: 0.7; }
@media (hover: hover) { .fn.is-compact:hover .fn-cur-t { max-width: 14rem; opacity: 1; } }
.fn.is-compact .fn-toggle:focus-visible .fn-cur-t { max-width: 14rem; opacity: 1; }
.fn.is-compact .fn-body { position: absolute; top: 100%; left: 0; width: var(--fn-w); }

/* the closed nav panel must not block clicks/hover on the page underneath */
.fn { pointer-events: none; }
.fn-toggle, .fn.is-open .fn-body { pointer-events: auto; }

/* ---------- download-all bars ---------- */
.getall { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-3); margin-top: var(--space-10); padding-top: var(--space-6); border-top: var(--border-width-hairline) solid var(--line); }
.getall__note { flex-basis: 100%; font-size: var(--font-size-13); color: var(--color-text-tertiary); }
.getall .hbtn--lilac { box-shadow: 0 0 0 0 transparent; }
@media (max-width: 479px) { .getall .hbtn { width: 100%; justify-content: center; } }


/* ---------- billboard layout (2:1 boards) ---------- */
/* hero: the pairing line, then the chrome title (assets/hero-title.webp, 3x, from _src/hero_title.py; its alt is the h1 text) */
.hero__pair { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-8); font-size: clamp(1rem, 0.8rem + 1vw, 1.375rem); font-weight: var(--font-weight-semibold); line-height: 1; }
.hero__pair .hero__wordmark { margin: 0; }
.hero__x { color: var(--color-text-tertiary); font-weight: var(--font-weight-regular); }
.hero__kicker { font-size: var(--font-size-fluid-lede); }
.hero__title { margin-top: var(--space-3); line-height: 0; }
.hero__title-img { width: min(100%, 25rem); height: auto; }

/* mockups: whole frame, never cropped */
.post__open img { height: auto; }
.mocknote { font-size: var(--font-size-13); font-weight: var(--font-weight-semibold); color: var(--color-brand-lilac); }
.lb__note:empty { display: none; }
.empty { margin-top: var(--space-10); padding: var(--space-12) var(--space-6); border: var(--border-width-hairline) dashed var(--color-border-strong); border-radius: var(--radius-sm); color: var(--color-text-secondary); text-align: center; }
.listen { margin-top: var(--space-8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
@media (max-width: 479px) { .hero__actions .hbtn, .listen .hbtn { width: 100%; justify-content: center; } }
.dl { margin-top: var(--space-8); }
.scene { margin-top: var(--space-12); font-family: var(--font-family-display); font-weight: var(--font-weight-semibold); font-size: var(--font-size-fluid-lede); }
.scene + .posts { margin-top: var(--space-4); }

/* ---------- no JavaScript: all the boards and lagoon mockups stacked ---------- */
.js .nojs { display: none; }
html:not(.js) .needs-js, html:not(.js) .fn, html:not(.js) .wp__under, html:not(.js) .env__hit { display: none; }
.nojs figure { margin-block: var(--space-6); }
.nojs img { width: 100%; }
.js .dz:not(.is-on) { display: none; }

/* ---------- the TV ---------- */
@font-face { font-family: "Press Start"; src: url("shared/design-system/fonts/files/PressStart.ttf") format("truetype"); font-display: swap; }
.tv { --bz: clamp(6px, 1vw, 12px); position: relative; width: min(100%, calc((100svh - 13rem) * 2)); min-width: min(100%, 20rem); margin: var(--space-8) auto 0; }
.tv__ant { display: block; width: clamp(5rem, 14vw, 10rem); height: auto; margin: 0 auto -2px; }
.tv__body { position: relative; padding: var(--bz); border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--color-neutral-700), var(--color-neutral-800) 12%, #222125 100%); box-shadow: inset 0 1px 0 var(--color-neutral-600), inset 0 -3px 0 var(--color-neutral-1000), 0 30px 60px -30px var(--color-neutral-1000); }
.tv__screen { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 2px; background: #000; box-shadow: 0 0 0 2px #000; touch-action: pan-y pinch-zoom; }
.tv__screen:focus-visible { outline-offset: 3px; }
.tv__tube { position: absolute; inset: 0; }
.tv__tube.is-off { visibility: hidden; }
.tv__pic { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; visibility: hidden; transform-origin: 0 0; }
.tv__pic.is-on { visibility: visible; }
.tv__warp { object-fit: fill; backface-visibility: hidden; }
/* power-up ident */
.tv__ident { position: absolute; inset: 0; container-type: size; display: none; background: var(--color-neutral-1000); }
.tv__ident.is-on { display: grid; grid-template-rows: repeat(3, 1fr); }
.tv__row { display: flex; align-items: center; width: max-content; animation: tv-scroll 26s linear infinite; }
.tv__row:nth-child(2) { animation-direction: reverse; }
.tv__row + .tv__row { box-shadow: inset 0 1px 0 var(--color-neutral-800); }
.tv__ident.is-away .tv__row { animation-play-state: paused; }
.tv__half { display: flex; flex: none; }
.tv__pair { display: flex; flex: none; align-items: center; gap: 4.5cqh; padding-right: 11cqh; }
.tv__pair img { display: block; width: auto; max-width: none; }
.tv__vw { height: 9cqh; } .tv__ll { height: 12cqh; margin-top: 2.2cqh; }
.tv__pair svg { width: 5.6cqh; height: 5.6cqh; stroke: #F2F2F2; stroke-width: 2; fill: none; }
@keyframes tv-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tv__row { animation: none; } }
.tv__back:disabled { opacity: 0.4; cursor: default; }
.tv__noise { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; image-rendering: pixelated; }
.tv__line { position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: #fff; opacity: 0; pointer-events: none; }
.tv__glow { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.tv__panel { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-2) var(--space-2); }
.tv__ch { min-width: 4.25rem; padding: 9px 10px 7px; border-radius: 2px; background: #0b0710; box-shadow: inset 0 0 0 1px #000, inset 0 2px 6px #000; color: var(--color-brand-lilac); font: 24px/1 "Press Start", monospace; text-align: center; }
.tv.is-dark .tv__ch { color: var(--color-lilac-800); }
.tv__pw { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); height: var(--space-12); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-xs); background: none; color: var(--color-text-secondary); font-size: var(--font-size-14); font-weight: var(--font-weight-semibold); cursor: pointer; }
.tv__pw svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tv__pw:hover { color: var(--color-text-primary); }
.tv__led { width: 8px; height: 8px; border-radius: 50%; background: var(--color-lilac-800); position: relative; }
.tv__led::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--color-brand-lilac); box-shadow: 0 0 8px var(--color-brand-lilac); transition: opacity var(--motion-duration-base) var(--motion-easing-out); }
.tv.is-dark .tv__led::after { opacity: 0; }
.tv__grille { justify-self: stretch; height: 22px; background: repeating-linear-gradient(90deg, var(--color-neutral-1000) 0 3px, transparent 3px 9px); opacity: 0.7; }
.tv__panel .tv__back, .tv__panel .tv__next { height: 2.5rem; padding-inline: var(--space-3); font-size: var(--font-size-14); }
.tv__next { min-width: 12.5rem; justify-content: center; }
.tv__feet { display: flex; justify-content: space-between; width: 72%; margin: -1px auto 0; }
.tv__feet i { width: clamp(1.5rem, 5vw, 3.5rem); height: clamp(10px, 1.6vw, 18px); background: var(--color-neutral-700); border-bottom: 3px solid var(--color-brand-lilac); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.tv__feet i + i { clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }
.tv__cap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); min-height: 3.25rem; margin-top: var(--space-4); font-size: var(--font-size-16); color: var(--color-text-secondary); }
.tv__note { color: var(--color-brand-lilac); font-weight: var(--font-weight-semibold); }
.tv__locs { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }
.tv__txt { min-height: 2.75rem; padding: 0 var(--space-2); border: 0; background: none; color: var(--color-text-secondary); font-size: var(--font-size-16); text-decoration: underline; text-decoration-color: var(--color-neutral-600); text-underline-offset: 0.3em; cursor: pointer; }
.tv__txt:hover { color: var(--color-text-primary); }
.tv__txt[aria-pressed="true"] { color: var(--color-text-primary); text-decoration-color: var(--color-brand-lilac); text-decoration-thickness: 2px; }
.tv__full { margin-left: auto; }
.tv__chs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: var(--space-4); border-bottom: var(--border-width-hairline) solid var(--line); }
.tv__chb { display: grid; align-content: start; gap: var(--space-2); min-height: 4.5rem; padding: var(--space-3) var(--space-2); border: 0; border-top: 2px solid var(--line); background: none; color: var(--color-text-secondary); text-align: left; font-size: var(--font-size-16); line-height: 1.25; cursor: pointer; }
.tv__chb b { font: 16px/1 "Press Start", monospace; color: var(--color-text-tertiary); }
.tv__chb:hover { color: var(--color-text-primary); }
.tv__chb[aria-pressed="true"] { border-top-color: var(--color-brand-lilac); color: var(--color-text-primary); }
.tv__chb[aria-pressed="true"] b { color: var(--color-brand-lilac); }
.tv__chb:active, .tv__txt:active, .tv__pw:active { transform: scale(var(--motion-scale-press)); }
@media (max-width: 767px) {
  .tv__panel { grid-template-columns: auto 1fr auto; gap: var(--space-2); padding: var(--space-3) 2px 2px; }
  .tv__ch { font-size: 16px; min-width: 3.25rem; }
  .tv__back, .tv__next { grid-row: 2; }
  .tv__back { grid-column: 1; } .tv__next { grid-column: 2 / -1; min-width: 0; }
  .tv__panel .hbtn { padding-inline: var(--space-3); justify-content: center; }
  .tv__chb { font-size: var(--font-size-14); padding-inline: var(--space-1); }
  .tv__full { margin-left: 0; }
  .tv__cap { min-height: 0; }
}

/* ---------- the text of the poster on the TV ---------- */
.dz { margin-top: var(--space-10); }
.dz:focus { outline: none; }
.dz__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); }
.dz__h { font-family: var(--type-h2-font-family); font-weight: var(--type-h2-font-weight); font-size: var(--font-size-fluid-h2); line-height: 1.1; letter-spacing: var(--type-h2-letter-spacing); }
.dz__h span { color: var(--color-brand-lilac); }
.dz__cols { display: grid; gap: var(--space-8); margin-top: var(--space-6); }
@media (min-width: 900px) { .dz__cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-16); } }
.dz h4 { margin: var(--space-6) 0 var(--space-1); font-size: 1.125rem; font-weight: var(--font-weight-semibold); line-height: 1.4; }
.dz__cols > div > h4:first-child { margin-top: 0; }
.dz p { max-width: 60ch; font-size: 1.0625rem; line-height: 1.6; color: var(--color-neutral-200); text-wrap: pretty; }
.sws { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.sws li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-3); font-size: 1rem; line-height: 1.45; color: var(--color-neutral-200); }
.sws b { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }
.hex { font-feature-settings: var(--font-feature-tabular); }
.sw { width: 2.5rem; height: 2.5rem; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.dz .far { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-6); font-size: 1rem; }
.far img { width: 256px; height: 128px; max-width: none; flex: none; }

/* ---------- product team ---------- */
.pt { margin-top: var(--space-8); }
.pt table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; line-height: 1.55; }
.pt th, .pt td { padding: var(--space-4) 0; border-top: var(--border-width-hairline) solid var(--line); text-align: left; vertical-align: top; }
.pt tr:last-child > * { border-bottom: var(--border-width-hairline) solid var(--line); }
.pt th { width: 34%; padding-right: var(--space-6); font-weight: var(--font-weight-semibold); }
.pt td { color: var(--color-neutral-200); overflow-wrap: anywhere; }
.pt td a { color: var(--color-brand-lilac); text-underline-offset: 0.25em; }
.pt li + li { margin-top: var(--space-1); }
@media (max-width: 479px) { .pt th { width: 38%; padding-right: var(--space-4); } }
.chapter--tight { padding-block: var(--space-12); }
.end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
@media (max-width: 479px) { .end .hbtn { width: 100%; justify-content: center; padding-inline: var(--space-3); } }
.tv__locs, .tv__full { margin-left: calc(var(--space-2) * -1); }
@media (min-width: 768px) { .tv__full { margin-left: auto; } }
