/* User-supplied GAIA renders, with the original framing preserved. */
.page-gaia .page-head { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(720px, 53vw, 860px); }
.gaia-media-hero { display: block; }
.gaia-media-hero > div { position: relative; z-index: 1; width: 51%; max-width: 650px; }
.gaia-media-hero .gaia-render-title { font-size: clamp(3rem, 5.3vw, 5rem); max-width: 11ch; text-wrap: balance; }
.gaia-media-hero .lede { max-width: 48ch; }
.gaia-water-film, .gaia-test-film, .gaia-comparison-sheets figure { margin: 0; min-width: 0; }
.gaia-water-film { position: absolute; right: 0; top: 0; width: min(56vw, 920px); height: 100%; }
.gaia-water-film video { position: absolute; top: 0; right: 0; width: auto; max-width: none; height: 115%; aspect-ratio: 9 / 16; background: #000; object-fit: contain; -webkit-mask-image: linear-gradient(to right, transparent, #000 27%); mask-image: linear-gradient(to right, transparent, #000 27%); }
.gaia-water-film figcaption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.gaia-water-film .video-toggle { right: 24px; bottom: 20px; z-index: 2; }
.gaia-water-film figcaption, .gaia-test-film figcaption { margin-top: 14px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.gaia-study-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); align-items: center; gap: clamp(32px, 7vw, 110px); }
.gaia-study-intro .lede, .gaia-study-intro .body { max-width: 48ch; }
.gaia-test-film { width: 100%; max-width: 360px; justify-self: center; }
.gaia-trousers-crop { position: relative; width: 100%; aspect-ratio: 148 / 250; overflow: hidden; }
.gaia-trousers-crop img { position: absolute; width: 243.243244%; max-width: none; height: 200%; left: -70.270270%; top: -72.8%; }
.gaia-comparison-sheets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: var(--s1); }
.gaia-comparison-sheets img { width: 100%; height: auto; }
.gaia-comparison-sheets a { display: block; outline-offset: 6px; }
.gaia-comparison-sheets figcaption { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; line-height: 1.6; }
.gaia-comparison-sheets figcaption strong { display: block; font-size: 1.125rem; font-weight: 600; }
.gaia-comparison-sheets figcaption span { display: block; margin-top: 6px; color: var(--muted); font-size: .875rem; }
@media (max-width: 900px) { .page-gaia .page-head { min-height: 0; padding-bottom: 0; } .gaia-media-hero > div { width: 100%; max-width: none; } .gaia-water-film { position: relative; width: calc(100% + 2 * var(--gutter)); height: min(135vw, 720px); overflow: hidden; margin: 36px calc(-1 * var(--gutter)) 0; } .gaia-water-film video { -webkit-mask-image: linear-gradient(to right, transparent, #000 15%); mask-image: linear-gradient(to right, transparent, #000 15%); } .gaia-media-hero .gaia-render-title { max-width: 15ch; } }
@media (max-width: 760px) { .gaia-study-intro, .gaia-comparison-sheets { grid-template-columns: 1fr; } .gaia-study-intro { gap: 40px; } .gaia-comparison-sheets { gap: 48px; } }

/* Engine identity opening, consistent with AETHER and TETHYS. */
.page-gaia .gaia-opening { min-height: 0; padding-bottom: clamp(36px, 5vw, 64px); }
.gaia-opening-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.gaia-opening h1 { font-size: clamp(3rem, 6.5vw, 6rem); line-height: 1; letter-spacing: -.03em; }
.gaia-opening-headline { margin: 24px 0 20px; font-size: clamp(1.5rem, 2.8vw, 2.6rem); line-height: 1.2; letter-spacing: -.025em; }
.gaia-opening .lede { max-width: 43ch; }
.gaia-opening-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; margin-top: 30px; }
.gaia-opening-note { margin-top: 20px; color: var(--muted); font-size: .875rem; max-width: 48ch; }
.gaia-opening-symbol.engine-motion { margin: 0; min-width: 0; padding: 0; }
.gaia-opening-symbol .em-stage { width: 100%; height: auto; aspect-ratio: 1; }
.gaia-opening-symbol .em-fallback { object-fit: contain; padding: 12%; }
@media (max-width: 900px) { .gaia-opening-grid { grid-template-columns: 1fr; } .gaia-opening-symbol { max-width: 520px; width: 100%; justify-self: center; } }
@media (max-width: 480px) { .gaia-opening-actions { align-items: flex-start; flex-direction: column; } }

/* Match the TETHYS opening's logo placement and clipping. */
.page-gaia .gaia-opening { position: relative; overflow: hidden; min-height: 680px; isolation: isolate; }
.gaia-opening-grid > div { position: relative; z-index: 1; }
.gaia-opening-symbol.engine-motion { position: absolute; top: -30px; right: calc(-3vw - 130px); width: clamp(700px, 53vw, 1000px); max-width: none; margin: 0; padding-bottom: 0; }
.gaia-opening-symbol .em-stage { height: auto; aspect-ratio: 1; min-height: 300px; }
.gaia-opening-symbol .em-fallback { object-fit: contain; padding: 7%; }
@media (max-width: 900px) {
  .page-gaia .gaia-opening { min-height: 0; padding-bottom: 0; }
  .gaia-opening-symbol.engine-motion { position: relative; top: auto; right: auto; width: min(140vw, 780px); max-width: none; margin: -15px 0 -28% 15%; justify-self: start; }
}

/* Enlarge the identity artwork by 50% without changing the text layout. */
.gaia-opening-symbol.engine-motion { transform: scale(1.5); transform-origin: center center; }
@media (max-width: 900px) { .gaia-opening-symbol.engine-motion { transform-origin: center top; } }

/* Mobile: artwork sits behind the copy instead of extending the title card. */
@media (max-width: 900px) {
  .page-gaia .gaia-opening { padding-bottom: clamp(48px, 10vw, 80px); }
  .gaia-opening-symbol.engine-motion { position: absolute; z-index: 0; top: 50%; right: -55vw; left: auto; width: min(130vw, 720px); margin: 0; opacity: .45; pointer-events: none; transform: translateY(-50%); transform-origin: center center; }
}
