/* Opening screen: editorial typography, original portrait, quiet motion.
   The masthead now lives in styles.css (fixed, shared by every section). */
.hero {
  --hero-gutter: clamp(28px, 4vw, 80px);
  --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
  height: 100svh;
  min-height: 620px;
  max-height: 1200px;
  isolation: isolate;
}

.hero-media {
  inset: 0 0 0 45%;
}

.hero-media::after {
  background: linear-gradient(90deg, var(--wine), rgba(42, 9, 14, 0.55) 8%, transparent 27%);
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero-copy {
  position: relative;
  inset: auto;
  display: flex;
  width: 53%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 84px 0 92px var(--hero-gutter);
}

.hero h1 {
  margin: 0 0 32px;
  font-size: clamp(80px, 12vw, 192px);
  font-weight: 400;
  line-height: 0.83;
  letter-spacing: -0.055em;
  text-transform: none;
}

.hero h1 span {
  display: block;
}

.hero-meta p {
  max-width: 440px;
  color: rgba(244, 236, 231, 0.84);
  font-size: clamp(13px, 1.3vw, 20px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
  text-wrap: pretty;
}

.view-work {
  position: absolute;
  bottom: 9%;
  left: var(--hero-gutter);
  display: inline-flex;
  min-height: 54px;
  gap: 24px;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.view-work-arrow {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  margin-left: 68px;
  place-items: center;
  border: 1px solid rgba(244, 236, 231, 0.7);
  border-radius: 50%;
  transition: background 240ms ease, color 240ms ease;
}

.view-work-arrow::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 68px;
  height: 1px;
  background: rgba(244, 236, 231, 0.7);
  content: "";
}

.view-work svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.1;
  transition: transform 240ms var(--hero-ease);
}

.view-work:hover .view-work-arrow,
.view-work:focus-visible .view-work-arrow {
  background: var(--ivory);
  color: var(--wine);
}

.hero :is(a, button):focus-visible {
  outline-color: var(--ivory);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img {
    animation: hero-portrait-in 1100ms var(--hero-ease) both;
  }
  .hero h1 span {
    animation: hero-copy-in 800ms var(--hero-ease) both;
  }
  .hero h1 span:last-child { animation-delay: 90ms;
  }
  .hero-meta p { animation: hero-copy-in 800ms 160ms var(--hero-ease) both;
  }
  .view-work { animation: hero-copy-in 700ms 240ms var(--hero-ease) both;
  }
  @keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes hero-portrait-in {
    from { transform: scale(1.035); }
    to { transform: scale(1); }
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hero h1 { font-size: 10.5vw;
  }
  .hero-meta p { max-width: 310px;
  }
}

@media (max-width: 900px) {
  .hero { --hero-gutter: 28px; min-height: 680px; max-height: none;
  }
  .hero-media { inset: 0;
  }
  .hero-media img { object-position: 50% 35%;
  }
  .hero-media::after {
    background: linear-gradient(0deg, rgba(42, 9, 14, 0.98), rgba(42, 9, 14, 0.7) 23%, transparent 59%),
      linear-gradient(180deg, rgba(42, 9, 14, 0.45), transparent 23%);
  }
  .hero-copy { width: 100%; justify-content: flex-end; padding: 130px var(--hero-gutter) 40px;
  }
  .hero h1 { font-size: clamp(72px, 13.7vw, 116px); margin-bottom: 22px;
  }
  .hero-meta p { max-width: 360px; font-size: 13px; line-height: 1.6;
  }
  .view-work { position: static; gap: 20px; margin-top: 26px; font-size: 14px;
  }
  .view-work-arrow { width: 46px; height: 46px; margin-left: 32px;
  }
  .view-work-arrow::before { width: 32px;
  }
}

@media (max-width: 600px) {
  .hero { --hero-gutter: 24px; min-height: 640px;
  }
  .hero-media img { object-position: 50% 30%;
  }
  .hero-copy { padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  .hero h1 { font-size: clamp(60px, 19vw, 104px); line-height: 0.87; margin-bottom: 19px;
  }
  .hero-meta p { max-width: 300px; font-size: 12px;
  }
  .view-work { min-height: 44px; margin-top: 22px;
  }
}

@media (max-width: 900px) and (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: 540px;
  }
  .hero-media { left: 35%;
  }
  .hero-copy { width: 64%;
  }
  .hero h1 { font-size: 76px;
  }
}
