/* Shared expressive design for the homepage and product walkthroughs. */
.motion-home { --motion-ease: cubic-bezier(.16, 1, .3, 1); background: #ffffff; }
.motion-home .container { width: min(100% - 7.5rem, 1320px); }
.motion-home section[id] { scroll-margin-top: 86px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .8rem 1.2rem; background: #ffffff; color: #102f2c; }
.skip-link:focus { top: 1rem; }
.motion-home .site-header { background: #102f2c; border-color: rgb(207 226 223 / .14); }
.motion-home .site-header__inner { min-height: 86px; }
.motion-home .wordmark__logo { height: 2.7rem; }
.motion-home .nav-link { color: #ffffff; font-size: 1rem; }
.motion-home .btn { min-height: 52px; padding-inline: 1.65rem; transition: transform 350ms var(--motion-ease), background 250ms, color 250ms, box-shadow 350ms; }
.motion-home .btn-primary { background: #46b9ac; color: #102f2c; }
.motion-home .btn-primary:hover { background: #f3fbf9; color: #102f2c; box-shadow: 0 8px 22px rgb(16 47 44 / .15); }
.motion-home .btn:hover { transform: translateY(-4px); }
.motion-home .btn:active { transform: translateY(-1px) scale(.98); }
.motion-home .text-link { color: #173b37; min-height: 44px; }
.motion-home .hero-section { background: #102f2c; color: #ffffff; border: 0; padding: 94px 0 30px; overflow: clip; }
.motion-home .hero-atmosphere { display: none; }
.motion-home .hero-layout { position: relative; display: block; min-height: 570px; }
.motion-home .hero-layout::after { content: ""; position: absolute; z-index: 1; pointer-events: none; height: 100px; bottom: 0; left: calc((100vw - 100%) / -2); right: calc((100vw - 100%) / -2); background: linear-gradient(to bottom, rgb(16 47 44 / 0), #102f2c); }
.motion-home .hero-copy { z-index: 2; width: 100%; pointer-events: none; }
.motion-home .hero-copy a { pointer-events: auto; }
.motion-home .hero-copy .section-kicker { color: #cfe2df; font-size: .69rem; letter-spacing: .19em; margin-bottom: 25px; }
.motion-home .hero-copy h1 { max-width: none; font-size: clamp(5rem, 9.7vw, 9.1rem); line-height: 1.04; font-weight: 700; letter-spacing: -.065em; color: #ffffff; text-wrap: initial; }
.hero-line { display: block; overflow: clip; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-line > span { display: block; width: max-content; }
.hero-line--accent { color: #46b9ac; }
.motion-home .hero-copy > p:not(.section-kicker) { max-width: 610px; margin-top: 24px; color: #f3fbf9; font-size: 1.25rem; line-height: 1.6; }
.motion-home .hero-actions { margin-top: 30px; }
.motion-home .hero-actions .btn { font-size: 1rem; min-height: 58px; }
.motion-home .hero-actions .text-link { color: #ffffff; }
.hero-art { position: absolute; z-index: 0; pointer-events: none; width: min(60vw, 820px); right: -190px; top: -190px; transform: translate3d(var(--pointer-x, 0px), var(--art-y, 0px), 0) rotate(var(--pointer-r, 0deg)); will-change: transform; }
.hero-art__float { position: relative; animation: sculpture-drift 24s ease-in-out infinite alternate; transform-origin: 55% 50%; }
.hero-art img { width: 100%; height: auto; visibility: hidden; }
.hero-art__float::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 25% 24% at 62% 30%, #4f46e5 0%, rgb(79 70 229 / .55) 55%, transparent 100%), radial-gradient(ellipse 24% 28% at 50% 52%, #46b9ac 0%, rgb(70 185 172 / .65) 55%, transparent 100%), radial-gradient(ellipse 27% 23% at 66% 73%, #5b32d6 0%, rgb(91 50 214 / .6) 55%, transparent 100%); filter: blur(22px); opacity: .85; }
.hero-art.is-rendered .hero-art__float::before { display: none; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(3px); }
.hero-art.is-rendered img { visibility: hidden; }
.hero-bottom { display: flex; align-items: center; gap: 28px; position: relative; z-index: 2; padding-top: 24px; color: #cfe2df; font-size: .75rem; background: #102f2c; }
.hero-bottom::before { content: ""; position: absolute; z-index: -1; inset: 0 calc((100vw - 100%) / -2) -30px; background: #102f2c; }
.hero-bottom__rule { height: 1px; flex: 1; background: rgb(207 226 223 / .3); transform-origin: left; }
.scroll-cue { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; white-space: nowrap; }
.scroll-cue span { display: inline-block; font-size: 1.2rem; animation: cue-drift 2.8s ease-in-out infinite; }
.portfolio-heading { display: flex; align-items: center; gap: 30px; padding-top: 50px; }
.portfolio-heading > p:nth-child(2) { color: #173b37; font-size: .86rem; }
.portfolio-heading > span { margin-left: auto; font-size: .75rem; color: #5c7773; }
.motion-home .product-story, .motion-home .product-story.reverse { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(40px, 6vw, 96px); padding-block: 100px; }
.motion-home .story-copy { order: -1; }
.motion-home .story-copy h2 { font-size: clamp(2.4rem, 4.9vw, 4.6rem); letter-spacing: -.055em; line-height: 1.09; max-width: 13ch; }
.motion-home .story-copy p { font-size: 1.1rem; line-height: 1.7; }
.motion-home .story-copy .product-endorsement { font-size: .65rem; color: #5c7773; }
.motion-home .story-copy .product-lockup { margin-bottom: 24px; }
.motion-home .story-media { position: relative; min-height: 0; perspective: 1400px; transform: translate3d(0, var(--product-y, 0px), 0); }
.motion-home .story-media > .screen-frame:first-child { width: 100%; transform: rotateX(var(--product-tilt, 0deg)); transform-origin: center; box-shadow: 0 22px 50px rgb(16 47 44 / .12); }
.motion-home .story-media--composition { padding: 0 0 52px; }
.motion-home .story-media .screen-frame img, .motion-home #dashboard-story .story-media .screen-frame img { aspect-ratio: 1.6; object-fit: cover; }
.motion-home .story-screen-support { width: 48%; right: -18px; bottom: -14px; transform: translateY(var(--detail-y, 0px)); box-shadow: 0 18px 35px rgb(16 47 44 / .15); }
.motion-home .story-screen-phone { width: 17%; bottom: -25px; left: -22px; transform: translateY(calc(var(--detail-y, 0px) * -1)); }
.motion-home .product-story:last-child { border-bottom: 0; }
.kinetic-section { overflow: clip; background: #46b9ac; padding: 60px 0 42px; color: #102f2c; }
.kinetic-track { display: flex; gap: .3em; width: max-content; transform: translateX(var(--track-x, -20px)); font: 600 clamp(5rem, 12.5vw, 12rem)/1.1 var(--font-heading); letter-spacing: -.07em; white-space: nowrap; }
.kinetic-track span { display: block; padding-right: .4em; }
.kinetic-track span:nth-child(2) { color: #173b37; opacity: .55; }
.kinetic-caption { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 40px; padding-top: 30px; border-top: 1px solid rgb(16 47 44 / .25); }
.kinetic-caption p { max-width: 440px; font-size: .92rem; }
.motion-home .why-section { padding-block: 100px; background: #f3fbf9; }
.motion-home .why-panel { color: #173b37; grid-template-columns: .65fr 1.35fr; gap: clamp(40px, 6vw, 96px); }
.motion-home .why-panel h2 { color: #173b37; font-size: clamp(3rem, 5vw, 5rem); }
.motion-home .why-copy .why-promise { color: #173b37; font-size: clamp(2rem, 3.5vw, 3.4rem); }
.motion-home .why-copy > p + p { color: #5c7773; }
.motion-home .principles { border-color: #cfe2df; }
.motion-home .principle strong { color: #173b37; }
.motion-home .principle span { color: #5c7773; }
.motion-home .proof-strip { background: #f3fbf9; border-top: 1px solid #cfe2df; }
.motion-home .proof-item { min-height: 100px; }
.motion-home .impact-section { background: #ffffff; padding-block: 110px; }
.motion-home .impact-copy h2 { max-width: 12ch; font-size: clamp(2.8rem, 4vw, 4rem); }
.motion-home .calculator-panel { box-shadow: none; background: #f3fbf9; }
.motion-home .calculator-results { padding-inline: 0; }
.motion-home .result-val { font-size: clamp(1.5rem, 2.5vw, 2.5rem); }
.motion-home .demo-section { background: #102f2c; color: #f3fbf9; padding-block: 100px; }
.motion-home .demo-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
.motion-home .demo-copy h2 { font-size: clamp(2.8rem, 4.6vw, 4.5rem); color: #ffffff; letter-spacing: -.06em; }
.motion-home .demo-copy .section-kicker { color: #cfe2df; }
.motion-home .demo-copy p:not(.section-kicker) { color: #cfe2df; font-size: .95rem; }
.motion-home .form-label, .motion-home .form-note { color: #cfe2df; }
.form-label > span { font-weight: 400; }
.form-group--wide { grid-column: 1 / -1; }
.motion-home textarea { resize: vertical; min-height: 105px; }
.motion-home .cta-form .btn { margin-top: 6px; }
.motion-home .form-success-message { color: #173b37; }
.motion-home .site-footer { border-top: 1px solid rgb(207 226 223 / .2); }
.motion-home .site-footer__bottom { padding-bottom: 32px; }
.motion-home .mobile-menu { background: #102f2c; color: #ffffff; }
.motion-home .menu-toggle { border-color: rgb(207 226 223 / .35); }
.motion-home .menu-toggle span { background: #f3fbf9; }
.motion-toggle { padding: 10px 12px; min-height: 44px; border: 1px solid rgb(207 226 223 / .35); border-radius: 999px; background: #102f2c; color: #f3fbf9; font-size: .68rem; white-space: nowrap; cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.motion-home :focus-visible { outline-color: #46b9ac; outline-offset: 5px; }
.motion-home .hero-section :focus-visible { outline-color: #ffffff; }
.motion-paused .hero-art__float, .motion-paused .scroll-cue span { animation-play-state: paused; }
.motion-suspended .hero-art__float, .motion-suspended .scroll-cue span { animation-play-state: paused; }
.motion-home .hero-section.is-offscreen .hero-art__float, .motion-home .hero-section.is-offscreen .scroll-cue span { animation-play-state: paused; }
@keyframes sculpture-drift {
  0% { transform: translate3d(0, 0, 0) rotate(-3deg) scale(1); }
  50% { transform: translate3d(-10px, 18px, 0) rotate(1deg) scale(1.025, .98); }
  100% { transform: translate3d(8px, -14px, 0) rotate(3deg) scale(.98, 1.03); }
}
@keyframes cue-drift { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
@media (min-width: 1600px) { .hero-art { right: -190px; } }
@media (max-width: 1100px) {
  .motion-home .container { width: calc(100% - 5rem); }
  .motion-home .hero-copy h1 { font-size: 9.3vw; }
  .motion-home .hero-layout { min-height: 510px; }
  .hero-art { right: -210px; width: 650px; top: -140px; opacity: .9; }
  .motion-home .product-story, .motion-home .product-story.reverse { gap: 44px; }
  .motion-home .demo-grid { gap: 44px; }
}
@media (max-width: 768px) {
  .motion-home section[id] { scroll-margin-top: 72px; }
  .motion-home .container { width: calc(100% - 2.5rem); }
  .motion-home .site-header__inner { min-height: 72px; }
  .motion-home .hero-section { padding: 65px 0 24px; }
  .motion-home .hero-layout { min-height: 650px; }
  .motion-home .hero-copy h1 { font-size: clamp(3.1rem, 10.4vw, 5rem); letter-spacing: -.065em; }
  .motion-home .hero-copy > p:not(.section-kicker) { font-size: .94rem; max-width: 440px; margin-top: 24px; }
  .motion-home .hero-copy .section-kicker { margin-bottom: 23px; }
  .motion-home .hero-actions { flex-direction: row; align-items: center; gap: 18px; margin-top: 25px; }
  .motion-home .hero-actions .btn { padding-inline: 20px; font-size: .78rem; }
  .motion-home .hero-actions .text-link { font-size: .78rem; }
  .hero-art { width: 410px; top: 290px; right: -90px; opacity: 1; }
  .hero-bottom { align-items: start; gap: 15px; font-size: .65rem; }
  .hero-bottom p { max-width: 170px; }
  .hero-bottom__rule { display: none; }
  .scroll-cue { margin-left: auto; min-height: 32px; gap: 10px; }
  .portfolio-heading { padding-top: 35px; flex-wrap: wrap; gap: 12px; }
  .portfolio-heading > p:nth-child(2) { display: none; }
  .motion-home .product-story, .motion-home .product-story.reverse { display: flex; flex-direction: column; align-items: stretch; gap: 35px; padding-block: 54px 72px; }
  .motion-home .story-copy { order: -1; }
  .motion-home .story-copy h2 { font-size: clamp(2.8rem, 8vw, 3.7rem); max-width: 14ch; }
  .motion-home .story-copy p { font-size: .92rem; }
  .motion-home .story-media--composition { padding-bottom: 35px; }
  .motion-home .story-screen-phone { left: 5px; bottom: -5px; width: 19%; border-radius: 12px; }
  .motion-home .story-screen-support { right: -5px; bottom: 0; }
  .kinetic-section { padding: 36px 0; }
  .kinetic-track { font-size: 5rem; }
  .kinetic-caption { align-items: start; flex-direction: column; gap: 24px; margin-top: 25px; }
  .kinetic-caption p { max-width: 250px; }
  .motion-home .why-section { padding-block: 60px; }
  .motion-home .why-panel { grid-template-columns: 1fr; gap: 28px; }
  .motion-home .why-panel h2 { font-size: 2.7rem; }
  .motion-home .why-copy .why-promise { font-size: 2.2rem; }
  .motion-home .principles { grid-template-columns: 1fr; }
  .motion-home .principle { padding-block: 12px; border-bottom: 1px solid #cfe2df; }
  .motion-home .proof-strip { display: none; }
  .motion-home .impact-section { padding-block: 65px; }
  .motion-home .impact-grid, .motion-home .demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .motion-home .impact-copy h2 { font-size: 2.8rem; }
  .motion-home .calculator-results { grid-template-columns: 1fr 1fr; gap: 10px; }
  .motion-home .result-val { font-size: 1.55rem; }
  .motion-home .demo-section { padding-block: 65px; }
  .motion-home .demo-copy h2 { font-size: 2.8rem; }
  .motion-home .cta-form { grid-template-columns: 1fr 1fr; }
  .motion-home .cta-form .btn, .motion-home .form-note { grid-column: 1 / -1; }
  .motion-home .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .motion-home .site-footer__brand { grid-column: 1 / -1; }
  .motion-toggle { font-size: .62rem; padding-inline: 10px; }
}
@media (max-width: 370px) { .motion-home .hero-copy h1 { font-size: 10.1vw; } .motion-home .hero-actions { gap: 10px; } .motion-home .cta-form { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art__float, .scroll-cue span { animation: none; }
  .hero-art, .motion-home [data-product-motion], .motion-home .story-screen-support, .motion-home .story-screen-phone { transform: none !important; }
  .hero-art canvas { display: none; }
  .hero-art.is-rendered .hero-art__float::before { display: block; }
  .kinetic-track { transform: none; }
  .motion-home .btn:hover { transform: none; }
}

/* Product walkthroughs share the homepage's motion and retain each app's identity. */
.motion-products .hero-copy h1 { font-size: clamp(3.4rem, 6.3vw, 6rem); }
.motion-products .hero-layout { min-height: 500px; }
.motion-products .hero-copy > p:not(.section-kicker) { max-width: 660px; }
.motion-products .hero-art { opacity: .65; }
.motion-products .hero-bottom p { font-size: inherit; margin-top: 0; }
.motion-products .walkthrough { padding-block: 100px; --app-accent: #5b32d6; }
.motion-products #teamsync-section { background: #ffffff; }
.motion-products #dashboard-section { --app-accent: #4f46e5; background: #f3f4fc; color: #173b37; }
.motion-products .walkthrough-grid { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(40px, 6vw, 96px); }
.motion-products .walkthrough-copy h2 { font-size: clamp(2.5rem, 3.6vw, 3.6rem); line-height: 1.1; letter-spacing: -.055em; color: #173b37; }
.motion-products .walkthrough-copy > p:not(.product-endorsement):not(.privacy-note) { font-size: 1rem; line-height: 1.7; color: #5c7773; }
.motion-products .walkthrough-copy .product-endorsement { font-size: .65rem; color: #5c7773; }
.motion-products .product-lockup { margin-bottom: 28px; }
.motion-products .product-lockup--cairn img { filter: none; }
.motion-products .capability-list { border-color: #cfe2df; }
.motion-products .capability-list li { color: #173b37; border-color: #cfe2df; }
.motion-products .walkthrough-copy .privacy-note { color: #5c7773; }
.motion-products .screenshot-proof__header h3 { color: #173b37; font-size: 1rem; }
.motion-products .screenshot-proof__header p { color: #5c7773; }
.motion-products .screenshot-proof__header .carousel-count { border: 0; background: #ffffff; color: var(--app-accent); }
.motion-products .screenshot-proof__header .carousel-count span { border: 0; padding: 0; color: inherit; }
.motion-products .carousel-stage { aspect-ratio: 1.58; background: #e9e9f5; border-radius: 18px; }
.motion-products .carousel-slide { height: 100%; }
.motion-products .carousel-slide:not([hidden]) { animation: gallery-enter 650ms var(--motion-ease) both; }
.motion-products .carousel-frame { height: 100%; border: 1px solid rgb(79 70 229 / .12); box-shadow: 0 22px 60px rgb(33 28 72 / .12); }
.motion-products .carousel-frame img { width: 100%; height: 100%; object-fit: contain; }
.motion-products .carousel-phone { height: 100%; width: auto; aspect-ratio: 390 / 844; max-width: none; }
.motion-products .carousel-phone img { width: 100%; height: 100%; object-fit: contain; }
.motion-products .carousel-tab { border-radius: 999px; font-weight: 600; background: transparent; color: #5c7773; border-color: #cfe2df; }
.motion-products .carousel-tab:hover, .motion-products .carousel-tab.active { background: var(--app-accent); border-color: var(--app-accent); color: #ffffff; }
.motion-products .carousel-arrow { border-radius: 50%; box-shadow: none; color: var(--app-accent); border-color: #cfe2df; transition: background 250ms, transform 250ms; }
.motion-products .carousel-arrow:hover { background: #ffffff; transform: translateY(-3px); border-color: var(--app-accent); }
.motion-products .carousel-copy { grid-template-columns: 1fr; gap: 8px; padding-top: 20px; border-color: #cfe2df; }
.motion-products .carousel-copy span { color: var(--app-accent); }
.motion-products .carousel-copy strong { color: #173b37; font-size: 1.25rem; }
.motion-products .carousel-copy small { display: none; }
.motion-products .operating-loop { background: #46b9ac; padding-block: 85px; }
.motion-products .loop-intro h2 { font-size: clamp(2.5rem, 3.5vw, 3.5rem); letter-spacing: -.055em; }
.motion-products .loop-step { border-color: rgb(16 47 44 / .2); }
.motion-products .loop-step b { color: #173b37; font-size: 2.7rem; font-weight: 500; }
.motion-products .loop-step span, .motion-products .loop-step strong { color: #173b37; }
.motion-products .product-cta { padding-block: 100px; background: #102f2c; color: #f3fbf9; }
.motion-products .product-cta h3 { color: #ffffff; font-size: clamp(2.8rem, 4.6vw, 4.5rem); line-height: 1.1; letter-spacing: -.055em; max-width: 16ch; }
.motion-products .product-cta p { color: #cfe2df; margin-top: 24px; max-width: 460px; }
.motion-products .product-cta__inner { gap: 48px; }
@keyframes gallery-enter { from { opacity: .3; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.motion-paused .motion-products .carousel-slide, .motion-suspended .motion-products .carousel-slide { animation: none; }
@media (max-width: 1100px) {
  .motion-products .hero-copy h1 { font-size: 6.2vw; }
  .motion-products .walkthrough-grid { grid-template-columns: 1fr; gap: 40px; }
  .motion-products .walkthrough-copy { position: static; max-width: 700px; }
  .motion-products .walkthrough-copy h2 { max-width: 18ch; }
}
@media (max-width: 768px) {
  .motion-products .hero-copy h1 { font-size: clamp(2.8rem, 8.8vw, 4rem); }
  .motion-products .hero-line > span { width: auto; }
  .motion-products .hero-layout { min-height: 740px; }
  .motion-products .hero-art { top: 390px; }
  .motion-products .hero-actions { flex-wrap: wrap; }
  .motion-products .walkthrough { padding-block: 60px; }
  .motion-products .carousel-stage { aspect-ratio: 1.2; }
  .motion-products .carousel-copy strong { font-size: 1.05rem; }
  .motion-products .operating-loop, .motion-products .product-cta { padding-block: 60px; }
  .motion-products .product-cta__inner { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-products .carousel-slide { animation: none !important; }
  .motion-products .carousel-arrow:hover { transform: none; }
}
