/* Scroll effects use the site's existing blue and cyan palette. */
.hero {
  background: var(--deep);
  color: #fff;
  min-height: 0;
  height: 220vh;
  padding: 0;
  overflow: visible;
}

.heroPinned {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  min-height: 560px;
  padding: clamp(44px, 7vw, 100px) clamp(20px, 4vw, 64px) 52px;
  overflow: hidden;
}

.hero .heroGrid {
  opacity: .17;
}

.hero .eyebrow,
.heroBottom p {
  color: #b8d1e1;
}

.hero h1,
.hero h1 span {
  color: #fff;
}

.hero h1 > .heroAccent {
  color: var(--cyan);
}

.heroWord {
  display: inline-block;
  white-space: nowrap;
}

.hasScrollEffects .hero h1 .heroLetter {
  color: #334b62;
  transition: color .12s linear, text-shadow .12s linear;
}

.hasScrollEffects .hero h1 .heroLetter.isLit {
  color: #fff;
  text-shadow: 0 0 22px #8fd9fa55;
}

.hasScrollEffects .hero h1 > .heroAccent .heroLetter.isLit {
  color: var(--cyan);
  text-shadow: 0 0 26px #4eb6e899;
}

.hero .circuitCore {
  background: var(--deep);
  color: #b9e8fa;
  border-color: #5ba9d0;
  box-shadow: 12px 12px 0 #123552;
}

.hero .circuitPath {
  background: #5ba9d0;
}

.hero .circuitNode {
  color: var(--cyan);
  background: var(--deep);
  border-color: #5ba9d0;
}

.hero .circuitLabel {
  color: #94bdd2;
}

.heroScrollCue {
  position: absolute;
  bottom: 26px;
  left: clamp(20px, 4vw, 64px);
  color: #a7d9ef;
  font: 700 10px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.heroScrollCue span {
  display: inline-block;
  margin-left: 10px;
  color: var(--cyan);
}

.hasScrollEffects [data-light-up] .lightWord {
  opacity: .2;
  transition: opacity .18s linear, color .18s linear;
}

.hasScrollEffects [data-light-up] .lightWord.isLit {
  opacity: 1;
  color: var(--blue);
}

.hasScrollEffects .experience [data-light-up] .lightWord.isLit {
  color: var(--cyan);
}

.hasScrollEffects .aboutCopy p[data-light-up] .lightWord.isLit,
.hasScrollEffects .homeLifeHeading p[data-light-up] .lightWord.isLit {
  color: var(--ink);
}

.scrollGalleryStage {
  position: relative;
  height: auto;
}

.scrollGalleryViewport {
  position: sticky;
  top: 84px;
  height: min(70vh, 650px);
  overflow: hidden;
}

.scrollGalleryTrack,
.homeLifeGallery.scrollGalleryTrack,
.lifeGallery.scrollGalleryTrack {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 2vw, 26px);
  width: max-content;
  height: 100%;
  will-change: transform;
}

.scrollGalleryTrack figure,
.homeLifeGallery.scrollGalleryTrack figure,
.lifeGallery.scrollGalleryTrack figure {
  position: relative;
  flex: 0 0 min(54vw, 710px);
  width: min(54vw, 710px);
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.homeLifeGallery.scrollGalleryTrack figure:first-child {
  flex-basis: min(70vw, 920px);
  width: min(70vw, 920px);
  grid-column: auto;
}

.scrollGalleryTrack figure img,
.homeLifeGallery.scrollGalleryTrack figure img,
.lifeGallery.scrollGalleryTrack figure img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.lifeGallery.scrollGalleryTrack figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #071c31e6;
  color: #fff;
}

.lifeSection .scrollGalleryStage {
  margin-bottom: 0;
}

.lifeSection .scrollGalleryViewport {
  height: min(72vh, 690px);
}

.scrollGalleryStage.isScrollable {
  cursor: default;
}

@media (width <= 580px) {
  .hero {
    height: 200vh;
  }

  .heroPinned {
    top: 65px;
    height: calc(100vh - 65px);
    min-height: 0;
    padding: 34px 20px 35px;
  }

  .hero h1 {
    font-size: clamp(48px, 13.5vw, 72px);
    margin-top: 26px;
  }

  .heroBottom p {
    font-size: 14px;
  }

  .heroCircuit {
    display: none;
  }

  .heroScrollCue {
    display: none;
  }

  .scrollGalleryViewport,
  .lifeSection .scrollGalleryViewport {
    top: 72px;
    height: min(64vh, 560px);
  }

  .scrollGalleryTrack figure,
  .homeLifeGallery.scrollGalleryTrack figure,
  .lifeGallery.scrollGalleryTrack figure,
  .homeLifeGallery.scrollGalleryTrack figure:first-child {
    flex-basis: 82vw;
    width: 82vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hasScrollEffects .hero h1 .heroLetter {
    transition: none;
  }

  .hasScrollEffects [data-light-up] .lightWord,
  .hasScrollEffects [data-light-up] .lightWord.isLit {
    opacity: 1;
    color: inherit;
    transition: none;
  }

  .scrollGalleryTrack {
    transition: none;
  }
}
