/* ============================================================
   Aigency — customer stories (work/*). Motion lives in js/story.js;
   it writes progress into CSS variables these rules read. .fx-on is
   only set when motion is allowed, so without it every section is a
   plain, readable block.
   Shapes: rounded rectangles and neon lines — never pills or circles.
   ============================================================ */
.fx-pin { position: relative; }
.fx-on .fx-pinned > .fx-pin, .fx-on [data-fx=dissolve] > .fx-pin, .fx-on [data-fx=wipe] > .fx-pin, .fx-on [data-fx=maskhero] > .fx-pin,
.fx-on [data-fx=collage] > .fx-pin, .fx-on [data-fx=zoom] > .fx-pin, .fx-on [data-fx=timeline] > .fx-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}
.sx { padding: 0; position: relative; }
.sx .wrap { width: 100%; }
.sx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; color: var(--neon-pink); }
.sx-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.sx-frame { position: relative; overflow: hidden; border-radius: 20px; background: #15101e; }
.sx-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
.sx-neon { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, rgba(243,148,216,0), var(--neon-pink), var(--neon-purple), rgba(157,140,255,0)); box-shadow: 0 0 18px rgba(243,148,216,.7); }

/* ---------- rise: content glides up into place and lags behind the scroll ---------- */
.fx-on .rise { transform: translateY(calc((1 - var(--q, 0)) * 90px)); opacity: calc(.15 + var(--q, 0) * .85); will-change: transform; }
.fx-on .rise.sx-frame, .fx-on .rise .sx-frame { clip-path: inset(calc((1 - var(--q, 0)) * 28%) 0 0 0 round 20px); }
.fx-on .rise .sx-frame img, .fx-on .rise.sx-frame img { transform: scale(calc(1.2 - var(--q, 0) * .2)); }

/* ---------- full-bleed photo hero (Inline) ---------- */
.hx { min-height: 100vh; min-height: 100svh; background: var(--ink); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.hx-img { position: absolute; inset: 0; }
.hx-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.06 + var(--hp, 0) * .12)) translateY(calc(var(--hp, 0) * 12vh)); }
.hx-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,8,18,.88) 0%, rgba(11,8,18,.55) 42%, rgba(11,8,18,0) 75%), linear-gradient(0deg, rgba(11,8,18,.85), rgba(11,8,18,0) 45%); }
.hx .wrap { position: relative; z-index: 2; padding-bottom: 12vh; padding-top: 140px; }
.hx h1 { font-size: clamp(3rem, 8vw, 6.6rem); line-height: .98; letter-spacing: -.035em; max-width: 900px; }
.hx .lede { color: var(--text-inverse-soft); margin-top: 22px; max-width: 560px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hx-chips .chip { background: rgba(11,8,18,.55); backdrop-filter: blur(8px); }
.hx-in { opacity: 0; transform: translateY(40px); animation: hxIn 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hx-in:nth-child(2) { animation-delay: .12s; } .hx-in:nth-child(3) { animation-delay: .24s; } .hx-in:nth-child(4) { animation-delay: .36s; }
@keyframes hxIn { to { opacity: 1; transform: none; } }

/* ---------- dissolve: words drift away, the key words become the next headline ---------- */
.dz { background: var(--ink); color: #fff; }
.fx-on .dz { height: 300vh; }
.dz .fx-pin { display: flex; flex-direction: column; justify-content: center; padding: 120px 0 80px; }
.dz-para { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 3.1vw, 2.7rem); line-height: 1.3; letter-spacing: -.015em; max-width: 1050px; color: rgba(244,241,250,.82); }
.dz-para .dw { display: inline-block; will-change: transform, opacity; }
.dz-para .dk { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; transform-origin: 0 0; }
.dz-target { margin-top: 18vh; font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1; letter-spacing: -.035em; }
.dz-target span[data-k] { display: inline-block; }
.fx-on .dz-target { opacity: var(--land, 0); }
.dz-target .g { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dz .sx-neon { bottom: 9vh; opacity: var(--land, 0); }

/* ---------- steps: one card per scroll, with a different indicator per story ---------- */
.sp { background: var(--ink); color: #fff; }
.sp .fx-pin { display: flex; align-items: center; padding: 120px 0; }
.sp-snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
.sp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; position: relative; }
.sp-head h2 { max-width: 640px; }
.sp-head p { max-width: 380px; color: var(--text-inverse-soft); font-size: .98rem; }
.sp-cards { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 18px; position: relative; }
.sp-card { position: relative; border-radius: 20px; padding: 30px 28px 32px; min-height: 220px; display: flex; flex-direction: column; background: rgba(244,241,250,.04); border: 1px solid rgba(244,241,250,.1); transition: background .6s ease, border-color .6s, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s, opacity .6s; }
.sp-card small { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,241,250,.45); }
.sp-card b { font-family: var(--font-head); font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.03em; margin-top: 18px; }
.sp-card span { margin-top: auto; padding-top: 22px; color: var(--text-inverse-soft); font-size: .98rem; line-height: 1.5; }
.fx-on .sp-card { opacity: .55; }
.fx-on .sp-card.on { opacity: 1; transform: translateY(-8px); background: linear-gradient(140deg, rgba(231,163,210,.22), rgba(127,121,196,.18)); border-color: rgba(243,148,216,.55); box-shadow: 0 30px 80px rgba(211,143,190,.22), inset 0 1px 0 rgba(255,255,255,.12); }
.fx-on .sp-card.past { opacity: .8; }
.sp-track { position: relative; height: 34px; margin-bottom: 26px; }
/* Inline: a pipe with a pressure pulse that runs to the active card */
.v-pipe .sp-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 3px; background: rgba(244,241,250,.08); box-shadow: inset 0 0 0 1px rgba(244,241,250,.1); }
.v-pipe .sp-fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: var(--kx, 0); background: var(--grad-bright); box-shadow: 0 0 16px rgba(243,148,216,.8); transition: width .7s cubic-bezier(.65,0,.35,1); }
.v-pipe .sp-valve { position: absolute; top: 50%; left: var(--kx, 0); width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 6px; background: var(--ink); border: 2px solid var(--neon-pink); box-shadow: 0 0 22px rgba(243,148,216,.7); transform: rotate(45deg); transition: left .7s cubic-bezier(.65,0,.35,1); }
/* Sarah Stoute: a tape measure; the marker slides to the active card */
.v-tape { background: #1b1218; }
.v-tape .sp-track { height: 64px; border-radius: 8px; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, rgba(42,26,40,.75) 0 2px, transparent 2px 100px), repeating-linear-gradient(90deg, rgba(42,26,40,.45) 0 1px, transparent 1px 20px), linear-gradient(180deg, #f6d6ea, #e7a9cf);
  background-size: 100% 26px, 100% 14px, 100% 100%; background-repeat: repeat-x; }
.v-tape .sp-valve { position: absolute; top: -6px; bottom: -6px; left: var(--kx, 0); width: 4px; margin-left: -2px; background: #0b0812; box-shadow: 0 0 0 2px rgba(255,255,255,.7); transition: left .7s cubic-bezier(.65,0,.35,1); }
.v-tape .sp-card b { font-family: "Cormorant Garamond", var(--font-head); font-style: italic; font-weight: 600; letter-spacing: -.01em; }
.v-tape .sp-card.on { background: linear-gradient(140deg, rgba(246,214,234,.2), rgba(199,179,240,.12)); border-color: rgba(246,214,234,.6); }
/* Dreamwool: night turns to dawn as you step through */
.v-dawn { background: linear-gradient(180deg, #0b0812, #1a1033); }
.v-dawn .fx-pin::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #2a1b4a 0%, #7a4f9a 45%, #e79bc6 80%, #ffd2b8 100%); opacity: calc(var(--fi, 0) * .9); transition: opacity 1s ease; pointer-events: none; }
.v-dawn .fx-pin > .wrap { position: relative; z-index: 1; }
.v-dawn .sp-track { height: 120px; }
.v-dawn .sp-track svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v-dawn .sp-valve { position: absolute; left: var(--kx, 0); top: calc(100px - var(--fi, 0) * 80px); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 8px; transform: rotate(45deg); background: linear-gradient(135deg, #fff6e6, #ffc58f 60%, #ff9ab8); box-shadow: 0 0 40px rgba(255,200,150,.9); transition: left .9s cubic-bezier(.65,0,.35,1), top .9s cubic-bezier(.65,0,.35,1); }
.v-dawn .sp-card b { font-family: Fraunces, var(--font-head); font-weight: 300; font-style: italic; }
/* WeldPlus: a dial */
.v-gauge { background: #120f14; }
.v-gauge .sp-dial { flex: none; width: 240px; height: 138px; opacity: .95; }
.v-gauge .sp-head { align-items: center; }
.v-gauge .sp-needle { transform-origin: 140px 140px; transform: rotate(calc(-80deg + var(--fi, 0) * 160deg)); transition: transform .8s cubic-bezier(.4,1.6,.5,1); }
.v-gauge .sp-card.on { background: linear-gradient(140deg, rgba(255,179,107,.18), rgba(243,148,216,.12)); border-color: rgba(255,179,107,.55); box-shadow: 0 30px 80px rgba(255,150,90,.18); }
.v-gauge .sp-card b { font-family: Anton, var(--font-head); font-weight: 400; letter-spacing: 0; }

/* ---------- wipe: before / after ---------- */
.wp { background: var(--ink); color: #fff; }
.fx-on .wp { height: 260vh; }
.wp .fx-pin { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 56px; align-items: center; padding: 110px 40px 60px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.wp-copy { transition: opacity .5s, transform .5s; margin-bottom: 26px; }
.fx-on .wp-copies { position: relative; min-height: 270px; }
.fx-on .wp-copy { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(20px); margin: 0; }
.fx-on .wp-copy.on { opacity: 1; transform: none; }
.wp-copy small { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--neon-pink); margin-bottom: 12px; }
.wp-copy h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 12px; }
.wp-copy p { color: var(--text-inverse-soft); }
.wp-stage { position: relative; height: min(72vh, 680px); border-radius: 20px; overflow: hidden; }
.wp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-after { clip-path: inset(0 0 0 calc((1 - var(--w, 1)) * 100%)); }
.wp-line { position: absolute; top: 0; bottom: 0; left: calc((1 - var(--w, 1)) * 100%); width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, var(--neon-pink), var(--neon-purple)); box-shadow: 0 0 24px rgba(243,148,216,.9); }
.wp-tag { position: absolute; bottom: 22px; font: 700 .78rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; background: rgba(11,8,18,.72); backdrop-filter: blur(8px); padding: 10px 14px; border-radius: 8px; }
.wp-tag.b { left: 22px; opacity: calc(1 - var(--w, 1) * 1.6); }
.wp-tag.a { right: 22px; opacity: calc(var(--w, 1) * 1.6 - .6); }

/* ---------- bento: tiles that rise with the page ---------- */
.bn { background: var(--paper-2); padding: 130px 0; }
.bn-head { max-width: 760px; margin-bottom: 56px; }
.bn-head .sx-eyebrow { color: var(--purple); }
.bn-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; grid-auto-flow: dense; }
.bn-tile { grid-column: span 4; min-height: 300px; }
.bn-tile.w8 { grid-column: span 8; }
.bn-tile.w6 { grid-column: span 6; }
.bn-tile.h2 { grid-row: span 2; }
.bn-text { border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); padding: 34px 32px; display: flex; flex-direction: column; justify-content: flex-end; }
.bn-text h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 12px; }
.bn-text p { color: var(--text-soft); font-size: 1rem; margin-bottom: 10px; }
.bn-text p a { color: var(--purple); }
.bn-text.ink { background: var(--ink); color: #fff; }
.bn-text.ink p { color: var(--text-inverse-soft); }
.bn-text.ink p a { color: var(--neon-pink); }
.bn-text.grad { background: linear-gradient(140deg, #e7a3d2, #8f86d4); color: #120c1a; }
.bn-text.grad p { color: rgba(18,12,26,.8); }
.bn-text .num { font: 800 .8rem var(--font-head); letter-spacing: .16em; color: var(--purple); margin-bottom: auto; padding-bottom: 26px; }
.bn-text.ink .num { color: var(--neon-pink); }
.bn-text.grad .num { color: #2a1530; }

/* ---------- marquee ---------- */
.mq { background: var(--ink); color: #fff; padding: 46px 0; overflow: hidden; }
.mq-row { white-space: nowrap; font: 800 clamp(2.4rem, 6vw, 5rem) var(--font-head); letter-spacing: -.03em; line-height: 1.1; transform: translateX(calc(var(--mx, 0) * 1px)); }
.mq-row span { color: transparent; -webkit-text-stroke: 1px rgba(244,241,250,.35); margin-right: .5em; }
.mq-row span.f { color: #fff; -webkit-text-stroke: 0; }
.mq-row span.g { background: var(--grad-bright); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }

/* ---------- mask hero: the words are cut out of the image (Sarah Stoute) ---------- */
.mh { background: #140d12; color: #fff; }
.fx-on .mh { height: 260vh; }
.mh .fx-pin { min-height: 100vh; }
.mh svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mh .mh-word { font-family: var(--font-head); font-weight: 800; letter-spacing: -.05em; }
.mh .mh-scale { transform-origin: 50% 50%; transform-box: view-box; transform: scale(calc(1 + var(--g, 0) * 5)); }
.mh-after { position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 3; color: #fff; opacity: var(--after, 0); transform: translateY(calc((1 - var(--after, 0)) * 40px)); }
.mh-after h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; text-shadow: 0 6px 40px rgba(0,0,0,.45); }
.mh-after .lede { color: rgba(255,255,255,.9); margin-top: 14px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.mh-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,12,18,.75), rgba(20,12,18,0) 55%); opacity: var(--after, 0); z-index: 2; }
.mh-top { position: absolute; left: 0; right: 0; top: 110px; text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #d9b8cb; opacity: calc(1 - var(--g, 0) * 3); z-index: 3; }
.mh-static { display: none; }
html:not(.fx-on) .mh svg, html:not(.fx-on) .mh-top, html:not(.fx-on) .mh-shade { display: none; }
html:not(.fx-on) .mh-static { display: block; }
html:not(.fx-on) .mh-after { position: relative; opacity: 1; transform: none; color: #1a1523; padding: 140px 0 60px; }
html:not(.fx-on) .mh-after h1, html:not(.fx-on) .mh-after .lede { text-shadow: none; color: inherit; }

/* ---------- stack: story cards stack on each other (Sarah Stoute) ---------- */
.sk { background: #f5efe9; padding: 120px 0 140px; }
.sk-head { margin-bottom: 40px; }
.sk-head .sx-eyebrow { color: #a0688c; }
.sk-card { position: sticky; top: calc(96px + var(--k, 0) * 22px); display: grid; grid-template-columns: 1fr 1.15fr; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(60,30,50,.14); margin-bottom: 26px; min-height: 420px;
  transform: scale(calc(1 - var(--cover, 0) * .06)); transform-origin: 50% 0; filter: brightness(calc(1 - var(--cover, 0) * .18)); }
.sk-copy { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.sk-copy small { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #a0688c; margin-bottom: 14px; }
.sk-copy h3 { font-family: "Cormorant Garamond", var(--font-head); font-style: italic; font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.05; margin-bottom: 14px; letter-spacing: 0; }
.sk-copy p { color: var(--text-soft); }
.sk-card .sx-frame { border-radius: 0; height: 100%; min-height: 300px; }

/* ---------- thread: a stitched line drawn down the page (Sarah Stoute) ---------- */
.th { background: #1b1218; color: #fff; padding: 130px 0; overflow: hidden; }
.th svg.th-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.th-ch { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.th-ch + .th-ch { margin-top: 150px; }
.th-ch.flip > .sx-frame { order: 2; }
.th-ch.text-only { grid-template-columns: minmax(0, 760px); }
.th-ch h2 { margin-bottom: 16px; }
.th-ch p { color: #d9c9d3; margin-bottom: 14px; }
.th-ch p a { color: #f3b6dc; }
.th .sx-eyebrow { color: #f3b6dc; }
.th .grad-text, .sk .grad-text, .mh .grad-text { background: linear-gradient(100deg, #c77fae, #a0688c 50%, #8f86d4); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
.th .grad-text { background: linear-gradient(100deg, #ffe3f3, #f3b6dc 50%, #c7b3f0); -webkit-background-clip: text; background-clip: text; }

/* ---------- horizontal track ---------- */
.tk { background: var(--ink); color: #fff; }
.tk .fx-pin { display: flex; flex-direction: column; justify-content: center; padding: 110px 0 70px; }
.tk-head { margin-bottom: 36px; }
.tk-head .lede { margin-top: 12px; }
.tk-track { display: flex; gap: 22px; align-items: flex-end; padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tk-track::-webkit-scrollbar { display: none; }
.fx-on .fx-pinned .tk-track { overflow: visible; transform: translateX(calc(var(--hx, 0) * -1px)); }
.tk-card { flex: none; margin: 0; scroll-snap-align: center; }
.tk-card .sx-frame { height: min(56vh, 540px); aspect-ratio: var(--ar, 4 / 5); max-width: 86vw; transform: translateY(calc(var(--d, 0) * var(--d, 0) * 40px)) rotate(calc(var(--d, 0) * 2deg)); }
.tk-card figcaption { width: 0; min-width: 100%; margin-top: 14px; font-size: .94rem; color: var(--text-inverse-soft); }
.tk-card figcaption b { display: block; color: #fff; font-family: var(--font-head); margin-bottom: 4px; }
.tk-note { margin-top: 22px; font-size: .85rem; color: rgba(185,178,204,.7); }

/* ---------- collage hero: layered images drifting at different depths (Dreamwool) ---------- */
.cl { background: radial-gradient(ellipse at 50% 120%, #2a1b4a, #0b0812 60%); color: #fff; }
.fx-on .cl { height: 240vh; }
.cl .fx-pin { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.cl-stars { position: absolute; inset: 0; background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 34% 72%, #fff, transparent), radial-gradient(1.2px 1.2px at 58% 30%, #fff, transparent), radial-gradient(1px 1px at 76% 64%, #fff, transparent), radial-gradient(1.6px 1.6px at 88% 22%, #fff, transparent), radial-gradient(1px 1px at 22% 48%, #fff, transparent), radial-gradient(1.2px 1.2px at 66% 86%, #fff, transparent); background-size: 600px 600px; opacity: .55; }
.cl-copy { position: relative; z-index: 5; max-width: 820px; padding: 0 24px; text-shadow: 0 6px 40px rgba(0,0,0,.7); }
.cl-copy h1 { font-family: Fraunces, var(--font-head); font-weight: 300; font-style: italic; font-size: clamp(3rem, 8vw, 6.4rem); line-height: 1; letter-spacing: -.02em; }
.cl-copy .lede { margin: 20px auto 0; color: #e7ddf3; }
.cl-copy .eyebrow-l { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #e8d8ff; margin-bottom: 18px; display: block; }
.cl-card { position: absolute; z-index: 2; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.55); transform: translateY(calc(var(--y, 0) * 1px)) rotate(var(--rot, 0deg)); }
.cl-card img { width: 100%; height: 100%; object-fit: cover; }
html:not(.fx-on) .cl .fx-pin { padding: 140px 0 100px; }
html:not(.fx-on) .cl-card { display: none; }

/* ---------- zoom: each image opens into the next (Dreamwool) ---------- */
.zm { background: var(--ink); color: #fff; }
.fx-on .zm { height: 420vh; }
.zm .fx-pin { min-height: 100vh; }
.zm-layer { position: absolute; inset: 0; transform-origin: 50% 50%; overflow: hidden; border-radius: 24px; }
.zm-layer .bg { position: absolute; inset: -5%; background-size: cover; background-position: center; filter: blur(36px) brightness(.5); }
.zm-layer img { position: absolute; left: 50%; top: 52%; max-width: 78%; max-height: 66%; transform: translate(-50%, -50%); border-radius: 16px; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.zm-head { position: absolute; z-index: 50; left: 0; right: 0; top: 100px; text-align: center; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.zm-head h2 { font-family: Fraunces, var(--font-head); font-weight: 300; font-style: italic; }
.zm-caps { position: absolute; z-index: 50; left: 0; right: 0; bottom: 6vh; display: flex; justify-content: center; }
.zm-cap { position: absolute; font: 600 .82rem var(--font-head); letter-spacing: .18em; text-transform: uppercase; background: rgba(11,8,18,.7); backdrop-filter: blur(8px); padding: 10px 16px; border-radius: 8px; opacity: 0; transition: opacity .4s; }
.zm-cap.on { opacity: 1; }
html:not(.fx-on) .zm .fx-pin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 120px 24px 80px; }
html:not(.fx-on) .zm-layer { position: relative; inset: auto; aspect-ratio: 4/3; }
html:not(.fx-on) .zm-head { position: relative; top: 0; grid-column: 1 / -1; }
html:not(.fx-on) .zm-caps { display: none; }

/* ---------- sparks hero (WeldPlus) ---------- */
.spk { min-height: 100vh; min-height: 100svh; background: #0c0a0d; color: #fff; display: flex; align-items: center; overflow: hidden; }
.spk-img { position: absolute; inset: 0; }
.spk-img img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.85) contrast(1.1); transform: scale(calc(1.05 + var(--hp, 0) * .1)); }
.spk-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c0a0d 18%, rgba(12,10,13,.45) 65%, rgba(12,10,13,.1)); }
.spk canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.spk .wrap { position: relative; z-index: 2; padding-top: 120px; }
.spk h1 { font-family: Anton, var(--font-head); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 10vw, 8.4rem); line-height: .92; letter-spacing: .005em; max-width: 900px; }
.spk .lede { color: #d6cfd9; margin-top: 22px; max-width: 540px; }
.spk .hx-chips { margin-top: 28px; }

/* ---------- timeline: the 7-day build (WeldPlus) ---------- */
.tl { background: #120f14; color: #fff; }
.fx-on .tl { height: 280vh; }
.tl .fx-pin { display: flex; flex-direction: column; justify-content: flex-start; padding: 130px 0 60px; }
.tl-days { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 46px 0 40px; }
.tl-days::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); }
.tl-days::after { content: ""; position: absolute; left: 0; top: -18px; height: 4px; border-radius: 2px; width: calc(var(--tf, 1) * 100%); background: linear-gradient(90deg, #ffb36b, var(--neon-pink)); box-shadow: 0 0 18px rgba(255,160,110,.7); }
.tl-day { border-radius: 14px; padding: 18px 16px; min-height: 120px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .5s, border-color .5s, transform .5s; }
.tl-day b { display: block; font: 800 1.5rem var(--font-head); }
.tl-day span { font-size: .84rem; color: #b8aebb; }
.tl-day.on { background: linear-gradient(160deg, rgba(255,179,107,.18), rgba(243,148,216,.14)); border-color: rgba(255,179,107,.5); transform: translateY(-4px); }
html:not(.fx-on) .tl-day { background: rgba(255,179,107,.1); }
.tl .sx-eyebrow { color: #ffb36b; }
.fx-on .tl-copies { position: relative; min-height: 150px; }
.fx-on .tl-copy { position: absolute; inset: 0 auto auto 0; max-width: 760px; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.fx-on .tl-copy.on { opacity: 1; transform: none; }
.tl-copy small { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #ffb36b; margin-bottom: 10px; }
.tl-body { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 56px; align-items: start; }
.tl-body .sx-frame { aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .tl-body { grid-template-columns: 1fr; gap: 24px; } }
.tl-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.tl-copy p { color: #c9c0cc; }
html:not(.fx-on) .tl-copy { margin-bottom: 26px; }

/* ---------- chapters (plain rising pairs, used by Dreamwool and WeldPlus) ---------- */
.ch { padding: 130px 0; }
.ch.ink { background: var(--ink); color: #fff; }
.ch.forge { background: #120f14; color: #fff; }
.ch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.ch-row + .ch-row { margin-top: 130px; }
.ch-row.flip > .sx-frame { order: 2; }
.ch-row.text-only { grid-template-columns: minmax(0, 780px); }
.ch-row .sx-frame, .th-ch .sx-frame { aspect-ratio: var(--ar, 5 / 4); width: min(100%, calc(74vh * (var(--ar, 5 / 4)))); justify-self: center; }
.ch-row h2 { margin-bottom: 16px; }
.ch-row p { margin-bottom: 14px; color: var(--text-soft); }
.ch.ink .ch-row p, .ch.forge .ch-row p { color: var(--text-inverse-soft); }
.ch-row p a { color: var(--purple); }
.ch.ink .ch-row p a, .ch.forge .ch-row p a { color: var(--neon-pink); }
.ch.forge .sx-eyebrow { color: #ffb36b; }

/* ---------- quote: words light as they are read, neon line underneath ---------- */
.qt { background: var(--ink); color: #fff; padding: 160px 0; overflow: hidden; }
.qt blockquote { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.2; letter-spacing: -.02em; max-width: 960px; }
.qt .qw { opacity: .16; transition: opacity .3s; }
.qt .qw.on { opacity: 1; }
.qt cite { display: block; margin-top: 30px; font-style: normal; color: var(--neon-pink); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.qt .sx-neon { position: relative; width: calc(var(--qp, 1) * 100%); margin-top: 40px; }

/* ---------- next story ---------- */
.nx { background: var(--paper); padding: 110px 0 120px; }
.nx a { position: relative; display: block; height: clamp(300px, 40vw, 520px); border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; transform: scale(calc(.94 + var(--e, 1) * .06)); }
.nx img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: translateY(calc(var(--py, 0) * 1px)); transition: filter .5s; }
.nx a:hover img { filter: brightness(1.1); }
.nx a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,8,18,.85), rgba(11,8,18,.15)); }
.nx-txt { position: absolute; z-index: 2; left: clamp(28px, 7%, 96px); bottom: clamp(28px, 10%, 70px); max-width: 620px; }
.nx-txt small { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--neon-pink); margin-bottom: 10px; }
.nx-txt b { display: block; font: 700 clamp(2rem, 4.4vw, 3.6rem) var(--font-head); line-height: 1.02; letter-spacing: -.03em; }
.nx-txt span { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; font-weight: 600; }
.nx-txt span::after { content: "→"; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--grad); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .sp-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sp .fx-pin { padding: 90px 0; }
  .sp-cards { grid-template-columns: 1fr; }
  .sp-card { min-height: 0; }
  .sp-track, .v-gauge .sp-dial { display: none; }
  .wp .fx-pin { grid-template-columns: 1fr; gap: 22px; padding: 90px 20px 30px; align-content: center; }
  .wp-stage { height: 46vh; }
  .fx-on .wp-copies { min-height: 220px; }
  .bn-tile, .bn-tile.w8, .bn-tile.w6 { grid-column: 1 / -1; min-height: 240px; }
  .bn-tile.h2 { grid-row: auto; }
  .sk-card { grid-template-columns: 1fr; top: calc(76px + var(--k, 0) * 14px); min-height: 0; }
  .sk-card .sx-frame { height: 220px; min-height: 0; }
  .sk-copy { padding: 30px 26px; }
  .th-ch, .th-ch.text-only, .ch-row, .ch-row.text-only { grid-template-columns: 1fr; gap: 30px; }
  .th-ch.flip > .sx-frame, .ch-row.flip > .sx-frame { order: 0; }
  .th-ch + .th-ch, .ch-row + .ch-row { margin-top: 90px; }
  .tl-days { grid-template-columns: repeat(4, 1fr); }
  .tk-card .sx-frame { height: 44vh; }
  .dz-target { margin-top: 10vh; }
}
.sx-frame.bleed { border-radius: 0; height: 100%; background: none; }
.sx-frame.bleed::after { display: none; }
.sx-frame.fill { height: 100%; }
.spk-img .sx-frame img { opacity: .5; }
/* gradient words inside the light bento section and its tiles */
.bn .grad-text { background: linear-gradient(100deg, #c77fae, #7f79c4); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
.bn-text.ink .grad-text { background: linear-gradient(100deg, #f3b6dc, #c7b3f0); -webkit-background-clip: text; background-clip: text; }
.bn-text.grad .grad-text { background: none; color: #3a1c40; -webkit-text-fill-color: #3a1c40; }

.mh-tall { display: none; }
@media (max-aspect-ratio: 1/1) { .mh-tall { display: block; } .mh-wide { display: none; } }
@media (max-width: 860px) { .th [data-fx=thread] { display: none; } }
/* the light Sarah Stoute hero: give the nav a dark glass backing so the white links and logo stay readable */
body:has(.mh) .nav:not(.scrolled) { background: rgba(11,8,18,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- mobile audit fixes (Oct 2026) ---------- */
/* gradient words: one fixed gradient per word instead of the site's travelling shimmer,
   which caught words half-coloured mid-sweep */
body:has(.sx) .grad-text { animation: none; background: linear-gradient(100deg, #f6b9df, #c3b1f3); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; filter: none; }
body:has(.sx) .bn .grad-text, body:has(.sx) .sk .grad-text { background: linear-gradient(100deg, #b4679a, #6f68b8); -webkit-background-clip: text; background-clip: text; }
body:has(.sx) .bn-text.grad .grad-text { background: none; -webkit-text-fill-color: #3a1c40; color: #3a1c40; }
/* the dissolve headline keeps its line break (and its spaces) on phones */
.dz .dz-target br { display: inline; }
.dz .dz-target br + span::before { content: none; }
/* zoom: backdrop of the image that is still small stays hidden */
.zm-layer .bg { opacity: clamp(0, calc((var(--sc, 1) - .6) * 3), 1); }
/* thread: only where there is a margin wide enough to carry it */
@media (max-width: 1320px) { .th [data-fx=thread] { display: none; } }
.tl-day b { white-space: nowrap; }
@media (max-width: 860px) {
  .tl-day { padding: 14px 12px; min-height: 0; }
  .tl-day b { font-size: 1.05rem; }
  .tl-day span { font-size: .78rem; }
  .v-gauge .sp-head { align-items: flex-start; }
  .cl-card { opacity: .45; }
  .cl-copy { background: radial-gradient(ellipse at center, rgba(11,8,18,.75), rgba(11,8,18,0) 70%); padding: 30px 20px; }
}
