.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  margin-top: calc(-1 * var(--header-height));
  padding: 0;
  background: #fdfaf9;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(119px, 13vw, 206px);
  height: clamp(119px, 13vw, 206px);
  background: #373643;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  z-index: 3;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(440px, 540px);
  align-items: stretch;
  gap: 74px;
  min-height: 100vh;
}

.hero-copy {
  max-width: 900px;
  padding: calc(var(--header-height) + 70px) 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: var(--fw-display);
}

.hero-title > span {
  white-space: nowrap;
}

.hero-title .accent {
  color: var(--primary);
}

.hero-description {
  margin-top: 30px;
  max-width: 1100px;
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.03em;
}

.hero-button {
  margin-top: 34px;
  align-self: flex-start;
  min-width: 196px;
  padding: 0 30px;
  height: 58px;
  border-radius: var(--radius-pill);
  background: #16090b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.35s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(23, 18, 16, 0.22);
  background: #231215;
}

.hero-button-arrow {
  font-size: 24px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.35s var(--ease-out);
}

.hero-button:hover .hero-button-arrow {
  transform: translate(5px, -1px);
}

/* Entrance animation on page load */
html.js .hero-copy > * {
  animation: hero-rise 1s var(--ease-out) backwards;
}

html.js .hero-title { animation-delay: 0.08s; }
html.js .hero-description { animation-delay: 0.2s; }
html.js .hero-button { animation-delay: 0.32s; }

html.js .hero-visual {
  animation: hero-visual-in 1.2s var(--ease-out) 0.25s backwards;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-visual-in {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero-copy > *,
  html.js .hero-visual {
    animation: none;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 100%;
  margin-right: calc(50% - 50vw);
}

.portrait-frame {
  width: 82%;
  height: 100%;
  margin-left: auto;
  transform: translateX(-64px);
}

.portrait-outer-ring {
  position: relative;
  width: 100%;
  height: 116%;
  margin-top: -8%;
  border-radius: 999px 0 0 999px;
  overflow: hidden;
  background: #dfe7e9;
  box-shadow: 0 16px 36px rgba(23, 15, 15, 0.09);
}

.portrait-inner-ring {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #dfe6e6;
  z-index: 1;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  filter: saturate(0.78) brightness(1.06) contrast(0.92);
  opacity: 0.9;
}

.hero-visual-corner {
  display: none;
}

.hero-visual-burst {
  display: none;
}

.hero-visual-burst span {
  display: none;
}

.hero-visual-burst span:nth-child(1) { transform: translateX(-50%) rotate(24deg); }
.hero-visual-burst span:nth-child(2) { transform: translateX(-50%) rotate(44deg); }
.hero-visual-burst span:nth-child(3) { transform: translateX(-50%) rotate(64deg); }
.hero-visual-burst span:nth-child(4) { transform: translateX(-50%) rotate(84deg); }
.hero-visual-burst span:nth-child(5) { transform: translateX(-50%) rotate(104deg); }
.hero-visual-burst span:nth-child(6) { transform: translateX(-50%) rotate(124deg); }
.hero-visual-burst span:nth-child(7) { transform: translateX(-50%) rotate(144deg); }
.hero-visual-burst span:nth-child(8) { transform: translateX(-50%) rotate(164deg); }

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-copy {
    max-width: none;
    min-width: 0;
    padding: 86px 0 0;
  }

  .hero-visual {
    min-height: 500px;
    padding-top: 10px;
    margin-right: 0;
  }

  .hero-portrait {
    object-fit: cover;
    object-position: center top;
  }

  .hero-visual-burst {
    top: 30%;
    right: 27%;
    transform: scale(0.82);
    transform-origin: top right;
  }

}

@media (max-width: 720px) {
  .hero-section {
    min-height: 0;
    padding: 72px 0 64px;
  }

  .hero-grid {
    gap: 40px;
    min-height: 0;
  }

  .hero-copy {
    padding: 0;
    text-align: center;
    align-items: center;
  }

  .hero-button {
    align-self: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-section::after {
    display: none;
  }

  .hero-title {
    font-size: clamp(34px, 10.4vw, 74px);
  }

  .hero-title > span {
    white-space: normal;
  }

  .hero-description {
    display: none;
  }

  .portrait-outer-ring {
    height: 108%;
    margin-top: -4%;
    min-height: 380px;
    border-radius: 220px 0 0 220px;
  }

  .portrait-frame {
    transform: translateX(-28px);
  }

  .portrait-inner-ring {
    width: 100%;
    height: 100%;
  }

  .hero-portrait {
    object-position: center 18%;
  }

  .hero-visual-burst {
    top: 28%;
    right: 30%;
    transform: scale(0.56);
  }

}
