/* What we do page, chapter 02: opener, the scrubbed platform reveal, and the six products track. */
/* Default (no JS / reduced motion): everything flat and readable. JS adds .is-scrub and .is-pinned. */
.svw { position: relative; padding: var(--s8) 0 var(--s7); }
.svw-open { position: relative; padding: 0 max(16px, var(--gut)); max-width: 1500px; margin: 0 auto var(--s7); }
.svw-num { position: absolute; left: max(8px, calc(var(--gut) - 1vw)); top: -.42em; font-family: var(--font-display); font-weight: 100; font-size: clamp(200px, 38vw, 560px); line-height: 1; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(199, 194, 184, .28); pointer-events: none; user-select: none; will-change: transform; }
.svw-open .cap, .svw-title, .svw-intro { position: relative; }
.svw-title { margin: var(--s2) 0 var(--s4); max-width: 14ch; }
.svw-intro { max-width: 46ch; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; color: var(--accent); }
.svw .sv-word { overflow: clip; padding-bottom: .1em; vertical-align: top; }
html.js:not(.pm-reduced) .svw-title .sv-char { transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
html.js:not(.pm-reduced) .svw-title.is-in .sv-char { transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .svw-title .sv-char { transform: none !important; } }

/* platform reveal: flat pair by default */
.svw-stick { position: relative; padding: 0 max(16px, var(--gut)); }
.svw-fig { margin: 0; }
.svw-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); align-items: center; }
.svw-stage { max-width: 1500px; margin: 0 auto; }
.svw-rig { display: contents; }
@media (max-width: 759px) { .svw-stage { grid-template-columns: 1fr; } }
.svw-plane { position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.svw-chrome { display: flex; gap: 6px; align-items: center; height: 26px; padding: 0 12px; border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; background: linear-gradient(#202123, #18191B); }
.svw-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #3a3b3e; }
.svw-screen { position: relative; overflow: clip; border-radius: 0 0 9px 9px; line-height: 0; }
.svw-screen img { display: block; width: 100%; height: auto; }
.svw-glint { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(241, 235, 221, .3) 50%, transparent 62%); }
.svw-halo { display: none; }
.svw-cap { margin-top: var(--s4); text-align: center; }

/* scrubbed: a tall runway with a sticky stage; the planes are flown by svc-web.js */
.svw.is-scrub .svw-reveal { height: 290vh; height: 290svh; }
.svw.is-scrub .svw-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0; overflow: clip; }
.svw.is-scrub .svw-fig { position: relative; width: 100%; height: 100%; }
.svw.is-scrub .svw-stage { position: absolute; inset: 0; display: block; max-width: none; perspective: 1500px; perspective-origin: 50% 46%; }
.svw.is-scrub .svw-rig { position: absolute; inset: 0; display: block; transform-style: preserve-3d; will-change: transform; }
.svw.is-scrub .svw-plane { position: absolute; left: 50%; top: 50%; width: min(46vw, 760px); transform-style: flat; will-change: transform, filter; backface-visibility: hidden; transform: translate3d(-50%, -50%, -1000px); }
.svw.is-scrub .svw-halo { display: block; position: absolute; left: 50%; top: 50%; width: min(90vw, 1400px); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(199, 194, 184, .14), transparent 70%); opacity: 0; pointer-events: none; }
.svw.is-scrub .svw-cap { position: absolute; left: 0; right: 0; bottom: max(24px, 5svh); margin: 0; opacity: 0; }
@media (max-width: 759px) { .svw.is-scrub .svw-reveal { height: 240vh; height: 240svh; } .svw.is-scrub .svw-plane { width: 80vw; } }

/* six products */
.svw-pin { margin-top: var(--s7); }
.svw-track { list-style: none; margin: 0; padding: 0 max(16px, var(--gut)); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--s3); max-width: 1500px; margin-inline: auto; }
.svw-card { position: relative; display: flex; transition: transform .6s var(--ease-out); }
.svw-card article { position: relative; isolation: isolate; overflow: clip; flex: 1; display: flex; flex-direction: column; gap: var(--s3); padding: clamp(24px, 3.2vw, 48px); border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, #1b1c1e, #131415); }
.svw-card article::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(241, 235, 221, .11), transparent 60%); pointer-events: none; }
.svw-card:focus-visible article, .svw-card article:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .svw-card:hover article::before { opacity: 1; } .svw-card:hover article { border-color: #3d3e41; } }
.svw-idx { font-family: var(--font-display); font-weight: 100; font-size: clamp(110px, 14vw, 220px); line-height: .85; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(199, 194, 184, .32); will-change: transform; user-select: none; }
.svw-ico { position: absolute; top: clamp(24px, 3vw, 44px); right: clamp(24px, 3vw, 44px); width: clamp(72px, 8vw, 120px); height: auto; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.svw-ico .d { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 1)); }
.svw-ico .pulse { fill: var(--ink); stroke: none; }
.svw-ico .ripple { stroke: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.svw-card h3 { margin: auto 0 0; font-family: var(--font-display); font-weight: 200; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.2; color: var(--ink); }
.svw-cols { display: grid; gap: var(--s3); font-size: 15px; line-height: 1.65; color: var(--accent); }
.svw-cols p { margin: 0; }
.svw-cols .k { margin-bottom: 6px; font-family: var(--font-display); font-weight: 300; text-transform: uppercase; letter-spacing: .34em; font-size: 11px; color: var(--soft); }
@media (min-width: 560px) { .svw-cols { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
.svw-count, .svw-bar { display: none; }

/* pinned horizontal track (desktop, motion allowed) */
.svw.is-pinned .svw-pin { height: var(--svw-pin, 400vh); }
.svw.is-pinned .svw-hold { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; display: flex; align-items: center; }
.svw.is-pinned .svw-track { display: flex; flex: none; width: max-content; max-width: none; margin: 0; gap: var(--s4); will-change: transform; }
.svw.is-pinned .svw-card { flex: none; width: min(60vw, 700px); height: min(74vh, 74svh, 600px); }
.svw.is-pinned .svw-count { display: block; position: absolute; left: max(16px, var(--gut)); bottom: max(24px, 5svh); margin: 0; }
.svw.is-pinned .svw-bar { display: block; position: absolute; left: max(16px, var(--gut)); right: max(16px, var(--gut)); bottom: max(16px, 3.2svh); height: 1px; background: var(--line); }
.svw.is-pinned .svw-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.svw.is-pinned .svw-count { right: max(16px, var(--gut)); left: auto; }

/* phones: vertical stack, icons draw as each card arrives */
@media (max-width: 759px) {
  .svw { padding-top: var(--s7); }
  .svw-open { margin-bottom: var(--s6); }
  .svw-track { grid-template-columns: 1fr; }
  .svw-idx { font-size: 120px; }
  .svw-card article { gap: var(--s2); min-height: 340px; }
  html.js:not(.pm-reduced) .svw-card .svw-ico .d { transition: stroke-dashoffset 1.6s var(--ease-out) .25s; stroke-dashoffset: 1; }
  html.js:not(.pm-reduced) .svw-card.is-in .svw-ico .d { stroke-dashoffset: 0; }
}

/* idle life, only while motion is allowed and the card is on screen */
@media (prefers-reduced-motion: no-preference) {
  html:not(.pm-reduced) .svw-card.live .pulse { animation: svw-pulse 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
  html:not(.pm-reduced) .svw-card.live .ripple { animation: svw-ripple 2.6s var(--ease-out) infinite; }
  html:not(.pm-reduced) .svw-card.live .swipe { animation: svw-swipe 3s var(--ease) infinite; }
}
@keyframes svw-pulse { 50% { transform: scale(1.9); opacity: .45; } }
@keyframes svw-ripple { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes svw-swipe { 60%, 100% { stroke-dashoffset: 0; } 0% { stroke-dashoffset: .4; } }
