:root {
  --brand-red: #ff4b44;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(104px, 10vw, 142px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: logo-enter 0.5s ease-out 0s 1 both;
}

.brand__icon {
  width: clamp(58px, 5vw, 80px);
  height: clamp(58px, 5vw, 80px);
  transition: transform 250ms ease;
}

.hero__eyebrow {
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand:hover .brand__icon {
  transform: scale(1.06);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero__wordmark {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(88vw, 1580px);
  aspect-ratio: 1764 / 300;
  transform: translate(-50%, -50%);
}

.hero__letter {
  position: absolute;
  inset: 0;
  background: url("assets/images/phong-wordmark.svg") center / 100% 100%
    no-repeat;
  animation: letter-enter 0.4s ease-out var(--letter-delay) 1 both;
}

.hero__letter--p {
  --letter-delay: 0.2s;
  clip-path: inset(0 82% 0 0);
}

.hero__letter--h {
  --letter-delay: 0.26s;
  clip-path: inset(0 62% 0 16%);
}

.hero__letter--o {
  --letter-delay: 0.32s;
  clip-path: inset(0 40% 0 39%);
}

.hero__letter--n {
  --letter-delay: 0.38s;
  clip-path: inset(0 18% 0 59%);
}

.hero__letter--g {
  --letter-delay: 0.44s;
  clip-path: inset(0 0 0 80%);
}

.hero__eyebrow {
  position: absolute;
  z-index: 3;
  top: 24%;
  left: clamp(20px, 4vw, 72px);
  margin: 0;
  color: var(--brand-red);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  animation: content-enter 0.5s ease-out 0.65s 1 both;
}

.hero__portrait {
  position: absolute;
  z-index: 2;
  bottom: -10vh;
  bottom: -10dvh;
  left: 50%;
  width: auto;
  height: min(108vh, 1160px);
  height: min(108dvh, 1160px);
  transform: translateX(-50%);
  transform-origin: center bottom;
  animation: portrait-enter 0.6s ease-out 0.2s 1 both;
  filter: drop-shadow(0 22px 22px rgba(23, 18, 17, 0.1));
}

.hero__portrait img {
  width: auto;
  max-width: none;
  height: 100%;
}

.hero__footer {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 4vw, 72px);
  bottom: clamp(20px, 3vw, 44px);
  left: clamp(20px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero__slogan {
  margin: 0;
  color: var(--brand-red);
  font-family: "Kaze", Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 1.55vw, 30px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  animation: content-enter 0.5s ease-out 0.72s 1 both;
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: content-enter 0.5s ease-out 0.8s 1 both;
}

.social-link {
  display: grid;
  width: clamp(34px, 2.1vw, 38px);
  height: clamp(34px, 2.1vw, 38px);
  place-items: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.social-link:hover {
  opacity: 0.58;
  transform: translateY(-3px);
}

.social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(43%) sepia(95%)
    saturate(2943%) hue-rotate(336deg) brightness(105%) contrast(103%);
}

@keyframes logo-enter {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes letter-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes portrait-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(1.05);
  }
}

@keyframes content-enter {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 96px;
  }

  .hero__wordmark {
    top: 22%;
    left: 50%;
    width: 78vw;
  }

  .hero__eyebrow {
    top: 15%;
  }

  .hero__portrait {
    bottom: -8vh;
    bottom: -8dvh;
    height: min(94vh, 820px);
    height: min(94dvh, 820px);
  }

  .hero__footer {
    right: 20px;
    bottom: 18px;
    left: 20px;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }

  .hero__slogan {
    font-size: clamp(22px, 6.4vw, 30px);
    white-space: normal;
  }

  .hero__socials {
    justify-content: center;
    gap: 12px;
  }

  .social-link {
    width: 28px;
    height: 28px;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .site-header {
    height: 76px;
  }

  .hero__portrait {
    bottom: -14vh;
    bottom: -14dvh;
    height: 116vh;
    height: 116dvh;
  }

  .hero__wordmark {
    width: 76vw;
  }

  .hero__eyebrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
