/* HERO — "2,000 CVs". Sticky full-viewport canvas over a tall scroll track. */
.hero { position: relative; background: var(--night, #0f0d0b); color: var(--paper, #f3eee2); }
.hero-track { position: relative; height: calc(var(--hero-screens, 11) * 100vh); height: calc(var(--hero-screens, 11) * 100svh); }
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%; overflow: hidden;
  background: var(--night, #0f0d0b);
  --g: max(16px, var(--gutter, 24px));
}
.hero-stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(15, 13, 11, .5), rgba(15, 13, 11, 0) 24%, rgba(15, 13, 11, 0) 68%, rgba(15, 13, 11, .62));
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--ease-out, ease); }
.hero.is-ready .hero-canvas { opacity: 1; }
.hero-fade { position: absolute; inset: 0; background: var(--night, #0f0d0b); opacity: 0; pointer-events: none; transition: opacity .26s linear; z-index: 2; }
.hero-fade.is-on { opacity: 1; }

.hero-top, .hero-bottom {
  position: absolute; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 calc(var(--g) + env(safe-area-inset-right, 0px)) 0 calc(var(--g) + env(safe-area-inset-left, 0px));
  pointer-events: none;
}
.hero-top { top: calc(var(--g) + env(safe-area-inset-top, 0px)); }
.hero-bottom { bottom: calc(var(--g) + env(safe-area-inset-bottom, 0px)); align-items: flex-end; }
.hero-top > *, .hero-bottom > * { pointer-events: auto; }

/* the logo: the favicon's pixel CD at 1:1, then "sameep.ai" in Jersey 10 sized so one font pixel is exactly
   2 CSS px (75/1400 em per font pixel, x1.32 size-adjust), which keeps every edge on the pixel grid at 1x and 2x */
.hero-mark {
  margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; height: 32px;
  font: 400 28.2828px/32px var(--f-head); letter-spacing: 0; color: var(--paper, #f3eee2);
  -webkit-font-smoothing: none; text-shadow: 0 2px 0 rgba(15, 13, 11, .6);
}
.hero-mark__cd { display: block; width: 32px; height: 32px; border-radius: 50%; filter: drop-shadow(0 2px 0 rgba(15, 13, 11, .6)); }
.hero-mark__word { display: block; height: 32px; }
.hero-mark__tld { color: var(--ember, #ff6c4c); }

.hero-pill {
  appearance: none; border: 1px solid rgba(243, 238, 226, .22); background: rgba(15, 13, 11, .42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--paper, #f3eee2); font: 500 12px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase;
  min-height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; white-space: nowrap; transition: border-color .25s, background .25s, color .25s;
}
.hero-pill:hover { border-color: rgba(255, 169, 70, .7); background: rgba(40, 26, 16, .55); }
.hero-pill:focus-visible { outline: 2px solid var(--flame, #ffa946); outline-offset: 3px; }

.hero-sound__bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.hero-sound__bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.hero-sound.is-on .hero-sound__bars i { animation: hero-eq 1.1s ease-in-out infinite; }
.hero-sound.is-on .hero-sound__bars i:nth-child(2) { animation-delay: -.4s; }
.hero-sound.is-on .hero-sound__bars i:nth-child(3) { animation-delay: -.75s; }
.hero-sound.is-on .hero-sound__bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes hero-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }

.hero-counter {
  position: absolute; z-index: 3; left: calc(var(--g) + env(safe-area-inset-left, 0px));
  top: calc(var(--g) + 56px + env(safe-area-inset-top, 0px));
  pointer-events: none; transition: opacity .2s linear;
}
.hero-counter p { margin: 0; }
.hero-counter__num {
  font-family: var(--f-dot); font-weight: 800; font-size: clamp(48px, min(12.5vw, 15vh), 188px); font-size: clamp(48px, min(12.5vw, 15svh), 188px); line-height: .86; letter-spacing: -.01em;
  color: var(--paper, #f3eee2); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(255, 169, 70, .22);
}
.hero-counter__label {
  margin-top: 14px !important; font: 500 12px/1 var(--f-ui); letter-spacing: .32em; text-transform: uppercase; color: rgba(243, 238, 226, .62);
}

.hero-cap { max-width: min(640px, 70vw); }
@media (max-height: 640px) {
  .hero-counter { top: calc(var(--g) + 44px + env(safe-area-inset-top, 0px)); }
  .hero-counter__label { margin-top: 8px !important; }
  .hero-cap__txt { font-size: clamp(20px, 2.6vw, 32px); }
  .hero-cap__idx { margin-bottom: 6px !important; }
  .hero-hint { display: none; }
}
.hero-cap p { margin: 0; }
.hero-cap__idx { font: 500 12px/1 var(--f-ui); letter-spacing: .18em; color: rgba(243, 238, 226, .5); margin-bottom: 10px !important; }
.hero-cap__n { color: var(--flame, #ffa946); }
.hero-cap__txt {
  font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 3.3vw, 48px); line-height: 1.02; letter-spacing: 0;
  color: var(--paper, #f3eee2); text-wrap: balance;
}
/* font play inside captions */
.hero-cap__txt b { font-family: var(--f-dot); font-weight: 800; font-size: 1.14em; letter-spacing: 0; color: var(--flame, #ffa946); text-shadow: 0 0 20px rgba(255, 169, 70, .3); }
.hero-cap__txt i { font-family: var(--f-hand); font-style: normal; font-weight: 400; font-size: 1.2em; display: inline-block; transform: rotate(-3deg); }
.hero-cap__txt s { text-decoration: none; display: inline-block; font-weight: 800; transform: scale(1.08, .78); letter-spacing: -.06em; }
.hero-cap__txt u { text-decoration: none; font-family: var(--f-ui); font-weight: 500; font-size: .86em; letter-spacing: .02em; background: repeating-linear-gradient(90deg, currentColor 0 .14em, transparent .14em .2em) 0 100% / 100% .08em no-repeat; padding-bottom: .06em; }
.hero-cap__txt em { font-style: normal; font-weight: 800; color: var(--ember, #ff6c4c); text-shadow: 0 0 18px rgba(255, 108, 76, .6), 0 -2px 10px rgba(255, 169, 70, .5); }
.hero-cap.is-in .hero-cap__txt, .hero-cap.is-in .hero-cap__idx { animation: hero-cap-in .7s var(--ease-out, ease) both; }
.hero-cap.is-in .hero-cap__txt { animation-delay: .05s; }
@keyframes hero-cap-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.hero-hint {
  position: absolute; z-index: 3; left: 50%; bottom: calc(var(--g) + 70px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
  font: 500 12px/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 238, 226, .55);
  transition: opacity .5s;
}
.hero-hint i { width: 1px; height: 34px; background: linear-gradient(rgba(243, 238, 226, .6), transparent); transform-origin: top; animation: hero-hint 1.8s var(--ease-io, ease-in-out) infinite; }
@keyframes hero-hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero.is-scrolled .hero-hint { opacity: 0; }
/* the entry gate and the 'or scroll' pill already say how to move; the floating hint sat on the caption counter */
.hero-hint { display: none; }

.hero-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(243, 238, 226, .06); }
.hero-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--flame, #ffa946), var(--ember, #ff6c4c)); transform-origin: left; transform: scaleX(0); }

.hero.is-end .hero-cap, .hero.is-end .hero-top, .hero.is-end .hero-skip { opacity: 0; transition: opacity .6s; }

@media (max-width: 767px) {
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-cap { max-width: 100%; }
  .hero-cap__txt { font-size: clamp(22px, 7vw, 30px); }
  .hero-counter { top: calc(var(--g) + 52px + env(safe-area-inset-top, 0px)); }
  .hero-hint { display: none; }
  .hero-pill { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cap.is-in .hero-cap__txt, .hero-cap.is-in .hero-cap__idx { animation: none; }
  .hero-hint i, .hero-sound.is-on .hero-sound__bars i { animation: none; }
}
.hero.is-lost .hero-canvas { opacity: 0; }
.hero.is-lost .hero-stage { background: radial-gradient(ellipse at 50% 60%, #2a1e14, var(--night, #0f0d0b) 70%); }
/* the caption sits on the paper pile: a soft dark floor under the bottom band keeps it readable */
.hero-bottom::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: calc(-1 * (var(--g) + env(safe-area-inset-bottom, 0px))); height: calc(100% + var(--g) * 3); background: linear-gradient(transparent, rgba(15, 13, 11, .78)); pointer-events: none; }
.hero-cap__txt { text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }

/* the caption, centred along the bottom, one control row up; the controls (Play left, Skip right) sit beneath it */
@media (min-width: 768px) {
  .hero-cap { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); width: min(760px, calc(100% - 2 * var(--g))); max-width: none; text-align: center; }
  .hero-skip { margin-left: auto; }
  .hero-hint { bottom: calc(var(--g) + 190px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) {
  .hero-bottom { align-items: center; }
  .hero-cap { text-align: center; }
}
