/* ── Variant B: case moments, one system, three compositions ──────────────
   wide: cinematic full-bleed image, statement bottom-left; opens to a detail panel on the right
   crop: a large crop with the lead result already on it; opens to the whole picture
   type: the photo lives inside a giant numeral, then grows out of it to fill the frame
   Shared: mono kicker (number · client · service), a big statement, then
   "What we did" + one lead result + smaller supporting figures.
   Desktop: each moment is one screen (pinned while it opens). Phones: natural
   height, opening as it scrolls past, no squeezing to fit a screen. */
.cases { background: var(--bg); color: var(--text); }
.moment { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--bg); }
.m-media { position: absolute; margin: 0; overflow: hidden; will-change: clip-path; }
.m-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.78) contrast(1.07) brightness(.95); }
/* one grade for all three cases: muted colour, firmer contrast and the same cool shadow tint */
.m-media::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #16233f; mix-blend-mode: soft-light; opacity: .55; }
.m-head { position: absolute; z-index: 3; }
.m-k { color: var(--accent); margin-bottom: 18px; }
.m-statement { font-weight: 800; font-size: clamp(40px, 5.6vw, 96px); line-height: .9; letter-spacing: -.045em; text-transform: uppercase; text-wrap: balance; }
.m-statement em { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: -.02em; }
.m-detail { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 14px; }
.m-label { color: #aab3bd; }
.m-copy { font-size: 16px; line-height: 1.55; color: #c7ced6; max-width: 40ch; }
.m-lead { margin-top: 10px; }
.m-lead b { display: block; font-weight: 600; font-size: clamp(64px, 7vw, 120px); line-height: .85; letter-spacing: -.05em; color: var(--light); }
.m-lead span { display: block; margin-top: 10px; color: var(--dim); }
.m-sub { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--dim); font-size: 14px; }
.m-sub b { color: var(--light); font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin-right: 6px; }
.m-flag { color: #c7ced6; font-size: 13px; max-width: 46ch; }
.m-tag { position: absolute; z-index: 4; padding: 5px 8px; background: rgba(5,5,7,.8); color: var(--light); font-size: 12px; }

/* wide */
.moment[data-comp="wide"] .m-media { inset: 0; }
.moment[data-comp="wide"] .m-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,7,0) 35%, rgba(5,5,7,.78) 100%); }
.moment[data-comp="wide"] .m-head { left: var(--gutter); bottom: 8vh; width: 54%; color: var(--light); }
.moment[data-comp="wide"] .m-statement { max-width: 15ch; }
/* centred in the space below the reel HUD, so short screens (1280×720) never push it under the counter */
.moment[data-comp="wide"] .m-detail { right: var(--gutter); top: 64px; bottom: 5vh; justify-content: center; width: calc(42% - 2 * var(--gutter)); }
.moment[data-comp="wide"] .m-tag { left: var(--gutter); top: 4vh; }

/* crop: the picture dominates from the start, with the lead result on it */
.moment[data-comp="crop"] .m-media { top: 6vh; bottom: 6vh; right: var(--gutter); width: 58%; }
.moment[data-comp="crop"] .m-head { left: var(--gutter); top: 10vh; width: 34%; }
.moment[data-comp="crop"] .m-detail { left: var(--gutter); bottom: 8vh; width: 33%; }
.moment[data-comp="crop"] .m-tag { right: calc(var(--gutter) + 12px); top: calc(6vh + 12px); }
.m-figure { position: absolute; z-index: 2; left: 16%; bottom: 13%; margin: 0; color: var(--light); text-shadow: 0 6px 40px rgba(0,0,0,.45); }
.m-figure b { display: block; font-weight: 700; font-size: clamp(84px, 10vw, 176px); line-height: .8; letter-spacing: -.06em; }
.m-figure span { display: block; margin-top: 12px; font-size: 13px; }
.moment[data-comp="crop"] .m-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,7,0) 45%, rgba(5,5,7,.55) 100%); }

/* type: the photo fills the 8 (aligned to the full frame by proto-cases.js), then spills out of it */
.moment[data-comp="type"] .m-numeral { position: absolute; z-index: 2; left: var(--gutter); top: 50%; translate: 0 -50%; margin: 0; pointer-events: none;
  font-weight: 800; font-size: min(88vh, 48vw); line-height: .76; letter-spacing: -.08em;
  color: transparent; background-color: var(--light); background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; }
.moment[data-comp="type"] .m-media { inset: 0; }
.moment[data-comp="type"] .m-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,7,0) 30%, rgba(5,5,7,.82) 58%); }
.moment[data-comp="type"] .m-head { left: 54%; top: 12vh; width: 40%; }
.moment[data-comp="type"] .m-statement { font-size: clamp(36px, 4.4vw, 76px); }
.moment[data-comp="type"] .m-detail { left: 54%; bottom: 10vh; width: 36%; }
.moment[data-comp="type"] .m-tag { right: calc(var(--gutter) + 12px); bottom: 3vh; }

.moment.open .m-detail { opacity: 1; visibility: visible; }

/* ── the reel: all three moments stacked in one pinned scene (proto-cases.js adds .is-reel) ── */
.reel-hud { display: none; }
.cases.is-reel { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.cases.is-reel .moment { position: absolute; inset: 0; height: auto; min-height: 0; will-change: clip-path, transform; }
.cases.is-reel .reel-hud { display: flex; align-items: center; gap: 14px; position: absolute; z-index: 10; left: 50%; top: 22px; translate: -50% 0;
  padding: 7px 12px; background: rgba(5,5,7,.8); color: var(--light); font-size: 12px; pointer-events: none; }
.reel-n b { font-weight: 600; }
.reel-bars { display: flex; gap: 4px; }
.reel-bars i { display: block; width: 28px; height: 2px; background: rgba(233,237,242,.38); overflow: hidden; }
.reel-bars i b { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.reel-skip { pointer-events: auto; margin-left: 6px; color: var(--accent); text-decoration: none; }
.reel-skip:hover, .reel-skip:focus-visible { text-decoration: underline; }
/* the thread: fills along the reel's bottom edge, then carries on as the process line (proto-cases.js) */
.reel-thread { display: none; }
.cases.is-reel .reel-thread { display: block; position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; height: 2px; background: var(--thread); transform: scaleX(0); transform-origin: left; }
.clip-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.m-numeral .bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }

/* ── finale: process + contact share one line, drawn in one SVG above both backgrounds ── */
.finale { position: relative; }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.thread path { fill: none; stroke: var(--thread); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* ── working with us: one line, three stages, natural height, close to its heading ── */
.process { position: relative; background: var(--light); color: var(--bg); padding: 6vh var(--gutter) 9vh; overflow: hidden; }
.proc-top, .proc-h { position: relative; z-index: 2; }   /* the thread passes behind the heading */
.proc-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1.5px solid var(--bg); color: #4c545e; }
.proc-h { margin-top: 5vh; font-weight: 800; font-size: clamp(44px, 6.4vw, 112px); line-height: .88; letter-spacing: -.045em; text-transform: uppercase; }
.proc-h em { font-family: var(--serif); font-weight: 400; text-transform: none; color: #4a6bd8; }
.proc-stages { list-style: none; margin-top: 11vh; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; position: relative; z-index: 2; }
.proc-stages li { opacity: .35; transition: opacity .4s ease; }
.proc-stages li.on { opacity: 1; }
.proc-dot { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg); background: var(--light); margin-bottom: 22px; transition: background .3s, opacity .4s ease; }
/* each step is anchored by a big numeral: outlined while ahead of the line, inked once the line reaches it */
.proc-n { font-weight: 800; font-size: clamp(56px, 6.2vw, 104px); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--bg); transition: color .4s ease; }
.proc-stages li.on .proc-n { color: var(--bg); }
.proc-stages li.on .proc-dot { background: var(--accent); }
.proc-stages h3 { margin: 18px 0 10px; font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.proc-stages li > p:last-child { max-width: 34ch; font-size: 16px; line-height: 1.5; color: #3a414a; }
.proc-stages .mono { color: #4c545e; }
/* the stages step up, so the finished line reads as growth */
.proc-stages li:nth-child(2) { translate: 0 -32px; }
.proc-stages li:nth-child(3) { translate: 0 -64px; }

/* ── client results intro + client quotes: plain headings so the section reads as client work at a glance ── */
.work-intro, .quotes { position: relative; background: var(--bg); color: var(--text); padding: 9vh var(--gutter) 7vh; }
.work-intro .proc-top, .quotes .proc-top { border-bottom-color: rgba(233,237,242,.28); color: var(--dim); }
.work-h, .quotes-h { margin-top: 4vh; font-weight: 800; font-size: clamp(44px, 6.4vw, 112px); line-height: .88; letter-spacing: -.045em; text-transform: uppercase; }
.work-h em, .quotes-h em { font-family: var(--serif); font-weight: 400; text-transform: none; color: var(--accent); }
.cases.is-reel .reel-hud .reel-title { color: var(--light); font-weight: 600; padding-right: 12px; border-right: 1px solid rgba(233,237,242,.3); }
.quotes { padding-bottom: 12vh; }
.q-note { margin-top: 28px; color: var(--dim); }

/* ── phones: natural height; image on top, then statement, then details ── */
@media (max-width: 899px) {
  .moment { height: auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: 9vh; }
  .moment .m-media { position: relative; inset: auto !important; width: auto !important; height: 52svh; flex: none; }
  .moment .m-head, .moment .m-detail { position: static; translate: none !important; width: auto !important; max-width: none !important; margin: 0 var(--gutter); color: var(--text) !important; }
  .moment .m-head { margin-top: 3.5vh; }
  .moment .m-detail { margin-top: 3vh; }
  .moment .m-tag { left: 10px !important; right: auto !important; top: 10px !important; bottom: auto !important; }
  .m-statement { font-size: clamp(32px, 9.4vw, 48px); max-width: none !important; }
  .m-k { margin-bottom: 12px; }
  .m-lead b { font-size: clamp(56px, 16vw, 76px); }
  .m-copy { font-size: 16px; }
  .m-sub { font-size: 14px; }
  .moment[data-comp="wide"] .m-media::after { display: none; }
  .moment[data-comp="type"] .m-media::after { background: linear-gradient(180deg, rgba(5,5,7,0) 60%, rgba(5,5,7,.4) 100%); }
  .moment[data-comp="type"] .m-numeral { left: 50%; top: 26svh; translate: -50% -50%; font-size: 60svh; }
  .moment[data-comp="type"] .m-statement { font-size: clamp(32px, 9.4vw, 48px); }
  .m-figure { left: 9%; bottom: 9%; }
  .m-figure b { font-size: clamp(72px, 22vw, 110px); }
  .work-intro, .quotes { padding-top: 7vh; padding-bottom: 5vh; }
  .work-intro .proc-top, .quotes .proc-top { flex-direction: column; gap: 4px; }
  .work-h, .quotes-h { font-size: clamp(40px, 11vw, 64px); }
  .quotes { padding-bottom: 9vh; }
  .process { padding-top: 5vh; padding-bottom: 4vh; }   /* close to contact, so the line's hand-over stays in view */
  .proc-top { flex-direction: column; gap: 4px; }
  .proc-h { margin-top: 4vh; font-size: clamp(40px, 11vw, 64px); }
  .proc-stages li { translate: none !important; }
  .proc-stages { margin-top: 6vh; grid-template-columns: 1fr; gap: 34px; }
  .proc-stages li { display: grid; grid-template-columns: 16px 1fr; column-gap: 16px; }
  .proc-dot { grid-row: 1 / span 3; margin: 10px 0 0; }
  .proc-n { font-size: 52px; }
  .proc-stages h3 { margin: 10px 0 6px; font-size: 24px; }
  .proc-stages li > p:last-child { font-size: 15px; }
}
