/* Opening screen: editorial typography, original portrait, quiet motion. */
.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%;
}

.site-header {
  inset: 0 var(--hero-gutter) auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 86px;
  align-items: center;
  gap: 24px;
  padding: 0;
  border-bottom: 1px solid rgba(244, 236, 231, 0.32);
}

.site-monogram {
  width: fit-content;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 1;
  text-decoration: none;
}

.primary-navigation ul {
  gap: clamp(22px, 2.8vw, 48px);
}

.primary-navigation a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-transform: none;
}

.primary-navigation a::after {
  bottom: 8px;
  transition: transform 240ms var(--hero-ease);
}

.language-switcher {
  justify-self: end;
  gap: 5px;
  padding: 0;
}

.language-switcher button {
  min-width: 30px;
  min-height: 44px;
  padding: 0 3px;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  opacity: 1;
}

.language-switcher button[aria-pressed="true"] {
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.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) {
  .site-header { gap: 18px; }
  .primary-navigation ul { gap: 18px; }
  .primary-navigation a { font-size: 18px; }
  .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%);
  }
  .site-header { min-height: 78px; grid-template-columns: 1fr auto auto; gap: 24px; }
  .site-monogram { font-size: 31px; }
  .language-switcher { grid-column: 2; grid-row: 1; }
  .menu-toggle {
    z-index: 1;
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ivory);
    cursor: pointer;
  }
  .menu-icon { display: flex; width: 24px; flex-direction: column; gap: 6px; }
  .menu-icon i { display: block; width: 24px; height: 1px; background: currentColor; transition: transform 240ms ease; }
  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-navigation,
  .primary-navigation[data-open="true"] {
    position: absolute;
    inset: 88px 0 auto;
    display: block;
    padding: 18px 24px;
    border: 1px solid var(--line-light);
    background: var(--wine);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 280ms var(--hero-ease), visibility 220ms;
  }
  .primary-navigation[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-navigation ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .primary-navigation li { border-bottom: 1px solid var(--line-light); }
  .primary-navigation li:nth-last-child(-n+2) { border-bottom: 0; }
  .primary-navigation a { display: block; padding: 14px 0; font-size: 25px; line-height: 1.2; }
  .primary-navigation a::after { display: none; }
  .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; }
  .site-header { min-height: 76px; gap: 16px; }
  .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; }
  .language-switcher button { min-width: 28px; font-size: 10px; }
}

@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; }
}
