:root {
  color-scheme: dark;
  --black: #000;
  --dark-gray: #333234;
  --light-accent: #986dd3;
  --light-gray: #7d7981;
  --off-white: #f8f8f8;
  --page-width: 1204px;
  --gutter: clamp(1.25rem, 8.2vw, 7.375rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: 'Google Sans Flex', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--light-gray);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--gutter);
  background: rgb(51 50 52 / 72%);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 58px;
  line-height: 1;
  font-weight: 700;
  color: var(--light-gray);
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--light-accent);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: grid;
  gap: 5px;
  list-style: none;
  cursor: pointer;
  width: 36px;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  height: 2px;
  width: 30px;
  background: var(--off-white);
}

.mobile-nav nav {
  position: absolute;
  top: 40px;
  right: 0;
  display: grid;
  gap: 12px;
  min-width: 160px;
  padding: 18px;
  background: var(--dark-gray);
  border: 1px solid #555;
}

.page-width {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 950px;
  padding-top: 195px;
  overflow: hidden;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
  color: var(--light-accent);
  font-size: clamp(3.5rem, 6.2vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-subtitle {
  margin-top: 0px;
  margin-bottom: 50px;
  color: var(--light-gray);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 500;
  text-transform: uppercase;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  border: 1px solid var(--light-accent);
  border-radius: 9px;
  color: var(--off-white);
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.pill-link:hover {
  background: var(--light-accent);
  color: var(--black);
}

.projects-section {
  border-top: 1px solid #39363d;
  border-bottom: 1px solid #39363d;
  padding: 10px 0 65px;
}

.section-intro {
  margin-top: 0;
  padding-top: 0;
}

.section-intro h2,
.about-copy h2,
.detail-copy h2 {
  color: var(--light-accent);
  font-size: clamp(2.5rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0px;
}

.section-intro>p:last-child {
  color: var(--light-gray);
  font-size: 14px;
  line-height: 2;
  max-width: 75%;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 50px;
}

.project-card {
  display: block;
  min-width: 0;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, #26232c, #4d3a67);
  border: 1px solid #3d3546;
  transition: transform .25s ease, border-color .25s ease;
}

.project-card:hover img {
  transform: translateY(-4px);
  border-color: var(--light-accent);
}

.project-card span {
  display: block;
  margin-top: 15px;
  color: var(--light-gray);
  font-size: 11px;
  letter-spacing: .14em;
}

.project-card h3 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

.about-section {
  padding: 65px 0px 65px;
}

.about-layout {
  display: grid;
  grid-template-columns: 388px 1fr;
  gap: 5rem;
  align-items: top;
}

.about-copy {
  max-width: 700px;
}

.about-copy h2 {
  margin-top: 0px;
}

.about-copy p:last-child,
.detail-copy>p:not(.eyebrow) {
  color: var(--light-gray);
  font-size: 14px;
  line-height: 2;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 388px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-block: 80px;
}

.interaction-section iframe {
  padding-bottom: 65px;
}

.interaction-section video {
  border-style: inset;
  border-color: rgba(208, 208, 208, 0.2);
  border-width: 1px;
  margin-bottom: 65px;
}

iframe {
  width: 100%;
}

.detail-section--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 388px);
}

.detail-section--reverse .detail-media {
  order: 2;
}

.detail-section--reverse .detail-copy {
  order: 1;
}

.detail-media img {
  width: 100%;
  max-height: 740px;
  object-fit: contain;
  object-position: top left;
 
}

.detail-copy h2 {
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.detail-media--secondary {
  margin-top: 38px;
}

.detail-media--empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #242126, #4b3b5d);
  color: var(--light-gray);
}

.site-footer {
  border-top: 1px solid #39363d;
  padding: 70px 0 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-grid>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-heading {
  margin: 0 0 4px;
  color: var(--light-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.footer-grid a,
.footer-grid span {
  color: var(--off-white);
  font-size: 14px;
  font-weight: 600;
}

.mobile-break {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --gutter: 27px;
  }

  .hero {
    min-height: 760px;
    padding-top: 125px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 12vw, 4.8rem);
  }

  .ticker--hero {
    top: 185px;
  }

  .section-intro {
    grid-template-columns: 1fr;
  }

  .section-intro .eyebrow,
  .section-intro h2,
  .section-intro>p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .section-intro>p:last-child {
    margin-top: 0;
  }

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

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .portrait-placeholder {
    width: min(100%, 388px);
  }

  .detail-section,
  .detail-section--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .detail-section--reverse .detail-media,
  .detail-section--reverse .detail-copy {
    order: initial;
  }

  .detail-media img {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    height: 80px;
  }

  .brand {
    font-size: 58px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    min-height: 794px;
    padding-top: 102px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4rem);
    line-height: 1.08;
  }

  .mobile-break {
    display: initial;
  }

  .ticker--hero {
    top: 186px;
    height: 64px;
  }

  .ticker span {
    font-size: 13px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .projects-section {
    padding: 58px 0 70px;
  }

  .section-intro h2,
  .about-copy h2 {
    font-size: 2.5rem;
  }

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

  .project-card h3 {
    font-size: 14px;
  }

  .about-section {
    padding-bottom: 60px;
  }

  .ticker--about {
    margin-bottom: 54px;
    height: 64px;
  }

  .detail-section {
    padding-block: 54px;
  }

  .detail-copy h2 {
    font-size: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 35px;
  }

  .footer-grid>div:last-child {
    grid-column: 1 / -1;
  }
}