/* SHOTBYADDICT — home.css (index.html only). Builds on base.css tokens. */

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding: calc(var(--header-h) + 2.5rem) 0 3.75rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

/* viewfinder HUD */
.hero__hud {
  position: absolute;
  inset: calc(var(--header-h) + 0.25rem) 0.75rem 0.75rem;
  z-index: 2;
  pointer-events: none;
  animation: hud-in 900ms linear 1100ms both;
}
.hero__corner { position: absolute; width: 1.25rem; height: 1.25rem; border: 2px solid var(--white); opacity: 0.9; }
.hero__corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero__corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero__corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero__corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hud--tl { top: 0.55rem; left: 0.9rem; }
.hud--tr { top: 0.55rem; right: 0.9rem; color: var(--muted); }
.hud--bl { bottom: 0.55rem; left: 0.9rem; color: var(--muted); }
.hud--br { bottom: 0.55rem; right: 0.9rem; color: var(--muted); }
.rec { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2, jump-none) infinite; }
/* site.js pauseOffscreen(): the idle loops stop once the hero has scrolled out of view */
.hero.is-offscreen .rec, .hero.is-offscreen .hero__glow, .hero.is-offscreen .face__eyes img { animation-play-state: paused; }

/* the face */
.hero__face {
  position: relative;
  align-self: center;
  width: min(54vw, 30svh, 15rem);
  margin-top: 0.5rem;
  flex: none;
}
.hero__glow {
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--red-glow), rgba(252, 1, 1, 0.08) 55%, transparent 72%);
  animation: glow-in 1600ms var(--ease-out) 500ms both, glow-pulse 5s ease-in-out 2100ms infinite alternate;
}
.face { animation: face-push 2200ms var(--ease-out) both; will-change: transform; }
.face img { width: 100%; height: auto; }
.face__eyes { transform-origin: 50% 90%; animation: eyes-open 760ms var(--ease-snap) 150ms both; }
.face__eyes img { transform-origin: 50% 90%; animation: eyes-blink 6.5s linear 3200ms infinite; }
.face__grin { transform-origin: 50% 30%; animation: grin-in 820ms var(--ease-out) 520ms both; }

/* copy */
.hero__copy { position: relative; display: grid; gap: 1rem; }
.hero__kicker { animation: rise-in 800ms var(--ease-out) 650ms both; }
.hero__title { font-size: clamp(3.25rem, 18.6vw, 7.5rem); line-height: 0.92; letter-spacing: 0; text-wrap: nowrap; }
.hero__line { display: block; overflow: hidden; padding-top: 0.06em; margin-top: -0.06em; }
.hero__line > span { display: block; animation: line-up 950ms var(--ease-out) both; will-change: transform; }
.hero__line:nth-child(1) > span { animation-delay: 700ms; }
.hero__line:nth-child(2) > span { animation-delay: 810ms; }
.hero__line:nth-child(3) > span { animation-delay: 940ms; }
.hero__line--sub { font-size: 0.52em; line-height: 1.05; color: var(--red); padding-top: 0.2em; }
.hero__line--sub i {
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 0.42em;
  letter-spacing: 0.12em;
  color: var(--white);
  vertical-align: 0.42em;
  margin-right: 0.35em;
}
.hero__lead { max-width: 30rem; font-size: var(--fs-base); line-height: 1.5; color: var(--text); animation: rise-in 900ms var(--ease-out) 1150ms both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; animation: rise-in 900ms var(--ease-out) 1280ms both; }
.hero__cta .btn { flex: 1 1 auto; }

@media (max-width: 420px) {
  .hero__cta .btn--lg { min-height: 3.5rem; padding-inline: 1rem; font-size: var(--fs-sm); }
}
@media (max-height: 700px) and (max-width: 899.98px) {
  .hero__face { width: min(40vw, 24svh); }
  .hero__lead { display: none; }
}

@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 3rem) 0 4.5rem; align-items: center; }
  .hero__hud { inset: calc(var(--header-h) + 0.5rem) 1.5rem 1.5rem; }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 5rem);
  }
  .hero__face { order: 2; justify-self: center; width: min(100%, 27rem, 58svh); margin: 0; }
  .hero__copy { gap: 1.5rem; }
  .hero__title { font-size: clamp(5rem, 10.1vw, 10.25rem); }
  .hero__lead { font-size: var(--fs-md); }
  .hero__cta .btn { flex: 0 0 auto; }
}

/* hero drifts away as you scroll (compositor-driven where supported) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__inner {
      animation: hero-exit linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 90vh;
    }
  }
}

@keyframes eyes-open {
  0% { transform: scaleY(0); opacity: 0; }
  34% { transform: scaleY(1.06); opacity: 1; }
  52% { transform: scaleY(0.08); opacity: 1; }
  74%, 100% { transform: scaleY(1); opacity: 1; }
}
@keyframes eyes-blink { 0%, 95.5%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(0.06); } }
@keyframes grin-in { from { opacity: 0; transform: scale(0.3, 0.7); } }
@keyframes face-push { from { transform: scale(1.22); } }
@keyframes glow-in { from { opacity: 0; transform: scale(0.6); } }
@keyframes glow-pulse { to { opacity: 0.55; transform: scale(1.12); } }
@keyframes line-up { from { transform: translate3d(0, 108%, 0); } }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 1.25rem, 0); } }
@keyframes hud-in { from { opacity: 0; } }
@keyframes hero-exit { to { opacity: 0; transform: translate3d(0, -7vh, 0) scale(0.95); } }

/* ================= REEL STRIP ================= */
.reel { position: relative; overflow: hidden; padding-block: 1.25rem 0; background: var(--black); }
.reel__strip {
  --marquee-gap: 0px;
  --frame-h: clamp(8.5rem, 24vw, 17.5rem);
  transform: rotate(-1.6deg) scale(1.04);
  margin-block: 0.5rem 1.75rem;
  background: #0d0d0d;
  border-block: 1px solid var(--line);
}
.reel__frame {
  position: relative;
  flex: none;
  height: calc(var(--frame-h) + 2.5rem);
  aspect-ratio: 16 / 10.3;
  margin: 0;
  padding: 1.25rem 0.3rem;
  background: #0d0d0d;
}
/* sprocket holes */
.reel__frame::before, .reel__frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 0.5rem;
  background: repeating-linear-gradient(90deg, transparent 0 0.4rem, rgba(255, 255, 255, 0.5) 0.4rem 1.05rem, transparent 1.05rem 1.45rem);
}
.reel__frame::before { top: 0.375rem; }
.reel__frame::after { bottom: 0.375rem; }
.reel__frame img { width: 100%; height: 100%; object-fit: cover; }
.reel__frame figcaption, .reel__frame small {
  position: absolute;
  left: 0.9rem; bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--white);
  opacity: 0.85;
}
.reel__frame--slate { display: grid; }
.reel__frame--slate span {
  display: grid;
  place-content: center start;
  padding-inline: 1.1rem;
  background: var(--ink-2);
  font-family: var(--font-display);
  font-size: calc(var(--frame-h) * 0.3);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.reel__frame--red span { background: var(--red); color: var(--black); }
.reel__frame--red small { color: var(--black); opacity: 1; }
.reel__frame--outline span { background: var(--black); color: transparent; -webkit-text-stroke: 1.5px var(--white); }

/* ================= FEATURED WORK ================= */
.featured { display: grid; gap: 0.875rem; }
.featured__item { aspect-ratio: 4 / 3; }
.featured__item .media-tile__play { top: 42%; }
.featured__item--ig { aspect-ratio: 16 / 7; }
.featured__item--ig .media-tile__title { color: var(--white); }
.featured__more { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.75rem; }
@media (min-width: 760px) {
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .featured__item { aspect-ratio: 16 / 9; }
  .featured__item .media-tile__play { top: 50%; }
  .featured__item--lead { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .featured__item--lead .media-tile__title { font-size: clamp(2.25rem, 4.5vw, 4rem); }
  .featured__item--lead .media-tile__play { width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; }
  .featured__item--ig { aspect-ratio: 16 / 9; }
  /* odd one out at the end spans the row */
  .featured > :last-child:nth-child(even):not(.featured__item--lead) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}

/* ================= PACKAGES ================= */
.packages {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding: 0.5rem var(--gutter) 0.75rem;
  scrollbar-width: none;
}
.packages::-webkit-scrollbar { display: none; }
.packages > .tier { flex: 0 0 min(80%, 19.5rem); scroll-snap-align: start; }
.packages__hint { margin-top: 0.5rem; text-align: right; color: var(--muted); }
@media (min-width: 700px) {
  .packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; overflow: visible; margin-inline: 0; padding: 0; }
  .packages__hint { display: none; }
}
@media (min-width: 1100px) {
  .packages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}

.quote-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--ink);
}
.quote-strip__text { flex: 1 1 18rem; max-width: 40rem; color: var(--muted); }
.quote-strip .btn { flex: 0 0 auto; }
@media (max-width: 520px) { .quote-strip .btn { flex: 1 1 100%; } }

/* ================= HOW IT WORKS ================= */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.4rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 3rem; height: 2px; background: var(--red); }
.step__num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}
.step__title { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); align-self: end; }
.step__text { color: var(--muted); font-size: var(--fs-base); line-height: 1.55; max-width: 26rem; }
.how__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .step { grid-template-columns: 1fr; row-gap: 0.75rem; padding-block: 1.75rem 0; align-content: start; }
  .step__num { grid-row: auto; font-size: 5.5rem; margin-bottom: 0.5rem; }
}

/* ================= INSTAGRAM ================= */
.ig { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.ig__marquee { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.ig__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; justify-items: start; }
.ig__inner .btn { max-width: 100%; }
.ig__avatar { width: 5rem; height: 5rem; border-radius: 50%; border: 2px solid var(--red); }
.ig__copy { display: grid; gap: 0.6rem; max-width: 34rem; }
.ig__title { font-size: var(--fs-xl); }
@media (min-width: 900px) {
  .ig__inner { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2rem; }
  .ig__avatar { width: 6.5rem; height: 6.5rem; }
}

/* ================= OUTRO ================= */
.outro {
  position: relative;
  overflow: hidden;
  padding-top: var(--section-y);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 55% at 50% 100%, rgba(252, 1, 1, 0.22), transparent 70%), var(--black);
  text-align: center;
}
.outro__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.25rem; }
.outro__title { font-size: clamp(4rem, 19vw, 15rem); line-height: 0.88; }
.outro__btn { margin-top: 0.75rem; }
.outro__grin {
  width: min(86vw, 40rem);
  margin: clamp(2.5rem, 7vw, 4.5rem) auto 0;
  margin-bottom: calc(min(86vw, 40rem) * -0.2);
}
