:root {
  --ag-paper: #d9d2c4;
  --ag-paper-deep: #c9bfad;
  --ag-ink: #191a16;
  --ag-ink-soft: #53564b;
  --ag-bronze: #9c6c31;
  --ag-green: #294b3f;
  --ag-silver: #afc4bd;
  --ag-night: #10130f;
  --ag-cream: #f3ecdc;
}

.large-crystal-decor-page {
  background: var(--ag-paper);
  color: var(--ag-ink);
}

html[data-theme="dark"] {
  --ag-paper: #111612;
  --ag-paper-deep: #182019;
  --ag-ink: #f0eadc;
  --ag-ink-soft: #b8b9ab;
  --ag-bronze: #d1a05b;
  --ag-green: #78a58e;
  --ag-silver: #c0d2cc;
}

.large-crystal-decor-page::selection {
  color: #10130f;
  background: #c7a767;
}

.ag-cinematic {
  position: relative;
  color: var(--ag-cream);
  background: var(--ag-night);
}

.ag-stage {
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  color: var(--ag-cream);
  background: #10130f;
}

.ag-media,
.ag-media .sc-stage__poster,
.ag-media .sc-stage__poster img,
.ag-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ag-media {
  z-index: 0;
  margin: 0;
  overflow: hidden;
  background: #10130f;
}

.ag-media .sc-stage__poster img,
.ag-media video {
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.94) contrast(1.04) brightness(.86);
  transition: filter 300ms var(--motion-fluid);
}

.ag-media figcaption {
  position: absolute;
  z-index: 8;
  top: calc(var(--header-h) + 1.1rem);
  right: var(--gutter);
  display: flex;
  gap: 1.4rem;
  margin: 0;
  color: rgba(243, 236, 220, .72);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ag-veil {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 10, .87) 0%, rgba(10, 13, 10, .34) 29%, transparent 49%, rgba(10, 13, 10, .18) 77%, rgba(10, 13, 10, .6) 100%),
    linear-gradient(180deg, rgba(10, 13, 10, .82) 0%, transparent 27%, transparent 66%, rgba(10, 13, 10, .78) 100%);
  pointer-events: none;
}

.ag-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 64% at 0 0, rgba(7, 10, 8, .95), rgba(7, 10, 8, .76) 42%, transparent 76%),
    radial-gradient(ellipse 54% 60% at 100% 0, rgba(7, 10, 8, .91), rgba(7, 10, 8, .66) 40%, transparent 74%),
    radial-gradient(ellipse 62% 66% at 100% 100%, rgba(7, 10, 8, .94), rgba(7, 10, 8, .72) 43%, transparent 78%);
}

.ag-stage[data-sc-spotlight]::after {
  z-index: 3;
  background: radial-gradient(
    28rem 22rem at calc(var(--sc-mx, .5) * 100%) calc(var(--sc-my, .48) * 100%),
    rgba(235, 198, 123, .2),
    rgba(118, 158, 139, .1) 42%,
    transparent 74%
  );
  mix-blend-mode: screen;
  opacity: .9;
}

.ag-light {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.ag-copy-plates {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}

.ag-copy-plates i {
  position: absolute;
  display: block;
  background: radial-gradient(ellipse closest-side at center, rgba(7, 10, 8, .96) 0%, rgba(7, 10, 8, .92) 52%, rgba(7, 10, 8, .52) 72%, transparent 100%);
  opacity: 0;
  will-change: opacity;
}

.ag-copy-plates [data-ag-plate-for="opening"] {
  background: radial-gradient(ellipse closest-side at center, rgba(7, 10, 8, .99) 0%, rgba(7, 10, 8, .97) 58%, rgba(7, 10, 8, .66) 78%, transparent 100%);
}

.ag-light span {
  position: absolute;
  top: calc(35% + ((var(--sc-my, .5) - .5) * 5%));
  left: -12%;
  width: 76%;
  height: 1px;
  transform: translateX(calc(var(--sc-p, 0) * 76vw)) rotate(calc(-5deg + ((var(--sc-mx, .5) - .5) * 5deg)));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, transparent, rgba(211, 155, 76, .72), rgba(203, 224, 217, .62), transparent);
  box-shadow: 0 0 2.3rem rgba(209, 160, 91, .24);
  opacity: .72;
}

.ag-beat {
  position: absolute;
  z-index: 7;
  width: min(39rem, calc(50vw - (2 * var(--gutter))));
  color: var(--ag-cream);
  text-wrap: pretty;
}

.ag-beat h1,
.ag-beat h2 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .86;
  text-wrap: balance;
}

.ag-beat h1 {
  max-width: 11ch;
  font-size: clamp(4.2rem, 7.4vw, 9rem);
}

.ag-beat h2 {
  font-size: clamp(2.8rem, 5vw, 6.2rem);
}

.ag-beat > p:not(.ag-kicker, .ag-beat__index) {
  max-width: 31rem;
  margin: 1.25rem 0 0;
  color: rgba(243, 236, 220, .86);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.58;
}

.ag-kicker,
.ag-beat__index,
.ag-threshold__label {
  margin: 0 0 1rem;
  color: rgba(216, 207, 187, .78);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ag-beat--opening {
  top: calc(var(--header-h) + clamp(3.5rem, 8vh, 7rem));
  left: var(--gutter);
  width: min(48rem, calc(57vw - var(--gutter)));
}

.ag-beat--opening .ag-dek {
  max-width: 34rem;
  margin-top: 1.6rem;
}

.ag-beat--opening .article-meta {
  margin-top: 1.5rem;
  color: rgba(243, 236, 220, .72);
}

.ag-beat--opening .article-taxonomy {
  margin-top: .8rem;
}

.ag-beat--opening .article-taxonomy a {
  color: var(--ag-cream);
}

.ag-beat--collection,
.ag-beat--memory,
.ag-beat--convergence {
  right: var(--gutter);
  bottom: clamp(5.5rem, 12vh, 9rem);
}

.ag-beat--origin,
.ag-beat--transformation {
  top: calc(var(--header-h) + clamp(5rem, 14vh, 10rem));
  left: var(--gutter);
}

.ag-beat--endurance {
  top: calc(var(--header-h) + clamp(4rem, 12vh, 8rem));
  right: var(--gutter);
}

.ag-beat--convergence {
  width: min(45rem, calc(53vw - var(--gutter)));
}

.ag-beat--convergence h2 {
  max-width: 10ch;
  color: #f3e5c9;
}

.ag-relay {
  position: absolute;
  z-index: 9;
  top: 24%;
  right: max(.85rem, calc(var(--gutter) * .34));
  bottom: 18%;
  display: grid;
  align-content: space-between;
  gap: .55rem;
  width: 7.5rem;
  pointer-events: auto;
}

.ag-relay__line {
  position: absolute;
  top: .38rem;
  right: .31rem;
  bottom: .38rem;
  width: 1px;
  overflow: hidden;
  background: rgba(243, 236, 220, .24);
}

.ag-relay__line i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--sc-p, 0));
  transform-origin: 50% 0;
  background: linear-gradient(180deg, #bc7a32, #c5dad4);
  box-shadow: 0 0 1rem rgba(197, 218, 212, .5);
}

.ag-relay button {
  position: relative;
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  padding: 0;
  border: 0;
  color: rgba(243, 236, 220, .58);
  background: transparent;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms var(--motion-fluid);
}

.ag-relay button i {
  order: 2;
  width: .66rem;
  height: .66rem;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #11140f;
  transition: background-color 220ms var(--motion-fluid), box-shadow 220ms var(--motion-fluid), transform 220ms var(--motion-fluid);
}

.ag-relay button:hover,
.ag-relay button:focus-visible,
.ag-relay button.is-current {
  color: var(--ag-cream);
}

.ag-relay button.is-current i {
  transform: scale(1.28);
  background: #d8b06a;
  box-shadow: 0 0 1.15rem rgba(216, 176, 106, .66);
}

.ag-disclosure {
  position: relative;
  z-index: 2;
  color: var(--ag-ink);
  border-color: color-mix(in srgb, var(--ag-ink) 17%, transparent);
  background: var(--ag-paper-deep);
}

.ag-threshold {
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(10rem, .25fr) minmax(0, 1fr);
  gap: 2rem clamp(3rem, 8vw, 9rem);
  align-items: start;
  padding: clamp(7rem, 12vw, 12rem) var(--gutter);
  color: var(--ag-ink);
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--ag-bronze) 26%, transparent), transparent 30%),
    radial-gradient(circle at 12% 86%, color-mix(in srgb, var(--ag-green) 20%, transparent), transparent 34%),
    var(--ag-paper);
}

.ag-threshold__label {
  color: var(--ag-ink-soft);
}

.ag-threshold > div {
  max-width: 72rem;
}

.ag-threshold h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 9.8vw, 11.5rem);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.ag-threshold > div > p {
  max-width: 43rem;
  margin: 2.5rem 0 0;
  color: var(--ag-ink-soft);
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  line-height: 1.65;
}

.ag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.5rem;
  margin-top: 3rem;
}

.ag-actions a {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.7rem;
  padding: .8rem 0;
  border-bottom: 1px solid currentColor;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.ag-actions a:hover,
.ag-actions a:focus-visible {
  color: var(--ag-bronze);
}

.ag-related {
  color: var(--ag-ink);
  background: var(--ag-paper-deep);
}

.ag-related article img {
  background: color-mix(in srgb, var(--ag-paper) 86%, var(--ag-night));
}

.large-crystal-decor-page,
.ag-disclosure,
.ag-threshold,
.ag-related {
  transition: color 260ms var(--motion-fluid), background-color 260ms var(--motion-fluid), border-color 260ms var(--motion-fluid);
}

html:not(.ag-enhanced) .ag-cinematic {
  height: auto !important;
}

html:not(.ag-enhanced) .ag-stage {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: visible;
  background: #10130f;
}

html:not(.ag-enhanced) .ag-media {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
}

html:not(.ag-enhanced) .ag-media video,
html:not(.ag-enhanced) .ag-veil,
html:not(.ag-enhanced) .ag-light,
html:not(.ag-enhanced) .ag-copy-plates,
html:not(.ag-enhanced) .ag-relay {
  display: none;
}

html:not(.ag-enhanced) .ag-beat {
  position: relative;
  inset: auto;
  width: min(100% - (2 * var(--gutter)), 64rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
  opacity: 1 !important;
  transform: none !important;
}

html:not(.ag-enhanced) .ag-beat + .ag-beat {
  border-top: 1px solid rgba(243, 236, 220, .15);
}

html:not(.ag-enhanced) .ag-beat h1,
html:not(.ag-enhanced) .ag-beat h2 {
  max-width: 12ch;
}

@media (max-width: 1100px) {
  .ag-relay button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .ag-relay {
    width: 1.5rem;
  }
}

@media (max-width: 900px) {
  .ag-media figcaption {
    top: auto;
    right: var(--gutter);
    bottom: 1rem;
    left: var(--gutter);
    justify-content: space-between;
    font-size: .61rem;
  }

  .ag-beat,
  .ag-beat--opening,
  .ag-beat--convergence {
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
  }

  .ag-beat h1 {
    font-size: clamp(3.8rem, 13vw, 6.9rem);
  }

  .ag-beat h2 {
    font-size: clamp(2.7rem, 10vw, 5.1rem);
  }

  .ag-beat--opening,
  .ag-beat--origin,
  .ag-beat--endurance,
  .ag-beat--transformation {
    top: calc(var(--header-h) + clamp(2.8rem, 8vh, 5rem));
    bottom: auto;
  }

  .ag-beat--collection,
  .ag-beat--memory,
  .ag-beat--convergence {
    top: auto;
    bottom: 5.2rem;
  }

  .ag-threshold {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 6rem;
  }

  .ag-threshold h2 {
    font-size: clamp(4.2rem, 16.5vw, 7.5rem);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .ag-stage {
    background:
      radial-gradient(circle at 50% 45%, rgba(77, 83, 67, .22), transparent 42%),
      #10130f;
  }

  .ag-media {
    top: 48%;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    transform: translateY(-50%);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  }

  .ag-media .sc-stage__poster,
  .ag-media .sc-stage__poster img,
  .ag-media video {
    height: 100%;
  }

  .ag-media .sc-stage__poster img,
  .ag-stage .ag-media video[data-sc-scrub] {
    object-fit: contain;
  }

  .ag-media figcaption {
    bottom: .15rem;
  }

  .ag-veil {
    background:
      linear-gradient(180deg, rgba(10, 13, 10, .94) 0%, rgba(10, 13, 10, .66) 26%, transparent 39%, transparent 62%, rgba(10, 13, 10, .74) 78%, rgba(10, 13, 10, .95) 100%);
  }

  .ag-veil::after {
    background: linear-gradient(180deg, rgba(7, 10, 8, .97) 0%, rgba(7, 10, 8, .86) 29%, transparent 45%, transparent 57%, rgba(7, 10, 8, .82) 76%, rgba(7, 10, 8, .97) 100%);
  }

  .ag-light span {
    top: 47%;
  }

  .ag-relay {
    top: auto;
    right: var(--gutter);
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: var(--gutter);
    width: auto;
    height: 2.75rem;
    grid-template-columns: repeat(5, 1fr);
    align-content: center;
  }

  .ag-relay__line {
    top: 1.35rem;
    right: .34rem;
    bottom: auto;
    left: .34rem;
    width: auto;
    height: 1px;
  }

  .ag-relay__line i {
    transform: scaleX(var(--sc-p, 0));
    transform-origin: 0 50%;
  }

  .ag-relay button {
    justify-content: center;
    min-height: 2.75rem;
  }

  .ag-relay button i {
    order: 0;
  }
}

@media (max-width: 560px) {
  .ag-media figcaption {
    display: none;
  }

  .ag-beat h1 {
    max-width: 10.5ch;
    font-size: clamp(3.15rem, 13vw, 4.5rem);
    line-height: .88;
  }

  .ag-beat h2 {
    max-width: 12ch;
    font-size: clamp(2.3rem, 10vw, 3.65rem);
    line-height: .94;
  }

  .ag-beat--opening {
    top: calc(var(--header-h) + 1.7rem);
  }

  .ag-beat--opening .ag-dek {
    max-width: 30rem;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.52;
  }

  .ag-beat--opening .article-meta {
    margin-top: .9rem;
  }

  .ag-beat--opening .article-taxonomy {
    margin-top: .55rem;
  }

  .ag-beat--collection,
  .ag-beat--origin,
  .ag-beat--endurance,
  .ag-beat--memory,
  .ag-beat--transformation,
  .ag-beat--convergence {
    top: auto;
    bottom: 4.8rem;
  }

  .ag-beat > p:not(.ag-kicker, .ag-beat__index) {
    font-size: 1rem;
    line-height: 1.52;
  }

  .ag-kicker,
  .ag-beat__index {
    margin-bottom: .65rem;
    font-size: .62rem;
  }

  .ag-media figcaption {
    font-size: .54rem;
  }

  .ag-threshold {
    padding-block: 5rem;
  }

  .ag-threshold h2 {
    font-size: clamp(3.7rem, 17vw, 5.5rem);
  }

  .ag-threshold > div > p {
    margin-top: 1.8rem;
    font-size: 1rem;
  }

  .ag-actions {
    display: grid;
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-media .sc-stage__poster img,
  .ag-media video,
  .ag-light span,
  .ag-relay button,
  .ag-relay button i,
  .large-crystal-decor-page,
  .ag-disclosure,
  .ag-threshold,
  .ag-related {
    transition: none;
  }
}

/* Reserve the first cinematic composition before its controller arrives. */
html.ag-preparing .ag-cinematic { height: 900vh; }
html.ag-preparing .ag-beat:not(.ag-beat--opening) { opacity: 0; pointer-events: none; }

/* Static reading never inherits the centered, translated film geometry. */
html:not(.ag-enhanced) .ag-media {
  inset: auto;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: var(--header-h);
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}
