/* Shared floating artwork, standalone preview and homepage integration. */
* { box-sizing: border-box; }
html { color-scheme: light; }
body.float-preview-page { margin: 0; background: #faf9f8; color: #111; font-family: 'Open Sans', Arial, sans-serif; }
.float-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1800px; min-height: 76px; margin: auto; padding: 16px 40px; }
.float-preview-brand { font-family: Montserrat, Arial, sans-serif; font-size: 29px; font-weight: 400; line-height: 1.2; }
.float-preview-header > :last-child { font-size: 12px; color: #666660; }
.float-preview-main { padding: 0 24px 20px; }
.float-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.float-scene { position: relative; isolation: isolate; overflow: hidden; width: min(100%, calc((100svh - 250px) * 1620 / 971)); min-width: min(100%, 680px); aspect-ratio: 1620 / 971; margin: 0 auto; background: #ecdfe0; border-radius: 8px; }
.float-scene-artboard { position: absolute; inset: 0; aspect-ratio: 1620 / 971; pointer-events: none; }
.float-scene-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.float-part { position: absolute; translate: 0 0; rotate: 0deg; transform-origin: 50% 52%; animation: float-product 7.8s ease-in-out infinite; animation-play-state: paused; }
.float-part-back { left: 40.246914%; top: 14.315139%; width: 21.049383%; height: 63.130793%; --float-x: 3px; --float-y: -10px; --float-tilt: -.65deg; animation-delay: -2.1s; }
.float-part-body { left: 28.395062%; top: 54.273944%; width: 11.111111%; height: 24.510814%; --float-x: -3px; --float-y: -9px; --float-tilt: 1.1deg; animation-duration: 6.6s; animation-delay: -1s; }
.float-part-scalp { left: 60.555556%; top: 38.311020%; width: 13.086420%; height: 18.228630%; --float-x: 4px; --float-y: -12px; --float-tilt: -1.2deg; animation-duration: 8.4s; animation-delay: -4.2s; }
.float-part-face { left: 65.061728%; top: 65.396498%; width: 8.888889%; height: 13.594233%; --float-x: -2px; --float-y: -7px; --float-tilt: 1.5deg; animation-duration: 7.1s; animation-delay: -3.3s; }
.float-color-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 420ms ease-in-out; }
.float-color-layer.is-visible { opacity: 1; }
.float-shadow { position: absolute; top: 78.6%; height: 1.45%; border-radius: 50%; background: #423437; filter: blur(4px); opacity: .18; scale: 1; animation: float-shadow 7.8s ease-in-out infinite; animation-play-state: paused; }
.float-shadow-body { left: 29.1%; width: 10%; animation-duration: 6.6s; animation-delay: -1s; }
.float-shadow-back { left: 54%; width: 9%; animation-delay: -2.1s; }
.float-shadow-face { left: 65.8%; width: 8%; animation-duration: 7.1s; animation-delay: -3.3s; }
.float-leaf-rig, .float-leaf-tip { position: absolute; inset: 0; translate: 0 0; rotate: 0deg; transform-origin: 0 0; animation: float-canopy 9s ease-in-out infinite; animation-play-state: paused; }
.float-leaf-rig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.float-leaf-canopy { clip-path: inset(0 61.5% 61.5% 0); }
.float-leaf-tip { animation: float-leaf-tip 5.8s ease-in-out infinite; animation-play-state: paused; }
.float-leaf-left { clip-path: inset(60% 95% 25% 0); transform-origin: 0 70%; animation-name: float-left-sprig; animation-duration: 6.7s; animation-delay: -2.5s; }
.float-leaf-right { clip-path: inset(60% 3% 24% 85%); transform-origin: 95% 71%; animation-name: float-right-sprig; animation-duration: 7.3s; animation-delay: -1.8s; }
[data-floating-scene][data-motion="running"] :is(.float-part, .float-shadow, .float-leaf-rig, .float-leaf-tip) { animation-play-state: running; }
.float-controls { position: relative; max-width: 1400px; margin: 0 auto; padding: 22px 180px 0; text-align: center; }
.float-color-caption { margin: 0 0 12px; color: #666660; font-size: 13px; line-height: 1.5; }
.float-color-caption strong { color: #111; font-weight: 600; }
.float-color-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.float-color-button, .float-motion-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 10px 19px; border: 1px solid #dddcd7; border-radius: 999px; background: rgba(255,255,255,.8); color: #55554f; font: 400 13px/1.2 'Open Sans', Arial, sans-serif; cursor: pointer; transition: border-color 180ms, background-color 180ms, color 180ms; -webkit-tap-highlight-color: transparent; }
.float-color-button[aria-pressed="true"] { border-color: #111; color: #111; background: #fff; box-shadow: 0 0 0 1px #111 inset; }
.float-color-button:hover, .float-motion-button:hover { border-color: #777770; color: #111; background: #fff; }
.float-color-button:focus-visible, .float-motion-button:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.float-color-button:disabled, .float-motion-button:disabled { cursor: default; opacity: .6; }
.float-swatch { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.float-swatch-grey { background: #8a979e; }
.float-swatch-black { background: #262528; }
.float-swatch-pink { background: #ec2b71; }
.float-motion-button { position: absolute; right: 0; top: 57px; padding-inline: 13px; background: transparent; border-color: transparent; font-size: 12px; }
.float-motion-button[hidden] { display: none; }
.float-motion-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.float-motion-button .float-play-icon { display: none; }
.float-motion-button[aria-pressed="true"] .float-play-icon { display: block; }
.float-motion-button[aria-pressed="true"] .float-pause-icon { display: none; }
.float-status { min-height: 20px; margin: 8px 0 0; color: #666660; font-size: 12px; line-height: 1.6; }
.float-status[data-error="true"] { color: #a42f37; }
.float-status:not([data-error="true"]) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.float-preview-note, .float-static-note { margin: 10px auto 0; text-align: center; color: #666660; font-size: 11px; line-height: 1.6; }
@keyframes float-product { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: var(--float-x) var(--float-y); rotate: var(--float-tilt); } }
@keyframes float-shadow { 0%,100% { scale: 1; opacity: .18; } 50% { scale: .87 .8; opacity: .12; } }
@keyframes float-canopy { 0%,100% { rotate: -.4deg; } 50% { rotate: 1deg; } }
@keyframes float-leaf-tip { 0%,100% { rotate: 0deg; } 50% { rotate: -.65deg; } }
@keyframes float-left-sprig { 0%,100% { rotate: -.8deg; } 50% { rotate: 1.2deg; } }
@keyframes float-right-sprig { 0%,100% { rotate: -1.1deg; } 50% { rotate: 1.3deg; } }
@media (max-width: 700px) {
  .float-preview-header { min-height: 70px; padding: 18px 20px; }
  .float-preview-brand { font-size: 25px; }
  .float-preview-main { padding: 0 12px 20px; }
  .float-scene { width: 100%; min-width: 0; aspect-ratio: 1 / 1; max-height: 66svh; }
  .float-scene-artboard { width: 168%; height: auto; left: -34%; right: auto; bottom: auto; top: 50%; transform: translateY(-50%); }
  .float-controls { padding: 20px 0 0; }
  .float-color-caption { font-size: 13px; }
  .float-motion-button { position: static; margin-top: 12px; }
  .float-status { margin-top: 4px; min-height: 0; }
  .float-status:empty { display: none; }
  .float-preview-note { max-width: 290px; margin-top: 14px; }
}
@media (max-height: 560px) and (min-width: 701px) {
  .float-preview-header { min-height: 54px; padding-block: 10px; }
  .float-scene { min-width: 0; width: min(100%, calc((100svh - 190px) * 1620 / 971)); }
  .float-controls { padding-top: 12px; }
  .float-color-caption { margin-bottom: 6px; }
  .float-motion-button { top: 33px; }
  .float-preview-note { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .float-part, .float-shadow, .float-leaf-rig, .float-leaf-tip { animation: none; }
  .float-color-layer, .float-color-button, .float-motion-button { transition: none; }
}

/* Homepage integration. Controls remain outside the artwork's image role. */
.home-hero[data-floating-scene] {
  --hero-header-height: 106px;
  --hero-scene-height: min(780px, calc(100svh - var(--hero-header-height)), 42vw);
  --hero-art-height: calc(var(--hero-scene-height) - 24px);
  --hero-leaf-width: clamp(105px, 25vw, 380px);
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0 0 24px;
  padding: 0;
  overflow: visible;
}
.home-hero[data-floating-scene] .home-hero-scene { position: relative; inset: auto; width: 100%; height: auto; min-width: 0; margin: 0; }
.home-hero[data-floating-scene] .home-hero-scene::after { display: none; }
.home-hero[data-floating-scene] .float-scene { width: 100%; min-width: 0; height: var(--hero-scene-height); max-height: none; aspect-ratio: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.home-hero[data-floating-scene] .home-hero-backdrop { position: absolute; inset: 0; display: block; background-size: cover; background-position: center; }
.home-hero[data-floating-scene] .float-scene-artboard { top: calc(var(--hero-scene-height) * .78 - var(--hero-art-height) * .79 - 8px); right: auto; bottom: auto; left: 50%; width: calc(var(--hero-art-height) * 1620 / 971); height: var(--hero-art-height); aspect-ratio: 1620 / 971; transform: translateX(-50%); }
.home-hero[data-floating-scene] .float-scene-background { object-fit: cover; object-position: center; mask-image: none; }
.home-hero[data-floating-scene] .float-scene-background[data-float-background-failed="true"] { visibility: hidden; }
.home-hero[data-floating-scene] .float-scene::after { display: none; }
.home-hero[data-floating-scene] .float-part { z-index: 1; }
.home-hero-leaf-anchor { position: absolute; top: 0; right: 0; width: var(--hero-leaf-width); aspect-ratio: 620 / 380; pointer-events: none; }
.home-hero[data-floating-scene] .float-leaf-canopy { inset: 0; width: 100%; height: 100%; clip-path: none; translate: 0 0; scale: 1; transform-origin: 100% 0; }
.home-hero[data-floating-scene] .float-leaf-tip { transform-origin: 100% 0; }
.home-hero-leaf-art { display: block; width: 100%; height: 100%; overflow: hidden; }
.home-hero[data-floating-scene] .home-hero-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 28px 4% 52px; pointer-events: none; }
.home-hero[data-floating-scene] .home-hero-copy-block { width: min(20%, 340px); }
.home-hero-purchase { width: min(16%, 320px); margin-block-start: 24px; pointer-events: auto; }
.home-hero-variant { margin: 0 0 22px; font: 400 clamp(1.375rem, 2.1vw, 1.75rem)/1.2 var(--heading); }
.home-hero-variant > :last-child { display: inline-block; }
.home-hero-unavailable { margin: 0 0 12px; color: #41413c; font-size: 12px; }
.home-hero[data-floating-scene] h1 { font-size: clamp(1.75rem, 2.85vw, 2.75rem); }
.home-hero[data-floating-scene] .home-hero-actions { display: flex; gap: 10px; }
.home-hero[data-floating-scene] .home-hero-actions a { display: inline-flex; flex: 1; justify-content: center; align-items: center; padding-inline: 15px; }
.home-hero[data-floating-scene] .home-hero-specs { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; width: 100%; margin: 20px 0 0; }
.home-hero[data-floating-scene] .home-hero-specs > div { padding: 12px 0 0; border-bottom: 0; }
.home-hero[data-floating-scene] .home-hero-specs dt { font-size: 9px; }
.home-hero[data-floating-scene] .home-hero-specs dd { font-size: 14px; }
.home-hero[data-floating-scene] .home-hero-highlights { display: none; }
.home-hero[data-floating-scene] .home-hero-content .eyebrow { color: #41413c; }
.home-hero[data-floating-scene] :is(.home-hero-copy, .home-hero-specs dt) { color: #41413c; }
.home-hero[data-floating-scene] .float-controls { position: absolute; z-index: 2; right: 12px; bottom: 16px; left: 12px; display: flex; justify-content: center; max-width: none; margin: 0; padding: 0; }
.home-hero[data-floating-scene] .float-color-options { flex-wrap: nowrap; gap: 6px; width: max-content; max-width: 100%; padding: 6px; border: 1px solid rgba(255,255,255,.82); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 5px 20px rgba(40,28,29,.08); }
.home-hero[data-floating-scene] .float-color-button { min-height: 44px; padding: 9px 15px; background: transparent; border-color: transparent; }
.home-hero[data-floating-scene] .float-color-button[aria-pressed="true"] { border-color: #111; background: #fff; }
.home-hero[data-floating-scene] .float-color-button:hover { background: #fff; }
.home-hero[data-floating-scene] .float-motion-button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 12px; border-color: rgba(255,255,255,.82); background: rgba(255,255,255,.9); }
.home-hero-scene-note { position: absolute; top: 100%; right: 0; left: 0; margin: 7px 0 0; color: #666660; font: 400 10px/1.5 'Open Sans', Arial, sans-serif; text-align: center; }
.home-hero[data-floating-scene] .float-status[data-error="true"] { margin: 26px 0 0; text-align: center; }
@media (min-width: 1001px) {
  .home-hero[data-floating-scene] .home-hero-actions a { min-width: 0; padding-inline: 7px; text-align: center; }
  .home-hero[data-floating-scene] .home-hero-specs dd { font-size: 13px; }
}
@media (min-width: 1001px) and (max-width: 1240px) {
  .home-hero[data-floating-scene] .home-hero-actions { flex-direction: column; }
  .home-hero[data-floating-scene] .home-hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .home-hero[data-floating-scene] { --hero-scene-height: min(650px, calc(100svh - var(--hero-header-height)), calc(100vw * 971 / 1620 + 58px)); --hero-art-height: min(calc(var(--hero-scene-height) - 100px), calc(100vw * 1.68 * 971 / 1620)); }
  .home-hero[data-floating-scene] .home-hero-content, .home-hero[data-floating-scene] .home-hero-copy-block { display: contents; }
  .home-hero[data-floating-scene] { margin-bottom: 0; }
  .home-hero-scene-note { display: none; }
  .home-hero-purchase { width: min(100% - 40px, 400px); margin: 0 auto; padding-block: 18px 16px; }
  .home-hero[data-floating-scene] .home-hero-content .eyebrow { display: none; }
  .home-hero[data-floating-scene] h1 { position: absolute; z-index: 1; top: 12px; left: 12px; right: calc(var(--hero-leaf-width) + 14px); display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 6px; margin: 0; font-size: 28px; line-height: 1.15; text-align: left; pointer-events: none; }
  .home-hero[data-floating-scene] h1 span { display: inline; }
  .home-hero-variant { margin: 0 0 12px; font-size: 1.5rem; text-align: center; }
  .home-hero-unavailable { text-align: center; }
  .home-hero[data-floating-scene] .home-hero-actions a { min-height: 44px; }
  .home-hero[data-floating-scene] .home-hero-actions .btn-s { display: none; }
  .home-hero[data-floating-scene] .home-hero-specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .home-hero[data-floating-scene] .home-hero-specs > div { padding: 0 4px; border: 0; }
  .home-hero[data-floating-scene] .home-hero-specs > div + div { border-inline-start: 1px solid var(--border); }
  .home-hero[data-floating-scene] .home-hero-specs dt { margin-bottom: 4px; font-size: 0.625rem; }
  .home-hero[data-floating-scene] .home-hero-specs dd { font-size: 0.875rem; overflow-wrap: anywhere; }
  .home-hero[data-floating-scene] .float-motion-button { top: 76px; }
}
@media (max-width: 820px) {
  .home-hero[data-floating-scene] { --hero-header-height: 72px; }
}
@media (max-width: 700px) {
  .home-hero[data-floating-scene] { --hero-scene-height: min(480px, calc(100svh - var(--hero-header-height))); }
  .home-hero[data-floating-scene] .float-scene-background { object-fit: cover; object-position: center bottom; }
  .home-hero[data-floating-scene] .home-hero-backdrop { background-position: center bottom; }
  .home-hero[data-floating-scene] h1 { font-size: 24px; }
  .home-hero[data-floating-scene] .float-controls { right: 8px; bottom: 12px; left: 8px; }
  .home-hero[data-floating-scene] .float-color-options { gap: 4px; padding: 4px; }
  .home-hero[data-floating-scene] .float-color-button { padding-inline: 11px; gap: 7px; font-size: 12px; }
  .home-hero[data-floating-scene] .float-motion-button { top: 76px; right: 8px; }
}
@media (max-width: 360px) {
  .home-hero[data-floating-scene] h1 { font-size: 22px; }
}
@media (max-width: 700px) and (min-height: 520px) {
  .home-hero[data-floating-scene] h1 {
    display: block;
    top: 16px;
    left: clamp(16px, 5vw, 32px);
    font-size: clamp(1.125rem, 0.85rem + 1.5vw, 1.375rem);
    line-height: 1.2;
  }

  .home-hero[data-floating-scene] h1 span { display: block; }

  .home-hero[data-floating-scene] h1 em {
    display: block;
    margin-block: 2px;
    color: #382b32;
    font-size: clamp(1.75rem, 1rem + 4.5vw, 2.125rem);
    font-weight: 600;
    line-height: 1.08;
  }
}
@media (min-width: 1001px) and (max-height: 720px) {
  .home-hero[data-floating-scene] .home-hero-specs { display: none; }
}
@media (min-width: 1001px) and (max-height: 560px) {
  .home-hero[data-floating-scene] .home-hero-content .eyebrow,
  .home-hero[data-floating-scene] .home-hero-copy { display: none; }
  .home-hero[data-floating-scene] h1 { font-size: clamp(1.75rem, 2.85vw, 2rem); }
}
