/* Shama Hina portfolio. Tokens: see DESIGN.md */
:root {
  --stage: #0a0a0f;
  --chalk: #f3f2f7;
  --chalk-2: rgba(243, 242, 247, 0.62);
  --chalk-3: rgba(243, 242, 247, 0.2);
  --line: rgba(243, 242, 247, 0.15);
  --iris: #8f7bff;
  --iris-deep: #4b32d6;
  --panel: #111118;
  --gutter: 30px;
  --ease-main: cubic-bezier(0.6, 0.01, 0.05, 1);
  --ease-gentle: cubic-bezier(0.38, 0.005, 0.215, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --z-pin: 5;
  --z-nav: 50;
  --z-cursor: 60;
  --z-modal: 70;
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--chalk);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, canvas, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-align: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--iris); color: var(--stage); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-weight: 300; font-variation-settings: "opsz" 96; letter-spacing: -0.035em; line-height: 0.9; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 20px; left: var(--gutter); right: var(--gutter);
  z-index: var(--z-nav);
  display: flex; justify-content: space-between; align-items: center;
  mix-blend-mode: difference; isolation: isolate;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
html.js.intro .nav { opacity: 0; filter: blur(16px); transform: translateY(-40px); }

.roll {
  display: inline-block; position: relative; overflow: hidden;
  height: 20px; line-height: 20px; font-size: 14px; letter-spacing: -0.03em; color: #fff;
  white-space: nowrap;
}
.roll .l { display: inline-block; position: relative; transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1); transition-delay: calc(var(--i) * 15ms); }
.roll .l::before { content: attr(data-l); position: absolute; top: 100%; left: 0; }
@media (hover: hover) {
  .roll:hover .l { transform: translateY(-100%); }
}

/* reading progress (case pages) */
.prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-nav); background: var(--iris); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------- cursor tag and glass lens ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none; transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0); }
.cur__tag {
  position: absolute; left: 14px; top: 16px; white-space: nowrap;
  padding: 5px 10px 6px; border-radius: 2px 12px 12px 12px;
  background: var(--iris); color: var(--stage); font-size: 12px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  transform: scale(var(--ts, 0)); transform-origin: left top;
}
.cur__glass {
  position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transform: scale(var(--gs, 0));
  color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.55), inset 0 -1px 1px rgba(255, 255, 255, 0.18), 0 10px 40px rgba(0, 0, 0, 0.35);
}
.cur__glass::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  -webkit-backdrop-filter: blur(3px) saturate(1.5) brightness(1.12);
  backdrop-filter: blur(3px) saturate(1.5) brightness(1.12);
  backdrop-filter: url(#liquid) blur(1.5px) saturate(1.5) brightness(1.12);
  background: rgba(255, 255, 255, 0.04);
}
.cur__glass::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 18%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%), radial-gradient(90% 90% at 72% 88%, rgba(143, 123, 255, 0.28), rgba(143, 123, 255, 0) 55%);
}
.cur__glass span { position: relative; z-index: 1; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
@media (hover: none) { .cur { display: none; } }

/* ---------- comment pin (signature device) ---------- */
.pin {
  position: absolute; z-index: var(--z-pin);
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 13px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 400;
  pointer-events: none;
}
.pin svg { flex: none; width: 18px; height: 18px; margin-top: -4px; }
.pin__b {
  background: var(--iris); color: var(--stage);
  padding: 8px 12px 9px; border-radius: 2px 14px 14px 14px;
  max-width: 220px; font-weight: 500;
}
.pin__b b { display: block; font-weight: 700; font-size: 11px; opacity: 0.7; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--chalk); }
.pre { position: absolute; top: 50%; left: 50%; width: 300px; height: 400px; margin: -200px 0 0 -150px; overflow: hidden; z-index: 1; }
.pre__img { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.pre__img img { width: 100%; height: 100%; object-fit: cover; }
html:not(.js) .pre, html.rm .pre { display: none; }

.stage {
  position: absolute; inset: 0; z-index: 2; background: var(--stage); overflow: hidden;
  clip-path: inset(var(--ct, 0px) var(--cr, 0px) var(--cb, 0px) var(--cl, 0px));
}
.hero__type {
  position: absolute; left: 0; right: 0; top: 66%;
  transform: translate3d(var(--tx, 0px), -50%, 0);
  text-align: center; white-space: nowrap; pointer-events: none;
  font-size: 18.4vw; line-height: 0.8; letter-spacing: -0.03em;
}
.hero__type--fill { z-index: 1; }
.hero__type--line { z-index: 3; filter: url(#outline); }
.hero__type .ch { display: inline-block; }
.hero__fig {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  height: 84%; aspect-ratio: 1400 / 1672;
  transform: translate3d(calc(-50% + var(--fx, 0px)), var(--fy, 0px), 0);
}
.hero__fig canvas, .hero__fig img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fig canvas { z-index: 1; }
.hero__note {
  position: absolute; top: 36%; width: 230px; z-index: 4;
  font-size: 14px; line-height: 1.3; color: var(--chalk-2);
}
.hero__note--l { left: var(--gutter); }
.hero__note--r { right: var(--gutter); text-align: right; }
.hero__geo {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; z-index: 4;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--chalk-2); font-variant-numeric: tabular-nums;
}
.hero .pin { left: calc(50% + 15vh); top: 20%; z-index: 4; }
html.js.intro .hero__fade { opacity: 0; filter: blur(20px); transform: translateY(40px); }
html.js.intro .hero__type .ch { opacity: 0; transform: translateY(0.35em); filter: blur(14px); }

@media (max-width: 760px) {
  .hero__type { font-size: 29vw; white-space: normal; top: 78%; line-height: 0.8; }
  .hero__type .w { display: block; }
  .hero__fig { height: 66%; }
  .hero__note { top: 76px; width: 42vw; font-size: 12px; }
  .hero .pin { left: auto; right: var(--gutter); top: 24%; }
  .hero .pin .pin__b { max-width: 150px; }
  .hero__geo { font-size: 11px; }
}

/* ---------- about (spotlight) ---------- */
.about { position: relative; padding: 160px var(--gutter); }
.spot {
  font-weight: 500; font-size: clamp(28px, 4.5vw, 86px); line-height: 1.1; letter-spacing: -0.045em;
  text-wrap: pretty;
  color: var(--chalk-3);
  background: radial-gradient(var(--r, 320px) circle at var(--x, -999px) var(--y, -999px),
    rgba(243, 242, 247, calc(var(--o, 0) * 1)) 0%,
    rgba(243, 242, 247, calc(var(--o, 0) * 0.6)) 20%,
    rgba(243, 242, 247, calc(var(--o, 0) * 0.3)) 40%,
    rgba(243, 242, 247, calc(var(--o, 0) * 0.1)) 60%,
    transparent 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: currentColor;
}
.spot__indent { display: inline-block; width: 14vw; }
html:not(.js) .spot { color: var(--chalk); }
@media (max-width: 760px) {
  .about { padding: 96px var(--gutter) 104px; }
  .spot__indent { width: 16vw; }
}

/* ---------- thinking: project cards leave the centre in mirrored pairs ---------- */
.fly {
  position: relative; height: 100vh; height: 100svh; width: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px; background: var(--stage);
}
.fly__text {
  position: relative; z-index: 3; text-align: center; pointer-events: none;
  font-size: clamp(22px, 2.6vw, 52px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 400;
}
.fly__text span { display: block; }
.fly__text small { display: block; margin-top: 18px; font-size: 13px; letter-spacing: -0.01em; color: var(--chalk-2); }
.fly__card {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 30vw; margin: -9.2vw 0 0 -15vw;
  opacity: 0; will-change: transform, opacity; backface-visibility: hidden;
}
.fly__card img { width: 100%; aspect-ratio: 3240 / 1992; object-fit: cover; border-radius: 12px; background: var(--panel); }
.fly__card span { display: block; margin-top: 8px; font-size: 13px; color: var(--chalk-2); letter-spacing: -0.01em; }
html.rm .fly { height: auto; display: block; padding: 96px var(--gutter); }
html.rm .fly__card { position: static; width: auto; margin: 0; opacity: 1; }
html.rm #flyCards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
@media (max-width: 760px) {
  .fly__text { font-size: 6.4vw; }
  .fly__card { width: 58vw; margin: -17.8vw 0 0 -29vw; }
  .fly__card span { font-size: 12px; }
}

/* ---------- marquee ---------- */
.mq { overflow: hidden; background: var(--stage); padding-top: 4vw; }
.mq__row {
  display: inline-flex; align-items: center; white-space: nowrap; will-change: transform;
  font-size: 34.2vw; font-weight: 300; font-variation-settings: "opsz" 96; line-height: 0.8; letter-spacing: -0.05em;
}
.mq__row--dim { opacity: 0.2; }
.mq__row i { display: inline-block; width: 15.6vw; height: 5px; background: currentColor; margin: 0 4vw; }

/* ---------- label row ---------- */
.lab {
  display: flex; align-items: flex-end; padding: 32px var(--gutter);
  font-size: 12px; color: var(--chalk-2);
}
.lab > span { flex: 1; }
.lab > span:last-child { text-align: right; }
.lab > p {
  max-width: 420px; text-align: center; text-wrap: balance;
  font-size: 24px; line-height: 1.05; letter-spacing: -0.045em; color: var(--chalk-2);
}
@media (max-width: 760px) {
  .lab { flex-wrap: wrap; row-gap: 20px; }
  .lab > p { order: -1; flex: 0 0 100%; max-width: none; text-align: left; font-size: 22px; }
}

/* ---------- experience ---------- */
.exp { padding-top: 120px; }
.xrow {
  position: relative; display: flex; align-items: center; overflow: hidden;
  height: 150px; padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 20px; letter-spacing: -0.03em;
}
.xrow:last-child { border-bottom: 1px solid var(--line); }
.xrow > span { flex: 1; }
.xrow > span:last-of-type { text-align: right; }
.xrow > strong { font-size: clamp(40px, 7.6vw, 112px); white-space: nowrap; }
.xrow__band {
  position: absolute; inset: 0; background: var(--chalk); color: var(--stage); overflow: hidden;
  clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
  transition: clip-path 0.4s cubic-bezier(0.1, 0.5, 0.5, 1);
  display: flex; align-items: center;
}
.xrow__lift { display: flex; flex: none; transform: translateY(40px); transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1); }
.xrow__track {
  display: flex; align-items: center; gap: 56px; flex: none; padding-right: 56px;
  animation: mq 70s linear infinite; white-space: nowrap;
  font-size: 44px; font-weight: 600; letter-spacing: -0.05em;
}
.xrow__track img, .xrow__track u { flex: none; width: 240px; height: 100px; border-radius: 999px; object-fit: cover; background-color: var(--stage); }
.xrow__track u { text-decoration: none; background-image: radial-gradient(var(--iris) 34%, transparent 36%); background-size: 20px 20px; background-position: 4px 4px; }
.xrow__track small { font-size: 20px; font-weight: 400; letter-spacing: -0.03em; }
@keyframes mq { to { transform: translate(-50%, 0); } }
@media (hover: hover) {
  .xrow:hover .xrow__band { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .xrow:hover .xrow__lift { transform: none; }
}
@media (max-width: 760px) {
  .exp { padding-top: 72px; }
  .xrow { height: auto; flex-wrap: wrap; padding: 24px var(--gutter) 28px; font-size: 15px; color: var(--chalk-2); }
  .xrow > strong { order: -1; flex: 0 0 100%; font-size: 15vw; color: var(--chalk); margin-bottom: 12px; }
  .xrow__band { display: none; }
}

/* ---------- case slider (WebGL) ---------- */
.cases { position: relative; height: 900vh; }
.cases__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%; overflow: hidden;
  transform: scale(var(--s, 1)); border-radius: var(--rad, 0px); background: var(--panel);
}
.cases canvas { width: 100%; height: 100%; }
@media (hover: hover) { .cases canvas { cursor: none; } }
.cases__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cases__cap {
  position: absolute; left: 60px; right: 60px; bottom: 64px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  pointer-events: none; text-shadow: 0 1px 24px rgba(0, 0, 0, 0.55);
}
.cases__cap h3 { font-size: clamp(32px, 5vw, 80px); font-weight: 300; letter-spacing: -0.035em; font-variation-settings: "opsz" 96; line-height: 0.95; }
.cases__cap p { font-size: 14px; color: rgba(255, 255, 255, 0.8); margin-top: 10px; }
.cases__cap a {
  pointer-events: auto; flex: none;
  font-size: 14px; padding: 12px 18px 13px; border-radius: 999px; background: var(--chalk); color: var(--stage); font-weight: 600;
  text-shadow: none; transition: background 0.3s, transform 0.4s var(--ease-out);
}
@media (hover: hover) { .cases__cap a:hover { background: var(--iris); transform: translateY(-2px); } }
.cases__bars { position: absolute; left: 60px; right: 60px; bottom: 40px; display: flex; gap: 12px; z-index: 2; }
.cases__bars i { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.cases__bars b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
@media (max-width: 760px) {
  .cases { height: 680vh; }
  .cases__cap { left: 20px; right: 20px; bottom: 44px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .cases__sticky::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(rgba(10, 10, 15, 0), rgba(10, 10, 15, 0.9) 58%); pointer-events: none; z-index: 1; }
  .cases__bars { left: 20px; right: 20px; bottom: 24px; gap: 8px; }
}

/* ---------- contact ---------- */
.contact { position: relative; height: 100vh; min-height: 620px; overflow: hidden; background: var(--stage); }
.contact__in { position: relative; height: 100%; }
.contact__hi {
  --hi: min(92vh, 50vw);
  position: absolute; left: var(--gutter); bottom: -0.06em;
  font-size: var(--hi); line-height: 0.8; color: var(--iris);
  font-weight: 300; font-variation-settings: "opsz" 96; letter-spacing: -0.05em;
}
.contact__hi .ch { display: inline-block; }
.contact__face {
  position: absolute; left: 62%; top: -4%; width: 0.3em; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--panel);
  box-shadow: 0 0 0 6px var(--stage);
}
.contact__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.5); transform-origin: 50% 34%; }
.contact__body {
  position: absolute; right: var(--gutter); bottom: 30px; height: 66vh; width: 30vw; min-width: 420px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
}
.contact__body h2 { max-width: 360px; font-size: 32px; font-weight: 400; line-height: 1; letter-spacing: -0.05em; text-wrap: balance; }
.contact__body small { display: block; font-size: 12px; color: var(--chalk-2); }
.contact__mail { font-size: 20px; letter-spacing: -0.04em; height: 28px; line-height: 28px; }
.contact__links { display: flex; justify-content: space-between; gap: 20px; width: 100%; margin-top: 10vh; }
.contact .pin { left: calc(62% + var(--hi) * 0.31); top: 3%; width: 250px; letter-spacing: -0.01em; font-variation-settings: normal; }
@media (max-width: 760px) {
  .contact { height: auto; min-height: 0; padding: 96px var(--gutter) 28px; }
  .contact__in { transform: none !important; display: flex; flex-direction: column; gap: 56px; }
  .contact__hi { --hi: 58vw; position: relative; left: 0; bottom: 0; order: 2; margin-bottom: -0.12em; }
  .contact__body { position: static; height: auto; width: auto; min-width: 0; gap: 48px; order: 1; }
  .contact__links { margin-top: 32px; }
  .contact .pin { left: 30%; top: 40%; width: 170px; font-size: 12px; }
  .contact__face { left: 58%; top: 2%; }
}

/* ---------- case study pages ---------- */
.cs { padding-top: 120px; }
.cs__top { padding: 0 var(--gutter); }
.cs__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cs__tags li { font-size: 13px; padding: 5px 12px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--chalk-2); }
.cs__title { font-size: clamp(52px, 12.2vw, 220px); line-height: 0.86; margin-left: -0.04em; text-wrap: balance; }
.cs__dek { margin-top: 28px; max-width: 28ch; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.05; letter-spacing: -0.045em; color: var(--chalk-2); text-wrap: balance; }
.cs__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); }
.cs__meta dt { font-size: 12px; color: var(--chalk-2); }
.cs__meta dd { font-size: 20px; letter-spacing: -0.03em; margin-top: 4px; }
.cs__cover { margin: 72px 0 0; overflow: hidden; transform: scale(var(--s, 1)); border-radius: var(--rad, 0px); transform-origin: center top; background: var(--panel); }
.cs__cover img { width: 100%; height: auto; }

.blk { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; padding: 120px var(--gutter) 0; }
.blk > h2 { font-size: 14px; font-weight: 400; color: var(--chalk-2); letter-spacing: -0.02em; }
.blk > div > p { font-size: clamp(22px, 2.5vw, 40px); line-height: 1.12; letter-spacing: -0.04em; max-width: 30ch; text-wrap: pretty; }
.blk > div > p + p { margin-top: 0.8em; }
.blk > div > p.sm { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; color: var(--chalk-2); max-width: 56ch; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 96px var(--gutter) 0; }
.facts li { border-top: 1px solid var(--line); padding-top: 16px; }
.facts b { display: block; font-size: clamp(44px, 6.4vw, 104px); font-weight: 300; letter-spacing: -0.04em; line-height: 0.95; font-variation-settings: "opsz" 96; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 10px; font-size: 14px; color: var(--chalk-2); max-width: 22ch; line-height: 1.35; }

/* process: a path that draws itself, nine stops */
.proc { margin: 0 var(--gutter); padding-top: 120px; }
.proc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 8px; }
.proc__head h2 { font-size: 14px; font-weight: 400; color: var(--chalk-2); }
.proc__head p { font-size: 14px; color: var(--chalk-2); text-align: right; }
.proc__head p b { color: var(--chalk); font-weight: 500; }
.proc__map { position: relative; height: 300px; }
.proc__map svg { position: absolute; inset: 40px 0 auto; width: 100%; height: 220px; overflow: visible; }
.proc__map path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.proc__base { stroke: var(--line); }
.proc__draw { stroke: var(--iris); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 1)); }
.proc__map ol { position: absolute; inset: 40px 0 auto; height: 220px; }
.proc__map li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.proc__map li i {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--stage); box-shadow: inset 0 0 0 1.5px var(--chalk-3); transition: background 0.4s, box-shadow 0.4s, transform 0.5s var(--ease-out);
}
.proc__map li span {
  position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap;
  font-size: 15px; letter-spacing: -0.02em; color: var(--chalk-3); transition: color 0.4s;
}
.proc__map li:nth-child(odd) span { bottom: 18px; }
.proc__map li:nth-child(even) span { top: 18px; }
.proc__map li.on i { background: var(--iris); box-shadow: inset 0 0 0 1.5px var(--iris), 0 0 0 6px rgba(143, 123, 255, 0.18); transform: scale(1.15); }
.proc__map li.on span { color: var(--chalk); }
html:not(.js) .proc__map li span { color: var(--chalk); }

.shot { margin: 120px var(--gutter) 0; }
.shot img { width: 100%; height: auto; border-radius: 20px; background: var(--panel); }
.shot figcaption, .cmp figcaption { margin-top: 12px; font-size: 13px; color: var(--chalk-2); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px var(--gutter) 0; }
.duo img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.shot--narrow { max-width: 760px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.shot + .duo, .duo + .shot { margin-top: 20px; }
.rise { display: block; overflow: hidden; border-radius: 20px; }
.rise img { border-radius: 0; transform: scale(var(--zs, 1)); transform-origin: center; will-change: transform; }

.cmp { margin: 120px var(--gutter) 0; }
.cmp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.cmp__head h3 { font-size: clamp(28px, 3.4vw, 56px); font-weight: 300; letter-spacing: -0.035em; line-height: 1; font-variation-settings: "opsz" 96; }
.cmp__head span { font-size: 13px; color: var(--chalk-2); text-align: right; }
.cmp__box { position: relative; max-width: 1180px; overflow: hidden; border-radius: 20px; background: #fff; touch-action: pan-y; user-select: none; --p: 50%; }
.cmp__box img { width: 100%; height: auto; pointer-events: none; }
.cmp__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); background: #fff; }
.cmp__before img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.cmp__bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: var(--iris); }
.cmp__bar::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--iris) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform 0.4s var(--ease-out);
}
.cmp__box:active .cmp__bar::after { transform: scale(0.86); }
.cmp__tag { position: absolute; top: 14px; padding: 5px 10px 6px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--stage); color: var(--chalk); }
.cmp__tag--b { left: 14px; }
.cmp__tag--a { right: 14px; background: var(--iris); color: var(--stage); }
.cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

.side { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: 20px; align-items: start; }
.side figure { position: relative; }
.side img { width: 100%; height: auto; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.side .cmp__tag { top: auto; bottom: 10px; left: 10px; right: auto; }

/* annotated screen: numbered pins tied to the list beside it */
.hot { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; margin: 40px 0 0; max-width: 1380px; }
.hot--tall { grid-template-columns: minmax(0, 520px) 1fr; }
.hot__img { position: relative; border-radius: 20px; overflow: hidden; background: #fff; }
.hot__img img { width: 100%; height: auto; }
.hot__pin {
  position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: var(--iris); color: var(--stage); font-size: 13px; font-weight: 700; letter-spacing: 0; text-align: center; line-height: 30px;
  box-shadow: 0 0 0 0 rgba(143, 123, 255, 0.55); animation: ping 2.6s var(--ease-out) infinite; animation-delay: calc(var(--i) * 0.22s);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.hot__pin.on { transform: scale(1.35); background: var(--stage); color: var(--chalk); animation: none; box-shadow: 0 0 0 2px var(--iris); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(143, 123, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(143, 123, 255, 0); } }
.hot__list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 14px 0 16px; border-top: 1px solid var(--line); cursor: default; transition: padding 0.4s var(--ease-out); }
.hot__list li:last-child { border-bottom: 1px solid var(--line); }
.hot__list b { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; text-align: center; line-height: 26px; letter-spacing: 0; transition: background 0.3s, color 0.3s; }
.hot__list h4 { font-size: 18px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.hot__list p { font-size: 14px; line-height: 1.45; color: var(--chalk-2); margin-top: 4px; }
.hot__list li.on { padding-left: 10px; }
.hot__list li.on b { background: var(--iris); color: var(--stage); box-shadow: none; }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; margin-top: 40px; }
.feats li { padding: 16px 0 24px; border-top: 1px solid var(--line); }
.feats h4 { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; margin: 0 0 6px; }
.feats p { font-size: 15px; line-height: 1.45; color: var(--chalk-2); max-width: 40ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { font-size: 14px; padding: 7px 14px 8px; border: 1px solid var(--line); border-radius: 999px; }
.note { margin-top: 12px; font-size: 13px; color: var(--chalk-2); }

/* who uses it: one hub, three spokes */
.hub { margin: 120px var(--gutter) 0; }
.hub__c { width: fit-content; margin: 0 auto; padding: 12px 22px 13px; border-radius: 999px; background: var(--iris); color: var(--stage); font-size: 18px; font-weight: 600; letter-spacing: -0.03em; position: relative; z-index: 1; }
.hub__s { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; padding-top: 64px; }
.hub__s::before { content: ""; position: absolute; top: 0; left: 50%; height: 32px; width: 1px; background: var(--line); }
.hub__s::after { content: ""; position: absolute; top: 32px; left: 16.66%; right: 16.66%; height: 1px; background: var(--line); }
.hub__s li { position: relative; padding: 20px 20px 24px; border: 1px solid var(--line); border-radius: 16px; }
.hub__s li::before { content: ""; position: absolute; top: -33px; left: 50%; height: 32px; width: 1px; background: var(--line); }
.hub__s h4 { font-size: 22px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.hub__s p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--chalk-2); }

.sys { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sys__face { font-size: clamp(40px, 6vw, 96px); font-weight: 300; letter-spacing: -0.035em; line-height: 1; font-variation-settings: "opsz" 96; }
.sys__face + p { margin-top: 12px; font-size: 15px; color: var(--chalk-2); }
.sw { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.sw button { display: block; font-size: 13px; color: var(--chalk-2); }
.sw i { display: block; width: 72px; height: 72px; border-radius: 50%; margin-bottom: 10px; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.5s var(--ease-out); }
.sw b { display: block; font-weight: 400; color: var(--chalk); font-size: 14px; }
@media (hover: hover) { .sw button:hover i { transform: scale(1.1); } }

.next { display: block; margin-top: 160px; padding: 40px var(--gutter) 56px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.next small { font-size: 12px; color: var(--chalk-2); }
.next strong { display: block; font-size: clamp(48px, 10.4vw, 180px); line-height: 0.9; margin-top: 12px; }
.next img { position: absolute; right: var(--gutter); top: 40px; width: 24vw; border-radius: 14px; transition: transform 0.8s var(--ease-gentle); }
@media (hover: hover) { .next:hover img { transform: scale(1.06) rotate(-2deg); } }

.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px var(--gutter) 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--chalk-2); }
.foot a { color: var(--chalk); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: var(--z-modal); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 9px 16px 10px; border-radius: 999px; background: var(--chalk); color: var(--stage); font-size: 13px; font-weight: 600;
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .cs { padding-top: 96px; }
  .cs__meta { grid-template-columns: 1fr 1fr; margin-top: 48px; row-gap: 24px; }
  .cs__meta dd { font-size: 17px; }
  .cs__cover { margin-top: 48px; }
  .blk { grid-template-columns: 1fr; padding-top: 80px; gap: 16px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 64px; row-gap: 32px; }
  .proc { padding-top: 80px; }
  .proc__head { flex-direction: column; gap: 4px; margin-bottom: 24px; }
  .proc__head p { text-align: left; }
  .proc__map { height: auto; }
  .proc__map svg { display: none; }
  .proc__map ol { position: relative; inset: auto; height: auto; border-left: 1.5px solid var(--line); margin-left: 7px; }
  .proc__map li { position: relative; left: auto; top: auto; width: auto; height: auto; padding: 0 0 22px 24px; }
  .proc__map li:last-child { padding-bottom: 0; }
  .proc__map li i { left: -8px; top: 5px; }
  .proc__map li span, .proc__map li:nth-child(odd) span, .proc__map li:nth-child(even) span { position: static; transform: none; font-size: 17px; }
  .shot, .cmp, .hub { margin-top: 72px; }
  .shot img, .duo img, .cmp__box, .rise, .hot__img { border-radius: 12px; }
  .rise img { border-radius: 0; }
  .duo { grid-template-columns: 1fr; }
  .cmp__head { flex-direction: column; gap: 6px; }
  .cmp__head span { text-align: left; }
  .side { grid-template-columns: 1fr 1fr; }
  .side--stack { grid-template-columns: 1fr; }
  .hot { grid-template-columns: 1fr; gap: 24px; }
  .hot__pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; line-height: 24px; font-size: 11px; }
  .hub__s { grid-template-columns: 1fr; padding-top: 32px; gap: 12px; }
  .hub__s::after, .hub__s li::before { display: none; }
  .sys { grid-template-columns: 1fr; gap: 40px; }
  .next { margin-top: 96px; }
  .next img { position: static; width: 100%; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .xrow__track, .hot__pin { animation: none; }
  .roll .l, .xrow__band, .xrow__lift { transition: none; }
}

/* ---------- phones, reels and the pieces built on them ---------- */
.phw { margin: 0; position: relative; }
.phw figcaption { margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--chalk-2); max-width: 30ch; }
.phw figcaption b { display: block; color: var(--chalk); font-weight: 500; font-size: 16px; letter-spacing: -0.02em; }
.ph { position: relative; width: 100%; aspect-ratio: 430 / 932; container-type: inline-size; }
.ph::before { content: ""; position: absolute; inset: 0; border-radius: 38px; border-radius: 14.5cqw; background: #16161c; box-shadow: inset 0 0 0 1px rgba(243, 242, 247, 0.16), 0 30px 80px rgba(0, 0, 0, 0.55); }
.ph__s { position: absolute; inset: 7px; inset: 2.8cqw; border-radius: 32px; border-radius: 11.8cqw; overflow: hidden; background: #fff; }
.ph__s video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph__s img { width: 100%; height: auto; transform: translate3d(0, var(--ty, 0px), 0); will-change: transform; }
html.rm .ph[data-tall] .ph__s { overflow-y: auto; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 72px; margin: 160px var(--gutter) 0; align-items: start; }
.split__txt { position: sticky; top: 110px; padding-bottom: 40px; }
.split__txt .k { font-size: 14px; color: var(--iris); }
.split__txt h3 { margin-top: 10px; font-size: clamp(32px, 4.2vw, 68px); font-weight: 300; letter-spacing: -0.035em; line-height: 0.98; font-variation-settings: "opsz" 96; text-wrap: balance; }
.split__txt p { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--chalk-2); max-width: 46ch; }
.ticks { margin-top: 28px; max-width: 460px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0 13px; border-top: 1px solid var(--line); font-size: 17px; letter-spacing: -0.02em; }
.ticks li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--iris); transform: translateY(-2px); }
.split__ph { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 28px; }
.split__ph .phw { width: 100%; max-width: 300px; justify-self: center; }
.split__ph .phw:nth-child(even) { margin-top: 120px; }

.reel { margin-top: 160px; }
.reel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 0 var(--gutter); margin-bottom: 36px; }
.reel__head h3 { font-size: clamp(28px, 3.4vw, 56px); font-weight: 300; letter-spacing: -0.035em; line-height: 1; font-variation-settings: "opsz" 96; }
.reel__head span { font-size: 13px; color: var(--chalk-2); text-align: right; }
.reel__view { overflow: hidden; }
.reel__track { display: flex; gap: clamp(20px, 2.6vw, 44px); padding: 0 var(--gutter); width: max-content; will-change: transform; counter-reset: r; }
.reel__item { flex: none; width: clamp(190px, min(20vw, 27vh), 290px); counter-increment: r; }
.reel__item figcaption b::before { content: counter(r); color: var(--iris); margin-right: 10px; font-variant-numeric: tabular-nums; }

.strip { margin-top: 120px; }
.strip__lab { padding: 0 var(--gutter); margin-bottom: 20px; font-size: 14px; color: var(--chalk-2); }
.strip__mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip__track { display: flex; width: max-content; animation: mq 70s linear infinite; }
.strip__item { flex: none; width: clamp(120px, 12vw, 170px); margin-right: 20px; filter: saturate(0.85); }

.ba { margin: 96px var(--gutter) 0; }
.ba__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 20px; margin-top: 56px; }
.ba__pair > figcaption { margin-top: 20px; font-size: 15px; color: var(--chalk-2); text-align: center; }
.ba__ph { display: flex; justify-content: center; align-items: flex-end; }
.ba__ph .phw { flex: none; transition: transform 1s var(--ease-out); }
.ba__ph .cmp__tag { top: -14px; left: 50%; right: auto; transform: translateX(-50%); z-index: 2; }
.ph--old { width: 40%; transform: translateX(22%) rotate(-2deg); transform-origin: bottom center; filter: saturate(0.75) brightness(0.82); }
.ph--new { width: 50%; transform: translateX(-12%) rotate(1deg); transform-origin: bottom center; z-index: 1; }
.ba__pair.in .ph--old { transform: translateX(4%) rotate(-6deg); }
.ba__pair.in .ph--new { transform: translateX(-2%) rotate(3deg); }

.shift { padding: 180px var(--gutter) 40px; text-align: center; }
.shift small { font-size: 14px; color: var(--chalk-2); }
.shift__a { margin-top: 28px; font-size: clamp(24px, 3vw, 48px); letter-spacing: -0.04em; color: var(--chalk-2); }
.shift__a span { position: relative; display: inline-block; }
.shift__a span::after { content: ""; position: absolute; left: -4%; right: -4%; top: 54%; height: 2px; background: var(--iris); transform: scaleX(var(--p, 1)); transform-origin: left; }
.shift__b { margin: 28px auto 0; max-width: 17ch; font-size: clamp(40px, 7.6vw, 136px); line-height: 0.95; text-wrap: balance; }
.shift__b .wd { opacity: var(--o, 1); transition: opacity 0.3s; }

.loop { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin-top: 32px; }
.loop::before { content: ""; position: absolute; inset: 26%; border: 1px solid var(--line); border-radius: 50%; }
.loop__orb { position: absolute; inset: 26%; animation: spin 9s linear infinite; }
.loop__orb i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 6px rgba(143, 123, 255, 0.18); }
@keyframes spin { to { transform: rotate(360deg); } }
.loop ol { position: absolute; inset: 0; counter-reset: l; }
.loop li { position: absolute; width: 40%; font-size: 15px; line-height: 1.25; text-align: center; counter-increment: l; }
.loop li::before { content: counter(l); display: block; color: var(--iris); font-size: 12px; margin-bottom: 2px; }
.loop li:nth-child(1) { top: 8%; left: 30%; }
.loop li:nth-child(2) { top: 43%; left: 77%; width: 23%; text-align: left; }
.loop li:nth-child(3) { bottom: 8%; left: 30%; }
.loop li:nth-child(4) { top: 43%; right: 77%; width: 23%; text-align: right; }

.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.quad .phw { max-width: 300px; }

@media (max-width: 760px) {
  .xrow > strong { font-size: 13vw; }
  .split { grid-template-columns: 1fr; margin-top: 96px; }
  .split__txt { position: static; padding-bottom: 16px; }
  .split__ph { gap: 24px 14px; }
  .split__ph .phw:nth-child(even) { margin-top: 48px; }
  .reel { margin-top: 96px; }
  .reel__head { flex-direction: column; gap: 6px; margin-bottom: 24px; }
  .reel__head span { text-align: left; }
  .reel__view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .reel__view::-webkit-scrollbar { display: none; }
  .reel__item { width: 62vw; scroll-snap-align: center; }
  .strip { margin-top: 72px; }
  .strip__item { width: 28vw; margin-right: 12px; }
  .ba { margin-top: 64px; }
  .ba__row { grid-template-columns: 1fr; gap: 56px; }
  .shift { padding-top: 112px; }
  .loop { margin-inline: auto; }
  .quad { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .strip__track, .loop__orb { animation: none; }
  .ba__ph .phw { transition: none; }
}

/* Brand work: colour bands, a logo band and an identity row */
.pal { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); border-radius: 20px; overflow: hidden; margin-top: 40px; }
.pal__c { display: flex; flex-direction: column; min-height: 440px; padding: 28px 28px 0; background: var(--c); color: var(--ink); }
.pal__c h4 { font-size: clamp(26px, 3vw, 48px); font-weight: 300; letter-spacing: -0.035em; line-height: 1; font-variation-settings: "opsz" 96; }
.pal__c p { margin-top: 12px; max-width: 30ch; font-size: 14px; line-height: 1.45; opacity: 0.86; }
.pal__c button { align-self: flex-start; margin: 20px 0 28px; padding: 7px 14px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 14px; font-variant-numeric: tabular-nums; transition: background 0.3s, color 0.3s; }
@media (hover: hover) { .pal__c button:hover { background: var(--ink); color: var(--c); } }
.pal__t { display: flex; flex-direction: column; margin: auto -28px 0; }
.pal__t i { display: flex; align-items: center; height: 46px; padding: 0 28px; background: var(--t); font-style: normal; font-size: 12px; color: #2b0018; }
.pal--flat .pal__c { min-height: 220px; padding: 20px 20px 0; }
.pal--flat .pal__c h4 { font-size: clamp(18px, 1.7vw, 26px); }
.pal--flat .pal__c button { margin-top: auto; margin-bottom: 20px; font-size: 13px; padding: 5px 11px 6px; }
.brandband { margin-top: 40px; }
.brandband img { display: block; width: 100%; height: auto; border-radius: 20px; }
.cmp--lead + .shot { margin-top: 40px; }
.idn { display: grid; grid-template-columns: minmax(220px, 0.42fr) 1fr; gap: 20px; margin-top: 40px; align-items: start; }
.idn figure img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.idn .pal { margin-top: 0; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .pal { grid-template-columns: 1fr; border-radius: 12px; }
  .pal__c { min-height: 0; padding: 22px 20px 0; }
  .pal__t { margin: 0 -20px; } .pal__t i { padding: 0 20px; height: 40px; }
  .pal--flat { grid-template-columns: 1fr 1fr; } .pal--flat .pal__c { min-height: 150px; padding: 16px 16px 0; }
  .brandband img, .idn figure img { border-radius: 12px; }
  .idn { grid-template-columns: 1fr; } .idn .pal { grid-template-columns: 1fr 1fr; }
}

/* Resume: one click, straight to the Downloads folder */
.contact__cv { display: flex; width: fit-content; align-items: center; margin-top: 22px; padding: 10px 18px 11px; border-radius: 999px; background: var(--chalk); color: var(--stage); font-size: 15px; letter-spacing: -0.02em; transition: background 0.3s, transform 0.4s var(--ease-out); }
@media (hover: hover) { .contact__cv:hover { background: var(--iris); transform: translateY(-2px); } }
.contact__cv:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; }
