/* adequate.wang — a poster for a film that is fine */

:root {
  --navy: #0b1520;
  --ink: #04080d;
  --ember: #f0862f;
  --ember-hot: #ffc27a;
  --teal: #2a9d9f;
  --teal-deep: #0f3b44;
  --bone: #efe3cc;
  --dust: #8a9bab;

  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --serif: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --billing: "Six Caps", "Arial Narrow", "Impact", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; background: var(--ink); }

/* The whole page IS the poster: the sheet runs edge to edge. */
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(min(900px, 120%) 60% at 50% 34%, rgba(240, 134, 47, 0.16), transparent 60%),
    linear-gradient(180deg, #0a1826 0%, var(--navy) 40%, #071019 70%, var(--ink) 100%);
  color: var(--bone);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the content column, centered and capped */
.poster {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 40px;
  text-align: center;
  min-height: 100vh;
}

/* film grain, once, over everything */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.poster > * { position: relative; z-index: 1; }

.presents {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--dust);
}

/* laurels */
.laurels {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--bone);
}

.laurel {
  display: flex;
  align-items: center;
  gap: 2px;
}

.branch {
  width: 30px;
  height: 56px;
  fill: currentColor;
  opacity: 0.85;
}

.branch.flip { transform: scaleX(-1); }

.laurel-text {
  display: flex;
  flex-direction: column;
  min-width: 96px;
  line-height: 1.15;
  text-transform: uppercase;
}

.laurel-text small { font-size: 8px; letter-spacing: 0.18em; color: var(--dust); }
.laurel-text b { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }

/* key art: epic light, tiny man */
.key-art {
  position: relative;
  height: clamp(200px, 38vw, 300px);
  margin-top: 6px;
  /* bleed to the viewport edges so the horizon runs the full width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.rays {
  position: absolute;
  left: 50%;
  top: 72%;
  width: 1400px;
  height: 1400px;
  margin: -700px 0 0 -700px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(240, 134, 47, 0.0) 0deg 6deg,
    rgba(240, 134, 47, 0.10) 6deg 9deg,
    rgba(240, 134, 47, 0.0) 9deg 18deg
  );
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0,0,0,0.5) 22%, transparent 48%);
  mask: radial-gradient(circle, #000 0%, rgba(0,0,0,0.5) 22%, transparent 48%);
  animation: spin 90s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.glow {
  position: absolute;
  left: 50%;
  top: 72%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--ember-hot) 0%, var(--ember) 14%, rgba(240,134,47,0.35) 32%, transparent 62%);
  filter: blur(2px);
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent 0%, var(--teal-deep) 8%, #06161c 60%, var(--navy) 100%);
}

.horizon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,157,159,0.7), transparent);
}

/* the hero. all 22 pixels of him. */
.figure {
  position: absolute;
  left: 50%;
  bottom: 27%;
  width: 6px;
  height: 16px;
  margin-left: -3px;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
}

.figure::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--ink);
}

.figure::after {
  /* dramatic shadow, longer than the man */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 3px;
  height: 46px;
  margin-left: -1.5px;
  transform-origin: top center;
  transform: scaleY(-1) skewX(-4deg);
  background: linear-gradient(180deg, rgba(4,8,13,0.7), transparent);
}

.flare {
  position: absolute;
  left: 50%;
  top: 72%;
  width: 380px;
  height: 3px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255,194,122,0.9), transparent);
  opacity: 0.8;
}

/* the title */
.title {
  margin: -18px 0 0;
  line-height: 0.9;
}

.title-word {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(62px, 17.5vw, 150px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(180deg, #fff6e6 0%, var(--bone) 45%, var(--ember-hot) 70%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.5)) drop-shadow(0 0 26px rgba(240,134,47,0.35));
  transition: transform 120ms ease;
}

.title-word:hover { transform: scale(1.015); }
.title-word:active { transform: scale(0.98); }
.title-word:focus-visible { outline: 3px solid var(--teal); outline-offset: 8px; border-radius: 4px; }

.title-word.glitch { animation: glitch 260ms steps(3, end) 1; }

@keyframes glitch {
  0%   { transform: translate(-3px, 1px) skewX(-6deg); filter: drop-shadow(4px 0 0 var(--teal)) drop-shadow(-4px 0 0 var(--ember)); }
  50%  { transform: translate(3px, -1px) skewX(4deg); }
  100% { transform: none; }
}

.title-hint {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dust);
  min-height: 1.5em;
}

.tagline {
  margin: 26px 0 0;
  font-size: clamp(16px, 3.2vw, 24px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}

/* stars */
.verdict { margin-top: 22px; }

.stars {
  display: inline-flex;
  gap: 6px;
}

.star {
  width: 28px;
  height: 28px;
  background: rgba(239,227,204,0.14);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  position: relative;
}

.star::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ember);
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
  transition: transform 500ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.verdict-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--dust);
}

/* buttons */
.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  appearance: none;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.btn-primary {
  border: 0;
  background: var(--ember);
  color: var(--ink);
}

.btn-primary:hover { background: var(--ember-hot); }

.btn-ghost {
  border: 1px solid rgba(239,227,204,0.35);
  background: transparent;
  color: var(--bone);
}

.btn-ghost:hover { border-color: var(--bone); }

.play { width: 14px; height: 14px; }

.ticket-note {
  margin: 12px 0 0;
  min-height: 1.5em;
  font-size: 13px;
  color: var(--teal);
}

/* review marquee */
.reviews {
  margin: 30px 0 0;
  border-top: 1px solid rgba(239,227,204,0.12);
  border-bottom: 1px solid rgba(239,227,204,0.12);
  overflow: hidden;
}

.reviews-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.reviews:hover .reviews-track { animation-play-state: paused; }

.reviews-list {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  display: flex;
  gap: 0;
}

.reviews-list li {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
  border-right: 1px solid rgba(239,227,204,0.15);
}

.reviews-list q {
  font-size: 15px;
  color: var(--bone);
  quotes: "\201C" "\201D";
}

.reviews-list q::before { color: var(--ember); }
.reviews-list q::after { color: var(--ember); }

.reviews-list cite {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* billing block */
.billing {
  margin: 36px auto 0;
  max-width: 640px;
  font-family: var(--billing);
  font-size: clamp(19px, 3.6vw, 26px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(239,227,204,0.72);
  word-spacing: 0.15em;
}

/* rating + release */
.release {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.rating-box {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--bone);
  border-radius: 3px;
  overflow: hidden;
  font-family: var(--display);
  text-transform: uppercase;
}

.rating-letter {
  padding: 4px 10px;
  font-size: 34px;
  line-height: 1;
  background: var(--bone);
  color: var(--ink);
  display: flex;
  align-items: center;
}

.rating-desc {
  padding: 4px 10px;
  font-family: var(--billing);
  font-size: 18px;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-align: left;
  display: flex;
  align-items: center;
  color: var(--bone);
}

.release-text { text-align: center; }

.release-date {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
}

.release-where {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust);
}

.format-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.format-badges span {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(239,227,204,0.4);
  border-radius: 2px;
  color: var(--bone);
}

.footer {
  margin-top: 44px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dust);
}

.footer p { margin: 0; }

/* the trailer */
.trailer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.trailer[hidden] { display: none; }

.trailer.shake { animation: shake 320ms cubic-bezier(0.36, 0.07, 0.19, 0.97) 1; }

@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-7px, 3px); }
  40%, 60% { transform: translate(7px, -3px); }
}

.trailer-word {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 11vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--bone);
  max-width: 14ch;
  opacity: 0;
  transform: scale(1.4);
}

.trailer-word.in {
  animation: slam 260ms cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.trailer-word.title-card {
  background: linear-gradient(180deg, #fff6e6 0%, var(--bone) 45%, var(--ember-hot) 70%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trailer-word.small {
  font-family: var(--serif);
  font-size: clamp(14px, 3vw, 22px);
  letter-spacing: 0.3em;
  color: var(--dust);
}

@keyframes slam {
  from { opacity: 0; transform: scale(1.4); }
  to   { opacity: 1; transform: scale(1); }
}

.trailer-skip {
  position: absolute;
  right: 20px;
  bottom: 20px;
  appearance: none;
  border: 1px solid rgba(239,227,204,0.35);
  background: transparent;
  color: var(--dust);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 44px;
}

.trailer-skip:hover { color: var(--bone); border-color: var(--bone); }
.trailer-skip:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* keep everyone comfortable */
@media (prefers-reduced-motion: reduce) {
  .rays { animation: none; }
  .reviews-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .reviews-list { flex-wrap: wrap; justify-content: center; gap: 8px 0; }
  .reviews-list li { white-space: normal; }
  .reviews-list.clone { display: none; }
  .trailer.shake { animation: none; }
  .trailer-word.in { animation: none; opacity: 1; transform: none; }
  .title-word.glitch { animation: none; }
  .star::after { transition: none; }
}

@media (max-width: 480px) {
  .laurel-text { min-width: 80px; }
  .branch { width: 24px; height: 46px; }
  .reviews-list li { padding: 0 18px; }
  .reviews-list q { font-size: 14px; }
}
