/* V1 — Discovery first: the cast is the hero. */

.hero { position: relative; padding-top: clamp(28px, 5vw, 64px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 520px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 40%, rgba(110, 36, 48, 0.35), transparent 70%);
}
.hero-copy { position: relative; text-align: center; max-width: 780px; margin-inline: auto; padding-inline: var(--gutter); }
.hero-copy h1 {
  font: 400 clamp(34px, 4.6vw, 58px)/1.06 var(--serif); letter-spacing: -0.01em; text-wrap: balance;
}
.hero-copy .lede { margin: 16px auto 0; max-width: 560px; color: var(--muted); font-size: 16.5px; }

.hero-actions { margin-top: 26px; display: flex; justify-content: center; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.hero-copy .note { margin-top: 18px; }

/* Cast wall: two rows drifting in opposite directions */
.cast { position: relative; margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 14px; padding-bottom: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.cast-row { display: flex; gap: 14px; width: max-content; animation: drift 90s linear infinite; }
.cast-row.reverse { animation-direction: reverse; animation-duration: 110s; }
.cast:hover .cast-row, .cast:focus-within .cast-row { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cast-row { animation: none; }
  .cast { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
.cast-card { position: relative; flex: none; width: clamp(132px, 13vw, 188px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cast-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cast-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(8, 6, 8, 0.92)); }
.cast-card span { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; line-height: 1.25; }
.cast-card strong { display: block; font: 400 15.5px/1.2 var(--serif); }
.cast-card small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--gold-bright); letter-spacing: 0.02em; }
.cast-card:hover img { transform: scale(1.05); }

/* Sticky mood tabs */
.tabs {
  position: sticky; top: 0; z-index: 15; margin-top: clamp(48px, 7vw, 80px);
  background: rgba(11, 10, 12, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.tabs ul { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs a { display: block; white-space: nowrap; padding: 15px 0 13px; font-size: 14px; color: var(--muted); box-shadow: inset 0 -2px 0 transparent; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); }
.tabs .browse-all { margin-left: auto; }
.tabs .browse-all a { color: var(--gold-bright); }

/* Shelves */
.shelf { padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: 64px; }
.shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s ease; }
.card:hover { box-shadow: inset 0 0 0 1px rgba(236, 227, 217, 0.26); }
.card figure { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 0.5s ease; }
.card:hover figure img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card-body .trait { font-size: 12.5px; line-height: 1.4; color: var(--muted); margin-bottom: -4px; }
.card-body h3 { font-size: 19px; line-height: 1.2; }
.card-body p { color: var(--muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .story { margin-top: auto; padding-top: 4px; font: italic 15px/1.35 var(--serif); color: var(--gold-bright); }
.shelf-more { white-space: nowrap; }

@media (max-width: 960px) { .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .shelf .section-head { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 14px; }
  .shelf-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .shelf-grid::-webkit-scrollbar { display: none; }
  .shelf-grid .card { flex: 0 0 72%; scroll-snap-align: start; }
  .card-body h3 { font-size: 18px; }
}

/* Feature: an opening scene, right after the hero */
.feature { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.feature-art { position: relative; min-height: 460px; }
.feature-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--surface)); }
.feature-copy { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.feature-copy h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.scene { font-family: var(--serif); font-size: 17px; line-height: 1.65; color: #d9cfc5; }
.scene q { display: block; margin-top: 12px; font-style: italic; font-size: 21px; line-height: 1.4; color: var(--text); quotes: "\201C" "\201D"; }
.prompt { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lines { display: grid; gap: 10px; }
.line { padding: 1px 0 1px 14px; border-left: 2px solid rgba(201, 162, 75, 0.5); font: italic 16px/1.45 var(--serif); }
.line small { display: block; margin-top: 3px; color: var(--muted); font: italic 12.5px/1.4 var(--sans); }
.feature-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.feature-cta small { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 0; aspect-ratio: 4 / 3; }
  .feature-art::after { background: linear-gradient(180deg, transparent 55%, var(--surface)); }
}

/* Steps */
.steps { padding-top: clamp(64px, 9vw, 112px); }
.steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 36px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; margin-bottom: 10px; font: italic 28px/1 var(--serif); color: var(--gold); }
.steps h3 { font-size: 18px; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; } }

/* Closing */
.closing { text-align: center; padding: clamp(56px, 8vw, 96px) var(--gutter); border-top: 1px solid var(--line); }
.faces { display: flex; justify-content: center; margin-bottom: 22px; }
.faces img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--bg); margin-left: -12px; }
.faces img:first-child { margin-left: 0; }
.closing h2 { font-size: clamp(24px, 2.6vw, 32px); }
.closing p { margin: 10px auto 22px; color: var(--muted); max-width: 460px; }
.closing .text-link { display: block; width: fit-content; margin: 18px auto 0; }

/* Compare */
.compare { padding-top: clamp(64px, 9vw, 112px); scroll-margin-top: 24px; }
.compare-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font: 400 18px/1.2 var(--serif); color: var(--text); background: var(--surface); }
.compare thead th:nth-child(2) { color: var(--gold-bright); }
.compare tbody th { width: 22%; font-weight: 600; color: var(--muted); font-size: 13px; letter-spacing: 0.02em; }
.compare tbody td:nth-child(2) { background: rgba(201, 162, 75, 0.06); }
.compare td { color: #d9cfc5; }
.compare-note { margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Story shelves intro (below the comparison) */
.stories-head { padding-top: clamp(40px, 5vw, 64px); margin-bottom: 0; }
