@font-face {
  font-family: "OT Neglige";
  src: url("../fonts/OTNeglige-L.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Mona Wide";
  src: url("../fonts/mona-sans-lightwide.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

:root {
  --wine: #3A1A29;
  --gold: #8A7439;
  --paper: #DFD9CB;
  --line: #6C4156;
}

* {
  box-sizing: border-box;
}

html,
body {
  background: var(--wine);
  min-height: 100%;
}

body {
  color: var(--paper);
  font-family: "Mona Wide", Arial, sans-serif;
  letter-spacing: 0;
  margin: 0;
}

.experience {
  background: var(--wine);
  height: 100svh;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.scene {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.intro-scene {
  flex-direction: column;
  gap: clamp(48px, 8vh, 86px);
  opacity: 1;
  padding: clamp(28px, 5vw, 80px);
  transition: opacity 0.9s ease, visibility 0.9s ease;
  visibility: visible;
  z-index: 2;
}

.intro-copy {
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(13px, 1.3vw, 20px);
  justify-content: center;
  line-height: 1.5;
  margin: 0;
  max-width: 900px;
  min-height: 1.5em;
  text-align: center;
  text-transform: uppercase;
}

.intro-copy .char {
  display: inline-block;
  filter: blur(7px);
  opacity: 0;
  transform: translateY(12px);
  transition:
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.2s + (var(--char-index) * 0.045s));
}

.intro-copy .space {
  width: 0.4em;
}

body.is-drawing .intro-copy .char {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

.blueprint {
  color: var(--line);
  display: block;
  height: auto;
  max-width: 1180px;
  overflow: visible;
  width: min(76vw, 1180px);
}

.blueprint path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-miterlimit: 10;
  stroke-width: 6;
}

body.intro-exit .intro-scene {
  opacity: 0;
  visibility: hidden;
}

.portrait-scene {
  flex-direction: column;
  gap: clamp(14px, 2.2vh, 24px);
  opacity: 0;
  padding: clamp(26px, 5vh, 54px) 20px clamp(24px, 3.8vh, 42px);
  transition: opacity 1s ease;
  visibility: hidden;
  z-index: 1;
}

.portrait-card {
  aspect-ratio: 0.665;
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
  margin: 0;
  max-height: min(69svh, 650px);
  overflow: hidden;
  position: relative;
  transform: scale(0.97);
  transition:
    clip-path 1.55s cubic-bezier(0.76, 0, 0.24, 1),
    transform 1.55s cubic-bezier(0.22, 1, 0.36, 1);
  width: min(43vw, 432px);
}

.portrait-card::after {
  background: linear-gradient(180deg, rgba(223, 217, 203, 0.1), transparent 30%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.portrait-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.launch-title {
  color: var(--wine);
  font-family: "Mona Wide", Arial, sans-serif;
  font-size: clamp(21px, 2.4vw, 34px);
  font-weight: 300;
  left: 50%;
  line-height: 0.94;
  margin: 0;
  position: absolute;
  text-align: left;
  text-transform: uppercase;
  top: clamp(38px, 7vh, 68px);
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}

.launch-title span {
  display: block;
  filter: blur(7px);
  opacity: 0;
  transform: translateY(12px);
  transition:
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.launch-title span:last-child {
  transition-delay: 0.16s;
}

.portrait-name {
  display: block;
  height: auto;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1.15s ease,
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  width: min(58vw, 650px);
}

.contact-links {
  align-items: center;
  display: flex;
  justify-content: center;
  left: 50%;
  opacity: 0;
  position: absolute;
  right: auto;
  text-align: center;
  top: clamp(22px, 3.4vh, 34px);
  transform: translate(-50%, 10px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-links a {
  color: rgba(223, 217, 203, 0.76);
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.contact-links .contact-value {
  color: var(--paper);
  margin-left: 5px;
  text-transform: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--gold);
}

.contact-links a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}

body.phase-portrait .portrait-scene {
  opacity: 1;
  visibility: visible;
}

body.phase-portrait .portrait-card {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

body.show-name .portrait-name {
  opacity: 1;
  transform: translateY(0);
}

body.show-launch .launch-title span {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

body.show-contact .contact-links {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 760px) {
  .experience {
    min-height: 560px;
  }

  .intro-scene {
    gap: 48px;
    padding-inline: 24px;
  }

  .intro-copy {
    font-size: 12px;
    max-width: 310px;
  }

  .blueprint {
    width: 92vw;
  }

  .portrait-scene {
    gap: 14px;
    padding: 24px 16px 20px;
  }

  .portrait-card {
    max-height: none;
    width: min(78vw, 45.8svh, 360px);
  }

  .launch-title {
    font-size: clamp(20px, 6vw, 27px);
    top: clamp(34px, 7vh, 60px);
  }

  .portrait-name {
    width: min(78vw, 45.8svh, 360px);
  }

  .contact-links {
    left: 50%;
    right: auto;
    top: 16px;
    white-space: nowrap;
  }

  .contact-links a {
    font-size: 8px;
  }

}

@media (max-height: 700px) and (min-width: 761px) {
  .intro-scene {
    gap: 36px;
  }

  .portrait-scene {
    gap: 10px;
    padding-block: 18px 14px;
  }

  .portrait-card {
    max-height: 74svh;
  }

  .portrait-name {
    width: min(50vw, 530px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
