/* Motion enhances the readable, fully functional static page. */
.motion-word { display: inline-block; white-space: nowrap; }
.motion-char { display: inline-block; }
.motion-hero { padding: 0 0 22px; width: 100%; }
.device-stage { position: relative; isolation: isolate; height: 610px; background: #e8edf0; overflow: hidden; }
.device-scene { position: absolute; inset: 0; }
.device-scene canvas { display: block; width: 100%; height: 100%; }
.device-scene:not(.is-ready) canvas { display: none; }
.device-copy { position: relative; padding-top: 42px; pointer-events: none; }
.device-copy a { pointer-events: auto; }
.device-copy .hero-topline { max-width: 46%; }
.device-copy .hero-invitation { display: none; }
.device-copy .hero-opening { display: block; max-width: 44%; padding-block: 32px 0; }
.device-copy .hero-opening h1 { font-size: 78px; line-height: 1; }
.device-copy .hero-opening h1 em { font-size: 57px; line-height: 1.15; margin-top: 10px; display: block; }
.device-copy .hero-purpose { margin-top: 24px; max-width: 390px; }
.device-copy .hero-purpose p { font-size: 16px; line-height: 1.75; }
.device-copy .hero-actions { margin-top: 26px; }
.device-footer { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.device-caption .eyebrow { font-size: 10px; color: #4d615c; }
.device-caption p { font-size: 13px; margin-top: 6px; min-height: 20px; }
.device-controls { display: flex; gap: 14px; align-items: center; }
.device-controls[hidden] { display: none; }
.device-options { display: flex; border-bottom: 1px solid #aab6b2; gap: 18px; }
.device-options button { position: relative; font: inherit; font-size: 13px; color: #4d615c; border: 0; background: transparent; min-height: 44px; padding: 8px 4px; cursor: pointer; }
.device-options button::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: #0b594e; transform: scaleX(0); transition: transform .3s; }
.device-options button[aria-pressed="true"] { color: #112c24; }
.device-options button[aria-pressed="true"]::after { transform: scaleX(1); }
.device-pause, .device-sound { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid #aab6b2; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #182822; cursor: pointer; }
.device-pause svg, .device-sound svg { width: 17px; height: 17px; }
.device-sound:disabled { opacity: .4; cursor: default; }
.device-sound[aria-pressed="true"] { background: #182822; color: white; border-color: #182822; }
.device-controls button:focus-visible { outline: 2px solid #0b594e; outline-offset: 4px; }
.device-fallback { position: absolute; inset: 40px 5% 100px 50%; display: flex; align-items: center; justify-content: center; }
.device-fallback img { object-fit: cover; border: 10px solid #272d2d; border-radius: 24px; box-shadow: 0 24px 35px #18282220; }
.fallback-tablet { width: 90%; height: auto; aspect-ratio: 4/3; object-position: top; }
.device-fallback .fallback-phone { position: absolute; right: 0; bottom: 0; width: 36%; height: auto; aspect-ratio: 390/800; border-width: 6px; }
.device-scene.is-ready .device-fallback { display: none; }
.motion-hero .service-doors { margin-top: 28px; }
.motion-hero .hero-footnote { padding-bottom: 0; }
.service-door .door-arrow { transition: transform .35s, background .3s, color .3s; }
.service-door:is(:hover, :focus-visible) .door-arrow { transform: rotate(45deg); }
.gallery-open img, .live-preview .preview-screen img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.gallery-open:hover img { transform: scale(1.035); }
.site-header::before { transition: box-shadow .3s; }
.site-header.is-scrolled::before { box-shadow: 0 0 0 100vmax var(--paper), 0 8px 24px #18282212; }
.text-link { transition: color .2s; }
.text-link:hover { color: #0b7969; }
@media (min-width: 1600px) { .device-stage { height: 650px; } }
@media (min-width: 761px) and (max-height: 740px) {
  .device-stage { height: calc(100svh - 160px); min-height: 440px; }
  .device-copy { padding-top: 24px; }
  .device-copy .hero-opening { padding-top: 20px; }
  .device-copy .hero-opening h1 { font-size: 62px; }
  .device-copy .hero-opening h1 em { font-size: 45px; }
  .device-copy .hero-purpose { margin-top: 16px; }
  .device-copy .hero-purpose p { font-size: 14px; }
  .device-copy .hero-actions { margin-top: 16px; }
  .device-footer { bottom: 18px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .device-stage { height: 570px; }
  .device-copy .hero-opening h1 { font-size: 62px; }
  .device-copy .hero-opening h1 em { font-size: 43px; }
  .device-copy .hero-purpose p { font-size: 14px; }
  .device-copy .hero-actions { gap: 12px; }
}
@media (max-width: 760px) {
  .device-stage { height: min(690px, calc(100svh - 140px)); min-height: 590px; }
  .device-copy { padding-top: 22px; }
  .device-copy .hero-topline, .device-copy .hero-opening { max-width: 100%; }
  .device-copy .hero-opening { padding-top: 15px; }
  .device-copy .hero-opening h1 { font-size: 49px; }
  .device-copy .hero-opening h1 em { font-size: 39px; margin-top: 1px; }
  .device-copy .hero-purpose { max-width: 430px; margin-top: 12px; }
  .device-copy .hero-purpose p { font-size: 14px; line-height: 1.6; }
  .device-copy .hero-actions { margin-top: 15px; }
  .device-footer { bottom: 14px; gap: 6px; flex-direction: column; align-items: center; }
  .device-caption { text-align: center; }
  .device-caption .eyebrow { display: none; }
  .device-caption p { font-size: 11px; margin: 0; }
  .device-controls { gap: 8px; max-width: 100%; }
  .device-options { gap: 12px; }
  .device-options button { font-size: 12px; }
  .device-fallback { inset: 315px 0 90px; }
  .device-fallback .fallback-tablet { display: none; }
  .device-fallback .fallback-phone { position: static; width: auto; height: 100%; border-radius: 20px; }
  .motion-hero .service-doors { margin-top: 0; }
}
@media (max-width: 360px) {
  .device-controls { gap: 6px; }
  .device-options { gap: 6px; }
  .device-options button { font-size: 11px; }
  .device-stage { min-height: 620px; }
  .device-copy .hero-opening h1 { font-size: 44px; }
  .device-copy .hero-opening h1 em { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-char { opacity: 1 !important; transform: none !important; }
  .device-options button::after, .gallery-open img, .service-door .door-arrow { transition: none; }
}
