/* Casting Collection website. Built from the Claude Design export (design/Casting Collection website.html: the Desktop
   and Phone boards). Colours exactly the app's (casting-collection-v2 design-import/COLOUR-SPEC.md); no gold.
   The phone layout is the design's own phone rules (max-width: 760px). No web fonts: Apple's system font, as designed. */
:root {
  --deep: #0C0330;        /* below the page: sticky header, alternate bands */
  --ink: #0D0631;         /* the page */
  --surface-1: #16133C;   /* panels */
  --surface-2: #1D1943;   /* inner fields */
  --title: #E7EDF0;       /* titles and body text */
  --muted: #B4BCC0;       /* labels and meta (>= 7:1) */
  --accent: #5CC8EE;      /* pressable only: buttons and links */
  --accent-light: #9ADCF5;/* hover */
  --on-accent: #04171F;   /* text on a filled cyan button */
  --line: rgba(255, 255, 255, 0.10);
  --line-mid: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100%; background: var(--ink); color: var(--title);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
a:focus-visible, button:focus-visible { outline: 2px solid rgba(92, 200, 238, 0.6); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.wrap.narrow { max-width: 1000px; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(12, 3, 48, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--title); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.brand:hover { color: var(--title); }
.brand img { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-mid); }
.nav-links { display: flex; gap: 28px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--title); }

/* ── sections ── */
.sec { padding-top: 120px; padding-bottom: 120px; }
.sec.band { background: var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.tight-top { padding-top: 40px; }
.sec-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; }
.h2 { margin: 0; font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; color: var(--title); }
.rule { width: 72px; height: 2px; background: var(--accent); }
.rule.short { width: 48px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.big { margin: 0; font-size: 34px; line-height: 1.38; font-weight: 500; letter-spacing: -0.01em; color: var(--title); }
p { margin: 0; }

/* ── opening ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { margin: 0; font-size: 68px; line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; color: var(--title); }
.lead { font-size: 20px; line-height: 1.55; color: var(--title); }
.lead.muted { color: var(--muted); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn-fill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; box-shadow: 0 0 28px rgba(92, 200, 238, 0.35); }
.btn-fill:hover { background: var(--accent-light); color: var(--on-accent); }
.btn-line { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 12px; border: 1px solid rgba(92, 200, 238, 0.6); background: rgba(92, 200, 238, 0.08); color: var(--accent); font-weight: 600; font-size: 16px; }
.btn-line:hover { border-color: var(--accent); background: rgba(92, 200, 238, 0.16); color: var(--accent-light); }
.hero-logo { width: 100%; justify-self: center; }
.hero-logo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 32px; border: 1px solid var(--line-mid); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(92, 200, 238, 0.12); }

/* ── why I built it ── */
.quote-label { margin-bottom: 28px; }
blockquote { margin: 0; display: flex; flex-direction: column; gap: 32px; }
blockquote footer { display: flex; align-items: center; gap: 14px; font-size: 16px; color: var(--muted); }
blockquote footer .dash { width: 32px; height: 1px; background: var(--line-mid); flex: none; }
blockquote footer strong { color: var(--title); font-weight: 600; }

/* ── features ── */
.feat { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feat.flip .feat-text { order: 2; }
.feat.many { align-items: start; }
.feat.many .feat-text { position: sticky; top: 100px; }
.feat-text { display: flex; flex-direction: column; gap: 20px; }
.feat-num { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.feat h3 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 800; text-transform: uppercase; color: var(--title); }
.points { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.points li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--title); }
.points li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--muted); }
.shots { display: flex; flex-direction: column; gap: 24px; }
.shot { margin: 0; padding: 10px; border-radius: 16px; border: 1px solid var(--line-mid); background: var(--surface-1); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3); }
.shot a { display: block; border-radius: 8px; overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--surface-2); }
.shot.portrait { width: 100%; max-width: 440px; margin: 0 auto; }

/* ── more screens (gallery) ── */
.gallery-head { padding-top: 56px; border-top: 1px solid var(--line); margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.gallery .shot { height: 100%; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.gallery .shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.gallery figcaption { padding: 2px 4px 4px; font-size: 14px; color: var(--muted); }

/* ── who it's for / private ── */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel { display: flex; flex-direction: column; gap: 22px; padding: 44px; border-radius: 20px; background: var(--surface-1); border: 1px solid var(--line-mid); }
.panel .h2 { font-size: 40px; }
.panel-head { display: flex; align-items: center; gap: 16px; }
.icon-tile { display: flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-mid); color: var(--title); }
.panel .small { font-size: 17px; line-height: 1.55; color: var(--muted); }
.panel .smaller { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ── the promo ── */
.player-frame { padding: 10px; border-radius: 20px; border: 1px solid var(--line-mid); background: var(--surface-1); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--deep); overflow: hidden; }
.player-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 74%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; box-shadow: 0 0 40px rgba(92, 200, 238, 0.45); }
.play:hover { background: var(--accent-light); }
.play:focus-visible { outline-offset: 4px; border-radius: 50%; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ── built by and credits ── */
.built { margin: 0 0 56px; max-width: 860px; font-size: 30px; line-height: 1.4; }
.credits-intro { margin-bottom: 24px; font-size: 17px; color: var(--muted); }
.credits { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
.credits h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.credit-list { list-style: none; margin: 0; padding: 0; }
.credit-list li { break-inside: avoid; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--title); }
.film-list { columns: 2; column-gap: 32px; }
.imdb { margin-top: 36px; font-size: 16px; }
.imdb a { font-weight: 600; }

/* ── contact ── */
.contact { display: flex; flex-direction: column; gap: 22px; }
.contact .label { font-size: 17px; color: var(--muted); }
.contact .email { font-size: 40px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.38; overflow-wrap: anywhere; }
.contact .channel { margin-top: 12px; font-size: 18px; color: var(--title); }
.contact .channel a { font-weight: 600; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); background: var(--deep); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ── between desktop and phone ── */
@media (max-width: 1100px) {
  .hero h1 { font-size: 56px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) and (min-width: 761px) {
  .hero { gap: 40px; }
  .hero h1 { font-size: 48px; }
  .feat { gap: 40px; }
  .feat h3 { font-size: 28px; }
  .big { font-size: 28px; }
  .panel { padding: 32px; }
  .panel .h2 { font-size: 32px; }
  .film-list { columns: 1; }
}

/* ── phone: the design's own rules (Phone board) ── */
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .brand-name { display: none; }
  .hero, .feat, .two, .credits { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feat.flip .feat-text { order: 0; }
  .feat.many .feat-text { position: static; }
  .hero-logo { order: -1; max-width: 300px; }
  .hero h1 { font-size: 40px; }
  .big { font-size: 26px; }
  .h2 { font-size: 32px; }
  .panel .h2 { font-size: 32px; }
  .btns a { width: 100%; justify-content: center; }
  .film-list { columns: 1; }
  .sec { padding-top: 72px; padding-bottom: 72px; }
  .sec.tight-top { padding-top: 72px; }
  .play { width: 72px; height: 72px; }
  .play svg { width: 28px; height: 28px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .contact .email { font-size: 26px; overflow-wrap: normal; }
  .play { top: 76%; }
}

/* ── footer link and the privacy page ── */
.foot-legal a { margin-left: 16px; font-weight: 600; }
.legal { max-width: 760px; }
.legal p { font-size: 17px; line-height: 1.65; color: var(--title); }
.legal .legal-date { margin-top: -24px; margin-bottom: 32px; font-size: 15px; color: var(--muted); }
.legal h2 { margin: 44px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--title); }
.legal .legal-scope { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.legal a { font-weight: 600; }
@media (max-width: 760px) {
  .legal p { font-size: 16px; }
  .legal .legal-date { margin-top: -16px; }
  .legal h2 { margin-top: 36px; font-size: 20px; }
}

/* ── licence and requirements ── */
.points.licence { max-width: 880px; }
.points.licence li { font-size: 19px; line-height: 1.55; padding: 18px 0; }
.points.licence li::before { margin-top: 12px; }
.points.licence a { font-weight: 600; }
@media (max-width: 760px) {
  .points.licence li { font-size: 17px; padding: 14px 0; }
  .points.licence li::before { margin-top: 10px; }
}

/* ── screenshot overlay (lightbox.js) ── */
.shot a { cursor: zoom-in; }
html.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 72px 88px 32px; background: rgba(13, 6, 49, 0.92);   /* the page colour #0D0631 at 92% */
  touch-action: pinch-zoom; overscroll-behavior: contain;
}
.lb[hidden] { display: none; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-img {
  display: block; max-width: none; border-radius: 10px; border: 1px solid var(--line-mid); background: var(--surface-1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.lb-cap { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; text-align: center; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 999px;
  border: 1.5px solid var(--accent); background: rgba(13, 6, 49, 0.7); color: var(--accent); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lb-btn:hover { color: var(--accent-light); border-color: var(--accent-light); }
.lb-btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 999px; }
.lb-close { top: 12px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); display: none; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb.lb-many .lb-prev, .lb.lb-many .lb-next { display: grid; }
@media (max-width: 760px) {
  .lb { padding: 72px 16px 24px; }
  .lb.lb-many { padding-bottom: 96px; }
  .lb-close { top: 10px; right: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 68px); }
  .lb-next { right: calc(50% - 68px); left: auto; }
  .lb-cap { font-size: 14px; }
}
