/* Burning Hope Games: one stylesheet for the whole site.
 *
 * Night and fire. The logo is black ink on transparent (brand/), so it is used
 * here as a mask and painted with whatever it needs: fire for the emblem, bone
 * for the lettering. Colours are the tokens below and nothing else.
 */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/eb-garamond.woff2) format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/eb-garamond-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/cinzel.woff2) format('woff2');
}

:root {
  color-scheme: dark;

  --night: #0c0806;      /* the page */
  --char: #140d0a;       /* panels */
  --unlit: #6e5a4c;      /* words the flame has not reached yet */
  --dim: #948476;        /* small print */
  --smoke: #a8988a;      /* secondary text */
  --parchment: #d8c8b3;  /* body text on the dark */
  --bone: #f1e7d8;       /* headings, lit words */
  --ember: #ff7a1a;
  --flame: #ffc15a;
  --spark: #fff1c9;
  --cold: #a9bccd;       /* death, madness, despair: the only cold thing here */
  --gold: #e0b95a;       /* Cardage's card edges */

  /* The emblem's fire, bottom to top. tools/build-images.py paints the icons with the same stops. */
  --fire: linear-gradient(to top, #7a1208 0%, #d6360f 28%, #ff7a1a 55%, #ffc15a 80%, #fff1c9 100%);
  --fire-across: linear-gradient(100deg, #e8480f, #ff7a1a 50%, #ffb347);

  --serif: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --caps: 'Cinzel', 'Trajan Pro', Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1200px;
  --nav-h: 64px;
  --section: clamp(96px, 13vw, 170px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--night);
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.03rem + 0.3vw, 1.3rem);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: rgba(255, 122, 26, 0.35); color: var(--spark); }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--bone);
  color: var(--night);
  font-family: var(--caps);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* The logo, as masks. */
.nav-emblem,
.logo-layer,
.contact-emblem,
.lost-emblem {
  -webkit-mask: url(/img/brand/emblem.svg) center / contain no-repeat;
  mask: url(/img/brand/emblem.svg) center / contain no-repeat;
}
.logo-wordmark,
.footer-wordmark {
  -webkit-mask: url(/img/brand/wordmark.svg) center / contain no-repeat;
  mask: url(/img/brand/wordmark.svg) center / contain no-repeat;
}

/* ---- Labels and buttons ---------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--ember);
  font-family: var(--caps);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember));
}
.eyebrow::after { transform: scaleX(-1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--caps);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn--fire {
  color: #1b0b03;
  background: var(--fire-across);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 140, 0.45), 0 8px 28px -10px rgba(255, 90, 20, 0.7);
}
.btn--fire:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 241, 201, 0.7), 0 10px 36px -6px rgba(255, 110, 30, 0.8);
}
.btn--ghost {
  color: var(--bone);
  border-color: rgba(241, 231, 216, 0.28);
  background: rgba(12, 8, 6, 0.4);
}
.btn--ghost:hover { border-color: var(--ember); color: var(--spark); }
.btn--small { min-height: 38px; padding: 0 1.15em; font-size: 0.7rem; }
.btn--large { min-height: 58px; padding: 0 2.2em; font-size: 0.95rem; }

/* ---- Navigation -------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-solid {
  background: rgba(12, 8, 6, 0.86);
  box-shadow: 0 1px 0 rgba(255, 122, 26, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}
.nav-emblem {
  width: 24px;
  height: 31px;
  background: var(--fire);
}
.nav-name {
  font-family: var(--caps);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.nav-name span {
  margin-left: 0.3em;
  color: var(--smoke);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.24em;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative;
  padding: 10px 0;
  color: var(--parchment);
  font-family: var(--caps);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset: auto 0 4px;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}
@media (max-width: 440px) {
  .nav-name { display: none; }
}

/* ---- The flame (hero) ---------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 16px) var(--gutter) 96px;
  overflow: hidden;
  background:
    radial-gradient(70% 45% at 50% 78%, rgba(255, 86, 20, 0.17), transparent 70%),
    radial-gradient(45% 38% at 50% 40%, rgba(255, 120, 40, 0.08), transparent 70%),
    var(--night);
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 180px;
  background: linear-gradient(transparent, var(--night));
  pointer-events: none;
}
.embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  animation: fade-in 2s ease 1.2s forwards;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3.6vh, 38px);
  text-align: center;
}

.logo {
  --w: clamp(190px, min(58vw, 40svh), 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--w) * 0.08);
  margin: 0;
}
.logo-emblem {
  position: relative;
  width: var(--w);
  aspect-ratio: 1778 / 2310;
}
.logo-layer,
.logo-rise {
  position: absolute;
  inset: 0;
}
/* Unlit, the emblem is a coal. */
.logo-ash { background: #2d201a; }
/* The fire climbs it from the bottom, with a soft leading edge. */
.logo-rise {
  -webkit-mask: linear-gradient(to top, #000 60%, transparent 75%) 0 100% / 100% 300% no-repeat;
  mask: linear-gradient(to top, #000 60%, transparent 75%) 0 100% / 100% 300% no-repeat;
  animation: ignite 2.8s cubic-bezier(0.5, 0.05, 0.35, 1) 0.25s both;
}
.logo-fire { background: var(--fire); }
/* Then it breathes: a pale heat that comes and goes at the tips. */
.logo-heat {
  background: linear-gradient(to top, transparent 30%, rgba(255, 243, 214, 0.55) 90%);
  opacity: 0;
  animation: flicker 5.5s ease-in-out 2.7s infinite;
}
.logo-glow {
  position: absolute;
  inset: 8% -30% -8%;
  background: radial-gradient(closest-side, rgba(255, 110, 30, 0.32), rgba(255, 80, 20, 0.1) 55%, transparent 78%);
  opacity: 0;
  animation: fade-in 2.4s ease 0.6s forwards, breathe 6s ease-in-out 3s infinite;
}
.logo-wordmark {
  display: block;
  width: calc(var(--w) * 1.11);
  aspect-ratio: 1974 / 462;
  background: linear-gradient(#f8efe2, #dcc5a4);
  opacity: 0;
  animation: rise-in 1.2s ease 1.3s forwards;
}

.hero-line {
  margin: 0;
  color: #f5d6a8;
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.3rem);
  font-style: italic;
  line-height: 1.25;
  text-wrap: balance;
  opacity: 0;
  animation: rise-in 1.2s ease 1.8s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  animation: rise-in 1.2s ease 2.1s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 24px;
  height: 40px;
  margin-left: -12px;
  border: 1px solid rgba(241, 231, 216, 0.28);
  border-radius: 12px;
  opacity: 0;
  animation: fade-in 1s ease 2.8s forwards;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--flame);
  animation: cue 2.2s ease-in-out infinite;
}
@media (max-height: 640px) {
  .scroll-cue { display: none; }
}

@keyframes ignite {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
}
@keyframes flicker {
  0%, 100% { opacity: 0.05; }
  18% { opacity: 0.5; }
  32% { opacity: 0.18; }
  50% { opacity: 0.62; }
  66% { opacity: 0.25; }
  82% { opacity: 0.5; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}

/* ---- Why ------------------------------------------------------------------------ */

.why {
  padding: var(--section) var(--gutter);
  background: linear-gradient(var(--night), #0f0a08 50%, var(--night));
}
.why-inner {
  max-width: 860px;
  margin: 0 auto;
}
.why-text {
  position: relative;
  isolation: isolate;
  text-align: center;
}
.why-text > * { margin: 0 0 0.85em; }
.why-text p {
  font-size: clamp(1.4rem, 1.02rem + 1.45vw, 2.2rem);
  line-height: 1.36;
  text-wrap: balance;
}
.why-lead {
  font-size: clamp(2.8rem, 1.6rem + 5.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.why-text .why-turn { margin: 1.2em 0; font-style: italic; }
.why-text .why-thesis {
  margin: 1.1em 0;
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.5rem);
  font-style: italic;
  line-height: 1.15;
}
.foe {
  color: var(--cold);
  font-family: var(--caps);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.why-text .signature {
  margin-top: 2em;
  color: var(--flame);
  font-family: var(--caps);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.signature span {
  display: block;
  margin-top: 0.4em;
  color: var(--smoke);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* A warm light carried down behind the words, as far as you have read. */
.lantern { display: none; }
.js .lantern {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 560px;
  margin-top: -280px;
  background: radial-gradient(closest-side, rgba(255, 122, 36, 0.16), rgba(255, 90, 20, 0.05) 60%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.js .lantern.is-lit { opacity: 1; }
.js .lantern.is-out { opacity: 0; }

.js .kindle {
  color: var(--unlit);
  transition: color 0.9s ease;
}
.js .kindle.is-lit { color: var(--bone); animation: catch 1.6s ease-out; }
.js .why-turn.is-lit { color: #ffd694; }
.js .why-thesis.is-lit { color: var(--flame); }
.js .signature.is-lit { color: var(--flame); }

@keyframes catch {
  0% { text-shadow: 0 0 0 rgba(255, 140, 40, 0); }
  25% { text-shadow: 0 0 22px rgba(255, 140, 40, 0.55); }
  100% { text-shadow: 0 0 0 rgba(255, 140, 40, 0); }
}

/* ---- Games -------------------------------------------------------------------- */

.games {
  padding-top: var(--section);
  background:
    radial-gradient(1100px 620px at 50% 700px, rgba(122, 18, 8, 0.16), transparent 70%),
    var(--night);
}
.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--char);
  box-shadow: 0 0 0 1px rgba(224, 185, 90, 0.3), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.banner-art {
  position: relative;
  display: block;
}
.banner-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.banner-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--char), rgba(20, 13, 10, 0.55) 14%, transparent 36%);
  pointer-events: none;
}
/* Under the art, not over it: the key art is too busy to letter on. The fan of
   cards rides up over the art's faded foot. */
.banner-copy {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  margin-top: calc(-1 * clamp(36px, 6vw, 80px));
  padding: 0 clamp(20px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
}
.banner-logo {
  flex: none;
  width: clamp(96px, 12vw, 150px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.8));
}
.banner-cta { flex: none; }
.banner-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  background: linear-gradient(#fff4dc, #e8b563);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--caps);
  font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.85));
}

@media (max-width: 860px) {
  .banner-copy { flex-wrap: wrap; }
  .banner-cta { width: 100%; }
}
@media (max-width: 480px) {
  .banner-copy { margin-top: -28px; }
  .banner-logo { width: 84px; }
}

/* The heroes, standing, with Death looming behind them. --h is a hero's
   height (the tallest); the srcset sizes in index.html follow it. */
.lineup {
  --h: clamp(170px, 29vw, 420px);
  --caption: 48px;
  position: relative;
  isolation: isolate;
  margin-top: var(--section);
  padding-top: calc(var(--h) * 0.72);
}
/* Cold air around him. */
.lineup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -3;
  width: min(100%, calc(var(--h) * 1.9));
  height: calc(var(--h) * 1.6);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(169, 188, 205, 0.13), transparent);
}
/* Warm ground under their feet. */
.lineup::after {
  content: '';
  position: absolute;
  bottom: var(--caption);
  left: 50%;
  z-index: -1;
  width: min(100%, calc(var(--h) * 2.8));
  height: calc(var(--h) * 0.3);
  transform: translate(-50%, 50%);
  background: radial-gradient(closest-side, rgba(255, 110, 30, 0.22), transparent);
}
.lineup-death {
  position: absolute;
  bottom: calc(var(--caption) + var(--h) * 0.22);
  left: 50%;
  z-index: -2;
  width: auto;
  max-width: none;
  height: calc(var(--h) * 1.45);
  transform: translateX(-50%);
  opacity: 0.55;
  filter: saturate(0.7) brightness(0.85);
  -webkit-mask: linear-gradient(to top, transparent 4%, #000 50%);
  mask: linear-gradient(to top, transparent 4%, #000 50%);
}
.lineup-heroes {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(6px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lineup-heroes figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.lineup-heroes img {
  width: auto;
  max-width: none;
  height: calc(var(--h) * var(--s, 1));
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.7));
  transition: transform 0.5s ease, filter 0.5s ease;
}
.lineup-rock { --s: 1; }
.lineup-jack { --s: 0.93; }
.lineup-rae { --s: 0.87; }
.lineup-empty { --s: 0.94; }
.lineup-heroes figcaption {
  height: var(--caption);
  padding: 16px 0 0 0.22em;
  color: var(--parchment);
  font-family: var(--caps);
  font-size: clamp(0.66rem, 0.54rem + 0.45vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.4s ease;
}
.lineup-heroes figure:hover img {
  transform: translateY(-6px);
  filter: brightness(1.08) drop-shadow(0 22px 22px rgba(0, 0, 0, 0.75));
}
.lineup-heroes figure:hover figcaption { color: var(--flame); }
@media (max-width: 360px) {
  .lineup { --h: 150px; }
}

/* Where they came from: the first page of each one's story, and nothing said. */
.story { margin-top: clamp(64px, 9vw, 120px); }
.story-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(241, 231, 216, 0.12), 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}
@media (max-width: 900px) {
  .story-strip { grid-template-columns: repeat(2, 1fr); }
}
/* On a phone the panels are a strip you swipe, as they are an album in the game. */
@media (max-width: 559px) {
  .story-strip {
    display: flex;
    gap: 12px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .story-strip::-webkit-scrollbar { display: none; }
  .story-strip li { flex: 0 0 84%; scroll-snap-align: start; }
}

/* The game itself: two large, four small, crossing over. Rows are exactly a
   small screenshot tall, from the width of the grid (container units). */
.shots {
  margin-top: clamp(64px, 9vw, 120px);
  container-type: inline-size;
}
.shot-grid {
  --gap: clamp(10px, 1.4vw, 18px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: calc((100cqw - 2 * var(--gap)) / 3 * 9 / 16);
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.shot-grid li:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.shot-grid li:nth-child(2) { grid-area: 1 / 3; }
.shot-grid li:nth-child(3) { grid-area: 2 / 3; }
.shot-grid li:nth-child(4) { grid-area: 3 / 1; }
.shot-grid li:nth-child(5) { grid-area: 4 / 1; }
.shot-grid li:nth-child(6) { grid-area: 3 / 2 / 5 / 4; }
.shot-grid .shot,
.shot-grid .shot img { height: 100%; }
@media (max-width: 860px) {
  .shot-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .shot-grid li:nth-child(n) { grid-area: auto; }
  .shot-grid .shot img { height: auto; }
}

/* A screenshot opens large (js/site.js); without the script it is a link to itself. */
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow: 0 0 0 1px rgba(241, 231, 216, 0.14), 0 24px 48px -24px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.3s ease;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.shot:hover { box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.6), 0 24px 60px -20px rgba(255, 90, 20, 0.35); }
.shot:hover img { transform: scale(1.02); }

/* The call to play, by the fire */
.play {
  position: relative;
  isolation: isolate;
  margin-top: var(--section);
  padding: clamp(110px, 17vw, 220px) var(--gutter);
  text-align: center;
}
.play-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.play::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(var(--night), rgba(12, 8, 6, 0.3) 28%, rgba(12, 8, 6, 0.25) 62%, var(--night)),
    radial-gradient(48% 55% at 50% 50%, rgba(12, 8, 6, 0.7), transparent);
}
.play-inner {
  max-width: 640px;
  margin: 0 auto;
}
.play-title {
  margin: 0 0 0.35em;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.6rem);
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.play p {
  margin: 0 auto 1.8em;
  color: var(--bone);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

/* ---- Contact ------------------------------------------------------------------- */

.contact {
  padding: clamp(110px, 15vw, 190px) var(--gutter) clamp(90px, 12vw, 150px);
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(255, 86, 20, 0.14), transparent 70%),
    var(--night);
}
.contact-inner {
  max-width: 660px;
  margin: 0 auto;
}
.contact-emblem {
  display: block;
  width: 60px;
  aspect-ratio: 1778 / 2310;
  margin: 0 auto 30px;
  background: var(--fire);
}
.contact-title {
  margin: 0 0 0.35em;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.2rem);
  line-height: 1.05;
}
.contact p:not(.eyebrow) { color: var(--parchment); }
.contact-mail {
  display: inline-block;
  margin-top: 0.4em;
  padding-bottom: 3px;
  color: var(--flame);
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 0.3s ease;
}
.contact-mail:hover { color: var(--spark); }
.contact .contact-small {
  margin-top: 2.4em;
  color: var(--smoke);
  font-size: 1rem;
}
.contact-small a { color: var(--parchment); }

/* ---- Footer ---------------------------------------------------------------------- */

.footer {
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 122, 26, 0.12);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.footer-brand { display: block; }
.footer-wordmark {
  display: block;
  width: 170px;
  aspect-ratio: 1974 / 462;
  background: var(--smoke);
  transition: background-color 0.3s ease;
}
.footer-brand:hover .footer-wordmark { background: var(--bone); }
.footer-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.footer-links a {
  color: var(--parchment);
  font-family: var(--caps);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-links a:hover { color: var(--flame); }
.footer-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

/* ---- Lightbox ------------------------------------------------------------------- */

.lightbox {
  max-width: min(96vw, 1920px);
  max-height: 94vh;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.lightbox::backdrop {
  background: rgba(6, 4, 3, 0.92);
}
.lightbox form { margin: 0; }
.lightbox img {
  width: auto;
  max-width: min(96vw, 1920px);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(241, 231, 216, 0.16), 0 40px 90px rgba(0, 0, 0, 0.8);
}
.lightbox-close {
  position: absolute;
  top: -20px;
  right: -14px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(241, 231, 216, 0.3);
  border-radius: 50%;
  background: rgba(12, 8, 6, 0.9);
  color: var(--bone);
  font: 28px/1 var(--serif);
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--ember); color: var(--spark); }
@media (max-width: 600px) {
  .lightbox-close { top: -54px; right: 0; }
}

/* ---- The page that is not there (404) --------------------------------------------- */

.lost {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px var(--gutter);
  text-align: center;
  background: radial-gradient(50% 50% at 50% 60%, rgba(255, 86, 20, 0.1), transparent 70%), var(--night);
}
.lost .logo { --w: clamp(120px, 26vw, 200px); margin-bottom: 36px; }
.lost h1 {
  margin: 0 0 0.3em;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem);
  line-height: 1.1;
}
.lost p {
  margin: 0 0 2em;
  color: #f5d6a8;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  font-style: italic;
}

/* ---- Stillness, for those who ask for it -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .logo-heat { opacity: 0.2; }
  .embers, .scroll-cue span, .lantern { display: none; }
}
