/* Motion is an enhancement: the document stays fully readable without JavaScript. */
:root { --ease-out: cubic-bezier(.22,1,.36,1); }
button { font: inherit; cursor: pointer; }
button:focus-visible, [role="tabpanel"]:focus-visible { outline: 3px solid #7848cc; outline-offset: 5px; }
.site-header::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: #a878ed; transform-origin: left; transform: scaleX(var(--reading-progress,0)); }
.hero { overflow: clip; }
.hero-image { transform: scale(1.025); }
.button { position: relative; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s, background .2s; }
.button::after { content: ''; position: absolute; inset: -60% auto -60% -60%; width: 35%; transform: skewX(-22deg); background: linear-gradient(90deg,transparent,#ffffff50,transparent); transition: left .6s var(--ease-out); pointer-events: none; }
.button:hover::after { left: 135%; }
.button:hover { box-shadow: 0 8px 24px #40205a22; }
.path-visual { transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.path-visual img { transition: transform 1s var(--ease-out); }
.path-card:hover .path-visual, .path-card:focus-within .path-visual { transform: translateY(-5px); box-shadow: 0 18px 38px #42215f1c; }
.path-card:hover .path-visual img { transform: scale(1.065); }
.path-copy { padding-bottom: 4px; }
.showcase-image { border-radius: 16px; }
.showcase-image img { transition: transform 1.2s var(--ease-out); }
.showcase-image:hover img { transform: scale(1.035); }
.text-link span { transition: transform .3s var(--ease-out); }
.text-link:hover span { transform: translate(3px,-3px); }
.gallery-grid figcaption { opacity: 1; transform: translateY(3px); transition: transform .3s var(--ease-out),background .3s; }
.gallery-grid figure:hover figcaption { transform: translateY(0); }
.gallery-grid img { transition: transform .8s var(--ease-out), filter .5s; }
.gallery-grid figure:hover img { transform: scale(1.075); }
.faq-list summary { transition: color .2s; }
.faq-list summary:hover { color: #7851aa; }
.faq-list details[open] .faq-answer { animation: answer-in .35s var(--ease-out); }
.is-reveal-pending { opacity: 0; translate: 0 24px; }
.is-revealing { animation: section-in .8s var(--ease-out) both; animation-delay: var(--reveal-delay,0ms); }
@keyframes section-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-image-in { from { transform: scale(1.09); } to { transform: scale(1.025); } }
@keyframes hero-copy-in { from { translate: 0 14px; } to { translate: 0 0; } }
@media(prefers-reduced-motion:no-preference) {
  .hero-image { animation: hero-image-in 1.8s var(--ease-out) both; }
  .hero h1 { animation: hero-copy-in .85s var(--ease-out) both; }
  .hero p { animation: hero-copy-in .85s .08s var(--ease-out) both; }
  .hero .button { animation: hero-copy-in .85s .16s var(--ease-out) both; }
}

/* Two local short films, loaded only when requested or in view. */
.motion-section { background: #151020; color: #fff; padding-block: 58px; }
.motion-heading { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8%; align-items: end; margin-bottom: 30px; }
.motion-heading h2 { font-size: clamp(34px,3.8vw,54px); letter-spacing: -1.6px; line-height: 1.04; }
.motion-heading h2 em { font-family: Georgia,serif; font-weight: 400; color: #c5a6fa; }
.motion-heading .eyebrow { color: #b7a9c9; }
.motion-heading>p { color: #c2b8cf; font-size: 17px; line-height: 1.6; }
.motion-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; }
.motion-card { min-width: 0; }
.video-stage { position: relative; height: 375px; overflow: hidden; isolation: isolate; border-radius: 15px; background: #302340; }
.video-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,#120b201c,transparent 30%,transparent 70%,#120b2080); }
.ambient-video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-toggle { position: absolute; z-index: 2; top: 17px; right: 17px; display: flex; gap: 9px; align-items: center; padding: 11px 16px; min-height: 44px; border: 1px solid #ffffff50; border-radius: 100px; color: #fff; background: #21152cca; backdrop-filter: blur(12px); font-size: 13px; transition: background .2s,transform .2s; }
.video-toggle:hover { background: #21152c; transform: translateY(-2px); }
.play-symbol { display: block; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.is-playing .play-symbol { width: 8px; height: 10px; border: 0; border-inline: 2px solid currentColor; }
.film-index { position: absolute; z-index: 1; left: 22px; bottom: 22px; font-size: 11px; letter-spacing: 1.5px; color: #fff; }
.video-progress { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; height: 2px; background: #dbc5ff; transform-origin: left; transform: scaleX(var(--video-progress,0)); }
.motion-card figcaption { display: flex; align-items: start; gap: 20px; justify-content: space-between; padding-top: 19px; }
.motion-card figcaption h3 { font-size: 21px; }
.motion-card figcaption p { max-width: 490px; color: #beb3cd; font-size: 15px; margin-top: 8px; line-height: 1.6; }
.film-duration { font-size: 12px; color: #b0a0c3; white-space: nowrap; padding-top: 4px; }
.media-credit { margin-top: 24px; font-size: 12px; color: #b1a4c1; }
.media-credit a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #655376; }
.media-credit a:hover { color: white; }

/* Small, keyboard-accessible prompt workbench. */
.prompt-lab { padding-bottom: 40px; }
.prompt-workbench { border: 1px solid #e1dbe8; border-radius: 18px; overflow: hidden; background: #faf9fc; }
.prompt-tabs { display: flex; gap: 7px; padding: 18px 24px; border-bottom: 1px solid #e6e0ee; background: #fff; flex-wrap: wrap; }
.prompt-tabs button { border: 1px solid transparent; padding: 11px 20px; min-height: 44px; border-radius: 99px; color: #65596f; background: transparent; font-size: 14px; font-weight: 500; transition: background .25s,color .25s,box-shadow .25s; }
.prompt-tabs button:hover { background: #f1ebfa; }
.prompt-tabs button[aria-selected="true"] { background: #292037; color: white; box-shadow: 0 3px 10px #251a3920; }
.prompt-example { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; padding: 30px; animation: answer-in .35s var(--ease-out); }
.prompt-example[hidden] { display: none; }
.prompt-example-copy h3 { font-size: 25px; letter-spacing: -.8px; }
.prompt-example-copy>p { margin-top: 14px; font-size: 16px; line-height: 1.65; color: #665b71; }
.prompt-example-copy .eyebrow { color: #8b729e; font-size: 11px; margin-bottom: 12px; }
.prompt-example-copy .prompt-hint { font-size: 14px; padding-top: 14px; border-top: 1px solid #e5deeb; }
.prompt-hint strong { font-weight: 550; color: #3a2a4b; }
.prompt-snippet { background: #eee6f9; border-radius: 12px; padding: 20px 23px; display: flex; flex-direction: column; }
.snippet-label { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; font-size: 10px; letter-spacing: .7px; color: #795d92; }
.copy-prompt { border: 1px solid #cebedf; border-radius: 8px; background: #ffffff70; color: #4f3469; padding: 9px 11px; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0; transition: background .2s; }
.copy-prompt:hover { background: #fff; }
.copy-prompt span { font-size: 16px; }
.prompt-snippet>p { font-size: 17px; line-height: 1.65; color: #463157; flex: 1; }
.snippet-note { font-size: 12px; color: #795d92; margin-top: 20px; padding-top: 14px; border-top: 1px solid #d6c8e5; }
.copy-status { color: #543470; font-size: 13px; padding: 0 30px; }
.copy-status:not(:empty) { padding-bottom: 18px; }
.refinement { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9%; padding-top: 14px; }
.refinement>div>p { color: var(--muted); font-size: 17px; margin-top: 20px; max-width: 430px; }
.refinement-list { border-top: 1px solid var(--line); }
.refinement-list article { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.refinement-list article>span { color: #a081be; font-size: 12px; padding-top: 4px; }
.refinement-list h3 { font-size: 18px; }
.refinement-list p { font-size: 15px; line-height: 1.65; color: #696172; margin-top: 9px; }

@media(max-width:1050px) {
  .motion-grid { gap: 18px; grid-template-columns: 1.35fr 1fr; }
  .video-stage { height: 320px; }
  .prompt-example { gap: 22px; padding: 24px; }
}
@media(max-width:760px) {
  .motion-section { padding-block: 42px; }
  .motion-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 25px; }
  .motion-heading>p { font-size: 16px; }
  .motion-grid { grid-template-columns: 1fr; gap: 28px; }
  .video-stage { height: auto; aspect-ratio: 1.3; }
  .motion-card-tall .video-stage { aspect-ratio: 1.15; }
  .video-toggle { top: 12px; right: 12px; padding: 10px 14px; }
  .film-index { left: 17px; bottom: 18px; font-size: 10px; }
  .motion-card figcaption { padding-top: 15px; }
  .motion-card figcaption p { font-size: 15px; }
  .prompt-lab { padding-bottom: 24px; }
  .prompt-tabs { padding: 14px; gap: 5px; }
  .prompt-tabs button { padding: 10px 15px; font-size: 13px; }
  .prompt-example { grid-template-columns: 1fr; padding: 22px 18px; gap: 22px; }
  .prompt-example-copy h3 { font-size: 23px; }
  .prompt-snippet { padding: 18px; }
  .prompt-snippet>p { font-size: 16px; }
  .refinement { grid-template-columns: 1fr; gap: 26px; padding-top: 5px; }
  .refinement>div>p { font-size: 16px; }
  .refinement-list p { font-size: 16px; }
  .gallery-grid figcaption { display: block; font-size: 10px; padding: 25px 8px 10px; }
}
@media(prefers-reduced-motion:reduce) {
  .is-reveal-pending { opacity: 1; translate: none; }
  .hero-image { transform: none; }
  *, *::before, *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
