/* Opt-in layout for the homepage's first artwork sequence. */
.afhf.afhf--brand-preview {
  --afhf-hero-header: 144px;
  --afhf-hero-surface: #f6f5f2;
  background: var(--afhf-hero-surface);
}

.afhf--brand-preview .afhf-pin {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 320px;
  height: calc(100vh - var(--afhf-inset, var(--afhf-hero-header)));
  height: calc(100svh - var(--afhf-inset, var(--afhf-hero-header)));
  background: var(--afhf-hero-surface);
}

.afhf--brand-preview .afhf-intro {
  position: relative;
  display: grid;
  justify-items: center;
  justify-content: stretch;
  gap: 0;
  text-align: center;
  padding: clamp(19px, 3.2vh, 44px) clamp(20px, 5vw, 90px);
}

.afhf--brand-preview .afhf-intro h2 {
  font-family: var(--e-global-typography-aa3f9d2-font-family, "Noto Sans TC"), "Microsoft JhengHei", sans-serif;
  font-size: clamp(29px, 4.6vw, 70px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: .025em;
  text-wrap: balance;
}

.afhf--brand-preview .afhf-intro p {
  max-width: 42em;
  margin: 9px auto 0;
  color: #464646;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.6;
  letter-spacing: .07em;
  text-wrap: balance;
}

.afhf--brand-preview .afhf-contact {
  padding: 2px 0 1px;
  margin: 8px 0 0;
  border-color: currentColor;
  font-size: 12px;
  line-height: 1.45;
}

.afhf--brand-preview .afhf-hero-art {
  position: relative;
  min-height: 0;
  isolation: isolate;
  background: #202020;
}

.afhf.afhf--brand-preview .afhf-stage,
.afhf.afhf--brand-preview[data-scroll="active"] .afhf-stage {
  width: 100%;
  height: 100%;
  background: #202020;
}

.afhf--brand-preview .afhf-poster {
  object-position: 54% 27%;
}

.afhf.afhf--brand-preview .afhf-caption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: grid;
  justify-content: start;
  gap: 3px;
  height: auto;
  min-height: 0;
  padding: clamp(24px, 6vh, 58px) clamp(18px, 5vw, 90px) clamp(14px, 2.5vh, 31px);
  color: #fff;
  background: linear-gradient(0deg, rgba(10, 10, 10, .94), rgba(10, 10, 10, .74) 48%, transparent);
  pointer-events: none;
}

.afhf.afhf--brand-preview .afhf-caption h3,
.afhf.afhf--brand-preview .afhf-caption p {
  display: block;
  color: inherit;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}

.afhf.afhf--brand-preview .afhf-caption h3 {
  font-size: clamp(17px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: .07em;
}

.afhf.afhf--brand-preview .afhf-caption p {
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: .07em;
}

.afhf--brand-preview .afhf-static ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afhf--brand-preview .afhf-static figure {
  position: relative;
  background: #202020;
}

.afhf.afhf--brand-preview .afhf-static figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 3px;
  padding: 32px 16px 13px;
  color: #fff;
  background: linear-gradient(0deg, rgba(10, 10, 10, .94), rgba(10, 10, 10, .74) 49%, transparent);
}

.afhf.afhf--brand-preview .afhf-static figcaption span {
  color: inherit;
}

.afhf--brand-preview[data-mode="loading"] .afhf-static {
  display: none;
}

.afhf.afhf--brand-preview[data-mode="still"] .afhf-runway,
.afhf.afhf--brand-preview[data-mode="still"] .afhf-pin {
  display: block;
  height: auto;
  min-height: 0;
}

.afhf--brand-preview[data-mode="still"] .afhf-hero-art {
  display: none;
}

@media (max-width: 767px) {
  .afhf.afhf--brand-preview {
    --afhf-hero-header: 112px;
  }

  .afhf--brand-preview .afhf-intro {
    padding: 15px 22px 14px;
  }

  .afhf--brand-preview .afhf-intro h2 {
    font-size: clamp(25px, 7.4vw, 36px);
  }

  .afhf--brand-preview .afhf-intro p {
    margin-top: 6px;
  }

  .afhf--brand-preview .afhf-contact {
    margin-top: 5px;
  }

  .afhf--brand-preview .afhf-poster {
    object-position: 54% 43%;
  }

  .afhf--brand-preview .afhf-static ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-height: 460px) and (min-aspect-ratio: 4/3) {
  .afhf--brand-preview .afhf-pin {
    min-height: 255px;
  }

  .afhf--brand-preview .afhf-intro {
    padding-block: 8px;
  }

  .afhf--brand-preview .afhf-intro h2 {
    font-size: 28px;
  }

  .afhf--brand-preview .afhf-intro p {
    margin-top: 4px;
  }

  .afhf--brand-preview .afhf-contact {
    margin-top: 4px;
  }
}

.afhf.afhf--brand-preview {
  --afhf-travel: clamp(1650px, 206svh, 2650px);
  --afhf-hero-surface: #f5f5f7;
  --afhf-hero-type: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --afhf-copy-inset: clamp(18px, 5vw, 90px);
  --afhf-copy-color: #fff;
  --afhf-copy-shadow: 0 1px 2px #000, 0 1px 9px rgb(0 0 0 / .86);
}
.afhf.afhf--brand-preview .afhf-pin { grid-template-rows: minmax(0, 1fr) auto; }
.afhf.afhf--brand-preview .afhf-intro {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
  color: var(--afhf-copy-color);
  text-shadow: var(--afhf-copy-shadow);
  pointer-events: none;
}
.afhf.afhf--brand-preview .afhf-intro h2 {
  width: max-content;
  max-width: calc(100% - var(--afhf-copy-inset) * 2);
  margin: 0;
  color: inherit;
  font: 600 17px/25px var(--afhf-hero-type);
  letter-spacing: 5px;
  text-wrap: wrap;
  overflow-wrap: normal;
}
.afhf.afhf--brand-preview .afhf-full-contact {
  position: absolute;
  top: calc(50% + 24px);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}
.afhf.afhf--brand-preview .afhf-full-contact .elementor-button {
  min-height: 44px;
  text-shadow: none;
}
/* Let close-ups and the documentary frames run without text over their subjects. */
.afhf.afhf--brand-preview[data-mode="webgl"] .afhf-intro { transition: opacity 160ms ease; }
.afhf.afhf--brand-preview[data-mode="webgl"]:not([data-case="0"]):not([data-case="2"]) .afhf-intro:not(:focus-within) {
  opacity: 0;
  visibility: hidden;
}
.afhf.afhf--brand-preview[data-case="2"] .afhf-intro {
  text-shadow: 0 1px 3px rgb(0 0 0 / .95), 0 0 10px rgb(0 0 0 / .9);
}
.afhf.afhf--brand-preview .afhf-static .afhf-static-triptych img {
  height: auto;
  aspect-ratio: 1940 / 960;
}
.afhf.afhf--brand-preview .afhf-caption h3,
.afhf.afhf--brand-preview .afhf-caption p { font-family: var(--afhf-hero-type); letter-spacing: .015em; }

.afhf.afhf--brand-preview[data-mode="still"] .afhf-hero-art { display: block; background: transparent; }
.afhf.afhf--brand-preview[data-mode="still"] .afhf-stage,
.afhf.afhf--brand-preview[data-mode="still"] .afhf-caption { display: none; }
.afhf.afhf--brand-preview[data-mode="still"] .afhf-intro {
  position: relative;
  inset: auto;
  padding: 20px var(--afhf-copy-inset) 0;
  gap: 5px;
  color: #202124;
  text-shadow: none;
}

.afhf.afhf--brand-preview[data-mode="still"] .afhf-full-contact {
  position: static;
  transform: none;
}
.afhf.afhf--brand-preview .afhf-static .afhf-static-triptych figcaption {
  position: static;
  background: none;
  padding-top: 10px;
}

@media (max-width: 767px) {
  .afhf.afhf--brand-preview {
    --afhf-travel: clamp(1560px, 201svh, 1960px);
  }
  .afhf.afhf--brand-preview .afhf-intro h2 { font-size: 15px; }
}
.afhf.afhf--brand-preview .afhf-intro p {
  position: absolute;
  top: calc(50% - 35px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - var(--afhf-copy-inset) * 2);
  margin: 0;
  color: inherit;
}
.afhf.afhf--brand-preview[data-mode="still"] .afhf-intro p {
  position: static;
  transform: none;
}
.afhf.afhf--brand-preview .afhf-static-triptych .afhf-static-triptych-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.afhf.afhf--brand-preview .afhf-static-triptych .afhf-static-triptych-panels img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
/* Keep the homepage artwork caption clear of the theme's back-to-top button. */
@media (min-width: 768px) {
  .afhf.afhf--brand-preview .afhf-caption {
    padding-inline-start: max(108px, 5vw);
  }
}
