/* Scroll story on the homepage: one table, six stages of an order.
   The scene stays pinned while the page scrolls; photos crossfade by scroll position. */
.story { position: relative; height: 640vh; padding: 0 !important; background: #111; color: #fff; }
.story-pin { position: sticky; top: 74px; height: calc(100vh - 74px); height: calc(100svh - 74px); overflow: hidden; }
.story-frames { position: absolute; inset: 0; }
.story-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; opacity: 0; will-change: opacity, transform; transform: scale(1.06); }
.story-frames img.first { opacity: 1; }
.story-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,8,8,.82) 0%, rgba(8,8,8,.55) 34%, rgba(8,8,8,0) 62%),
              linear-gradient(0deg, rgba(8,8,8,.72) 0%, rgba(8,8,8,0) 30%); }

.story-copy { position: absolute; left: 0; right: 0; top: 0; bottom: 120px; display: flex; align-items: center; }
.story-copy .wrap { width: 100%; }
.story-step { grid-area: 1 / 1; max-width: 560px; opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.story-step.on { opacity: 1; transform: none; pointer-events: auto; }
.story-copy .wrap { display: grid; align-items: center; }
.story .eyebrow { color: #cfcfcf; }
.story h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; margin: 18px 0 20px; }
.story h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; margin: 16px 0 16px; color: #fff; }
.story p { font-size: 18px; color: #dedede; max-width: 470px; }
.story .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.story .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.story .btn.ghost:hover { background: #fff; color: var(--ink); }
.story .num { font-family: Montserrat, sans-serif; font-size: 12px; letter-spacing: .32em; color: #cfcfcf; }

/* Bottom bar: step labels + progress, built from the brand's bars */
.story-hud { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 26px; }
.story-hud .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; }
.hud-stat { font-family: Montserrat, sans-serif; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #bdbdbd; display: grid; gap: 4px; }
.hud-stat b { font-family: Inter, sans-serif; font-size: 26px; letter-spacing: -0.02em; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.hud-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.hud-steps button { all: unset; cursor: pointer; display: grid; gap: 9px; font-family: Montserrat, sans-serif; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: #a3a3a3; transition: color .3s; }
.hud-steps button i { display: block; height: 4px; background: rgba(255,255,255,.22); position: relative; overflow: hidden; }
.hud-steps button i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--fill, 0)); }
.hud-steps button.on { color: #fff; }
.hud-steps button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.hud-hint { font-family: Montserrat, sans-serif; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: #bdbdbd; display: flex; align-items: center; gap: 10px; transition: opacity .4s; }
.hud-hint span { width: 1px; height: 26px; background: rgba(255,255,255,.6); animation: hint 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 760px) {
  .story-pin { top: 74px; }
  .story-frames img { object-position: 62% 50%; }
  .story-shade { background: linear-gradient(0deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,.6) 45%, rgba(8,8,8,.15) 75%); }
  .story-copy { align-items: flex-end; bottom: 108px; }
  .story-copy .wrap { align-items: end; }
  .story h1 { font-size: 36px; }
  .story h2 { font-size: 30px; }
  .story p { font-size: 16px; }
  .story .cta { margin-top: 20px; }
  .story-hud .wrap { grid-template-columns: 1fr; gap: 12px; }
  .hud-stat, .hud-hint { display: none; }
  .hud-steps button { font-size: 0; gap: 0; }
  .hud-steps button i { height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-step { transition: opacity .2s; transform: none; }
  .hud-hint span { animation: none; }
}

/* Service cards with product photos (homepage) */
#services .card { overflow: hidden; padding-top: 0; }
#services .card .photo { margin: 0 -30px 24px; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
#services .card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
#services .card:hover .photo img { transform: scale(1.04); }
header { background: #fff; }
