/* Ethera product page: hero plate, portrait films, gallery mosaic.
 *
 * Shares wc.css for type, proof rows, signup, and the gold button. This file
 * only covers what the Entropy/Lumen pages do not: a looping render behind
 * the copy, and 8/9 after-plates that must not be stretched to 16/9.
 */

.ethera-hero {
  position: relative;
  /* Content starts at the top of the hero so 62vh does not pile up as a
     vacant slab above the name. The framed Composer shot fills the right
     column the way Entropy's reel does. */
  justify-content: flex-start;
}

.ethera-hero-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ethera-hero-poster,
.ethera-hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.ethera-hero-video {
  opacity: 0;
  transition: opacity .6s ease;
}

.ethera-hero-video.is-playing {
  opacity: 1;
}

.ethera-hero-scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .48) 34%, rgba(0, 0, 0, .12) 62%, transparent 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .08) 40%, rgba(0, 0, 0, .5) 100%);
}

.ethera-hero .hero-body,
.ethera-hero .section-label,
.ethera-hero .hero-title,
.ethera-hero .hero-copy,
.ethera-hero .ethera-hero-lockup,
.ethera-hero .hero-demo {
  position: relative;
  z-index: 2;
}

.ethera-hero .hero-body {
  padding-top: clamp(2.4rem, 6vh, 4rem);
  padding-bottom: clamp(2.2rem, 5vh, 3.6rem);
}

.ethera-hero .hero-copy {
  margin-top: clamp(1.35rem, 2.8vh, 2.15rem);
}

/* Same framed role as Entropy's reel: native Composer aspect, not 16/9. */
.ethera-hero .hero-demo {
  aspect-ratio: 1600 / 1128;
}

.ethera-hero .hero-demo img {
  object-fit: contain;
}

@media (min-width: 62rem) {
  [data-nav="ethera"] .hero-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }

  [data-nav="ethera"] .hero-split .hero-demo {
    margin-top: 2.1rem;
  }

  [data-nav="ethera"] .hero-split > :first-child {
    container-type: inline-size;
  }

  [data-nav="ethera"] .hero-split .hero-title {
    max-width: none;
    font-size: min(clamp(4.2rem, 12.8vw, 12rem), 30cqi);
  }
}

.ethera-hero .hero-belief {
  max-width: 22ch;
}

.ethera-hero-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.15rem;
  margin-top: 1.5rem;
}

/* The toggle takes the first row; Buy Now and the price (or the studio
   seat stepper) stay on the next. With Studio off sale the toggle is gone
   and the lockup is just the button and the price again. */
.ethera-hero-lockup .licensing-toggle {
  flex: 1 1 100%;
  margin-top: 0;
}

.ethera-hero-individual,
.ethera-hero-lockup .studio-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.15rem;
}

.ethera-hero-price {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  text-shadow: 0 1px .9rem rgba(0, 0, 0, .92);
}

.ethera-hero .ethera-hero-cta {
  min-height: 3.9rem;
  min-width: 15.5rem;
  padding: 1.05rem 3.2rem;
  font-size: 1.32rem;
}

.film[data-portrait] {
  aspect-ratio: 8 / 9;
}

.film[data-wide] {
  aspect-ratio: 16 / 9;
}

.film[data-ethera-film] {
  cursor: pointer;
}

.film[data-play-once] img,
.film[data-play-once]:hover img {
  opacity: 1;
  transform: none;
}

.film[data-ethera-film] video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: none;
}

.film[data-ethera-film].is-playing video {
  opacity: 1;
}

/* wc.css scales and fades .film:hover video. Keep the poster until JS
   marks is-playing, and do not hide a clip that just started. */
.film[data-ethera-film]:hover video {
  opacity: 0;
  transform: none;
}

.film[data-ethera-film].is-playing:hover video {
  opacity: 1;
}

.ethera-callout-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.ethera-callout-list li {
  max-width: 43rem;
  margin: .85rem 0 0;
  color: var(--paper-soft);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.5;
}

.ethera-callout-list strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ethera-shot,
.ethera-looks {
  margin: 0;
}

.ethera-shot {
  position: relative;
}

.ethera-shot img,
.ethera-looks img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-media);
  background: #050403;
}

.ethera-shot img {
  aspect-ratio: 1600 / 1128;
}

.ethera-looks img {
  aspect-ratio: 1440 / 1080;
}

.ethera-looks figcaption {
  margin: .7rem 0 0;
  color: var(--mute);
  font-size: .95rem;
  line-height: 1.45;
}

.ethera-pins {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.ethera-pin {
  position: absolute;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-control);
  padding: .32rem .55rem;
  background: rgba(3, 3, 2, .88);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ethera-pin-stack { top: 6.5%; left: 1.4%; }
.ethera-pin-ae { top: 1.2%; right: 6.9rem; }
.ethera-pin-looks { top: 1.2%; right: 1.4%; }
.ethera-pin-sim { top: 11%; right: 1.4%; }

@media (max-width: 39.99rem) {
  .ethera-pins { display: none; }
}

.ethera-gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.3rem;
  margin-top: clamp(1.5rem, 3.2vw, 2.8rem);
}

.ethera-gallery-nav a {
  padding-block: .45rem;
  color: var(--paper-soft);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.ethera-gallery-nav a:hover,
.ethera-gallery-nav a:focus-visible {
  color: var(--gold);
}

.ethera-gallery-group {
  margin-top: clamp(2.3rem, 5vw, 4.8rem);
  scroll-margin-top: 7rem;
}

.ethera-gallery-group h3 {
  margin: 0 0 .75rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.75vw, 2.25rem);
  line-height: 1.1;
}

.ethera-gallery {
  display: grid;
  gap: clamp(.7rem, 1.5vw, 1.15rem);
}

@media (min-width: 36rem) {
  .ethera-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ethera-gallery .film[data-feature] {
  grid-column: 1 / -1;
}

.ethera-transitions {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.ethera-transitions figure {
  margin: 0;
  min-width: 0;
}

button.film[data-ethera-film]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.ethera-transitions figcaption {
  margin-top: .6rem;
  color: var(--paper-soft);
  font-size: .95rem;
}

.ethera-pack-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  align-self: start;
  gap: .65rem;
  padding: clamp(1.2rem, 3.2vw, 2.75rem);
  background: var(--field-stage);
  border: 1px solid var(--line-gold);
}

.ethera-pack-note p {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2.05rem);
  line-height: 1.15;
}

@media (min-width: 36rem) {
  .ethera-pack-note {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .ethera-hero .ethera-hero-lockup {
    margin-top: 1.75rem;
  }

  .ethera-hero .hero-copy {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ethera-hero-video,
  .film[data-ethera-film] video {
    display: none;
  }
}
