/* A short document entrance keeps the header stable and all links native. */
@media (prefers-reduced-motion: no-preference) {
  .site-full main { animation: page-content-enter 200ms ease-out; }
}
@keyframes page-content-enter {
  from { opacity: .35; }
  to { opacity: 1; }
}

/* Neutral defaults; each app's theme.css overrides only its own choices. */
:root {
  --background: #111111;
  --surface: #1b1b1b;
  --ink: #f2f1ed;
  --muted: #aaa9a5;
  --line: #363636;
  --accent: #ffffff;
  --media-background: #080808;
  --media-ink: #ffffff;
  --media-muted: #bababa;
  --font-body: Arial, Helvetica, sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --motion-fast: .2s;
  --motion-enter: .7s;
  --motion-art: .9s;
  --motion-distance: 20px;
  --motion-ease: ease-out;
  --hover-lift: -3px;
  --motion-section: .55s;
  --motion-stagger: .12s;
  --header-offset: 0px;
  --motion-hero: 1.3s;
  --placeholder-height: clamp(12rem, 24vw, 22.5rem);
  --focus-width: 3px;
  --focus-offset: 6px;
  /* Optional 3D theme settings, sampled when the visitor activates a scene. */
  --experience-idle-period: 10s;
  --experience-idle-radians: .12;
  --experience-scroll-radians: .18;
  --experience-scroll-follow: 180ms;
  --experience-light-pointer-x: 4.8;
  --experience-light-pointer-y: 2;
  --experience-light-scroll: 1.6;
}
/* Layout contracts stay on the complete site; themes own their values. */
.site-full {
  overflow-wrap: anywhere;
  --motion-scroll-distance: 2rem;
  --motion-scroll-duration: 700ms;
  --motion-parallax-distance: 6px;
  --button-gap: 2.5rem;
  --section-space: clamp(3rem, 6vw, 6rem);
  --reading-measure: 62ch;
  --card-gap: clamp(1.5rem, 3vw, 3rem);
  --hero-title-tracking: -.055em;
  /* Motion contract: override these in a theme, never in editorial JSON. */
  --motion-fast: 200ms;
  --motion-press: 100ms;
  --motion-panel: 280ms;
  --motion-exit: 160ms;
  --motion-media: 240ms;
  --motion-panel-distance: 6px;
  --motion-arrow-distance: 2px;
  --motion-press-scale: .985;
  --motion-ease: cubic-bezier(.2, .7, .2, 1);
  --motion-action-ease: ease-in-out;
  --motion-surface: 150ms;
  --motion-halo: 300ms;
  --motion-card-background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.site-full :is(.text-body > p, .page-intro > p) { max-width: var(--reading-measure); text-wrap: pretty; }
.site-full .card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.site-full .card > :is(.button, .text-link) { margin-top: auto; }
.site-full .card-grid { gap: var(--card-gap); }
.site-full .button { max-width: 100%; gap: min(var(--button-gap), 12.5vw); }
.site-full .footer-top { flex-wrap: wrap; }
.site-full .footer-top > * { min-width: 0; max-width: 100%; }
.site-full .footer-top > .brand { display: inline-flex; align-items: center; min-height: 44px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset) + 1rem); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--background); color: var(--ink); font-family: var(--font-body); line-height: 1.6; }
main { flex: 1; }
a { color: inherit; text-underline-offset: .3em; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.skip-link { position: fixed; z-index: 10; top: -6rem; left: 1rem; padding: 1rem; background: var(--ink); color: var(--background); }
.skip-link:focus { top: 1rem; }
.prototype-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem var(--gutter); background: var(--surface); color: var(--muted); border-bottom: 1px solid var(--line); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; min-height: 105px; padding: 1.5rem var(--gutter); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.15rem; line-height: 1.1; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: -.045em; }
#navigation { display: flex; flex-wrap: wrap; gap: clamp(1rem, 2.6vw, 2.7rem); align-items: center; }
#navigation a { color: var(--muted); text-decoration: none; font-size: .78rem; padding: .6rem 0; }
#navigation a:hover, #navigation a[aria-current="page"], #navigation a[aria-current="location"] { color: var(--ink); }
#navigation a[aria-current="page"] { box-shadow: 0 1px var(--ink); }
@media (forced-colors: active) {
  .site-full #navigation a:is([aria-current="page"], [aria-current="location"]) { text-decoration: underline; text-underline-offset: .4em; }
}
.menu-toggle { display: none; background: transparent; border: 1px solid var(--line); padding: .65rem 1rem; cursor: pointer; }
.eyebrow { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 1.7rem; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -.055em; }
h1, h3 { white-space: pre-line; }
.arrow { display: inline-block; width: .65rem; height: .65rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; flex: 0 0 auto; }
.arrow::after { content: ''; display: block; height: 1px; width: .85rem; background: currentColor; transform: rotate(-45deg) translate(-.18rem, .14rem); transform-origin: right; }
h1 { font-size: clamp(3.7rem, 7.8vw, 8.6rem); max-width: 12ch; margin-bottom: 2rem; }
h2 { font-size: clamp(2.7rem, 5.5vw, 5.3rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.hero { position: relative; min-height: 710px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 5vw; padding: 5rem var(--gutter) 6rem; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy > p { max-width: 39ch; color: var(--muted); font-size: 1rem; }
.hero .eyebrow { display: flex; align-items: center; gap: .8rem; }
.hero .eyebrow::before { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding: 1rem 1.3rem; background: var(--ink); color: var(--background); text-decoration: none; font-size: .78rem; transition: transform var(--motion-fast); }
.button:hover { transform: translateY(var(--hover-lift)); }
.text-link { font-size: .78rem; display: inline-flex; gap: 1.4rem; align-items: center; }
.hero-art { position: relative; container-type: inline-size; min-height: 450px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.hero-art .art-caption { position: absolute; bottom: 1.3rem; left: 1.5rem; right: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .63rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-art .art-caption span:last-child { flex: 0 0 auto; white-space: nowrap; }
.type-art { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 7rem); font-size: clamp(2rem, 16cqi, 8rem); letter-spacing: -.09em; line-height: .87; transform: rotate(-7deg); padding: 8cqi; font-weight: 700; }
.type-art span { display: block; }
.hero-art::before, .hero-art::after { content: ''; position: absolute; background: var(--line); pointer-events: none; }
.hero-art::before { width: 1px; height: 100%; left: 50%; }
.hero-art::after { height: 1px; width: 100%; top: 50%; }
.hero-art img, .type-art { position: relative; z-index: 1; }
.hero-art img { width: 85%; }
.hero-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1rem; }
.section { padding: 6rem var(--gutter); border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { color: var(--muted); max-width: 34ch; margin: 0; font-size: .9rem; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); }
.feature-copy { padding: clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; align-items: start; }
.feature-copy p { color: var(--muted); max-width: 38ch; }
.feature-media { min-height: 380px; display: grid; align-content: center; padding: 3rem; background: var(--media-background); color: var(--media-ink); position: relative; overflow: hidden; }
.feature-media img { max-height: 250px; width: 100%; object-fit: contain; }
.feature-media .media-note { position: absolute; bottom: 1.2rem; left: 1.5rem; font-size: .65rem; color: var(--media-muted); }
.feature-title { font-size: clamp(3rem, 5vw, 6rem); text-align: center; letter-spacing: -.065em; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.card-index { font-size: .7rem; color: var(--muted); margin-bottom: 2.2rem; display: block; }
.card p { color: var(--muted); max-width: 40ch; font-size: .95rem; }
.card h3 { margin-bottom: 1rem; }
.page-intro { padding: 5rem var(--gutter); }
.page-intro h1 { max-width: 15ch; font-size: clamp(3.3rem, 7.5vw, 7rem); }
.page-intro p { max-width: 56ch; color: var(--muted); font-size: 1.08rem; }
.text-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 7vw; }
.text-body p { color: var(--muted); max-width: 58ch; }
.facts { margin: 2rem 0 0; }
.facts div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--line); padding: 1rem 0; font-size: .85rem; }
.facts dt { color: var(--muted); }.facts dd { margin: 0; }
.notice { border-left: 2px solid var(--line); padding: .7rem 1.2rem; color: var(--muted); font-size: .85rem; margin: 2rem 0 0; max-width: 60ch; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.gallery > figure { min-width: 0; }
.gallery > figure:only-child { grid-column: 1 / -1; }
.media-placeholder { min-height: 230px; width: 100%; aspect-ratio: 16/10; background: var(--surface); border: 1px solid var(--line); display: grid; place-content: center; text-align: center; padding: 2rem; }
.media-placeholder span { font-size: 2rem; font-weight: 300; margin-bottom: 1rem; }.media-placeholder p { color: var(--muted); font-size: .78rem; margin: 0; }
.gallery img { width: 100%; object-fit: cover; background: var(--surface); }.gallery figcaption { padding-top: 1rem; font-size: .8rem; color: var(--muted); }
/* A local poster reserves the player's size before any YouTube request. */
.youtube-section > p { max-width: 65ch; color: var(--muted); }
.youtube-stage { position: relative; width: 100%; min-height: 202px; aspect-ratio: 16 / 9; background: var(--media-background); color: var(--media-ink); border: 1px solid var(--line); overflow: hidden; }
.youtube-preview { position: absolute; inset: 0; display: grid; place-items: center; }
.youtube-preview img { width: 100%; height: 100%; object-fit: contain; }
.youtube-preview .media-fallback { margin: 0; padding: 1.5rem; color: var(--media-muted); text-align: center; font-size: .85rem; }
.youtube-load { position: absolute; left: 50%; bottom: clamp(.75rem, 2vw, 1.5rem); transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); min-height: 44px; justify-content: center; text-align: center; border: 1px solid var(--background); cursor: pointer; }
.youtube-load:hover { transform: translateX(-50%) translateY(var(--hover-lift)); }
.youtube-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.youtube-stage iframe:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.youtube-player figcaption { padding-top: 1rem; color: var(--muted); font-size: .85rem; }
.youtube-notice, .youtube-status { max-width: 75ch; margin-block: 1rem; color: var(--muted); font-size: .8rem; }
.youtube-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.youtube-actions .text-link { min-height: 44px; }
.youtube-stop { padding: 0; background: transparent; border: 0; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }
.cta { display: flex; justify-content: space-between; gap: 3rem; align-items: center; }.cta h2 { max-width: 16ch; }.cta p { color: var(--muted); max-width: 46ch; }
.site-footer { background: var(--surface); padding: 3rem var(--gutter) 1.5rem; border-top: 1px solid var(--line); }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }.footer-top { padding-bottom: 4rem; }.back-top { font-size: .75rem; }.footer-bottom { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .65rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .site-full :is(.motion-assembly, .motion-return, .motion-none) :is(.hero-copy, .hero-art) { animation: none; }
  .hero-copy { animation: enter var(--motion-enter) var(--motion-ease) both; }
  .hero-art { animation: enter var(--motion-art) var(--motion-ease) both; }
  @keyframes enter { from { opacity: 0; transform: translateY(var(--motion-distance)); } to { opacity: 1; transform: translateY(0); } }
}
@media (min-width: 1800px) { body { max-width: 1900px; margin: auto; border-inline: 1px solid var(--line); } }
@media (max-width: 899px) {
  .site-header { flex-wrap: wrap; gap: 1rem; min-height: 85px; }.site-header #navigation { width: 100%; flex-wrap: wrap; }
  .has-js .menu-toggle { display: inline-flex; gap: 1.5rem; }.has-js .menu-toggle[aria-expanded="false"] + #navigation { display: none; }
  .hero { min-height: auto; gap: 3rem; padding-top: 3.5rem; }.hero-art { min-height: 330px; }
  .feature { grid-template-columns: 1fr 1fr; }.feature-media { min-height: 320px; padding: 2rem; }
  .section { padding-block: 4rem; }.text-layout { grid-template-columns: 1fr; gap: 2rem; }
  .card-grid-three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .prototype-bar { font-size: .55rem; }.prototype-bar span:last-child { max-width: 20ch; text-align: right; }
  .brand { font-size: 1rem; }.hero { grid-template-columns: 1fr; padding-block: 3rem; gap: 2.5rem; }
  h1 { max-width: 11ch; }.hero-art { min-height: 330px; }
  .hero-foot { font-size: .58rem; gap: 1rem; margin: 0; }.hero-foot span:last-child { text-align: right; }
  .feature, .card-grid, .gallery { grid-template-columns: 1fr; }.feature-media { min-height: 290px; }
  .section-heading { display: block; }.section-heading p { margin-top: 1.5rem; }.card { padding-bottom: 1.5rem; }
  .cta { display: block; }.cta .button { margin-top: 1rem; }.page-intro { padding-block: 3rem; }
  .footer-bottom { align-items: start; }.footer-bottom span { max-width: 28ch; }.media-placeholder { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Language links are ordinary links: usable without JavaScript or cookies. */
.language-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-inline-start: auto; font-size: .8rem; }
.language-switcher a { display: inline-flex; align-items: center; min-height: 44px; padding: .3rem .2rem; text-decoration: none; color: var(--muted); }
.language-switcher a:hover, .language-switcher a[aria-current] { color: var(--ink); }
.language-switcher a[aria-current] { text-decoration: underline; text-underline-offset: .4em; }
:lang(zh) { line-break: strict; }
/* Resolve language fonts where site-scoped theme properties are defined. */
body:lang(zh), body.site-full:lang(zh) { --font-body: var(--font-chinese, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif); --font-display: var(--font-chinese, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif); }
:lang(zh) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
.language-switcher a:lang(zh) { font-family: var(--font-chinese, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif); }
@media (max-width: 899px) {
  .site-header .language-switcher { flex-basis: 100%; margin: 0; border-top: 1px solid var(--line); padding-top: .4rem; }
}

/* Native disclosure works before or without JavaScript. Older browsers retain
   the same operable menu at every width; modern desktop CSS exposes its links. */
.site-full .site-header { container: site-header / inline-size; max-height: 100svh; overflow: auto; scroll-padding-block: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; min-height: var(--header-min-height, 105px); background: var(--background); }
.has-js .site-full .site-header { position: sticky; top: 0; z-index: 5; }
/* Header controls are already inside the obstruction: do not scroll them below it. */
html:has(.site-full .site-navigation[open]:focus-within) { scroll-padding-top: 1rem; }
/* Short windows and zoomed layouts need the full height for reading/navigation. */
@media (max-height: 40rem) {
  .has-js .site-full .site-header { position: static; }
}
.site-full .site-header > .brand { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; display: inline-flex; align-items: center; min-height: 44px; min-width: 0; z-index: 1; }
.site-full .site-navigation { display: block; grid-column: 1 / -1; grid-row: 1; min-width: 0; gap: inherit; }
.site-full .site-navigation > .menu-toggle { display: flex; align-items: center; gap: 1.5rem; width: max-content; min-height: 44px; margin-inline-start: auto; list-style: none; }
.site-full .site-navigation > .menu-toggle::-webkit-details-marker { display: none; }
.site-full #navigation { display: grid; justify-content: flex-start; gap: var(--navigation-gap, 0); }
.site-full #navigation a { min-height: 44px; display: inline-flex; align-items: center; font-size: var(--navigation-font-size, .78rem); }
.site-full .language-switcher { flex-wrap: nowrap; justify-content: flex-end; margin: 0; gap: .75rem; }
.site-full .language-switcher a { font-size: var(--language-font-size, .72rem); }
@supports selector(details::details-content) {
  .site-full .site-header { grid-template-columns: auto minmax(0, 1fr); }
  .site-full .site-header > .brand { align-self: center; }
  .site-full .site-navigation { grid-column: 2 / -1; }
  .site-full .site-navigation > .menu-toggle { display: none; }
  .site-full .site-navigation::details-content { content-visibility: visible; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: inherit; }
  .site-full #navigation { display: flex; justify-content: flex-end; gap: var(--navigation-gap, clamp(1rem, 2.6vw, 2.7rem)); }
  @media (max-width: 899px) {
    .site-full .site-header { grid-template-columns: minmax(0, 1fr) auto; }
    /* Subgrid gives the native summary its own header column and row. The
       brand stays aligned with it when the links occupy the following row. */
    .site-full .site-navigation { display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; grid-column: 1 / -1; }
    .site-full .site-navigation[open] { grid-row: 1 / span 2; }
    .site-full .site-navigation > .menu-toggle { display: flex; grid-column: 2; grid-row: 1; align-self: center; }
    .site-full .site-navigation::details-content { grid-column: 1 / -1; grid-row: 2; grid-template-columns: minmax(0, 1fr); }
    .site-full .site-navigation:not([open])::details-content { display: none; }
    .site-full #navigation { display: grid; justify-content: flex-start; gap: var(--navigation-gap, 0); }
  }
}
.site-full main:focus { outline: none; }
/* Empty media slots should not take the space of a full-width real image. */
.site-full .media-placeholder { min-height: var(--placeholder-height); aspect-ratio: auto; }
.brand img { width: 150px; max-height: 55px; object-fit: contain; }
.breadcrumbs { padding: 1.5rem var(--gutter) 0; font-size: .75rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; gap: .7rem; align-items: center; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs [aria-current] { color: var(--ink); }
.page-contents { margin: 0 var(--gutter) 4rem; padding: 2rem; background: var(--surface); border: 1px solid var(--line); }
.page-contents h2 { font-size: 1rem; letter-spacing: 0; }
.page-contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 2rem; padding-inline-start: 1.2rem; margin: 0; }
.page-contents li { break-inside: avoid; padding: 0 .2rem; }
.page-contents a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; }
.site-full .page-contents a[aria-current="location"] { font-weight: 700; text-decoration-thickness: 2px; color: var(--ink); }
/* Opt-in reading layout for documentation, press and other reference pages. */
.layout-utility .page-intro { padding-block: clamp(2rem, 4vw, 3.5rem); }
.layout-utility .page-intro h1 { max-width: 22ch; font-size: clamp(2.4rem, 4.5vw, 4.5rem); }
.layout-utility .section { padding-block: clamp(2.5rem, 4vw, 4rem); }
.layout-utility .section h2 { max-width: 25ch; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.layout-utility .text-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4vw; }
.layout-utility .page-contents { margin-bottom: 2rem; padding-block: 1.25rem; }
.gallery .gallery-logo img { width: min(100%, 36rem); height: auto; max-height: 20rem; object-fit: contain; }
@media (max-width: 899px) {
  .layout-utility .text-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-bottom: 2rem; font-size: .8rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.motion-mark { position: absolute; inset: 0; pointer-events: none; }
.motion-mark::before, .motion-mark::after { content: ''; position: absolute; opacity: 0; }
.motion-return .motion-mark::before { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; top: 22%; left: 9%; }
.motion-return .motion-mark::after { width: 80%; height: 2px; background: var(--ink); top: 27%; left: 10%; transform-origin: right; }
.motion-assembly .motion-mark::after { width: 85%; height: 3px; background: var(--ink); top: 18%; left: 8%; transform-origin: left; }
@media (max-width: 600px) {
  .page-contents { padding: 1.5rem; }.page-contents ol { grid-template-columns: minmax(0, 1fr); }
  .prototype-bar { flex-direction: column; gap: .15rem; font-size: .6875rem; letter-spacing: .05em; }
  .prototype-bar span:last-child { max-width: none; text-align: left; }
}
@media (max-width: 899px) {
  .site-full .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding-block: 1rem; min-height: var(--header-min-height, 85px); }
  .site-full #navigation { grid-column: 1 / -1; justify-content: flex-start; }
  .site-full #navigation a { min-height: 44px; padding: .7rem .3rem; }
  .site-full .language-switcher { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-full .motion-assembly .hero-art.motion-play img { animation: assemble-brand var(--motion-hero) cubic-bezier(.2,.7,.25,1) both; }
  .site-full .motion-assembly .hero-art.motion-play .motion-mark::after { animation: draw-mark var(--motion-hero) ease-out both; }
  .site-full .motion-return .hero-art.motion-play img { animation: return-brand var(--motion-hero) cubic-bezier(.2,.7,.25,1) both; }
  .site-full .motion-return .hero-art.motion-play .motion-mark::before { animation: return-mark var(--motion-hero) ease-in-out both; }
  .site-full .motion-return .hero-art.motion-play .motion-mark::after { animation: draw-mark var(--motion-hero) ease-out both; }
  @keyframes assemble-brand {
    0% { clip-path: inset(38% 0 38% 0); transform: translateX(-8%) rotate(-3deg); }
    65% { clip-path: inset(0); transform: translateX(1%) rotate(.4deg); }
    100% { clip-path: inset(0); transform: none; }
  }
  @keyframes return-brand {
    0% { transform: translateY(18px) scale(.86) rotate(-4deg); }
    58% { transform: translateY(-3px) scale(1.035) rotate(.7deg); }
    100% { transform: none; }
  }
  @keyframes return-mark {
    0% { opacity: 0; transform: translate(-30px, 20px); }
    18% { opacity: 1; }
    46% { transform: translate(68cqi, 8px); }
    54% { transform: translate(64cqi, 16px) scale(.8); }
    84% { opacity: 1; }
    100% { opacity: 0; transform: translate(-30px, 60px); }
  }
  @keyframes draw-mark {
    0% { opacity: 0; transform: scaleX(0) rotate(-4deg); }
    35% { opacity: .6; transform: scaleX(.95) rotate(-4deg); }
    75% { opacity: .4; transform: scaleX(1) rotate(-4deg); }
    100% { opacity: 0; transform: scaleX(1) rotate(-4deg); }
  }
  .site-full .section.motion-enter > * { animation: enter var(--motion-section) var(--motion-ease) both; }
  .site-full .section.motion-enter > :nth-child(2) { animation-delay: var(--motion-stagger); }
  /* Player controls must stay under the pointer while a section enters view. */
  .site-full .youtube-section.motion-enter > .youtube-player { animation: none; }
  .site-full .clip-section.motion-enter > .clip-player { animation: none; }
  .site-full .section.motion-enter:focus-within > * { animation: none; }
}
@media print {
  html { scroll-padding-top: 0; }
  .site-full .site-header { max-height: none; overflow: visible; }
  .has-js .site-full .site-header { position: static; }
  .site-full .section.motion-enter > *, .hero-copy, .hero-art, .hero-art img, .motion-mark::before, .motion-mark::after { animation: none !important; }
  .site-full .site-header > .site-navigation { display: block; grid-column: 1 / -1; grid-row: 2; }
  .site-full .site-navigation::details-content { content-visibility: visible; display: grid; grid-template-columns: minmax(0, 1fr); }
  .site-full .site-navigation:not([open])::details-content { display: grid; }
  .site-full #navigation { display: flex; max-height: none; overflow: visible; }
  .menu-toggle, .skip-link { display: none !important; }
}

/* Literal documentation excerpts: horizontal scrolling stays inside the block. */
.code-section > .text-body { min-width: 0; }
.code-example { background: var(--surface); border: 1px solid var(--line); }
.code-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .8rem; }
.code-toolbar > span { overflow-wrap: anywhere; }
.code-copy { min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line); background: var(--background); cursor: pointer; font-size: .78rem; }
.code-copy:hover { border-color: var(--ink); }
.code-copy[aria-disabled="true"] { cursor: wait; opacity: .6; }
.contact-action { min-width: 0; max-width: 36rem; }
.contact-toggle { width: fit-content; list-style: none; cursor: pointer; }
.contact-toggle::-webkit-details-marker { display: none; }
.contact-toggle .arrow { flex-shrink: 0; }
.contact-action[open] > .contact-toggle .arrow { rotate: 90deg; }
.contact-panel { margin-top: 1rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); background: var(--surface); }
.text-body .contact-help, .contact-help { margin: 0 0 1rem; font-size: .9rem; }
.contact-address { display: grid; gap: .4rem; font-size: .8rem; }
.contact-address input { width: 100%; min-width: 0; padding: .7rem; border: 1px solid var(--line); border-radius: 0; background: var(--background); color: var(--ink); font: inherit; font-size: 1rem; }
.contact-address input:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
.contact-options { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-top: .8rem; }
.contact-options .text-link { min-height: 44px; }
.contact-copy { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--line); background: var(--background); font-size: .8rem; cursor: pointer; }
.contact-copy:hover { border-color: var(--ink); }
.contact-copy[aria-disabled="true"] { cursor: progress; opacity: .6; }
.text-body .contact-status, .contact-status { margin: .8rem 0 0; font-size: .8rem; }
@media print { .contact-copy, .contact-status { display: none !important; } }
.code-content { margin: 0; padding: 1.25rem; max-width: 100%; overflow-x: auto; font: .85rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.code-content code { font: inherit; }
.code-content:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.code-example figcaption { padding: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.text-body .code-status { margin-block: .8rem 0; color: var(--ink); font-size: .8rem; }
@media print {
  .code-copy, .code-status { display: none !important; }
  .code-content { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* Zoom is a native link first; controls are created on demand by site.js. */
.gallery-open { position: relative; display: block; background: var(--media-background); color: var(--media-ink); text-decoration: none; }
.gallery-open-label { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; min-height: 44px; border: 1px solid var(--line); font-size: .8rem; }
.gallery-open:hover .gallery-open-label { text-decoration: underline; text-underline-offset: .3em; }
.media-dialog { width: min(70rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); overflow-y: auto; padding: 1.25rem; background: var(--background); color: var(--ink); border: 1px solid var(--line); }
.media-dialog::backdrop { background: rgb(0 0 0 / .82); }
.media-dialog-toolbar, .media-dialog-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.media-dialog-toolbar { padding-bottom: 1rem; font-size: .85rem; }
.media-dialog button { min-height: 44px; padding: .7rem 1rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: .85rem; }
.media-dialog button:hover { border-color: var(--ink); }
.media-dialog-figure { background: var(--media-background); color: var(--media-ink); }
.media-dialog-figure img { width: 100%; height: min(65svh, 42rem); object-fit: contain; }
.media-dialog-caption { padding: 1rem; line-height: 1.6; font-size: .85rem; overflow-wrap: anywhere; }
.media-dialog-unavailable { padding: 4rem 1rem; text-align: center; }
.media-dialog-controls { padding-top: 1rem; }
@media (max-width: 600px) {
  .media-dialog { padding: .75rem; }
  .media-dialog-figure img { height: 45svh; }
}
@media print {
  .media-dialog, .gallery-open-label { display: none !important; }
}

/* Native reading components keep their content and controls usable without JS. */
.steps-section > .text-body, .faq-section > .text-body { min-width: 0; }
.steps { margin: 1.5rem 0 0; padding-inline-start: 2.7rem; list-style-type: decimal-leading-zero; }
.steps-item { padding: 1.25rem 0 1.5rem .75rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.steps-item::marker { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.steps-item h3 { margin-block: 0 .75rem; font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -.025em; line-height: 1.25; }
.steps-item p { margin-block: 0 .9rem; }
.steps-item .text-link { min-height: 44px; }
.faq-list { margin-top: 1.5rem; border-bottom: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.faq > summary { min-height: 44px; padding: 1rem .75rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
.faq > summary::marker { color: var(--muted); }
.faq[open] > summary { background: var(--surface); }
.faq-answer { padding: .25rem .75rem 1.25rem; }
.faq-answer > p { margin-block: 1rem; }
.faq-answer .text-link { min-height: 44px; }
@media print {
  .steps-item, .faq { break-inside: avoid; }
  .faq::details-content { content-visibility: visible; }
  .faq > .faq-answer { display: block !important; }
}

/* Stack the header controls when enlarged type exhausts their inline space.
   em follows the container's font size; the normal mobile layout stays intact. */
@container site-header (width < 14em) {
  .site-full .site-header > .brand { grid-column: 1 / -1; grid-row: 1; }
  .site-full .site-navigation, .site-full .site-navigation[open] { display: block; grid-column: 1 / -1; grid-row: 2; }
  .site-full .site-navigation > .menu-toggle { width: 100%; justify-content: space-between; margin-inline-start: 0; gap: .5rem; }
}

/* Keep desktop links readable beside enlarged text instead of squeezing them
   into the space left by the brand. This preserves the visible desktop links. */
@media (min-width: 900px) {
  @container site-header (width < 40em) {
    .site-full .site-header > .brand { grid-column: 1 / -1; grid-row: 1; }
    .site-full .site-navigation { grid-column: 1 / -1; grid-row: 2; }
  }
}

/* Optional visitor motion preference, available in complete sites. */
.site-full .motion-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.25rem;
  padding-block: .5rem 1.5rem;
}
.site-full .motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  background: transparent;
  font-size: .8125rem;
  cursor: pointer;
}
.site-full .motion-toggle::before {
  content: '';
  width: .65rem;
  height: .65rem;
  flex: 0 0 auto;
  border: 1px solid currentColor;
}
.site-full .motion-toggle[aria-pressed="true"]::before { background: currentColor; }
.site-full .motion-toggle:hover { border-color: currentColor; }
.site-full .motion-toggle[aria-disabled="true"] { color: var(--muted); cursor: default; }
.site-full .motion-status {
  max-width: 60ch;
  color: var(--muted);
  font-size: .8125rem;
  overflow-wrap: anywhere;
}
/* The root class is set only while enhancing a complete .site-full body. */
html.motion-reduced { scroll-behavior: auto !important; }
.motion-reduced .site-full,
.motion-reduced .site-full *,
.motion-reduced .site-full::before,
.motion-reduced .site-full::after,
.motion-reduced .site-full *::before,
.motion-reduced .site-full *::after,
.motion-reduced .site-full *::backdrop {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.motion-reduced .site-full .button:not(.youtube-load):hover { transform: none; }
.motion-reduced .site-full .youtube-load:hover { transform: translateX(-50%) !important; }
.site-full :is(.hero-copy, .hero-art).motion-settled { animation: none !important; }
@media print { .site-full .motion-controls { display: none; } }

/* Short clips share the passive poster/fallback contract, with native playback. */
.clip-summary { max-width: 65ch; color: var(--muted); }
.clip-stage { position: relative; width: 100%; min-height: 202px; aspect-ratio: 16 / 9; background: var(--media-background); color: var(--media-ink); border: 1px solid var(--line); overflow: hidden; }
.clip-stage .clip-preview, .clip-stage video { position: absolute; inset: 0; width: 100%; height: 100%; }
.clip-stage .clip-preview { display: grid; place-items: center; }
.clip-stage .clip-preview img, .clip-stage video { width: 100%; height: 100%; object-fit: contain; }
.clip-preview .media-fallback { padding: 1.5rem; margin: 0; color: var(--media-muted); text-align: center; }
.clip-stage video:focus-visible { outline: 3px solid var(--accent); outline-offset: -5px; }
.clip-load { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; width: max-content; max-width: calc(100% - 2rem); margin-inline: auto; min-height: 44px; justify-content: center; text-align: center; cursor: pointer; }
.clip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1rem; }
.clip-notice, .clip-status { max-width: 75ch; color: var(--muted); font-size: .85rem; margin-block: 1rem; }
.clip-player figcaption, .clip-placeholder figcaption { padding-top: 1rem; color: var(--muted); font-size: .8rem; }
@media print { .clip-load, .clip-stop, .clip-stage video { display: none !important; } .clip-preview[hidden] { display: block !important; } }

/* Optional local study: preview and canvas share one reserved frame. */
.site-full .experience-section { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.site-full .experience-copy h2 { max-width: 12ch; }
.site-full .experience-caption { margin-top: 2rem; color: var(--muted); font-size: .75rem; letter-spacing: .04em; }
.site-full .experience { min-width: 0; }
.site-full .experience-stage { position: relative; width: 100%; aspect-ratio: 18 / 13; min-height: min(18rem, 60svh); background: transparent; overflow: hidden; }
.site-full .experience-preview, .site-full .experience-canvas { position: absolute; inset: 0; }
.site-full .experience.is-active .experience-canvas { cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.site-full .experience.is-active .experience-canvas.is-dragging { cursor: grabbing; }
.site-full .experience-canvas:focus-visible { outline-offset: -5px; }
.site-full .experience-hint { margin: .75rem 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.site-full .experience-preview svg, .site-full .experience-canvas canvas { display: block; width: 100%; height: 100%; }
.site-full .experience-grid { fill: none; stroke: var(--line); stroke-width: .7; opacity: .45; }
.site-full .experience-material-0 { --piece-color: var(--experience-object, var(--ink)); }
.site-full .experience-material-1 { --piece-color: var(--experience-shadow, var(--muted)); }
.site-full .experience-material-2 { --piece-color: var(--experience-accent, var(--accent)); }
.site-full .experience-sphere-highlight { fill: #fff; opacity: .24; }
.site-full .experience-shade-0 { fill: color-mix(in srgb, var(--piece-color), black 18%); }
.site-full .experience-shade-1 { fill: color-mix(in srgb, var(--piece-color), white 22%); }
.site-full .experience-shade-2 { fill: var(--piece-color); }
.site-full .experience.is-active .experience-preview { visibility: hidden; }
.site-full .experience-controls { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.25rem; }
.site-full .experience-controls button { cursor: pointer; }
.site-full :is(.experience-stop, .experience-pause, .experience-reset) { border: 0; padding: .7rem 0; min-height: 44px; background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.site-full .experience-pause[aria-disabled="true"] { cursor: default; text-decoration: none; }
.site-full .experience-fallback, .site-full .experience-status { color: var(--muted); font-size: .8125rem; line-height: 1.6; max-width: 60ch; margin-top: 1rem; }
@media (max-width: 899px) { .site-full .experience-section { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .site-full .experience-stage { aspect-ratio: 1; min-height: 0; } }
@media print {
  .site-full .experience-section { display: block; }
  .site-full .experience-canvas, .site-full .experience-controls, .site-full .experience-status, .site-full .experience-hint { display: none !important; }
  .site-full .experience.is-active .experience-preview { visibility: visible; }
  .site-full .experience-stage { max-height: 20rem; break-inside: avoid; }
}

/* Micro-interactions. Geometry and state stay with their components; palette,
   durations and amplitudes come from the theme's semantic variables. */
.site-full .ui-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; overflow: visible; }
.site-full .menu-line { transform-box: view-box; }
.site-full .menu-line:first-child { transform-origin: 12px 7px; }
.site-full .menu-line:last-child { transform-origin: 12px 17px; }
.site-full .site-navigation[open]:not([data-closing]) .menu-line:first-child { transform: translateY(5px) rotate(45deg); }
.site-full .site-navigation[open]:not([data-closing]) .menu-line:last-child { transform: translateY(-5px) rotate(-45deg); }
.site-full .code-copy { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.site-full .copy-check { opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
.site-full [data-copied] .copy-sheet { opacity: 0; }
.site-full [data-copied] .copy-check { opacity: 1; stroke-dashoffset: 0; }
.site-full .code-copy[aria-busy="true"] { cursor: progress; }
.site-full .faq > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
.site-full .faq > summary::-webkit-details-marker { display: none; }
.site-full .faq[open] > summary .icon-chevron { rotate: 180deg; }
.site-full :is(#navigation a, .text-link, .footer-links a, .back-top) {
  position: relative;
  text-decoration: none;
}
.site-full :is(#navigation a, .text-link, .footer-links a, .back-top)::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: .25em;
  height: 1px;
  background: currentColor;
  pointer-events: none;
  transform-origin: left;
  scale: 0 1;
}
.site-full #navigation a[aria-current="page"] { box-shadow: none; }
.site-full :is(#navigation a, .text-link, .footer-links a, .back-top):is(:focus-visible, [aria-current="page"], [aria-current="location"])::after { scale: 1; }
.site-full .card:has(> :is(.text-link, .button)):focus-within { background-color: var(--motion-card-background); }
.site-full .media-dialog::backdrop { opacity: 1; }
.site-full .media-dialog[data-closing]::backdrop { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .site-full :is(#navigation a, .text-link, .footer-links a, .back-top):hover::after { scale: 1; }
  .site-full .card:has(> :is(.text-link, .button)):hover { background-color: var(--motion-card-background); }
}
@media (prefers-reduced-motion: no-preference) {
  .site-full :is(.button, .menu-toggle, .code-copy, .contact-copy, .experience-controls button, .motion-rail-controls button, .motion-ambient-pause, .media-dialog button, .motion-toggle) {
    transition: color var(--motion-fast) var(--motion-ease),
      background-color var(--motion-fast) var(--motion-ease),
      border-color var(--motion-fast) var(--motion-ease),
      transform var(--motion-fast) var(--motion-ease),
      scale var(--motion-press) var(--motion-action-ease);
  }
  .site-full :is(.button, .menu-toggle, .code-copy, .contact-copy, .experience-controls button, .motion-rail-controls button, .motion-ambient-pause, .media-dialog button):active:not(:disabled, [aria-disabled="true"]) { scale: var(--motion-press-scale); }
  .site-full :is(#navigation a, .text-link, .footer-links a, .back-top)::after { transition: scale var(--motion-fast) var(--motion-ease); }
  .site-full :is(#navigation a, .language-switcher a, .text-link, .footer-links a, .breadcrumbs a, .back-top, .page-contents a) {
    transition: color var(--motion-fast) var(--motion-ease);
  }
  .site-full :is(.arrow, .gallery-open-label > span, .back-top > span) {
    transition: translate var(--motion-fast) var(--motion-action-ease);
  }
  .site-full :is(.button, .text-link):focus-visible .arrow,
  .site-full .gallery-open:focus-visible .gallery-open-label > span {
    translate: var(--motion-arrow-distance) calc(-1 * var(--motion-arrow-distance));
  }
  .site-full .menu-line { transition: transform var(--motion-panel) var(--motion-ease); }
  .site-full .icon-chevron { transition: rotate var(--motion-panel) var(--motion-ease); }
  .site-full :is(.copy-sheet, .copy-check) { transition: opacity var(--motion-fast) var(--motion-ease), stroke-dashoffset var(--motion-panel) var(--motion-ease); }
  .site-full .card:has(> :is(.text-link, .button)) { transition: background-color var(--motion-fast) var(--motion-ease); }
  .site-full .media-dialog::backdrop { animation: ui-backdrop var(--motion-panel) var(--motion-ease); transition: opacity var(--motion-exit) var(--motion-ease); }
  @keyframes ui-backdrop { from { opacity: 0; } to { opacity: 1; } }
  @media (hover: hover) and (pointer: fine) {
    /* Firefox can retain :active after a drag-release outside a link. Leaving
       the target must release its visual pressure even in that native state. */
    .site-full :is(.button, .menu-toggle, .code-copy, .contact-copy, .experience-controls button, .motion-rail-controls button, .motion-ambient-pause, .media-dialog button):active:not(:hover) { scale: 1; }
    .site-full :is(.button, .text-link):hover .arrow,
    .site-full .gallery-open:hover .gallery-open-label > span {
      translate: var(--motion-arrow-distance) calc(-1 * var(--motion-arrow-distance));
    }
    .site-full .back-top:hover > span { translate: 0 calc(-1 * var(--motion-arrow-distance)); }
  }
  /* Native disclosure interpolation where supported; the same HTML remains a
     usable, instant disclosure on older engines and without JavaScript. */
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .site-full .faq { interpolate-size: allow-keywords; }
    .site-full .faq::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size var(--motion-panel) var(--motion-ease),
        content-visibility var(--motion-panel) allow-discrete;
    }
    .site-full .faq[open]::details-content { block-size: auto; }
  }
}
/* Touch never relies on hover, and reduction removes displacement as well as
   duration. State changes (cross, check, current link) remain understandable. */
@media (hover: none) {
  .site-full .button:not(.youtube-load):hover { transform: none; }
  .site-full .youtube-load:hover { transform: translateX(-50%); }
}
.motion-reduced .site-full :is(.button, .menu-toggle, .code-copy, .contact-copy, .experience-controls button, .motion-rail-controls button, .motion-ambient-pause, .media-dialog button):active { scale: 1; }
.motion-reduced .site-full :is(.arrow, .gallery-open-label > span, .back-top > span) { translate: none !important; }
.motion-reduced .site-full .faq::details-content { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .site-full .button:not(.youtube-load):hover { transform: none; }
  .site-full .youtube-load:hover { transform: translateX(-50%); }
}
@media (forced-colors: active) {
  .site-full :is(#navigation a, .text-link, .footer-links a, .back-top):is(:hover, :focus-visible, [aria-current="page"], [aria-current="location"]) { text-decoration: underline; }
  .site-full :is(#navigation a, .text-link, .footer-links a, .back-top)::after { display: none; }
}
@media print {
  .site-full .faq::details-content { block-size: auto; overflow: visible; transition: none; }
  .site-full :is(#navigation a, .text-link, .footer-links a, .back-top)::after { display: none; }
}

/* Raycast reference: staggered entrances, illuminated surfaces and image reveals.
   Original implementation; themes retain their identity and tune every amplitude. */
.site-full {
  --motion-reveal: 700ms;
  --motion-glow-time: 2800ms;
  --motion-glow: color-mix(in srgb, var(--accent) 18%, transparent);
  --motion-card-lift: -3px;
  --motion-image-scale: 1.025;
}
.site-full .motion-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 65% 30%, var(--motion-glow), transparent 65%),
    radial-gradient(circle at 15% 28%, var(--accent) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 65%, var(--accent) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 78%, var(--accent) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 18%, var(--accent) 0 1px, transparent 2px);
}
.site-full .motion-atmosphere::before {
  content: '';
  position: absolute;
  inset: -25%;
  background: linear-gradient(115deg, transparent 40%, var(--motion-glow) 50%, transparent 60%);
}
.site-full .card:has(> :is(.text-link, .button)) {
  position: relative;
  isolation: isolate;
}
.site-full .card:has(> :is(.text-link, .button))::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 0, var(--motion-glow), transparent 70%);
  box-shadow: none;
}
.site-full .card:focus-within::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  /* Existing section wrappers stay still around independently revealed cards. */
  .site-full .section.motion-enter > :is(.card-grid, .gallery) { animation: none; }
  .site-full .hero-copy.motion-enter { animation: none; }
  .site-full .hero-copy.motion-enter > :not(.actions),
  .site-full :is(.card, .gallery > figure, .feature-media).motion-enter {
    animation: surface-reveal var(--motion-reveal) var(--motion-ease) backwards;
  }
  .site-full .hero-copy.motion-enter > :nth-child(2),
  .site-full :is(.card, .gallery > figure).motion-enter:nth-child(3n + 2) {
    animation-delay: var(--motion-stagger);
  }
  .site-full .hero-copy.motion-enter > :nth-child(3),
  .site-full :is(.card, .gallery > figure).motion-enter:nth-child(3n + 3) {
    animation-delay: calc(var(--motion-stagger) * 2);
  }
  .site-full .hero-art.motion-play .motion-atmosphere {
    animation: atmosphere-arrive var(--motion-glow-time) ease-out both;
  }
  .site-full .hero-art.motion-play .motion-atmosphere::before {
    animation: atmosphere-sweep var(--motion-glow-time) var(--motion-ease) both;
  }
  .site-full .card::before { transition: opacity var(--motion-panel) var(--motion-ease); }
  .site-full .card:has(> :is(.text-link, .button)) {
    transition: background-color var(--motion-surface) ease-in-out,
      border-color var(--motion-surface) ease-in-out,
      box-shadow var(--motion-halo) ease-in-out,
      translate var(--motion-panel) var(--motion-ease);
  }
  .site-full :is(.feature-media, .gallery-open) img {
    transition: scale var(--motion-reveal) var(--motion-ease);
  }
  .site-full .button:not(.youtube-load, .clip-load) {
    transition: color var(--motion-fast) var(--motion-ease),
      background-color var(--motion-fast) var(--motion-ease),
      border-color var(--motion-fast) var(--motion-ease),
      transform var(--motion-press) var(--motion-action-ease),
      scale var(--motion-press) var(--motion-action-ease),
      box-shadow var(--motion-halo) ease-in-out;
  }
  .site-full .button:not(.youtube-load, .clip-load):focus-visible {
    box-shadow: 0 0 24px var(--motion-glow), inset 0 1px color-mix(in srgb, currentColor 20%, transparent);
  }
  .site-full .card:has(> :is(.text-link, .button)):focus-within {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
    box-shadow: 0 12px 32px -24px var(--motion-glow);
  }
  @media (hover: hover) and (pointer: fine) {
    .site-full .card:has(> :is(.text-link, .button)):hover { translate: 0 var(--motion-card-lift); }
    .site-full .card:has(> :is(.text-link, .button)):hover {
      border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
      box-shadow: 0 12px 32px -24px var(--motion-glow);
    }
    .site-full .card:hover::before { opacity: 1; }
    .site-full :is(.feature-media, .gallery-open):hover img { scale: var(--motion-image-scale); }
    .site-full .button:not(.youtube-load, .clip-load):hover {
      box-shadow: 0 0 24px var(--motion-glow), inset 0 1px color-mix(in srgb, currentColor 20%, transparent);
    }
  }
  @keyframes surface-reveal {
    from { opacity: .35; transform: translateY(var(--motion-distance)) scale(.985); }
    to { opacity: 1; transform: none; }
  }
  @keyframes atmosphere-arrive {
    0% { opacity: 0; transform: translateY(12px) scale(.95); }
    35% { opacity: .65; }
    100% { opacity: 0; transform: translateY(-8px) scale(1.05); }
  }
  @keyframes atmosphere-sweep {
    from { transform: translateX(-30%); }
    to { transform: translateX(30%); }
  }
}
/* Focus never waits for an entrance; user reduction also cancels CSS transforms. */
.site-full .hero-copy.motion-enter:focus-within > *,
.site-full :is(.card, .gallery > figure, .feature-media).motion-enter:focus-within,
.site-full .motion-settled,
.site-full .motion-settled > * { animation: none !important; }
.motion-reduced .site-full .card { translate: none !important; }
.motion-reduced .site-full :is(.feature-media, .gallery-open) img { scale: none !important; }
.motion-reduced .site-full .motion-atmosphere { display: none; }
@media (prefers-reduced-motion: reduce), print {
  .site-full .motion-atmosphere { display: none; }
  .site-full .card { translate: none !important; }
  .site-full :is(.feature-media, .gallery-open) img { scale: none !important; }
  .site-full .hero-copy.motion-enter > *,
  .site-full :is(.card, .gallery > figure, .feature-media).motion-enter { animation: none !important; }
}
@media (forced-colors: active), print {
  .site-full .motion-atmosphere, .site-full .card::before { display: none; }
}

/* Second reference pass: live homepage's moving selection, rails, progress,
   orbit/particle lighting, shimmer, type cursor and success overshoot. */
.site-full .motion-nav { position: relative; }
.site-full .motion-nav-indicator {
  position: absolute; top: 0; left: 0; height: 2px;
  pointer-events: none; background: var(--accent); opacity: 0;
}
.site-full .motion-rail { min-width: 0; }
.site-full .motion-rail:focus-visible {
  outline: var(--focus-width) solid var(--accent); outline-offset: -3px;
}
.site-full .motion-rail-controls {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(.25rem, 2vw, 1rem); margin-top: 1rem;
  color: var(--muted); font-size: .8rem;
}
.site-full .motion-rail-controls[hidden] { display: none; }
.site-full .motion-rail-controls button {
  min-width: 44px; min-height: 44px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.site-full .motion-rail-controls button[aria-disabled="true"] { opacity: .4; cursor: default; }
.site-full .motion-rail-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.site-full .motion-rail-track { height: 2px; background: var(--line); flex: 1; overflow: hidden; }
.site-full .motion-rail-track > span { display: block; height: 100%; background: var(--accent); transform-origin: left; }
.site-full .motion-orbit {
  position: absolute; inset: 12%; border: 1px solid var(--motion-glow);
  border-radius: 50%; pointer-events: none; opacity: 0;
}
.site-full .motion-orbit::after {
  content: ''; position: absolute; top: 50%; left: -3px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent);
}
.site-full .motion-atmosphere > i {
  position: absolute; left: var(--star-x); top: var(--star-y);
  width: 2px; height: 2px; border-radius: 50%; background: var(--accent); opacity: .25;
}
.site-full :is(.steps-item, .facts > div) { position: relative; }
.site-full :is(.steps-item, .facts > div)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, var(--motion-glow), transparent 70%);
}
@media (max-width: 899px) {
  .site-full .section :is(.card-grid, .gallery).motion-rail {
    display: grid; grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: 86%; gap: 1rem;
    overflow-x: auto; overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory; scrollbar-width: thin;
    scroll-padding-inline: 0; padding-block: .5rem;
  }
  .site-full .motion-rail > * { scroll-snap-align: start; min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .site-full .motion-nav-indicator { transition: transform 300ms var(--motion-ease), width 300ms var(--motion-ease), opacity 200ms; }
  .site-full .motion-rail-track > span { transition: scale 300ms var(--motion-ease); }
  .site-full .motion-rail-controls button { transition: box-shadow var(--motion-fast), scale var(--motion-press); }
  .site-full .motion-rail-controls button:active:not([aria-disabled="true"]) { scale: .96; }
  .site-full :is(.steps-item, .facts > div).motion-enter {
    animation: surface-reveal var(--motion-reveal) var(--motion-ease) backwards;
  }
  .site-full :is(.steps-item, .facts > div).motion-enter:nth-child(3n + 2) { animation-delay: var(--motion-stagger); }
  .site-full :is(.steps-item, .facts > div).motion-enter:nth-child(3n + 3) { animation-delay: calc(var(--motion-stagger) * 2); }
  .site-full :is(.steps-item, .facts > div).motion-enter::after {
    animation: surface-light 1400ms var(--motion-ease) both;
  }
  .site-full .hero-art.motion-play .motion-orbit { animation: orbit-arrive var(--motion-glow-time) ease-out both; }
  .site-full .hero-art.motion-play .motion-atmosphere > i {
    animation: star-arrive 1500ms var(--star-delay) ease-in-out both;
  }
  .site-full .hero-copy.motion-enter > .eyebrow {
    animation: line-reveal var(--motion-reveal) steps(20, end) backwards;
  }
  .site-full .hero-copy.motion-enter > .eyebrow::after {
    content: ''; width: 1px; height: 1em; background: currentColor;
    animation: text-cursor 900ms steps(1, end) 3 forwards;
  }
  .site-full [data-copied] .copy-check { transform-box: fill-box; transform-origin: center; animation: copy-confirm 300ms var(--motion-ease); }
  .site-full .button:not(.youtube-load, .clip-load) { position: relative; overflow: hidden; isolation: isolate; }
  .site-full .button:not(.youtube-load, .clip-load)::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 25%, color-mix(in srgb, currentColor 16%, transparent), transparent 75%);
    transform: translateX(-120%);
  }
  .site-full .button:not(.youtube-load, .clip-load):focus-visible::after { animation: button-shimmer 750ms ease-out; }
  @media (hover: hover) and (pointer: fine) {
    .site-full .button:not(.youtube-load, .clip-load):hover::after { animation: button-shimmer 750ms ease-out; }
    .site-full .motion-rail-controls button:hover:not([aria-disabled="true"]) { box-shadow: 0 0 20px var(--motion-glow); }
    .site-full :is(.steps-item, .facts > div):hover::after { opacity: .5; transition: opacity var(--motion-panel); }
  }
  @keyframes surface-light { 0%, 100% { opacity: 0; } 35% { opacity: .6; } }
  @keyframes orbit-arrive {
    0% { opacity: 0; transform: rotate(-45deg) scale(.94); }
    25% { opacity: .5; }
    100% { opacity: 0; transform: rotate(100deg) scale(1.04); }
  }
  @keyframes star-arrive {
    0%, 100% { opacity: 0; transform: translateY(4px) scale(.7); }
    50% { opacity: .8; transform: translateY(-4px) scale(1); }
  }
  @keyframes line-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  @keyframes text-cursor { 0%, 40% { opacity: .6; } 50%, 100% { opacity: 0; } }
  @keyframes copy-confirm { from { scale: .8; } 60% { scale: 1.1; } to { scale: 1; } }
  @keyframes button-shimmer { to { transform: translateX(120%); } }
}
.site-full .section.motion-enter > :is(.motion-rail, .motion-rail-controls) { animation: none; }
.site-full :is(.steps-item, .facts > div).motion-enter:focus-within { animation: none !important; }
.motion-reduced .site-full :is(.motion-orbit, .motion-atmosphere, .hero-copy > .eyebrow::after) { display: none; }
.motion-reduced .site-full .motion-rail-controls button { scale: none !important; }
.motion-reduced .site-full .hero-copy > .eyebrow::after { display: none; }
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
  .site-full :is(.motion-orbit, .motion-atmosphere, .hero-copy > .eyebrow::after) { display: none; }
  .site-full :is(.steps-item, .facts > div).motion-enter { animation: none !important; }
  .site-full :is(.steps-item, .facts > div)::after { display: none; }
}
@media (forced-colors: active) { .site-full .motion-nav-indicator { display: none; } }
@media print {
  .site-full .motion-rail { display: block !important; overflow: visible !important; }
  .site-full :is(.motion-rail-controls, .motion-nav-indicator) { display: none !important; }
}

@property --motion-border-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@supports (mask-composite: exclude) {
  @media (prefers-reduced-motion: no-preference) {
    .site-full .button:not(.youtube-load, .clip-load)::before {
      content: ''; position: absolute; inset: 0; padding: 1px; pointer-events: none;
      background: conic-gradient(from var(--motion-border-angle), transparent 45%, currentColor 75%, transparent);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask-composite: exclude; opacity: 0;
    }
    .site-full .button:not(.youtube-load, .clip-load):focus-visible::before { animation: border-travel 600ms ease-out; }
    @media (hover: hover) and (pointer: fine) {
      .site-full .button:not(.youtube-load, .clip-load):hover::before { animation: border-travel 600ms ease-out; }
    }
    @keyframes border-travel { 0% { --motion-border-angle: 0deg; opacity: 0; } 15%, 85% { opacity: .7; } 100% { --motion-border-angle: 360deg; opacity: 0; } }
  }
}
@media print { .site-full .button::before, .site-full .button::after { display: none !important; } }

/* Complete motion repertoire: continuous artwork, reverse orbit, compensated
   satellite, opposed flow, scanner, float and real-state loading/error cues. */
.site-full .motion-ambient-pause {
  position: absolute; top: .65rem; right: .65rem; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--background); color: var(--ink); cursor: pointer;
  font-size: .9rem; line-height: 1;
}
.site-full :is(.motion-ambient-pause, .motion-rail-pause)[aria-disabled="true"] { opacity: .5; cursor: default; }
.site-full :is(.motion-flow, .motion-scan, .motion-orbit-secondary) { position: absolute; pointer-events: none; }
.site-full .motion-flow { inset: 0; overflow: hidden; opacity: .18; }
.site-full .motion-flow > i {
  position: absolute; left: -100%; width: 300%; height: 1px; top: 20%;
  background: repeating-linear-gradient(90deg, transparent 0 34px, var(--accent) 35px 55px, transparent 56px 90px);
}
.site-full .motion-flow > i + i { top: auto; bottom: 20%; }
.site-full .motion-scan {
  left: 0; bottom: 0; width: 28%; height: 2px; opacity: .55;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.site-full .motion-orbit-secondary {
  inset: 22%; border: 1px dashed var(--motion-glow); border-radius: 50%; opacity: .4;
}
.site-full .motion-orbit-secondary::after {
  content: ''; position: absolute; left: 50%; top: -3px; width: 8px; height: 6px;
  border: 1px solid var(--accent); border-radius: 2px;
}
.site-full .motion-rail-track { position: relative; height: 5px; }
.site-full .motion-rail-track > span:first-child { height: 2px; }
.site-full .motion-rail-track > .motion-playback-progress {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  transform: scaleX(0); transform-origin: left; opacity: .55;
}
.site-full .code-copy[aria-busy="true"] .copy-icon { opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .site-full .hero-art.motion-ambient .motion-atmosphere {
    animation: ambient-breathe 6000ms ease-in-out infinite !important;
    animation-play-state: paused !important;
  }
  .site-full .hero-art.motion-ambient .motion-atmosphere::before {
    animation: atmosphere-sweep 6000ms ease-in-out infinite alternate !important;
    animation-play-state: paused !important;
  }
  .site-full .hero-art.motion-ambient .motion-atmosphere > i {
    animation: star-arrive 3000ms var(--star-delay) ease-in-out infinite !important;
    animation-play-state: paused !important;
  }
  .site-full .hero-art.motion-ambient .motion-orbit {
    opacity: .45; animation: ambient-orbit 18000ms linear infinite !important;
    animation-play-state: paused !important;
  }
  .site-full .hero-art.motion-ambient .motion-orbit-secondary {
    animation: ambient-orbit 24000ms linear infinite reverse !important;
    animation-play-state: paused !important;
  }
  .site-full .hero-art.motion-ambient .motion-orbit-secondary::after {
    animation: ambient-orbit 24000ms linear infinite !important;
    animation-play-state: paused !important;
  }
  .site-full .hero-art.motion-ambient > img {
    animation: ambient-float 6000ms ease-in-out infinite !important;
    animation-play-state: paused !important;
  }
  .site-full .hero-art.motion-ambient .motion-flow > i {
    animation: ambient-flow 12000ms linear infinite !important;
    animation-play-state: paused !important;
  }
  .site-full .hero-art.motion-ambient .motion-flow > i + i { animation-direction: reverse !important; }
  .site-full .hero-art.motion-ambient .motion-scan {
    animation: ambient-scanner 5000ms ease-in-out infinite !important;
    animation-play-state: paused !important;
  }
  .site-full .hero-art.motion-ambient.motion-ambient-running :is(.motion-atmosphere,
      .motion-atmosphere > i, .motion-orbit, .motion-orbit-secondary,
      .motion-flow > i, .motion-scan),
  .site-full .hero-art.motion-ambient.motion-ambient-running > img { animation-play-state: running !important; }
  /* Pseudo-elements need their own selectors; :is() cannot select them. */
  .site-full .hero-art.motion-ambient.motion-ambient-running .motion-atmosphere::before,
  .site-full .hero-art.motion-ambient.motion-ambient-running .motion-orbit-secondary::after { animation-play-state: running !important; }
  /* Pulse a fixed gradient at rest; reserve angle repainting for interaction. */
  .site-full .hero:has(.motion-ambient) .actions .button:not(:hover, :focus-visible)::before {
    animation: border-breathe 3000ms ease-in-out infinite;
    animation-play-state: paused;
  }
  .site-full .hero:has(.motion-ambient) .actions .button::after {
    animation: button-shimmer 4500ms ease-in-out infinite;
    animation-play-state: paused;
  }
  .site-full .hero.motion-hero-running .actions .button:not(:hover, :focus-visible)::before,
  .site-full .hero.motion-hero-running .actions .button::after { animation-play-state: running; }
  .site-full .hero:has(.motion-ambient) .hero-copy > .eyebrow::after { animation: text-cursor 1100ms steps(1,end) infinite; animation-play-state: paused; }
  .site-full .hero.motion-hero-running .hero-copy > .eyebrow::after { animation-play-state: running; }
  .site-full .code-copy[aria-busy="true"] .copy-icon { animation: ambient-orbit 1000ms linear infinite; }
  .site-full [data-copy-error] { animation: error-shake 240ms ease-in-out; }
  .site-full .media-dialog-unavailable:not([hidden]) { animation: error-shake 240ms ease-in-out; }
  .site-full .gallery-open-label { transition: opacity 200ms, translate 200ms; }
  .site-full .gallery-open:not(:hover, :focus-visible) .gallery-open-label { translate: 0 2px; }
  @keyframes ambient-breathe { 0%, 100% { opacity: .2; scale: 1; } 50% { opacity: .5; scale: 1.04; } }
  @keyframes ambient-orbit { from { rotate: 0deg; } to { rotate: 360deg; } }
  @keyframes ambient-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
  @keyframes ambient-flow { from { translate: 0 0; } to { translate: 90px 0; } }
  @keyframes ambient-scanner { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(calc(100cqi - 100%)); } }
  @keyframes border-breathe { 0%, 100% { opacity: .2; } 50% { opacity: .7; } }
  @keyframes error-shake { 0%, 100% { translate: 0; } 25% { translate: -3px; } 75% { translate: 3px; } }
}
.motion-reduced .site-full .hero-art.motion-ambient > img { animation: none !important; translate: none !important; }
.motion-reduced .site-full :is(.motion-flow, .motion-scan, .motion-orbit-secondary) { display: none; }
.motion-reduced .site-full :is([data-copy-error], .media-dialog-unavailable, .code-copy .copy-icon) { animation: none !important; }
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
  .site-full :is(.motion-flow, .motion-scan, .motion-orbit-secondary) { display: none; }
  .site-full .hero-art.motion-ambient > img { animation: none !important; translate: none !important; }
  .site-full :is([data-copy-error], .media-dialog-unavailable, .code-copy .copy-icon) { animation: none !important; }
}
@media print { .site-full .motion-ambient-pause { display: none; } }

/* Scroll choreography: titles, prose, cards and page intros each enter in place.
   No hidden waiting state, scroll hijacking, scroll loop or moved controls. */
.site-full .motion-scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 8;
  pointer-events: none; transform-origin: left; scale: 0 1;
  background: var(--accent); box-shadow: 0 0 12px var(--motion-glow);
}
@media (prefers-reduced-motion: no-preference) {
  /* A page entrance belongs to first paint, not the scroll observer. These
     heroes otherwise explicitly disable the generic initial animation. */
  /* Animate actual boxes: Angle Trouble's hero-copy uses display: contents. */
  .site-full :is(.hero-copy, .page-intro) > * {
    animation: page-rise 420ms cubic-bezier(.16, 1, .3, 1) backwards;
  }
  /* A short sequence, never a hidden waiting state or a delay on navigation. */
  .site-full :is(.hero-copy, .page-intro) > :nth-child(2) { animation-delay: 35ms; }
  .site-full :is(.hero-copy, .page-intro) > :nth-child(3) { animation-delay: 70ms; }
  .site-full :is(.hero-copy, .page-intro) > :nth-child(n + 4) { animation-delay: 105ms; }
  .site-full .motion-reveal.motion-enter,
  .site-full :is(.card, .gallery > figure, .feature-media, .steps-item, .facts > div).motion-reveal.motion-enter {
    /* Writizzy reference: a 2rem rise and opacity fade over 700ms. */
    animation: scroll-rise var(--motion-scroll-duration) ease-out backwards;
  }
  .site-full .feature-media > img {
    translate: 0 calc(var(--motion-scroll-y, 0) * var(--motion-parallax-distance));
  }
  .site-full .hero-art > .motion-atmosphere {
    translate: 0 calc(var(--motion-scroll-y, 0) * var(--motion-parallax-distance) * 2);
  }
  .site-full .hero-art > img {
    transform: translateY(calc(var(--motion-scroll-y, 0) * var(--motion-parallax-distance)));
  }
  @keyframes scroll-rise {
    from { opacity: 0; transform: translateY(var(--motion-scroll-distance)); }
    to { opacity: 1; transform: none; }
  }
  @keyframes page-rise {
    from { transform: translateY(8px); }
    to { transform: none; }
  }
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html:not(.motion-reduced) .site-full .motion-reveal.motion-pending:not(:focus-within):not(.motion-entry-settled) {
    opacity: 0;
    animation: none;
  }
}
@media print {
  .site-full .motion-reveal.motion-pending { opacity: 1 !important; }
}
.site-full .motion-entry-settled { animation-name: none !important; }
.site-full :is(.hero-copy, .page-intro) > :focus-within,
.site-full .motion-reveal:focus-within { animation: none !important; }
.motion-reduced .site-full .motion-reveal { animation: none !important; }
.motion-reduced .site-full :is(.feature-media > img, .hero-art > img, .motion-atmosphere) { translate: none !important; transform: none !important; }
@media (max-width: 599px) {
  .site-full { --motion-parallax-distance: 0px; }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
  .site-full :is(.hero-copy, .page-intro) > * { animation: none !important; }
  .site-full .motion-reveal { animation: none !important; }
  .site-full :is(.feature-media > img, .hero-art > img, .motion-atmosphere) { translate: none !important; transform: none !important; }
}
@media (forced-colors: active), print { .site-full .motion-scroll-progress { display: none; } }

/* Secondary navigation and disclosures acknowledge intent without moving layout. */
.site-full :is(.page-contents a, .breadcrumbs a, .language-switcher a) {
  text-underline-offset: .22em;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
}
.site-full :is(.page-contents a, .breadcrumbs a, .language-switcher a):focus-visible {
  text-decoration-color: currentColor;
}
.site-full .page-contents a[aria-current="location"] { text-decoration-color: currentColor; }
.site-full .faq > summary:focus-visible { background-color: var(--motion-card-background); }
@media (prefers-reduced-motion: no-preference) {
  .site-full :is(.page-contents a, .breadcrumbs a, .language-switcher a) {
    transition: color var(--motion-fast) ease-out, text-decoration-color var(--motion-fast) ease-out;
  }
  .site-full .faq > summary { transition: background-color var(--motion-fast) ease-out; }
  .site-full .hero:has(.motion-ambient) .actions .button:is(:hover, :focus-visible)::after {
    animation: button-shimmer 600ms ease-out both;
  }
  .site-full .hero:has(.motion-ambient) .actions .button:not(:hover, :focus-visible)::before,
  .site-full .hero:has(.motion-ambient) .actions .button:not(:hover, :focus-visible)::after {
    animation: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  .site-full :is(.page-contents a, .breadcrumbs a, .language-switcher a):hover { text-decoration-color: currentColor; }
  .site-full .faq > summary:hover { background-color: var(--motion-card-background); }
}

/* Native document navigation: only the page content changes plane.
   The live header, footer and animated dot field retain their positions. */
html:has(.site-full) { view-transition-name: none; }
::view-transition { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  html:not(.motion-reduced) .site-full > main { view-transition-name: page-content; }
  ::view-transition-group(page-content) { animation-duration: 260ms; }
  ::view-transition-old(page-content) {
    animation: document-leave 160ms ease-out both;
  }
  ::view-transition-new(page-content) {
    animation: document-arrive 260ms cubic-bezier(.2, .7, .2, 1) both;
  }
  /* Do not stack the initial text entrance over a document transition. */
  html:active-view-transition .site-full > main,
  html:active-view-transition .site-full :is(.hero-copy, .page-intro) > * {
    animation: none !important;
  }
  @keyframes document-leave {
    to { opacity: 0; transform: translateY(-6px); }
  }
  @keyframes document-arrive {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
html.motion-reduced::view-transition-group(*),
html.motion-reduced::view-transition-old(*),
html.motion-reduced::view-transition-new(*) { animation: none !important; }
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}
