@import url("./assets/fonts/fonts.css");

:root {
  color-scheme: dark;
  --bg: #231f20;
  --paper: #fff;
  --text: #fff;
  --red: #db1f26;
  --cream: #f3dbb3;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: Montserrat, Arial, sans-serif;
}

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

#cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.about-header {
  position: fixed;
  left: clamp(24px, 4.2vw, 82px);
  right: clamp(24px, 4.2vw, 82px);
  top: clamp(6px, 1.55vw, 20px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  opacity: var(--about-header-opacity, 1);
  transform: translateY(var(--about-header-y, 0px)) scale(var(--about-header-scale, 1));
  transform-origin: center top;
  transition: opacity 220ms ease;
}

.about-logo {
  display: block;
  width: clamp(108px, 14.5vw, 165px);
  line-height: 0;
}

.about-logo img,
.about-contact img {
  display: block;
  width: 100%;
  height: auto;
}

.about-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.4vw, 58px);
  font-family: "PT Sans", Arial, sans-serif;
  font-size: clamp(14px, 1.05vw, 20px);
  line-height: 1;
}

.about-nav a {
  white-space: nowrap;
}

.about-nav a:hover {
  color: var(--red);
}

@media (min-width: 761px) {
  .about-nav > a:not(.about-contact) {
    color: #fff;
    mix-blend-mode: difference;
    text-shadow:
      0 0 5px rgba(0, 0, 0, 0.22),
      0 0 7px rgba(255, 255, 255, 0.2);
  }
}

.about-footer {
  display: none;
}

.about-menu-toggle {
  display: none;
}

.about-contact {
  position: relative;
  display: inline-grid;
  width: clamp(104px, 7.8vw, 130px);
  min-width: 104px;
  place-items: center;
  color: var(--paper);
}

.about-contact img,
.about-contact span {
  grid-area: 1 / 1;
}

.about-contact span {
  padding: 0 13px 1px 7px;
  font-size: clamp(12px, 1.02vw, 19px);
}

.about-contact:hover {
  color: var(--paper);
}

.about-page {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.about-mobile-art {
  display: none;
}

.about-mobile-hero {
  display: none;
}

.about-stage {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  padding-top: clamp(28px, 3.8vw, 58px);
  opacity: var(--about-art-opacity, 0);
  transform:
    translateY(var(--about-art-y, 80px))
    scale(var(--about-art-scale, 1.045));
  transform-origin: center top;
  will-change: opacity, transform;
}

.about-art {
  display: block;
  width: 100%;
  height: auto;
}

.about-hero-title {
  position: absolute;
  left: 5.75%;
  top: 20.6%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0.13em;
  color: var(--paper);
  font-family: Commissioner, "Arial Black", Impact, sans-serif;
  font-size: clamp(72px, 7.72vw, 160px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-hero-title span {
  display: block;
  width: 0.13em;
  height: 0.13em;
  margin-bottom: 0.01em;
  background: var(--red);
  clip-path: polygon(0 0, 94% 0, 100% 100%, 8% 100%);
}

.about-beige-block {
  position: absolute;
  display: block;
  left: 68.8%;
  top: 19.4%;
  width: 34%;
  height: 78.5%;
  object-fit: fill;
  transform:
    translateX(var(--about-block-x, 28vw))
    translateY(var(--about-block-y, 24px))
    scale(var(--about-block-scale, 0.96))
    rotate(0deg);
  transform-origin: center center;
  opacity: var(--about-block-opacity, 0);
  will-change: opacity, transform;
}

.about-team {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(720px, 78svh, 860px);
  overflow: hidden;
  background: var(--bg);
  align-items: start;
  padding: clamp(34px, 4.5vw, 76px) clamp(34px, 5.2vw, 100px) clamp(48px, 5vw, 90px);
  opacity: var(--about-team-opacity, 0.12);
  transform:
    translateY(var(--about-team-y, 120px))
    scale(var(--about-team-scale, 0.98));
  transform-origin: center top;
  will-change: opacity, transform;
}

.about-team__grid {
  display: grid;
  width: min(960px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4.4vh, 62px) clamp(0px, 1vw, 18px);
}

.team-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(150px, 0.68fr) minmax(220px, 1fr);
  align-items: center;
  gap: clamp(8px, 1.2vw, 22px);
  min-height: clamp(220px, 21vw, 340px);
  --team-copy-offset: 0px;
  --team-image-delay: 0ms;
  --team-image-scale: 1;
  --team-image-y: 0px;
  --team-text-delay: 130ms;
}

.team-card:nth-child(even) {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.68fr);
}

.team-card:nth-child(even) .team-card__copy {
  text-align: right;
  transform: translateX(clamp(12px, 2.1vw, 34px));
}

.team-card__backdrop {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  z-index: 0;
  width: min(100%, 286px);
  aspect-ratio: 1 / 1;
  background: var(--red);
  clip-path: polygon(7% 5%, 96% 1%, 92% 96%, 0 91%);
  opacity: 1;
  transform: translate(12%, calc(5% + var(--team-image-y))) rotate(-2.2deg) scale(var(--team-image-scale));
  transition:
    opacity 640ms ease,
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--team-image-delay);
}

.team-card::after {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  z-index: 2;
  width: min(100%, 286px);
  aspect-ratio: 1 / 1;
  background: var(--red);
  clip-path: polygon(7% 5%, 96% 1%, 92% 96%, 0 91%);
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.42;
  pointer-events: none;
  transform: translate(12%, calc(5% + var(--team-image-y))) rotate(-2.2deg) scale(var(--team-image-scale));
  transition:
    opacity 260ms ease,
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0ms, var(--team-image-delay);
}

.about-team.is-visible .team-card:hover::after {
  opacity: 0;
}

.team-card:nth-child(even) .team-card__backdrop {
  grid-column: 2;
  transform: translate(-12%, calc(5% + var(--team-image-y))) rotate(2.2deg) scale(var(--team-image-scale));
}

.team-card:nth-child(even)::after {
  grid-column: 2;
  transform: translate(-12%, calc(5% + var(--team-image-y))) rotate(2.2deg) scale(var(--team-image-scale));
}

.team-card__photo {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  z-index: 1;
  width: min(100%, 286px);
  aspect-ratio: 1 / 1;
  background:
    var(--team-photo) center / cover no-repeat,
    linear-gradient(135deg, #141112, #3a3030);
  filter: grayscale(1) contrast(1.08);
  clip-path: polygon(3% 0, 97% 4%, 94% 98%, 0 93%);
  opacity: 1;
  transform: translateY(var(--team-image-y)) scale(var(--team-image-scale));
  transition:
    opacity 640ms ease,
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--team-image-delay);
}

.team-card:nth-child(even) .team-card__photo {
  grid-column: 2;
}

.team-card__copy {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  z-index: 3;
  color: var(--cream);
  opacity: 1;
  transform: translateX(calc(clamp(-34px, -2.1vw, -12px) + var(--team-copy-offset)));
  transition:
    opacity 560ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--team-text-delay);
}

.team-card:nth-child(even) .team-card__copy {
  grid-column: 1;
  transform: translateX(calc(clamp(12px, 2.1vw, 34px) + var(--team-copy-offset)));
}

.about-team:not(.is-visible) .team-card {
  --team-copy-offset: 30px;
  --team-image-scale: 0.94;
  --team-image-y: 42px;
}

.about-team:not(.is-visible) .team-card:nth-child(even) {
  --team-copy-offset: -30px;
}

.about-team:not(.is-visible) .team-card__backdrop,
.about-team:not(.is-visible) .team-card__photo,
.about-team:not(.is-visible) .team-card::after,
.about-team:not(.is-visible) .team-card__copy {
  opacity: 0;
}

.team-card:nth-child(1) {
  --team-image-delay: 20ms;
  --team-text-delay: 160ms;
}

.team-card:nth-child(2) {
  --team-image-delay: 130ms;
  --team-text-delay: 280ms;
}

.team-card:nth-child(3) {
  --team-image-delay: 240ms;
  --team-text-delay: 390ms;
}

.team-card:nth-child(4) {
  --team-image-delay: 350ms;
  --team-text-delay: 500ms;
}

.team-card__copy h2 {
  margin: 0 0 clamp(8px, 0.9vw, 16px);
  font-family: "Alumni Sans", "AlumniSansRoman-Medium", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(40px, 3.8vw, 72px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.team-name-break {
  display: none;
}

.team-card__copy p {
  max-width: 430px;
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(14px, 1vw, 20px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
}

.team-card:nth-child(even) .team-card__copy p {
  margin-left: auto;
}

.team-card--philia .team-card__photo {
  clip-path: polygon(0 6%, 97% 1%, 100% 94%, 6% 100%);
}

.team-card--benjamin .team-card__photo {
  clip-path: polygon(5% 3%, 100% 0, 95% 96%, 0 100%);
  background-position: center;
}

.team-card--casey .team-card__photo {
  clip-path: polygon(0 1%, 96% 5%, 100% 100%, 5% 93%);
  background-position: center;
}

.team-card--claire {
  transform: translate(0, -0.8vh) rotate(-0.35deg);
}

.team-card--philia {
  transform: translate(1.4vw, -0.8vh) rotate(0.35deg);
}

.team-card--benjamin {
  transform: translate(2.8vw, 4.6vh) rotate(0.25deg);
}

.team-card--casey {
  transform: translate(2.6vw, 4.6vh) rotate(-0.25deg);
}

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

@media (min-width: 761px) and (max-width: 1100px) {
  .about-stage {
    padding-top: clamp(24px, 3vw, 38px);
  }

  .about-team {
    min-height: auto;
    padding: clamp(34px, 4vw, 52px) clamp(28px, 4.5vw, 48px) clamp(48px, 5vw, 68px);
  }

  .about-team__grid {
    width: min(880px, 100%);
    gap: clamp(30px, 4vw, 48px) clamp(8px, 1.4vw, 16px);
  }

  .team-card {
    grid-template-columns: minmax(120px, 0.64fr) minmax(0, 1fr);
    gap: clamp(6px, 1vw, 14px);
    min-height: clamp(190px, 24vw, 250px);
  }

  .team-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.64fr);
  }

  .team-card__backdrop,
  .team-card::after,
  .team-card__photo {
    width: min(100%, 224px);
  }

  .team-card__copy {
    transform: translateX(calc(clamp(-18px, -1.4vw, -8px) + var(--team-copy-offset)));
  }

  .team-card:nth-child(even) .team-card__copy {
    transform: translateX(calc(clamp(8px, 1.4vw, 18px) + var(--team-copy-offset)));
  }

  .team-card__copy h2 {
    font-size: clamp(38px, 4.7vw, 52px);
  }

  .team-card__copy p {
    max-width: 330px;
    font-size: clamp(13px, 1.55vw, 16px);
  }

  .team-card--claire,
  .team-card--philia,
  .team-card--benjamin,
  .team-card--casey {
    transform: none;
  }
}

@media (max-width: 760px) {
  .about-header {
    left: 12px;
    right: 17px;
    top: 13px;
    align-items: flex-start;
    gap: 18px;
    opacity: 1;
    transform: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .mobile-header-hidden .about-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
  }

  .about-logo {
    width: 118px;
  }

  .about-nav {
    position: relative;
    min-width: 150px;
    min-height: 190px;
    display: block;
    color: var(--text);
    font-size: 16px;
    line-height: 1;
    text-align: right;
  }

  .about-menu-toggle {
    position: absolute;
    top: 1px;
    right: 0;
    display: block;
    width: 43px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .about-menu-toggle span {
    position: absolute;
    left: 0;
    width: 43px;
    height: 8px;
    background: currentColor;
    transform-origin: center;
    transition:
      transform 280ms cubic-bezier(0.65, 0, 0.35, 1),
      opacity 180ms ease,
      clip-path 280ms cubic-bezier(0.65, 0, 0.35, 1);
  }

  .about-menu-toggle::before,
  .about-menu-toggle::after {
    position: absolute;
    left: 4px;
    top: 0;
    width: 36px;
    height: 36px;
    background: currentColor;
    content: "";
    opacity: 0;
    transform: scale(0.82);
    transition:
      opacity 180ms ease,
      transform 280ms cubic-bezier(0.65, 0, 0.35, 1);
  }

  .about-menu-toggle::before {
    clip-path: polygon(100% 16.1%, 85.6% 1.9%, 0 86.9%, 11.3% 98.1%);
  }

  .about-menu-toggle::after {
    clip-path: polygon(87.1% 100%, 1.5% 15%, 16.6% 0, 98.5% 88.7%);
  }

  .about-menu-toggle span:nth-child(1) {
    top: 0;
    clip-path: polygon(0 5%, 100% 25%, 100% 100%, 0 100%);
  }

  .about-menu-toggle span:nth-child(2) {
    top: 15px;
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%);
  }

  .about-menu-toggle span:nth-child(3) {
    top: 30px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 75%);
  }

  .about-nav.is-open .about-menu-toggle span:nth-child(1) {
    opacity: 0;
    transform: translateX(-8px) scaleX(0.65);
  }

  .about-nav.is-open .about-menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.25);
  }

  .about-nav.is-open .about-menu-toggle span:nth-child(3) {
    opacity: 0;
    transform: translateX(8px) scaleX(0.65);
  }

  .about-nav.is-open .about-menu-toggle::before,
  .about-nav.is-open .about-menu-toggle::after {
    opacity: 1;
    transform: scale(1);
  }

  .about-nav a {
    position: absolute;
    right: 0;
    display: block;
    min-width: 126px;
    color: inherit;
    text-align: right;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 220ms ease,
      transform 260ms cubic-bezier(0.65, 0, 0.35, 1),
      color 420ms ease;
  }

  .about-nav a:nth-of-type(1) {
    top: 58px;
    transition-delay: 0ms;
  }

  .about-nav a:nth-of-type(2) {
    top: 88px;
    transition-delay: 28ms;
  }

  .about-nav a:nth-of-type(3) {
    top: 118px;
    transition-delay: 56ms;
  }

  .about-nav .about-contact {
    top: 150px;
    display: inline-grid;
    width: 132px;
    min-width: 132px;
    place-items: center;
    transition-delay: 84ms;
  }

  .about-contact span {
    position: static;
    grid-area: 1 / 1;
    padding: 0 13px 1px 7px;
    color: var(--text);
    text-align: center;
    font-size: 15px;
    transform: none;
  }

  .about-contact img {
    grid-area: 1 / 1;
  }

  .about-nav.is-open a {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .about-page {
    background: var(--bg);
  }

  .about-mobile-hero {
    position: relative;
    display: block;
    min-height: 100svh;
    padding: clamp(154px, 31svh, 238px) 22px 86px;
    overflow: hidden;
    background: var(--bg);
    color: var(--paper);
  }

  .about-mobile-hero__copy {
    position: relative;
    z-index: 2;
    width: min(100%, 336px);
  }

  .about-mobile-hero__copy h2 {
    margin: 0 0 clamp(42px, 10svh, 74px);
    color: var(--paper);
    font-family: "Arial Black", Impact, Commissioner, sans-serif;
    font-size: clamp(68px, 19vw, 88px);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .about-mobile-hero__copy h2 span {
    color: var(--red);
  }

  .about-mobile-hero__copy p {
    max-width: 312px;
    margin: 0 0 22px;
    color: var(--paper);
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(12px, 3.35vw, 14px);
    font-weight: 400;
    line-height: 1.22;
  }

  .about-mobile-hero__dot {
    display: inline-block;
    width: 0.78em;
    height: 0.78em;
    margin-left: 0.28em;
    background: var(--red);
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 8% 100%);
    transform: translateY(0.12em) rotate(-2deg);
  }

  .about-mobile-hero__block {
    position: absolute;
    right: clamp(-64px, -12vw, -38px);
    top: clamp(372px, 48svh, 460px);
    z-index: 1;
    width: clamp(130px, 38vw, 178px);
    aspect-ratio: 0.78 / 1;
    background: var(--cream);
    transform: rotate(10deg);
  }

  .about-mobile-art {
    display: none;
  }

  .about-stage {
    display: none;
  }

  .about-hero-title {
    display: none;
  }

  .about-team {
    display: grid;
    min-height: auto;
    padding: 92px 22px 58px;
    opacity: 1;
    transform: none;
  }

  .about-team__grid {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .team-card,
  .team-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 0.72fr);
    gap: 40px;
    min-height: auto;
  }

  .team-card:nth-child(even) {
    grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1fr);
  }

  .team-card__backdrop,
  .team-card::after,
  .team-card__photo,
  .team-card__copy {
    grid-row: 1;
  }

  .team-card__backdrop,
  .team-card::after,
  .team-card__photo {
    grid-column: 2;
  }

  .team-card__copy {
    grid-column: 1;
  }

  .team-card:nth-child(even) .team-card__backdrop,
  .team-card:nth-child(even)::after,
  .team-card:nth-child(even) .team-card__photo {
    grid-column: 1;
  }

  .team-card:nth-child(even) .team-card__copy {
    grid-column: 2;
  }

  .team-card__copy {
    text-align: right;
    transform: translateX(0);
  }

  .team-card__copy p {
    margin-left: auto;
  }

  .team-card:nth-child(even) .team-card__copy {
    text-align: left;
    transform: translateX(0);
  }

  .team-card:nth-child(even) .team-card__copy p {
    margin-left: 0;
  }

  .team-card__photo {
    width: min(58vw, 238px);
  }

  .team-card:nth-child(even) .team-card__backdrop,
  .team-card:nth-child(even)::after,
  .team-card:nth-child(even) .team-card__photo {
    justify-self: start;
    margin-left: 0;
  }

  .team-card:nth-child(even) .team-card__backdrop,
  .team-card:nth-child(even)::after {
    margin-left: 0;
  }

  .team-card__backdrop {
    width: min(48vw, 198px);
    transform: translate(24%, 10%) rotate(-2.2deg);
  }

  .team-card::after {
    width: min(48vw, 198px);
    transform: translate(24%, 10%) rotate(-2.2deg);
  }

  .team-card:not(:nth-child(even)) .team-card__photo {
    justify-self: end;
  }

  .team-card:not(:nth-child(even)) .team-card__backdrop {
    justify-self: end;
    transform: translate(-32%, 10%) rotate(2.2deg);
  }

  .team-card:not(:nth-child(even))::after {
    justify-self: end;
    transform: translate(-32%, 10%) rotate(2.2deg);
  }

  .team-card--claire .team-card__backdrop,
  .team-card--benjamin .team-card__backdrop {
    transform: translate(-38%, 4%) rotate(2.2deg);
  }

  .team-card--claire::after,
  .team-card--benjamin::after {
    transform: translate(-38%, 4%) rotate(2.2deg);
  }

  .team-card.team-card--philia .team-card__backdrop,
  .team-card.team-card--casey .team-card__backdrop,
  .team-card.team-card--philia::after,
  .team-card.team-card--casey::after {
    grid-column: 2 !important;
    justify-self: start !important;
    margin-left: 0 !important;
    transform: translate(-18%, 10%) rotate(-2.2deg) !important;
  }

  .team-card.team-card--claire .team-card__backdrop,
  .team-card.team-card--benjamin .team-card__backdrop,
  .team-card.team-card--claire::after,
  .team-card.team-card--benjamin::after {
    grid-column: 1 !important;
    justify-self: end !important;
    margin-left: 0 !important;
    transform: translate(18%, 10%) rotate(2.2deg) !important;
  }

  .team-card__copy h2 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .team-name-break {
    display: block;
  }

  .team-card__copy p {
    max-width: 300px;
    font-size: 14px;
  }

  #cursor-trail {
    display: none;
  }
}
