@import url("global-chrome.css");
@font-face {
  font-family: "Attractype Reborn";
  src: url("../fonts/attractype-reborn.otf") format("opentype");
  font-display: swap;
}


@font-face {
  font-family: "Grand Baron Distressed";
  src: url("../fonts/grand-baron-distressed.otf") format("opentype");
  font-display: swap;
}


@font-face {
  font-family: "Myona Sans Display";
  src: url("../fonts/myona-sans-display.otf") format("opentype");
  font-display: swap;
}


@font-face {
  font-family: "Toxic Fill";
  src: url("../fonts/toxic-fill.ttf") format("truetype");
  font-display: swap;
}


:root {
  --header-height: 80px;
  --history-bg: #fffaf5;
  --placeholder: #9c9c9c;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  color: #000;
  background: #fff;
  font-family: Helvetica, Arial, sans-serif;
}


a {
  color: inherit;
}


.hero {
  position: relative;
  height: 590px;
  overflow: hidden;
  background: radial-gradient(circle at 14% 16%, #90f4ff 0, #7696ff 100%);
}


.hero__art {
  position: absolute;
  top: 0;
  left: calc(58.75vw - 600px);
  width: 1200px;
  height: 675px;
  max-width: none;
  object-fit: contain;
}


.watch-button {
  position: absolute;
  z-index: 2;
  top: 474px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 207px;
  height: 44px;
  color: #fff;
  background: #f00;
  border-radius: 22px;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  transform: translateX(-50%);
  transition: background-color 160ms ease, transform 160ms ease;
}


.watch-button:hover,
.watch-button:focus-visible {
  background: #dc0000;
  transform: translateX(-50%) scale(1.035);
}


.watch-button svg {
  flex: 0 0 auto;
  color: #fff;
}


.projects {
  min-height: 634px;
  padding: 56px clamp(16px, 2vw, 32px) 32px;
  background: #fff;
}


.projects__intro {
  text-align: center;
}


.projects h1 {
  width: fit-content;
  margin: 0 auto;
  color: transparent;
  background: linear-gradient(#ff00f8, #b24a4a);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Attractype Reborn", cursive;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.08;
}


.projects__intro p {
  max-width: 410px;
  margin: 0 auto;
  color: #3a3a3a;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(1512px, 100%);
  margin: 45px auto 0;
}


.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  color: #fff;
  background-color: var(--placeholder);
  background-image: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / 0.2)), var(--project-image);
  background-position: center;
  background-size: cover;
  text-align: center;
  text-decoration: none;
}


.project-card::after {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.12);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}


.project-card:hover::after,
.project-card:focus-visible::after {
  opacity: 1;
}


.project-card__copy {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 16%;
  left: 12px;
  display: block;
  font-size: 12px;
  line-height: 1.2;
}


.project-card__copy strong,
.project-card__copy span {
  display: block;
}


.project-card__copy span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}


/* History previews grow with the longest excerpt in the row. */
.history {
  padding-block: 64px;
  background: var(--history-bg);
}
.history h2 {
  margin: 0;
  font-family: "Grand Baron Distressed", Georgia, serif;
  font-size: 64px;
  font-weight: 400;
  line-height: .984375;
  text-align: center;
}
.history h2 span { display: block; }
.history__scroller {
  overflow-x: auto;
  margin-top: 32px;
  scroll-padding-inline: 32px;
}
.history__list {
  display: flex;
  gap: 32px;
  width: max-content;
  margin-inline: auto;
  padding: 4px 32px 12px;
}
.post-card {
  display: block;
  flex: 0 0 234px;
  width: 234px;
  color: #000;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.post-card:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.post-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 338 / 261.5;
  height: auto;
  object-fit: cover;
}
.post-card__image--placeholder { background: var(--placeholder); }
.post-card strong {
  display: -webkit-box;
  height: 48px;
  margin-top: 4px;
  overflow: hidden;
  font-family: "Grand Baron Distressed", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.post-card__excerpt {
  display: block;
  margin-top: 4px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
}
@media (max-width: 600px) {
  .history h2 { font-size: 48px; line-height: 1; }
}
@media (max-width: 374px) {
  .history h2 { font-size: 32px; }
  .post-card { flex-basis: min(234px, calc(100vw - 64px)); width: min(234px, calc(100vw - 64px)); }
}

.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}


.founder {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}


.founder::after {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.12);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}


.founder:hover::after,
.founder:focus-visible::after {
  opacity: 1;
}


.founder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.founder span {
  position: absolute;
  z-index: 1;
  right: 9%;
  bottom: 7.5%;
  left: 9%;
  font-size: clamp(16px, 3.7vw, 64px);
  line-height: 0.84;
  text-align: center;
  text-transform: uppercase;
}


.founder--christopher span {
  font-family: "Toxic Fill", sans-serif;
}


.founder--joseph span {
  font-family: "Myona Sans Display", sans-serif;
}
@media (min-width: 1577px) {

  .hero__art {
    left: calc(50% - 462px);
  }


}
@media (max-width: 1200px) {

  .hero__art {
    left: calc(50% - 495px);
  }


}
@media (max-width: 680px) {

  .hero__art {
    left: calc(50% - 412px);
  }


  .projects {
    min-height: 902px;
    padding-inline: 16px;
    padding-bottom: 16px;
  }


  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }


}
@media (max-width: 473px) {

  .hero__art {
    left: calc(50% - 341px);
    width: 1049px;
    height: 590px;
  }


  .projects {
    min-height: 696px;
  }


  .projects h1 {
    font-size: 64px;
    line-height: 0.88;
  }


  .projects__intro p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1;
  }


  .project-grid {
    margin-top: 44px;
  }


}
@media (max-width: 347px) {

  .projects {
    min-height: 590px;
    padding-top: 40px;
    padding-bottom: 16px;
  }


  .projects h1 {
    width: min(315px, 100%);
  }


  .project-grid {
    gap: 8px;
    margin-top: 44px;
  }


  .project-card__copy {
    right: 8px;
    left: 8px;
  }


}
@media (max-width: 300px) {

  .hero {
    height: 559px;
  }


  .hero__art {
    left: calc(50% - 274px);
    width: 930px;
    height: 523px;
  }


  .watch-button {
    top: 443px;
  }


  .projects {
    min-height: 504px;
    padding-inline: 16px;
  }


}
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  .watch-button,
  .project-card::after,
  .founder::after {
    transition: none;
  }


}

.history h2 a { color: inherit; text-decoration: none; }
.history h2 a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
