@font-face {
  font-family: "Larken";
  src: url("assets/fonts/Larken-Regular.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --ivory: #faf9ee;
  --sage: #879283;
  --sage-copy: #858d7f;
  --about-background: #7e8677;
  --about-text: #fafaf0;
  --ink: #11120f;
  --white: #fdfcf5;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.about-is-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(9rem, 14vw, 14rem);
  color: var(--white);
  pointer-events: none;
  transition: color 550ms ease;
}

.brand {
  position: absolute;
  top: clamp(2.25rem, 3vw, 3.65rem);
  left: 50%;
  width: clamp(8.5rem, 9.25vw, 11rem);
  aspect-ratio: 466 / 266;
  transform: translateX(-50%);
  pointer-events: auto;
}

.brand__logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.menu-toggle {
  position: absolute;
  top: clamp(3rem, 4.4vw, 5.5rem);
  right: clamp(1.75rem, 4.2vw, 5.5rem);
  width: clamp(3.1rem, 3.3vw, 4.25rem);
  height: clamp(2.3rem, 2.4vw, 3rem);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.menu-toggle:focus-visible,
.brand:focus-visible,
.contact a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.menu-toggle__line {
  position: absolute;
  left: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: top 550ms var(--ease), transform 550ms var(--ease);
}

.menu-toggle__line:first-child {
  top: 35%;
}

.menu-toggle__line:last-child {
  top: 65%;
}

body.about-is-open .site-header {
  position: fixed;
  z-index: 110;
  color: var(--about-text);
}

body.about-is-open .menu-toggle__line:first-child {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}

body.about-is-open .menu-toggle__line:last-child {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

.home {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
}

.carousel__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  background: #0b0b0a;
  opacity: 0;
  animation: carousel-in 1.15s 150ms ease forwards;
}

.carousel__slides,
.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  object-fit: cover;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity 950ms ease, transform 1.7s ease;
}

.carousel__slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-statement {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(90vw, 62rem);
  margin: 0;
  color: #fff;
  font-family: "Larken", Georgia, serif;
  font-size: 38pt;
  font-weight: 400;
  line-height: 1.12;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.about-panel {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  background: var(--about-background);
  color: var(--about-text);
  font-family: "Inter", Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 900ms var(--ease), opacity 140ms linear 700ms;
}

.about-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 900ms var(--ease), opacity 140ms linear;
}

.about-panel__scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  grid-template-areas:
    "story experience"
    "contact experience";
  column-gap: clamp(7rem, 15vw, 18rem);
  row-gap: 0;
  width: min(84vw, 165rem);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(12rem, 13vw, 16rem) 0 clamp(7rem, 9vw, 12rem);
  opacity: 0;
  transform: translateY(-1.75rem);
  transition: opacity 420ms ease, transform 650ms ease;
}

.about-story {
  grid-area: story;
}

.experience {
  grid-area: experience;
}

.about-panel.is-open .about-grid {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 470ms;
}

.about-grid h2,
.about-grid h3,
.about-grid p,
.about-grid address {
  margin-top: 0;
}

.about-story > h2,
.experience > h2,
.contact h3,
.experience__group h3 {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.012em;
}

.about-story > h2 {
  font-size: clamp(1rem, 1.05vw, 1.3rem);
  margin-bottom: clamp(1.8rem, 2.1vw, 2.6rem);
}

.experience > h2,
.contact h3,
.experience__group h3 {
  font-size: calc(clamp(1rem, 1.05vw, 1.3rem) - 2pt);
}

.about-story > p {
  max-width: 36rem;
  margin-bottom: clamp(1.6rem, 1.55vw, 2rem);
  font-size: clamp(1rem, 1.03vw, 1.28rem);
  line-height: 1.52;
  letter-spacing: 0.02em;
}

.about-grid > .contact {
  grid-area: contact;
  margin-top: clamp(5.5rem, 6.5vw, 8rem);
  font-size: clamp(0.9rem, 0.92vw, 1.15rem);
  font-style: normal;
  line-height: 1.63;
  letter-spacing: 0.012em;
}

.contact h3 {
  margin-bottom: clamp(0.8rem, 1vw, 1.25rem);
}

.contact p {
  margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
}

.contact strong,
.contact__email {
  font-weight: 600;
}

.contact__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
}

.contact p.contact__numbers {
  margin-bottom: clamp(0.25rem, 0.4vw, 0.5rem);
}

.contact a {
  text-underline-offset: 0.2em;
}

.contact a:hover {
  text-decoration: underline;
}

.experience {
  padding-top: clamp(2.5rem, 3vw, 4rem);
}

.experience > h2 {
  margin-bottom: clamp(1.5rem, 1.55vw, 2rem);
}

.experience__group {
  margin-bottom: clamp(1.5rem, 1.5vw, 2rem);
}

.experience__group h3 {
  margin-bottom: clamp(0.15rem, 0.2vw, 0.3rem);
}

.experience__group p {
  max-width: 58rem;
  margin-bottom: 0;
  font-size: clamp(0.92rem, 0.92vw, 1.2rem);
  line-height: 1.65;
  letter-spacing: 0.012em;
}

@keyframes intro-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes carousel-in {
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .carousel {
    display: block;
    width: 100%;
    height: 100%;
    margin-inline: auto;
  }

  .carousel__viewport {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    width: min(84vw, 44rem);
    padding-top: 10.5rem;
  }

  .about-story > p {
    max-width: none;
  }

  .experience {
    padding-top: 6rem;
  }

  .about-grid > .contact {
    margin-top: 6rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 9rem;
  }

  .brand {
    top: 1.4rem;
    width: 8.25rem;
  }

  .menu-toggle {
    top: 2.65rem;
    right: 1.45rem;
    width: 2.65rem;
    height: 2.25rem;
  }

  .about-grid {
    width: 86vw;
    padding-top: 11rem;
    padding-bottom: 5rem;
  }

  .about-story > h2 {
    font-size: 1.1rem;
  }

  .experience > h2,
  .contact h3,
  .experience__group h3 {
    font-size: calc(1.1rem - 2pt);
  }

  .about-story > p,
  .experience__group p,
  .contact {
    font-size: 1rem;
  }

  .contact__numbers {
    display: grid;
    gap: 0.2rem;
  }

  .hero-statement {
    width: 92vw;
    font-size: clamp(1.5rem, 7.5vw, 2rem);
    line-height: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
