/* Abbas Habhab — portfolio (v2)
   One stylesheet, one variable font, one brand colour. */

:root {
  --ink: #0f0e0c;
  --ink-2: #181613;
  --bone: #efe9dd;
  --paper: #f6f2ea;
  --text: #1a1815;
  --dim: #8d8779;
  --line-d: rgba(239, 233, 221, .16);
  --line-l: rgba(26, 24, 21, .14);
  --accent: #ff5a1f;            /* the brand colour: change it here and it changes everywhere */

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--font); font-size: 17px; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.display { font-stretch: 68%; font-weight: 800; text-transform: uppercase; letter-spacing: -.012em; line-height: .86; }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--dim); white-space: nowrap; }
.label::before { content: "[ "; color: var(--accent); }
.label::after { content: " ]"; color: var(--accent); }
.hl, .serif { color: var(--accent); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.light { background: var(--paper); color: var(--text); }
.light .label { color: #6f695d; }

/* ---------- top bar + dock ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 22px var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
  color: var(--bone); transition: color .3s;
}
.top.on-light { color: var(--ink); }
.top a { pointer-events: auto; text-decoration: none; }
.wordmark { font-weight: 700; font-size: 15px; letter-spacing: .3em; line-height: 1.15; text-transform: uppercase; }
.wordmark span { display: block; }
.top-links { display: flex; gap: clamp(16px, 2.6vw, 34px); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.top-links a { position: relative; padding-bottom: 4px; }
.top-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease); }
.top-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 18px; z-index: 60; margin-inline: auto; width: max-content; max-width: calc(100% - 20px);
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-d); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
  transition: transform .5s var(--ease), opacity .4s;
}
.dock.is-hidden { transform: translateY(140%); opacity: 0; }
.dock a { text-decoration: none; color: var(--bone); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: 11px 14px; border-radius: 8px; transition: background .25s, color .25s; white-space: nowrap; }
.dock a:hover { background: rgba(239, 233, 221, .1); }
.dock .cta { background: var(--bone); color: var(--ink); font-weight: 700; display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; }
.dock .cta:hover { background: var(--accent); color: var(--ink); }
.dock .cta img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; object-position: 50% 22%; background: #d9d2c3; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 50ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }
/* text that fills in as you scroll */
.scrub .sw { opacity: .16; transition: opacity .25s linear; }
.scrub .sw.on { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 10px; text-decoration: none;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; border: 1px solid currentColor;
  background: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--fill { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.light .btn--fill, .accent .btn--fill { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.accent .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn svg { width: 14px; height: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   HOME
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: clip; background: var(--ink); isolation: isolate; }
.hero-disc {
  position: absolute; left: 50%; bottom: -10svh; width: min(54vw, 82svh); aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%) scale(calc(1 + var(--hp, 0) * .25)); z-index: 0;
  background: radial-gradient(circle at 50% 35%, var(--accent), color-mix(in srgb, var(--accent) 55%, #000) 70%);
}
.hero-name { position: absolute; left: 0; right: 0; margin: 0; text-align: center; white-space: nowrap; font-size: min(25.5vw, 36svh); z-index: 1; will-change: transform; }
.hero-name.l1 { top: 11svh; transform: translateX(calc(var(--hp, 0) * -9vw)); }
.hero-name.l2 { bottom: 5svh; transform: translateX(calc(var(--hp, 0) * 9vw)); }
.hero-name.front { z-index: 3; color: transparent; -webkit-text-stroke: 1.5px var(--bone); pointer-events: none; }
.hero-portrait {
  position: absolute; left: 50%; bottom: 0; width: min(50vw, 76svh); aspect-ratio: 1; z-index: 2;
  transform: translateX(-50%) translateY(calc(var(--hp, 0) * 6svh)) scale(calc(1 + var(--hp, 0) * .08)); transform-origin: 50% 100%;
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.96); transition: filter .6s;
  -webkit-mask: url(../img/portrait-mask.png) center / 100% 100% no-repeat; mask: url(../img/portrait-mask.png) center / 100% 100% no-repeat;
}
.hero:hover .hero-portrait img { filter: grayscale(0) contrast(1.02); }
.hero-meta { position: absolute; z-index: 4; bottom: 26px; font-size: 13px; line-height: 1.45; max-width: 250px; color: var(--bone); }
.hero-meta.left { left: var(--gutter); }
.hero-meta.right { right: var(--gutter); text-align: right; }
.hero-meta b { display: block; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; color: var(--dim); margin-bottom: 4px; }
.hero-meta time { font-variant-numeric: tabular-nums; }

.intro { padding: clamp(110px, 17vw, 240px) 0 clamp(70px, 10vw, 140px); }
.intro-grid { display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 4vw, 60px); align-items: start; }
.statement { font-size: clamp(30px, 4.7vw, 70px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; max-width: 19ch; }
.statement.wide { max-width: 22ch; }
.intro-foot { margin-top: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 10px 12px; }
.pill { border: 1px solid var(--line-d); border-radius: 999px; padding: 9px 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bone); }
.pill b { color: var(--accent); font-weight: 600; }
.light .pill { border-color: var(--line-l); color: var(--text); }

.big-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 0 clamp(26px, 4vw, 54px); }
.big-head h2 { font-size: clamp(64px, 15.5vw, 250px); }
.big-head h2 i { font-style: normal; color: var(--accent); }

/* ----- work: full-height panels, each one slides over the last ----- */
.cases { position: relative; }
.case {
  position: sticky; top: 0; min-height: 100svh; display: grid; align-items: center;
  background: var(--ink); border-top: 1px solid var(--line-d); padding: clamp(84px, 11vh, 120px) 0 clamp(84px, 11vh, 110px);
}
.case:nth-child(even) { background: var(--ink-2); }
.case-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(26px, 5vw, 80px); align-items: center; }
.case-media {
  position: relative; aspect-ratio: 4 / 3.1; border-radius: 18px; overflow: hidden; display: block; isolation: isolate;
  background: var(--card); text-decoration: none;
}
.case-media > img.cover { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 0; transform: translateY(calc(var(--pp, 0) * -5%)); will-change: transform; }
.case-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-d); pointer-events: none; }
.case-media.stage::before { content: ""; position: absolute; inset: auto -10% -45% -10%; height: 90%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 60%, transparent), transparent); z-index: -1; opacity: .55; }
.float { position: absolute; transition: transform .9s var(--ease); will-change: transform; filter: drop-shadow(0 26px 34px rgba(0,0,0,.45)); }
.phones .float:nth-child(1) { width: 36%; left: 32%; top: 9%; z-index: 2; transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px + var(--pp, 0) * -18px), 0); }
.phones .float:nth-child(2) { width: 30%; left: 7%; top: 26%; transform: translate3d(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px + var(--pp, 0) * 14px), 0) rotate(-4deg); }
.phones .float:nth-child(3) { width: 30%; right: 7%; top: 22%; transform: translate3d(calc(var(--px, 0) * 22px), calc(var(--py, 0) * 14px + var(--pp, 0) * 26px), 0) rotate(4deg); }
.laptop .float { width: 92%; left: 4%; top: 15%; transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 10px + var(--pp, 0) * -14px), 0); }
.screen { border-radius: 9% / 4.4%; overflow: hidden; border: 4px solid #2a2622; background: #000; aspect-ratio: 9 / 18.6; }
.screen img { width: 100%; }
.case-num { font-size: clamp(60px, 8vw, 128px); color: transparent; -webkit-text-stroke: 1.5px var(--accent); line-height: .8; display: block; margin-bottom: clamp(16px, 2.4vw, 34px); }
.case-copy h3 { font-size: clamp(27px, 3vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; max-width: 16ch; }
.case-copy p { margin-top: 16px; color: var(--soft); max-width: 44ch; font-size: 16.5px; }
.case-meta { margin-top: 20px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); line-height: 1.7; }
.case-meta b { color: var(--bone); font-weight: 600; }
.go { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.go i { width: 46px; height: 46px; border-radius: 10px; background: var(--bone); color: var(--ink); display: grid; place-items: center; transition: background .25s, transform .5s var(--ease); }
.go svg { width: 16px; height: 16px; }
.go:hover i, .case-media:hover ~ .case-copy .go i { background: var(--accent); transform: rotate(45deg); }

/* ----- how I think: the row slides sideways while you scroll down ----- */
.hscroll { position: relative; }
.hscroll-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(22px, 4vh, 48px); }
.hscroll-head h2 { font-size: clamp(54px, 10vw, 150px); }
.hscroll-track { display: flex; gap: 18px; padding-inline: var(--gutter); width: max-content; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.think {
  width: min(78vw, 520px); min-height: min(52vh, 420px); border: 1px solid var(--line-l); border-radius: 18px; padding: 26px 28px 30px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px; background: #fbf8f2; transition: background .3s, color .3s;
}
.think:hover { background: var(--ink); color: var(--bone); }
.think .n { font-size: clamp(70px, 9vw, 130px); color: var(--accent); line-height: .8; }
.think .top-row { display: flex; justify-content: space-between; align-items: flex-start; }
.think h3 { font-size: clamp(24px, 2.2vw, 31px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.think p { font-size: 16px; opacity: .78; max-width: 38ch; }
.hscroll-bar { margin: clamp(22px, 4vh, 44px) var(--gutter) 0; height: 2px; background: var(--line-l); position: relative; }
.hscroll-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--hsp, 0)); }

/* ----- stories of success: giant words stay put, quotes travel over them ----- */
.loud { position: relative; padding-bottom: 30vh; }
.loud-words { position: sticky; top: 0; height: 100svh; display: grid; place-content: center; text-align: center; pointer-events: none; }
.loud-words .label { margin-bottom: 3vh; }
.loud-words h2 { font-size: min(24vw, 29svh); line-height: .82; }
.loud-words h2 span { display: block; }
.loud-cards { position: relative; z-index: 2; margin-top: -45svh; display: grid; gap: 62vh; justify-items: center; }
.quote {
  width: min(100% - 2 * var(--gutter), 520px); background: var(--quote); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-d); border-radius: 18px; padding: clamp(24px, 3vw, 38px); box-shadow: 0 40px 80px -30px #000;
}
.quote .n { font-size: 54px; color: var(--accent); display: block; margin-bottom: 22px; }
.quote p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.38; letter-spacing: -.01em; }
.quote footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-d); }
.quote footer b { display: block; font-weight: 600; }
.quote footer span { font-size: 13px; color: var(--dim); }

/* ----- about ----- */
.about { padding: clamp(100px, 14vw, 210px) 0 clamp(90px, 12vw, 170px); }
.about .statement { max-width: 17ch; font-size: clamp(38px, 6.4vw, 100px); letter-spacing: -.04em; }
.about-rows { margin-top: clamp(60px, 9vw, 130px); display: grid; gap: clamp(50px, 7vw, 100px); }
.about-row { display: grid; grid-template-columns: 200px minmax(0, 420px) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: start; }
.about-row p { font-size: 18px; max-width: 40ch; }
.about-row .lead { font-size: clamp(22px, 2.3vw, 31px); font-weight: 600; letter-spacing: -.025em; line-height: 1.14; max-width: 18ch; }
.about-photo { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #ddd5c6; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(calc(1.08 - var(--pp, 0) * .08)); }
.path { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-l); position: relative; grid-column: 2 / -1; }
.path::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.path li { padding: 18px 16px 0 0; }
.path small { display: block; font-size: 11.5px; letter-spacing: .14em; color: #8a8375; margin-bottom: 6px; }
.path b { font-size: clamp(17px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em; display: block; }
.path span { font-size: 14px; color: #6f695d; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 2 / -1; }

/* ----- contact ----- */
.accent { background: var(--accent); color: var(--ink); }
.contact { padding: clamp(90px, 13vw, 190px) 0 clamp(110px, 12vw, 160px); overflow: clip; }
.contact .label { color: rgba(15, 14, 12, .7); }
.contact .label::before, .contact .label::after { color: var(--ink); }
.contact h2 { font-size: min(18.5vw, 330px); margin: 14px 0 clamp(24px, 4vw, 50px); white-space: nowrap; transform: translateX(calc((1 - var(--p, 1)) * 12vw)); }
.contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.contact p { font-size: clamp(19px, 2vw, 27px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; max-width: 28ch; }
.mail { font-size: clamp(20px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.03em; text-decoration: none; border-bottom: 2px solid currentColor; }
.site-footer { background: var(--ink); color: var(--dim); padding: 26px 0 96px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--bone); }

/* ============================================================
   CASE STUDY
   ============================================================ */
.case-hero { padding: clamp(120px, 18vh, 190px) 0 clamp(50px, 7vw, 90px); background: var(--ink); color: var(--bone); }
.back { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--dim); display: inline-flex; gap: 8px; margin-bottom: 30px; transition: color .25s, gap .25s; }
.back:hover { color: var(--accent); gap: 12px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 500; }
.eyebrow i { width: 28px; height: 1px; background: var(--accent); display: inline-block; }
.case-hero h1 { font-stretch: 68%; font-weight: 800; text-transform: uppercase; font-size: clamp(46px, 9.4vw, 150px); line-height: .88; letter-spacing: -.012em; margin: 20px 0 30px; max-width: 13ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line-d); border-radius: 999px; padding: 8px 15px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.case-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(26px, 6vw, 90px); margin: clamp(40px, 6vw, 80px) 0 clamp(34px, 5vw, 60px); align-items: end; }
.lede { font-size: clamp(21px, 2.3vw, 31px); line-height: 1.22; letter-spacing: -.02em; font-weight: 500; max-width: 27ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 26px; }
.facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin-top: 3px; font-size: 15px; font-weight: 500; }
.cover-stage { border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 16 / 8.4; background: var(--card); isolation: isolate; box-shadow: inset 0 0 0 1px var(--line-d); }
.cover-stage::before { content: ""; position: absolute; inset: auto -10% -55% -10%; height: 100%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 60%, transparent), transparent); z-index: -1; opacity: .5; }
.cover-stage .phones, .cover-stage .laptop { position: absolute; inset: 0; }
.cover-stage .phones .float:nth-child(1) { width: 23%; left: 38.5%; top: 9%; }
.cover-stage .phones .float:nth-child(2) { width: 19.5%; left: 20%; top: 26%; }
.cover-stage .phones .float:nth-child(3) { width: 19.5%; right: 20%; top: 22%; left: auto; }
.cover-stage .laptop .float { width: 60%; left: 20%; top: 9%; }
.cover-stage .label { position: absolute; left: 24px; top: 20px; z-index: 3; }
.case-hero .fig-frame { box-shadow: inset 0 0 0 1px var(--line-d); }
.case-hero .fig figcaption { color: var(--dim); }

.case-body { background: var(--paper); color: var(--text); padding-bottom: clamp(60px, 8vw, 120px); }
.case-body.wrap { width: 100%; max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }
.block { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 6vw, 90px); padding: clamp(50px, 7vw, 100px) 0; border-top: 1px solid var(--line-l); }
.block:first-child { border-top: 0; }
.block > header { align-self: start; }
.block > header .n { font-stretch: 68%; font-weight: 800; font-size: 46px; line-height: .8; color: var(--accent); display: block; margin-bottom: 16px; }
.block h2 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
.prose { display: grid; gap: 20px; max-width: 680px; font-size: 18px; color: #3b3731; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { padding-left: 26px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--accent); }
.pull { font-size: clamp(25px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; color: var(--text); padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); margin: 8px 0; max-width: 20ch; }
.stat { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin: 6px 0; color: var(--text); }
.stat b { font-stretch: 68%; font-size: clamp(84px, 12vw, 170px); font-weight: 800; line-height: .82; text-transform: uppercase; }
.stat b span { color: var(--accent); }
.stat > span { font-size: 17px; color: #6f695d; max-width: 18ch; line-height: 1.3; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-row > div { border: 1px solid var(--line-l); border-radius: 14px; padding: 18px 18px 20px; background: #fbf8f2; }
.stat-row b { font-stretch: 68%; font-size: clamp(40px, 4.4vw, 62px); font-weight: 800; line-height: .9; display: block; color: var(--text); }
.stat-row span { font-size: 13.5px; color: #6f695d; display: block; margin-top: 10px; line-height: 1.35; }

.fig { margin: clamp(10px, 2vw, 22px) 0 0; grid-column: 1 / -1; }
.fig-frame { border-radius: 18px; overflow: hidden; background: #e9e3d6; position: relative; cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; }
.fig-frame img { width: 100%; transition: transform 1.1s var(--ease); }
.fig-frame:hover img { transform: scale(1.015); }
.fig-frame::after { content: "Click to zoom"; position: absolute; right: 14px; bottom: 14px; background: var(--ink); color: var(--bone); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 13px; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.fig-frame:hover::after, .fig-frame:focus-visible::after { opacity: 1; transform: none; }
.fig figcaption { font-size: 14px; color: #6f695d; margin-top: 14px; max-width: 760px; }
.fig--pad .fig-frame { padding: clamp(18px, 4vw, 56px); }
.fig--pad .fig-frame img { border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.fig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; grid-column: 1 / -1; }
.fig-grid .fig { margin: 0; grid-column: auto; }
.fig--phone .fig-frame { background: #201d19; padding: clamp(24px, 4vw, 50px) 0 0; display: grid; place-items: start center; max-height: 620px; }
.fig--phone .fig-frame img { width: min(300px, 62%); border-radius: 26px 26px 0 0; border: 5px solid #2a2622; border-bottom: 0; }
.placeholder { grid-column: 1 / -1; border: 1.5px dashed #b9b2a3; border-radius: 18px; background: repeating-linear-gradient(135deg, #efeadf 0 14px, #ebe5d8 14px 28px); min-height: 280px; display: grid; place-items: center; text-align: center; padding: 30px; color: #6f695d; font-size: 14.5px; }
.placeholder b { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }

.outcome { background: var(--ink); color: var(--bone); padding: clamp(70px, 10vw, 150px) 0; }
.outcome-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-bottom: 20px; border-bottom: 1px solid var(--line-d); margin-bottom: clamp(30px, 5vw, 60px); }
.outcome-head span:first-child { color: var(--accent); }
.outcome-head span:last-child { text-align: right; max-width: 46ch; }
.outcome h2 { font-stretch: 68%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 7.4vw, 118px); line-height: .88; max-width: 14ch; }
.outcome p { margin-top: 24px; font-size: clamp(18px, 1.7vw, 22px); max-width: 52ch; line-height: 1.4; color: var(--soft); }
.outcome p strong { color: var(--bone); }
.outcome .learned { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-top: 44px; }
.outcome .learned h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.outcome .learned p { margin: 0; font-size: 16.5px; }

.next { background: var(--accent); color: var(--ink); padding: clamp(60px, 9vw, 130px) 0; }
.next a { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; text-decoration: none; }
.next small { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 16px; font-weight: 600; }
.next b { font-stretch: 68%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 8vw, 128px); line-height: .88; display: block; max-width: 13ch; }
.next i { width: clamp(56px, 7vw, 96px); aspect-ratio: 1; border-radius: 14px; background: var(--ink); color: var(--bone); display: grid; place-items: center; transition: transform .5s var(--ease); }
.next i svg { width: 30%; }
.next a:hover i { transform: rotate(45deg); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 11, 10, .95); display: none; overflow: auto; cursor: zoom-out; padding: 70px 20px 30px; }
.lightbox.open { display: block; animation: fade .3s; }
.lightbox img { margin: 0 auto; max-width: none; width: min(2400px, 96vw); border-radius: 10px; }
.lightbox.zoomed img { width: min(3200px, 220vw); }
.lightbox .close { position: fixed; top: 16px; right: 20px; background: var(--bone); color: var(--ink); border: 0; border-radius: 8px; padding: 11px 15px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; cursor: pointer; }
.lightbox .hint { position: fixed; top: 26px; left: 24px; color: var(--dim); font-size: 12px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .intro-grid, .about-row, .case-intro, .block, .contact-grid { grid-template-columns: 1fr; }
  .path, .skills { grid-column: auto; }
  .case { position: relative; min-height: 0; }
  .case-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
  .big-head { flex-direction: column; align-items: flex-start; }
  .loud-cards { gap: 40vh; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero-name { font-size: 29vw; }
  .hero-name.l1 { top: 23svh; }
  .hero-name.l2 { bottom: 15svh; }
  .hero-portrait { width: min(112vw, 70svh); }
  .hero-disc { width: min(104vw, 70svh); }
  .hero-meta { top: 78px; bottom: auto; max-width: 46vw; font-size: 12px; }
  .hero-meta.right b { display: none; }
  .wordmark { font-size: 13px; }
  .top-links { gap: 14px; font-size: 11.5px; }
  .dock a { padding: 11px 10px; font-size: 10.5px; }
  .path { grid-template-columns: 1fr; }
  .fig-grid { grid-template-columns: 1fr; }
  .next a { grid-template-columns: 1fr; }
  .cover-stage { aspect-ratio: 4 / 3.4; }
  /* sideways row becomes a normal swipe row on phones */
  .hscroll { height: auto !important; }
  .hscroll-pin { position: static; height: auto; padding: 80px 0; overflow: visible; }
  .hscroll-track { transform: none; overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .think { scroll-snap-align: center; flex: 0 0 82vw; min-height: 340px; }
  .hscroll-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
  .scrub .sw { opacity: 1; }
  .hscroll { height: auto !important; }
  .hscroll-pin { position: static; height: auto; padding: 80px 0; overflow: visible; }
  .hscroll-track { transform: none; overflow-x: auto; width: auto; }
  .hscroll-bar { display: none; }
  .case { position: relative; min-height: 0; }
  .loud-words { position: static; height: auto; padding: 80px 0 0; }
  .loud-cards { margin-top: 40px; gap: 24px; }
  .loud { padding-bottom: 80px; }
}

/* ============================================================
   v2.1 — glass top bar, theme switch, hero with the statement
   ============================================================ */
:root { --glass: rgba(24, 22, 19, .82); --card: #201d19; --soft: #c4bdaf; --quote: rgba(24, 22, 19, .93); }
[data-theme="light"] {
  --ink: #f3eee4; --ink-2: #eae4d6; --bone: #1a1815; --paper: #fbf8f2; --dim: #6f695d;
  --line-d: rgba(26, 24, 21, .16); --glass: rgba(251, 248, 242, .84); --card: #e4ddcf; --soft: #4a453d; --quote: rgba(251, 248, 242, .95);
}
/* sections with their own fixed colours keep them in both themes */
[data-theme="light"] .light, .accent, .next, .lightbox { --ink: #0f0e0c; --ink-2: #181613; --bone: #efe9dd; --dim: #8d8779; --line-d: rgba(239, 233, 221, .16); }

.top {
  inset: 10px 10px auto 10px; padding: 8px 8px 8px 18px; align-items: center; pointer-events: auto;
  color: var(--bone); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-d); border-radius: 12px; box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .6);
}
.top.on-light { color: var(--bone); }
.wordmark { font-size: 13px; }
.top-links { align-items: center; }
.theme { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-d); background: none; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.theme:hover { background: color-mix(in srgb, var(--bone) 12%, transparent); }
.theme span { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--bone); background: linear-gradient(90deg, var(--bone) 50%, transparent 50%); transition: transform .5s var(--ease); }
[data-theme="light"] .theme span { transform: rotate(180deg); }

.hero-what { position: absolute; z-index: 4; top: clamp(92px, 14svh, 140px); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.hero-what > div:first-child { max-width: min(33vw, 520px); }
.hero-what .label { display: block; margin-bottom: 16px; }
.hero-what .statement { font-size: clamp(24px, 2.9vw, 46px); max-width: 15ch; }
.hero-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 30px; }
.hero-name { font-size: min(27vw, 30svh); }
.hero-name.l2 { bottom: 10svh; }
.hero-portrait { width: min(42vw, 60svh); aspect-ratio: 547 / 574; }
.hero-portrait img { -webkit-mask: none; mask: none; object-fit: contain; object-position: 50% 100%; }
.hero-disc { width: min(40vw, 56svh); bottom: 8svh; }
.hero-meta { bottom: 22px; }

.about-lead { grid-column: 2 / -1; display: grid; gap: 26px; }
.about-photo { aspect-ratio: auto; background: none; border-radius: 0; max-width: none; }
.about-photo img { height: auto; transform: none; }
.about-lead p { font-size: clamp(20px, 2vw, 27px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; max-width: 34ch; }

@media (max-width: 980px) { .about-lead { grid-column: auto; } }
@media (max-width: 700px) {
  .top { padding: 6px 6px 6px 14px; }
  .hero-what { flex-direction: column; top: 84px; gap: 14px; }
  .hero-what > div:first-child { max-width: none; }
  .hero-what .statement { font-size: 7.2vw; max-width: 16ch; }
  .hero-pills { flex-direction: row; flex-wrap: wrap; align-items: flex-start; margin-top: 0; gap: 6px; }
  .hero-pills .pill { padding: 7px 11px; font-size: 10.5px; }
  .hero-name { font-size: 31vw; }
  .hero-name.l2 { bottom: 12svh; }
  .hero-portrait { width: min(80vw, 42svh); }
  .hero-disc { width: min(76vw, 40svh); }
  .hero-meta { display: none; }
}
/* ============================================================
   v2.2 — lifted portrait, 2×2 case grid, about image, spacing
   ============================================================ */
.hero-portrait { bottom: 7svh; }
.hero-portrait img, .hero:hover .hero-portrait img {
  filter: none;
  -webkit-mask: linear-gradient(#000 78%, transparent 100%); mask: linear-gradient(#000 78%, transparent 100%);
}
.hero-meta { bottom: 9svh; }
#work { padding-top: clamp(90px, 13vw, 190px); padding-bottom: clamp(60px, 8vw, 120px); }

.grid4 { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 14px; height: calc(100svh - 110px); min-height: 600px; max-height: 900px; }
.tile {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(14px, 1.6vw, 24px); padding: 12px; min-height: 0;
  border: 1px solid var(--line-d); border-radius: 20px; background: var(--ink-2); text-decoration: none; color: inherit;
  transition: border-color .3s, transform .5s var(--ease);
}
.tile:hover { border-color: var(--accent); transform: translateY(-4px); }
.tile .case-media { aspect-ratio: auto; height: 100%; min-height: 0; border-radius: 12px; }
.tile-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 8px 8px 6px 0; min-width: 0; }
.tile .case-num { font-size: clamp(40px, 4.4vw, 72px); margin: 0; }
.tile h3 { font-size: clamp(19px, 1.85vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.tile .case-meta { margin-top: 12px; font-size: 11px; }
.tile .go { margin: 0; font-size: 11.5px; }
.tile .go i { width: 40px; height: 40px; }
.tile:hover .go i { background: var(--accent); transform: rotate(45deg); }

.about-rows { gap: clamp(90px, 12vw, 180px); }
.about-lead { position: relative; }
.about-photo { margin-right: calc(-1 * var(--gutter)); clip-path: inset(0 calc((1 - var(--p, 1)) * 100%) 0 0); }
.about-photo img {
  mix-blend-mode: multiply; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%), linear-gradient(#000 58%, transparent 96%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%), linear-gradient(#000 58%, transparent 96%); mask-composite: intersect;
}
.about-lead p { margin-top: -9%; position: relative; }

@media (max-width: 980px) {
  .grid4 { grid-template-columns: 1fr; height: auto; max-height: none; grid-auto-rows: auto; }
  .tile { grid-template-columns: 1fr; }
  .tile .case-media { aspect-ratio: 4 / 3; height: auto; }
  .tile-copy { padding: 6px 6px 8px; }
  .about-lead p { margin-top: -4%; }
}
/* ============================================================
   v2.3 — new portrait, disc behind only, stacked tiles, soft about reveal
   ============================================================ */
.hero { --pw: min(38vw, 52svh); }
.hero-portrait { width: var(--pw); aspect-ratio: 1167 / 1410; clip-path: inset(2px); }
.hero-portrait img, .hero:hover .hero-portrait img {
  object-fit: cover;
  -webkit-mask: url(../img/portrait-3-mask.png) center / 100% 100% no-repeat, linear-gradient(#000 80%, transparent 100%); -webkit-mask-composite: source-in;
  mask: url(../img/portrait-3-mask.png) center / 100% 100% no-repeat, linear-gradient(#000 80%, transparent 100%); mask-composite: intersect;
}
/* the disc stops where the portrait starts to fade, so no orange shows through it */
.hero-disc {
  width: min(36vw, 50svh); clip-path: inset(0 0 calc(var(--pw) * .3 - 1svh) 0);
  transform: translateX(calc(-50% + var(--mx, 0) * 46px)) translateY(calc(var(--my, 0) * 30px)) scale(calc(1 + var(--hp, 0) * .25));
  transition: transform .7s var(--ease);
}
.hero-name.front { color: color-mix(in srgb, var(--bone) 16%, transparent); }

.grid4 { height: auto; min-height: 0; max-height: none; grid-auto-rows: auto; }
.tile { grid-template-columns: 1fr; gap: 12px; }
.tile .case-media { aspect-ratio: 2.3 / 1; height: auto; max-height: 31svh; width: 100%; }
.tile-copy { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 1.8vw, 26px); padding: 6px 8px 8px; }
.tile .go { font-size: 0; gap: 0; }
.tile .phones .float:nth-child(1) { width: 22%; left: 39%; top: 10%; }
.tile .phones .float:nth-child(2) { width: 19%; left: 17%; top: 24%; }
.tile .phones .float:nth-child(3) { width: 19%; right: 17%; top: 18%; }
.tile .laptop .float { width: 50%; left: 25%; top: 8%; }

.about-photo {
  margin-right: 0; clip-path: none; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p, 1) * 150% - 50%), transparent calc(var(--p, 1) * 150%));
  mask-image: linear-gradient(90deg, #000 calc(var(--p, 1) * 150% - 50%), transparent calc(var(--p, 1) * 150%));
}
.about-photo img { mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }
.about-lead p { margin-top: 0; }
.about-cta { grid-column: 2 / -1; }

@media (max-width: 1100px) {
  .hero-meta { bottom: 14px; max-width: 170px; font-size: 12px; }
}
@media (max-width: 980px) {
  .tile .case-media { aspect-ratio: 16 / 9; max-height: none; }
  .tile-copy { padding: 4px 6px 8px; }
  .about-cta { grid-column: auto; }
  .about-row > span:empty { display: none; }
  .about-lead p { margin-top: 0; }
}
@media (max-width: 700px) {
  .hero { --pw: min(78vw, 40svh); }
  .hero-portrait { width: var(--pw); }
  .hero-disc { width: min(72vw, 38svh); }
  .tile .phones .float:nth-child(1) { width: 26%; left: 37%; }
  .tile .phones .float:nth-child(2) { width: 22%; left: 12%; }
  .tile .phones .float:nth-child(3) { width: 22%; right: 12%; }
  .tile .laptop .float { width: 64%; left: 18%; }
}
/* v2.4 — clean portrait cut-out, frosted letters over the portrait */
.hero-portrait { aspect-ratio: 1242 / 1409; }
.hero-name.front {
  color: transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--bone) 20%, transparent), color-mix(in srgb, var(--bone) 20%, transparent)),
    url(../img/portrait-3-blur.png) 50% calc(100% + 3svh) / var(--pw) auto no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
@media (max-width: 700px) {
  .hero-name.front { background-position: 0 0, 50% calc(100% + 5svh); }
}
/* v2.5 — outside work: text on the left, square photos sliding left */
.outside { align-items: center; }
.outside-copy { display: grid; gap: 16px; }
.reel { display: flex; gap: 12px; overflow: hidden; margin-right: calc(-1 * var(--gutter)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%); mask-image: linear-gradient(90deg, transparent, #000 9%); }
.reel-track { display: flex; gap: 12px; flex: none; animation: reel 30s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel figure { position: relative; width: clamp(190px, 21vw, 290px); aspect-ratio: 1; border-radius: 14px; overflow: hidden; flex: none; background: #ddd5c6; }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(15, 14, 12, .78); color: #efe9dd; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
@keyframes reel { to { transform: translateX(calc(-100% - 12px)); } }
@media (max-width: 980px) { .reel { margin-left: calc(-1 * var(--gutter)); -webkit-mask-image: none; mask-image: none; } }
@media (prefers-reduced-motion: reduce) { .reel { overflow-x: auto; } .reel-track[aria-hidden] { display: none; } }

/* v2.5 — case study figures */
.cover-stage .phones .float:nth-child(2) { top: 17%; }
.fig figcaption { text-align: center; margin-inline: auto; }
.top { width: min(100% - 20px, var(--max)); margin-inline: auto; }
/* v2.6 - figures keep their own proportions; paired figures crop the backdrop, never squeeze */
.fig-frame img { height: auto; }
.fig-grid .fig-frame { aspect-ratio: 16 / 9; }
.fig-grid .fig-frame img { height: 100%; object-fit: cover; object-position: 50% 0; }

/* v2.7 - one UI screen on the accent stage (aviation, onboard): same stage as the phone covers */
.shot .float { left: 50%; top: auto; bottom: -5%; width: 64%; border-radius: 10px 10px 0 0; transform: translate3d(calc(-50% + var(--px, 0) * 12px), calc(var(--py, 0) * 6px), 0); }
.cover-stage .shot { position: absolute; inset: 0; }
.cover-stage .shot .float { width: 78%; border-radius: 16px 16px 0 0; }
@media (max-width: 700px) {
  .tile .shot .float { width: 86%; }
  .cover-stage:has(.shot) { aspect-ratio: 16 / 10; }
  .cover-stage .shot .float { width: 92%; border-radius: 10px 10px 0 0; }
}

/* v2.8 — hero disc is whole again; a dark silhouette behind the fading portrait keeps orange from showing through it */
.hero-disc {
  clip-path: none;
  transform: translateX(calc(-50% + var(--mx, 0) * 46px)) translateY(calc(var(--my, 0) * 14px)) scale(calc(1 + var(--hp, 0) * .25));
}
.hero-portrait::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  -webkit-mask: url(../img/portrait-3-mask.png) center / 100% 100% no-repeat; mask: url(../img/portrait-3-mask.png) center / 100% 100% no-repeat;
}
.hero-portrait img { position: relative; }
/* v2.9 — hero disc: cropped again, lower than before, and locked to the portrait while scrolling */
.hero-disc {
  clip-path: inset(0 0 calc(var(--pw) * .16) 0);
  transform: translateX(-50%) translateY(calc(var(--hp, 0) * 6svh));   /* follows the portrait instantly on scroll */
  translate: calc(var(--mx, 0) * 40px) calc(var(--my, 0) * 12px);      /* cursor drift, eased */
  transition: translate .7s var(--ease);
}
/* v2.9 - paired figures that must show whole (Movee research boards, personas, journey maps): no crop */
.fig-grid--fit { align-items: start; }
.fig-grid--fit .fig-frame { aspect-ratio: auto; }
.fig-grid--fit .fig-frame img { height: auto; object-fit: contain; }
.fig-grid > .fig-cap { grid-column: 1 / -1; font-size: 14px; color: #6f695d; text-align: center; max-width: 760px; margin: -2px auto 0; }

/* v3.0 - Movee "rest of the trip": one screen at a time, picked from a short list (radio inputs, no script) */
.flow { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: stretch; margin-top: clamp(10px, 2vw, 22px); }
.flow > input { position: absolute; opacity: 0; pointer-events: none; }
.flow-nav { display: grid; align-content: start; }
.flow-nav label { display: flex; align-items: baseline; gap: 16px; padding: 18px 16px; border-top: 1px solid var(--line-l); cursor: pointer; font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: #6f695d; border-radius: 0; transition: color .25s, background .25s, padding .25s var(--ease); }
.flow-nav label:last-child { border-bottom: 1px solid var(--line-l); }
.flow-nav label b { font-stretch: 68%; font-weight: 800; font-size: 20px; color: #b9b2a4; transition: color .25s; }
.flow-nav label:hover { color: var(--text); }
.flow-stage { background: #191613; color: var(--bone); border-radius: 18px; padding: clamp(22px, 4vw, 48px); display: grid; }
.flow-shot { display: none; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin: 0; }
.flow-shot .fig-frame { background: none; border-radius: 0; overflow: visible; }
.flow-shot .fig-frame::after { display: none; }
.flow-shot img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.flow-shot figcaption { display: grid; gap: 18px; max-width: 46ch; }
.flow-shot h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.flow-shot p { font-size: 16.5px; line-height: 1.45; color: #cfc8b8; }
.flow-shot p b { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
#flow-1:checked ~ .flow-stage .flow-shot:nth-child(1), #flow-2:checked ~ .flow-stage .flow-shot:nth-child(2), #flow-3:checked ~ .flow-stage .flow-shot:nth-child(3), #flow-4:checked ~ .flow-stage .flow-shot:nth-child(4), #flow-5:checked ~ .flow-stage .flow-shot:nth-child(5) { display: grid; animation: flow-in .45s var(--ease); }
#flow-1:checked ~ .flow-nav label:nth-child(1), #flow-2:checked ~ .flow-nav label:nth-child(2), #flow-3:checked ~ .flow-nav label:nth-child(3), #flow-4:checked ~ .flow-nav label:nth-child(4), #flow-5:checked ~ .flow-nav label:nth-child(5) { color: var(--text); background: #fbf8f2; padding-left: 22px; }
#flow-1:checked ~ .flow-nav label:nth-child(1) b, #flow-2:checked ~ .flow-nav label:nth-child(2) b, #flow-3:checked ~ .flow-nav label:nth-child(3) b, #flow-4:checked ~ .flow-nav label:nth-child(4) b, #flow-5:checked ~ .flow-nav label:nth-child(5) b { color: var(--accent); }
#flow-1:focus-visible ~ .flow-nav label:nth-child(1), #flow-2:focus-visible ~ .flow-nav label:nth-child(2), #flow-3:focus-visible ~ .flow-nav label:nth-child(3), #flow-4:focus-visible ~ .flow-nav label:nth-child(4), #flow-5:focus-visible ~ .flow-nav label:nth-child(5) { outline: 2px solid var(--accent); outline-offset: -2px; }
@keyframes flow-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-nav { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .flow-nav label, .flow-nav label:last-child { border: 1px solid var(--line-l); border-radius: 999px; padding: 10px 16px; font-size: 14px; white-space: nowrap; gap: 8px; }
  .flow-nav label b { font-size: 14px; }
  #flow-1:checked ~ .flow-nav label:nth-child(1), #flow-2:checked ~ .flow-nav label:nth-child(2), #flow-3:checked ~ .flow-nav label:nth-child(3), #flow-4:checked ~ .flow-nav label:nth-child(4), #flow-5:checked ~ .flow-nav label:nth-child(5) { padding-left: 16px; }
}
@media (max-width: 620px) {
  .flow-shot { grid-template-columns: 1fr; justify-items: center; }
  .flow-shot .fig-frame { max-width: 230px; }
}
@media (prefers-reduced-motion: reduce) { .flow-shot { animation: none !important; } }

/* v3.1 - phone screens: readable size in the viewer; framed phone figure; screen switcher keeps one height */
.lightbox.tall img { width: min(440px, 92vw); }
.lightbox.tall.zoomed img { width: min(680px, 96vw); }
.fig--device .fig-frame { background: #191613; padding: clamp(28px, 5vw, 60px) 0; display: grid; place-items: center; }
.fig--device .fig-frame img { width: min(270px, 62%); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.flow-stage { align-items: center; }
.flow-shot { display: grid; grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.flow-shot img { aspect-ratio: 640 / 1324; }
#flow-1:checked ~ .flow-stage .flow-shot:nth-child(1), #flow-2:checked ~ .flow-stage .flow-shot:nth-child(2), #flow-3:checked ~ .flow-stage .flow-shot:nth-child(3), #flow-4:checked ~ .flow-stage .flow-shot:nth-child(4), #flow-5:checked ~ .flow-stage .flow-shot:nth-child(5) { visibility: visible; opacity: 1; }

/* v3.2 - home tiles place the three phones exactly as the case study cover does: same box shape, same positions */
.tile .phones-in { position: absolute; inset: 0 auto 0 50%; height: 100%; width: auto; aspect-ratio: 16 / 8.4; transform: translateX(-50%); }
.tile .phones .float:nth-child(1) { width: 23%; left: 38.5%; top: 9%; }
.tile .phones .float:nth-child(2) { width: 19.5%; left: 20%; top: 17%; }
.tile .phones .float:nth-child(3) { width: 19.5%; right: 20%; left: auto; top: 22%; }

/* ============================================================
   v3.0 — each case study takes the colours of its own product; sticky section jumper
   ============================================================ */
body[data-case="rowm"]     { --a-bright: #5fe0cb; --a-deep: #0a7a6b; --band: #7fe3d0; --on-band: #0c2623; --paper-case: #f2f8f6; --ink-case: #0a1f1c; --ink2-case: #0f2a26; }
body[data-case="aviation"] { --a-bright: #93adf2; --a-deep: #27468c; --band: #24407a; --on-band: #eef1fa; --paper-case: #f3f5fa; --ink-case: #0c1224; --ink2-case: #121a33; }
body[data-case="onboard"]  { --a-bright: #d58bfa; --a-deep: #8a2bd0; --band: #8f2fd6; --on-band: #ffffff; --paper-case: #f8f4fc; --ink-case: #170d22; --ink2-case: #20122f; }
body[data-case="movee"]    { --a-bright: #f26a7c; --a-deep: #a31f33; --band: #8f1d2c; --on-band: #fbeeee; --paper-case: #faf4f3; --ink-case: #170a0c; --ink2-case: #221014; }

body[data-case] { --accent: var(--a-bright); }
html:not([data-theme="light"]) body[data-case] { --ink: var(--ink-case); --ink-2: var(--ink2-case); }
[data-theme="light"] body[data-case] { --accent: var(--a-deep); }
body[data-case] .case-body { --accent: var(--a-deep); --paper: var(--paper-case); background: var(--paper-case); }
body[data-case] .case-hero { background: radial-gradient(70% 60% at 88% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--ink); }
body[data-case] .next { background: var(--band); color: var(--on-band); }
body[data-case] .next i { background: var(--on-band); color: var(--band); }

.jump { position: sticky; top: 78px; z-index: 40; padding-top: 16px; }
.jump-inner {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 12px;
  border: 1px solid var(--line-l); background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .4);
}
.jump-inner::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; text-decoration: none; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  padding: 10px 13px; border-radius: 8px; color: #5d574c; white-space: nowrap; max-width: 30ch; overflow: hidden; text-overflow: ellipsis;
  transition: background .25s, color .25s;
}
.jump a b { color: var(--accent); margin-right: 8px; font-weight: 700; }
.jump a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.jump a.on { background: var(--text); color: var(--paper); }
.jump a.on b { color: var(--a-bright, var(--accent)); }
.jump + .block { border-top: 0; }
.block { scroll-margin-top: 150px; }
@media (max-width: 700px) { .jump { top: 70px; } .jump a { padding: 9px 11px; font-size: 10.5px; max-width: 24ch; } }
/* ============================================================
   v3.1 — section jumper: card at the bottom left, list opens on hover
   ============================================================ */
.block { scroll-margin-top: 110px; }
.sj {
  --c: var(--a-bright, var(--accent)); --sj-bg: color-mix(in srgb, var(--ink2-case, #181613) 93%, transparent);
  position: fixed; z-index: 55; bottom: 18px; left: max(14px, calc((100vw - var(--max)) / 2 - 300px)); width: 272px;
  color: #efe9dd; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease);
}
.sj.show { opacity: 1; transform: none; pointer-events: auto; }
.sj-now, .sj-list {
  background: var(--sj-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(239, 233, 221, .14); border-radius: 16px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7);
}
.sj-now { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 16px 14px; text-align: left; cursor: pointer; color: inherit; }
.sj-now b { font-size: 56px; line-height: .8; color: var(--c); flex: none; }
.sj-now > span { min-width: 0; flex: 1; }
.sj-now small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #9a9486; }
.sj-now strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sj-bar { display: block; height: 2px; margin-top: 9px; background: rgba(239, 233, 221, .18); position: relative; }
.sj-bar::after { content: ""; position: absolute; inset: 0; background: var(--c); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
.sj-list {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); padding: 8px; display: grid; gap: 2px; max-height: 62vh; overflow-y: auto;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.sj-list::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }   /* keeps hover alive across the gap */
.sj:hover .sj-list, .sj:focus-within .sj-list, .sj.open .sj-list { opacity: 1; transform: none; pointer-events: auto; }
.sj-list a { display: flex; align-items: baseline; gap: 14px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: #a9a396; font-size: 14.5px; font-weight: 500; line-height: 1.25; transition: background .2s, color .2s; }
.sj-list a span { font-size: 10.5px; letter-spacing: .1em; color: #7d776b; flex: none; }
.sj-list a:hover { color: #efe9dd; background: rgba(239, 233, 221, .07); }
.sj-list a.on { color: #efe9dd; background: color-mix(in srgb, var(--c) 17%, transparent); }
.sj-list a.on span { color: var(--c); }
@media (max-width: 700px) {
  .sj { left: 10px; bottom: 78px; width: 214px; }
  .sj-now { padding: 9px 12px 10px; gap: 10px; }
  .sj-now b { font-size: 38px; }
  .sj-now strong { font-size: 13px; }
  .sj-list { width: min(300px, calc(100vw - 20px)); right: auto; }
}
@media (hover: none) { .sj:hover .sj-list { opacity: 0; pointer-events: none; transform: translateY(8px); } .sj.open .sj-list { opacity: 1; pointer-events: auto; transform: none; } }
/* ============================================================
   v3.2 — case studies: every neutral (backgrounds, bars, cards, text) is tinted to the product, in both themes;
          the section jumper replaces the bottom bar and goes full width on tablet and phone
   ============================================================ */
body[data-case="rowm"]     { --bone-case: #e8f6f2; }
body[data-case="aviation"] { --bone-case: #e9eefb; }
body[data-case="onboard"]  { --bone-case: #f4ecfb; }
body[data-case="movee"]    { --bone-case: #faeeed; }

html:not([data-theme="light"]) body[data-case] {
  --bone: var(--bone-case); --text: var(--ink-case); --paper: var(--paper-case);
  --dim: color-mix(in srgb, var(--bone-case) 52%, var(--ink-case));
  --soft: color-mix(in srgb, var(--bone-case) 80%, var(--ink-case));
  --line-d: color-mix(in srgb, var(--bone-case) 16%, transparent);
  --glass: color-mix(in srgb, var(--ink2-case) 84%, transparent);
  --card: color-mix(in srgb, var(--ink2-case) 90%, var(--a-bright));
  --quote: color-mix(in srgb, var(--ink2-case) 93%, transparent);
}
[data-theme="light"] body[data-case] {
  --ink: color-mix(in srgb, var(--paper-case) 93%, var(--a-deep)); --ink-2: color-mix(in srgb, var(--paper-case) 88%, var(--a-deep));
  --bone: var(--ink-case); --text: var(--ink-case); --paper: var(--paper-case);
  --dim: color-mix(in srgb, var(--ink-case) 58%, var(--paper-case));
  --soft: color-mix(in srgb, var(--ink-case) 78%, var(--paper-case));
  --line-d: color-mix(in srgb, var(--ink-case) 16%, transparent);
  --glass: color-mix(in srgb, var(--paper-case) 86%, transparent);
  --card: color-mix(in srgb, var(--paper-case) 86%, var(--a-deep));
  --quote: color-mix(in srgb, var(--paper-case) 95%, transparent);
}
body[data-case] .lightbox, body[data-case] .next { --ink: var(--ink-case); --ink-2: var(--ink2-case); --bone: var(--bone-case); --dim: color-mix(in srgb, var(--bone-case) 52%, var(--ink-case)); }
body[data-case] .lightbox { background: color-mix(in srgb, var(--ink-case) 95%, transparent); }

body[data-case] .case-body { --text: var(--ink-case); --line-l: color-mix(in srgb, var(--ink-case) 14%, transparent); color: var(--ink-case); }
body[data-case] .case-body .prose { color: color-mix(in srgb, var(--ink-case) 82%, var(--paper-case)); }
body[data-case] .case-body .prose strong, body[data-case] .case-body .pull, body[data-case] .case-body .stat, body[data-case] .case-body .stat-row b { color: var(--ink-case); }
body[data-case] .case-body .fig figcaption, body[data-case] .case-body .stat > span, body[data-case] .case-body .stat-row span { color: color-mix(in srgb, var(--ink-case) 60%, var(--paper-case)); }
body[data-case] .case-body .stat-row > div { background: color-mix(in srgb, var(--paper-case) 45%, #fff); border-color: color-mix(in srgb, var(--a-deep) 22%, transparent); }
body[data-case] .case-body .fig-frame { background: color-mix(in srgb, var(--a-deep) 9%, var(--paper-case)); }
body[data-case] .case-body .fig-frame::after { background: var(--ink-case); color: var(--bone-case); }
body[data-case] .dock .cta img { background: color-mix(in srgb, var(--a-bright) 30%, var(--bone-case)); }

/* the jumper takes the place of the bottom bar inside a case study */
body[data-case] .dock { display: none; }
body[data-case] .site-footer { padding-bottom: 110px; }
.sj { color: var(--bone-case, #efe9dd); }
.sj-now, .sj-list { border-color: color-mix(in srgb, var(--bone-case, #efe9dd) 16%, transparent); }
.sj-now small { color: color-mix(in srgb, var(--bone-case, #efe9dd) 58%, var(--ink-case, #181613)); }
.sj-bar { background: color-mix(in srgb, var(--bone-case, #efe9dd) 18%, transparent); }
.sj-list a { color: color-mix(in srgb, var(--bone-case, #efe9dd) 66%, var(--ink-case, #181613)); }
.sj-list a span { color: color-mix(in srgb, var(--bone-case, #efe9dd) 46%, var(--ink-case, #181613)); }
.sj-list a:hover, .sj-list a.on { color: var(--bone-case, #efe9dd); }
.sj-list a:hover { background: color-mix(in srgb, var(--bone-case, #efe9dd) 8%, transparent); }
.sj-chev { flex: none; width: 9px; height: 9px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: translateY(2px) rotate(45deg); opacity: .6; transition: transform .3s var(--ease); }
.sj.open .sj-chev { transform: translateY(-3px) rotate(225deg); }

@media (max-width: 980px) {
  .sj { left: 10px; right: 10px; bottom: 12px; width: auto; }
  .sj-now { padding: 10px 16px 12px; }
  .sj-now b { font-size: 44px; }
  .sj-list { width: auto; right: 0; max-height: 58vh; }
  /* opens on tap only; a dimmed backdrop makes it easy to close */
  .sj:hover .sj-list, .sj:focus-within .sj-list { opacity: 0; transform: translateY(8px); pointer-events: none; }
  .sj.open .sj-list { opacity: 1; transform: none; pointer-events: auto; }
  .sj.open::before { content: ""; position: fixed; inset: 0; z-index: -1; background: color-mix(in srgb, var(--ink-case, #0f0e0c) 55%, transparent); }
}
/* v3.3 — jumper list: no stray scrollbar; the gap to the card is part of the list so hover never drops */
.sj-list::after { display: none; }
.sj-list { bottom: 100%; border-bottom: 8px solid transparent; background-clip: padding-box; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--bone-case, #efe9dd) 30%, transparent) transparent; }
/* v3.4 — figures that sit on a dark stage keep it (the tinted frame colour no longer overrides them); stronger aviation blue */
body[data-case] .case-body .flow-shot .fig-frame { background: none; }
body[data-case] .case-body .fig--phone .fig-frame, body[data-case] .case-body .fig--device .fig-frame { background: var(--ink2-case); }
body[data-case] .flow-stage { background: var(--ink2-case); color: var(--bone-case); }
body[data-case] .flow-shot p { color: color-mix(in srgb, var(--bone-case) 82%, var(--ink-case)); }
body[data-case] .flow-shot p b { color: var(--a-bright); }
body[data-case="aviation"] { --a-bright: #5b93ff; --a-deep: #2450b5; --band: #2148a8; --on-band: #eef3ff; --ink-case: #0a1330; --ink2-case: #101c44; --paper-case: #f2f5fc; --bone-case: #e8eeff; }