/* Aerethis SHOWCASE motion system: styles. Pair with /showcase.js.
 *
 * Reusable building blocks for introductory and product pages. Serious pages
 * (account, docs, checkout) must NOT use this file: they stay plain and dense.
 *
 *   .sc-wide                  Full-width content column: viewport minus --sc-gutter, capped at --sc-wide.
 *   .sc-hero[data-sc-hero]    Full-bleed stage, at least one screen tall. Children, back to front:
 *       .sc-poster            CSS-only backdrop (the no-WebGL / Lite / calm version).
 *       canvas.sc-bg[data-sc-bg]  WebGL light field + ridgeline terrain (see showcase.js).
 *       .sc-layers            Decorative parallax layers: .sc-layer[data-sc-depth], .sc-pane, .sc-chip.
 *       .sc-hero-inner        Your content (two column grid, one column under 900px).
 *   .sc-rise                  Entrance for hero copy; delay with style="--sc-d:120ms".
 *   [data-sc-split]           Headline word reveal (JS builds .sc-word / .sc-word-in / .sc-hl).
 *   [data-sc-reveal]          Scroll reveal (up | left | right | scale | fade) via .sc-in.
 *   .sc-glass                 Glass surface; add [data-sc-tilt] for hover tilt and pointer spotlight.
 *   .sc-bento                 12-column bento grid; cells span with .sc-span-N.
 *   .sc-carousel[data-sc-carousel]  3D cover-flow carousel (markup contract below).
 *   .sc-story[data-sc-story]  Sticky storytelling: sticky .sc-story-lead + [data-sc-step] items.
 *   .sc-band                  Full-width glass band with a slow conic edge light.
 *
 * Carousel markup:
 *   <div class="sc-carousel" data-sc-carousel data-sc-dwell="5600">
 *     <div class="sc-viewport" data-sc-viewport>
 *       <div class="sc-track" data-sc-track>
 *         <article class="sc-card" data-sc-card data-sc-name="Name"> media + .sc-card-body </article> ...
 *     <div class="sc-controls">  prev [data-sc-prev], dots [data-sc-dot], next [data-sc-next], pause [data-sc-pause]
 *     <p class="sc-sr" data-sc-status aria-live="polite">
 *   Without JS the track is a readable card grid and the controls stay hidden.
 *
 * Accessibility: contrast follows the site tokens (WCAG 2.2 AA); rotation has a visible pause control and
 * stops on hover, focus and any manual navigation; prefers-reduced-motion and Lite give a calm static page.
 * Only transform / opacity / translate / scale animate. Brand: #E2A945 gold on #0A0B12 night, air #9BB2D9.
 */
:root {
  --sc-gutter: clamp(20px, 4.2vw, 88px);
  --sc-wide: 2200px;
  --sc-read: 2200px;
  --sc-ease: cubic-bezier(.16, 1, .3, 1);
  --sc-glass: linear-gradient(155deg, rgba(34, 37, 55, .74), rgba(15, 16, 26, .82));
  --sc-edge: rgba(239, 240, 244, .14);
  --sc-gold-edge: rgba(226, 169, 69, .42);
  /* Calm, dense scale for everything below the hero (as-vp4t); the hero keeps its own larger type. */
  --sc-h2: clamp(26px, 2.5vw, 46px);
  --sc-h3: clamp(17px, 1.3vw, 24px);
  --sc-body: clamp(15px, .95vw, 17px);
  --sc-section-y: clamp(40px, 4.8vw, 96px);
  --sc-pad: clamp(18px, 1.7vw, 32px);
  --sc-gap: clamp(12px, 1.1vw, 22px);
  --sc-subnav: 49px;
  --sc-cue-h: 44px;
  --sc-cue-gap: 14px;
  /* The hero's vertical budget: what is left of the first screen for its content once the header, the hero padding and the
   * band the scroll cue keeps free are taken out. Hero media (collage, carousel) is sized from it, so the content ends above the cue. */
  --sc-hero-pad-top: clamp(28px, 6svh, 120px);
  --sc-hero-pad-bottom: calc(var(--sc-cue-h) + 2 * var(--sc-cue-gap) + clamp(0px, 2svh, 24px));
  --sc-hero-fit: calc(100vh - var(--header, 72px) - var(--sc-hero-pad-top) - var(--sc-hero-pad-bottom));
  --sc-hero-fit: calc(100svh - var(--header, 72px) - var(--sc-hero-pad-top) - var(--sc-hero-pad-bottom));
}

.sc-wide { width: min(100% - 2 * var(--sc-gutter), var(--sc-wide)); margin-inline: auto; }
.sc-read { width: min(100% - 2 * var(--sc-gutter), var(--sc-read)); margin-inline: auto; }
.sc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- hero stage ---------- */
.sc-hero { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: center; width: 100%; min-height: calc(100vh - var(--header, 72px)); min-height: calc(100svh - var(--header, 72px)); background: var(--bg-0, #0A0B12); --sc-fade: 1; }
/* A sticky sub navigation bar sits between the header and the hero: the hero fills what is left of the first screen. */
.subnav + .sc-hero { --sc-hero-fit: calc(100svh - var(--header, 72px) - var(--sc-subnav) - var(--sc-hero-pad-top) - var(--sc-hero-pad-bottom)); min-height: calc(100vh - var(--header, 72px) - var(--sc-subnav)); min-height: calc(100svh - var(--header, 72px) - var(--sc-subnav)); }
.sc-poster { position: absolute; inset: 0; z-index: -4; pointer-events: none; background:
  radial-gradient(60vw 46vh at 74% 18%, rgba(226, 169, 69, .16), transparent 70%),
  radial-gradient(48vw 56vh at 8% 78%, rgba(60, 74, 150, .34), transparent 72%),
  radial-gradient(70vw 40vh at 50% 118%, rgba(226, 169, 69, .10), transparent 70%),
  linear-gradient(180deg, #0A0B12 0%, #0D0F1B 56%, #090A10 100%); }
.sc-poster::after { content: ''; position: absolute; inset: 52% 0 0; opacity: .55; background:
  repeating-linear-gradient(180deg, rgba(226, 169, 69, .20) 0 1px, transparent 1px 34px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000); mask-image: linear-gradient(180deg, transparent, #000 40%, #000); }
.sc-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.sc-gl .sc-bg { opacity: 1; }
.sc-gl .sc-poster::after { opacity: 0; }
/* Text protection: the light field never dips below readable contrast behind the copy. */
.sc-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; background:
  linear-gradient(90deg, rgba(10, 11, 18, .74) 0%, rgba(10, 11, 18, .38) 38%, transparent 62%),
  linear-gradient(180deg, rgba(10, 11, 18, .0) 70%, rgba(10, 11, 18, .85) 100%); }
.sc-hero-inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(24px, 4vw, 96px); padding-block: var(--sc-hero-pad-top) var(--sc-hero-pad-bottom); }
.sc-hero-inner, .sc-hero-inner * { min-width: 0; }

/* parallax layers */
.sc-layers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sc-layer { position: absolute; --d: .3; transform: translate3d(calc(var(--sc-px, 0) * var(--d) * -1px), calc((var(--sc-py, 0) * var(--d) - var(--sc-sy, 0) * var(--d)) * 1px), 0); will-change: transform; }
.sc-pane { border-radius: 28px; border: 1px solid rgba(226, 169, 69, .22); background: linear-gradient(140deg, rgba(226, 169, 69, .07), rgba(155, 178, 217, .03) 60%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.sc-chip { width: var(--w, 22px); height: var(--h, 22px); border-radius: 6px; border: 1px solid rgba(226, 169, 69, .5); background: linear-gradient(135deg, rgba(226, 169, 69, .30), rgba(155, 178, 217, .08)); box-shadow: 0 0 24px rgba(226, 169, 69, .22); rotate: var(--r, 20deg); animation: sc-float var(--t, 9s) ease-in-out infinite alternate; }
.sc-chip.is-air { border-color: rgba(155, 178, 217, .5); background: linear-gradient(135deg, rgba(155, 178, 217, .26), rgba(60, 74, 150, .10)); box-shadow: 0 0 24px rgba(155, 178, 217, .18); }
@keyframes sc-float { from { translate: 0 -10px; } to { translate: 0 12px; } }

/* entrance for ordinary hero copy */
.sc-rise { animation: sc-rise .9s var(--sc-ease) backwards; animation-delay: var(--sc-d, 0ms); }
@keyframes sc-rise { from { opacity: 0; translate: 0 26px; } }

/* headline reveal */
html.sc-js:not(.sc-ready) [data-sc-split]:not(.sc-split-done) { opacity: 0; animation: sc-open .01s 2.5s forwards; }
@keyframes sc-open { to { opacity: 1; } }
/* Room for descenders/ascenders and tight tracking: the word clip and the gradient box both extend past the line box, margins cancel so layout is unchanged. */
.sc-word { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .1em .34em; margin: -.1em -.1em -.34em; }
.sc-word-in { display: inline-block; opacity: 0; transform: translateY(112%) rotate(3deg); transform-origin: 0 100%; animation: sc-word .95s var(--sc-ease) calc(.18s + var(--i, 0) * .085s) forwards; }
.sc-split-still .sc-word-in { animation: none; opacity: 1; transform: none; }
@keyframes sc-word { to { opacity: 1; transform: none; } }
.sc-hl { background: linear-gradient(100deg, #F2E3B8 0%, #E2A945 52%, #C89035 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;  padding: .1em .06em .3em; margin: -.1em -.06em -.3em; }

/* scroll reveal: opacity + translate/scale only, so hover transforms keep working */
[data-sc-reveal] { transition: opacity .95s var(--sc-ease) var(--sc-d, 0ms), translate .95s var(--sc-ease) var(--sc-d, 0ms), scale .95s var(--sc-ease) var(--sc-d, 0ms); }
html.sc-js [data-sc-reveal]:not(.sc-in) { opacity: 0; translate: 0 36px; }
html.sc-js [data-sc-reveal="left"]:not(.sc-in) { translate: -48px 0; }
html.sc-js [data-sc-reveal="right"]:not(.sc-in) { translate: 48px 0; }
html.sc-js [data-sc-reveal="scale"]:not(.sc-in) { translate: 0 20px; scale: .94; }
html.sc-js [data-sc-reveal="fade"]:not(.sc-in) { translate: none; }
html.sc-js:not(.sc-ready) [data-sc-reveal]:not(.sc-in) { animation: sc-unhide .01s 4s forwards; }
@keyframes sc-unhide { to { opacity: 1; translate: none; scale: none; } }

/* ---------- glass + tilt ---------- */
.sc-glass { position: relative; border: 1px solid var(--sc-edge); border-radius: 22px; background: var(--sc-glass); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.sc-glass[data-sc-tilt] { transform: perspective(1100px) rotateX(var(--sc-tx, 0deg)) rotateY(var(--sc-ty, 0deg)); transition: transform .35s var(--sc-ease), border-color .25s, box-shadow .25s; will-change: transform; }
.sc-glass[data-sc-tilt]::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(520px circle at var(--sc-mx, 50%) var(--sc-my, 0%), rgba(226, 169, 69, .16), transparent 62%); }
.sc-glass[data-sc-tilt]:hover { border-color: var(--sc-gold-edge); }
.sc-glass[data-sc-tilt]:hover::before { opacity: 1; }

/* ---------- bento ---------- */
.sc-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 28px); }
.sc-bento > * { grid-column: span 6; }
.sc-bento > .sc-span-4 { grid-column: span 4; } .sc-bento > .sc-span-5 { grid-column: span 5; } .sc-bento > .sc-span-7 { grid-column: span 7; } .sc-bento > .sc-span-8 { grid-column: span 8; }
@media (max-width: 900px) { .sc-bento > * { grid-column: span 12 !important; } }

/* ---------- band with edge light ---------- */
@property --sc-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.sc-band { position: relative; border-radius: 26px; background: var(--sc-glass); border: 1px solid var(--sc-edge); overflow: hidden; }
.sc-band::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--sc-angle), transparent 0 70%, rgba(226, 169, 69, .85) 86%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: sc-spin 9s linear infinite; }
@keyframes sc-spin { to { --sc-angle: 360deg; } }

/* ---------- carousel ---------- */
.sc-carousel { position: relative; container-type: inline-size; --sc-cw: 100%; }
.sc-viewport { position: relative; }
.sc-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.sc-controls { display: none; }
.sc-card { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid var(--sc-edge); background: linear-gradient(155deg, #1d2033, #11121c); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07); }
.sc-card .shot-link { border: 0; border-radius: 0; box-shadow: none; }
.sc-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 24px; }
.sc-card-kicker { margin: 0; color: var(--accent-4, #ECBE5E); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sc-card-title { margin: 0; color: var(--text-1, #EFF0F4); font-size: clamp(20px, 1.6vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.sc-card-copy { margin: 0; color: var(--text-2, #B3B7C4); font-size: clamp(14px, .95vw, 17px) !important; line-height: 1.6; }
/* styles.css floors p/a/dt/dd/li/button sizes with !important; showcase text sizes opt in the same way. */
.sc-card-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 8px; color: var(--text-1); font-size: clamp(15px, 1vw, 18px) !important; font-weight: 600; border-bottom: 1px solid var(--sc-gold-edge); text-decoration: none; }
.sc-card-link::after { content: '\2192'; transition: translate .25s var(--sc-ease); }
.sc-card-link:hover { color: var(--accent-5, #F2E3B8); text-decoration: none; border-color: var(--accent-3); }
.sc-card-link:hover::after { translate: 5px 0; }

.sc-3d .sc-viewport { perspective: 1900px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; padding-block: 8px; }
.sc-3d.is-dragging .sc-viewport { cursor: grabbing; }
.sc-3d .sc-track { position: relative; display: block; transform-style: preserve-3d; transform: rotateX(calc(var(--sc-ny, 0) * -2.4deg)) rotateY(calc(var(--sc-nx, 0) * 3.6deg)); min-height: 360px; }
.sc-3d .sc-card { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: clamp(256px, min(58cqw, calc(var(--sc-hero-fit) * .62)), 700px); backface-visibility: hidden; will-change: transform, opacity; user-select: none; -webkit-user-select: none; transition: border-color .4s, box-shadow .4s; }
.sc-3d .sc-card img { -webkit-user-drag: none; user-select: none; }
.sc-3d .sc-card.is-active { border-color: var(--sc-gold-edge); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 90px -24px rgba(226, 169, 69, .40), inset 0 1px 0 rgba(255, 255, 255, .09); }
.sc-3d .sc-card:not(.is-active) .sc-card-body { filter: saturate(.7); }
.sc-3d .sc-card:not(.is-active) { cursor: pointer; }
.sc-3d .sc-ring { position: absolute; left: 50%; top: 52%; border-radius: 50%; border: 1px solid rgba(226, 169, 69, .30); pointer-events: none; transform-style: preserve-3d; translate: -50% -50%; transform: rotateX(74deg) rotateZ(0deg); animation: sc-ring var(--t, 60s) linear infinite; }
@keyframes sc-ring { to { transform: rotateX(74deg) rotateZ(360deg); } }
.sc-ring-1 { width: 118%; aspect-ratio: 1; border-style: dashed; border-color: rgba(226, 169, 69, .26); }
.sc-ring-2 { width: 92%; aspect-ratio: 1; --t: 90s; border-color: rgba(155, 178, 217, .30); animation-direction: reverse; }
.sc-ring-3 { width: 150%; aspect-ratio: 1; --t: 140s; border-color: rgba(226, 169, 69, .12); }
.sc-ring::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 16px 4px rgba(226, 169, 69, .6); }
.sc-ring-2::after { background: var(--air); box-shadow: 0 0 16px 4px rgba(155, 178, 217, .5); }
.sc-ring-3::after { display: none; }
.sc-viewport::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -2%; height: 14%; pointer-events: none; background: radial-gradient(ellipse at center, rgba(226, 169, 69, .30), transparent 68%); filter: blur(8px); opacity: .7; }

.sc-3d .sc-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: clamp(12px, 2svh, 26px); }
.sc-nav, .sc-pause { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 1px solid var(--sc-edge); border-radius: 999px; background: rgba(21, 23, 36, .82); color: var(--text-1, #EFF0F4); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, translate .25s var(--sc-ease); }
.sc-nav { width: 44px; }
.sc-pause { padding-inline: 18px 20px; }
.sc-pause[hidden] { display: none; }
.sc-nav:hover, .sc-pause:hover { border-color: var(--accent-3); background: rgba(34, 37, 55, .92); }
.sc-nav:active, .sc-pause:active { translate: 0 1px; }
.sc-nav:focus-visible, .sc-pause:focus-visible, .sc-dot:focus-visible, .sc-card-link:focus-visible, .sc-card .shot-link:focus-visible { outline: 2px solid var(--air, #9BB2D9); outline-offset: 3px; }
.sc-pause svg, .sc-nav svg { flex: none; }
.sc-pause [data-icon="play"], .sc-pause[data-state="paused"] [data-icon="pause"] { display: none; }
.sc-pause[data-state="paused"] [data-icon="play"] { display: block; }
.sc-dots { display: inline-flex; align-items: center; }
.sc-dot { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.sc-dot::before, .sc-dot::after { content: ''; position: absolute; left: 7px; right: 7px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.sc-dot::before { background: rgba(239, 240, 244, .36); }
.sc-dot::after { background: var(--accent-3, #E2A945); transform: scaleX(0); transform-origin: 0 50%; }
.sc-dot[aria-current="true"]::before { background: rgba(226, 169, 69, .34); }
.sc-dot[aria-current="true"]::after { transform: scaleX(var(--sc-fill, 1)); }
.sc-carousel:not([data-playing="true"]) .sc-dot[aria-current="true"]::after { transform: scaleX(1); }
.sc-caption { margin: clamp(10px, 1.6svh, 18px) auto 0; max-width: 62ch; text-align: center; color: var(--text-2, #B3B7C4); font-size: 14px; line-height: 1.6; }

/* ---------- sticky story ---------- */
.sc-story { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 150px); align-items: start; --sc-progress: 0; }
.sc-story-lead { position: sticky; top: calc(var(--header, 72px) + clamp(24px, 6vh, 72px)); }
.sc-story [data-sc-step] { transition: opacity .6s var(--sc-ease), border-color .6s, background .6s; }
@media (max-width: 900px) { .sc-story { grid-template-columns: minmax(0, 1fr); } .sc-story-lead { position: static; } }

/* ---------- scroll cue: a small centered pill at the foot of the first screen (injected by showcase.js) ----------
 * The wrapper spans the hero; the pill is sticky inside it at one screen height, so it sits at the viewport bottom
 * at scroll 0, in the band .sc-hero-inner keeps free with padding (--sc-cue-h + 2 * --sc-cue-gap). When the hero's own
 * content is taller than the screen, showcase.js sets data-slot on the wrapper and the pill takes the same band at the
 * foot of the hero instead, after the content, so it never lies over text, captions, buttons or the Pause control.
 * It fades out as soon as the page scrolls. */
.sc-scroll-wrap { position: absolute; inset: 0; z-index: 3; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.sc-scroll-wrap[data-slot] { align-items: flex-end; }
.sc-scroll { position: sticky; top: calc(100vh - var(--sc-cue-h) - var(--sc-cue-gap)); top: calc(100svh - var(--sc-cue-h) - var(--sc-cue-gap)); pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: var(--sc-cue-h); padding: 0 14px 0 16px; border: 1px solid var(--sc-edge); border-radius: 999px; background: rgba(15, 16, 26, .56); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text-1, #EFF0F4); font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; line-height: 1; cursor: pointer; opacity: .92; transition: opacity .35s ease, visibility .35s, background .2s, border-color .2s; }
.sc-scroll-wrap[data-slot] .sc-scroll { position: relative; top: auto; margin-bottom: var(--sc-cue-gap); }
.sc-scroll::before { content: ''; position: absolute; inset: -5px -8px; }
.sc-scroll:hover { border-color: var(--sc-gold-edge); background: rgba(21, 23, 36, .82); opacity: 1; }
.sc-scroll:focus-visible { outline: 2px solid var(--air, #9BB2D9); outline-offset: 3px; opacity: 1; }
.sc-scroll svg { flex: none; width: 14px; height: 14px; animation: sc-cue-bob 2.4s ease-in-out infinite; }
.sc-scroll[data-away] { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes sc-cue-bob { 0%, 100% { translate: 0 -1px; } 50% { translate: 0 3px; } }
.sc-scroll-target:focus { outline: none; }

/* ---------- breakpoints ---------- */
@media (max-width: 1100px) {
  .sc-hero-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; }
}
@media (max-width: 900px) {
  .sc-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px calc(var(--sc-cue-h) + 2 * var(--sc-cue-gap) + 12px); }
  .sc-hero::before { background: linear-gradient(180deg, rgba(10, 11, 18, .62) 0%, rgba(10, 11, 18, .30) 55%, rgba(10, 11, 18, .86) 100%); }
  .sc-3d .sc-card { width: clamp(244px, 78cqw, 460px); }
  .sc-3d .sc-ring-1, .sc-3d .sc-ring-3 { display: none; }
  .sc-layers .sc-chip { display: none; }
}

/* ---------- Lite tier (site-shell kills every animation there): show final states ---------- */
html[data-tier="lite"] [data-sc-split], html[data-tier="lite"] .sc-word-in { opacity: 1; transform: none; }
html[data-tier="lite"] [data-sc-reveal]:not(.sc-in) { opacity: 1; translate: none; scale: none; }

/* ---------- calm / reduced motion: still, fully readable, no travel ---------- */
.sc-calm .sc-chip, .sc-calm .sc-ring, .sc-calm .sc-band::before, .sc-calm .sc-scroll svg { animation: none; }
/* No JavaScript means no pause control, so the endless decorative loops stay still. */
html:not(.sc-js) .sc-chip, html:not(.sc-js) .sc-ring, html:not(.sc-js) .sc-band::before { animation: none; }

/* ---------- pause state for the endless decorative loops ----------
 * html.sc-paused  the visible pause control (user choice, survives tab/tier/locale changes)
 * html.sc-hidden  the tab is hidden
 * .sc-idle        the stage (hero or band) is scrolled off screen
 * Paused, not removed: motion resumes from the same frame. */
html.sc-paused .sc-scroll svg, html.sc-hidden .sc-scroll svg, .sc-idle .sc-scroll svg { animation: none; }
html.sc-paused :is(.sc-chip, .sc-ring), html.sc-paused .sc-band::before,
html.sc-hidden :is(.sc-chip, .sc-ring), html.sc-hidden .sc-band::before,
.sc-idle :is(.sc-chip, .sc-ring), .sc-band.sc-idle::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .sc-hero *, .sc-hero *::before, .sc-hero *::after, .sc-band::before, [data-sc-reveal] { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .sc-layer { transform: none; }
  .sc-3d .sc-track { transform: none; }
  html.sc-js [data-sc-reveal]:not(.sc-in) { opacity: 1; translate: none; scale: none; }
  .sc-ring, .sc-chip, .sc-scroll svg { animation: none; }
  .sc-scroll { transition: none; }
}
/* Printing and saving as PDF never scrolls: nothing may stay hidden waiting for a reveal. */
@media print { html.sc-js [data-sc-reveal]:not(.sc-in) { opacity: 1; translate: none; scale: none; } .sc-scroll-wrap { display: none; } }
@media (forced-colors: active) {
  .sc-hl { -webkit-text-fill-color: CanvasText; color: CanvasText; background: none; }
  .sc-card, .sc-glass, .sc-band, .sc-scroll { border-color: CanvasText; }
  .sc-dot::before { background: GrayText; } .sc-dot::after { background: Highlight; }
}

/* ---------- LIGHT theme (as-yyxe) ----------
 * Dark is the default and is untouched above. Every light value below sits under html[data-theme="light"], which
 * /theme.js sets from localStorage 'aer_theme'. Only the twelve SHOWCASE pages load this file and each has a .sc-hero,
 * so body:has(.sc-hero) is the page scope (home, launcher, credits overview, products hub/Aerenium/Apps/Cloud/Services).
 * This block owns the tokens, the hero stage, glass, bands, carousel and the shared chrome, plus the light rules for
 * showcase-pages.css, aerethis-home.css, launcher-showcase.css and products-showcase.css (end of file). The Aerenium and
 * Cloud page stylesheets carry their own light rules.
 * Tokens match reading.css (white page, near-black ink, gold only as an accent) so a visitor sees one light palette site-wide:
 *   --text-1 #111318 18.6:1   --text-2 #2A2E38 13.6:1   --text-3 #4A4F5C 8.2:1   --accent #7A5200 6.9:1   --air #365A92 6.9:1
 * (all against #FFFFFF). The tokens sit under :where() so a page with its own light palette (the launcher) keeps it. */
html[data-theme="light"]:has(.sc-hero) { color-scheme: light; background: #FFFFFF; }
html[data-theme="light"] :where(body:has(.sc-hero)) {
  --bg-0: #FFFFFF; --bg-1: #F5F6F8; --bg-2: #ECEEF2; --bg-3: #E1E4EA; --bg-4: #D3D7DF;
  --text-1: #111318; --text-2: #2A2E38; --text-3: #4A4F5C; --text-4: #4A4F5C;
  --accent: #7A5200; --accent-rgb: 122, 82, 0; --accent-1: #5E3F00; --accent-2: #7A5200; --accent-3: #7A5200; --accent-4: #7A5200; --accent-5: #5C3D00;
  --air: #365A92; --air-rgb: 54, 90, 146; --secondary-bright: #365A92; --link: #1C4A94; --gold-fill: #ECBE5E; --info: #365A92;
  --success: #1F6B3A; --warn: #8A4B0F; --danger: #B3261E;
  --border: #D6DAE1; --border-strong: #767C89; --border-accent: rgba(122, 82, 0, .45); --border-hover: #4A4F5C;
  /* styles.css declares these on :root, where they resolve to the dark values before this block can reach them. */
  --control-hover: var(--bg-2); --control-press: var(--bg-3); --focus-ring: var(--air);
  --shadow-sm: none; --shadow-md: 0 1px 3px rgba(17, 19, 24, .12); --shadow-card: none; --shadow-lg: 0 8px 24px rgba(17, 19, 24, .16);
  --shadow-elevated: 0 8px 24px rgba(17, 19, 24, .16); --shadow-modal: 0 16px 40px rgba(17, 19, 24, .24); --shadow-glow: none;
  --placeholder: #666B7A; --success-bg: #E8F4EC; --warn-bg: #FFF3E0; --danger-bg: rgba(179, 38, 30, .08); --selected-bg: #FFF9EA;
  --chip-gold-bg: #FBEBC4; --chip-gold-fg: #5C3D00; --chip-blue-bg: #E4ECF8; --chip-blue-fg: #243F6B;
  --danger-hover-bg: #FBEAE8; --danger-hover-fg: #8C1D18; --scrim: rgba(17, 19, 24, .6);
  --sc-glass: linear-gradient(155deg, #FFFFFF, #F6F7FA);
  --sc-edge: rgba(17, 19, 24, .14);
  --sc-gold-edge: rgba(122, 82, 0, .5);
  color-scheme: light;
}
html[data-theme="light"] body:has(.sc-hero)::before { display: none; }
html[data-theme="light"] body:has(.sc-hero) #brand-watermark { display: none !important; }
html[data-theme="light"] body:has(.sc-hero) ::selection { background: #FBE3A6; color: #111318; }

/* Flat gold buttons with near-black ink (>= 10:1), as on the READING pages. */
html[data-theme="light"] body:has(.sc-hero) .btn-primary { background: var(--gold-fill); color: #111318; box-shadow: none; }
html[data-theme="light"] body:has(.sc-hero) .btn-primary:not(:disabled):not([aria-disabled="true"]):hover { background: #F2C14E; color: #111318; box-shadow: none; transform: none; }
html[data-theme="light"] body:has(.sc-hero) .btn-primary:not(:disabled):not([aria-disabled="true"]):active { background: #E2A945; color: #111318; }
html[data-theme="light"] body:has(.sc-hero) .btn-secondary { background: var(--bg-0); color: var(--text-1); border: 1px solid var(--border-strong); box-shadow: none; }
html[data-theme="light"] body:has(.sc-hero) .btn-secondary:hover { background: var(--bg-1); border-color: var(--text-1); color: var(--text-1); }
html[data-theme="light"] body:has(.sc-hero) .btn-ghost { color: var(--text-1); border: 1px solid var(--border-strong); }
html[data-theme="light"] body:has(.sc-hero) .btn-ghost:hover { background: var(--bg-1); border-color: var(--text-1); color: var(--text-1); }

/* Hero stage: white and air blue with a gold bloom instead of night. The WebGL field paints the same palette (showcase.js). */
html[data-theme="light"] .sc-poster { background:
  radial-gradient(60vw 46vh at 74% 18%, rgba(226, 169, 69, .20), transparent 70%),
  radial-gradient(48vw 56vh at 8% 78%, rgba(155, 178, 217, .32), transparent 72%),
  radial-gradient(70vw 40vh at 50% 118%, rgba(226, 169, 69, .12), transparent 70%),
  linear-gradient(180deg, #FFFFFF 0%, #F6F7FA 100%); }
html[data-theme="light"] .sc-poster::after { opacity: .5; background: repeating-linear-gradient(180deg, rgba(122, 82, 0, .16) 0 1px, transparent 1px 34px); }
html[data-theme="light"] .sc-gl .sc-poster::after { opacity: 0; }
html[data-theme="light"] .sc-hero::before { background:
  linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .42) 38%, transparent 62%),
  linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .9) 100%); }
html[data-theme="light"] .sc-pane { border-color: rgba(122, 82, 0, .22); background: linear-gradient(140deg, rgba(226, 169, 69, .10), rgba(155, 178, 217, .08) 60%, transparent); box-shadow: none; }
html[data-theme="light"] .sc-chip { border-color: rgba(122, 82, 0, .4); background: linear-gradient(135deg, rgba(226, 169, 69, .34), rgba(155, 178, 217, .12)); box-shadow: 0 0 24px rgba(226, 169, 69, .18); }
html[data-theme="light"] .sc-chip.is-air { border-color: rgba(54, 90, 146, .4); background: linear-gradient(135deg, rgba(155, 178, 217, .36), rgba(54, 90, 146, .10)); box-shadow: 0 0 24px rgba(54, 90, 146, .12); }
html[data-theme="light"] .sc-hl { background-image: linear-gradient(100deg, #A86F00 0%, #8A5A00 52%, #6B4700 100%); }
html[data-theme="light"] .sc-hero .sc-eyebrow { background: rgba(255, 255, 255, .86); }
html[data-theme="light"] .sc-hero .sc-intro { opacity: 1; color: var(--text-2); }

/* Glass, band, carousel */
html[data-theme="light"] .sc-glass { box-shadow: 0 24px 48px -34px rgba(17, 19, 24, .32), 0 1px 2px rgba(17, 19, 24, .06), inset 0 1px 0 #FFFFFF; }
html[data-theme="light"] .sc-glass[data-sc-tilt]::before { background: radial-gradient(520px circle at var(--sc-mx, 50%) var(--sc-my, 0%), rgba(226, 169, 69, .14), transparent 62%); }
html[data-theme="light"] .sc-band::before { background: conic-gradient(from var(--sc-angle), transparent 0 70%, rgba(154, 106, 0, .8) 86%, transparent 100%); }
html[data-theme="light"] .sc-card { background: linear-gradient(155deg, #FFFFFF, #F5F6F8); box-shadow: 0 30px 60px -36px rgba(17, 19, 24, .36), 0 1px 2px rgba(17, 19, 24, .06), inset 0 1px 0 #FFFFFF; }
html[data-theme="light"] .sc-3d .sc-card.is-active { box-shadow: 0 40px 80px -40px rgba(17, 19, 24, .42), 0 0 80px -28px rgba(226, 169, 69, .5), inset 0 1px 0 #FFFFFF; }
html[data-theme="light"] .sc-card-link:hover { color: var(--accent-5); }
html[data-theme="light"] .sc-ring { border-color: rgba(122, 82, 0, .26); }
html[data-theme="light"] .sc-ring-1 { border-color: rgba(122, 82, 0, .26); }
html[data-theme="light"] .sc-ring-2 { border-color: rgba(54, 90, 146, .30); }
html[data-theme="light"] .sc-ring-3 { border-color: rgba(122, 82, 0, .14); }
html[data-theme="light"] .sc-ring::after { box-shadow: 0 0 14px 3px rgba(226, 169, 69, .55); }
html[data-theme="light"] .sc-ring-2::after { box-shadow: 0 0 14px 3px rgba(54, 90, 146, .35); }
html[data-theme="light"] .sc-viewport::after { background: radial-gradient(ellipse at center, rgba(226, 169, 69, .24), transparent 68%); }
html[data-theme="light"] .sc-nav, html[data-theme="light"] .sc-pause { border-color: var(--border-strong); background: rgba(255, 255, 255, .92); color: var(--text-1); }
html[data-theme="light"] .sc-nav:hover, html[data-theme="light"] .sc-pause:hover { border-color: var(--text-1); background: var(--bg-1); }
html[data-theme="light"] .sc-dot::before { background: #767C89; }
html[data-theme="light"] .sc-dot[aria-current="true"]::before { background: rgba(122, 82, 0, .32); }
html[data-theme="light"] .sc-scroll { border-color: var(--border-strong); background: rgba(255, 255, 255, .86); color: var(--text-1); }
html[data-theme="light"] .sc-scroll:hover { border-color: var(--text-1); background: #FFFFFF; }
html[data-theme="light"] .sc-nav:focus-visible, html[data-theme="light"] .sc-pause:focus-visible, html[data-theme="light"] .sc-dot:focus-visible,
html[data-theme="light"] .sc-card-link:focus-visible, html[data-theme="light"] .sc-card .shot-link:focus-visible, html[data-theme="light"] .sc-scroll:focus-visible { outline-color: var(--air); }
@media (max-width: 900px) {
  html[data-theme="light"] .sc-hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .36) 55%, rgba(255, 255, 255, .9) 100%); }
}

/* ---- Light site header, menus and footer (the READING chrome, scoped to body:has(.sc-hero)) ---- */
:where(html[data-theme="light"]) body:has(.sc-hero) .site-header,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:where(html[data-theme="light"]) body:has(.sc-hero) .nav-links > a,
:where(html[data-theme="light"]) body:has(.sc-hero) .nav-auth > a { color: var(--text-2); }
:where(html[data-theme="light"]) body:has(.sc-hero) .nav-links a:hover,
:where(html[data-theme="light"]) body:has(.sc-hero) .nav-auth a:hover { color: var(--text-1); background: var(--bg-2); }
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .nav-links > a.is-current:not(.nav-cta),
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .nav-auth > a.is-current { color: var(--text-1); background: var(--bg-1); }
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .nav-links > a.is-current:not(.nav-cta)::after,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .nav-auth > a.is-current:not(.nav-cta)::after,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .mobile-menu-btn.is-current::after,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .mobile-menu a.is-current:not(.nav-cta)::after,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .logo.is-current::after { background: var(--accent); }
:where(html[data-theme="light"]) body:has(.sc-hero) .nav-cta,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .mobile-menu .nav-cta {
  background: var(--gold-fill);
  color: #111318 !important;
  box-shadow: none;
}
:where(html[data-theme="light"]) body:has(.sc-hero) .nav-cta:hover,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .mobile-menu .nav-cta:hover {
  background: #F2C14E;
  color: #111318 !important;
  box-shadow: none;
  transform: none;
}
:where(html[data-theme="light"]) body:has(.sc-hero) .logo { color: var(--text-1); }
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .nav-cart-standalone:hover,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .nav-cart-standalone.is-current { background: var(--bg-2); }
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .nav-cart-standalone.is-current { box-shadow: inset 0 -2px var(--accent); }
:where(html[data-theme="light"]) body:has(.sc-hero) .mobile-menu-btn:hover { background: var(--bg-2); }
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .mobile-menu { background: var(--bg-0); }
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .mobile-menu a:hover,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .mobile-menu a.is-current { background: var(--bg-1); }
:where(html[data-theme="light"]) body:has(.sc-hero) .ccy-btn:hover { background: var(--bg-2); }

/* ---- Light footer ------------------------------------------------------ */
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .site-footer,
:where(html[data-theme="light"]) body:has(.sc-hero) .site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  color: var(--text-2);
}
:where(html[data-theme="light"]) body:has(.sc-hero) .footer-links a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
:where(html[data-theme="light"]) body:has(.sc-hero) .footer-links a:hover { color: var(--text-1); }
/* The lockup is a light-on-dark mark; keep it on its own sky plate. */
:where(html[data-theme="light"]) body:has(.sc-hero) .footer-brand-mark {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  border-radius: var(--r-md);
  background: #0A0B12;
  opacity: 1;
}
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .locale-btn:hover,
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .locale-btn[aria-expanded="true"] { background: var(--bg-2); }
:where(html[data-theme="light"]) body:has(.sc-hero).site-frame .locale-menu { background: #FFFFFF; box-shadow: var(--shadow-lg); }

/* The launcher page keeps its own filter-based mark treatment (launcher-page.css). */
:where(html[data-theme="light"]) body:has(.sc-hero).launcher-page .footer-brand-mark { background: transparent; }

/* ---- Light rules for the page-level parts that live in showcase-pages.css, aerethis-home.css, launcher-showcase.css and
 * products-showcase.css. They sit here, in the one stylesheet that carries its own release key, so those four keep theirs. */
html[data-theme="light"] .sc-frame { background: #FFFFFF; border-color: var(--border-strong); box-shadow: 0 34px 60px -34px rgba(17, 19, 24, .45), 0 0 0 1px rgba(17, 19, 24, .04); }
html[data-theme="light"] .sc-frame-cap::before { background: var(--accent); box-shadow: none; }
html[data-theme="light"] .sc-frame:focus-within { border-color: var(--sc-gold-edge); }
html[data-theme="light"] .sc-tag { background: rgba(255, 255, 255, .94); border-color: var(--sc-gold-edge); box-shadow: 0 14px 30px -18px rgba(17, 19, 24, .45); }
html[data-theme="light"] .sc-tag::before { background: var(--accent); box-shadow: none; }
html[data-theme="light"] .sc-tag.is-air::before { background: var(--air); box-shadow: none; }
html[data-theme="light"] .sc-alt { background: radial-gradient(60vw 40vh at 85% 0%, rgba(236, 190, 94, .12), transparent 70%), radial-gradient(50vw 40vh at 0% 100%, rgba(54, 90, 146, .06), transparent 70%), var(--bg-1); }
html[data-theme="light"] .sc-head .sc-kicker { color: var(--air); }
/* The commerce plan cards hard-code a dark wash in site-shell.css (.editorial-ui .plan). */
html[data-theme="light"] body:has(.sc-hero) .plan { background: var(--bg-1); }
html[data-theme="light"] body:has(.sc-hero) .plan.popular { background: linear-gradient(180deg, #FFFFFF, var(--bg-1)); border-color: var(--border-strong); }
html[data-theme="light"] body:has(.sc-hero) .plan-badge { color: var(--chip-gold-fg); background: var(--chip-gold-bg); }
/* Home: the studio chips and link hover wash. */
html[data-theme="light"] body :is(.studio-eyebrow, .studio-status) { background: rgba(255, 255, 255, .88); }
html[data-theme="light"] .studio-link:hover { background: var(--bg-2); }
/* Products hub: the heavy dark drop shadow becomes a soft ink shadow. */
html[data-theme="light"] .ps-stage .ps-card { box-shadow: 0 30px 60px -34px rgba(17, 19, 24, .4), 0 0 0 1px rgba(17, 19, 24, .04); }
/* Launcher: its hero pins a dark stage (launcher-showcase.css). In the light scheme it takes the launcher's own light tokens back. */
html[data-theme="light"] .lp-stage.sc-hero { color-scheme: light; --bg-0: inherit; --bg-1: inherit; --bg-2: inherit; --bg-3: inherit; --text-1: inherit; --text-2: inherit; --air: inherit; --accent: inherit; --accent-3: inherit; --accent-4: inherit; --border: inherit; --border-strong: inherit; }
html[data-theme="light"] .lp-stage.sc-hero .lp-eyebrow { background: rgba(255, 255, 255, .84); border-color: var(--sc-gold-edge); }
html[data-theme="light"] .lp-stage.sc-hero .sc-intro { color: var(--text-2); }
html[data-theme="light"] .launcher-page .lp-btn-primary { background: var(--gold-fill, #ECBE5E); border-color: var(--gold-fill, #ECBE5E); color: #111318; }
html[data-theme="light"] .launcher-page .lp-btn-primary:hover { background: #F2C14E; border-color: #F2C14E; color: #111318; }
