/* Commercial page: three editorial directions with selectable background scenes. */
.commercial-page {
  min-width: 0;
}

.commercial-page .explore-main {
  min-height: 0;
}

.commercial-page .explore-shell {
  width: min(calc(100% - 96px), 1400px);
}

.commercial-hero {
  min-height: 440px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 34%, rgba(121, 196, 252, .35), transparent 32%),
    linear-gradient(112deg, #0b286f 0%, #1643ad 57%, #5348ad 100%);
}

.commercial-hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.commercial-hero::after {
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 16, 52, .76), rgba(3, 16, 52, .45) 36%, rgba(3, 16, 52, .1) 76%);
  pointer-events: none;
}

.commercial-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 440px;
  padding-block: 72px;
}

html.cms-preview-mode .commercial-hero-background { pointer-events: auto; }
html.cms-preview-mode .commercial-hero-inner { pointer-events: none; }
html.cms-preview-mode .commercial-hero-copy { pointer-events: auto; }

.commercial-hero-copy {
  position: relative;
  z-index: 1;
}

.commercial-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.commercial-hero .commercial-eyebrow {
  color: #b9deff;
}

.commercial-hero h1 {
  max-width: none;
  margin: 25px 0 0;
  font-size: clamp(56px, 7vw, 100px);
  letter-spacing: -.06em;
}

.commercial-hero-copy p {
  margin-top: 24px;
  color: rgba(244, 249, 255, .85);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
}

.commercial-hero-art {
  position: absolute;
  right: 3%;
  top: 50%;
  display: grid;
  place-items: center;
  width: min(34vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 244, 255, .34);
  border-radius: 50%;
  box-shadow: 0 0 0 64px rgba(221, 238, 255, .04), 0 0 0 128px rgba(221, 238, 255, .035);
  color: rgba(240, 248, 255, .25);
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 72px);
  font-style: italic;
  line-height: .9;
  transform: translateY(-50%) rotate(-14deg);
  pointer-events: none;
}

.commercial-hero-art span + span {
  margin-top: -42%;
  margin-left: 28%;
}

/* The circle belongs to the default artwork, not to a replacement photo. */
.commercial-hero-background:not([src="assets/img/commercial/hero-background.svg"]) + .commercial-hero-inner .commercial-hero-art {
  display: none;
}

.commercial-categories {
  padding: 86px 0 120px;
}

.commercial-section-heading {
  padding-bottom: 27px;
  border-bottom: 1px solid var(--xp-line);
}

.commercial-section-heading .commercial-eyebrow {
  color: var(--xp-blue);
}

.commercial-section-heading h2 {
  margin-top: 15px;
  color: var(--xp-ink);
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.commercial-direction-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b214a;
}

.commercial-direction-stage::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 17, 42, .77), rgba(5, 21, 49, .56) 55%, rgba(4, 17, 42, .67));
  content: "";
  pointer-events: none;
}

.commercial-direction-scenes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.commercial-direction-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.055);
  transition: opacity .48s ease, transform .9s cubic-bezier(.2,.72,.2,1);
  pointer-events: none;
}

.commercial-direction-photo[data-direction-photo="life"] { object-position: 60% center; }
.commercial-direction-photo[data-direction-photo="ecommerce"] { object-position: 66% center; }

.commercial-direction-photo.is-active {
  opacity: 1;
  transform: scale(1);
}

.commercial-category-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid rgba(231, 240, 255, .35);
}

.commercial-category {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  overflow: hidden;
  background: rgba(5, 20, 47, .06);
  transition: background .38s ease;
}

.commercial-category + .commercial-category {
  border-left: 1px solid rgba(231, 240, 255, .35);
}

.commercial-category.is-active {
  background: rgba(9, 37, 85, .32);
}

.commercial-category::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #a7c7ff;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .36s cubic-bezier(.2,.72,.2,1);
  pointer-events: none;
}

.commercial-category.is-active::after {
  transform: scaleX(1);
}

.commercial-category-number {
  position: absolute;
  z-index: 1;
  top: 35px;
  left: 35px;
  color: #b9d1ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  pointer-events: none;
}

.commercial-category h3 {
  margin: 0;
  font-weight: 500;
}

.commercial-category-switch {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 35px 35px 32px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-align: left;
  cursor: pointer;
}

.commercial-category-switch:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -8px;
}

.commercial-category-arrow {
  flex: 0 0 auto;
  margin-bottom: 4px;
  color: #c9dcff;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  opacity: .72;
  transform: translate(-5px, 5px);
  transition: opacity .3s ease, transform .38s cubic-bezier(.2,.72,.2,1);
}

.commercial-category.is-active .commercial-category-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.commercial-category-ornament {
  position: absolute;
  top: 49px;
  right: -36px;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(224, 237, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(224, 237, 255, .035), 0 0 0 53px rgba(224, 237, 255, .025);
  pointer-events: none;
}

.commercial-category:nth-child(2) .commercial-category-ornament {
  border-radius: 2px;
  transform: rotate(32deg);
}

.commercial-category:nth-child(3) .commercial-category-ornament {
  border-radius: 50% 4px 50% 4px;
  transform: rotate(25deg);
}

@media (max-width: 900px) {
  .commercial-page .nav,
  .commercial-page .nav.scrolled { height: 64px; }
  .commercial-page .nav-inner { gap: 12px; }
  .commercial-page .nav-links { gap: 2px; margin-left: 0; }
  .commercial-page .explore-main { padding-top: 64px; }
  .commercial-page .explore-shell { width: calc(100% - 44px); }
  .commercial-hero,
  .commercial-hero-inner { min-height: 380px; }
  .commercial-hero-art { right: -10%; width: 52vw; opacity: .7; }
  .commercial-category { min-height: 240px; }
  .commercial-category-number { top: 25px; left: 23px; }
  .commercial-category-switch { padding: 25px 23px; }
}

@media (max-width: 640px) {
  .commercial-hero,
  .commercial-hero-inner { min-height: 350px; }
  .commercial-hero-inner { padding-block: 60px; }
  .commercial-hero-art { right: -32%; width: 80vw; opacity: .45; }
  .commercial-hero h1 { font-size: clamp(56px, 15vw, 76px); }
  .commercial-hero-copy p { max-width: 15em; }
  .commercial-categories { padding: 62px 0 84px; }
  .commercial-category-list { grid-template-columns: 1fr; }
  .commercial-category { min-height: 160px; }
  .commercial-category + .commercial-category { border-left: 0; border-top: 1px solid rgba(231, 240, 255, .35); }
  .commercial-category-number { top: 26px; left: 18px; }
  .commercial-category-switch { padding: 26px 18px; font-size: 36px; }
  .commercial-category-ornament { top: -38px; right: 5%; width: 150px; }
  .commercial-page .explore-footer .explore-shell { align-items: flex-start; flex-direction: column; gap: 18px; }
  .commercial-page .explore-footer nav { flex-wrap: wrap; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .commercial-direction-photo,
  .commercial-category,
  .commercial-category::after,
  .commercial-category-arrow { transition-duration: .01ms; }
  .commercial-direction-photo { transform: none; }
}
