html:has([data-page='home']) { scroll-behavior: smooth; }

.hero {
  --hero-bottom-inset: clamp(1.75rem, 6vh, 4rem);
  position: relative;
  isolation: isolate;
  min-height: 33rem;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #292929;
  color: #fff;
  touch-action: pan-y;
}

.hero-media, .hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-image {
  object-fit: cover;
  object-position: var(--focus, 48% 51%);
  opacity: 0;
  transition: opacity .52s var(--ease);
}
.hero-image.is-current { opacity: 1; }

.hero-shade {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 78%, rgb(0 0 0 / 34%) 100%),
    linear-gradient(180deg, rgb(0 0 0 / 66%) 0%, rgb(0 0 0 / 27%) 15%, transparent 36%, transparent 49%, rgb(0 0 0 / 20%) 66%, rgb(0 0 0 / 81%) 100%);
}

.hero-caption {
  position: absolute;
  left: var(--gutter);
  right: calc(var(--gutter) + 6.25rem);
  bottom: var(--hero-bottom-inset);
  max-width: 84rem;
}

.hero-caption.is-entering { animation: title-enter .46s var(--ease) both; }
@keyframes title-enter { from { opacity: 0; transform: translateY(.7rem); } to { opacity: 1; transform: translateY(0); } }

.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; margin-bottom: clamp(.55rem, 1.35vw, 1rem); }
.hero-meta-divider { width: 1.25rem; height: 1px; background: currentColor; }

.hero-title {
  width: fit-content;
  margin: 0 0 0 -.06em;
  font-family: var(--display);
  font-size: clamp(4.25rem, 10.8vw, 12.25rem);
  font-weight: 750;
  line-height: .94;
  letter-spacing: -.075em;
  text-wrap: balance;
}

.hero-title a { display: inline-block; text-decoration: none; }
.hero-title a:is(:hover, :focus-visible) { text-decoration: underline; text-decoration-thickness: .035em; text-underline-offset: .12em; }

.hero-stepper {
  position: absolute;
  z-index: 1;
  top: 49%;
  right: calc(var(--gutter) - .75rem);
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
}

.hero-step {
  position: relative;
  display: grid;
  width: 3rem;
  min-height: 3rem;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-step-mark { width: .65rem; height: .65rem; border: 1px solid currentColor; background: rgb(0 0 0 / 24%); }
.hero-step[aria-current] .hero-step-mark { background: #fff; box-shadow: 0 0 0 3px rgb(0 0 0 / 18%); }

.hero-step-name {
  position: absolute;
  right: calc(100% - .25rem);
  min-width: max-content;
  max-width: min(14rem, 65vw);
  padding: .45rem .65rem;
  border: 1px solid rgb(255 255 255 / 40%);
  background: rgb(0 0 0 / 76%);
  font-size: .875rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(.3rem);
  transition: opacity .18s ease, transform .18s ease;
}
.hero-step:is(:hover, :focus-visible) .hero-step-name { opacity: 1; transform: none; }

.hero-count {
  position: absolute;
  right: var(--gutter);
  bottom: var(--hero-bottom-inset);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-variant-numeric: tabular-nums;
}
.hero-count-divider { width: 1.3rem; height: 1px; background: currentColor; }

.home-section {
  max-width: 112rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.home-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.75rem, 8vw, 9rem);
  padding-block: clamp(4rem, 10vw, 10rem);
}

.home-editorial-copy > p,
.home-process-text p,
.home-studio-stat dt { font-size: 1.25rem; }

.home-editorial-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  font-weight: 750;
  letter-spacing: -.075em;
  line-height: .98;
  text-wrap: balance;
}

.home-section-label { margin: 0 0 1rem; }

.home-editorial-copy > p:not(.home-section-label) {
  max-width: 42ch;
  margin: clamp(.75rem, 1.5vw, 1.25rem) 0 0;
  color: var(--muted);
}

.home-studio-stats { margin: 0; border-bottom: 1px solid var(--line); }

.home-studio-stat {
  display: grid;
  gap: .65rem;
  padding-block: clamp(1.2rem, 3.3vw, 2.45rem);
  border-top: 1px solid var(--line);
}

.home-studio-stat dt {
  grid-row: 2;
  font-family: var(--mono);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.home-studio-stat dd {
  margin: 0;
  font: 750 clamp(2.9rem, 5.55vw, 6.5rem)/1 var(--display);
  letter-spacing: -.07em;
  font-variant-numeric: tabular-nums;
}

.home-stat-unit { font-size: .53em; letter-spacing: -.045em; white-space: nowrap; }
.home-figures-note { margin: 1rem 0 0; color: var(--muted); font-size: .875rem; }

.home-process { padding-bottom: clamp(2rem, 5vw, 5rem); }

.home-process-frame {
  position: relative;
  display: grid;
  isolation: isolate;
  min-height: 25rem;
  overflow: hidden;
  background: #292929;
  color: #fff;
}

.home-process-frame::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 74%), rgb(0 0 0 / 61%) 66%, rgb(0 0 0 / 56%));
  content: '';
}

.home-process-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem clamp(2rem, 6vw, 6rem);
  padding: clamp(1.25rem, 4vw, 3.5rem);
}

.home-process-text {
  display: grid;
  align-self: end;
  justify-items: end;
  gap: .875rem;
  text-align: right;
}

.home-process-text p { max-width: 42ch; margin: 0; }

.home-process-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .65rem 1.15rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.home-process-button:hover { background: #e9e9e9; }
.home-process-button:focus-visible { outline-color: var(--paper); }

.home-process-video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-revealing { animation: section-enter .68s var(--ease) both; }
  .home-studio-figures.is-revealing { animation-delay: .09s; }
  @keyframes section-enter {
    from { opacity: 0; transform: translateY(1.35rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 48rem) {
  .hero-image { object-position: var(--focus-mobile, var(--focus, 48% 51%)); }
  .hero-caption { right: calc(var(--gutter) + 2.6rem); bottom: calc(var(--hero-bottom-inset) + 2.5rem); }
  .hero-title { font-size: clamp(3.5rem, 13.5vw, 7rem); }
  .home-studio, .home-process-header { grid-template-columns: 1fr; }
  .home-studio-stat dd { font-size: clamp(3.25rem, 8.5vw, 5rem); }
}

@media (max-width: 38rem) {
  .hero { min-height: 31rem; }
  .hero-meta { margin-bottom: .8rem; font-size: .75rem; }
  .hero-stepper {
    top: max(calc(var(--header-height) + .55rem), calc(39% - 6.875rem));
    transform: none;
  }
  .hero-step { width: 2.75rem; min-height: 2.75rem; }
  .hero-title { font-size: clamp(3.125rem, 14vw, 5.5rem); }
}

@media (max-height: 39rem) and (min-width: 48rem) {
  .hero-title { font-size: clamp(4rem, 8vw, 8rem); }
}

@media (max-width: 22rem) {
  .home-process-header { gap: .75rem; padding: .875rem; }
  .home-process-text p { line-height: 1.3; }
}
