.home-page {
  --home-edge: clamp(16px, 3.5vw, 48px);
  --home-gap: clamp(64px, 11vw, 160px);
  --home-ink: #181515;
  --home-paper: #ededed;
  --home-light: #f2f0ea;
  --home-muted: #b7b0aa;
}

.home-page [hidden] { display: none; }
.home-wrap { width: min(1200px, calc(100% - 2 * var(--home-edge))); margin-inline: auto; }
.home-wide { width: min(1340px, calc(100% - 2 * var(--home-edge))); margin-inline: auto; }
.home-section { padding-top: var(--home-gap); }
.home-heading,
.home-heading-small,
.home-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: normal;
  text-transform: uppercase;
}
.home-heading { font-size: clamp(52px, 7.3vw, 96px); line-height: .875; }
.home-heading-small { font-size: clamp(36px, 4.5vw, 44px); line-height: 1; }
.home-lead { font-size: 20px; line-height: 30px; }
.home-split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 4vw, 48px);
}
.home-split-head p,
.home-process h2 + p,
.home-standard-head > p,
.home-about-content > p {
  margin-top: 16px;
  color: var(--home-muted);
  font-size: 18px;
  line-height: 28px;
}
.home-panel {
  width: min(1340px, calc(100% - 2 * var(--home-edge)));
  margin-inline: auto;
  padding: clamp(30px, 6vw, 72px) 0;
  color: var(--home-ink);
  background: var(--home-paper);
  border-radius: 24px;
  position: relative;
}
.home-panel > .home-wrap { width: min(1200px, calc(100% - 2 * clamp(24px, 5vw, 70px))); }
.home-panel .home-split-head p,
.home-panel .home-process-grid p { color: #55514d; }

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 732px;
  color: var(--home-light);
}
.home-hero-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 -280px;
  background: #151618;
  pointer-events: none;
}
.home-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #151618d9 0%, #15161869 34%, transparent 57%),
    linear-gradient(0deg, #151618, transparent 38%);
}
.home-hero-media picture,
.home-hero-media video,
.home-about-media picture,
.home-about-media video,
.home-process-media picture,
.home-process-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero-media picture img,
.home-about-media picture img,
.home-process-media picture img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-media video,
.home-about-media video,
.home-process-media video { opacity: 0; }
.home-page video.is-playing { opacity: 1; }
.home-hero-copy { padding-top: 178px; }
.home-descriptor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.home-descriptor > span {
  height: 8px;
  width: 8px;
  margin: 4px 5px 0 1px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 9px -5px 0 -1.5px currentColor;
}
.home-hero h1 { font-size: clamp(78px, 10.1vw, 140px); line-height: .829; }
.home-hero h1 + p { max-width: 46ch; margin-top: 24px; }
.home-hero-buttons { gap: 16px; margin-top: 30px; }
.home-hero-buttons > .button:first-child { min-width: 268px; justify-content: flex-start; }
.home-motion-toggle {
  position: absolute;
  bottom: 24px;
  right: max(var(--home-edge), calc((100% - 1200px) / 2));
  background: #181515dd;
  color: var(--home-light);
}

.home-explore { margin-top: clamp(80px, 10.2vw, 146px); }
.home-explore .home-split-head p { max-width: 36ch; margin: 0 0 24px; }
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.home-category {
  min-height: clamp(200px, 29vw, 360px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(14px, 2vw, 24px);
  color: white;
  background: #191d25 var(--tile-image) center / cover no-repeat;
  border-radius: 16px;
  text-decoration: none;
}
.home-category::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(0deg, #181515e6 0%, #18151556 38%, transparent 70%);
  pointer-events: none;
}
.home-category > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 450ms ease-out;
}
.home-category:hover > img { transform: scale(1.05); }
.home-category strong {
  max-width: 90%;
  font-family: var(--display);
  font-size: clamp(24px, 3.1vw, 44px);
  font-weight: 900;
  line-height: .94;
  text-transform: uppercase;
}
.home-category small { margin-top: 9px; font-size: 14px; }
.home-category-arrow { position: absolute; right: 16px; bottom: 17px; }
.home-category-arrow img { filter: brightness(0) invert(1); }
.home-category-acc,
.home-category-custom {
  grid-column: span 2;
  min-height: clamp(180px, 22vw, 306px);
}
.home-category-acc > img,
.home-category-custom > img { left: 30%; width: 70%; }

.home-standards {
  display: grid;
  grid-template-columns: minmax(0, 486px) minmax(0, 588px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(30px, 5vw, 78px);
}
.home-standard-head { position: sticky; top: clamp(105px, 12vh, 154px); }
.home-standard-head > p { margin-top: 32px; }
.home-standard-progress { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.home-standard-progress > span { min-width: 6ch; color: var(--home-light); font-variant-numeric: tabular-nums; }
.home-standard-dots { display: flex; }
.home-standard-dots button {
  background: transparent;
  padding: 0;
  border: none;
  width: 28px;
  height: 36px;
  display: grid;
  place-items: center;
}
.home-standard-dots button span { width: 8px; height: 8px; background: #85817d; border-radius: 50%; }
.home-standard-dots button[aria-current="true"] span { background: var(--yellow); }
.home-benefits { display: grid; gap: clamp(52px, 7vw, 96px); list-style: none; margin: 0; padding: 0; }
.home-benefit {
  min-height: 245px;
  padding-bottom: 30px;
  border-bottom: 1px solid #494644;
  scroll-margin-top: 120px;
}
.home-benefit .display {
  color: #96908a;
  font-size: clamp(74px, 9.5vw, 132px);
  line-height: .95;
  letter-spacing: normal;
  transition: color 250ms ease-out;
}
.home-benefit.is-active .display { color: var(--yellow); }
.home-benefit h3 { font-family: var(--display); font-size: clamp(27px, 3vw, 44px); line-height: 1; margin-top: 10px; text-transform: uppercase; }
.home-benefit p:last-child { color: var(--home-muted); font-size: 18px; line-height: 28px; margin-top: 8px; max-width: 39ch; }

.home-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-rate { padding: clamp(16px, 2.2vw, 28px); border: 1px solid #4d4946; border-radius: 16px; }
.home-rate h3 { font-size: 18px; }
.home-rate p { margin-top: 8px; color: var(--home-muted); }
.home-rate hr { border: 0; border-top: 1px solid #4d4946; margin: 18px 0; }
.home-rate .eyebrow { color: var(--home-muted); }
.home-rate > strong {
  display: block;
  margin-top: 1px;
  font-family: var(--display);
  font-size: clamp(39px, 5vw, 70px);
  font-weight: 900;
  line-height: .99;
  color: var(--yellow);
}
.home-rate-note { margin-top: 16px; color: var(--home-muted); font-size: 14px; }

.home-process { margin-top: var(--home-gap); }
.home-process-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 696px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.home-process h2 + p { margin-top: 24px; }
.home-process .text-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; }
.home-process-media,
.home-about-media {
  position: relative;
  overflow: hidden;
  background: #1d1b19;
  border-radius: 16px;
}
.home-process-media { aspect-ratio: 1392 / 1576; background: var(--home-paper); }
.home-process-figure { margin: 0; min-width: 0; }
.home-process-figure figcaption { margin-top: 12px; color: #55514d; }
.home-about-media { aspect-ratio: 486 / 726; }
.home-order-steps { margin-top: clamp(25px, 5vw, 54px); border-top: 1px solid #c7c3be; }
.home-order-step { border-bottom: 1px solid #c7c3be; }
.home-order-step > button {
  color: var(--home-ink);
  background: transparent;
  border: 0;
  min-height: 58px;
  width: 100%;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-align: left;
}
.home-order-step > button span { font-family: var(--display); font-size: 24px; }
.home-order-step > button strong { font-size: 16px; }
.home-order-step > p { padding: 0 20px 16px 44px; margin: 0; }

.home-showreel { position: relative; }
.home-reel-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #272321;
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
  cursor: zoom-in;
}
.home-reel-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #181515e6, #18151546 26%, transparent 55%);
  pointer-events: none;
}
.home-reel-media .home-reel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms ease-in-out;
}
.home-reel-media .home-reel-image.is-current { opacity: 1; z-index: 1; }
.home-reel-media .home-reel-image.is-outgoing { z-index: 0; }
.home-reel-media::after { z-index: 2; }
.home-showreel.can-animate .home-reel-image.is-current,
.home-showreel.can-animate .home-reel-image.is-outgoing { animation: home-reel-zoom 4.8s linear both paused; }
.home-showreel.is-running .home-reel-image.is-current { animation-play-state: running; }
@keyframes home-reel-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.home-reel-caption {
  position: absolute;
  inset: auto clamp(26px, 5vw, 70px) clamp(28px, 4vw, 48px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  z-index: 1;
  pointer-events: none;
}
.home-reel-caption h2,
.home-reel-caption p {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: normal;
}
.home-reel-caption h2 { color: var(--yellow); font-size: clamp(48px, 7.3vw, 96px); line-height: .875; }
.home-reel-caption p { margin-top: 10px; font-size: clamp(19px, 2.5vw, 36px); line-height: 1; }
.home-reel-controls,
.home-reel-dots,
.home-reel-arrows { display: flex; align-items: center; }
.home-reel-controls { pointer-events: auto; gap: 14px; }
.home-reel-dots button {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
}
.home-reel-dots button > span {
  position: relative;
  width: 6px;
  height: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: #b7b0aa;
  transition: width 180ms ease-out;
}
.home-reel-dots button[aria-current="true"] > span { background: var(--yellow); }
.home-showreel.can-animate .home-reel-dots button[aria-current="true"] { flex-basis: 62px; width: 62px; }
.home-showreel.can-animate .home-reel-dots button[aria-current="true"] > span { width: 52px; background: #817429; }
.home-showreel.can-animate .home-reel-dots button[aria-current="true"] > span > span {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform-origin: left center;
  animation: home-reel-progress 4.8s linear both paused;
}
.home-showreel.is-running .home-reel-dots button[aria-current="true"] > span > span { animation-play-state: running; }
@keyframes home-reel-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.home-reel-arrows { gap: 7px; }
.home-reel-arrows .icon-button { color: var(--home-light); background: #181515cc; border-color: #675f59; }
.home-reel-arrows .icon-button:hover { background: #3d3833; }
.home-reel-arrows .control-icon { width: 20px; height: 20px; }

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 486px) minmax(0, 588px);
  align-items: center;
  gap: clamp(30px, 5vw, 48px);
}
.home-about-content blockquote {
  font-size: 20px;
  line-height: 30px;
  padding-top: 24px;
  border-top: 1px solid #514a43;
  margin: clamp(24px, 4vw, 60px) 0 0;
}
.home-about-content cite {
  display: block;
  color: var(--home-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.home-facts { margin: clamp(28px, 4vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-facts > div { display: grid; align-content: start; gap: 8px; }
.home-facts dt { color: var(--home-muted); font-size: 14px; line-height: 20px; max-width: 13ch; }
.home-facts dd { grid-row: 1; margin: 0; color: var(--yellow); font-family: var(--display); font-size: clamp(34px, 6vw, 76px); line-height: .9; }

@media (max-width: 1099px) {
  .home-hero-buttons { flex-direction: column; align-items: stretch; width: min(100%, 400px); gap: 12px; }
  .home-hero-buttons .button,
  .home-hero-buttons .button:first-child { width: 100%; min-width: 0; justify-content: flex-start; text-align: left; }
  .home-category-grid, .home-rates { gap: 16px; }
  .home-reel-controls { gap: 4px; }
  .home-reel-dots button { flex-basis: 18px; width: 18px; }
}

@media (max-width: 759px) {
  .home-page { --home-edge: clamp(16px, 5vw, 24px); }
  .home-panel > .home-wrap { width: calc(100% - 32px); }
  .home-heading { font-size: clamp(49px, 11.6vw, 70px); }
  .home-heading-small { font-size: clamp(38px, 9vw, 44px); }
  .home-hero {
    display: grid;
    align-items: end;
    min-height: min(810px, max(685px, 95svh));
  }
  .home-hero-media { bottom: 0; }
  .home-hero-media picture img, .home-hero-media video { object-position: 59% center; }
  .home-hero-media::after {
    background: linear-gradient(0deg, #151618 2%, #151618bd 43%, transparent 73%),
      linear-gradient(90deg, #1516188a 0%, transparent 75%);
  }
  .home-hero-copy { padding-top: 260px; padding-bottom: 28px; }
  .home-descriptor { margin-bottom: 17px; }
  .home-hero h1 { font-size: clamp(50px, 13.7vw, 96px); }
  .home-lead { font-size: 18px; line-height: 26px; }
  .home-hero h1 + p { margin-top: 19px; }
  .home-hero-buttons { margin-top: 22px; max-width: none; }
  .home-motion-toggle { bottom: auto; top: 76px; }
  .home-explore { margin-top: 25px; }
  .home-split-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .home-explore .home-split-head p { margin-bottom: 16px; }
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-category { min-height: clamp(170px, 52vw, 300px); border-radius: 12px; }
  .home-category-custom, .home-category-acc { grid-column: auto; }
  .home-category-acc > img, .home-category-custom > img { left: 0; width: 100%; }
  .home-category strong { max-width: 100%; font-size: clamp(26px, 6.6vw, 35px); padding-right: 1rem; }
  .home-category small { font-size: 12px; }
  .home-category-arrow { right: 10px; bottom: 12px; }
  .home-standards { display: block; }
  .home-standard-head {
    top: 60px;
    z-index: 2;
    padding: 14px 0 14px;
    background: #151618;
  }
  .home-standard-head > p { margin-top: 4px; font-size: 15px; line-height: 21px; }
  .home-standard-progress { margin: 4px 0; }
  .home-standard-dots button { height: 32px; }
  .home-benefits { gap: 24px; }
  .home-benefit { min-height: 200px; padding-top: 22px; scroll-margin-top: 200px; }
  .home-rates { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .home-rate { border-radius: 12px; }
  .home-rate h3 { font-size: 16px; }
  .home-rate p { font-size: 14px; line-height: 21px; min-height: 42px; }
  .home-process-grid, .home-about { grid-template-columns: 1fr; }
  .home-order-steps { margin-top: 24px; }
  .home-order-step > button { gap: 6px; }
  .home-order-step > p { padding-left: 38px; }
  .home-process-media { max-height: 540px; }
  .home-showreel { display: flex; flex-direction: column; }
  .home-reel-media {
    display: flex;
    justify-content: flex-start;
    overflow: auto hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border-radius: 16px;
    touch-action: pan-x pan-y pinch-zoom;
    order: 2;
  }
  .home-reel-media::-webkit-scrollbar { display: none; }
  .home-reel-media .home-reel-image,
  .home-reel-media .home-reel-image.is-current {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    inset: auto;
    opacity: 1;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: none;
  }
  .home-reel-media::after { display: none; }
  .home-reel-caption { display: contents; }
  .home-reel-caption > div:first-child { order: 1; margin-bottom: 16px; }
  .home-reel-caption h2 { font-size: clamp(52px, 12vw, 70px); }
  .home-reel-caption p { font-size: 25px; }
  .home-reel-controls { display: grid; grid-template-columns: minmax(0, 1fr) max-content; order: 3; margin-top: 8px; }
  .home-reel-dots button { flex: 1 1 18px; max-width: 30px; height: 44px; }
  .home-reel-arrows { gap: 4px; }
  .home-reel-arrows .icon-button { width: 44px; height: 44px; }
  .home-reel-pause { display: none; }
  .home-about-content blockquote { margin-top: 28px; }
  .home-about-media { width: 100%; max-height: 630px; }
  .home-facts dd { font-size: clamp(39px, 11vw, 66px); }
}

@media (prefers-reduced-motion: reduce) {
  .home-page video { display: none; }
  .home-reel-media .home-reel-image,
  .home-reel-dots button > span,
  .home-benefit .display,
  .home-category > img { animation-name: none !important; transition-property: none !important; }
}
