:root {
  --page-pad-x: clamp(40px, 2.75vw, 56px);
  --page-pad-top: clamp(38px, 2.7vw, 56px);
  --right-gap: clamp(56px, 4.7vw, 96px);
  --right-width: min(24vw, 500px);
  --black: #000;
  --white: #fff;
}

* { box-sizing: border-box; }

html { background: var(--white); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--white);
  color: var(--black);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; }

.wordmark {
  position: fixed;
  z-index: 10;
  top: var(--page-pad-top);
  left: var(--page-pad-x);
  display: inline-block;
  color: var(--black);
  text-decoration: none;
  font-size: 128px;
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.copy-column {
  position: relative;
  width: var(--right-width);
  margin-left: auto;
  margin-right: var(--right-gap);
}

.home-copy {
  padding: 66px 0 130px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.354;
  letter-spacing: -.02em;
}

.home-copy h1 {
  margin: 0 0 34px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.home-copy p {
  margin: 0 0 34px;
}

.home-copy p:last-child { margin-bottom: 0; }

.email-link {
  text-decoration-thickness: 1.5px;
  text-underline-offset: .08em;
}

.site-nav {
  position: fixed;
  z-index: 10;
  left: var(--page-pad-x);
  bottom: 45px;
  display: flex;
  gap: 28px;
  align-items: baseline;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}

.site-nav a {
  color: var(--black);
  text-decoration: none;
}

.anchor-target {
  position: absolute;
  inset: auto 0 0 auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* People */
.people-copy {
  padding: 40px 0 70px;
  font-size: 19px;
  line-height: 1.354;
  letter-spacing: -.02em;
}

.person,
.associates-intro {
  margin: 0 0 42px;
}

.portrait {
  display: block;
  width: 156px;
  height: 192px;
  object-fit: cover;
  margin: 0 0 14px;
  filter: grayscale(100%);
}

.people-copy h1,
.people-copy h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.people-copy p {
  margin: 0 0 20px;
}

.people-copy p:last-child { margin-bottom: 0; }

.associates-intro {
  margin-top: 44px;
  margin-bottom: 36px;
}

.associates-intro h2 { margin-bottom: 22px; }


@media (max-width: 1180px) and (min-width: 769px) {
  :root {
    --right-gap: 48px;
    --right-width: 29vw;
  }

  .wordmark { font-size: 112px; }
  .home-copy,
  .people-copy { font-size: 17px; }
  .home-copy h1,
  .people-copy h1,
  .people-copy h2 { font-size: 20px; }
}

@media (max-width: 768px) {
  :root {
    --mobile-x: 7.35vw;
  }

  body {
    min-height: 100%;
    overflow-y: auto;
  }

  .wordmark {
    position: static;
    display: block;
    width: max-content;
    max-width: none;
    margin: 82px 0 0 6.5vw;
    font-size: clamp(86px, 23vw, 165px);
    line-height: .84;
  }

  .copy-column {
    position: static;
    width: auto;
    margin: 0;
  }

  .home-copy {
    padding: 34px var(--mobile-x) 0;
    font-size: clamp(16px, 3.55vw, 25px);
    line-height: 1.27;
    letter-spacing: -.025em;
  }

  .home-copy h1 {
    margin: 0 0 30px;
    font-size: clamp(19px, 4vw, 27px);
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  .home-copy p { margin-bottom: 30px; }

  .site-nav {
    position: static;
    margin: 88px var(--mobile-x) 92px;
    gap: clamp(30px, 7vw, 48px);
    font-size: clamp(18px, 3.8vw, 25px);
    line-height: 1;
  }

  .people-copy {
    padding: 44px var(--mobile-x) 0;
    font-size: clamp(16px, 3.55vw, 25px);
    line-height: 1.32;
  }

  .people-copy .person,
  .people-copy .associates-intro { margin-bottom: 72px; }

  .people-copy .portrait {
    width: clamp(174px, 28.08vw, 250px);
    height: auto;
    aspect-ratio: 100 / 123;
    margin-bottom: 22px;
  }

  .people-copy h1,
  .people-copy h2 {
    font-size: clamp(16px, 3.7vw, 21px);
    margin-bottom: 28px;
  }

  .people-copy p { margin-bottom: 28px; }

  .people-nav {
    margin-top: 90px;
  }
}

@media (max-width: 520px) {
  .wordmark { margin-top: 64px; }
  .home-copy { padding-top: 32px; }
  .home-copy h1 { margin-bottom: 28px; }
  .home-copy p { margin-bottom: 28px; }
  .site-nav { margin-top: 82px; margin-bottom: 86px; }
}

/* Page-to-page swipe / wipe transition */
@keyframes corbera-exit-left {
  0% {
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    transform: translateX(-10vw);
    clip-path: inset(0 100% 0 0);
    opacity: .96;
  }
}

@keyframes corbera-enter-right {
  0% {
    transform: translateX(10vw);
    clip-path: inset(0 0 0 100%);
    opacity: .96;
  }
  100% {
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes corbera-exit-right {
  0% {
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    transform: translateX(10vw);
    clip-path: inset(0 0 0 100%);
    opacity: .96;
  }
}

@keyframes corbera-enter-left {
  0% {
    transform: translateX(-10vw);
    clip-path: inset(0 100% 0 0);
    opacity: .96;
  }
  100% {
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

body.transitioning {
  overflow: hidden;
  cursor: default;
}

body.transitioning .site-nav,
body.transitioning .wordmark {
  pointer-events: none;
}

body.leaving-to-people .copy-column {
  animation: corbera-exit-left 560ms cubic-bezier(.76, 0, .24, 1) both;
  will-change: transform, clip-path;
}

body.leaving-to-home .copy-column {
  animation: corbera-exit-right 560ms cubic-bezier(.76, 0, .24, 1) both;
  will-change: transform, clip-path;
}

html.transition-to-people .copy-column {
  animation: corbera-enter-right 640ms cubic-bezier(.22, 1, .36, 1) both;
  will-change: transform, clip-path;
}

html.transition-to-home .copy-column {
  animation: corbera-enter-left 640ms cubic-bezier(.22, 1, .36, 1) both;
  will-change: transform, clip-path;
}

@media (max-width: 768px) {
  @keyframes corbera-exit-left {
    100% {
      transform: translateX(-18vw);
      clip-path: inset(0 100% 0 0);
      opacity: .96;
    }
  }

  @keyframes corbera-enter-right {
    0% {
      transform: translateX(18vw);
      clip-path: inset(0 0 0 100%);
      opacity: .96;
    }
  }

  @keyframes corbera-exit-right {
    100% {
      transform: translateX(18vw);
      clip-path: inset(0 0 0 100%);
      opacity: .96;
    }
  }

  @keyframes corbera-enter-left {
    0% {
      transform: translateX(-18vw);
      clip-path: inset(0 100% 0 0);
      opacity: .96;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  body.leaving-to-people .copy-column,
  body.leaving-to-home .copy-column,
  html.transition-to-people .copy-column,
  html.transition-to-home .copy-column {
    animation: none !important;
  }
}
