/* =========================
   Home Page Specific
   ========================= */

/* spacing overrides */

.page-home {
  --home-sans-size: 16px;
  --home-section-link-size: 12px;
  --home-header-size: 12px;
  --home-footer-size: 9px;
  --home-footer-height: var(--space-13);
  --home-contact-pad-y: var(--space-8);
  --mobile-menu-offset: 0px;
  height: 100svh;
  overflow: hidden;
}

.page-home .site-shell {
  position: relative;
  height: 100svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: y proximity;
  scroll-padding-top: 0;
}

.page-home .site-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.page-home main {
  position: relative;
  padding-top: var(--mobile-menu-offset);
  transition: padding-top 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home .stack-card {
  position: sticky;
  top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  opacity: var(--card-opacity, 1);
  transform: translate3d(0, var(--card-y, 0px), 0) scale(var(--card-scale, 1));
  transform-origin: center top;
  will-change: transform, opacity;
  backface-visibility: hidden;
  overflow: hidden;
}

.page-home .work-section {
  position: relative;
  display: block;
  min-height: auto;
  padding-bottom: 100px;
  overflow: visible;
  transform: none;
  opacity: 1;
  scroll-snap-stop: normal;
  isolation: isolate;
  margin-bottom: -50px;
}

.page-home .stack-card:not(.hero) {
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.04),
    0 -24px 56px rgba(0, 0, 0, 0.18),
    0 24px 56px rgba(0, 0, 0, 0.16);
}

.page-home .work-section > .container {
  transform: none;
  will-change: auto;
}

.page-home .hero > picture img {
  transform: translate3d(var(--hero-image-x, 0px), var(--hero-image-y, 0px), 0) scale(var(--hero-image-scale, 1.08));
  transform-origin: center center;
  will-change: transform;
}

.page-home .media > img,
.page-home .media > video {
  transform: translate3d(0, var(--media-y, 0px), 0) scale(var(--media-scale, 1.08));
  transform-origin: center center;
  will-change: transform;
}

.page-home .hero {
  background: #000;
}

.page-home .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.336);
  pointer-events: none;
}

.page-home .hero > picture img {
  opacity: 0;
  filter: blur(0);
  animation:
    hero-image-reveal 360ms cubic-bezier(0.22, 1, 0.36, 1) both,
    hero-image-sharpen 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity, filter;
}

.page-home .hero__symbol,
.page-home .hero__intro,
.page-home .hero__content > a {
  opacity: 0;
  animation: hero-fade-in 7.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2083s;
  will-change: opacity;
}

.page-home .hero__content,
.page-home .stack-card > .container {
  position: relative;
  z-index: 2;
  transform: translate3d(0, var(--content-y, 0px), 0);
  will-change: transform;
}

@media (max-width: 767px) {
  .page-home .hero > picture img {
    transform: translate3d(var(--hero-image-x, 0px), var(--hero-image-y, 0px), 0) scale(var(--hero-image-scale, 1.055));
  }
}

.page-home .stack-card:not(.hero):not(.services-section) h1,
.page-home .stack-card:not(.hero):not(.services-section) h2,
.page-home .stack-card:not(.hero):not(.services-section) h3,
.page-home .stack-card:not(.hero):not(.services-section) p,
.page-home .stack-card:not(.hero):not(.services-section) a,
.page-home .stack-card:not(.hero):not(.services-section) span,
.page-home .work-section h1,
.page-home .work-section h2,
.page-home .work-section h3,
.page-home .work-section p,
.page-home .work-section a,
.page-home .work-section span {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 18px rgba(0, 0, 0, 0.4);
}

.page-home .hero__intro,
.page-home .statement p,
.page-home .logo-grid > p,
.page-home .portfolio-intro p,
.page-home .podcast p,
.page-home .contact p {
  font-size: var(--home-sans-size);
  line-height: calc(var(--space-3) + 4px);
}

.page-home .statement a {
  font-size: var(--home-section-link-size);
  line-height: var(--space-2);
  text-decoration: underline;
}

.page-home .about-statement h2 {
  font-size: clamp(3.8rem, 7.4vw, 5.8rem);
  line-height: 0.96;
  margin-bottom: var(--space-3);
}

.page-home .hero__content > a {
  font-size: var(--home-section-link-size);
  line-height: var(--space-2);
  text-decoration: underline;
}

.page-home .project-card__meta,
.page-home .project-card__title,
.page-home .project-card__submeta {
  font-size: 14px;
  line-height: var(--space-2);
}

.page-home .work-section .project-card__title {
  font-family: 'OmenSans', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.003em;
}

.page-home .site-header,
.page-home .site-header a {
  font-size: var(--home-header-size);
  line-height: var(--space-2);
}

.page-home .site-footer {
  font-size: var(--home-footer-size);
  line-height: var(--space-2);
  position: relative;
  z-index: 3;
  min-height: var(--space-13);
  padding: var(--space-4) var(--pad-x);
  background-color: #000;
  background-image: var(--asset-noise-dark);
  background-repeat: repeat;
  background-blend-mode: multiply;
  scroll-snap-align: end;
  scroll-snap-stop: always;
}

.page-home #contact {
  min-height: calc(100svh - var(--home-footer-height));
  padding-top: var(--home-contact-pad-y);
  padding-bottom: var(--home-contact-pad-y);
}

.hero + .section {
  padding-top: var(--space-15);
}

/* tighter intro above portfolio */

.portfolio-intro {
  text-align: center;
  margin-bottom: var(--space-6);
}

.portfolio-intro h2 {
  margin-bottom: var(--space-2);
}

/* service stack spacing */

.service-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  min-height: calc(100svh - var(--space-20));
  padding: var(--space-10) 100px;
}

.services-section {
  padding-top: 100px;
}

/* podcast icons */

.podcast-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.podcast-icons span {
  width: var(--space-1);
  height: var(--space-1);
  border-radius: 50%;
  background: #6edc7a;
}

@keyframes hero-image-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-image-sharpen {
  from {
    filter: blur(20px);
  }

  to {
    filter: blur(0);
  }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__symbol,
  .page-home .hero__intro,
  .page-home .hero__content > a {
    animation: none;
    opacity: 1;
  }

  .page-home .hero > picture img {
    animation: none;
    opacity: 1;
    filter: blur(0);
  }
}
