.hero--portrait {
  min-height: 100svh;
  padding: 88px 0 0;
  display: flex;
  background: var(--hero-surface, #d9d9d5);
}

.hero-portrait__canvas {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 88px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--hero-surface, #d9d9d5);
  box-shadow: none;
  isolation: isolate;
}

.hero-portrait__canvas::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18%;
  content: "";
  background: linear-gradient(to top, rgba(9, 9, 9, 0.07), transparent);
  pointer-events: none;
}

.hero-portrait__canvas::before {
  position: absolute;
  z-index: 1;
  bottom: 0.7rem;
  left: 50%;
  width: min(46vw, 52rem);
  height: 4.5rem;
  content: "";
  background: radial-gradient(ellipse, rgba(9, 9, 9, 0.2) 0%, rgba(9, 9, 9, 0.08) 42%, transparent 72%);
  filter: blur(0.45rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero--portrait h1.hero-portrait__name {
  position: absolute;
  z-index: 1;
  top: 8%;
  right: 4%;
  left: 4%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(0.8rem, 1.8vw, 2.2rem);
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: clamp(4.8rem, 7.4vw, 9rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero--portrait .hero-portrait__name span {
  color: var(--hero-surface, #d9d9d5);
  letter-spacing: -0.015em;
  -webkit-text-fill-color: var(--hero-surface, #d9d9d5);
  -webkit-text-stroke: clamp(1.5px, 0.11vw, 2.5px) var(--ink);
  paint-order: stroke fill;
}

.hero--portrait .hero-portrait__name strong {
  font-weight: 700;
}

.hero--portrait.is-hero-entering .hero-portrait__name > span,
.hero--portrait.is-hero-entering .hero-portrait__name > strong {
  position: relative;
  overflow: visible;
  clip-path: inset(0 100% 0 0);
  animation: hero-name-stroke 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero--portrait.is-hero-entering .hero-portrait__name > strong {
  color: var(--hero-surface, #d9d9d5);
  -webkit-text-fill-color: var(--hero-surface, #d9d9d5);
  -webkit-text-stroke: clamp(1.5px, 0.11vw, 2.5px) var(--ink);
  paint-order: stroke fill;
  animation-delay: 0.12s;
}

.hero--portrait.is-hero-entering .hero-portrait__name > strong::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  -webkit-text-stroke: 0 transparent;
  clip-path: inset(0 100% 0 0);
  animation: hero-name-fill 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.68s forwards;
}

.hero--portrait.is-hero-entering .hero-portrait__person {
  animation: hero-portrait-enter 1.85s cubic-bezier(0.16, 1, 0.3, 1) 1.72s both;
}

.hero--portrait.is-hero-entering .hero-portrait__intro {
  animation: hero-content-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.hero--portrait.is-hero-entering .hero-portrait__links a {
  animation: hero-content-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero--portrait.is-hero-entering .hero-portrait__links a:nth-child(1) { animation-delay: 0.62s; }
.hero--portrait.is-hero-entering .hero-portrait__links a:nth-child(2) { animation-delay: 0.72s; }
.hero--portrait.is-hero-entering .hero-portrait__links a:nth-child(3) { animation-delay: 0.82s; }
.hero--portrait.is-hero-entering .hero-portrait__links a:nth-child(4) { animation-delay: 0.92s; }

.hero--portrait.is-hero-entering .hero-portrait__foot {
  animation: hero-content-enter 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}

@keyframes hero-name-stroke {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes hero-name-fill {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes hero-portrait-enter {
  from { opacity: 0; translate: 0 12rem; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes hero-content-enter {
  from { opacity: 0; translate: 0 1.25rem; }
  to { opacity: 1; translate: 0 0; }
}

.hero-portrait__person {
  position: absolute;
  z-index: 2;
  bottom: -25%;
  left: 50%;
  width: auto;
  height: 112%;
  max-width: 70%;
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  filter: grayscale(1) contrast(1.04);
  box-shadow: none;
  transform: translateX(-50%);
  transform-origin: center bottom;
  transition: filter 550ms var(--ease);
}

.hero-portrait__picture {
  display: contents;
}

@media (hover: hover) and (pointer: fine) {
  .hero-portrait__person:hover {
    filter: grayscale(0) contrast(1);
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-portrait__person {
    filter: grayscale(1) contrast(1.04);
  }

  .hero-portrait__picture.is-color .hero-portrait__person {
    filter: grayscale(0) contrast(1);
  }
}

.hero--portrait .hero-portrait__person.reveal {
  transform: translate(-50%, 28px);
}

.hero--portrait .hero-portrait__person.reveal.is-visible {
  transform: translateX(-50%);
}

.hero-portrait__intro {
  position: absolute;
  z-index: 4;
  bottom: 14%;
  left: clamp(1.5rem, 4vw, 5rem);
  width: min(22rem, 24%);
}

.hero-portrait__intro > span {
  display: block;
  margin-bottom: 0.7rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.25rem, 1.45vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-portrait__intro p {
  margin: 0;
  font-size: clamp(0.78rem, 0.82vw, 0.95rem);
  line-height: 1.55;
}

.hero-portrait__actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-portrait__intro .hero-portrait__primary,
.hero-portrait__intro .hero-portrait__secondary {
  width: max-content;
  min-height: 44px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 250ms var(--ease), color 250ms var(--ease), transform 250ms var(--ease);
}

.hero-portrait__intro .hero-portrait__secondary {
  background: transparent;
  color: var(--ink);
}

.hero-portrait__intro .hero-portrait__primary:hover,
.hero-portrait__intro .hero-portrait__primary:focus-visible {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-0.2rem);
}

.hero-portrait__intro .hero-portrait__secondary:hover,
.hero-portrait__intro .hero-portrait__secondary:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-0.2rem);
}

.hero-portrait__links {
  position: absolute;
  z-index: 4;
  right: clamp(1.5rem, 4vw, 5rem);
  bottom: 14%;
  width: min(12rem, 16%);
  display: grid;
  gap: 0.55rem;
}

.hero-portrait__links a {
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(9, 9, 9, 0.14);
  border-radius: 2rem;
  background: rgba(248, 248, 245, 0.72);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: border-color 250ms var(--ease), background-color 250ms var(--ease), color 250ms var(--ease);
}

.hero-portrait__links a:hover,
.hero-portrait__links a:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.hero-portrait__foot {
  position: absolute;
  z-index: 1;
  right: clamp(1.5rem, 3vw, 3rem);
  bottom: clamp(1.2rem, 2vw, 2rem);
  left: clamp(1.5rem, 3vw, 3rem);
  padding-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid rgba(9, 9, 9, 0.2);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-portrait__foot span:last-child {
  text-align: right;
}

@media (max-width: 1100px) {
  .hero--portrait h1.hero-portrait__name {
    top: 10%;
    font-size: clamp(4.1rem, 7.1vw, 6rem);
  }

  .hero-portrait__person {
    left: 50%;
    width: auto;
    height: 104%;
    max-width: 72%;
  }

  .hero-portrait__intro {
    width: 26%;
  }

  .hero-portrait__links {
    width: 17%;
  }
}

@media (max-width: 800px) {
  .hero--portrait {
    min-height: auto;
    padding: 72px 0 0;
  }

  .hero-portrait__canvas {
    min-height: 48rem;
    display: grid;
    grid-template-rows: auto minmax(20rem, 1fr) auto auto;
    align-items: start;
    padding: 1.25rem;
  }

  .hero-portrait__name,
  .hero-portrait__person,
  .hero-portrait__intro,
  .hero-portrait__links,
  .hero-portrait__foot {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
  }

  .hero-portrait__picture {
    position: relative;
    z-index: 2;
    grid-row: 2;
    min-width: 0;
    margin-inline: -1.25rem;
    display: flex;
    align-self: stretch;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--ink);
    cursor: pointer;
  }

  .hero-portrait__picture:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
  }

  .hero-portrait__picture::after {
    position: absolute;
    z-index: 1;
    right: 16%;
    bottom: -0.45rem;
    left: 16%;
    height: 1.25rem;
    content: "";
    background: radial-gradient(ellipse at center, rgba(9, 9, 9, 0.16), transparent 68%);
    pointer-events: none;
  }

  .hero--portrait h1.hero-portrait__name {
    position: relative;
    inset: auto;
    grid-row: 1;
    margin-top: 0.5rem;
    display: grid;
    justify-content: start;
    gap: 0;
    font-size: clamp(4rem, 18vw, 6.5rem);
    white-space: normal;
  }

  .hero--portrait .hero-portrait__name span {
    -webkit-text-stroke-width: 1px;
  }

  .hero--portrait.is-hero-entering .hero-portrait__name > strong {
    -webkit-text-stroke-width: 1px;
  }

  .hero-portrait__person {
    position: relative;
    z-index: 2;
    inset: auto;
    flex: 0 0 auto;
    width: min(32rem, 112%);
    max-width: none;
    height: auto;
    margin: -0.75rem 0 -4.4rem;
    object-position: center bottom;
    filter: grayscale(1) contrast(1.04);
    box-shadow: none;
    transform: none;
  }

  .hero--portrait .hero-portrait__person.reveal,
  .hero--portrait .hero-portrait__person.reveal.is-visible {
    transform: none;
  }

  .hero-portrait__intro {
    z-index: 3;
    grid-row: 3;
    padding-top: 1.75rem;
    border-top: 0;
  }

  .hero-portrait__links {
    grid-row: 4;
    margin-top: 2rem;
    grid-template-columns: 1fr 1fr;
  }

  .hero-portrait__foot {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-portrait__canvas {
    min-height: 45rem;
  }

  .hero-portrait__name {
    font-size: clamp(3.6rem, 17vw, 5rem);
  }

  .hero-portrait__person {
    width: 116%;
    margin: -0.5rem 0 -4.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-portrait__person,
  .hero-portrait__intro a,
  .hero-portrait__intro button,
  .hero-portrait__links a {
    transition: none;
  }
}
