/* IOVO · the scroll-scrubbed factory movie (moved from /puronics/ to the landing page, Daniel 2026-09-25).
   Shared by any page that has a .seq section. */
.seq .gw { background: linear-gradient(100deg, var(--accent-hi) 0%, var(--accent) 55%, var(--accent-lo) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.seq { position: relative; }
.seq-explode { height: 520vh; }
.seq-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink-0); }
.seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq-labels { position: absolute; inset: 0; pointer-events: none; }
.seq-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seq-leaders path { fill: none; stroke: rgba(var(--fg-rgb), .372); stroke-width: 1; }
.seq-leaders circle { fill: var(--text); }
.seq-leaders circle.ring { fill: rgba(var(--bg-rgb), .35); stroke: rgba(var(--fg-rgb), .54); stroke-width: 1; }
.plabel { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; opacity: 0; will-change: transform, opacity;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; line-height: 1.35; color: var(--text); text-shadow: 0 0 14px var(--ink-0), 0 0 4px var(--ink-0); }
.plabel .pn { color: var(--aqua); font-weight: 500; }
.plabel .pn::after { content: "·"; margin-left: 10px; color: var(--text-3); }
.plabel.left { flex-direction: row; }

/* Beats: huge, calm type in the empty part of the frame. JS drives opacity + a small rise. */
.beat { position: absolute; z-index: 2; opacity: 0; visibility: hidden; will-change: transform, opacity; }
.beat-side { top: 0; bottom: 0; left: max(40px, calc((100vw - 1200px) / 2)); width: min(40vw, 540px); display: flex; flex-direction: column; justify-content: center; }
.beat.on { pointer-events: auto; }
.beat:not(.on) { pointer-events: none; }
.beat-xl { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5vw, 76px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance;
  background: linear-gradient(180deg, var(--hl-a) 30%, var(--hl-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.beat-open .scroll-hint { align-items: flex-start; }
.seq.tall .beat-open .scroll-hint { display: none; }
.beat-xl.beat-l { font-size: clamp(34px, 3.8vw, 58px); line-height: 1.08; }
.beat .eyebrow { margin-bottom: 24px; }
.beat-sub { margin: 24px 0 0; max-width: 24em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; font-weight: 300; color: var(--text-2); }
.beat-hero .btn { align-self: flex-start; margin-top: 40px; }
.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin: 56px 0 0; color: var(--text-3); font-size: 10.5px; }
.scroll-hint i { order: 2; width: 1px; height: 32px; background: linear-gradient(180deg, transparent, var(--aqua)); animation: hint 2.4s var(--ease-water) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Stage layout (wide screens): the words sit centred above the product */
.seq[data-layout="stage"]:not(.tall) .beat-side { left: 50%; width: min(980px, 88vw); margin-left: calc(min(980px, 88vw) / -2); top: calc(68px + 4vh); bottom: auto; align-items: center; text-align: center; }
.seq[data-layout="stage"]:not(.tall) .beat-xl { font-size: clamp(36px, 4.2vw, 64px); }
.seq[data-layout="stage"]:not(.tall) .beat-xl.beat-l { font-size: clamp(30px, 3.2vw, 48px); }
.seq[data-layout="stage"]:not(.tall) .beat .eyebrow { margin-bottom: 16px; }

/* Tall screens: copy above the product, centred */
.seq.tall .beat-side { left: 20px; right: 20px; width: auto; top: calc(76px + env(safe-area-inset-top)); bottom: auto; align-items: center; text-align: center; }
.seq.tall .beat-xl { font-size: clamp(32px, 9.4vw, 46px); }
.seq.tall .beat-xl.beat-l { font-size: clamp(26px, 7.2vw, 34px); }
.seq.tall .beat .eyebrow { margin-bottom: 16px; }
.seq.tall .beat-sub { margin-top: 12px; font-size: 15.5px; }
.seq.tall .beat-hero .btn { align-self: center; margin-top: 24px; }
.plabel.pin { width: 22px; height: 22px; gap: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--fg-rgb), .54);
  background: rgba(var(--bg-rgb), .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-size: 9.5px; letter-spacing: 0; text-shadow: none;
  box-shadow: 0 0 12px transparent; }
.plabel.pin .pt { display: none; }
.plabel.pin .pn::after { content: none; }
.plabel.pin .pn { color: var(--text); }
.seq-caption { position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); margin: 0; padding: 8px 16px; max-width: calc(100% - 32px);
  border-radius: var(--r-pill); border: 1px solid rgba(var(--fg-rgb), .168); background: rgba(var(--bg-rgb), .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text); font-size: 11px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .4s, transform .5s var(--ease-out); }
.seq-caption.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .seq-explode { height: 460vh; } }

/* Reduced motion (or frames unavailable): no scrubbing; the still, the words, the parts as a list */
.seq-still { display: none; }
.seq.static { height: auto; }
.seq.static .seq-sticky { position: relative; height: auto; overflow: visible; padding: 120px 0 24px; }
.seq.static .seq-canvas, .seq.static .seq-labels { display: none; }
.seq.static .beat { position: relative; inset: auto; left: auto; width: auto; opacity: 1 !important; visibility: visible !important; transform: none !important; pointer-events: auto;
  max-width: 1200px; margin: 0 auto 32px; padding: 0 24px; align-items: center; text-align: center; }
.seq.static .beat-hero .btn { align-self: center; }
.seq.static .beat:not(.beat-open) { display: none; } /* one headline, then the still and its labeled layers */
.seq.static .scroll-hint { display: none; }
.seq.static .seq-still { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 40px; }
.seq.static.missing .seq-still { display: none; }
.seq-still img { width: 100%; height: auto; }
.seq-still figcaption .mono { color: var(--aqua); margin: 0 0 12px; }
.seq-still ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.seq-still li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.seq-still li .pn { font-family: var(--font-mono); font-size: 11.5px; color: var(--aqua); padding-top: 3px; }
/* Day mode: the stage is the page colour; the frames float on clouds (manifest.day). */
html[data-theme="light"] .seq-sticky { background: #F7F6F2; }
html[data-theme="light"] .plabel { text-shadow: 0 0 14px #F7F6F2, 0 0 4px #F7F6F2; }
