#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--rail-x) 64px;
  position: relative;
  overflow: hidden;
  /* Offset the section so video area starts below the fixed nav */
  padding-top: 88px;
  background: hsl(15, 12%, 8%);
}

/* Video is inset — not edge-to-edge — sits below nav with a frame */
.hero-video-frame {
  position: absolute;
  top: 88px;   /* nav height clearance */
  left: var(--rail-x);
  right: var(--rail-x);
  bottom: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  /* Darken the video itself */
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: hsla(15, 20%, 8%, 0.45);
  z-index: 1;
  pointer-events: none;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 40%,
      rgba(0,0,0,0.35) 75%,
      rgba(0,0,0,0.7) 100%),
    radial-gradient(ellipse 60% 50% at 75% 35%, rgba(140,58,43,0.10) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 1180px);
  max-width: 1180px;
  padding-left: clamp(18px, 2vw, 28px);
  padding-right: clamp(40px, 14vw, 220px);
  box-sizing: border-box;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.3s forwards;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(68px, 8.6vw, 132px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.04em;
  /* Remove overflow:hidden from parent so top ascenders aren't clipped.
     Each .hl gets its own overflow clip for the slide-up animation. */
  overflow: visible;
  padding-top: 0.08em; /* Extra space so top of 'F' is never cropped */
}

.hero-h1 .hl {
  display: block;
  overflow: hidden;  /* clip per-line for the slide-up animation */
  opacity: 0;
  transform: translateY(105%);
}

.hero-h1 .hl:nth-child(1) { animation: slideUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s forwards; }
.hero-h1 .hl:nth-child(2) { animation: slideUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.45s forwards; }

/* tension line — sits just below the headline */
.hero-tension {
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 20px);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
  margin-top: 20px;
  margin-bottom: 0;
  max-width: 520px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  opacity: 0;
  animation: fadeInUp 0.65s ease 0.75s forwards;
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  max-width: 440px;
  line-height: 1.55;
  margin-top: 16px;
  margin-bottom: 44px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeInUp 0.65s ease 0.9s forwards;
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.65s ease 1.05s forwards;
}

.hero-actions .btn-ghost {
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.hero-actions .btn-ghost:hover {
  opacity: 0.7;
}

.hero-scroll {
  position: absolute;
  bottom: 44px; right: calc(var(--rail-x) + 16px);
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s300);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeInUp 0.7s ease 1.4s forwards;
}

.hero-scarcity {
  position: absolute;
  top: 112px; right: calc(var(--rail-x) + 24px);
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--s400);
  text-align: right;
  border-left: 2px solid var(--red);
  padding-left: 12px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 1.2s forwards;
}

.hero-scarcity strong { color: var(--white); display: block; font-size: 13px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(105%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
  from { width: 0; }
  to   { width: 120px; }
}
