/* The Hole Job — teaser site. One night palette (the game's noir street,
   its blueprint scraps and the BANK sign's gold), fluid type and spacing
   from 320px phones to wide screens, motion that respects reduced motion. */

:root {
  --night: #070b18;
  --night-2: #0c1428;
  --blueprint: #1b4b8f;
  --blueprint-deep: #143a72;
  --grid: rgba(190, 215, 255, 0.13);
  --chalk: #e8efff;
  --chalk-dim: #a9b8d8;
  --gold: #ffc94a;
  --gold-deep: #e8a52a;
  --tape: rgba(244, 236, 206, 0.86);
  --ink-shadow: rgba(2, 5, 14, 0.55);

  /* Fluid type: each step grows with the viewport, clamped at both ends. */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.94rem + 0.3vw, 1.2rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.75vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.25rem + 1.6vw, 2.6rem);
  --step-3: clamp(2.1rem, 1.5rem + 3vw, 4rem);
  --step-4: clamp(2.8rem, 1.6rem + 6vw, 7rem);
  --step-hero: clamp(3.6rem, 1.4rem + 11vw, 11rem);

  /* Fluid space */
  --space-2xs: clamp(0.3rem, 0.25rem + 0.25vw, 0.5rem);
  --space-xs: clamp(0.6rem, 0.5rem + 0.5vw, 0.9rem);
  --space-s: clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
  --space-m: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-l: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);
  --space-xl: clamp(4rem, 2.5rem + 7vw, 9rem);
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);

  --title: "Lilita One", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

/* --- Shared pieces: a blueprint scrap with tape, the reveal ------------- */

.scrap {
  position: relative;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--blueprint) 0%, var(--blueprint-deep) 100%);
  border: 2px solid rgba(220, 234, 255, 0.55);
  box-shadow: 0 1.2rem 3rem var(--ink-shadow), inset 0 0 0 6px rgba(220, 234, 255, 0.08);
  border-radius: 4px;
}
.tape {
  position: absolute;
  width: clamp(3.2rem, 2rem + 4vw, 5.5rem);
  height: clamp(1rem, 0.8rem + 0.6vw, 1.5rem);
  background: var(--tape);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.tape--tl { top: -0.55rem; left: -1.2rem; transform: rotate(-38deg); }
.tape--tr { top: -0.55rem; right: -1.2rem; transform: rotate(38deg); }

.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__picture { position: absolute; inset: -8% 0 -8% 0; z-index: -2; will-change: transform; }
.hero__picture img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.06) translate3d(-1.2%, 0, 0); }
  to { transform: scale(1.16) translate3d(1.2%, -1.5%, 0); }
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(7, 11, 24, 0.35) 55%, rgba(7, 11, 24, 0.85) 100%),
    linear-gradient(to bottom, rgba(7, 11, 24, 0.25) 0%, transparent 35%, rgba(7, 11, 24, 0.9) 92%, var(--night) 100%);
}
.hero__inner {
  display: grid; justify-items: center; gap: var(--space-m);
  padding: var(--space-xl) var(--gutter);
  text-align: center;
}
.title-card {
  padding: var(--space-s) clamp(1.4rem, 0.5rem + 4vw, 4rem) var(--space-m);
  transform: rotate(-3deg);
  max-width: min(92vw, 62rem);
}
.title-card.is-in { transform: rotate(-3deg); }
.title-card.reveal:not(.is-in) { transform: rotate(-3deg) translateY(2.2rem) scale(0.96); }
.title-card__the {
  font-family: var(--title); font-size: var(--step-2); color: var(--chalk);
  text-align: left; line-height: 1; margin-bottom: -0.1em;
}
.title-card__name {
  font-size: var(--step-hero); color: #fff; white-space: nowrap;
  text-shadow: 0 0.06em 0 var(--blueprint-deep), 0 0.1em 0.4em rgba(0, 0, 0, 0.35);
  -webkit-text-stroke: clamp(1px, 0.2vw, 3px) rgba(10, 22, 52, 0.5);
}
.title-card__chalk {
  position: absolute; right: clamp(1rem, 4vw, 4rem); top: clamp(0.4rem, 1.4vw, 1.4rem);
  font-family: var(--title); font-size: var(--step-0); color: var(--gold); transform: rotate(6deg);
  display: flex; align-items: flex-start; gap: 0.2em;
}
.title-card__chalk svg {
  width: 2.2em; height: auto; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 80; stroke-dashoffset: 80; animation: chalk 1.2s 1.2s var(--ease-out) forwards;
}
@keyframes chalk { to { stroke-dashoffset: 0; } }

.hero__tagline {
  font-family: var(--title); font-size: var(--step-2); line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.55em 1.1em; border-radius: 999px;
  background: rgba(7, 11, 24, 0.6); border: 1px solid rgba(255, 201, 74, 0.45);
  backdrop-filter: blur(6px);
  font-weight: 800; font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase;
}
.hero__badge .dot {
  width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 201, 74, 0.7); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 0.7em rgba(255, 201, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 201, 74, 0); }
}
.hero__down {
  position: absolute; bottom: var(--space-m); left: 50%; translate: -50% 0;
  width: 1.6rem; opacity: 0.8;
}
.hero__down svg { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linecap: round; }
.hero__down line { animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* --- Pitch ------------------------------------------------------------------- */

.pitch {
  max-width: 62rem; margin: 0 auto;
  padding: var(--space-xl) var(--gutter) var(--space-l);
  display: grid; gap: var(--space-m);
}
.pitch__text { font-family: var(--title); font-size: var(--step-3); line-height: 1.08; }
.pitch__text em { font-style: normal; color: var(--gold); }
.pitch__small { font-size: var(--step-1); color: var(--chalk-dim); max-width: 46rem; }

/* --- The plan (sticky cross-section) ----------------------------------------------- */

.plan { position: relative; height: 260vh; }
.plan__sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; padding: var(--space-m) var(--gutter);
}
.plan__board { width: min(100%, 78rem); padding: var(--space-s) var(--space-s) var(--space-2xs); transform: rotate(-0.6deg); }
.plan__heading {
  font-family: var(--title); font-size: var(--step-1); color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 var(--space-2xs) var(--space-2xs);
}
.section-svg { width: 100%; height: auto; overflow: visible; }
.section-svg .grid-line { stroke: rgba(190, 215, 255, 0.07); stroke-width: 1; }
.section-svg .ground { stroke: var(--chalk); stroke-width: 4; stroke-linecap: round; }
.section-svg .strata { fill: none; stroke: rgba(232, 239, 255, 0.22); stroke-width: 2; stroke-dasharray: 10 12; }
.section-svg .drawing, .section-svg .drawing * { fill: none; stroke: var(--chalk); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.section-svg .vault { fill: rgba(7, 11, 24, 0.35); stroke: var(--chalk); stroke-width: 3; }
.section-svg .gold-bars rect { fill: var(--gold); opacity: 0; transition: opacity 600ms, transform 600ms var(--ease-out); transform: translateY(-8px); transform-box: fill-box; }
.section-svg.loot .gold-bars rect { opacity: 1; transform: none; }
.section-svg .tunnel {
  fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 201, 74, 0.45));
}
.section-svg .digger { fill: #fff; stroke: var(--gold-deep); stroke-width: 3; transition: opacity 400ms; }
.section-svg.loot .digger { opacity: 0; }
.section-svg .chalk-label, .section-svg .step { font-family: var(--title); fill: var(--chalk); font-size: 22px; }
.section-svg .chalk-label--gold { fill: var(--gold); }
.section-svg .step { font-size: 26px; fill: var(--chalk); opacity: 0; transition: opacity 500ms; }
.section-svg .step.is-on { opacity: 1; }

/* On a phone the drawing's words are too small to read: the steps go under it as a list. */
.plan__steps {
  display: none; list-style: none; margin: var(--space-xs) 0 var(--space-2xs); padding: 0;
  counter-reset: step; gap: 0.35rem;
}
.plan__steps li {
  counter-increment: step; font-family: var(--title); font-size: var(--step-0);
  opacity: 0.28; transition: opacity 400ms, color 400ms; display: flex; gap: 0.6em;
}
.plan__steps li::before { content: counter(step); color: var(--gold); min-width: 1ch; }
.plan__steps li.is-on { opacity: 1; }
@media (max-width: 45rem) {
  .plan__steps { display: grid; }
  .section-svg .step, .section-svg .chalk-label { display: none; }
  .plan__board { transform: none; }
}

/* --- Features ------------------------------------------------------------------------ */

.features { display: grid; gap: var(--space-xl); padding: var(--space-xl) var(--gutter); max-width: 100rem; margin: 0 auto; }
.feature {
  display: grid; gap: var(--space-m); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .feature { grid-template-columns: 1.55fr 1fr; gap: var(--space-l); }
  .feature--flip { grid-template-columns: 1fr 1.55fr; }
  .feature--flip .feature__picture { order: 2; }
}
.feature__picture {
  margin: 0; overflow: hidden; border-radius: 6px;
  aspect-ratio: 16 / 10;
  box-shadow: 0 2rem 4rem var(--ink-shadow);
  border: 1px solid rgba(232, 239, 255, 0.12);
}
.feature__picture img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.feature__words { display: grid; gap: var(--space-xs); max-width: 34rem; }
.feature__number {
  font-family: var(--title); font-size: var(--step-1); color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.feature__number::after { content: ""; width: 3em; height: 3px; border-radius: 2px; background: var(--gold); opacity: 0.6; }
.feature h2 { font-size: var(--step-3); }
.feature__words p:last-child { color: var(--chalk-dim); font-size: var(--step-1); line-height: 1.55; }

/* --- Crew ------------------------------------------------------------------------------- */

.crew {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(32rem, 75vw, 54rem);
  display: grid; align-items: end;
}
.crew__picture { position: absolute; inset: -10% 0; z-index: -2; will-change: transform; }
.crew__picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.crew::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 24, 0.82) 0%, rgba(7, 11, 24, 0.45) 38%, transparent 62%),
    linear-gradient(to bottom, var(--night) 0%, transparent 22%, transparent 45%, rgba(7, 11, 24, 0.92) 85%, var(--night) 100%);
}
.crew__words { padding: var(--space-l) var(--gutter); max-width: 48rem; display: grid; gap: var(--space-s); }
.crew h2 { font-size: var(--step-4); text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); }
.crew p { font-size: var(--step-1); color: var(--chalk-dim); }
/* On a phone the picture goes on top and the words under it, on the night. */
@media (max-width: 45rem) {
  .crew { display: block; min-height: 0; }
  .crew::before { display: none; }
  .crew__picture { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .crew__words { padding-top: var(--space-m); }
}

/* --- Gallery ---------------------------------------------------------------------------- */

.gallery { padding: var(--space-xl) 0 var(--space-l); }
.gallery__heading { font-size: var(--step-3); padding: 0 var(--gutter) var(--space-m); }
.gallery__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(88vw, 70rem);
  gap: var(--space-s); padding: 0 var(--gutter) var(--space-s);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--blueprint) transparent;
  cursor: grab;
}
.gallery__strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__item { margin: 0; scroll-snap-align: start; display: grid; gap: var(--space-xs); }
.gallery__item img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px;
  border: 1px solid rgba(232, 239, 255, 0.12); user-select: none; -webkit-user-drag: none;
  transition: transform 700ms var(--ease-out), filter 700ms;
  filter: saturate(0.85) brightness(0.85);
}
.gallery__item:hover img, .gallery__item.is-centre img { transform: scale(1.015); filter: none; }
.gallery__item figcaption { color: var(--chalk-dim); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; }

/* --- Coming soon -------------------------------------------------------------------------- */

.soon {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 90svh; display: grid; place-items: center; text-align: center;
}
.soon__picture { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.soon__picture img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(0.5) saturate(0.8); transform: scale(1.05); }
.soon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(7, 11, 24, 0.3) 0%, rgba(7, 11, 24, 0.85) 70%, var(--night) 100%),
    linear-gradient(to bottom, var(--night) 0%, transparent 18%);
}
.soon__inner { padding: var(--space-xl) var(--gutter); display: grid; gap: var(--space-m); justify-items: center; }
.soon__title { position: relative; font-size: var(--step-4); color: var(--gold); text-shadow: 0 6px 40px rgba(255, 180, 40, 0.25); }
.soon__line { position: absolute; left: 2%; right: 2%; bottom: -0.32em; width: 96%; height: auto; overflow: visible; }
.soon__line path {
  fill: none; stroke: var(--chalk); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 640; stroke-dashoffset: 640; transition: stroke-dashoffset 1.4s 500ms var(--ease-out);
}
.soon__title.is-in .soon__line path { stroke-dashoffset: 0; }
.soon__words { font-size: var(--step-1); color: var(--chalk-dim); max-width: 34rem; }

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

.footer {
  padding: var(--space-l) var(--gutter); text-align: center; display: grid; gap: var(--space-2xs);
  border-top: 1px solid rgba(232, 239, 255, 0.08); background: var(--night-2);
}
.footer p:first-child { font-family: var(--title); font-size: var(--step-1); }
.footer__small { color: var(--chalk-dim); font-size: var(--step--1); }

/* --- Less motion, if asked -------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal:not(.is-in), .title-card.reveal:not(.is-in) { opacity: 1; transform: none; transition: none; }
  .title-card { transform: rotate(-3deg); }
  .hero__picture img, .hero__badge .dot, .hero__down line { animation: none; }
  .title-card__chalk svg { animation: none; stroke-dashoffset: 0; }
  .soon__line path { transition: none; stroke-dashoffset: 0; }
  [data-parallax], [data-parallax-inner] img { transform: none !important; }
}
