/* Native shared subpage hero. Typography, buttons and font loading use theme tokens. */
[data-editorial-hero] {
  --hero-title-rise: 11.2cqw;
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--fotogenic-ink);
  font-family: var(--fotogenic-font-sans);
  padding: calc(var(--fotogenic-nav-height) + 64px) 0 56px;
}
[data-editorial-hero] .editorial-hero__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  mask-image: linear-gradient(#000 45%, transparent);
}
[data-editorial-hero] .editorial-hero__shell {
  width: min(var(--fotogenic-nav-max-width), calc(100% - 2 * var(--fotogenic-nav-gutter)));
  margin-inline: auto;
}
[data-editorial-hero].editorial-hero--split .editorial-hero__shell {
  --hero-column-gap: clamp(28px,4vw,64px);
  display: grid;
  grid-template-columns: minmax(0, .44fr) minmax(0, .56fr);
  gap: var(--hero-column-gap);
  align-items: center;
}
[data-editorial-hero] .editorial-hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}
/* Reserve the rotated title's rise before it enters the eyebrow line. */
[data-editorial-hero] .editorial-hero__heading {
  container-type: inline-size;
}
[data-editorial-hero] .editorial-hero__eyebrow {
  margin: 0 0 calc(16px + var(--hero-title-rise));
  color: var(--fotogenic-accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
/* Native Anton proportions. Desktop titles may overlap the media column. */
[data-editorial-hero] .editorial-hero__poster {
  position: relative;
  container-type: inline-size;
  width: 100%;
}
[data-editorial-hero] h1 {
  margin: 0;
  width: 160%;
  font-family: var(--fotogenic-font-display);
  font-weight: 400;
  font-size: 15cqw;
  line-height: var(--fotogenic-display-leading, 1);
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: #090909;
}
[data-editorial-hero] .editorial-hero__word {
  display: block;
  width: 100%;
  font-size: calc(25.5cqw * var(--hero-fit, 1));
  transform: rotate(-4deg);
  transform-origin: left bottom;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
[data-editorial-hero] .editorial-hero__word:lang(de) {
  hyphens: auto;
}
/* Japanese titles break between phrases, not inside a word. --hero-fit is set by fit.js only for titles that do not fit. */
[data-editorial-hero] :is(.editorial-hero__word, .editorial-hero__ribbon-text):lang(ja) {
  word-break: auto-phrase;
}
[data-editorial-hero] .editorial-hero__ribbon {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: var(--fotogenic-display-paper-top) .16em .2em;
  margin: .015em 0 0 -.015em;
  font-size: calc(20.5cqw * var(--hero-fit, 1));
  transform: rotate(-4deg);
  transform-origin: left center;
  background: linear-gradient(105deg,#4931dc,#7532c5 65%,#a32191);
  box-shadow: 5px 6px 0 var(--fotogenic-ribbon-shadow);
  color: #fff;
}
/* The ribbon text starts where the title's first line starts; the centred slider hero centres it below. */
[data-editorial-hero] .editorial-hero__ribbon-text {
  display: block;
  text-align: start;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
[data-editorial-hero] .editorial-hero__intro {
  max-width: 40ch;
  margin: 36px 0 0;
  font-size: var(--fotogenic-type-hero-lead);
  line-height: var(--fotogenic-leading-hero-lead);
  letter-spacing: -.025em;
  color: #252329;
  text-wrap: balance;
}
[data-editorial-hero] .editorial-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
}
[data-editorial-hero] .editorial-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--fotogenic-shell-button-height);
  padding: 0 var(--fotogenic-shell-button-padding);
  border: 1px solid var(--fotogenic-ink);
  border-radius: var(--fotogenic-button-radius);
  background: var(--fotogenic-ink);
  color: #fff;
  font-size: var(--fotogenic-shell-button-font-size);
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}
[data-editorial-hero] .editorial-hero__action:hover {
  background: #29272e;
  color: #fff;
}
[data-editorial-hero] .editorial-hero__action--secondary {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #252329;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 5px;
}
[data-editorial-hero] .editorial-hero__action--secondary:hover {
  background: transparent;
  color: var(--fotogenic-accent);
}
[data-editorial-hero] :is(a,button,[tabindex]):focus-visible {
  outline: 3px solid var(--fotogenic-accent);
  outline-offset: 4px;
}
[data-editorial-hero] .editorial-hero__collage {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  align-items: stretch;
}
[data-editorial-hero] .editorial-hero__media-slot {
  min-width: 0;
}
[data-editorial-hero][data-media-ratio="4/5"] {
  --hero-media-ratio: 4/5;
}
[data-editorial-hero] .editorial-hero__main-image {
  position: relative;
  min-width: 0;
}
[data-editorial-hero] .editorial-hero__main-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--hero-media-ratio,2/3);
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}
[data-editorial-hero] .editorial-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
}
[data-editorial-hero] .editorial-hero__video[data-playback="playing"] {
  opacity: 1;
}
[data-editorial-hero] .editorial-hero__video[hidden] {
  display: none;
}
[data-editorial-hero] .editorial-hero__thumbnails {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
[data-editorial-hero] .editorial-hero__thumbnail {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
}
[data-editorial-hero] .editorial-hero__thumbnail img {
  aspect-ratio: var(--hero-media-ratio,2/3);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Native image-row framing follows the selected image, including cloned slides. */
[data-editorial-hero] [data-hero-image-position^="left "] { --hero-image-x: left; }
[data-editorial-hero] [data-hero-image-position^="right "] { --hero-image-x: right; }
[data-editorial-hero] [data-hero-image-position$=" top"] { --hero-image-y: top; }
[data-editorial-hero] [data-hero-image-position$=" bottom"] { --hero-image-y: bottom; }
[data-editorial-hero] :is(img,video)[data-hero-image-position] {
  object-position: var(--hero-image-x,center) var(--hero-image-y,center);
}
[data-editorial-hero] :is(img,video)[data-hero-image-fit="cover"] { object-fit: cover; }
[data-editorial-hero] :is(img,video)[data-hero-image-fit="contain"] { object-fit: contain; }
[data-editorial-hero].editorial-hero--slider {
  --hero-title-rise: 9cqw;
}
[data-editorial-hero].editorial-hero--slider .editorial-hero__copy {
  width: min(100%,560px);
  margin-inline: auto;
  text-align: center;
}
[data-editorial-hero].editorial-hero--slider .editorial-hero__poster {
  width: 80%;
  margin-inline: auto;
}
[data-editorial-hero].editorial-hero--slider h1 {
  margin-left: -30%;
}
/* Desktop: the centred title may use the shell width, so three-word titles stay on one line. */
@media (min-width: 1001px) {
  [data-editorial-hero].editorial-hero--slider h1 {
    --hero-slider-title: min(232cqw, calc(100vw - 96px));
    width: var(--hero-slider-title);
    margin-left: calc((100cqw - var(--hero-slider-title)) / 2);
  }
}
[data-editorial-hero].editorial-hero--slider .editorial-hero__ribbon {
  transform-origin: center;
  margin-left: 50%;
  translate: -50% 0;
}
[data-editorial-hero].editorial-hero--slider .editorial-hero__word {
  transform-origin: left bottom;
  text-align: center;
}
[data-editorial-hero].editorial-hero--slider .editorial-hero__ribbon-text {
  text-align: center;
}
/* Desktop: pivot where the 160% title box used to start, so the tilt keeps the same gap above the ribbon. */
@media (min-width: 1001px) {
  [data-editorial-hero].editorial-hero--slider .editorial-hero__word {
    transform-origin: calc(50% - 80cqw) bottom;
  }
}
[data-editorial-hero].editorial-hero--slider .editorial-hero__intro {
  max-width: 44ch;
  margin-inline: auto;
}
[data-editorial-hero].editorial-hero--slider .editorial-hero__actions {
  justify-content: center;
}
[data-editorial-hero] .editorial-hero__progress {
  display: flex;
  justify-content: flex-start;
  flex: 1;
  pointer-events: auto;
}
[data-editorial-hero] .editorial-hero__step {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 44px;
  height: 44px;
  padding: 7px;
  border: 0;
  border-radius: var(--fotogenic-button-radius);
  background: transparent;
  cursor: pointer;
}
[data-editorial-hero] .editorial-hero__step > span {
  display: block;
  width: 100%;
  height: 5px;
  background: #352d492b;
  border-radius: 6px;
  overflow: hidden;
}
[data-editorial-hero] .editorial-hero__step i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,#925bfa,#b599ff);
  transform: scaleX(0);
  transform-origin: left center;
}
[data-editorial-hero] .editorial-hero__step.is-current i, [data-editorial-hero] .editorial-hero__step.is-complete i {
  transform: scaleX(1);
}
/* Desktop edge composition and page-owned foreground media clearance. */
@media (min-width: 1001px) {
  [data-editorial-hero].editorial-hero--split {
    padding-top: calc(var(--fotogenic-nav-height) + 36px);
  }
  [data-editorial-hero].editorial-hero--split .editorial-hero__copy {
    translate: 0 -20px;
  }
  [data-editorial-hero].editorial-hero--edge-media {
    container-type: inline-size;
    --hero-edge-bleed: max(var(--fotogenic-nav-gutter), calc((100cqw - var(--fotogenic-nav-max-width)) / 2));
  }
  /* Let the enlarged media size the centered row, including longer headings. */
  [data-editorial-hero].editorial-hero--edge-media .editorial-hero__collage {
    box-sizing: border-box;
    width: calc(100% + var(--hero-edge-bleed) - 16px);
  }
  [data-editorial-hero].editorial-hero--split[data-media-clearance="wide"] .editorial-hero__collage {
    padding-inline-start: 80px;
  }
}
@media (min-width: 1440px) {
  [data-editorial-hero].editorial-hero--split .editorial-hero__intro {
    width: calc(100% + var(--hero-column-gap) / 2);
    max-width: 48ch;
  }
}
@media (max-width: 1000px) {
  [data-editorial-hero] {
    --hero-title-rise: 7.4cqw;
    padding-top: calc(var(--fotogenic-nav-height) + 48px);
  }
  [data-editorial-hero].editorial-hero--split .editorial-hero__shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  [data-editorial-hero].editorial-hero--split .editorial-hero__copy {
    width: min(100%,620px);
    margin-inline: auto;
  }
  [data-editorial-hero] .editorial-hero__collage {
    width: min(100%,620px);
    margin-inline: auto;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  [data-editorial-hero] .editorial-hero__poster {
    width: 80%;
  }
  [data-editorial-hero] h1 {
    width: 130%;
    margin-left: -2.5%;
  }
  [data-editorial-hero] .editorial-hero__word {
    width: 102%;
    transform-origin: left center;
  }
  [data-editorial-hero].editorial-hero--slider .editorial-hero__word {
    margin-left: -1%;
  }
  [data-editorial-hero].editorial-hero--slider h1 {
    margin-left: -15%;
  }
  [data-editorial-hero] .editorial-hero__ribbon {
    padding-inline: .08em;
  }
  [data-editorial-hero] .editorial-hero__intro {
    max-width: 44ch;
  }
}
@media (max-width: 600px) {
  [data-editorial-hero] {
    padding-top: calc(var(--fotogenic-nav-height) + 32px);
    padding-bottom: 40px;
  }
  [data-editorial-hero] .editorial-hero__eyebrow {
    font-size: 10px;
  }
  [data-editorial-hero] .editorial-hero__intro {
    margin-top: 28px;
  }
  [data-editorial-hero] .editorial-hero__actions {
    gap: 20px;
    margin-top: 20px;
  }
  [data-editorial-hero] .editorial-hero__ribbon {
    box-shadow: 4px 5px 0 var(--fotogenic-ribbon-shadow);
  }
  [data-editorial-hero] .editorial-hero__collage {
    gap: 8px;
  }
  [data-editorial-hero] .editorial-hero__main-image img, [data-editorial-hero] .editorial-hero__video, [data-editorial-hero] .editorial-hero__thumbnail {
    border-radius: 12px;
  }
}
@media (max-width: 359px) {
  [data-editorial-hero] .editorial-hero__word {
    max-width: calc(100vw - 24px);
    margin-inline: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-editorial-hero] *, [data-editorial-hero] *::before {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }
}
@media (max-width: 1199px) and (scripting: none) {
  [data-editorial-hero] {
    padding-top: 32px;
  }
}
[data-editorial-hero].editorial-hero--slider .hero-palette::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#ffffff7d, transparent 76%);
}
[data-editorial-hero].editorial-hero--slider .hero-palette {
  --hero-wash-veil: #ffffffb0;
}
[data-editorial-hero].editorial-hero--split .hero-palette {
  background: linear-gradient(110deg, #ffffffb0, #ffffff33 70%, transparent), var(--wash-base);
  mask-image: linear-gradient(#000 94%, transparent);
}
/* The live Soft Edge Gallery owns carousel layout and interaction. These rules
only adapt its transparent edges and the accepted hero action placement. */
[data-editorial-hero] .ad-story {
  position: relative;
  width: 100%;
  margin-top: 48px;
}
[data-editorial-hero] .editorial-hero__flow {
  position: absolute;
  z-index: -1;
  bottom: calc(100% - 160px);
  width: 100%;
  height: clamp(520px, 40vw, 760px);
  overflow: visible;
  opacity: .9;
  mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent);
  pointer-events: none;
}
[data-editorial-hero] .ad-story__visual {
  position: relative;
}
[data-editorial-hero] .ad-story__actions {
  width: calc(100% - 32px);
  margin: 20px auto 0;
}
[data-editorial-hero] .ad-story__actions .editorial-hero__actions {
  margin: 0;
  gap: 8px;
}
[data-editorial-hero] .ad-story.is-ready .ad-story__actions {
  position: relative;
  z-index: 5;
  width: calc(var(--ad-story-focus-width) - 32px);
  margin: -12px auto 0;
}
[data-editorial-hero] .ad-story__actions .editorial-hero__action {
  box-shadow: 0 2px 14px #0003;
}
[data-editorial-hero] .ad-story__actions .editorial-hero__action--secondary {
  padding: 0 var(--fotogenic-shell-button-padding);
  border: 1px solid #12121226;
  border-radius: var(--fotogenic-button-radius);
  background: #fff;
  color: var(--fotogenic-ink);
  font-weight: 650;
  text-decoration: none;
}
[data-editorial-hero] .ad-story__actions .editorial-hero__action--secondary:hover {
  background: #f0edf7;
}
@media (min-width: 768px) {
  [data-editorial-hero] .ad-story.is-ready .ad-story__stage {
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  [data-editorial-hero] .ad-story.is-ready .ad-story__stage::before,
  [data-editorial-hero] .ad-story.is-ready .ad-story__stage::after {
    content: none;
  }
}
@media (max-width: 767px) {
  [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__track {
    width: 100%;
    grid-auto-columns: 100%;
    padding-inline: 16px;
  }
  [data-editorial-hero] .editorial-hero__sweep {
    width: max(100%,900px);
    left: 50%;
    translate: -50% 0;
    opacity: .75;
  }
  [data-editorial-hero] .editorial-hero__flow {
    bottom: calc(100% - 70px);
    height: 420px;
  }
  [data-editorial-hero] .ad-story.is-ready .ad-story__actions {
    width: calc(var(--ad-story-focus-width) - 24px);
  }
  [data-editorial-hero] .ad-story__actions .editorial-hero__action {
    padding-inline: 14px;
  }
}
@media (forced-colors: active) {
  [data-editorial-hero] .editorial-hero__ribbon {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
    box-shadow: none;
  }
  [data-editorial-hero] .editorial-hero__action {
    border-color: ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
  [data-editorial-hero] .hero-palette {
    display: none;
  }
  [data-editorial-hero] .editorial-hero__flow {
    display: none;
  }
}
[data-editorial-hero] [data-hero-media-status] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Keep right-to-left titles within the hero and reserve room for glyphs. */
html:dir(rtl) [data-editorial-hero].editorial-hero--split .editorial-hero__shell { direction: rtl; }
html:dir(rtl) [data-editorial-hero] h1 { width: 100%; margin-inline: 0; line-height: 1.2; }
html:dir(rtl) [data-editorial-hero] .editorial-hero__word { margin-block-end: .12em; font-size: calc(20cqw * var(--hero-fit, 1)); }
html:dir(rtl) [data-editorial-hero] .editorial-hero__ribbon { font-size: calc(16cqw * var(--hero-fit, 1)); }
html:dir(rtl) [data-editorial-hero].editorial-hero--slider .editorial-hero__ribbon { margin-left: 0; margin-inline: auto; translate: none; }
/* Before the carousel script runs, the first paint already shows the settled first slide, the buttons and the room
   for the controls at the size and place the script then keeps. Without scripting the full gallery stays. */
@media (scripting: enabled) {
  [data-editorial-hero] .ad-story:not(.is-ready) {
    --ad-story-first-height: min(820px, 82svh, calc((100cqw - 80px) / var(--ad-story-ratio)));
    --ad-story-focus-width: calc(var(--ad-story-first-height) * var(--ad-story-ratio));
  }
  [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__visual {
    container-type: inline-size;
  }
  [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__stage {
    overflow: hidden;
  }
  [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__track {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: var(--ad-story-first-height);
    padding: 0;
  }
  [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__figure {
    flex: none;
    height: 100%;
  }
  [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__figure:not(:first-child) {
    display: none;
  }
  [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__image {
    width: auto;
    height: 100%;
  }
  [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__actions {
    position: relative;
    z-index: 5;
    width: calc(var(--ad-story-focus-width) - 32px);
    margin: -12px auto 0;
  }
  [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__navigation[hidden] {
    display: grid;
    visibility: hidden;
  }
  @media (max-width: 767px) {
    [data-editorial-hero] .ad-story:not(.is-ready) {
      --ad-story-first-height: calc((100cqw - 32px) / var(--ad-story-ratio));
    }
    [data-editorial-hero] .ad-story:not(.is-ready) .ad-story__actions {
      width: calc(var(--ad-story-focus-width) - 24px);
    }
  }
}
