/* ==========================================================================
   MOTION LAYER — additive only.
   style.css is never edited: this file loads AFTER it and only layers motion
   on top (entrance choreography, slow scroll parallax, an autonomous card
   light ring, button feedback, an ambient cursor glow and the video-aware
   dimming). No markup, slot, placeholder or reserved code block is moved,
   renamed or removed — every effect attaches to selectors that already exist.

   Content states are never hidden without a way back: the entrance/reveal
   rules live behind `@media (scripting: enabled)`, and the whole layer is
   switched off for `prefers-reduced-motion: reduce`. With JS off the site
   renders exactly as before, fully visible.

   Budget: opacity + transform only (compositor), no layout properties, no
   per-frame blur, no JS timers that touch style. Every glow reads a single
   multiplier, --mo-glow, so one JS write dims the whole system when the hero
   video is playing.
   ========================================================================== */

:root {
  --mo-ease:      cubic-bezier(.22, 1, .36, 1);   /* gentle deceleration */
  --mo-ease-soft: cubic-bezier(.33, .8, .35, 1);
  --mo-glow: 1;        /* 1 = full light, 0.55 while the hero video plays */
  --mo-par: 0px;       /* scroll parallax offset, written by motion.js */
  --mo-par-amb: 0px;   /* ambient-layer parallax offset */
}

/* 1. Hero media base ------------------------------------------------------
   A low-saturation warm gradient sits under the video/poster, so the frame
   never flashes pure white or transparent while the first frame decodes.
   media.css keeps the real poster on top; this is only the backstop. */
.hero__photo {
  background:
    linear-gradient(155deg, #f8eedb 0%, #f2e3c7 52%, #e8d4b2 100%);
}

/* 2. Layered entrance -----------------------------------------------------
   Order on purpose: fallback photo -> video container -> navigation ->
   main content -> caption. 0.12s between layers, ease-out, no bounce, no
   zoom; Z-lift is deliberately microscopic (<= 8px) and only where a parent
   has perspective, so nothing re-lays out. */
@keyframes mo-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes mo-layer-in {
  from { opacity: 0; transform: translate3d(0, 8px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes mo-layer-in-deep {
  from { opacity: 0; transform: perspective(1200px) translate3d(0, 6px, -14px); }
  to   { opacity: 1; transform: perspective(1200px) translate3d(0, 0, 0); }
}

/* `backwards` fill on purpose: the animation supplies the hidden state before
   it starts and then hands the element back to its own stylesheet rules, so
   it can never out-rank the existing `.is-video-ready` opacity switch or the
   parallax transform. */
.hero__photo {
  animation: mo-fade-in 1.15s var(--mo-ease) .12s backwards;
}
.hero__photo > picture {
  animation: mo-fade-in .95s var(--mo-ease) 0s backwards;
}
.topbar,
.site-header {
  animation: mo-layer-in .85s var(--mo-ease) .24s backwards;
}
.hero__panel {
  animation: mo-layer-in-deep 1.05s var(--mo-ease) .36s backwards;
}
.hero__caption {
  animation: mo-layer-in .9s var(--mo-ease) .48s backwards;
}
/* the video's own opacity is driven by .is-video-ready; the entrance only
   animates the container, so the fade-in never fights that state */

/* 3. Scroll reveal — override only the metrics ---------------------------
   The .is-visible mechanism (IntersectionObserver, one-shot, no reverse
   animation on exit) already exists in style.css; here the travel drops from
   60px to 4px and the cadence becomes 0.12s, per the brief. Same selectors,
   later stylesheet, so style.css stays untouched. */
@media (scripting: enabled) {
  .hero__panel > *,
  .page-head,
  .section__head,
  .feature,
  .product-card,
  .callout,
  .gallery__main,
  .img-frame,
  .quick-form,
  .split > div,
  .related,
  .pd__summary,
  .table-scroll {
    transform: translate3d(0, 4px, 0);
    transition:
      opacity .8s var(--mo-ease),
      transform .8s var(--mo-ease),
      box-shadow var(--ease),
      border-color var(--ease);
    transition-delay: calc(var(--reveal-i, 0) * .12s);
  }
}

/* 4. Slow background parallax -------------------------------------------
   Only the hero media moves (a few px), and it is scale(1.04) so no edge can
   ever be exposed. Weak network / small screens get half the amplitude from
   motion.js (which writes --mo-par); the ambient layer below is the other,
   barely-visible depth cue. */
.hero__photo > picture,
.hero__video {
  transform: translate3d(0, var(--mo-par), 0) scale(1.04);
  transform-origin: 50% 45%;
  will-change: transform;
}

/* 5. Ambient wash — one fixed, very soft warm plane behind the content.
   It drifts a few px with the scroll (low-speed parallax) and is the base the
   cursor glow sits in. z-index -2 keeps it under the existing siderays
   canvas (-1) and under every content layer. */
.mo-amb {
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  opacity: calc(.55 * var(--mo-glow));
  transform: translate3d(0, var(--mo-par-amb), 0);
  transition: opacity .8s ease;
  background:
    radial-gradient(52% 42% at 18% 12%, rgba(255, 226, 178, .28), transparent 70%),
    radial-gradient(46% 40% at 88% 78%, rgba(243, 231, 210, .34), transparent 72%);
}

/* 6. Card light ring — autonomous, very slow, never a strobe ------------
   A 1px feather-edged ring whose warm-gold head travels around the border on
   an 18s loop. Idle opacity is low enough to read as material, not decoration;
   hover lifts it smoothly. Masked to the border so the card interior is never
   tinted, and the moving part is a single composited rotation. */
.mo-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  opacity: calc(.26 * var(--mo-glow));
  transition: opacity .7s var(--mo-ease-soft);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
.mo-flow::before {
  content: "";
  position: absolute;
  inset: -55%;
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(255, 214, 153, 0)    0deg,
    rgba(255, 214, 153, 0)  214deg,
    rgba(255, 214, 153, .55) 262deg,
    rgba(255, 231, 194, .95) 300deg,
    rgba(255, 184, 108, .45) 332deg,
    rgba(255, 214, 153, 0)  358deg);
  animation: mo-flow-spin 18s linear infinite;
  will-change: transform;
}
@keyframes mo-flow-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* hover: light lifts, still restrained; the existing pointer-following edge
   glow from style.css keeps doing its own, separate job on top */
.feature:hover > .mo-flow,
.product-card:hover > .mo-flow,
.callout:hover > .mo-flow,
.gallery__main:hover > .mo-flow,
.img-frame:hover > .mo-flow,
.quick-form:hover > .mo-flow {
  opacity: calc(.55 * var(--mo-glow));
}

/* the card's own `.feature > * { z-index: 1 }` lift (style.css) would push the
   ring above the text: pin this decorative layer back behind the content */
.feature > .mo-flow,
.product-card > .mo-flow,
.callout > .mo-flow,
.gallery__main > .mo-flow,
.img-frame > .mo-flow,
.quick-form > .mo-flow {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* 7. Buttons — diffuse inner warm glow on hover, 1.02 lift, 0.98 press.
   No flash, no ripple, no colour explosion. .btn--glass keeps its own
   spinning gold core (style.css section 4); this only adds the halo and the
   press feedback every button shares. */
.btn {
  position: relative;
  isolation: isolate;
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    transform .45s var(--mo-ease-soft),
    box-shadow .45s var(--mo-ease-soft);
}
.btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s var(--mo-ease-soft);
  background: radial-gradient(120% 150% at 50% 120%,
    rgba(255, 208, 150, .55), rgba(255, 226, 178, .18) 45%, transparent 72%);
}
.btn:hover {
  transform: translateY(-1px) scale(1.02);
}
.btn:hover::after { opacity: calc(.9 * var(--mo-glow)); }
.btn:active {
  transform: translateY(0) scale(.98);
  transition-duration: .12s;
}
.btn:active::after { opacity: calc(1.1 * var(--mo-glow)); }
/* the glass quote button already floats on hover: keep its lift, add the
   shared press state without double-scaling */
.btn--glass:hover { transform: translateY(-5px) scale(1.02); }
.btn--glass:active { transform: translateY(-1px) scale(.98); }
@media (hover: none) {
  .btn:hover { transform: none; }
  .btn:active { transform: scale(.98); }
}

/* 8. Cursor glow — one large, heavily feathered warm blob with a damped
   follow (motion.js lerps it), plus three tiny near-invisible embers.
   Desktop + fine pointer only; motion.js refuses to create it on touch,
   reduced-motion, data-saver or low-memory devices. */
.mo-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
  will-change: transform, opacity;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(255, 214, 153, .17), rgba(255, 226, 178, .08) 42%, transparent 72%);
}
.mo-cursor.is-live { opacity: calc(.85 * var(--mo-glow)); }
.mo-cursor.is-over-media { opacity: 0; }          /* never sit over the video */
.mo-cursor i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 226, 178, .5);
  opacity: .5;
  animation: mo-ember 11s ease-in-out infinite;
}
.mo-cursor i:nth-child(1) { left: 47%; top: 46%; animation-delay: 0s; }
.mo-cursor i:nth-child(2) { left: 55%; top: 54%; animation-delay: -3.7s; }
.mo-cursor i:nth-child(3) { left: 52%; top: 49%; animation-delay: -7.1s; }
@keyframes mo-ember {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: .22; }
  50%      { transform: translate3d(10px, -14px, 0); opacity: .55; }
}

/* 9. Video-aware dimming ------------------------------------------------
   motion.js toggles .mo-dim on <html> while the hero video actually plays,
   and lowers --mo-glow to .55. When the video falls back to the static photo
   (or on pages without a hero) everything returns to full strength. */
.mo-dim .mo-amb { opacity: calc(.42 * var(--mo-glow)); }

/* 10. Perf / preference downgrades --------------------------------------
   - small screens: slower, cheaper ring (a "flow" that never distracts).
   - .mo-lowfps (added by the FPS watchdog) and .mo-lowdata: glows off,
     parallax pinned to 0, entrance + reveal kept (they are one-shot and
     compositor-only, so they cost nothing after the first run). */
@media (max-width: 899px) {
  .mo-flow::before { animation-duration: 26s; }
  .mo-flow { opacity: calc(.2 * var(--mo-glow)); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.mo-force) .hero__photo > picture,
  html:not(.mo-force) .hero__video,
  html:not(.mo-force) .topbar,
  html:not(.mo-force) .site-header,
  html:not(.mo-force) .hero__panel,
  html:not(.mo-force) .hero__caption {
    animation: none !important;
  }
  html:not(.mo-force) .hero__photo > picture,
  html:not(.mo-force) .hero__video { transform: none; }
  html:not(.mo-force) .mo-flow::before,
  html:not(.mo-force) .btn--glass::before { animation: none !important; }
  html:not(.mo-force) .mo-cursor,
  html:not(.mo-force) .mo-amb { display: none !important; }
  html:not(.mo-force) .btn:hover,
  html:not(.mo-force) .btn:active { transform: none; }
  html:not(.mo-force) .btn::after { display: none; }
  html:not(.mo-force) { --mo-glow: .72; }
}
.mo-lowfps .mo-cursor,
.mo-lowfps .mo-amb,
.mo-lowdata .mo-cursor,
.mo-lowdata .mo-amb { display: none !important; }
.mo-lowfps .hero__photo > picture,
.mo-lowfps .hero__video,
.mo-lowdata .hero__photo > picture,
.mo-lowdata .hero__video { transform: none; }
.mo-lowfps .mo-flow::before,
.mo-lowdata .mo-flow::before { animation-duration: 40s; }
.mo-motion-off .mo-flow,
.mo-motion-off .mo-cursor,
.mo-motion-off .mo-amb { display: none !important; }

/* ==========================================================================
   10. CROSS-DOCUMENT TRAVEL — the clicked product image keeps its identity
   across the page change instead of two separate pictures swapping. This is
   the static-site counterpart of the reference's "one bar travels down the
   page": same object, same position sense, different document.
   Progressive enhancement only — browsers without View Transitions just
   navigate normally, and nothing in the markup changes.
   ========================================================================== */
@view-transition { navigation: auto; }

::view-transition-group(product-media),
::view-transition-old(product-media),
::view-transition-new(product-media) {
  animation-duration: .55s;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}

/* the page itself swaps instantly, so only the product image travels */
::view-transition-old(root),
::view-transition-new(root) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ==========================================================================
   11. DEPTH FIELD on the product grid (arc grammar, conflict-free form).
   The reference arcs its bars in 3D; here the same depth cue is applied on
   interaction, because the grid's idle transform already belongs to the
   reveal system in style.css. The ID selector outranks `.is-visible` on
   purpose: hovering must win over the reveal's resting transform.
   ========================================================================== */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  #product-grid { perspective: 1500px; }
  #product-grid > .product-card {
    transition: transform .5s var(--mo-ease), box-shadow .5s var(--mo-ease);
    will-change: transform;
  }
  #product-grid > .product-card:hover,
  #product-grid > .product-card:focus-within {
    transform: translate3d(0, -6px, 30px);
  }
}
/* ==========================================================================
   12. PINNED CAPABILITY TRACK — light version (200vh, not 500vh).
   The section is NOT restructured in markup: JS adds `.mo-pin` at runtime and
   the four existing `.feature` cards stay exactly where they are. Scrolling
   brings them forward one at a time (depth field), the active one lifting and
   the others receding. Works only on desktop without reduced motion, so the
   phone layout keeps the original 4-up grid.
   ========================================================================== */
@property --mo-r {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .section.mo-pin { height: 200vh; }

  .section.mo-pin > .container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .section.mo-pin .feature-grid { perspective: 1400px; }

  .section.mo-pin .feature {
    transform: translate3d(0, 0, var(--mo-z, 0px)) scale(var(--mo-s, 1));
    opacity: var(--mo-a, 1);
    transition: transform .55s var(--mo-ease), opacity .55s var(--mo-ease),
                box-shadow .55s var(--mo-ease);
    will-change: transform, opacity;
  }

  .section.mo-pin .feature.is-live {
    box-shadow: 0 28px 52px -32px rgba(60, 40, 20, .42);
  }
}

/* ==========================================================================
   13. FILTER COLOUR FIELD — the "colour grows out of the object" idea, moved
   to the only place on this site where a palette actually changes: the
   product filter. A warm circle opens from the button that was pressed.
   ========================================================================== */
.mo-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(164, 85, 42, .26) 0%,
              rgba(220, 194, 158, .20) 40%,
              rgba(243, 231, 210, 0) 70%);
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              #000 calc(var(--mo-r) - 90px), transparent var(--mo-r));
  mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              #000 calc(var(--mo-r) - 90px), transparent var(--mo-r));
  animation: mo-field-open .66s var(--mo-ease) forwards;
}

@keyframes mo-field-open {
  0%   { --mo-r: 0px;   opacity: .85; }
  55%  { opacity: .55; }
  100% { --mo-r: var(--mo-r-end, 900px); opacity: 0; }
}

/* ==========================================================================
   14. FLY TO THE INBOX — the enquiry form does not have a cart to fly into,
   so the form card flies to the address it is actually sent to and the
   address pulses once. Same three-keyframe path as the reference.
   ========================================================================== */
.mo-fly {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  border-radius: 14px;
  background: linear-gradient(140deg, #fdf8f0, #f3e7d2);
  box-shadow: 0 12px 22px rgba(60, 40, 20, .30);
  will-change: transform, opacity;
}
/* ==========================================================================
   15. INTRO CURTAIN — the 3.8s title sequence. Pure CSS, no video decode:
   slow push on the brand photograph, one warm sweep, veil, logo stamp, then a
   soft dissolve into the hero. No audio, no extra download.
   ========================================================================== */
.mo-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fdf8f0;
  overflow: hidden;
  opacity: 1;
  transition: opacity .58s cubic-bezier(.4, 0, .2, 1);
}
.mo-intro.is-out { opacity: 0; pointer-events: none; }
.mo-intro__stage {
  position: absolute;
  inset: 0;
  animation: mo-intro-push 3.95s cubic-bezier(.25, .6, .25, 1) both;
}
.mo-intro__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@keyframes mo-intro-push {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(0, -1.3%, 0); }
}
.mo-intro__sweep {
  position: absolute;
  inset: -25% -35%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 238, 206, .5) 50%, transparent 60%);
  mix-blend-mode: screen;
  animation: mo-intro-sweep 2s cubic-bezier(.3, .1, .2, 1) .15s both;
}
@keyframes mo-intro-sweep {
  0%   { transform: translateX(-55%); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: translateX(55%); opacity: 0; }
}
.mo-intro__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 46%, rgba(253, 248, 240, .3) 0%, rgba(253, 248, 240, .94) 74%);
  opacity: 0;
  transition: opacity .6s ease-out;
}
.mo-intro.is-veil .mo-intro__veil { opacity: 1; }
.mo-intro__stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .44s ease-out, transform .52s cubic-bezier(.2, .9, .3, 1.1);
}
.mo-intro.is-stamp .mo-intro__stamp { opacity: 1; transform: scale(1); }
.mo-intro__stamp img { width: 108px; height: auto; display: block; }
.mo-intro__word {
  font: 800 62px/1 var(--font);
  letter-spacing: .07em;
  color: var(--navy);
  text-transform: uppercase;
}
.mo-intro__skip {
  position: absolute;
  top: 26px;
  right: 32px;
  height: 36px;
  padding: 0 17px;
  border: 1px solid rgba(20, 38, 61, .18);
  border-radius: 99px;
  background: rgba(255, 255, 255, .82);
  color: var(--navy);
  font: 500 11px/1 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
/* ==========================================================================
   16. HEADLINE LINE-WIPE + NAV ENTRANCE — the reference's "line slides up out
   of a mask" done with clip-path, so nothing needs a wrapper and nothing
   competes with the existing reveal transform.
   ========================================================================== */
.section__head h2 {
  clip-path: inset(0 0 105% 0);
  transition: clip-path 1s var(--mo-ease);
}
.section__head.is-visible h2 { clip-path: inset(-25% 0 -25% 0); }

.topbar,
.site-header { animation: mo-nav-in .9s cubic-bezier(.22,.9,.24,1) .18s backwards; }
@keyframes mo-nav-in {
  from { transform: translateY(-110%); opacity: .4; }
  to   { transform: translateY(0); opacity: 1; }
}
.lang-tools { animation: mo-fade-in .6s ease-out .5s backwards; }
.nav__cta   { animation: mo-fade-in .6s ease-out .62s backwards; }

/* ==========================================================================
   17. CARD TILT — pointer-following tilt for the shop grid. Only the ID-scoped
   rule can outrank `.is-visible`'s resting transform, which is why it is
   scoped to #product-grid.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  #product-grid > .product-card {
    transform-style: preserve-3d;
    transition: transform .18s ease-out, box-shadow .18s ease-out;
  }
  #product-grid > .product-card:hover {
    transform: perspective(900px) rotateX(var(--mo-tx, 0deg)) rotateY(var(--mo-ty, 0deg))
               translate3d(0, -6px, 0);
    box-shadow: 0 26px 44px -20px rgba(40, 30, 20, .34);
  }
}

/* title letter rise, used on language change */
.mo-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.mo-word > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  animation: mo-letter-up .62s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes mo-letter-up {
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.mo-force) .section__head h2 { clip-path: none; }
  html:not(.mo-force) .topbar,
  html:not(.mo-force) .site-header,
  html:not(.mo-force) .lang-tools,
  html:not(.mo-force) .nav__cta { animation: none !important; }
  html:not(.mo-force) #product-grid > .product-card:hover { transform: none; }
  html:not(.mo-force) .mo-intro { display: none !important; }
}