/* One grid, one type scale and one rhythm across the landing page sections. */
.aop-page {
  --sys-measure: 1120px;
  --sys-gap: 176px;
  --sys-sheet: 40px;
  --sys-answers: 880px;
  --sys-h2: clamp(52px, 5.2vw, 80px);
  --sys-h2-support: clamp(32px, 2.8vw, 40px);
  --sys-radius: 8px;
  --sys-column-gutter: 64px;
  --sys-plate-radius: 16px;
  --sys-plate-shadow: 0 1px 2px rgb(23 29 25 / .06), 0 44px 72px -48px rgb(23 29 25 / .34);
  --sys-plate-border: #e2e5dd;
  --sys-plate-shadow-quiet: 0 1px 2px rgb(23 29 25 / .05), 0 24px 44px -34px rgb(23 29 25 / .2);
  --sys-stage-light: radial-gradient(90% 70% at 50% 0%, #ffe46d 0%, rgb(255 228 109 / 0) 70%), linear-gradient(180deg, #f8d335 0%, #efc21a 100%);
}
@media (max-width: 760px) {
  .aop-page { --sys-gap: 80px; --sys-h2: 38px; --sys-h2-support: 30px; }
}

.aop-page :is(.ass-heading, .atomic-walk-opener, .atomic-fit-heading) h2 { font-size: var(--sys-h2); font-weight: 400; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.aop-page :is(.ass-heading, .atomic-walk-opener, .atomic-fit-heading) h2 strong { font-weight: 600; color: inherit; }
.aop-page .atomic-questions h2 { font-size: var(--sys-h2-support); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.aop-page .cs-faq-item summary { text-wrap: pretty; }

.aop-page .astg-stage.ass-story { padding-top: calc(var(--sys-gap) - var(--sys-sheet)); padding-bottom: 0; }
.aop-page .atomic-close { padding-top: calc(var(--sys-gap) - 2 * var(--sys-sheet)); }
.aop-page :is(.atomic-fit, .atomic-questions) { margin: 0 auto calc(var(--sys-gap) - var(--sys-sheet)); }
.aop-page .atomic-fit { width: min(100%, var(--sys-measure)); }
.aop-page .atomic-questions { width: min(100%, var(--sys-answers)); }
.aop-page .atomic-acquisition { margin-bottom: 96px; border-radius: var(--sys-radius); }

@media (max-width: 760px) {
  .aop-page .atomic-acquisition { margin-bottom: 64px; }
}


@media (prefers-reduced-motion: no-preference) {
  .aop-page { --sys-ease: cubic-bezier(.16, 1, .3, 1); }
  .aop-page [data-reveal="waiting"] { opacity: 0; transform: translateY(28px) scale(.985); }
  .aop-page [data-reveal="shown"] { transition: opacity 700ms var(--sys-ease), transform 700ms var(--sys-ease); }
  @keyframes sys-rise { from { opacity: 0; transform: translateY(12px); } }
  @keyframes sys-plate { from { transform: translateY(28px) scale(.985); } }
  .aop-page .aop-intro > :is(.aop-tagline, .aop-category, .aop-actions),
  .aop-page .atomic-hero-hosts { animation: sys-rise 700ms var(--sys-ease) backwards; }
  .aop-page .aop-intro > .aop-tagline { animation-delay: 60ms; }
  .aop-page .aop-intro > .aop-category { animation-delay: 120ms; }
  .aop-page .aop-intro > .aop-actions { animation-delay: 180ms; }
  .aop-page .atomic-hero-hosts { animation-delay: 240ms; }
  .aop-page .aop-stage { animation: sys-plate 780ms var(--sys-ease) backwards; }
  @keyframes sys-orbit { from { stroke-dashoffset: 1; } }
  .aop-page :is(.aop-title-orbit, [data-reveal="shown"] > .atomic-acquisition-mark) .site-orbit path { stroke-dasharray: 1; animation: sys-orbit 900ms var(--sys-ease) backwards; }
  .aop-page :is(.aop-title-orbit, .atomic-acquisition-mark) .site-orbit path:nth-child(1) { animation-delay: 180ms; }
  .aop-page :is(.aop-title-orbit, .atomic-acquisition-mark) .site-orbit path:nth-child(2) { animation-delay: 280ms; }
  .aop-page :is(.aop-title-orbit, .atomic-acquisition-mark) .site-orbit path:nth-child(3) { animation-delay: 380ms; }
  .aop-page :is(.aop-title-orbit, .atomic-acquisition-mark) .site-orbit path:nth-child(4) { animation-delay: 480ms; }
}
/* The hero stage: the plug-in leans back on a lit stage like gear on a desk stand and rises to face the reader as the page scrolls. */
@media (min-width: 901px) {
  .aop-page .aop-intro { padding-block: 28px 44px; }
  .aop-page .aop-stage {
    --stage-tilt: 12; --stage-depth: 2000; --stage-clearance: 80;
    --instrument: min(1120px, calc(min(100vw - 2 * var(--aop-gutter), var(--aop-wide)) - 2 * var(--aop-inset)), max(900px, calc((100svh - 100px) * 1.6154)));
    --stage-lean: calc((1 - var(--stage-rise, 1)) * var(--stage-tilt) * 1deg);
    --stage-scale: calc(var(--stage-fit, 1) + (1 - var(--stage-fit, 1)) * var(--stage-rise, 1));
    padding: 48px var(--aop-inset) 132px; border-radius: 24px; background: var(--sys-stage-light);
  }
  .aop-page .atomic-acquisition { border-radius: 24px; }
  .aop-page .aop-instrument { width: min(100%, var(--instrument)); }
  .aop-page .aop-instrument .atomic-film { perspective: calc(var(--stage-depth) * 1px); perspective-origin: 50% 0%; }
  .aop-page .atomic-film-object {
    position: relative; transform-origin: 50% 0%;
    transform: rotateX(var(--stage-lean)) scale(var(--stage-scale));
  }
  .aop-page .atomic-film-object::after { content: ""; position: absolute; z-index: -1; inset: auto 6% -18px; height: 30px; border-radius: 50%; background: rgb(62 51 6 / .3); filter: blur(18px); }
  .aop-page .aop-stage .atomic-film-screen { border-radius: 14px; box-shadow: 0 1px 0 rgb(255 255 255 / .16) inset, 0 2px 6px rgb(62 51 6 / .2), 0 30px 44px -26px rgb(62 51 6 / .55); }
  .aop-page .afi-film-label { top: auto; bottom: -88px; }
  .aop-page .aop-instrument .afi-open-symbol,
  .aop-page .aop-instrument .atomic-film--frameless .atomic-film-toggle { top: auto; bottom: -88px; }
  .aop-page .aop-instrument .afi-open { pointer-events: none; border-radius: 14px; }
  .aop-page .aop-instrument .afi-open-symbol { pointer-events: auto; cursor: pointer; }
  .aop-page .aop-stage .atomic-film-screen { cursor: zoom-in; }
  .aop-page .atomic-hero-hosts { justify-content: center; margin-top: 40px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .aop-page .aop-intro { padding-block: 8px 32px; }
  .aop-page .aop-stage { padding-top: 40px; }
}
@media (min-width: 901px) and (max-height: 740px) {
  .aop-page .atomic-acquisition { padding-top: 24px; }
  .aop-page .atomic-acquisition-mark { width: 60px; height: 40px; }
  .aop-page .atomic-acquisition h2 { margin-top: 8px; font-size: 48px; }
  .aop-page .atomic-acquisition-invitation > p:not([class]) { max-width: none; margin-top: 16px; font-size: 17px; }
  .aop-page .atomic-acquisition-invitation .atomic-offer-price { margin-top: 16px; font-size: 40px; }
  .aop-page .atomic-acquisition-actions { display: flex; align-items: center; gap: 28px; margin-top: 24px; }
  .aop-page .atomic-acquisition-actions .cs-button { min-height: 56px; }
  .aop-page .atomic-acquisition-actions .cs-text-link { margin-top: 0; }
  .aop-page .atomic-acquisition-product { margin-top: 24px; }
  .aop-page .aop-intro { padding-block: 0 24px; }
  .aop-page .aop-stage { padding-top: 32px; }
  .aop-page .aop-intro .aop-title-lockup { font-size: 4rem; }
  .aop-page .aop-tagline { font-size: 1.5rem; margin-block: 12px 8px; }
  .aop-page .aop-actions { margin-top: 20px; }
}
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .aop-page .aop-stage { --stage-rise: 0; }
  .aop-page .atomic-film-object { animation: hero-settle 1100ms var(--sys-ease) 120ms backwards; }
  @keyframes hero-settle { from { transform: rotateX(30deg) scale(calc(var(--stage-fit, 1) * .92)) translateY(56px); } }
}
/* The closing stage: the page ends where it began, and the plug-in rises out of the bottom edge, settling as the stage comes into view. */
@supports (animation-timeline: view()) {
  @media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .aop-page .atomic-acquisition-product { view-timeline: --closing-product block; }
    .aop-page .atomic-acquisition-product img { animation: closing-rise ease-out both; animation-timeline: --closing-product; animation-range: entry; }
    @keyframes closing-rise { from { transform: translateY(160px); } }
  }
}

/* The opening: once the hero's foot reaches the window's foot the hero stays (--hero-height, set by the script), and the listening chapter comes up over it as a sheet, the way the dark stage later comes up over the page. While a control in the hero has keyboard focus the hero scrolls normally, so the sheet never covers the focused control. Where the browser can tie motion to the scroll, the hero settles back a little towards the top of its visible part as it is covered, and the statement rises into place. */
@media (min-width: 901px) {
  .aop-page .aop-hero[data-hero-anchored] { position: sticky; top: min(0px, 100svh - var(--hero-height)); }
  .aop-page .aop-hero[data-hero-anchored]:has(:focus-visible) { position: relative; top: auto; }
  .aop-page [data-hero-cover] { position: relative; z-index: 1; min-height: 100svh; border-radius: var(--sys-sheet) var(--sys-sheet) 0 0; box-shadow: 0 -1px 0 rgb(23 29 25 / .05), 0 -32px 64px -32px rgb(23 29 25 / .3); }
}
@supports (animation-timeline: view()) {
  @media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .aop-page [data-hero-opening] { timeline-scope: --hero-cover; }
    .aop-page [data-hero-cover] { view-timeline: --hero-cover block; }
    .aop-page .aop-hero[data-hero-anchored] { transform-origin: 50% max(0px, var(--hero-height) - 100svh); animation: hero-recede linear both; animation-timeline: --hero-cover; animation-range: entry 0% entry 100%; }
    .aop-page [data-hero-cover] .ass-heading > :is(h2, p) { animation: hero-statement linear both; animation-timeline: --hero-cover; animation-range: entry 6% entry 44%; }
    @keyframes hero-recede { to { transform: scale(.95); } }
    @keyframes hero-statement { from { opacity: 0; transform: translateY(28px); } }
  }
}
