body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  height: auto;
}

header {
  background: transparent;
  color: var(--foreground);
  transition: color 700ms ease-in-out;
}

header.is-over-dark {
  color: #00ff00;
}

header .logo img {
  transition: opacity 700ms ease-in-out;
}

header .logo .logo-dark-default,
header .logo .logo-dark-hover {
  opacity: 0;
}

header .logo .logo-dark-hover {
  width: 127.7778%;
}

header.is-over-dark .logo .logo-default,
header.is-over-dark .logo .logo-hover {
  opacity: 0;
}

header.is-over-dark .logo .logo-dark-default {
  opacity: 1;
}

header.is-over-dark .logo:hover .logo-dark-default,
header.is-over-dark .logo:focus-visible .logo-dark-default {
  opacity: 0;
}

header.is-over-dark .logo:hover .logo-dark-hover,
header.is-over-dark .logo:focus-visible .logo-dark-hover {
  opacity: 1;
}

.about-scroll-arrow {
  position: fixed;
  z-index: 5;
  display: block;
  width: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition:
    color 700ms ease-in-out,
    opacity 320ms ease-in-out,
    transform 320ms ease-in-out;
}

.about-scroll-arrow.is-scrolling {
  opacity: 0;
  pointer-events: none;
  transform: translateY(var(--arrow-exit-offset));
}

.about-scroll-arrow:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.about-scroll-arrow svg {
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.about-scroll-shaft {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-scroll-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
}

body.is-over-dark .about-scroll-arrow {
  color: #00ff00;
}

.about-section {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  grid-template-columns: minmax(0, 356fr) minmax(0, 736fr);
  align-content: start;
  align-items: stretch;
  gap: clamp(1rem, 1.4vw, 1.25rem);
  padding: clamp(1.25rem, 3vh, 2.25rem) 11.55vw 4.4vw;
}

.about-portrait {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 356 / 459;
  overflow: hidden;
  background: var(--foreground);
}

.about-model {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.about-model {
  visibility: hidden;
}

.about-model::part(default-progress-bar) {
  display: none;
}

.about-model.is-loaded {
  visibility: visible;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 0.1rem;
}

.about-copy h1 {
  font-size: clamp(2rem, 4.1vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
}

.about-copy p {
  max-width: 45ch;
  font-size: clamp(0.9rem, 1.25vw, 1.1rem);
  line-height: 1.35;
}

.about-copy-text {
  display: grid;
  gap: 1em;
}

.studio-section {
  display: grid;
  min-height: 1012px;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 2rem;
  padding: calc(var(--header-height) + clamp(1.25rem, 3vh, 2.25rem)) 11.55vw 8rem;
  background: #000;
  color: #00ff00;
}

.studio-copy h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.15;
}

.studio-copy p {
  max-width: 43ch;
  font-size: clamp(0.9rem, 1.25vw, 1.1rem);
  line-height: 1.35;
}

.studio-mark-frame {
  position: relative;
  width: clamp(4rem, 12vw, 8rem);
  align-self: stretch;
}

.studio-mark {
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  height: 100%;
  max-width: none;
  overflow: visible;
}

.studio-monkey {
  display: block;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 1100px);
  height: auto;
  margin-top: clamp(1.5rem, 4vw, 3rem);
  filter: grayscale(100%);
}

@media (max-height: 700px) and (min-width: 801px) {
  .about-section {
    padding-top: 1rem;
  }

  .studio-section {
    padding-top: calc(var(--header-height) + 1rem);
  }
}

@media (max-width: 800px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 8vw 2.5rem;
  }

  .about-portrait {
    width: min(100%, 22rem);
    justify-self: center;
  }

  .about-copy {
    gap: 2rem;
  }

  .about-copy h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .about-copy p,
  .studio-copy p {
    font-size: 0.9rem;
  }

  .studio-section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.5rem;
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(var(--header-height) + 1rem) 8vw 5rem;
  }

  .studio-monkey {
    margin-top: 0;
  }

  .studio-mark-frame {
    width: 1.25rem;
    height: 1.25rem;
    align-self: start;
    margin-top: 0.45rem;
  }

  .studio-mark {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
}
