/* amazedsaints.com: a film-trailer page. Dark, letterboxed, golden light. */
:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --ink: #f2ede4;
  --muted: #a79f93;
  --dim: #6f695f;
  --gold: #e3b45e;
  --gold-soft: rgba(227, 180, 94, .55);
  --line: rgba(242, 237, 228, .14);
  --serif: "Cinzel", "Times New Roman", serif;
  --italic: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --bar: clamp(34px, 8vh, 78px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* film grain over everything, very light */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 50;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.eyebrow {
  font: 500 clamp(10px, .85vw, 12px)/1.4 var(--sans);
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
h2 {
  font: 400 clamp(32px, 4.6vw, 64px)/1.08 var(--serif);
  letter-spacing: .04em;
}

.btn {
  display: inline-block;
  padding: 15px 26px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.btn-gold { background: var(--gold); color: #120d05; border: 1px solid var(--gold); }
.btn-gold:hover { background: #f1c878; }
.btn-line { border: 1px solid var(--gold-soft); color: var(--ink); background: rgba(7, 8, 11, .25); backdrop-filter: blur(4px); }
.btn-line:hover { border-color: var(--gold); }
.btn:focus-visible, .nav a:focus-visible, .sound:focus-visible, .poster:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- opening titles ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-content: center;
  text-align: center;
  background: #000;
  pointer-events: none;
  animation: intro-out 1.2s ease 2.6s forwards;
}
.intro-studio {
  font: 400 clamp(22px, 3.4vw, 40px)/1 var(--serif);
  letter-spacing: .5em;
  text-transform: uppercase;
  margin-right: -.5em;
  opacity: 0;
  animation: title-in 1.6s ease .3s forwards;
}
.intro-presents {
  margin-top: 18px;
  font: 300 12px/1 var(--sans);
  letter-spacing: .6em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fade-in 1s ease 1.3s forwards;
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes title-in { from { opacity: 0; letter-spacing: .9em; filter: blur(6px); } to { opacity: 1; letter-spacing: .5em; filter: blur(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* a second visit in the same session skips the opening titles */
.seen .intro { display: none; }
.seen .hero-copy, .seen .credits, .seen .scroll-cue { animation-delay: .2s; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  font: 500 11px/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  transition: background .4s, height .4s;
}
.nav.solid { background: rgba(7, 8, 11, .82); backdrop-filter: blur(10px); height: 58px; border-bottom: 1px solid var(--line); }
.brand { font: 500 13px/1 var(--serif); letter-spacing: .42em; text-decoration: none; margin-right: auto; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .3s; }
.nav nav a:hover { color: var(--ink); }
.sound {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 9px 12px; cursor: pointer;
  font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
}
.sound[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-soft); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; }
.sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img {
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 62% 55%;
  animation: kenburns 28s ease-out both;
  filter: saturate(1.08) contrast(1.05);
}
@keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1.02); } }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(7, 8, 11, .82) 0%, rgba(7, 8, 11, .45) 38%, rgba(7, 8, 11, 0) 65%),
    linear-gradient(0deg, rgba(7, 8, 11, .9) 0%, rgba(7, 8, 11, 0) 34%),
    radial-gradient(ellipse at 70% 45%, transparent 40%, rgba(0, 0, 0, .35) 100%);
}
.bar { position: absolute; left: 0; right: 0; z-index: 3; height: var(--bar); background: #000; transition: transform .2s linear; }
.bar-top { top: 0; transform-origin: top; }
.bar-bottom { bottom: 0; transform-origin: bottom; }
.hero-copy {
  position: relative; z-index: 4;
  padding: 0 var(--gutter);
  max-width: 900px;
  opacity: 0;
  animation: rise-in 1.4s ease 3.1s forwards;
}
.title {
  font: 400 clamp(46px, 9.2vw, 150px)/.95 var(--serif);
  letter-spacing: .08em;
  margin-left: -.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .45);
}
.tagline {
  margin-top: 18px;
  font: italic 500 clamp(22px, 2.6vw, 38px)/1.2 var(--italic);
  color: var(--gold);
}
.cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.credits {
  position: absolute; z-index: 4; left: 0; right: 0;
  bottom: calc(var(--bar) + 22px);
  text-align: center;
  font: 500 10px/1 var(--sans);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, .62);
  opacity: 0;
  animation: fade-in 1.2s ease 3.8s forwards;
}
.credits span { color: var(--gold); margin: 0 .5em; }
.scroll-cue {
  position: absolute; z-index: 4; right: var(--gutter); bottom: calc(var(--bar) + 16px);
  width: 22px; height: 36px; border: 1px solid rgba(242, 237, 228, .45); border-radius: 12px;
  opacity: 0; animation: fade-in 1s ease 4.2s forwards;
}
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- the game ---------- */
.game {
  position: relative;
  padding: clamp(90px, 16vh, 170px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  background: radial-gradient(ellipse at 80% 40%, rgba(227, 180, 94, .08), transparent 60%), var(--bg);
}
.game-copy > p:not(.eyebrow) { margin-top: 22px; color: var(--muted); max-width: 500px; }
.stats { display: flex; gap: clamp(26px, 4vw, 54px); margin-top: 40px; }
.stats dt { font: 400 clamp(40px, 4.4vw, 60px)/1 var(--serif); color: var(--gold); }
.stats dd { margin-top: 8px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); }
.reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); align-items: center; }
.phone { position: relative; will-change: transform; }
.phone img {
  width: 100%; aspect-ratio: 540 / 780; object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(242, 237, 228, .1);
}
.phone-lift { margin-top: -14%; }
.phone figcaption { margin-top: 14px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--dim); text-align: center; }

/* ---------- worlds ---------- */
.worlds { padding: clamp(80px, 14vh, 150px) 0; background: var(--bg-2); }
.section-head { position: relative; padding: 0 var(--gutter); margin-bottom: clamp(36px, 6vh, 60px); }
.strip-nav { position: absolute; right: var(--gutter); bottom: 6px; display: flex; gap: 10px; }
.strip-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: border-color .3s, color .3s; }
.strip-btn:hover { border-color: var(--gold); color: var(--gold); }
.strip-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.strip {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 18px;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--dim) transparent;
}
.strip:focus-visible { outline: 1px solid var(--gold-soft); }
.chapter {
  position: relative;
  flex: 0 0 clamp(220px, 21vw, 300px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 6px;
  scroll-snap-align: start;
  background: #111;
}
.chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.chapter:hover img { transform: scale(1.07); }
.chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 9, .95) 6%, rgba(5, 6, 9, .2) 50%, transparent 70%); }
.chapter > div { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; }
.chapter small { font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.chapter h3 { margin-top: 6px; font: 400 25px/1.1 var(--serif); letter-spacing: .04em; }
.chapter p { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.chapter-soon img { filter: grayscale(.75) brightness(.55); }
.launchers { padding: clamp(60px, 10vh, 100px) var(--gutter) 0; text-align: center; }
.launchers ul { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 2vw, 26px); }
.launchers li { width: clamp(64px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, rgba(227, 180, 94, .16), transparent 70%); border: 1px solid var(--line); transition: transform .4s, border-color .4s; }
.launchers li:hover { transform: translateY(-6px); border-color: var(--gold-soft); }
.launchers img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- work ---------- */
.work { padding: clamp(90px, 15vh, 160px) 0; }
.posters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); padding: 0 var(--gutter); }
.poster {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; text-decoration: none;
  border-radius: 4px; background: #0e1015; border: 1px solid var(--line);
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.poster:hover img { transform: scale(1.06); }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 9, .92) 8%, transparent 55%); }
.poster span { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; }
.poster small { display: block; font-size: 10px; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); }
.poster strong { display: block; margin-top: 8px; font: 400 clamp(22px, 2.1vw, 30px)/1.1 var(--serif); letter-spacing: .05em; }
.poster em { display: block; margin-top: 10px; font: 500 10px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--dim); }
.poster-empty::after { background: radial-gradient(ellipse at 50% 30%, rgba(227, 180, 94, .07), transparent 60%); }
.poster-empty span { top: 50%; bottom: auto; transform: translateY(-50%); text-align: center; }
.poster-empty strong { color: rgba(242, 237, 228, .8); }

/* ---------- studio ---------- */
.studio { position: relative; overflow: hidden; padding: clamp(110px, 20vh, 220px) var(--gutter); }
.studio-bg, .studio-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-bg img { object-fit: cover; object-position: 50% 40%; filter: brightness(.62) saturate(1.1); transform: scale(1.04); }
.studio-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 8, 11, .92) 0%, rgba(7, 8, 11, .55) 48%, rgba(7, 8, 11, .1) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%); }
.studio-copy { position: relative; max-width: 640px; }
.studio-copy > p:not(.eyebrow) { margin-top: 22px; color: #cfc8bc; font-size: clamp(16px, 1.3vw, 19px); }

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 18vh, 190px) var(--gutter); text-align: center; }
.mail {
  display: inline-block; margin-top: 26px;
  font: 400 clamp(24px, 4.4vw, 58px)/1.15 var(--serif);
  letter-spacing: .03em; text-decoration: none; word-break: break-word;
  background: linear-gradient(90deg, var(--ink), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact-note { margin: 18px auto 34px; color: var(--muted); max-width: 460px; }

.foot {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reel .reveal:nth-child(2) { transition-delay: .15s; } .reel .reveal:nth-child(3) { transition-delay: .3s; }
.posters .reveal:nth-child(2) { transition-delay: .1s; } .posters .reveal:nth-child(3) { transition-delay: .2s; } .posters .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- phones and tablets ---------- */
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; }
  .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .sound-label { display: none; }
  .brand { font-size: 12px; letter-spacing: .34em; }
  .hero { align-items: flex-end; }
  .hero-copy { padding-bottom: calc(var(--bar) + 70px); }
  .hero-shade { background: linear-gradient(0deg, rgba(7, 8, 11, .96) 8%, rgba(7, 8, 11, .55) 42%, rgba(7, 8, 11, 0) 70%), linear-gradient(180deg, rgba(7, 8, 11, .5), transparent 20%); }
  .hero-bg img { object-position: 50% 40%; }
  .cta .btn { flex: 1 1 100%; text-align: center; }
  .credits { letter-spacing: .26em; font-size: 9px; }
  .scroll-cue { display: none; }
  .reel { grid-template-columns: repeat(3, 64%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; }
  .phone { scroll-snap-align: center; }
  .phone-lift { margin-top: 0; }
  .chapter { flex-basis: 72vw; }
  .strip-nav { display: none; }
  .posters { grid-template-columns: 1fr; gap: 10px; }
  .poster { aspect-ratio: 4 / 5; }
  .poster-empty { aspect-ratio: auto; min-height: 96px; }
  .poster-empty span { position: static; transform: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 22px; text-align: left; }
  .poster-empty small { grid-column: 1 / -1; }
  .poster-empty strong { margin-top: 0; font-size: 22px; }
  .poster-empty em { margin-top: 0; }
  .mail { font-size: clamp(16px, 5.2vw, 24px); white-space: nowrap; }
  .stats { gap: 22px; }
  .studio-bg::after { background: linear-gradient(0deg, rgba(7, 8, 11, .95) 10%, rgba(7, 8, 11, .55) 60%, rgba(7, 8, 11, .8) 100%); }
  .foot { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .intro { display: none; }
  .hero-copy, .credits, .scroll-cue { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
