/* ============================================================
   HERO — full-height opening section
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08) brightness(0.78);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 65%, transparent 15%, rgba(0,0,0,0.6) 100%),
    linear-gradient(to top, rgba(0,0,0,0.8), transparent 40%, rgba(0,0,0,0.55));
  z-index: 1;
}

.hero .inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* bottom padding must clear the fixed sound toggle (44px tall, 22px from bottom) */
  padding: 96px clamp(20px, 4vw, 44px) clamp(88px, 8vw, 110px);
}

/* Pre row (top info bar) */
.hero .pre {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.hero .pre .left {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero .pre .left::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--umber);
  border-radius: 50%;
  animation: blink 1.6s ease infinite;
}
.hero .pre .right {
  text-align: right;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--bone-soft);
  line-height: 2.2;
}
.hero .pre .right em { color: var(--umber); font-style: normal; }

/* Title + sub */
.hero .lower {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1400px;
}

.hero h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 0;
  font-weight: 250;
  font-size: clamp(46px, 9.6vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--bone);
}
.hero h1 .l { display: block; overflow: hidden; padding-bottom: 0.05em; }
.hero h1 .l .inner-line {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.7s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.hero h1.in .l .inner-line { transform: translateY(0); }
.hero h1.in .l:nth-child(2) .inner-line { transition-delay: 0.18s; }
.hero h1.in .l:nth-child(3) .inner-line { transition-delay: 0.34s; }
.hero h1 em {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 300;
  color: var(--umber-glow);
  font-variation-settings: "opsz" 72;
}

.hero .sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.4s ease 0.9s,
    transform 1.4s cubic-bezier(0.16,1,0.3,1) 0.9s;
}
.hero .sub.in { opacity: 1; transform: translateY(0); }

.hero .sub .desc {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 19px);
  letter-spacing: 0.005em;
  color: var(--bone-soft);
  max-width: 380px;
  line-height: 1.5;
}

/* Scroll hint */
.hero .scroll-hint {
  position: absolute;
  bottom: 28px;
  right: clamp(20px, 4vw, 44px);
  z-index: 3;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bone-faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero .scroll-hint .ln {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--bone-ghost);
  position: relative;
  overflow: hidden;
}
.hero .scroll-hint .ln::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--umber);
  transform: translateX(-100%);
  animation: pull 2.6s cubic-bezier(0.65,0,0.35,1) infinite;
}
@keyframes pull {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Tablet/mobile — stack sub before the flex items start squishing */
@media (max-width: 860px) {
  .hero .sub {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
@media (max-width: 700px) {
  .hero .scroll-hint { display: none; }
  .hero .pre .right { font-size: 8px; }
  .hero .inner { padding-top: 80px; }
}
@media (max-width: 480px) {
  .hero .pre { flex-direction: column; gap: 12px; }
  .hero .pre .right { text-align: left; }
  .hero .lower { gap: 28px; }
}
