.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: clip;
  padding: calc(var(--nav-offset, 80px) + 24px) 0 80px;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ffffff;
  background-image:
    radial-gradient(ellipse 90% 70% at 0% 30%, rgba(0, 0, 0, 0.028) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(0, 0, 0, 0.02) 0%, transparent 55%);
}

.hero-layout {
  position: relative;
  width: 100%;
  padding: 0 clamp(24px, 5vw, 72px);
}

.hero-content {
  text-align: left;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  padding: 0;
}

.hero-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  margin-bottom: clamp(24px, 3vw, 36px);
  color: rgba(0, 0, 0, 0.9);
}

.hero-name__first,
.hero-name__last {
  font-size: clamp(3.25rem, 9.5vw, 7.25rem);
  letter-spacing: clamp(2px, 0.35vw, 5px);
}

.hero-name__last {
  margin-top: 0.06em;
}

.hero-roles {
  margin-bottom: clamp(18px, 2.5vw, 28px);
}

.hero-role {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 1.15vw, 13px);
  letter-spacing: 0.32em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
}

.hero-subtitle {
  max-width: 580px;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.05rem, 1.85vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.72;
  color: rgba(0, 0, 0, 0.62);
}

.hero-subtitle.reveal--soft.is-visible {
  opacity: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: clamp(44px, 5vw, 60px);
}

.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.25vw, 15px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.3s ease, gap 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-btn::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.22);
  transform-origin: left center;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-btn:not(:last-child)::before {
  right: clamp(18px, 2.2vw, 28px);
  width: auto;
}

.hero-btn::after {
  content: '→';
  font-family: 'Inter', sans-serif;
  font-size: 1.15em;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-btn + .hero-btn {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
}

.hero-btn:not(:last-child) {
  margin-right: clamp(18px, 2.2vw, 28px);
  padding-right: clamp(18px, 2.2vw, 28px);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
  color: #000000;
  gap: 11px;
}

.hero-btn:hover::before {
  transform: scaleX(1);
}

.hero-btn:hover::after {
  opacity: 0.75;
  transform: translateX(0);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid rgba(0, 0, 0, 0.35);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 1100px) {
  .hero {
    align-items: flex-start;
    overflow-x: clip;
    overflow-y: visible;
  }

  .page-home .hero {
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(80px + 28px) 0 56px;
  }

  .hero-layout {
    padding: 0 32px;
  }

  .hero-name {
    margin-bottom: 20px;
  }

  .hero-name__first,
  .hero-name__last {
    font-size: clamp(2.75rem, 12vw, 4.5rem);
    letter-spacing: 1px;
  }

  .hero-roles {
    margin-bottom: 16px;
  }

  .hero-role {
    font-size: 11px;
    letter-spacing: 0.14em;
    line-height: 1.55;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 36em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-top: 32px;
  }

  .page-home .hero-actions {
    align-items: center;
  }

  .hero-btn {
    min-height: 44px;
    padding: 12px 0;
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .hero-btn:not(:last-child) {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
  }

  .hero-btn:not(:last-child)::before {
    right: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(72px + 24px) 0 48px;
  }

  .hero-layout {
    padding: 0 20px;
  }

  .hero-name {
    margin-bottom: 16px;
  }

  .hero-name__first,
  .hero-name__last {
    font-size: clamp(2.5rem, 13.5vw, 3.25rem);
    letter-spacing: 0.5px;
  }

  .hero-role {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 28px;
    gap: 2px;
  }
}

/* Home — centered hero without side media */
.page-home .hero {
  justify-content: center;
  align-items: center;
}

.page-home .hero-background {
  background-image:
    radial-gradient(ellipse 85% 65% at 50% 38%, rgba(0, 0, 0, 0.028) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(0, 0, 0, 0.02) 0%, transparent 55%);
}

.page-home .hero-layout {
  display: flex;
  justify-content: center;
}

.page-home .hero-content {
  text-align: center;
  max-width: min(920px, 100%);
  margin: 0 auto;
}

.page-home .hero-name {
  align-items: center;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.page-home .hero-name__first,
.page-home .hero-name__last {
  font-size: clamp(4rem, 12vw, 9.25rem);
  letter-spacing: clamp(2px, 0.4vw, 6px);
}

.page-home .hero-role {
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.28em;
}

.page-home .hero-subtitle {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.74;
}

.page-home .hero-actions {
  justify-content: center;
}

@media (max-width: 768px) {
  .page-home .hero {
    min-height: calc(100dvh - 68px);
    min-height: calc(100svh - 68px);
    padding: calc(68px + env(safe-area-inset-top, 0px) + 24px) 0 calc(52px + env(safe-area-inset-bottom, 0px));
    justify-content: center;
  }

  .page-home .hero-layout {
    padding: 0 clamp(24px, 6vw, 40px);
    width: 100%;
  }

  .page-home .hero-content {
    max-width: 100%;
  }

  .page-home .hero-name {
    margin-bottom: clamp(18px, 4.5vw, 24px);
  }

  .page-home .hero-name__first,
  .page-home .hero-name__last {
    font-size: clamp(2.85rem, 13.5vw, 4.35rem);
    letter-spacing: 0.025em;
    line-height: 0.94;
  }

  .page-home .hero-roles {
    margin-bottom: clamp(14px, 3.5vw, 18px);
  }

  .page-home .hero-role {
    font-size: 10px;
    letter-spacing: 0.16em;
    line-height: 1.65;
    max-width: 26em;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
  }

  .page-home .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.68;
    max-width: 22em;
    padding: 0 2px;
    text-wrap: pretty;
  }

  .page-home .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: clamp(28px, 7vw, 40px);
    width: 100%;
  }

  .page-home .hero-btn:not(:last-child) {
    margin-right: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }

  .page-home .hero-btn:not(:last-child)::before {
    right: clamp(16px, 4vw, 24px);
  }
}

@media (max-width: 480px) {
  .page-home .hero {
    min-height: calc(100dvh - 64px);
    min-height: calc(100svh - 64px);
    padding: calc(64px + env(safe-area-inset-top, 0px) + 20px) 0 calc(44px + env(safe-area-inset-bottom, 0px));
  }

  .page-home .hero-layout {
    padding: 0 20px;
  }

  .page-home .hero-name {
    margin-bottom: 16px;
  }

  .page-home .hero-name__first,
  .page-home .hero-name__last {
    font-size: clamp(2.45rem, 12.5vw, 3.2rem);
    letter-spacing: 0.015em;
  }

  .page-home .hero-role {
    font-size: 9px;
    letter-spacing: 0.11em;
    line-height: 1.7;
    max-width: 24em;
  }

  .page-home .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.62;
    max-width: none;
  }

  .page-home .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 28px;
  }

  .page-home .hero-btn {
    min-height: 48px;
    padding: 14px 0;
  }

  .page-home .hero-btn:not(:last-child) {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
  }

  .page-home .hero-btn:not(:last-child)::before {
    right: 0;
  }
}

@media (max-width: 360px) {
  .page-home .hero-name__first,
  .page-home .hero-name__last {
    font-size: clamp(2.2rem, 11.5vw, 2.75rem);
  }

  .page-home .hero-subtitle {
    font-size: 0.92rem;
  }
}

/* Tablet portrait (744–1040): the vw-based desktop clamps collapse to their
   minimums at this width, which leaves the name huge and everything else tiny. */
@media (min-width: 700px) and (max-width: 1040px) {
  .page-home .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--nav-offset, 80px) + 32px) 0 calc(72px + var(--safe-bottom, 0px));
  }

  .hero-layout,
  .page-home .hero-layout {
    padding: 0 var(--page-gutter);
  }

  .page-home .hero-name {
    margin-bottom: clamp(22px, 3.5vw, 34px);
  }

  .page-home .hero-name__first,
  .page-home .hero-name__last {
    font-size: clamp(3.5rem, 10.5vw, 6rem);
    letter-spacing: 0.02em;
  }

  .page-home .hero-roles {
    margin-bottom: clamp(16px, 2.5vw, 24px);
  }

  .page-home .hero-role {
    font-size: 12px;
    letter-spacing: 0.26em;
  }

  .page-home .hero-subtitle {
    max-width: 30em;
    font-size: 1.3rem;
    line-height: 1.72;
  }

  .page-home .hero-actions {
    margin-top: clamp(36px, 5vw, 52px);
  }

  .page-home .hero-btn {
    min-height: 48px;
    font-size: 15px;
  }
}

/* Short landscape viewports (iPad landscape 744–834px tall, phone landscape):
   scale the full-height hero off the viewport height so it stays on one screen. */
@media (min-width: 700px) and (max-height: 860px) and (orientation: landscape) {
  .page-home .hero {
    padding: calc(var(--nav-offset, 80px) + 20px) 0 clamp(36px, 6vh, 64px);
  }

  .page-home .hero-name {
    margin-bottom: clamp(14px, 3vh, 30px);
  }

  .page-home .hero-name__first,
  .page-home .hero-name__last {
    font-size: clamp(2.75rem, 13.5vh, 9.25rem);
  }

  .page-home .hero-roles {
    margin-bottom: clamp(10px, 2vh, 22px);
  }

  .page-home .hero-role {
    font-size: clamp(10px, 1.5vh, 13px);
  }

  .page-home .hero-subtitle {
    max-width: 34em;
    font-size: clamp(1rem, 2.5vh, 1.45rem);
    line-height: 1.65;
  }

  .page-home .hero-actions {
    margin-top: clamp(22px, 4.5vh, 52px);
  }
}
