.home-hero {
  --hero-gutter: clamp(76px, 10vw, 164px);
  --hero-base: #151310;
  --hero-paper: #fffaf5;
  --hero-label: #ffe0d4;
  --hero-orange: #ff784e;
  --hero-top-shade: .61;
  --hero-bottom-shade: .82;
  --hero-floor: calc(28px + env(safe-area-inset-bottom, 0px));
  --hero-rail-width: min(610px, 65vw);
  position: relative;
  isolation: isolate;
  color: var(--hero-paper);
  background: var(--hero-base);
}
@media (prefers-color-scheme: dark) {
  .home-hero { --hero-base: #0f0d0c; --hero-bottom-shade: .92; }
}
.home-hero-header.site-header:not(.is-stuck):not(.menu-active) {
  background: transparent;
  backdrop-filter: none;
}
.home-hero-header.site-header:not(.is-stuck):not(.menu-active) .logo img {
  filter: brightness(0) invert(1);
  opacity: 1;
}
.home-hero-header.site-header:not(.is-stuck):not(.menu-active) .social-icon { color: #fffaf5; }
.home-hero-header.site-header:not(.is-stuck):not(.menu-active) .social-icon:hover { color: #ff784e; }
.home-hero-header.site-header:not(.is-stuck):not(.menu-active) .menu-btn {
  background: rgba(15, 13, 12, .3);
  border-color: rgba(255, 255, 255, .5);
}
.home-hero-header.site-header:not(.is-stuck):not(.menu-active) .menu-btn span { background: #fff; }

.home-hero-viewport { overflow: hidden; touch-action: pan-y pinch-zoom; }
.home-hero .swiper-wrapper { display: grid; position: relative; }
.home-hero .swiper-slide {
  grid-area: 1 / 1;
  position: relative;
  isolation: isolate;
  background: var(--hero-base);
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  pointer-events: none;
}
.home-hero.is-ready .swiper-slide { visibility: hidden; }
.home-hero.is-ready .is-hero-outgoing { visibility: visible; }
.home-hero.is-ready .swiper-slide-active { visibility: visible; z-index: 1; pointer-events: auto; }
.home-hero:not(.is-ready) .swiper-slide:first-child { pointer-events: auto; }
.home-hero:not(.is-ready) .swiper-slide:not(:first-child) { display: none; }

.home-hero-scene {
  --copy-shade: linear-gradient(90deg, rgba(12, 10, 9, .88), rgba(12, 10, 9, .69) 33%, rgba(12, 10, 9, .23) 68%, transparent 92%);
  display: grid;
  align-content: end;
  padding: clamp(102px, 15svh, 162px) var(--hero-gutter) clamp(81px, 10svh, 118px);
}
/* Each pair is the crop alignment, not the coordinates of the subject. */
.home-hero-agency {
  --image-desktop: 36% 29%;
  --image-tablet: 32% 42%;
  --image-mobile: 44% 36%;
  --image-zoom-origin: 24% 31%;
}
.home-hero-print {
  --image-desktop: 59% 38%;
  --image-tablet: 50% 61%;
  --image-mobile: 50% 42%;
  --image-zoom-origin: 60% 46%;
  --copy-shade: linear-gradient(79deg, rgba(15, 11, 7, .91) 2%, rgba(15, 11, 7, .76) 35%, rgba(15, 11, 7, .16) 73%, transparent);
}
.home-hero-web {
  --image-desktop: 54% 37%;
  --image-tablet: 51% 16%;
  --image-mobile: 48% 23%;
  --image-zoom-origin: 48% 25%;
  --copy-shade: linear-gradient(90deg, rgba(26, 13, 8, .91), rgba(38, 16, 8, .76) 33%, rgba(40, 15, 3, .15) 73%, transparent);
}
.home-hero-expo {
  --image-desktop: 57% 30%;
  --image-tablet: 51% 32%;
  --image-mobile: 43% 30%;
  --image-zoom-origin: 56% 36%;
  --copy-shade: linear-gradient(100deg, rgba(9, 12, 9, .90), rgba(9, 12, 9, .74) 28%, rgba(9, 12, 9, .16) 70%, transparent);
}
.home-hero-pack {
  --image-desktop: 38% 39%;
  --image-tablet: 38% 29%;
  --image-mobile: 35% 34%;
  --image-zoom-origin: 39% 40%;
  --copy-shade: linear-gradient(90deg, rgba(21, 9, 7, .92), rgba(21, 9, 7, .72) 37%, rgba(21, 9, 7, .16) 74%, transparent);
}
.home-hero-identity {
  --image-desktop: 62% 34%;
  --image-tablet: 52% 45%;
  --image-mobile: 36% 22%;
  --image-zoom-origin: 66% 47%;
  --copy-shade: linear-gradient(90deg, rgba(9, 8, 7, .94), rgba(9, 8, 7, .86) 34%, rgba(9, 8, 7, .12) 80%, transparent);
}
.home-hero-media, .home-hero-mask, .home-hero-photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-hero-media { z-index: -1; overflow: hidden; }
.home-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 8, 7, var(--hero-top-shade)), transparent 27%, transparent 63%, rgba(9, 8, 7, var(--hero-bottom-shade))),
    var(--copy-shade);
}
.home-hero-mask { overflow: hidden; }
.home-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-desktop);
  transform-origin: var(--image-zoom-origin, center);
}
@media (min-width: 1001px) and (orientation: landscape) {
  .home-hero-agency .home-hero-photo img {
    position: absolute;
    left: -2.64%;
    bottom: 0;
    width: 111%;
    max-width: none;
    height: 111%;
    transform-origin: 24% 24%;
  }
}
@media (max-width: 1100px) and (orientation: portrait) {
  .home-hero-photo img { object-position: var(--image-tablet); }
}
@media (max-width: 700px) and (orientation: portrait) {
  .home-hero-photo img { object-position: var(--image-mobile); }
}
.home-hero-photo img:not([src]) { visibility: hidden; }
.home-hero-copy { width: min(100%, 850px); }
.home-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 clamp(12px, 2.3svh, 23px);
  color: var(--hero-label);
  font: 700 clamp(.68rem, 1.1vw, .84rem)/1.25 var(--ff-display);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-hero-kicker::before { content: ''; width: 26px; height: 2px; background: var(--c-primary); }
.home-hero-title {
  margin: 0;
  color: var(--hero-paper);
  font: 700 clamp(2.8rem, 7.45vw, 8.2rem)/.91 var(--ff-display);
  letter-spacing: -.073em;
}
.home-hero-title > span { display: block; overflow: hidden; padding: .015em .08em .10em 0; }
.home-hero-title > span > span { display: inline-block; }
.home-hero-title > span + span { color: var(--hero-orange); }
.home-hero-pack .home-hero-title > span, .home-hero-identity .home-hero-title > span { font-size: .86em; }
.home-hero-description {
  margin: clamp(10px, 1.8svh, 22px) 0 0;
  max-width: 48ch;
  color: var(--hero-paper);
  font-size: clamp(.96rem, 1.22vw, 1.18rem);
  line-height: 1.48;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px 19px; margin-top: clamp(16px, 3svh, 33px); }
.home-hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  min-height: 46px;
  padding: 9px 15px;
  font: 700 clamp(.73rem, 1.06vw, .89rem)/1.25 var(--ff-display);
  text-decoration: none;
  border: 1px solid transparent;
}
.home-hero-actions .home-hero-cta { background: var(--hero-orange); color: #17100e; }
.home-hero-actions .home-hero-cta:hover { background: var(--hero-paper); }
.home-hero-actions .home-hero-quote { color: var(--hero-paper); border-color: rgba(255, 255, 255, .72); background: rgba(12, 9, 8, .26); }
.home-hero-actions .home-hero-quote:hover { background: var(--hero-paper); color: #17100e; }
.home-hero-credit {
  position: absolute;
  right: var(--hero-gutter);
  bottom: calc(var(--hero-floor) + 6px);
  margin: 0;
  color: var(--hero-paper);
  font: 600 .74rem/1.25 var(--ff-display);
  letter-spacing: .06em;
}
.home-hero-controls:not([hidden]) { display: contents; }
.home-hero-controls button {
  cursor: pointer;
  color: var(--hero-paper);
  border: 0;
  background: transparent;
  font-family: var(--ff-display);
}
.home-hero-controls button:hover, .home-hero-controls button[aria-current] { color: var(--hero-orange); }
.home-hero-edge {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .52) !important;
  background: rgba(13, 11, 10, .38) !important;
  font-size: 1.45rem;
  line-height: 1;
}
.home-hero-back { left: clamp(14px, 3.4vw, 54px); }
.home-hero-forward { right: clamp(14px, 3.4vw, 54px); }
.home-hero-rail {
  position: absolute;
  left: var(--hero-gutter);
  bottom: var(--hero-floor);
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: var(--hero-rail-width);
}
.home-hero-count { white-space: nowrap; font: 700 .79rem/1 var(--ff-display); font-variant-numeric: tabular-nums; }
.home-hero-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.home-hero-tabs button { min-height: 36px; padding: 0 4px; font-size: .69rem; font-weight: 700; }
.home-hero-tabs button[aria-current] { box-shadow: inset 0 -2px var(--hero-orange); }
.home-hero-progress { height: 2px; background: rgba(255,255,255,.45); overflow: hidden; }
.home-hero-progress span { display: block; height: 100%; background: var(--hero-orange); transform-origin: left; transform: scaleX(0); }
.home-hero-play { width: 44px; height: 44px; font-size: 1rem; }
.home-hero-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home-hero :focus-visible { outline: 2px solid var(--hero-orange); outline-offset: 2px; }

@media (max-width: 1000px) {
  .home-hero { --hero-gutter: 76px; --hero-rail-width: min(500px, 61vw); }
  .home-hero-credit { right: 78px; }
}
@media (max-width: 700px) {
  .home-hero {
    --hero-gutter: clamp(18px, 5.7vw, 40px);
    --hero-floor: calc(17px + env(safe-area-inset-bottom, 0px));
    --hero-rail-width: calc(100% - var(--hero-gutter) - 60px);
  }
  .home-hero-scene {
    --copy-shade: linear-gradient(0deg, rgba(10, 8, 7, .96) 5%, rgba(10, 8, 7, .79) 37%, rgba(10, 8, 7, .48) 63%, rgba(10, 8, 7, .1) 85%);
    padding: 96px var(--hero-gutter) 142px;
  }
  .home-hero-pack {
    --copy-shade: linear-gradient(90deg, rgba(21, 9, 7, .43), transparent 84%),
                  linear-gradient(0deg, rgba(10, 8, 7, .96) 5%, rgba(10, 8, 7, .77) 37%, rgba(10, 8, 7, .40) 63%, rgba(10, 8, 7, .07) 85%);
  }
  .home-hero-title { font-size: clamp(2.45rem, 9.6vw, 4.5rem); }
  .home-hero-description { max-width: 39ch; }
  .home-hero-actions { gap: 8px; }
  .home-hero-actions a { padding-inline: 10px; }
  .home-hero-credit { left: var(--hero-gutter); right: auto; bottom: calc(var(--hero-floor) + 79px); }
  .home-hero-edge { width: 44px; height: 44px; top: 35%; }
  .home-hero-back { left: 8px; }
  .home-hero-forward { right: 8px; }
  .home-hero-rail { grid-template-columns: 1fr auto; gap: 0; }
  .home-hero-count { grid-area: 1 / 1; }
  .home-hero-play { grid-area: 1 / 2; }
  .home-hero-track { grid-area: 2 / 1 / 3 / -1; }
  .home-hero-tabs button { position: relative; min-height: 31px; padding: 0; }
  .home-hero-tabs button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .home-hero-tabs button::before { content: ''; display: inline-block; vertical-align: middle; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
}
@media (max-width: 1100px) and (orientation: portrait) {
  .home-hero-print {
    --copy-shade: linear-gradient(90deg, rgba(15, 11, 7, .9), rgba(15, 11, 7, .58) 56%, rgba(15, 11, 7, .12)),
                  linear-gradient(180deg, transparent 42%, rgba(15, 11, 7, .24) 70%);
  }
}
@media (700px < width <= 1100px) and (orientation: portrait) {
  /* Keep the copy above the printed logo on portrait tablets. */
  .home-hero-print {
    align-content: start;
    padding-top: clamp(93px, 15svh, 135px);
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  .home-hero-print .home-hero-actions { flex-wrap: nowrap; }
  .home-hero-print .home-hero-cta { min-width: 0; }
  .home-hero-print .home-hero-quote { flex-shrink: 0; }
}
@media (max-width: 374px) and (640px < height <= 700px) and (orientation: portrait) {
  .home-hero:has(.home-hero-print.swiper-slide-active) .home-hero-edge { top: 16%; }
}
@media (max-width: 700px) and (max-height: 640px) and (orientation: portrait) {
  .home-hero-edge { top: 16%; }
  .home-hero-title { font-size: clamp(2.08rem, 9vw, 3.2rem); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .home-hero { --hero-gutter: 64px; --hero-floor: 10px; }
  .home-hero-scene { align-content: center; padding-block: 64px 66px; }
  .home-hero-title { font-size: clamp(1.92rem, 5.6vw, 3.6rem); }
  .home-hero-kicker { margin-bottom: 7px; }
  .home-hero-description { max-width: 57ch; margin-top: 5px; font-size: .88rem; }
  .home-hero-actions { margin-top: 9px; }
  .home-hero-actions a { min-height: 40px; }
  .home-hero-credit { display: none; }
  .home-hero-edge { top: 50%; }
  .home-hero-rail { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .home-hero-count { grid-area: 1 / 1; }
  .home-hero-track { grid-area: 1 / 2; }
  .home-hero-play { grid-area: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero-progress, .home-hero-play { display: none; }
  .home-hero-header.site-header, .home-hero-header.site-header .logo img { transition: none; }
}
