/* 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, .seen .glass-row { 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 { display: inline-flex; align-items: center; gap: 12px; font: 500 13px/1 var(--serif); letter-spacing: .42em; text-decoration: none; margin-right: auto; text-transform: uppercase; }
/* the logo is alive: the ring turns slowly and glows, and spins once when
   you point at it or tap it */
.brand-mark {
  width: 30px; height: 30px;
  animation: mark-turn 16s linear infinite, mark-glow 4.5s ease-in-out infinite alternate;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.brand:hover .brand-mark, .brand:active .brand-mark { transform: rotate(360deg) scale(1.2); }
.brand-spin { position: relative; display: inline-grid; place-items: center; will-change: transform; }
/* sparks thrown off the ring (made by site.js, gone after one flight) */
.spark { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); pointer-events: none; animation: spark-fly .7s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes spark-fly { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
/* a glint runs along the name every few seconds */
.brand-word { position: relative; }
.brand-word::after {
  content: ""; position: absolute; inset: -4px -6px; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%) -150% 0 / 60% 100% no-repeat;
  mix-blend-mode: overlay; animation: glint 6.5s ease-in-out 2s infinite;
}
@keyframes glint { 0%, 72% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes mark-turn { to { rotate: 360deg; } }
@keyframes mark-glow {
  from { filter: drop-shadow(0 0 3px rgba(255, 181, 71, .45)); }
  50% { filter: drop-shadow(0 0 7px rgba(180, 92, 255, .6)); }
  to { filter: drop-shadow(0 0 5px rgba(63, 184, 255, .55)); }
}
/* the colours flow through "AMAZED" (the gradient repeats, so the loop has no seam) */
.brand-word b, .intro-studio b {
  font-weight: 600;
  background: linear-gradient(90deg, #FFB547, #FF5E7E 12.5%, #B45CFF 25%, #3FB8FF 37.5%, #FFB547 50%, #FF5E7E 62.5%, #B45CFF 75%, #3FB8FF 87.5%, #FFB547) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: word-flow 7s linear infinite;
}
@keyframes word-flow { to { background-position: 100% 0; } }

.intro-mark { width: clamp(70px, 9vw, 110px); height: auto; margin: 0 auto 26px; opacity: 0; animation: mark-in 1.4s ease .1s forwards; }
@keyframes mark-in { from { opacity: 0; transform: scale(.7) rotate(-40deg); } to { opacity: 1; transform: none; } }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; }
.foot-brand:focus-visible { outline: 1px solid var(--gold-soft); outline-offset: 6px; }
.brand { -webkit-tap-highlight-color: transparent; }
/* the firework: a rocket climbs from the ring and bursts above it */
.rocket { position: absolute; left: 50%; top: 50%; width: 4px; height: 14px; margin: -7px -2px; border-radius: 2px; background: linear-gradient(#fff6d8, rgba(255, 190, 90, 0)); box-shadow: 0 0 8px #ffd27a; pointer-events: none; animation: rocket .55s cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes rocket { from { transform: translateY(0); opacity: 1; } to { transform: translateY(var(--up)); opacity: .9; } }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst .spark { width: 4px; height: 4px; margin: -2px; animation: fw-fly 1.25s cubic-bezier(.12, .7, .35, 1) forwards; }
@keyframes fw-fly {
  0% { transform: none; opacity: 1; }
  60% { transform: translate(var(--dx), var(--dy)); opacity: 1; }
  100% { transform: translate(calc(var(--dx) * 1.08), calc(var(--dy) + 26px)) scale(.4); opacity: 0; }
}
.foot-ring { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; }
.foot-ring img { width: 34px; height: 34px; animation: mark-turn 16s linear infinite, mark-glow 4.5s ease-in-out infinite alternate; }
.foot-word { font: 500 12px/1 var(--serif); letter-spacing: .38em; color: var(--ink); }
.foot-word b { font-weight: 600; background: linear-gradient(90deg, #FFB547, #FF5E7E 12.5%, #B45CFF 25%, #3FB8FF 37.5%, #FFB547 50%, #FF5E7E 62.5%, #B45CFF 75%, #3FB8FF 87.5%, #FFB547) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: word-flow 7s linear infinite; }
/* Everything topples: a little cannonball rolls in, knocks the ring into
   the air, it tumbles, bounces and settles */
.foot-ball { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9aa1a9, #2c3036 50%, #0b0c0f); opacity: 0; pointer-events: none; }
.foot-brand.topple .foot-ball { animation: foot-ball 1.5s cubic-bezier(.3, .6, .4, 1); }
.foot-brand.topple .foot-hop { animation: foot-hop 1.5s linear; }
.foot-hop { display: inline-grid; }
@keyframes foot-ball {
  0% { opacity: 1; transform: translate(-90px, 6px); }
  22% { opacity: 1; transform: translate(-12px, 6px); }
  40% { opacity: 1; transform: translate(-30px, 10px); }
  70% { opacity: 0; transform: translate(-46px, 12px); }
  100% { opacity: 0; }
}
@keyframes foot-hop {
  0%, 22% { transform: none; }
  26% { transform: translate(2px, 1px) scale(1.1, .88); }
  44% { transform: translate(8px, -26px) rotate(200deg); }
  62% { transform: translate(10px, 0) rotate(330deg) scale(1.08, .9); }
  72% { transform: translate(8px, -8px) rotate(350deg); }
  82% { transform: translate(5px, 0) rotate(360deg) scale(1.04, .96); }
  90% { transform: translate(2px, 0) rotate(366deg); }
  100% { transform: rotate(360deg); }
}
.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: pinned while the scroll flies the camera in ---------- */
.hero-scroll { position: relative; height: 320vh; }
.hero {
  position: sticky;
  top: 0;
  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%;
  filter: saturate(1.08) contrast(1.05);
}
.fly { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity .6s ease; filter: saturate(1.08) contrast(1.05); }
.fly.ready { opacity: 1; }
.hero-ui { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; will-change: opacity, transform; }
/* at the end of the fly-through the barn floor sinks into the dark page below */
.hero-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; opacity: 0; pointer-events: none; background: linear-gradient(0deg, var(--bg) 0%, rgba(7, 8, 11, .75) 35%, rgba(7, 8, 11, 0) 100%); }
.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: 400 clamp(22px, 2.6vw, 38px)/1.2 var(--italic);
  color: var(--ink);
}
.tagline em, h2 em { font-family: var(--italic); font-style: italic; font-weight: 500; color: var(--gold); text-transform: none; letter-spacing: 0; }
h2 em { font-size: 1.06em; }

/* frosted glass cards over the scene */
.glass-row {
  position: absolute; z-index: 4; right: var(--gutter); bottom: calc(var(--bar) + 24px);
  display: flex; gap: 12px;
  opacity: 0; animation: fade-in 1.2s ease 3.7s forwards;
}
.glass-card {
  display: flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 13px 18px 13px 14px;
  border-radius: 16px;
  color: var(--ink); text-decoration: none; font: 500 13px/1.35 var(--sans);
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: transform .4s, border-color .4s, background .4s;
}
a.glass-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .45); background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08)); }
.glass-card small { display: block; margin-bottom: 3px; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.glass-play { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .4); font-size: 12px; }
.glass-stat strong { font: 400 34px/1 var(--serif); 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; left: 50%; margin-left: -11px; bottom: calc(var(--bar) + 40px);
  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; }
.scroll-cue em { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); font: 500 9px/1 var(--sans); font-style: normal; letter-spacing: .4em; text-transform: uppercase; color: rgba(242, 237, 228, .7); white-space: nowrap; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- the game ---------- */
.game {
  position: relative;
  padding: clamp(52px, 8vh, 100px) 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(52px, 8vh, 96px) 0; background: var(--bg-2); }
.section-head { position: relative; padding: 0 var(--gutter); margin-bottom: clamp(26px, 4.5vh, 48px); }
.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); }
.strip img { -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) {
  .strip { cursor: grab; }
  .strip.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .strip.dragging .chapter { pointer-events: none; }
}
.strip-hint { margin: 14px var(--gutter) 0; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--dim); }
.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:not(.poster-art) {
  position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.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(36px, 6vh, 64px) var(--gutter) 0; text-align: center; }
.launchers ul { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 2vw, 26px); }
.launchers .hint { color: var(--muted); }
.launchers li { width: clamp(64px, 8vw, 104px); }
.launcher {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
  /* the same soft grey as the launcher pictures' own backdrop, so nothing
     dark shows when a picture tilts to aim */
  background: linear-gradient(180deg, #bab7af, #d3cbc4);
  border: 1px solid var(--line);
  transition: transform .4s, border-color .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.launcher:hover { transform: translateY(-6px); border-color: var(--gold-soft); }
.launcher:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.launcher img { width: 100%; height: 100%; object-fit: cover; transition: transform .16s ease-out; }
.launcher.fire { border-color: #ffd98a; box-shadow: 0 0 34px rgba(255, 190, 90, .5); }
/* the whole badge kicks back; the picture never slides inside its frame */
.launcher.fire { animation: recoil .5s cubic-bezier(.2, .8, .3, 1); }
@keyframes recoil { 0% { transform: none; } 12% { transform: translate(var(--kx, -6px), var(--ky, 5px)) scale(.96); } 100% { transform: none; } }
/* the cannon under the game pictures: tap a picture and it fires at it */
.reel-fire { margin-top: clamp(22px, 4vh, 40px); display: flex; align-items: center; justify-content: center; gap: 18px; }
.reel-fire li { list-style: none; }
.reel-cannon { width: clamp(76px, 7vw, 104px); flex: 0 0 auto; }
.reel-fire p { font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); line-height: 1.9; text-align: left; }
.reel-fire strong { display: block; font: 400 26px/1 var(--serif); letter-spacing: .06em; color: var(--gold); }
.phone { cursor: crosshair; }
.phone.hit img { animation: phone-hit .65s cubic-bezier(.3, .7, .3, 1); }
@keyframes phone-hit {
  0% { transform: none; filter: none; }
  12% { transform: translate(var(--px, 6px), -10px) rotate(var(--tilt, 2deg)) scale(1.03); filter: brightness(1.35); }
  35% { transform: translate(calc(var(--px, 6px) * -.6), 4px) rotate(calc(var(--tilt, 2deg) * -.6)); filter: none; }
  60% { transform: translate(calc(var(--px, 6px) * .3), -2px) rotate(calc(var(--tilt, 2deg) * .3)); }
  100% { transform: none; }
}
/* cannonballs, flashes and smoke are drawn over the page */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 25; pointer-events: none; }
/* a world card that takes a hit */
.chapter.hit { animation: card-hit .7s cubic-bezier(.3, .7, .3, 1); }
@keyframes card-hit {
  0% { transform: none; }
  18% { transform: translateY(-12px) rotate(var(--tilt, 2deg)) scale(1.02); }
  45% { transform: translateY(3px) rotate(calc(var(--tilt, 2deg) * -.5)); }
  70% { transform: translateY(-2px) rotate(calc(var(--tilt, 2deg) * .2)); }
  100% { transform: none; }
}

/* ---------- work ---------- */
.work { padding: clamp(52px, 8vh, 100px) 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); }
/* living posters: the picture drifts slowly, effects are drawn over it */
.poster { transition: transform .35s ease, border-color .35s; will-change: transform; }
.poster:hover { border-color: var(--gold-soft); }
.poster-art { position: absolute; inset: 0; animation: poster-drift 24s ease-in-out infinite alternate; }
.poster:nth-child(2) .poster-art { animation-duration: 29s; animation-direction: alternate-reverse; }
.poster:nth-child(3) .poster-art { animation-duration: 21s; }
.poster:nth-child(4) .poster-art { animation-duration: 33s; animation-direction: alternate-reverse; }
.poster-art img { transition: none; transform: none !important; }
/* explicit layers: picture and effects, then the dark fade, then the label */
.poster-art { z-index: 0; }
.chapter::after, .poster::after { z-index: 1; }
.chapter > div:not(.poster-art), .posters .poster > span { z-index: 2; }
.chapter .poster-art { animation-duration: 26s; }
.chapter:nth-child(even) .poster-art { animation-duration: 31s; animation-direction: alternate-reverse; }
.chapter .poster-fx { mix-blend-mode: normal; }
.poster-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
@keyframes poster-drift { from { transform: scale(1.05) translate(-1.2%, -1%); } to { transform: scale(1.14) translate(1.4%, 1.6%); } }
.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-concept { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.poster-concept:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.poster.tap { animation: poster-tap .45s cubic-bezier(.3, .7, .3, 1); }
@keyframes poster-tap { 0% { scale: 1; } 30% { scale: .97; } 100% { scale: 1; } }
.poster-hint { margin-top: 16px; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.poster-hint b { color: var(--gold); font-weight: 500; }
.poster em { display: block; margin-top: 10px; font: 500 10px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--dim); }

/* ---------- studio ---------- */
.studio { position: relative; overflow: hidden; padding: clamp(60px, 9vh, 130px) var(--gutter) clamp(40px, 7vh, 110px); }
.studio-bg, .studio-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-bg img { object-fit: cover; filter: brightness(.7) saturate(1.15); }
.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-bg::after { z-index: 1; }
.studio-bg .poster-art { animation-duration: 30s; }
.studio-bg .poster-fx { mix-blend-mode: screen; }
.studio-copy { position: relative; z-index: 2; max-width: 640px; }
/* the studio name: chunky letters, each a target. A hit splashes paint on
   the letter (the paint is clipped to its shape and stays, drips run down),
   the letter jumps, and paint drops fly off it. */
.studio-name {
  font: 400 clamp(29px, 6.6vw, 98px)/1.05 "Bungee", var(--serif);
  letter-spacing: .015em; white-space: nowrap; margin: 4px 0 2px;
  text-shadow: 0 .055em 0 #7a4c12, 0 .12em .18em rgba(0, 0, 0, .55);   /* before the script splits the letters */
}
.name-break { display: none; }
/* a letter: the wrapper jumps; the dark copy under the face gives a solid
   gold-brown edge and a soft shadow, letters you could pick up */
.lw { position: relative; display: inline-block; cursor: crosshair; }
.ls { position: absolute; left: 0; top: .055em; color: #7a4c12; text-shadow: 0 .07em .14em rgba(0, 0, 0, .55); }
.studio-name.shake { animation: name-shake .4s linear; }
@keyframes name-shake { 0%, 100% { translate: 0 0; } 20% { translate: -3px 2px; } 40% { translate: 3px -2px; } 60% { translate: -2px 1px; } 80% { translate: 2px 0; } }
.letter {
  position: relative; display: inline-block;
  color: transparent; text-shadow: none; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #fffaf0 0%, #f6dfa6 48%, #e0a64a 76%, #b97a2a 100%);
  background-repeat: no-repeat;
}
.lw.hit { animation: letter-hit .75s cubic-bezier(.3, .7, .3, 1); }
@keyframes letter-hit {
  0% { transform: none; }
  14% { transform: translateY(-.38em) rotate(var(--tilt, 8deg)) scale(1.24, .86); }
  34% { transform: translateY(.06em) rotate(calc(var(--tilt, 8deg) * -.4)) scale(.92, 1.1); }
  58% { transform: translateY(-.06em) scale(1.03, .98); }
  100% { transform: none; }
}
.studio-fire { margin-top: 34px; display: flex; align-items: center; gap: 16px; }
.studio-cannon { width: clamp(72px, 6.5vw, 96px); flex: 0 0 auto; }
.studio-fire p { margin: 0; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); line-height: 1.9; }
.studio-copy > p:not(.eyebrow) { margin-top: 22px; color: #cfc8bc; font-size: clamp(16px, 1.3vw, 19px); }

/* ---------- contact ---------- */
.contact { padding: clamp(36px, 6vh, 90px) var(--gutter) clamp(48px, 7vh, 100px); 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 { align-items: center; }
.foot-brand small { display: block; margin-top: 7px; font-size: 9.5px; letter-spacing: .26em; color: var(--dim); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s 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-ui { align-items: flex-end; }
  .hero-copy { padding-bottom: calc(var(--bar) + 150px); }
  .glass-row { left: var(--gutter); right: var(--gutter); bottom: calc(var(--bar) + 18px); gap: 8px; }
  .glass-card { flex: 1 1 0; min-width: 0; padding: 10px; gap: 0; font-size: 11px; border-radius: 12px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .glass-play { display: none; }
  .glass-stat { flex-direction: row; align-items: center; gap: 8px; }
  .glass-stat strong { font-size: 24px; }
  .glass-card small { font-size: 8.5px; letter-spacing: .24em; }
  .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; }
  /* a fan of three cards, the middle one in front: no sideways scrolling,
     so a vertical swipe that starts on a picture always scrolls the page */
  .reel { display: flex; justify-content: center; align-items: center; padding-top: 10px; touch-action: pan-y; }
  .phone { flex: 0 0 40%; z-index: 1; }
  .phone:nth-child(1) { margin-right: -13%; rotate: -7deg; }
  .phone:nth-child(2) { flex-basis: 46%; z-index: 2; }
  .phone:nth-child(3) { margin-left: -13%; rotate: 7deg; }
  .phone:nth-child(1) figcaption, .phone:nth-child(3) figcaption { visibility: hidden; }
  .phone-lift { margin-top: 0; }
  .chapter { flex-basis: 72vw; }
  .strip-nav { display: none; }
  .posters { grid-template-columns: 1fr; gap: 14px; }
  .poster { aspect-ratio: 4 / 5; }
  .brand-mark { width: 26px; height: 26px; }
  .mail { font-size: clamp(16px, 5.2vw, 24px); white-space: nowrap; }
  .stats { gap: 22px; }
  .studio-name { font-size: clamp(46px, 15vw, 66px); line-height: 1.02; white-space: normal; }
  .name-break { display: inline; }
  .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, .glass-row { opacity: 1; }
  .fx, .reel-fire, .studio-fire { display: none; }
  .brand-mark, .brand-word b, .intro-studio b, .foot-ring img, .foot-word b, .brand-word::after { animation: none; }
  .phone { cursor: default; }
  .hero-scroll { height: auto; }
  .hero { position: relative; }
  .fly { display: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
