/* Homepage only. Shared section and case typography is still in style.css. */
:root {
  --hero-ink: #121211;
  --hero-charcoal: #242320;
  --hero-bone: #e9e6dc;
  --hero-muted: #b9b5ac;
  --hero-rule: #817e76;
  --hero-edge: clamp(36px, 4.17vw, 80px);
}

#home-nav {
  display: block;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;
  color: var(--hero-bone);
}

.home-nav-inner {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.65vw, 52px);
  height: clamp(66px, 6.55vw, 126px);
  padding-inline: var(--hero-edge);
  border-bottom: 1px solid transparent;
  transition: height .26s ease, background-color .26s ease, border-color .26s ease;
  pointer-events: auto;
}

#home-nav.is-past-hero .home-nav-inner {
  height: var(--header);
  background: #242320fa;
  border-color: #ffffff23;
}

#home-nav.is-over-hero-content .home-nav-inner {
  background: #242320ed;
  border-color: #ffffff23;
}

.home-identity { display: inline-flex; align-items: center; flex-shrink: 0; }
.home-identity img { width: clamp(54px, 4.17vw, 80px); height: auto; }
.identity-copy {
  position: relative;
  display: grid;
  gap: 6px;
  margin-left: clamp(48px, 6.2vw, 119px);
  line-height: 1.1;
  white-space: nowrap;
}
.identity-copy::before {
  content: "";
  position: absolute;
  left: calc(clamp(48px, 6.2vw, 119px) * -.52);
  top: 50%;
  width: 1px;
  height: clamp(25px, 2.4vw, 46px);
  background: var(--hero-rule);
  transform: translateY(-50%) skewX(-29deg);
}
.identity-copy strong { font-size: clamp(17px, 1.34vw, 26px); }
.identity-copy > span { font-size: clamp(8px, .59vw, 11px); letter-spacing: .38em; }
.home-nav-inner::after { content: ""; flex: 1; height: 1px; background: #b9b5ac48; }
#home-links {
  order: 1;
  flex-shrink: 0;
  gap: clamp(18px, 2.75vw, 53px);
  font-size: clamp(11px, .72vw, 14px);
  font-weight: 700;
  letter-spacing: .23em;
}
#home-links .text-button { letter-spacing: inherit; padding-block: 10px; text-decoration: none; }
.home-menu { display: none; }
#home-nav.is-past-hero .home-identity img { width: 43px; }

.hero {
  --hero-height: max(520px, 100vh);
  --hero-height: max(520px, 100svh);
  --frame-height: clamp(58px, min(6.25vw, calc(var(--hero-height) * .1111)), 142px);
  --strip-edge: clamp(28px, 3vw, 62px);
  --reel-bottom: clamp(19px, 3.2vh, 42px);
  position: relative;
  isolation: isolate;
  height: var(--hero-height);
  background: var(--hero-ink);
  color: var(--hero-bone);
}

.hero-scene, .hero-scene::before, .hero-scene::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-scene { z-index: -1; overflow: hidden; }
.hero-scene::before {
  content: "";
  background: url("assets/hero/background.jpg") 60% center / cover no-repeat;
  animation: scene-settle 1.18s cubic-bezier(.19,.68,.26,1) both;
}
.hero-scene::after {
  content: "";
  background:
    linear-gradient(0deg, #121211 0%, #121211ba 13%, #12121116 40%, transparent 61%),
    linear-gradient(90deg, #12121159, #12121114 48%, transparent 73%),
    linear-gradient(180deg, #12121169, transparent 22%);
}
@keyframes scene-settle { from { transform: scale(1.03); } to { transform: scale(1); } }

.hero-content { padding-inline: var(--hero-edge); height: 100%; }
.hero-title {
  margin: 0;
  padding-top: max(82px, calc(var(--hero-height) * .2685));
  width: max-content;
  max-width: 100%;
  font: 900 clamp(2.8rem, 8vw, 8rem)/.93 Impact, "Arial Narrow", Arial, sans-serif;
}
.hero-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-title-art { display: flex; flex-direction: column; gap: min(1.05vw, calc(var(--hero-height) * .0185)); }
.title-line {
  display: block;
  width: var(--line-width);
  height: var(--line-height);
  background:
    url("assets/hero/grain.svg") 0 0 / 136px 136px repeat,
    linear-gradient(137deg, #d8cbb9eb 0%, #f0e4d4f7 30%, #ddcfbcdf 49%, #f0e4d5fa 72%, #e2d7c8ee 100%),
    url("assets/hero/background.jpg") 37% 57% / 125vw auto no-repeat;
  -webkit-mask: var(--shape) center / 100% 100% no-repeat;
  mask: var(--shape) center / 100% 100% no-repeat;
  animation: title-assemble .92s cubic-bezier(.18,.7,.25,1) both;
}
.title-first {
  --line-width: min(50vw, calc(var(--hero-height) * .98));
  --line-height: min(11.2vw, calc(var(--hero-height) * .199));
  --shape: url("assets/hero/title-first.svg");
}
.title-final {
  --line-width: min(60.42vw, calc(var(--hero-height) * 1.18));
  --line-height: min(15.625vw, calc(var(--hero-height) * .2778));
  --shape: url("assets/hero/title-final.svg");
  animation-delay: .12s;
}
.title-bring, .title-it-all { display: none; }
@keyframes title-assemble {
  from { opacity: .15; transform: translate3d(-.12em, .16em, 0); clip-path: inset(16% 0 25% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0); }
}

.hero-role {
  position: absolute;
  left: 81.3%;
  top: 62.35%;
  font-size: clamp(10px, .85vw, 17px);
  line-height: 1.62;
  letter-spacing: .42em;
  text-shadow: 0 1px 8px #121211;
}
.hero-role::before {
  content: "";
  display: block;
  width: 2.5em;
  height: 2px;
  margin-bottom: 1.25em;
  background: var(--hero-bone);
}
.hero-role span { display: block; white-space: nowrap; }

.reel-next {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  color: var(--hero-bone);
  line-height: 1;
}

.hero-reel {
  position: absolute;
  bottom: var(--reel-bottom);
  inset-inline: var(--strip-edge);
}
.reel-row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(42px, 3.4vw, 65px); gap: clamp(10px, 1.65vw, 32px); }
.hero-reel .strip {
  display: flex;
  gap: clamp(10px, 1vw, 19px);
  overflow-x: auto;
  overflow-y: hidden;
  height: var(--frame-height);
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  cursor: grab;
}
.hero-reel .strip::-webkit-scrollbar { display: none; }
.hero-reel .strip.is-dragging { cursor: grabbing; }
.reel-frame {
  display: block;
  flex: 0 0 calc(var(--frame-height) * var(--frame-ratio));
  min-width: 17%;
  height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
}
.reel-frame:nth-child(4n + 1) { --frame-ratio: 3; }
.reel-frame:nth-child(4n + 2) { --frame-ratio: 2.85; }
.reel-frame:nth-child(4n + 3) { --frame-ratio: 2.75; }
.reel-frame:nth-child(4n) { --frame-ratio: 2.55; }
.reel-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; pointer-events: none; }
@media (hover: hover) {
  .strip:not(.is-dragging) .reel-frame:hover img { transform: scale(1.045); }
}
.reel-frame:focus-visible { outline-offset: -3px; }
.reel-next { align-self: center; font-size: clamp(23px, 2vw, 38px); padding: 0; border: 0; }
.reel-meta { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); min-height: 28px; margin-top: 3px; }
.reel-progress {
  flex: 0 1 clamp(82px, 11vw, 220px);
  height: 2px;
  background: repeating-linear-gradient(90deg, #817e7655 0 24%, transparent 24% 25%);
}
.reel-progress span { display: block; width: 25%; height: 100%; background: var(--hero-bone); }
.hero-credit, .reel-meta button { color: var(--hero-muted); font-size: clamp(10px, .66vw, 13px); }
.hero-credit { margin-left: auto; }
.reel-meta button { min-height: 30px; white-space: nowrap; }
.reel-meta button[aria-disabled="true"] { cursor: default; }
@media (min-width: 901px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .hero-credit { display: none; }
  .reel-meta button { margin-left: auto; }
}


@media (min-width: 721px) and (max-aspect-ratio: 6/5) {
  .hero-title { padding-top: 28vh; }
  .title-first { --line-width: 68vw; --line-height: 15vw; }
  .title-final { --line-width: 82vw; --line-height: 21vw; }
  .hero-role { top: auto; left: var(--hero-edge); bottom: calc(var(--frame-height) + 21vh); }
  .hero-scene::before { background-position: 73% center; }
}

@media (max-width: 950px) {
  .home-nav-inner { gap: 20px; }
  .identity-copy { margin-left: 41px; }
  .identity-copy::before { left: -22px; }
  #home-links { gap: 18px; letter-spacing: .14em; }
}

@media (max-width: 720px) {
  :root { --hero-edge: max(18px, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .home-nav-inner {
    height: calc(66px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    gap: 14px;
  }
  #home-nav.is-past-hero .home-nav-inner { height: calc(var(--header) + env(safe-area-inset-top)); }
  .home-nav-inner::after { display: none; }
  .home-identity img, #home-nav.is-past-hero .home-identity img { width: 44px; }
  .identity-copy { margin-left: 32px; gap: 5px; }
  .identity-copy::before { left: -17px; height: 24px; }
  .identity-copy strong { font-size: clamp(15px, 4vw, 19px); }
  .identity-copy > span { font-size: clamp(7px, 1.85vw, 9px); letter-spacing: .2em; }
  .home-menu {
    display: block;
    margin-left: auto;
    padding: 0 1px 0 8px;
    min-width: 42px;
    min-height: 44px;
    border: 0;
    font-size: .78rem;
    letter-spacing: .05em;
  }
  #home-links {
    position: absolute;
    top: calc(66px + env(safe-area-inset-top));
    right: var(--hero-edge);
    left: var(--hero-edge);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 9px 12px;
    background: #242320fc;
    border: 1px solid #ffffff26;
  }
  #home-nav.is-past-hero #home-links { top: calc(var(--header) + env(safe-area-inset-top)); }
  #home-links a, #home-links button { padding: 12px 9px; text-align: left; }
  #home-nav.is-menu-open #home-links { display: grid; }

  .hero {
    --frame-height: clamp(65px, 18vw, 95px);
    --strip-edge: var(--hero-edge);
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: max(13px, env(safe-area-inset-bottom));
  }
  .hero-scene::before { background-position: 77% center; }
  .hero-scene::after {
    background:
      linear-gradient(0deg, #121211 0%, #121211b8 18%, transparent 49%),
      linear-gradient(180deg, #12121173, #12121130 30%, transparent 68%),
      linear-gradient(90deg, #12121144, transparent 75%);
  }
  .hero-content { height: auto; position: relative; }
  .hero-title { padding-top: max(104px, calc(16.5svh + env(safe-area-inset-top))); }
  .hero-title-art { gap: clamp(7px, 1.9vw, 15px); }
  .title-first { display: none; }
  .title-bring, .title-it-all { display: block; }
  .title-bring {
    --line-width: min(49vw, 250px);
    --line-height: min(20vw, 102px);
    --shape: url("assets/hero/title-bring.svg");
  }
  .title-it-all {
    --line-width: min(46vw, 235px);
    --line-height: min(20vw, 102px);
    --shape: url("assets/hero/title-it-all.svg");
    animation-delay: .1s;
  }
  .title-final {
    --line-width: min(87vw, 440px);
    --line-height: min(24.6vw, 125px);
    animation-delay: .2s;
  }
  .hero-role {
    position: static;
    margin: 30px 0 36px;
    font-size: 10px;
    letter-spacing: .29em;
    line-height: 1.65;
  }
  .hero-role::before { margin-bottom: 9px; }
  .hero-reel { position: relative; inset: auto; margin: 38px var(--strip-edge) 0; }
  .reel-row { gap: 8px; grid-template-columns: minmax(0, 1fr) 32px; }
  .reel-next { min-width: 32px; }
  .reel-meta { gap: 7px; min-height: 30px; }
  .reel-progress { flex-basis: min(20vw, 84px); }
  .hero-credit { font-size: .625rem; }
}

@media (prefers-reduced-motion: reduce) {
  .title-line, .hero-scene::before { animation: none; }
}
