/* The home page. Everything here leans on the tokens and components in
   site.css and adds only what the home page's own families need: the hero
   plate that carries the playable inside a photographed phone, the demo grid,
   the living prizes in their ceremony frames, the style pairs, the sample
   voices. Nothing in this file redefines a token. */

/* ---------------------------------------------------------------- 1. hero */

.hero-split { align-items: center; gap: 72px; }
.hero-copy { min-width: 0; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 0; }

.hero-note {
  margin: 32px 0 0; max-width: 46ch;
  font-size: 15px; line-height: 1.5; color: var(--caption);
}

.hero-won { margin-top: 24px; padding: 16px 20px; background: var(--night-deep); border-radius: var(--r-pic); box-shadow: 0 0 0 1px var(--brass); max-width: 46ch; }
.hero-won p { margin: 0 0 10px; color: var(--champagne); font-weight: 600; }
.hero-won .hero-won-links { display: flex; gap: 24px; margin: 0; font-weight: 400; }

/* the photographed plate: the game sits behind the hole in the phone screen,
   the cut photograph lies over it, and taps fall through to the canvas */
.hero-stage { min-width: 0; }
.hero-plate { position: relative; overflow: hidden; }
.hero-plate::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--night-deep);
}
.hero-photo {
  position: relative; z-index: 2; display: block; width: 100%; height: auto;
  pointer-events: none;
}
.hero-screen {
  position: absolute; left: 0; top: 0; z-index: 1;
  transform-origin: 0 0; will-change: transform;
}
.hero-screen .hg { width: 100%; height: 100%; aspect-ratio: auto; font-size: clamp(8px, 3.4cqw, 15px); }
/* the screen in the photograph is only about 180px wide, far too small for
   the game's own hint pill and finale overlay to be read: inside the phone
   only the picture plays, and the words are the page's, beside it. In the
   plain device frame under the headline the overlay is left alone. */
.hero-screen .hg-hint, .hero-screen .hg-end { display: none; }

/* narrow viewports: the same game, full width, in a plain device frame */
.hero-small { display: none; margin-top: 32px; }
.hero-small .hero-small-slot { display: block; }
.hero-small .hg { width: 100%; }

/* ------------------------------------------------------ 2. the cast rail */

/* the stacking of name over role now lives in site.css, where the rail does */
.rail .role { text-wrap: balance; }

/* ---------------------------------------------------------- 3. demo games */

.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.demo-card { min-width: 0; }
.demo-reel { display: block; border-radius: var(--r-pic); overflow: hidden; box-shadow: 0 0 0 1px var(--keyline), var(--shadow-pic); transition: transform .22s ease, box-shadow .22s ease; }
.demo-reel:hover, .demo-reel:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brass-2), var(--shadow-pic); }
.demo-reel .reel-stage { border-radius: 0; }
.demo-card h3 { margin: 16px 0 2px; font: 600 17px/1.3 var(--sans); color: var(--champagne); }
.demo-line { margin: 0; font-size: 14px; line-height: 1.4; color: var(--caption); }
.demo-links { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }

/* ------------------------------------------------ 4. living pictures */

.living-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.living-copy { min-width: 0; max-width: 52ch; }
.living-copy h2 { margin-bottom: 20px; }
.living-copy p { color: var(--muted); margin: 0 0 16px; }
.living-copy .note { margin-top: 24px; }

.living-clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; min-width: 0; }
.live { min-width: 0; }
.live-frame { position: relative; }
.live-frame-art { position: relative; z-index: 2; display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 26px 44px rgba(4, 7, 26, .8)); }
.live-clip { position: absolute; z-index: 1; display: block; overflow: hidden; background: var(--night-deep); }
.live-clip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.live figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--caption); }

/* --------------------------------------------- 5. styles and outfits */

.style-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.style-card { display: block; min-width: 0; text-decoration: none; color: inherit; }
.style-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.style-card .name { display: block; margin-top: 14px; font: 600 17px/1.3 var(--sans); color: var(--champagne); }
.style-card .line { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--caption); }
.style-card:hover .keyed, .style-card:focus-visible .keyed { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brass-2), var(--shadow-pic); }

.styles h3 { margin-bottom: 12px; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.outfit-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.outfit { display: block; min-width: 0; text-decoration: none; color: inherit; }
.outfit .name { display: block; margin-top: 10px; font: 500 14px/1.35 var(--sans); color: var(--muted); }
.outfit:hover .keyed, .outfit:focus-visible .keyed { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brass-2), var(--shadow-pic); }

/* ------------------------------------------------- 6. sample voices */

.voice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.voice {
  position: relative; min-width: 0; padding: 26px 26px 24px;
  background: var(--night-deep); border-radius: var(--r-pic);
  box-shadow: 0 0 0 1px var(--hair);
}
.voice .tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px;
  font: 600 13px/1.3 var(--sans); color: var(--brass-2);
  border: 1px solid var(--hair);
}
.voice blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text); }
.voice blockquote::before { content: "\201c"; }
.voice blockquote::after { content: "\201d"; }
.voice figcaption { margin-top: 14px; font-size: 14px; color: var(--caption); }

/* ------------------------------------------------------- 7. the plans */

.plans-section .actions { margin-top: 40px; }

/* ------------------------------------------------------ 8. narrower */

@media (max-width: 1180px) {
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .outfit-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .living-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .living-copy { max-width: 62ch; }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-stage { display: none; }
  .hero-small { display: block; }
  .hero-note { max-width: none; }
}
@media (max-width: 860px) {
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .outfit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .living-clips { gap: 20px; }
  .hero-note { font-size: 14px; }
}
@media (max-width: 520px) {
  .living-clips { grid-template-columns: minmax(0, 1fr); }
}
