/* Motion enhances the existing composition; no scroll interception or layout animation. */
.site-header { transition: box-shadow .4s ease, border-color .4s ease; }
.site-header.is-scrolled { border-bottom-color: #bdb9ae; box-shadow: 0 5px 20px #2727220a; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ''; position: absolute; bottom: 5px; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.desktop-nav a:hover::after, .desktop-nav a.is-current::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
.header-cta > span { transition: transform .45s var(--ease); }
.header-cta:hover > span { transform: translate(3px,-3px); }
.button { transition: background .35s ease, border-color .35s ease, color .35s ease; }
.button > span, .text-link > span { transition: transform .45s var(--ease); }
.button:focus-visible > span, .text-link:focus-visible > span { transform: translate(2px,-2px); }
.image-action { transition: background .35s ease, transform .45s var(--ease); }
.project-image:hover .image-action, .project-image:focus-visible .image-action { background: #e6dccd; transform: translate(2px,-2px); }

/* Separate line boxes preserve typography and accessibility without splitting words. */
.motion-line { display: block; clip-path: inset(-8% -3%); }
.motion-line > span { display: block; }
.js-motion [data-motion="lines"] .motion-line > span { transform: translate3d(0,0,0); transition: transform .85s var(--ease); transition-delay: var(--line-delay,0ms); }
.js-motion [data-motion="lines"]:not(.is-visible) .motion-line > span { transform: translate3d(0,110%,0); }
.js-motion [data-motion="ink"] { clip-path: inset(-8% -3%); opacity: 1; transition: clip-path 1s var(--ease), opacity .8s ease; }
.js-motion [data-motion="ink"]:not(.is-visible) { clip-path: inset(0 15% 0 0); opacity: .25; }

/* Photography is unveiled, rather than every section sliding upwards. */
.js-motion [data-motion^="image"] { clip-path: inset(0); transition: clip-path 1.15s var(--ease); }
.js-motion [data-motion="image-bottom"]:not(.is-visible) { clip-path: inset(0 0 14% 0); }
.js-motion [data-motion="image-side"]:not(.is-visible) { clip-path: inset(0 12% 0 0); }
.js-motion [data-motion="caption"] { transition: opacity .8s ease .12s; }
.js-motion [data-motion="caption"]:not(.is-visible) { opacity: .3; }

.category-bottom { position: relative; border-bottom-color: transparent; }
.category-bottom::after { content: ''; position: absolute; height: 1px; bottom: -1px; left: 0; right: 0; background: var(--line); transform-origin: left; transition: transform .85s var(--ease), background .3s ease; transition-delay: var(--reveal-delay,0ms); }
.category:hover .category-bottom { border-color: transparent; }
.category:hover .category-bottom::after { background: var(--ink); }
.js-motion [data-motion="rule"]:not(.is-visible) .category-bottom::after { transform: scaleX(.15); }
.category-number { transition: opacity .7s ease; }
.js-motion [data-motion="rule"]:not(.is-visible) .category-number { opacity: .4; }
.process-list li { position: relative; border-top-color: transparent; }
.process-list li::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--line); transform-origin: left; transition: transform 1s var(--ease); transition-delay: var(--reveal-delay,0ms); }
.js-motion [data-motion="process"]:not(.is-visible)::before { transform: scaleX(0); }
.step-number { transition: opacity .8s ease; transition-delay: var(--reveal-delay,0ms); }
.js-motion [data-motion="process"]:not(.is-visible) .step-number { opacity: .35; }
.material-details > div { position: relative; border-top-color: transparent; }
.material-details > div::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: #c9c3b8; transform-origin: left; transition: transform .9s var(--ease); transition-delay: var(--reveal-delay,0ms); }
.js-motion [data-motion="detail"]:not(.is-visible)::before { transform: scaleX(.2); }

/* Transform only image pixels. Their containers and captions never drift. */
@media (min-width:901px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .js-motion .hero-photo img { transform: translate3d(0,var(--photo-drift,0px),0) scale(1.055); }
  .js-motion .material-photo img { transform: translate3d(0,var(--photo-drift,0px),0) scale(1.025); }
}
.js-motion .is-open .mobile-nav-inner > a { animation: menu-link-in .4s var(--ease) both; }
.js-motion .is-open .mobile-nav-inner > a:nth-child(2) { animation-delay: .025s; }
.js-motion .is-open .mobile-nav-inner > a:nth-child(3) { animation-delay: .05s; }
.js-motion .is-open .mobile-nav-inner > a:nth-child(4) { animation-delay: .075s; }
@keyframes menu-link-in { from { opacity: .4; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* One large grounded furniture study, confined to the configurator promotion. */
.configurator { grid-template-columns: 1.05fr 1fr; gap: 8%; align-items: center; }
.configurator-guide { margin-top: 32px; padding-top: 0; max-width: 420px; }
.configurator-guide ol { margin: 16px 0 20px; }
.configurator-guide li { padding: 14px 0; grid-template-columns: 22px 1fr; gap: 18px; }
.configurator-guide h3 { font-size: 17px; }
.configurator-guide li p { font-size: 11px; margin-top: 5px; }
.configurator-visual { width: 100%; align-self: center; }
.furniture-accent { position: relative; width: 100%; height: 640px; contain: layout paint; }
.furniture-accent > img, .furniture-accent > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.furniture-accent > img { object-fit: contain; transition: opacity .45s ease; }
.furniture-accent > canvas { opacity: 0; transition: opacity .45s ease; }
.furniture-accent.is-rendered > img { opacity: 0; }
.furniture-accent.is-rendered > canvas { opacity: 1; }
.configurator-visual figcaption { text-align: center; font-size: 10px; color: #c3c8bd; margin-top: 16px; }
@media (max-width:1100px) { .furniture-accent { height: 570px; } }
@media (max-width:900px) {
  .furniture-accent { height: 480px; }
  .configurator { gap: 6%; }
}
@media (max-width:700px) {
  .configurator { display: flex; flex-direction: column; gap: 28px; align-items: stretch; }
  .furniture-accent { height: 340px; max-width: 400px; margin: auto; }
  .configurator-visual figcaption { margin-top: 8px; }
  .configurator-guide h3 { font-size: 18px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-motion], .motion-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-parallax] img { transform: none !important; }
}
