/* Burnt Cabbage Studios · Take Three: one-page preview */
:root {
  --pink: #ff4fa3;
  --teal: #4ff3d6;
  --amber: #ffbe55;
  --cream: #f7eedb;
  --ink: #1a1424;
  --night: #07080f;
  --ground: #120c13;
  --panel: #173430;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: #efe6f2;
  background: linear-gradient(180deg, var(--ground) 0%, #0d0910 60%, #08070b 100%);
  background-color: var(--night);
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--amber); color: var(--ink); padding: .5rem 1rem; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- Hero: neon sign over a dusk desert ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(1rem, 4vw, 2.5rem) 1rem 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(240, 130, 70, .55), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(255, 190, 110, .35), transparent 70%),
    linear-gradient(180deg, #020308 0%, #0a0c1c 30%, #1c1430 58%, #43203f 78%, #7a3540 92%, #a24a3c 100%);
  overflow: hidden;
}
.stars {
  position: absolute; inset: 0 0 40% 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent 60%),
    radial-gradient(1px 1px at 28% 8%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 26%, #ffe9c9, transparent 60%),
    radial-gradient(1px 1px at 63% 12%, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 77% 30%, #cdf, transparent 60%),
    radial-gradient(1px 1px at 88% 9%, #fff, transparent 60%),
    radial-gradient(1px 1px at 6% 40%, #fff, transparent 60%),
    radial-gradient(1px 1px at 94% 44%, #fff, transparent 60%),
    radial-gradient(1px 1px at 53% 4%, #fff, transparent 60%);
}
.sign { margin: 0 auto; max-width: 860px; position: relative; z-index: 1; }
.sign img {
  width: 100%; height: auto;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.tagline {
  position: relative; z-index: 2;
  margin: -.5rem 0 0; padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
  font-family: var(--script);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: #ffe2b0;
  text-shadow: 0 0 4px #ffb347, 0 0 14px rgba(255, 150, 60, .9), 0 0 32px rgba(255, 110, 40, .6);
}
.horizon {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 47px;
  background: var(--ground);
  clip-path: polygon(0 55%, 8% 40%, 16% 52%, 27% 30%, 36% 50%, 46% 42%, 55% 56%, 66% 34%, 75% 48%, 86% 28%, 94% 46%, 100% 38%, 100% 100%, 0 100%);
}

/* ---------- Shared section bits ---------- */
main { padding: 0 1rem; }
section { max-width: 1040px; margin: 0 auto; text-align: center; }
.neon-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.1;
  margin: 0;
  color: #ffd6ec;
  text-shadow: 0 0 3px #fff, 0 0 10px var(--pink), 0 0 24px var(--pink), 0 0 46px rgba(255, 79, 163, .6);
}
.neon-title.teal {
  color: #dafff8;
  text-shadow: 0 0 3px #fff, 0 0 10px var(--teal), 0 0 24px var(--teal), 0 0 46px rgba(79, 243, 214, .5);
}
.sub { margin: .4rem auto 1.6rem; color: #cbbfd3; max-width: 36em; }

/* ---------- The word machine ---------- */
.machine { padding: 2.2rem 0 1rem; }
.slot {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 900px; margin: 0 auto;
}
.cabinet {
  flex: 1 1 auto; min-width: 0;
  position: relative;
  padding: 16px;
  border-radius: 26px;
  background-color: #5b2a1f;
  background-image:
    radial-gradient(circle, #ffe6a8 0 3px, rgba(255, 190, 85, .6) 4px, transparent 5.5px),
    radial-gradient(circle, #6a4a2a 0 3px, transparent 4px),
    linear-gradient(160deg, #7a3423, #4a1e18);
  background-size: 22px 22px, 22px 22px, auto;
  background-position: 0 0, 11px 11px, 0 0;
  box-shadow: 0 0 0 2px #2a0f0b, 0 0 30px rgba(255, 140, 60, .25), 0 18px 40px rgba(0, 0, 0, .6);
  animation: chase 1.1s steps(1) infinite;
}
.cabinet.spinning { animation-duration: .22s; }
@keyframes chase {
  0%   { background-position: 0 0, 11px 11px, 0 0; }
  50%  { background-position: 11px 11px, 0 0, 0 0; }
}
.cabinet-inner {
  background: linear-gradient(180deg, #1d403b, var(--panel) 60%, #10251f);
  border-radius: 14px;
  padding: 14px 16px 18px;
  box-shadow: inset 0 0 0 2px rgba(79, 243, 214, .35), inset 0 0 24px rgba(0, 0, 0, .5);
}
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reel-wrap { display: flex; flex-direction: column; gap: 6px; }
.reel-wrap label {
  font-family: var(--display); letter-spacing: .12em; font-size: 1.05rem;
  color: var(--c); text-shadow: 0 0 8px var(--c);
}
.c1 { --c: var(--pink); }
.c2 { --c: var(--teal); }
.c3 { --c: var(--amber); }
.reel {
  --h: clamp(92px, 13vw, 128px);
  position: relative; height: var(--h);
  border-radius: 10px; overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 0 3px #0b1714, 0 0 0 5px var(--c), 0 0 18px color-mix(in srgb, var(--c) 60%, transparent);
}
/* curved-reel shading */
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 74%, rgba(0,0,0,.42) 100%);
}
.reel input, .strip-item {
  font-family: var(--display);
  font-size: calc(var(--h) * .5 * var(--fs, 1));
  line-height: 1; letter-spacing: .03em;
  text-transform: uppercase; text-align: center;
  color: var(--ink);
}
.reel input {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border: 0; margin: 0; padding: 0 .3em;
  background: transparent;
  border-radius: 10px;
}
.reel input::placeholder { color: #8d806e; opacity: .55; font-size: .5em; letter-spacing: .08em; }
.reel input:focus { outline: none; }
.reel:focus-within { box-shadow: 0 0 0 3px #0b1714, 0 0 0 6px #fff, 0 0 26px var(--c); }
.reel.spinning input { color: transparent; }
.reel.spinning input::placeholder { color: transparent; }
.strip { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: none; }
.reel.spinning .strip { display: block; }
.strip-item {
  height: var(--h); display: flex; align-items: center; justify-content: center;
  padding: 0 .3em; white-space: nowrap; overflow: hidden;
}

/* ---------- Lever ---------- */
.lever-wrap {
  position: relative; flex: 0 0 78px; height: 290px; margin-left: -4px;
}
.lever-mount {
  position: absolute; left: 0; top: 50%; width: 40px; height: 46px; transform: translateY(-50%);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, #e9edf2, #8c96a3 45%, #5b6470 55%, #c9d0d8);
  box-shadow: 0 4px 10px rgba(0,0,0,.5);
}
.lever {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: none; border: 0; padding: 0; cursor: pointer; border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}
.lever[disabled] { cursor: progress; }
.lever-rod {
  position: absolute; left: 50%; bottom: 50%; width: 12px; height: 104px; margin-left: -6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #6f7884, #f4f7fa 40%, #9aa3ae 70%, #59616c);
  transform-origin: 50% 100%;
}
.lever-knob {
  position: absolute; left: 50%; top: calc(50% - 104px - 26px); width: 52px; height: 52px; margin-left: -26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd0e4 0 8%, #ff4f8f 30%, #c4124f 70%, #6d0626 100%);
  box-shadow: 0 0 16px rgba(255, 79, 163, .7), 0 6px 12px rgba(0,0,0,.5);
}
.lever:hover .lever-knob, .lever:focus-visible .lever-knob { box-shadow: 0 0 26px rgba(255, 79, 163, 1), 0 6px 12px rgba(0,0,0,.5); }
.lever.pulling .lever-rod { animation: rod-pull .9s cubic-bezier(.3,.7,.3,1) both; }
.lever.pulling .lever-knob { animation: knob-pull .9s cubic-bezier(.3,.7,.3,1) both; }
@keyframes rod-pull {
  0%   { transform: scaleY(1); }
  30%  { transform: scaleY(-.85); }
  45%  { transform: scaleY(-.85); }
  80%  { transform: scaleY(1.06); }
  100% { transform: scaleY(1); }
}
@keyframes knob-pull {
  0%   { transform: translateY(0) scale(1); }
  14%  { transform: translateY(98px) scale(1.22); }
  30%  { transform: translateY(192px) scale(1.05); }
  45%  { transform: translateY(192px) scale(1.05); }
  62%  { transform: translateY(98px) scale(1.22); }
  80%  { transform: translateY(-6px) scale(.98); }
  100% { transform: translateY(0) scale(1); }
}
.pull-hint {
  position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%) rotate(-6deg);
  font-family: var(--display); letter-spacing: .1em; font-size: 1rem; color: var(--amber);
  text-shadow: 0 0 8px var(--amber); pointer-events: none;
  animation: blink 1.6s ease-in-out infinite;
}
.lever.pulling ~ .pull-hint, .lever[disabled] ~ .pull-hint { opacity: 0; animation: none; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Send buttons ---------- */
.send-row { margin-top: 1.8rem; }
.send-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.send {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 230px; padding: .75rem 1.6rem .65rem;
  font-family: var(--display); font-size: 1.7rem; letter-spacing: .06em; line-height: 1.05;
  color: #1a0710; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #ff86c1, var(--pink) 55%, #e02c83);
  border: 0; border-radius: 999px;
  box-shadow: 0 0 0 3px #3a0c22, 0 0 22px rgba(255, 79, 163, .7), 0 8px 18px rgba(0,0,0,.5);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease, filter .2s ease;
}
.send.email {
  background: linear-gradient(180deg, #a6fff0, var(--teal) 55%, #22c9ad);
  box-shadow: 0 0 0 3px #0b3a33, 0 0 22px rgba(79, 243, 214, .6), 0 8px 18px rgba(0,0,0,.5);
  color: #06231e;
}
.btn-sub { font-family: var(--body); font-size: .72rem; letter-spacing: .04em; font-weight: 600; opacity: .75; margin-top: .15rem; }
.send:hover { transform: translateY(-2px); }
.send:active { transform: translateY(1px) scale(.98); }
.send[aria-disabled="true"] { opacity: .45; box-shadow: 0 0 0 3px #2a2230, 0 8px 18px rgba(0,0,0,.5); cursor: not-allowed; }
.send[aria-disabled="true"]:hover { transform: none; }
.note { min-height: 1.6em; margin: 1rem 0 .2rem; font-weight: 700; font-size: 1.1rem; color: var(--amber); }
.note.warn { color: #ffb0b0; }
.note a { color: var(--teal); }
.target-hint { margin: .1rem 0; font-size: .85rem; color: #a99fb2; }

/* ---------- Films ---------- */
.films { padding: 3rem 0 2rem; }
.film-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.film a {
  display: block; height: 100%; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #1a1622, #120f18);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.45);
  transition: transform .15s ease, box-shadow .2s ease;
}
.film a:hover, .film a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--teal), 0 0 24px rgba(79, 243, 214, .35), 0 10px 24px rgba(0,0,0,.45);
}
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px;
  border-radius: 10px; background: rgba(10, 6, 14, .72);
  box-shadow: 0 0 0 2px rgba(255,255,255,.7);
  -webkit-mask: none;
}
.thumb::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; margin: -8px 0 0 -5px;
  border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff;
}
.film-words {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .45em;
  font-family: var(--display); font-size: 2rem; line-height: 1.05; letter-spacing: .04em;
  padding: .8rem .8rem .2rem; text-transform: uppercase;
}
.film-words span:nth-child(1) { color: var(--pink); text-shadow: 0 0 10px rgba(255, 79, 163, .55); }
.film-words span:nth-child(2) { color: var(--teal); text-shadow: 0 0 10px rgba(79, 243, 214, .5); }
.film-words span:nth-child(3) { color: var(--amber); text-shadow: 0 0 10px rgba(255, 190, 85, .5); }
.film-credit { margin: 0; padding: 0 .8rem .9rem; font-size: .85rem; color: #b3a8bc; }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding: 2.5rem 1.2rem 3rem; margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, transparent, rgba(255, 79, 163, .05));
}
.yt-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.3rem; border-radius: 999px;
  background: #ff2d46; color: #fff; text-decoration: none; font-weight: 800;
  box-shadow: 0 0 20px rgba(255, 45, 70, .5);
}
.yt-btn:hover { filter: brightness(1.1); }
.about { margin: 1.2rem auto .4rem; font-size: 1.05rem; color: #f0e4f4; }
.disclaimer { margin: .4rem auto; max-width: 44em; font-size: .82rem; color: #a99fb2; }
.copy { margin: .8rem 0 0; font-size: .8rem; color: #8a8094; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .reels { grid-template-columns: 1fr; gap: 10px; }
  .reel-wrap { flex-direction: row; align-items: center; gap: 8px; }
  .reel-wrap label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .95rem; }
  .reel-wrap .reel { flex: 1; }
  .reel { --h: 84px; }
  .cabinet { padding: 12px; border-radius: 20px; }
  .cabinet-inner { padding: 12px 12px 12px 8px; }
  .lever-wrap { flex-basis: 62px; height: 280px; }
  .lever-mount { width: 30px; }
  .send { width: 100%; max-width: 360px; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .film-words { font-size: 1.35rem; padding: .6rem .5rem .15rem; }
  .film-credit { font-size: .72rem; padding: 0 .5rem .7rem; }
  .thumb::after { width: 40px; height: 28px; margin: -14px 0 0 -20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .cabinet { animation: none; }
  .pull-hint { animation: none; }
}
