/*
 * Reel House: components
 * Built only from tokens.css. Load tokens.css first.
 */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rh-umber);
  color: var(--rh-cream);
  font-family: var(--rh-sans);
  font-size: var(--rh-text-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.rh-container { width: 100%; max-width: var(--rh-container); margin: 0 auto; padding: 0 var(--rh-gutter); }
.rh-narrow { max-width: var(--rh-narrow); margin: 0 auto; padding: 0 var(--rh-gutter); }
.rh-section { padding: var(--rh-section) 0; }
.rh-section--cocoa { background: var(--rh-cocoa); }
.rh-rule { border: 0; border-top: var(--rh-border); margin: 0; }

/* ---------- Type ---------- */
.rh-poster, .rh-hero-title, .rh-h2, .rh-h3 {
  font-family: var(--rh-display);
  font-weight: var(--rh-weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--rh-tracking-display);
  line-height: var(--rh-leading-display);
  margin: 0;
}
.rh-poster { font-size: var(--rh-text-poster); }
.rh-hero-title { font-size: var(--rh-text-hero); }
.rh-h2 { font-size: var(--rh-text-h2); }
.rh-h3 { font-size: var(--rh-text-h3); line-height: 1.05; }

.rh-lead {
  font-family: var(--rh-serif);
  font-size: var(--rh-text-lead);
  line-height: 1.45;
  color: var(--rh-dust);
  max-width: 560px;
  margin: 0;
}
.rh-lead em, .rh-serif-em { font-style: italic; color: var(--rh-cream); }

.rh-kicker {
  font-family: var(--rh-sans);
  font-size: var(--rh-text-micro);
  font-weight: var(--rh-weight-bold);
  letter-spacing: var(--rh-tracking-micro);
  text-transform: uppercase;
  color: var(--rh-dust);
  margin: 0;
}

/* ---------- Tag and badge ---------- */
.rh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid currentColor;
  border-radius: var(--rh-radius-tag);
  padding: 3px 7px 2px;
  font-size: var(--rh-text-micro);
  font-weight: var(--rh-weight-bold);
  letter-spacing: var(--rh-tracking-micro);
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}
.rh-tag--live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rh-exit);
  box-shadow: 0 0 10px var(--rh-exit-glow);
}
.rh-badge {
  display: inline-block;
  background: var(--rh-black);
  color: var(--rh-cream);
  border-radius: var(--rh-radius-tag);
  padding: 2px 6px;
  font-size: var(--rh-text-micro);
  font-weight: var(--rh-weight-bold);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--rh-radius-pill);
  border: 1px solid transparent;
  font-family: var(--rh-sans);
  font-size: var(--rh-text-ui);
  font-weight: var(--rh-weight-bold);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--rh-fast), color var(--rh-fast), transform var(--rh-fast);
}
.rh-btn svg { width: 16px; height: 16px; transition: transform var(--rh-fast) var(--rh-ease); }
.rh-btn:hover svg { transform: translateX(3px); }
.rh-btn--cream { background: var(--rh-cream); color: var(--rh-ink); }
.rh-btn--cream:hover { background: #fff; }
.rh-btn--exit { background: var(--rh-exit); color: var(--rh-ink); box-shadow: 0 0 24px var(--rh-exit-glow); }
.rh-btn--exit:hover { background: var(--rh-exit-dark); }
.rh-btn--ghost { background: transparent; color: var(--rh-cream); border: var(--rh-outline); }
.rh-btn--ghost:hover { background: rgba(243, 234, 216, .08); }
.rh-btn--block { width: 100%; }
.rh-btn--small { height: 38px; padding: 0 16px; font-size: var(--rh-text-small); }

/* ---------- Floating capsule nav with docked ticket strip ---------- */
.rh-nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--rh-nav-width), calc(100% - 32px));
  z-index: 20;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}
.rh-nav--static { position: relative; top: 0; left: 0; transform: none; margin: 20px auto 0; }
.rh-nav__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 18px;
  background: var(--rh-cream);
  color: var(--rh-ink);
  border-radius: 12px 12px 0 0;
}
.rh-nav__bar:only-child { border-radius: 12px; }
.rh-nav__menu { width: 22px; height: 12px; border-top: 2px solid var(--rh-ink); border-bottom: 2px solid var(--rh-ink); background: none; padding: 0; cursor: pointer; flex: none; }
.rh-nav__mark {
  font-family: var(--rh-display);
  font-size: 24px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.rh-nav__links { display: flex; gap: 18px; margin-left: auto; font-size: var(--rh-text-small); font-weight: var(--rh-weight-bold); }
.rh-nav__links a { text-decoration: none; }
.rh-nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rh-nav__strip {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px 0 8px;
  background: var(--rh-black);
  color: var(--rh-cream);
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-size: var(--rh-text-micro);
  font-weight: var(--rh-weight-bold);
  letter-spacing: var(--rh-tracking-micro);
  text-transform: uppercase;
}
.rh-nav__thumb { width: 40px; height: 28px; border-radius: 3px; background: var(--rh-scene-supper); flex: none; }
.rh-nav__strip svg { width: 16px; height: 16px; margin-left: auto; transition: transform var(--rh-fast) var(--rh-ease); }
.rh-nav__strip:hover svg { transform: translateX(3px); }

/* ---------- Stills: the drawn film frames ---------- */
.rh-still {
  position: relative;
  overflow: hidden;
  background: var(--rh-scene-cellar);
  isolation: isolate;
}
.rh-still::before, .rh-still::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.rh-still::before { background: var(--rh-vignette), var(--rh-grain); }
.rh-still--scrim::after { background: var(--rh-scrim); }
.rh-still > svg.rh-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.rh-still--cellar { background: var(--rh-scene-cellar); }
.rh-still--supper { background: var(--rh-scene-supper); }
.rh-still--dusk { background: var(--rh-scene-dusk); }
.rh-still--vine { background: var(--rh-scene-vine); }
.rh-still--letterbox { border-top: solid var(--rh-black); border-bottom: solid var(--rh-black); border-width: clamp(18px, 4vw, 56px) 0; }

/* Scene fills for inline SVG */
.rh-f-black { fill: var(--rh-black); }
.rh-f-umber { fill: var(--rh-umber); }
.rh-f-cocoa { fill: var(--rh-cocoa-2); }
.rh-f-ox { fill: var(--rh-oxblood); }
.rh-f-olive { fill: var(--rh-olive); }
.rh-f-lamp { fill: var(--rh-tungsten); }
.rh-f-cream { fill: var(--rh-cream); }
.rh-f-glow { fill: var(--rh-tungsten); opacity: .35; filter: blur(14px); }

/* ---------- Hero ---------- */
.rh-hero { min-height: min(100vh, 920px); min-height: min(100svh, 920px); display: flex; align-items: flex-end; }
.rh-hero__body { position: relative; z-index: 3; width: 100%; padding: 160px var(--rh-gutter) clamp(48px, 7vw, 88px); max-width: var(--rh-container); margin: 0 auto; }
.rh-hero__body .rh-tag { margin-bottom: 14px; }
.rh-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: 24px; }
.rh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page header: a shorter still for inner pages */
.rh-pagehead { min-height: 520px; display: flex; align-items: flex-end; }
.rh-pagehead .rh-hero__body { padding-top: 150px; }
.rh-pagehead .rh-lead { margin-top: 18px; }

/* ---------- Section head ---------- */
.rh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }
.rh-head .rh-kicker { margin-bottom: 12px; }

/* ---------- Rail of cards (like a row of films) ---------- */
.rh-rail-wrap { overflow-x: clip; }
.rh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.rh-rail::-webkit-scrollbar { display: none; }
.rh-card { text-decoration: none; display: block; min-width: 0; }
.rh-card__still { aspect-ratio: 16 / 10; border-radius: var(--rh-radius-card); }
.rh-card__still .rh-badge { position: absolute; right: 8px; bottom: 8px; z-index: 3; }
.rh-card__meta { margin: 12px 0 4px; font-size: var(--rh-text-small); color: var(--rh-dust); }
.rh-card__title { margin: 0; font-size: 17px; font-weight: var(--rh-weight-bold); line-height: 1.3; }
.rh-card:hover .rh-card__title { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Feature split ---------- */
.rh-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.rh-split__still { aspect-ratio: 4 / 5; border-radius: var(--rh-radius-card); }
.rh-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: var(--rh-border); }
.rh-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-bottom: var(--rh-border); }
.rh-list b { font-family: var(--rh-display); font-weight: var(--rh-weight-regular); font-size: 28px; line-height: 1; color: var(--rh-dust); }
.rh-list span { font-family: var(--rh-serif); font-size: var(--rh-text-body); }

/* ---------- Quote ---------- */
.rh-quote { margin: 0; text-align: center; }
.rh-quote p { font-family: var(--rh-serif); font-style: italic; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.2; margin: 0 auto 20px; max-width: 900px; }
.rh-quote cite { font-style: normal; }

/* ---------- Credits ticker ---------- */
.rh-ticker { overflow-x: clip; border-top: var(--rh-border); border-bottom: var(--rh-border); background: var(--rh-black); }
.rh-ticker__track { display: flex; gap: 48px; width: max-content; padding: 14px 0; animation: rh-roll 40s linear infinite; }
.rh-ticker__track span { font-family: var(--rh-display); font-size: 22px; text-transform: uppercase; color: var(--rh-dust); white-space: nowrap; }
.rh-ticker__track span::after { content: "\2022"; margin-left: 48px; color: var(--rh-exit); }
@keyframes rh-roll { to { transform: translateX(-50%); } }

/* ---------- Pricing ---------- */
.rh-toggle { display: inline-flex; padding: 4px; border: var(--rh-border); border-radius: var(--rh-radius-pill); background: var(--rh-black); }
.rh-toggle button { border: 0; background: none; color: var(--rh-dust); font: inherit; font-weight: var(--rh-weight-bold); font-size: var(--rh-text-small); padding: 8px 18px; border-radius: var(--rh-radius-pill); cursor: pointer; white-space: nowrap; }
.rh-toggle button[aria-pressed="true"] { background: var(--rh-cream); color: var(--rh-ink); }
.rh-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rh-plan { display: flex; flex-direction: column; background: var(--rh-cocoa); border: var(--rh-border); border-radius: var(--rh-radius-card); overflow: hidden; }
.rh-plan__still { height: 150px; }
.rh-plan__body { display: flex; flex-direction: column; gap: 16px; padding: 26px; flex: 1; }
.rh-plan__price { font-family: var(--rh-display); font-size: 64px; line-height: 1; }
.rh-plan__price small { font-family: var(--rh-sans); font-size: var(--rh-text-small); color: var(--rh-dust); margin-left: 6px; }
.rh-plan__desc { font-family: var(--rh-serif); font-size: 17px; color: var(--rh-dust); margin: 0; }
.rh-plan ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.rh-plan li { padding: 10px 0 10px 24px; border-top: var(--rh-border); position: relative; }
.rh-plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--rh-cream); }
.rh-plan--feature { border-color: var(--rh-exit); box-shadow: 0 0 0 1px var(--rh-exit), 0 0 40px rgba(61, 220, 132, .12); }
.rh-plan--feature li::before { background: var(--rh-exit); border-color: var(--rh-exit); }

.rh-table { width: 100%; border-collapse: collapse; font-size: var(--rh-text-ui); }
.rh-table th, .rh-table td { text-align: left; padding: 14px 12px; border-bottom: var(--rh-border); }
.rh-table th { font-size: var(--rh-text-micro); letter-spacing: var(--rh-tracking-micro); text-transform: uppercase; color: var(--rh-dust); }
.rh-table td:not(:first-child), .rh-table th:not(:first-child) { text-align: center; }
.rh-table-wrap { overflow-x: auto; }

.rh-faq details { border-bottom: var(--rh-border); padding: 20px 0; }
.rh-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: var(--rh-weight-bold); font-size: 17px; }
.rh-faq summary::after { content: "+"; font-family: var(--rh-display); font-size: 24px; line-height: 1; }
.rh-faq details[open] summary::after { content: "\2212"; }
.rh-faq p { font-family: var(--rh-serif); font-size: 17px; color: var(--rh-dust); margin: 12px 0 0; }

/* ---------- Article ---------- */
.rh-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px; font-size: var(--rh-text-small); color: var(--rh-dust); }
.rh-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--rh-scene-dusk); flex: none; }
.rh-article { font-family: var(--rh-serif); font-size: var(--rh-text-body); line-height: 1.7; }
.rh-article > p:first-of-type::first-letter { float: left; font-family: var(--rh-display); font-size: 88px; line-height: .8; padding: 8px 12px 0 0; color: var(--rh-cream); }
.rh-article p { margin: 0 0 1.3em; color: #E3D8C4; }
.rh-article h2 { font-family: var(--rh-display); font-weight: var(--rh-weight-regular); text-transform: uppercase; font-size: 40px; line-height: 1; margin: 1.6em 0 .6em; }
.rh-article a { color: var(--rh-cream); text-decoration-color: var(--rh-exit); text-underline-offset: 3px; }
.rh-pull { margin: 1.8em 0; padding: 0; font-family: var(--rh-display); text-transform: uppercase; font-size: clamp(34px, 5vw, 56px); line-height: .98; color: var(--rh-cream); }
.rh-pull cite { display: block; margin-top: 12px; font-family: var(--rh-sans); font-size: var(--rh-text-micro); letter-spacing: var(--rh-tracking-micro); color: var(--rh-dust); font-style: normal; }
.rh-figure { margin: 2em 0; }
.rh-figure .rh-still { aspect-ratio: 2.39 / 1; border-radius: var(--rh-radius-card); }
.rh-figure figcaption { font-family: var(--rh-sans); font-size: var(--rh-text-small); color: var(--rh-dust); margin-top: 10px; }
.rh-note { background: var(--rh-cocoa); border-left: 3px solid var(--rh-exit); padding: 18px 22px; border-radius: 0 var(--rh-radius-card) var(--rh-radius-card) 0; font-family: var(--rh-sans); font-size: var(--rh-text-ui); }

/* ---------- Forms ---------- */
.rh-form { display: grid; gap: 18px; }
.rh-field { display: grid; gap: 8px; }
.rh-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rh-label { font-size: var(--rh-text-micro); font-weight: var(--rh-weight-bold); letter-spacing: var(--rh-tracking-micro); text-transform: uppercase; color: var(--rh-dust); }
.rh-input, .rh-select {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: var(--rh-black);
  color: var(--rh-cream);
  border: 1px solid var(--rh-line-bright);
  border-radius: var(--rh-radius-pill);
  font: inherit;
  font-size: 16px;
}
.rh-input::placeholder { color: var(--rh-faint); }
.rh-input:focus, .rh-select:focus { outline: none; border-color: var(--rh-cream); box-shadow: 0 0 0 3px rgba(243, 234, 216, .15); }
.rh-hint { font-size: var(--rh-text-small); color: var(--rh-faint); }
.rh-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rh-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rh-choice { position: relative; }
.rh-choice input { position: absolute; opacity: 0; }
.rh-choice span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--rh-line-bright); border-radius: var(--rh-radius-card); cursor: pointer; font-weight: var(--rh-weight-bold); }
.rh-choice small { font-weight: var(--rh-weight-regular); color: var(--rh-dust); }
.rh-choice input:checked + span { border-color: var(--rh-exit); box-shadow: 0 0 0 1px var(--rh-exit); }
.rh-check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--rh-text-small); color: var(--rh-dust); }
.rh-check input { width: 18px; height: 18px; accent-color: var(--rh-exit); margin: 2px 0 0; flex: none; }
.rh-panel { background: var(--rh-cocoa); border: var(--rh-border); border-radius: var(--rh-radius-card); padding: clamp(24px, 4vw, 40px); }

/* ---------- Footer ---------- */
.rh-footer { background: var(--rh-black); padding: 72px 0 32px; overflow-x: clip; }
.rh-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.rh-footer h4 { margin: 0 0 14px; font-size: var(--rh-text-micro); letter-spacing: var(--rh-tracking-micro); text-transform: uppercase; color: var(--rh-dust); }
.rh-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rh-footer a { text-decoration: none; }
.rh-footer a:hover { text-decoration: underline; }
.rh-footer__word { font-family: var(--rh-display); text-transform: uppercase; font-size: clamp(64px, 17vw, 260px); line-height: .85; margin: 56px 0 18px; color: var(--rh-cocoa-2); white-space: nowrap; }
.rh-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--rh-text-small); color: var(--rh-faint); }

/* ---------- Motion ---------- */
.rh-fade { animation: rh-fade var(--rh-slow) var(--rh-ease) both; }
@keyframes rh-fade { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .rh-fade, .rh-ticker__track { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .rh-split, .rh-plans { grid-template-columns: 1fr; }
  .rh-footer__cols { grid-template-columns: 1fr 1fr; }
  .rh-nav__links { display: none; }
}
@media (max-width: 560px) {
  :root { --rh-gutter: 18px; --rh-text-body: 17px; }
  .rh-row-2, .rh-choices { grid-template-columns: 1fr; }
  .rh-nav__bar { gap: 12px; padding: 0 14px; }
  .rh-hero__actions .rh-btn { flex: 1 1 auto; }
  .rh-footer__cols { grid-template-columns: 1fr; }
}
