/* SHOTBYADDICT — home.css (index.html only). Builds on base.css tokens. Hero, short work, plain package rows, three steps, one closing call. */

/* ================= HERO ================= */
/* Only the wordmark lock-up and two buttons, centred in the first screen under the header on plain black. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-h) 0 clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__inner { display: grid; justify-items: center; gap: clamp(1.75rem, 4vw, 2.75rem); width: 100%; }
/* never wider than its native 860px (stays crisp); intrinsic width/height keep the box reserved (no CLS) */
.hero__mark { display: block; width: min(100%, 860px); height: auto; }
.hero__cta { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0.75rem; width: 100%; }
.hero__cta .btn { flex: 0 1 15rem; min-width: 0; }

/* entrance: a plain fade for the buttons, waiting for the intro curtain (home.js adds .is-live); fails open without JS.
   The wordmark is never hidden (it is the LCP image and sits under the curtain). */
.hero-r { transition: opacity 700ms var(--ease-out); transition-delay: var(--hd, 0ms); }
.js .hero:not(.is-live) .hero-r { opacity: 0; }
.hero__cta { --hd: 120ms; }
.js .hero:not(.is-live) .hero-r { animation: hero-failsafe 0s linear 6s forwards; }
@keyframes hero-failsafe { to { opacity: 1; } }

/* ================= SHORT WORK ================= */
.section-head--center { justify-items: center; text-align: center; }
.featured { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.featured__item { aspect-ratio: 16 / 9; }
.featured__item--ig .media-tile__title { color: var(--white); }
/* only whole rows: a leftover tile (or gap) at the end of the grid is hidden. 1 or 2 stills always show */
@media (min-width: 760px) and (max-width: 1099.98px) {
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .featured > :nth-child(2n+3):last-child { display: none; }
}
@media (min-width: 1100px) {
  .featured { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .featured > :nth-child(3n+4):last-child,
  .featured > :nth-child(3n+5):last-child,
  .featured > :nth-child(3n+4):nth-last-child(2) { display: none; }
}

/* ================= PACKAGES (plain rows live in base.css) ================= */
.rows-note { max-width: 40rem; margin: var(--row-gap) auto 0; color: var(--muted); }

/* ================= HOW IT WORKS: three short lines ================= */
ol.steps { max-width: 40rem; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; padding-left: 2.25rem; counter-increment: step; line-height: 1.55; color: var(--white); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--c-soft-red); }
.steps__more { max-width: 40rem; margin: 1.5rem auto 0; color: var(--muted); }

/* ================= CLOSING CALL ================= */
.outro { padding-block: var(--section-y); text-align: center; }
.outro__inner { display: grid; justify-items: center; gap: 1.5rem; }
.outro__title { font-size: var(--fs-xl); max-width: 22ch; }

/* phones: a short work section (three stills) */
@media (max-width: 759.98px) { .featured > :nth-child(n+4) { display: none; } }
