/* TOC Media · Forbidden Faith film page */

:root {
  --bg: #050506;
  --text: #EDEEF0;
  --muted: #A9AFB8;
  --quiet: #8A919C;
  --blue: #2F55C8;
  --blue-hover: #3A63DA;
  --blue-light: #9CC3F0;
  --blue-ink: #2847A8;
  --paper: #F5F4F0;
  --ink: #14171D;
  --ink-muted: #4A4F59;
  --ink-quiet: #6B7079;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 6px; background: #fff; color: var(--ink); }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.topbar.scrolled { background: rgba(5, 5, 6, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.brand img { width: 34px; height: 34px; }
.account { display: flex; align-items: center; gap: 12px; }
.link-btn { padding: 10px 4px; border: 0; background: none; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.link-btn:hover { opacity: .8; }
.link-dark { color: var(--blue-ink); }

.acct { position: relative; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; max-width: 280px; padding: 0 12px 0 6px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(0, 0, 0, .3); color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.acct-initial { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.acct-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: #16181D; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.acct-menu button { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: #fff; text-align: left; font-size: 15px; cursor: pointer; }
.acct-menu button:hover { background: rgba(255, 255, 255, .08); }
.acct-sep { height: 1px; margin: 6px 4px; border: 0; background: rgba(255, 255, 255, .1); }
.acct-menu .acct-danger { color: #F2A196; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 36px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 17px/1 var(--sans); white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 30px rgba(47, 85, 200, .3); }
.btn-primary:hover:not(:disabled) { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(47, 85, 200, .45); }
.btn-primary.btn-watch { background: #fff; color: var(--bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.btn-primary.btn-watch:hover:not(:disabled) { background: #E8EAEE; }
.btn:disabled { cursor: default; opacity: .75; box-shadow: none; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-120%) skewX(-20deg);
}
.btn-shine:hover:not(:disabled)::after { animation: shine .8s ease; }

/* ---------- 1. Opening screen ---------- */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 6, .55) 0%, rgba(5, 5, 6, 0) 22%, rgba(5, 5, 6, 0) 50%, rgba(5, 5, 6, .92) 100%), url("/assets/hero.jpg") center 30% / cover no-repeat;
  animation: kenburns 20s var(--ease) both;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 120px 20px 56px; text-align: center; }
.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #C9CDD4; }
.hero-title { margin: 0; font: 400 clamp(60px, 10vw, 148px)/.9 var(--serif); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 6px; }
.trailer-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px; border: 0; background: none; color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; }
.trailer-link .ring { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #fff; display: grid; place-items: center; transition: background .25s ease, color .25s ease; }
.trailer-link:hover .ring { background: #fff; color: var(--bg); }
.scroll-cue { margin-top: 18px; padding: 8px; color: #9AA1AB; }
.scroll-cue svg { display: block; animation: bob 2.4s ease-in-out 1.8s infinite; }
.rental-pill { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(127, 217, 154, .14); font-size: 13px; font-weight: 600; color: #8FE0A8; }
.rental-pill > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #8FE0A8; }

/* ---------- 2. Statement ---------- */
.story, .mission { padding: 160px var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.statement { max-width: 860px; margin: 0; font: 400 clamp(40px, 5.5vw, 76px)/1.05 var(--serif); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.statement-sm { max-width: 760px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.story-text { max-width: 56ch; margin: 0; font-size: 20px; line-height: 1.65; color: var(--muted); }

/* ---------- 3. Based on true events ---------- */
.true-events { position: relative; overflow: hidden; min-height: 700px; display: flex; align-items: center; padding: 0 var(--gutter); }
.true-events::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; aspect-ratio: 1140 / 852;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 2%, rgba(5, 5, 6, 0) 38%), url("/assets/true-events.jpg") center / cover no-repeat;
  transform: scale(1.1); transition: transform 2.6s var(--ease);
}
.true-events.in::before { transform: scale(1); }
.true-text { position: relative; z-index: 1; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-light); }
.label-dark { color: var(--blue-ink); }
.true-caption { margin: 0; font: 400 36px/1.2 var(--serif); color: #fff; }

/* ---------- 4. Rent ---------- */
.light { background: var(--paper); color: var(--ink); }
.rent-section { padding: 140px var(--gutter) 100px; }
.rent-card {
  position: relative; max-width: 1180px; min-height: 600px; margin: 0 auto; overflow: hidden;
  display: flex; align-items: center; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 0 #E6E4DD, 0 30px 70px rgba(20, 23, 29, .08);
  transition: opacity 1s ease, transform .4s ease, box-shadow .4s ease;
}
.rent-card:hover { box-shadow: 0 1px 0 #E6E4DD, 0 40px 90px rgba(20, 23, 29, .14); }
.rent-poster { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; transform-origin: left center; transition: transform .6s var(--ease); }
.rent-card:hover .rent-poster { transform: scale(1.03); }
.rent-body { position: relative; max-width: 600px; margin-left: auto; padding: 72px 72px 72px 40px; display: flex; flex-direction: column; gap: 20px; }
.rent-title { margin: 0; font: 400 64px/1 var(--serif); letter-spacing: -.02em; }
.rent-lede { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-muted); }
.rent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 10px; }
.status { margin: 0; font-size: 15px; color: var(--ink-muted); }
.status:empty { display: none; }
.status.ok { color: #1E7A43; }
.status.warn { color: #A3362A; }
.rent-meta { margin: 6px 0 0; font-size: 14px; color: var(--ink-quiet); }
.credits { max-width: 1180px; margin: 24px auto 0; font-size: 13px; line-height: 1.6; color: var(--ink-quiet); }

/* ---------- 5. Any screen ---------- */
.light.screens {
  display: flex; flex-wrap: wrap; align-items: center; gap: 72px;
  padding: 100px max(var(--gutter), calc((100% - 1080px) / 2)) 140px;
}
.screens-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.screens-text h2 { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.screens-text p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink-muted); }
.screens-tv { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.tv { flex: none; width: 100%; max-width: 540px; padding: 12px; border-radius: 10px; background: #15171C; animation: glow 4s ease-in-out infinite; }
.tv-picture { height: 0; padding-top: 56.25%; border-radius: 4px; background: url("/assets/presents.jpg") center / cover no-repeat; }
.tv-stand { width: 150px; height: 10px; margin-top: 8px; border-radius: 0 0 8px 8px; background: #2A2D34; }

/* ---------- 6. Reassurance ---------- */
.assure { max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; padding: 120px var(--gutter) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; }
.assure-item { display: flex; gap: 16px; align-items: flex-start; }
.assure-item:nth-child(2) { transition-delay: .15s; }
.assure-item:nth-child(3) { transition-delay: .3s; }
.assure-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(156, 195, 240, .12); color: var(--blue-light); display: grid; place-items: center; transition: transform .3s ease, background .3s ease; }
.assure-item:hover .assure-icon { transform: scale(1.12) rotate(-4deg); background: rgba(156, 195, 240, .22); }
.assure-item h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; color: #fff; }
.assure-item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.assure-item a { color: var(--blue-light); }

/* ---------- 7. Mission + footer ---------- */
.mission { padding-top: 140px; padding-bottom: 120px; gap: 22px; }
.mission .story-text { font-size: 18px; }
.mission-link { font-weight: 600; color: var(--blue-light); }
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 28px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #17181C; font-size: 13px; color: #7E858F;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a:hover { color: #fff; }

/* ---------- Full-screen player ---------- */
.watch { position: fixed; inset: 0; z-index: 50; background: #000; display: flex; align-items: center; justify-content: center; animation: fade-in .35s ease both; }
html.watching { overflow: hidden; }
.watch-top {
  position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: 16px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 24px 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
  transition: opacity .3s ease;
}
.watch.idle .watch-top { opacity: 0; pointer-events: none; }
.watch-close { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.watch-close:hover { background: rgba(255, 255, 255, .22); }
.watch-title { margin: 0; font-size: 18px; font-weight: 600; color: #fff; }
.watch-note { margin: 2px 0 0; font-size: 13px; color: #C9CDD4; }
.watch-note:empty { display: none; }
.player-frame { position: relative; width: 100%; height: 100%; background: #000; }
.player-frame video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.play-overlay {
  position: absolute; top: 50%; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; padding-left: 5px;
  border: 0; border-radius: 50%; background: #fff; color: var(--bg); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
  transition: transform .25s var(--ease);
}
.play-overlay:hover { transform: scale(1.06); }

/* ---------- Motion ---------- */
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes glow { 0%, 100% { box-shadow: 0 30px 60px rgba(10, 12, 20, .2), 0 0 0 rgba(47, 85, 200, 0); } 50% { box-shadow: 0 30px 60px rgba(10, 12, 20, .2), 0 0 60px rgba(47, 85, 200, .35); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.rise { animation: rise 1s var(--ease) both; }
.d1 { animation-delay: .3s; } .d2 { animation-delay: .5s; } .d3 { animation-delay: .75s; } .d4 { animation-delay: 1.1s; }

/* Scroll effects: only when app.js is running (it adds .js to <html>), so the page never hides text without it */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .rent-card.reveal.in:hover { transform: translateY(-4px); }
.w { display: inline-block; }
.js .w { opacity: .12; filter: blur(4px); transition: opacity .45s ease, filter .45s ease; }
.js .w.on { opacity: 1; filter: none; }
.wu { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wu > span { display: inline-block; }
.js .wu > span { transform: translateY(110%); opacity: 0; transition: transform .6s var(--ease), opacity .6s ease; }
.js .wu > span.on { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .w, .js .wu > span { opacity: 1; filter: none; transform: none; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  .rent-card { flex-direction: column; align-items: stretch; min-height: 0; }
  .rent-poster { position: static; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top; }
  .rent-body { max-width: none; margin: 0; padding: 32px 28px 36px; }
  .rent-title { font-size: 48px; }
}
@media (max-width: 700px) {
  .topbar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .brand { gap: 10px; font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .acct-email { display: none; }
  .acct-btn { padding-right: 10px; }
  .hero-inner { padding-bottom: 40px; gap: 16px; }
  .hero-actions { flex-direction: column; align-self: stretch; gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .story, .mission { padding: 80px 24px; gap: 18px; }
  .story-text { font-size: 16px; }
  .true-events { min-height: 0; flex-direction: column; align-items: stretch; padding: 0; }
  .true-events::before { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1140 / 852; background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 6, 0) 45%), url("/assets/true-events.jpg") center / cover no-repeat; }
  .true-text { margin-top: -80px; padding: 0 24px 24px; gap: 10px; }
  .true-caption { font-size: 24px; line-height: 1.25; }
  .rent-section { padding: 48px 16px 40px; }
  .rent-card { border-radius: 20px; }
  .rent-poster { max-height: none; }
  .rent-body { padding: 24px 22px 28px; gap: 14px; }
  .rent-title { font-size: 40px; line-height: 1.02; }
  .rent-lede { font-size: 15px; }
  .rent-actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .rent-actions .btn { width: 100%; height: 54px; }
  .rent-meta { font-size: 12px; }
  .credits { margin: 16px 4px 0; font-size: 12px; }
  .light.screens { display: grid; gap: 24px; padding: 8px 24px 56px; }
  .screens-tv { order: -1; }
  .screens-text h2 { font-size: 28px; }
  .screens-text p { font-size: 15px; }
  .tv { padding: 8px; border-radius: 8px; }
  .tv-stand { display: none; }
  .assure { padding: 56px 24px 0; gap: 24px; }
  .assure-icon { width: 40px; height: 40px; }
  .assure-item h3 { font-size: 16px; margin-bottom: 4px; }
  .assure-item p { font-size: 14px; }
  .mission { padding: 64px 24px 48px; }
  .footer { flex-direction: column; padding-left: 24px; padding-right: 24px; }
  .watch-top { padding-left: 16px; padding-right: 16px; }
  .play-overlay { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
}
