/* ============================================================
   RAY EMILIO — DESIGN SYSTEM
   Ported from _redesign for rayemilio.com/*.dc.html
   Four colors, two typefaces, one rule weight (2px), one accent.
   ============================================================ */

/* --- 1. Tokens ------------------------------------------- */

:root {
  --paper: #fff;
  --ink: #000;
  --electric: #1a40ff;
  --muted: #666;

  --fill: #f4f4f2;
  --stripe: #f2f2f0;
  --body-ink: #222;
  --sub-ink: #444;
  --invert-muted: #bbb;
  --invert-line: #333;

  --rule: 2px solid #000;
  --rule-w: 2px;

  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x: clamp(20px, 4vw, 40px);
  --pad-y: clamp(28px, 5vw, 64px);
  --frame: 1280px;
}

/* --- 2. Base --------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font: inherit;
}

img,
iframe,
video {
  max-width: 100%;
}

img {
  height: auto;
}

::selection {
  background: var(--electric);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: -3px;
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

/* Build strips links whose target page is "off". */
.unpublished-link {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- 3. Frame -------------------------------------------- */

.frame {
  max-width: var(--frame);
  min-height: 100vh;
  margin: 0 auto;
  border-left: var(--rule);
  border-right: var(--rule);
}

/* --- 4. Nav ---------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: var(--rule);
  background: var(--paper);
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__brand {
  padding: 17px 22px;
  border-right: var(--rule);
  white-space: nowrap;
}

.nav__brand span {
  color: var(--electric);
}

.nav__links {
  display: flex;
  margin-left: auto;
}

.nav__link {
  display: flex;
  align-items: center;
  padding: 17px 20px;
  border-left: var(--rule);
  transition: background 0.12s, color 0.12s;
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--ink);
  color: #fff;
}

.nav__link[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.nav__link--cta {
  background: var(--electric);
  color: #fff;
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  background: var(--ink);
}

.nav__toggle {
  display: none;
  align-items: center;
  padding: 17px 20px;
  border-left: var(--rule);
  font: inherit;
  letter-spacing: 0.06em;
}

/* --- 5. Sections & bars ---------------------------------- */

.section {
  border-bottom: var(--rule);
}

.section--pad {
  padding: var(--pad-y) var(--pad-x);
}

.section--invert {
  background: var(--ink);
  color: #fff;
}

.section--tall {
  padding-block: clamp(48px, 7vw, 96px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px var(--pad-x);
  border-bottom: var(--rule);
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bar__meta {
  color: var(--muted);
}

.bar__link {
  color: var(--electric);
}

.bar__link:hover {
  text-decoration: underline;
}

.section--invert .bar {
  border-bottom-color: var(--electric);
}

.section--invert .bar__meta {
  color: var(--invert-muted);
}

/* Inner rules go grey against an inverted ground so they read as
   dividers rather than as the page frame. */
.section--invert .cell,
.section--invert .row,
.section--invert .price {
  border-color: var(--invert-line);
}

/* --- 6. Page header -------------------------------------- */

.crumb {
  margin-bottom: clamp(16px, 3vw, 26px);
  font: 700 12px/1.5 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crumb a {
  color: var(--muted);
}

.crumb a:hover {
  color: var(--electric);
}

.eyebrow {
  margin-bottom: clamp(18px, 3vw, 28px);
  font: 700 12px/1.5 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow--accent {
  color: var(--electric);
  letter-spacing: 0.14em;
  font-size: 13px;
}

.eyebrow--mark {
  color: var(--electric);
  letter-spacing: 0.1em;
}

.h1 {
  margin: 0;
  font: 700 clamp(52px, 11vw, 140px) / 0.86 var(--sans);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.h1--xl {
  font-size: clamp(64px, 15vw, 196px);
  line-height: 0.84;
}

.h1--long {
  font-size: clamp(44px, 9.5vw, 124px);
}

.h2 {
  margin: 0 0 28px;
  font: 700 clamp(30px, 5vw, 58px) / 0.98 var(--sans);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.h2--sm {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}

.h3 {
  font: 700 clamp(22px, 2.6vw, 28px) / 1.02 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.body-copy {
  margin: 0 0 16px;
  max-width: 46ch;
  font: 400 16px/1.5 var(--sans);
  color: var(--body-ink);
}

.body-copy:last-child {
  margin-bottom: 0;
}

.link-mono {
  display: inline-block;
  color: var(--electric);
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-mono:hover {
  text-decoration: underline;
}

.deck {
  margin: clamp(22px, 3vw, 34px) 0 0;
  max-width: 52ch;
  font: 400 clamp(17px, 2vw, 21px) / 1.45 var(--sans);
}

.lede {
  margin: 0;
  max-width: 48ch;
  font: 400 clamp(17px, 2vw, 22px) / 1.42 var(--sans);
}

.split-end {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-top: clamp(24px, 4vw, 44px);
}

/* --- 7. Buttons ------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  border: var(--rule);
  font: 700 14px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.12s, color 0.12s;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: #fff;
}

.btn--primary {
  background: var(--electric);
  color: #fff;
}

.btn--sm {
  padding: 16px;
  font-size: 13px;
}

.btn-row {
  display: flex;
  gap: 10px;
}

.btn-row .btn {
  flex: 1;
}

/* --- 8. Grids -------------------------------------------- */

.grid {
  display: grid;
}

.g2 {
  grid-template-columns: 1fr 1fr;
}

.g2-wide {
  grid-template-columns: 1.3fr 1fr;
}

.g3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.g4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Cells are divided by borders, never gap. */
.cell {
  padding: clamp(24px, 3vw, 36px) 24px;
  border-right: var(--rule);
  border-bottom: var(--rule);
}

.cell--flush-r {
  border-right: 0;
}

.cell--flush-b {
  border-bottom: 0;
}

.cell--pad-lg {
  padding: clamp(28px, 4vw, 56px) var(--pad-x);
}

.cell--pad-xl {
  padding: clamp(36px, 5vw, 72px) var(--pad-x);
}

.cell--electric {
  background: var(--electric);
  color: #fff;
}

.cell--ink {
  background: var(--ink);
  color: #fff;
}

.cell__n {
  margin-bottom: 14px;
  font: 700 12px/1 var(--mono);
  color: var(--electric);
}

.cell--electric .cell__n {
  color: #fff;
  opacity: 0.85;
}

.cell__title {
  font: 700 clamp(22px, 2.6vw, 28px) / 1.02 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cell__body {
  margin-top: 10px;
  font: 400 13px/1.5 var(--sans);
  color: var(--sub-ink);
}

.cell--electric .cell__body,
.cell--ink .cell__body {
  color: #fff;
  opacity: 0.9;
}

.cell--ink .cell__body {
  color: var(--invert-muted);
  opacity: 1;
}

/* Index cards: whole cell is a link that inverts on hover. */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  padding: clamp(22px, 3vw, 32px) 22px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  transition: background 0.12s, color 0.12s;
}

.card:hover,
.card:focus-visible {
  background: var(--electric);
  color: #fff;
}

.card__n {
  font: 700 12px/1 var(--mono);
  color: var(--electric);
}

.card:hover .card__n,
.card:focus-visible .card__n {
  color: #fff;
}

.card__title {
  display: block;
  font: 700 clamp(24px, 3vw, 30px) / 1 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.card__body {
  display: block;
  margin-top: 8px;
  font: 400 12px/1.4 var(--mono);
  color: var(--muted);
}

.card:hover .card__body,
.card:focus-visible .card__body {
  color: #fff;
}

/* --- 9. Marquee ------------------------------------------ */

.marquee {
  overflow: hidden;
  border-bottom: var(--rule);
  background: var(--ink);
  color: #fff;
}

.marquee__inner {
  display: inline-flex;
  padding: 13px 0;
  white-space: nowrap;
  font: 700 15px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__inner {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- 10. Audio player ------------------------------------ */
/* Progressive enhancement: markup ships a native <audio controls>.
   site.js swaps in the custom transport and adds .player--ready. */

.player {
  display: flex;
  align-items: stretch;
  border-bottom: var(--rule);
}

.player:last-child {
  border-bottom: 0;
}

.player__play,
.player__bar,
.player__time {
  display: none;
}

.player--ready .player__play,
.player--pending .player__play {
  display: flex;
  align-items: center;
  justify-content: center;
}

.player--ready .player__bar,
.player--pending .player__bar {
  display: block;
}

.player--ready .player__time,
.player--pending .player__time {
  display: flex;
  align-items: center;
  justify-content: center;
}

.player--ready .player__native,
.player--pending .player__native {
  display: none;
}

.player__native {
  flex: 1;
  min-width: 180px;
  align-self: center;
  padding: 10px 14px;
}

.player__play {
  flex: none;
  width: 64px;
  border-right: var(--rule);
  background: var(--electric);
  color: #fff;
  font-size: 16px;
  transition: background 0.12s;
}

.player__play:hover,
.player__play:focus-visible {
  background: var(--ink);
}

.player__n {
  flex: none;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: var(--rule);
  font: 700 12px/1 var(--mono);
  color: var(--electric);
}

.player__meta {
  flex: none;
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 18px;
  border-right: var(--rule);
}

.player__title {
  display: block;
  font: 700 17px/1.15 var(--sans);
  text-transform: uppercase;
}

.player__credit {
  display: block;
  margin-top: 3px;
  font: 400 12px/1.3 var(--mono);
  color: var(--muted);
}

.player__bar {
  position: relative;
  flex: 1;
  min-width: 60px;
  align-self: stretch;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  background: repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 9px);
}

.player__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--electric);
  opacity: 0.85;
}

.player__tag {
  flex: none;
  width: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: var(--rule);
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

.player__time {
  flex: none;
  width: 108px;
  padding: 0 6px;
  border-left: var(--rule);
  font: 700 12px/1 var(--mono);
  text-align: center;
}

/* Row whose audio file has not been supplied yet. */
.player--pending .player__play {
  background: var(--fill);
  color: var(--muted);
  cursor: not-allowed;
}

.player--pending .player__title,
.player--pending .player__tag {
  color: var(--muted);
}

.player--pending .player__fill {
  background: var(--fill);
}

.player--pending .player__bar {
  cursor: default;
  opacity: 0.35;
}

.player--pending .player__time {
  color: var(--muted);
}

/* --- 11. Filter bar -------------------------------------- */

.filters {
  display: flex;
  overflow-x: auto;
  border-bottom: var(--rule);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filters__btn {
  padding: 14px 20px;
  border-right: var(--rule);
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.filters__btn:last-child {
  border-right: 0;
}

.filters__btn:hover {
  background: var(--ink);
  color: #fff;
}

.filters__btn[aria-pressed="true"] {
  background: var(--electric);
  color: #fff;
}

/* --- 12. Stats, quotes, testimonials --------------------- */

.stat__n {
  font: 700 clamp(40px, 6vw, 72px) / 1 var(--sans);
  letter-spacing: -0.04em;
}

.stat__label {
  margin-top: 10px;
  font: 700 12px/1.3 var(--mono);
  color: var(--muted);
  text-transform: uppercase;
}

.cell--electric .stat__label,
.cell--ink .stat__label {
  color: #fff;
  opacity: 0.85;
}

.statement {
  margin: 0;
  max-width: 22ch;
  font: 700 clamp(32px, 5.5vw, 76px) / 0.98 var(--sans);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.statement--wide {
  max-width: 26ch;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1;
}

.statement--narrow {
  max-width: 20ch;
  font-size: clamp(34px, 6vw, 84px);
}

.attrib {
  margin-top: 24px;
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--electric);
  text-transform: uppercase;
}

.section--invert .statement + p {
  margin: 28px 0 0;
  max-width: 52ch;
  font: 400 clamp(15px, 2vw, 18px) / 1.5 var(--sans);
  color: var(--invert-muted);
}

.testi__quote {
  margin: 0 0 18px;
  font: 500 clamp(17px, 2vw, 20px) / 1.4 var(--sans);
}

.testi__by {
  font: 700 12px/1.4 var(--mono);
  color: var(--electric);
  text-transform: uppercase;
}

/* --- 13. Numbered rows ----------------------------------- */

.rows {
  display: flex;
  flex-direction: column;
}

.row {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-bottom: var(--rule);
}

.row:last-child {
  border-bottom: 0;
}

.row--svc {
  grid-template-columns: 90px 1.1fr 1fr;
}

.row__n {
  padding: clamp(20px, 2.5vw, 30px) 22px;
  border-right: var(--rule);
  font: 700 clamp(28px, 4vw, 44px) / 1 var(--sans);
  color: var(--electric);
}

.row__main {
  padding: clamp(20px, 2.5vw, 30px) 24px;
}

.row--svc .row__main {
  align-self: center;
  border-right: var(--rule);
  font: 700 clamp(22px, 2.8vw, 32px) / 1 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.row__title {
  font: 700 19px/1.1 var(--sans);
  text-transform: uppercase;
}

.row__body {
  margin-top: 6px;
  max-width: 60ch;
  font: 400 14px/1.5 var(--sans);
  color: var(--sub-ink);
}

.row--svc .row__body {
  margin-top: 0;
  align-self: center;
  padding: clamp(20px, 2.5vw, 30px) 24px;
}

/* --- 14. Pricing ----------------------------------------- */

.price {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px) 26px;
  border-right: var(--rule);
  border-bottom: var(--rule);
}

.price__name {
  font: 700 22px/1 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.price__flag {
  padding: 4px 7px;
  vertical-align: middle;
  background: #fff;
  color: var(--electric);
  font: 700 10px/1 var(--mono);
}

.price__amount {
  margin: 18px 0 4px;
  font: 700 clamp(36px, 5vw, 56px) / 1 var(--sans);
  letter-spacing: -0.04em;
}

.price__unit {
  font: 700 14px/1 var(--mono);
  color: var(--muted);
}

.price--electric .price__unit {
  color: #fff;
  opacity: 0.8;
}

.price__body {
  margin-top: 14px;
  font: 400 14px/1.5 var(--sans);
  color: var(--sub-ink);
}

.price--electric {
  background: var(--electric);
  color: #fff;
}

.price--electric .price__body {
  color: #fff;
  opacity: 0.92;
}

/* --- 15. Link / spec lists ------------------------------- */

.stack {
  display: flex;
  flex-direction: column;
}

.linkrow {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 26px) 24px;
  border-bottom: var(--rule);
  font: 700 15px/1.3 var(--mono);
  text-transform: uppercase;
  transition: background 0.12s, color 0.12s;
}

.linkrow:last-child {
  border-bottom: 0;
}

a.linkrow:hover,
a.linkrow:focus-visible {
  background: var(--ink);
  color: #fff;
}

.linkrow__mark {
  color: var(--electric);
}

a.linkrow:hover .linkrow__mark,
a.linkrow:focus-visible .linkrow__mark {
  color: #fff;
}

.linkrow--spec {
  font-size: 13px;
}

.linkrow__value {
  color: var(--muted);
  text-align: right;
}

a.linkrow:hover .linkrow__value {
  color: #fff;
}

/* Coverage rows (press) */
.cov {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 2.4vw, 26px) var(--pad-x);
  border-bottom: var(--rule);
  transition: background 0.12s, color 0.12s;
}

.cov:last-child {
  border-bottom: 0;
}

.cov:hover,
.cov:focus-visible {
  background: var(--electric);
  color: #fff;
}

.cov__title {
  font: 700 clamp(17px, 2vw, 22px) / 1.2 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cov__src {
  font: 700 12px/1.3 var(--mono);
  white-space: nowrap;
  text-align: right;
  text-transform: uppercase;
}

/* --- 16. Media ------------------------------------------- */

.media {
  display: block;
  border-bottom: var(--rule);
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--band {
  height: clamp(220px, 32vw, 420px);
  overflow: hidden;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.gallery__cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-right: var(--rule);
  border-bottom: var(--rule);
}

.gallery__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed--tall {
  aspect-ratio: auto;
  height: 380px;
}

.embed--panel {
  aspect-ratio: auto;
  height: 620px;
}

.embed-cell {
  border-right: var(--rule);
  border-bottom: var(--rule);
}

.embed-cell__label {
  padding: 12px 16px;
  border-bottom: var(--rule);
  font: 700 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Placeholder tile for assets that have not been supplied yet. */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 32vw, 420px);
  background: repeating-linear-gradient(45deg, var(--stripe) 0 22px, #fff 22px 44px);
}

.placeholder__label {
  padding: 12px 18px;
  border: var(--rule);
  background: #fff;
  font: 700 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
  color: #999;
  text-transform: uppercase;
  text-align: center;
}

/* --- 17. Wordmark wall ----------------------------------- */

.wordmark {
  padding: clamp(28px, 3.5vw, 44px) 20px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  font: 700 clamp(15px, 1.6vw, 19px) / 1.1 var(--sans);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.12s, color 0.12s;
}

a.wordmark:hover,
a.wordmark:focus-visible {
  background: var(--ink);
  color: #fff;
}

.wordmark--accent {
  color: var(--electric);
}

/* --- 18. FAQ (native details, zero JS) ------------------- */

.faq__item {
  border-bottom: var(--rule);
}

.faq__item:last-child {
  border-bottom: 0;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 2.4vw, 26px) var(--pad-x);
  font: 700 clamp(17px, 2vw, 21px) / 1.2 var(--sans);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.faq__x {
  flex: none;
  color: var(--electric);
  font-size: 22px;
  transition: transform 0.12s;
}

.faq__item[open] .faq__x {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 var(--pad-x) clamp(20px, 2.6vw, 28px);
  max-width: 68ch;
  font: 400 15px/1.55 var(--sans);
  color: var(--sub-ink);
}

/* --- 19. Footer ------------------------------------------ */

.foot {
  display: flex;
  font: 700 12px/1.4 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.foot > * {
  flex: 1;
  padding: 18px 22px;
  border-right: var(--rule);
}

.foot > *:last-child {
  border-right: 0;
  text-align: right;
}

.foot a:hover {
  color: var(--electric);
}

/* --- 20. Prose (legacy page bodies) ---------------------- */
/* Legacy content keeps its own markup; this gives it the
   design system's typography inside the same frame. */

.prose {
  padding: clamp(28px, 4vw, 56px) var(--pad-x) clamp(40px, 6vw, 80px);
}

.prose > * {
  max-width: 68ch;
}

.prose h1 {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font: 700 clamp(40px, 8vw, 96px) / 0.9 var(--sans);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: none;
}

.prose h2 {
  margin: clamp(36px, 5vw, 56px) 0 16px;
  padding-top: 16px;
  border-top: var(--rule);
  font: 700 clamp(22px, 3vw, 34px) / 1.05 var(--sans);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.prose h3,
.prose h4 {
  margin: 28px 0 10px;
  font: 700 13px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prose p,
.prose li,
.prose dd,
.prose article,
.prose section,
.prose figcaption,
.prose div {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose a {
  color: var(--electric);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.prose a:hover {
  background: var(--electric);
  color: #fff;
  text-decoration: none;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose dt {
  margin-top: 1em;
  font: 700 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose dd {
  margin: 0 0 0.2em;
  color: var(--sub-ink);
}

.prose hr {
  width: 100% !important;
  height: 0;
  margin: clamp(32px, 5vw, 56px) 0;
  border: 0;
  border-top: var(--rule);
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 24px;
  border-left: var(--rule);
  font: 500 clamp(17px, 2vw, 21px) / 1.4 var(--sans);
}

.prose blockquote p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.prose figure {
  margin: clamp(28px, 4vw, 44px) 0;
  max-width: none;
}

.prose figcaption {
  margin-bottom: 10px;
  font: 700 12px/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.prose .testimonials figcaption {
  margin: 8px 0 0;
  color: var(--electric);
}

.prose iframe {
  max-width: 100%;
  border: var(--rule);
}

.prose img {
  border: var(--rule);
}

.prose .image-gallery,
.prose .product-grid,
.prose .articles,
.prose .products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin: clamp(24px, 3vw, 36px) 0;
  padding: 0;
  max-width: none;
  list-style: none;
  border-top: var(--rule);
  border-left: var(--rule);
}

.prose .image-gallery > *,
.prose .product-grid > li,
.prose .articles > li,
.prose .products-list > li {
  margin: 0;
  padding: 14px;
  border-right: var(--rule);
  border-bottom: var(--rule);
}

.prose .image-gallery img,
.prose .product-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 0;
}

.prose .image-gallery iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.prose .product-grid p {
  margin: 8px 0 0;
  font: 700 11px/1.4 var(--mono);
  text-transform: uppercase;
}

.prose input[type="text"],
.prose input[type="search"] {
  width: 100%;
  max-width: 34ch;
  padding: 14px 16px;
  border: var(--rule);
  font: 700 13px/1 var(--mono);
  text-transform: uppercase;
}

.prose input:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 0;
}

.prose audio {
  width: 100%;
}

.prose .audio-item {
  margin: 0;
}

/* --- 21. Responsive -------------------------------------- */

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: var(--rule);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    z-index: 60;
  }

  .nav--open .nav__links {
    display: flex;
  }

  .nav__link {
    padding: 16px 22px;
    border-left: 0;
    border-bottom: var(--rule);
  }

  .nav__link:last-child {
    border-bottom: 0;
  }

  .g3,
  .g4 {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .g2,
  .g2-wide,
  .split-end {
    grid-template-columns: 1fr;
  }

  .split-end > * + * {
    margin-top: 8px;
  }

  .row--svc {
    grid-template-columns: 1fr;
  }

  .row--svc .row__n,
  .row--svc .row__main {
    border-right: 0;
    border-bottom: var(--rule);
  }

  .cov {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cov__src {
    text-align: left;
  }

  /* A cell that only had a right border now needs a bottom one. */
  .cell--flush-b,
  .price {
    border-bottom: var(--rule);
  }
}

@media (max-width: 640px) {
  .g2,
  .g3,
  .g4,
  .gallery {
    grid-template-columns: 1fr;
  }

  .cell,
  .card,
  .price,
  .gallery__cell,
  .wordmark,
  .embed-cell {
    border-right: 0;
  }

  .player {
    flex-wrap: wrap;
  }

  .player__meta {
    width: auto;
    flex: 1;
    border-right: 0;
  }

  .player__tag {
    display: none;
  }

  .player--ready .player__bar {
    flex-basis: 100%;
    min-height: 34px;
    border-top: var(--rule);
  }

  .player__time {
    width: auto;
    flex: none;
    padding: 0 14px;
  }

  .btn-row {
    flex-direction: column;
  }

  .foot {
    flex-direction: column;
  }

  .foot > * {
    border-right: 0;
    border-bottom: var(--rule);
    text-align: left;
  }

  .foot > *:last-child {
    border-bottom: 0;
    text-align: left;
  }

  .prose .image-gallery,
  .prose .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* --- 22. Motion & print ---------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee__inner {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .nav,
  .marquee,
  .player__play,
  .player__bar,
  .player__time {
    display: none !important;
  }

  .frame {
    border: 0;
    max-width: none;
  }
}
