﻿/* Anand Krishna, portfolio */

@view-transition { navigation: auto; }
/* The shared project title glides between pages; the rest crossfades quietly. */
::view-transition-group(*) { animation-duration: 650ms; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 320ms; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; } }

:root {
  --ink: #000;
  --paper: #EFEFEB;
  --white: #FFF;
  --accent: #2B2BFF;
  --orange: #FF6831;
  --green: #A7FF9C;
  --pad: 24px;
  --gap: 24px;
  --font: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Themes set every semantic colour, so nested sections never inherit the wrong one. */
.t-paper, .t-white, .t-orange, .t-green { --fg: #000; --mute: #6B6B67; --line: #D4D4CF; --slot: #DEDED9; --cap: #55554F; color: var(--fg); }
.t-paper { --bg: var(--paper); background: var(--bg); }
.t-white { --bg: var(--white); background: var(--bg); }
.t-orange { --bg: var(--orange); --mute: #000; background: var(--bg); }
.t-green { --bg: var(--green); --mute: #000; background: var(--bg); }
.t-ink { --bg: #000; --fg: #FFF; --mute: #8E8E8A; --line: #2A2A2A; --slot: #1A1A1A; --cap: #8E8E8A; background: var(--bg); color: var(--fg); }
.t-accent { --bg: var(--accent); --fg: #FFF; --mute: #EFEFEB; --line: rgba(255,255,255,.45); --slot: #1A1A1A; --cap: #8E8E8A; background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.t-accent :focus-visible { outline-color: #fff; }
.mute { color: var(--mute); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 16px; }

.wrap { padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- placeholder ---------- */
.ph { position: relative; width: 100%; background: var(--slot); }
.ph__cap { position: absolute; left: 12px; bottom: 10px; right: 28px; font-size: 11px; font-weight: 500; line-height: 1.3; color: var(--cap); }
.ph__mark { position: absolute; right: 12px; top: 6px; font-size: 14px; color: var(--cap); }

/* ---------- nav ---------- */
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px var(--pad); font-size: 13px; line-height: 1.2; z-index: 5; }
.nav__name { font-weight: 600; }
.nav__ctx { position: absolute; left: 50%; transform: translateX(-50%); color: var(--mute); white-space: nowrap; }
.nav__links { display: flex; gap: 24px; font-weight: 500; }
.nav__links a, .footer__links a, .about__col a { text-underline-offset: 3px; }
.nav__links a:hover, .nav__links a[aria-current="page"], .footer__links a:hover, .about__col a:hover { text-decoration: underline; }
.nav__menu { display: none; font-size: 13px; font-weight: 500; padding: 14px 12px; margin: -14px -12px; }

/* ---------- hero ---------- */
.hero { padding-bottom: 140px; }
.hero__name { display: inline-block; white-space: nowrap; font-size: 180px; font-weight: 700; letter-spacing: -.045em; line-height: .86; margin-top: 72px; }
.hero__name .l { display: inline-block; }
.hero__name .ch { display: inline-block; transform-origin: 0 100%; }
/* Entrance: letters rise from below their own baseline, so clip only the bottom edge. */
.hero__name.is-entering .l { clip-path: inset(-60% -15% 0 -15%); }
.intro :is(.hero__name, .hero .nav, .hero__intro, .facts) { opacity: 0; }
.hero__row { margin-top: 56px; align-items: start; }
.hero__intro { grid-column: 7 / span 6; grid-row: 1; font-size: clamp(24px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; max-width: 15em; }
.facts { grid-column: 1 / span 5; grid-row: 1; padding-top: 6px; }
.facts__label { font-size: 13px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.facts__num { display: inline-flex; vertical-align: bottom; }
.facts__d { display: inline-block; overflow: hidden; height: 1.3em; }
.facts__d > span { display: inline-block; }
.facts__win { overflow: hidden; margin: 10px 0 12px; min-height: 2.36em; font-size: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.facts__line { font-size: 24px; font-weight: 500; letter-spacing: -.008em; line-height: 1.18; max-width: 19em; }
.facts__btn { display: inline-block; font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; padding: 12px 0; margin: -12px 0; transform-origin: 0 50%; transition: transform 320ms cubic-bezier(.34, 1.56, .64, 1); }
/* Grows with a slight spring on hover; settles back quicker on leave. */
.facts__btn:focus-visible { transform: scale(1.18); }
@media (hover: hover) {
  .facts__btn:hover { transform: scale(1.18); }
  .facts__btn:not(:hover):not(:focus-visible) { transition-duration: 200ms; transition-timing-function: cubic-bezier(.2, .7, .2, 1); }
}
.facts__btn:active { transform: scale(1.08); transition-duration: 90ms; }
.facts__btn:focus-visible { outline-color: #000; }
@media (prefers-reduced-motion: reduce) {
  .facts__btn { transition: none; }
  .facts__btn:hover, .facts__btn:focus-visible { transform: none; text-decoration-thickness: 3px; }
}

/* ---------- index ---------- */
.index { padding-top: 120px; padding-bottom: 220px; }
.index__head { font-size: 13px; color: var(--mute); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.index__h { font-size: inherit; font-weight: 400; grid-column: 1 / span 3; }
.index__hook { grid-column: 4 / span 6; }
.index__fd { grid-column: 11 / span 2; }
.row { border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding: 28px 0; }
.row__title { grid-column: 1 / span 10; display: flex; align-items: flex-start; gap: 12px; }
.row__t { font-size: clamp(52px, 8.9vw, 160px); font-weight: 600; letter-spacing: -.04em; line-height: .92; }
.row__num { font-size: 14px; font-weight: 600; margin-top: 1.1em; }
.row__meta { grid-column: 11 / span 2; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; padding-bottom: .9vw; }
.row__field { font-weight: 500; }
.row__disc { color: var(--mute); }
.row__inline { display: none; }
.row__t, .row__num, .row__field, .row__disc { transition: color 100ms ease-out; }
.index__list.is-hovering :is(.row__t, .row__num, .row__field, .row__disc) { transition-duration: 160ms; }
.index__list.is-hovering .row:not(.is-active) :is(.row__t, .row__num, .row__field, .row__disc) { color: var(--line); }
.row.is-active :is(.row__t, .row__num) { color: var(--accent); }
.has-cursor .row a, .has-cursor .sql button { cursor: none; }

/* floating preview + cursor */
.pv { position: fixed; left: 0; top: 0; width: clamp(160px, 16.7vw, 240px); aspect-ratio: 34 / 43; pointer-events: none; z-index: 40; opacity: 0; transition: opacity 160ms ease-out; will-change: transform; }
.pv.is-on { opacity: 1; }
.pv--fixed { left: auto; right: 22%; top: 50%; transform: translateY(-50%); }
.pv__f { position: absolute; inset: 0; background: #1A1A1A; opacity: 0; }
.pv__f.on { opacity: 1; }
.pv__f .ph__cap { color: #8E8E8A; }
.cur { position: fixed; left: 0; top: 0; z-index: 41; pointer-events: none; opacity: 0; transition: opacity 120ms; }
.cur.is-on { opacity: 1; }
.cur__dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.cur__label { position: absolute; left: 14px; top: 12px; white-space: nowrap; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: 20px; }

/* ---------- about ---------- */
.about { padding: 140px 0 160px; }
.about__head { grid-column: 1 / span 9; grid-row: 1; font-size: clamp(30px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.022em; line-height: 1.06; }
.about__portrait { grid-column: 10 / span 3; grid-row: 1 / span 2; }
.about__body { grid-column: 4 / span 5; grid-row: 2; margin-top: 56px; }
.about__body p + p { margin-top: 24px; font-weight: 500; }
.about__col { grid-row: 3; margin-top: 96px; font-size: 13px; line-height: 1.5; }
.about__col h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.about__col--1 { grid-column: 4 / span 3; }
.about__col--2 { grid-column: 7 / span 3; }
.about__col--3 { grid-column: 10 / span 3; }

/* ---------- footnotes ---------- */
.fn { font-size: 13px; line-height: 1.45; max-width: 220px; }
.fn__mark { display: block; width: 24px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.fn.is-seen .fn__mark { transform: scaleX(1); }
.fn__label { display: block; font-size: 11px; font-weight: 600; margin: 8px 0 6px; }
.fn__text { color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .fn__mark { transform: none; transition: none; } }

/* ---------- footer ---------- */
.footer { padding: 96px 0 28px; }
.footer__note .fn { max-width: 330px; }
.footer__q { margin-top: 64px; font-size: 13px; color: var(--mute); min-height: 1.4em; }
.footer__cta { display: block; width: 100%; text-align: left; margin-top: 24px; transition: color 160ms ease-out; }
.footer__cta > span { display: inline-block; white-space: nowrap; font-size: 200px; font-weight: 700; letter-spacing: -.045em; line-height: .84; }
.footer__cta .l { display: inline; }
.footer__cta:hover, .footer__cta:focus-visible { color: var(--mute); }
.footer__bottom { margin-top: 140px; font-size: 13px; align-items: baseline; }
.footer__copy { grid-column: 1 / span 4; color: var(--mute); }
.footer__links { grid-column: 7 / span 5; display: flex; gap: 24px; font-weight: 500; flex-wrap: wrap; }
.footer__links a { min-width: 94px; }
.footer__icons { grid-column: 7 / span 4; display: flex; gap: 6px; align-items: center; margin: -10px 0 -10px -10px; }
.footer__top { grid-column: 12; color: var(--mute); justify-self: end; }
.footer__top:hover { color: var(--fg); }

/* ---------- case study ---------- */
.ctitle { padding-top: 88px; padding-bottom: 96px; }
.ctitle__h { display: flex; align-items: flex-start; gap: 12px; font-weight: inherit; }
.ctitle__t { display: inline-block; white-space: nowrap; font-size: clamp(64px, 13.8vw, 240px); font-weight: 600; letter-spacing: -.04em; line-height: .92; }
.sup { font-size: 15px; font-weight: 600; margin-top: 1.4vw; }
.ctitle__row { margin-top: 48px; align-items: start; }
.ctitle__sum { grid-column: 1 / span 7; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.18; }
.ctitle__meta { grid-column: 9 / span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gap); font-size: 13px; line-height: 1.4; }
.ctitle__meta dt { color: var(--mute); margin-bottom: 4px; }
.ctitle__meta dd { font-weight: 500; }
.ctitle__play { display: flex; gap: 24px; margin-top: 40px; font-size: 15px; font-weight: 600; }
.ctitle__play .mute { font-weight: 400; }
.ctitle--after { padding-top: 64px; padding-bottom: 200px; }
.ohero { position: relative; }
.ohero .ph { min-height: 70vh; }
.ohero__title { position: absolute; left: 0; right: 0; bottom: 40px; color: #fff; }
.ohero__title h1 { font-weight: inherit; }
.ohero__title .ctitle__t { font-size: 300px; letter-spacing: -.05em; line-height: .8; }
.ohero__title .sup { display: block; margin: 0 0 16px; }

.chero { padding-bottom: 180px; }
.chero--band { padding: 120px 0; margin-bottom: 220px; }
.chapter { padding-bottom: 220px; }
.chapter--band { padding: 140px 0; margin-bottom: 220px; }
.chapter--band + .next, .chapter:last-of-type { margin-bottom: 0; }
.ch-grid { row-gap: 56px; align-items: start; }
.ch-aside { grid-column: 1 / span 3; grid-row: 1; font-size: 13px; line-height: 1.5; }
.ch-n { font-weight: 600; }
.ch-l { font-size: 13px; font-weight: 400; color: var(--mute); }
.ch-aside .fn { margin-top: 40px; }
.blk { grid-row: var(--r); grid-column: var(--c, 1) / span var(--s, 12); }
.blk.sub { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.st { font-size: clamp(26px, calc(var(--fs) / 1440 * 100vw), calc(var(--fs) * 1px)); font-weight: 500; letter-spacing: -.015em; line-height: 1.12; }
.para { font-size: 17px; line-height: 1.5; max-width: 34em; }
.it { grid-column: var(--c) / span var(--s); margin-top: calc(var(--dy) / 1440 * 100vw); }
figcaption { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--mute); white-space: pre-wrap; }
.blk.full { grid-column: 1 / -1; margin-inline: calc(var(--pad) * -1); }
.col { grid-column: var(--c) / span var(--s); }
.col h3 { font-size: 20px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; }
.col p { margin-top: 10px; font-size: 15px; color: var(--mute); }
.list__row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--line); padding: 16px 0 20px; font-size: 15px; line-height: 1.5; }
.list dt { grid-column: 1 / span 3; font-weight: 600; }
.list dd { grid-column: 4 / span 5; color: var(--mute); }
.sw { grid-column: var(--c) / span 2; }
.sw span { display: block; aspect-ratio: 1; }

.next { padding: 120px 0 28px; }
.next__label { font-size: 13px; color: var(--mute); }
.next__row { margin-top: 24px; align-items: start; }
.next__link { grid-column: 1 / span 8; display: flex; align-items: flex-start; gap: 12px; transition: color 160ms ease-out; }
.next__link:hover { color: var(--accent); }
.t-ink .next__link:hover { color: var(--mute); }
.next__t { display: inline-block; white-space: nowrap; font-size: clamp(56px, 10.6vw, 200px); font-weight: 600; letter-spacing: -.04em; line-height: .92; }
.next__img { grid-column: 10 / span 3; }

/* ---------- sidequests ---------- */
.sq-bar { display: flex; justify-content: space-between; align-items: baseline; margin-top: 64px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sq-filters { display: flex; gap: 28px; flex-wrap: wrap; }
.flt, .sq-views button { font-size: 15px; font-weight: 500; color: var(--mute); padding: 10px 0; margin: -10px 0; }
.flt sup { font-size: 11px; font-weight: 600; margin-left: 3px; }
.flt[aria-pressed="true"], .sq-views button[aria-pressed="true"] { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.flt:hover, .sq-views button:hover { color: var(--fg); }
.sq-views { display: flex; gap: 20px; }
.ctitle:has(.sq-bar) { padding-bottom: 72px; }
.sq-wrap { padding-bottom: 160px; }
.sq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 64px; grid-auto-flow: row dense; align-items: start; }
.sq { grid-column: span var(--s); }
.sq__btn { display: block; width: 100%; text-align: left; }
.sq__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; }
.sq__t { font-weight: 600; transition: color 160ms ease-out; }
.sq__c { font-size: 13px; color: var(--mute); }
.sq__btn .ph { transition: transform 240ms var(--ease); }
.sq__btn:hover .sq__t { color: var(--accent); }
.sq__btn:hover .ph { transform: translateY(-4px); }
.sql__head, .sql button { display: grid; grid-template-columns: 6fr 3fr 3fr; column-gap: var(--gap); width: 100%; text-align: left; align-items: baseline; }
.sql__head { font-size: 13px; color: var(--mute); padding-bottom: 12px; }
.sql button { border-top: 1px solid var(--line); padding: 14px 0; font-size: 15px; color: var(--mute); }
.sql:last-child button { border-bottom: 1px solid var(--line); }
.sql__t { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.012em; line-height: 1.2; color: var(--fg); }
.sql button > span { transition: color 120ms ease-out; }
.sql.is-active button > span { color: var(--accent); }
[hidden] { display: none !important; }

.sqd, .menu { border: 0; padding: 0; max-width: none; max-height: none; }
.sqd { width: min(1040px, calc(100vw - 48px)); max-height: calc(100vh - 48px); background: var(--paper); color: #000; --slot: #DEDED9; --cap: #55554F; --mute: #6B6B67; padding: 32px; overflow: auto; }
.sqd::backdrop { background: rgba(0, 0, 0, .55); }
.sqd__close { position: sticky; top: 0; float: right; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 12px; margin: -12px; }
.sqd__meta { display: flex; gap: 16px; font-size: 13px; font-weight: 500; }
.sqd__t { margin-top: 12px; font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -.035em; line-height: .95; }
.sqd__p { margin-top: 24px; max-width: 34em; }
.sqd__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.sqd__imgs .ph:first-child { grid-column: 1 / -1; }

/* ---------- mobile menu ---------- */
.menu { width: 100vw; height: 100dvh; margin: 0; inset: 0; padding: 18px 16px 24px; }
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: #000; }
.menu__top { display: flex; justify-content: space-between; font-size: 13px; }
.menu__close { font-size: 13px; font-weight: 500; padding: 14px 12px; margin: -14px -12px; }
.menu__list { margin-top: 96px; }
.menu__list a { display: inline-block; font-size: 56px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.menu__list a.is-current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu__list sup { font-size: 12px; font-weight: 600; margin-left: 6px; vertical-align: top; position: relative; top: .8em; }
.menu__foot { margin-top: auto; font-size: 12px; }
.menu__links { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; font-weight: 500; }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .row__title { grid-column: 1 / span 9; }
  .row__meta { grid-column: 10 / span 3; }
  .ctitle__sum { grid-column: 1 / span 12; }
  .ctitle__meta { grid-column: 1 / span 12; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  :root { --pad: 16px; --gap: 12px; }
  .nav { padding: 18px var(--pad); }
  .nav__ctx, .nav__links { display: none; }
  .nav__menu { display: block; }

  .hero { padding-bottom: 56px; }
  .hero__name { margin-top: 64px; }
  .hero__name .l { display: block; }
  .hero__row { display: block; margin-top: 32px; }
  .hero__intro { font-size: 24px; max-width: 13em; }
  .facts { margin-top: 40px; }
  .facts__win, .facts__line { font-size: 18px; }

  .index { padding-top: 64px; padding-bottom: 64px; }
  .index__head { display: block; padding-bottom: 12px; }
  .index__hook { margin-top: 4px; }
  .index__fd { display: none; }
  .row a { display: block; padding: 28px 0; }
  .row__t { font-size: 12.6vw; }
  .row__num { margin-top: .6em; font-size: 12px; }
  .row__meta { margin-top: 8px; font-size: 12px; padding: 0; }

  .about { padding: 64px 0; }
  .about .grid { display: block; }
  .about__head { font-size: 28px; line-height: 1.1; }
  .about__body { margin-top: 24px; font-size: 15px; }
  .about__portrait { width: 48%; margin-top: 32px; float: left; }
  .about__col { margin: 32px 0 0 52%; font-size: 12px; }
  .about__col--2, .about__col--3 { margin-top: 20px; }
  .about::after { content: ''; display: block; clear: both; }

  .footer { padding: 56px 0 24px; }
  .footer__q { margin-top: 48px; }
  .footer__cta .l { display: block; }
  .footer__bottom { display: block; margin-top: 48px; }
  .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer__copy { display: block; margin-top: 28px; }
  .footer__copy { order: 2; }
  .footer__top { display: inline-block; margin-top: 12px; }

  .ctitle { padding-top: 64px; padding-bottom: 56px; }
  .ctitle__row { display: block; margin-top: 24px; }
  .ctitle__meta { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .sup { margin-top: 2vw; font-size: 12px; }
  .ohero .ph { min-height: 60vh; }
  .ohero__title { bottom: 20px; }
  .ctitle--after { padding-bottom: 96px; }
  .chero { padding-bottom: 96px; }
  .chero--band, .chapter--band { padding: 64px 0; margin-bottom: 96px; }
  .chapter { padding-bottom: 96px; }
  .ch-grid { display: flex; flex-direction: column; gap: 32px; }
  .ch-aside .fn { margin-top: 20px; max-width: none; }
  .blk.sub { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .it, .col { grid-column: 1 / -1; margin-top: 0; }
  .it--sm { grid-column: span 1; }
  .sw { grid-column: span 1; }
  .st { font-size: 24px; }
  .para, .col p, .list__row { font-size: 15px; }
  .list__row { grid-template-columns: 1fr; }
  .list dt, .list dd { grid-column: 1; }
  .next { padding-top: 64px; }
  .next__row { display: block; }
  .next__img { display: block; margin-top: 24px; width: 60%; }

  .sq-bar { display: block; margin-top: 32px; }
  .sq-filters { flex-wrap: nowrap; overflow-x: auto; gap: 20px; scrollbar-width: none; }
  .sq-views { margin-top: 20px; }
  .sq-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .sq { grid-column: span 1; }
  .sq[style*="--s:6"], .sq[style*="--s:4"] { grid-column: 1 / -1; }
  .sq__meta { display: block; font-size: 13px; }
  .sq__c { display: block; font-size: 12px; }
  .sql__head { display: none; }
  .sql button { grid-template-columns: 1fr; row-gap: 2px; font-size: 13px; }
  .sqd { padding: 20px; width: calc(100vw - 24px); }
}

/* touch devices: previews sit inline under each title */
@media (hover: none), (pointer: coarse) {
  .row__inline { display: block; grid-column: 1 / -1; margin-top: 16px; }
}

/* ==========================================================================
   Additions: icon links, opening curtain, short-format case studies
   ========================================================================== */

/* Browser surfaces carry the palette too. */
::selection { background: #000; color: #EFEFEB; }
html { scrollbar-color: #6B6B67 transparent; }

/* ---------- icon links (footer + menu) ---------- */
.icon { width: 22px; height: 22px; display: block; }
.icon-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--fg); transition: color 160ms ease-out, background-color 160ms ease-out; }
.icon-link .icon { transition: transform 260ms cubic-bezier(.2, .7, .2, 1); }
.icon-link:hover, .icon-link:focus-visible { color: var(--mute); }
.icon-link:hover .icon { transform: translateY(-2px); }
.icon-link::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translate(-50%, 4px); font-size: 11px; font-weight: 500; white-space: nowrap; color: var(--mute); opacity: 0; pointer-events: none; transition: opacity 140ms ease-out, transform 200ms ease-out; }
.icon-link:hover::after, .icon-link:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.menu__links { gap: 4px; margin-left: -10px; }

/* ---------- opening curtain ---------- */
.curtain-screen { display: none; }
html.curtain { overflow: hidden; }
html.curtain .curtain-screen { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #000; color: #fff; will-change: transform; cursor: default; }
.curtain__words { font-size: 13px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; opacity: 0; }
.curtain-screen.is-ready .curtain__words { opacity: 1; }
.curtain-screen .cc { display: inline-block; text-align: center; }
.curtain-screen .cc.is-scr { color: #6B6B67; }
.curtain-screen [data-sep] { opacity: 0; transition: opacity 200ms ease-out; }
.curtain-screen [data-sep].is-on { opacity: 1; }
html.curtain-leaving .curtain-screen { transform: translateY(-100%); transition: transform 760ms cubic-bezier(.76, 0, .24, 1); }

/* ---------- real images in previews ---------- */
.pv__f--img img, .row__inline img, .next__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.next__img img { aspect-ratio: 330 / 230; height: auto; }
.row__inline img { aspect-ratio: 16 / 9; height: auto; background: var(--slot); }

/* ---------- short-format case study ---------- */
.cs-top { padding-top: 40px; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--mute); padding: 12px 0; margin: -12px 0 36px; transition: color 160ms ease-out; }
.cs-back .icon { width: 16px; height: 16px; transition: transform 220ms ease-out; }
.cs-back:hover { color: var(--fg); }
.cs-back:hover .icon { transform: translateX(-3px); }
.cs-intro { grid-column: 1 / span 7; }
.cs-short { margin-top: 28px; font-size: 15px; color: var(--mute); }
.cs-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: opacity 160ms ease-out; }
.cs-cta .icon { width: 18px; height: 18px; transition: transform 240ms cubic-bezier(.2, .7, .2, 1); }
.cs-cta { font-weight: 500; text-decoration: none; }
.cs-cta__brand { font-weight: 800; letter-spacing: -.01em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.cs-cta:hover { opacity: .65; }
.cs-cta:hover .icon { transform: translate(2px, -2px); }
.cs-glance { row-gap: 20px; }
.cs-glance dd { line-height: 1.4; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cs-hero { margin-bottom: 120px; }
.cs-hero img { display: block; width: 100%; height: auto; background: var(--slot); }

.cs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding-bottom: 80px; }
.cs-rail { grid-column: 1 / span 2; position: sticky; top: 40px; }
.cs-rail ol { display: grid; gap: 2px; }
.cs-rail a { display: block; padding: 7px 0 7px 36px; font-size: 13px; color: var(--mute); transition: color 160ms ease-out; }
.cs-rail a:hover { color: var(--fg); }
.cs-rail a[aria-current] { color: var(--fg); font-weight: 600; }
.cs-rail__mark { position: absolute; left: 0; top: 0; width: 24px; height: 1px; background: var(--fg); opacity: 0; transition: transform 380ms cubic-bezier(.2, .7, .2, 1), opacity 200ms ease-out; }
.cs-rail.has-active .cs-rail__mark { opacity: 1; }

.cs-body { grid-column: 4 / span 9; }
.cs-sec { scroll-margin-top: 40px; }
.cs-sec + .cs-sec { margin-top: 160px; }
.cs-h { max-width: 18em; font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; outline: none; }
.cs-text { margin-top: 24px; max-width: 38em; }
.cs-text p + p { margin-top: 16px; }
.cs-quote { margin-top: 40px; max-width: 30em; font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.cs-quote p::before { content: '“'; }
.cs-quote p::after { content: '”'; }

.cs-steps { margin-top: 32px; max-width: 46em; border-top: 1px solid var(--line); counter-reset: none; }
.cs-steps li { display: grid; grid-template-columns: 9em 1fr; gap: var(--gap); padding: 18px 0; border-bottom: 1px solid var(--line); }
.cs-steps__k { font-weight: 600; }
.cs-steps p { color: var(--mute); }

.cs-stats { margin-top: 32px; max-width: 46em; border-top: 1px solid var(--line); }
.cs-stats div { display: grid; grid-template-columns: 11em 1fr; gap: var(--gap); align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cs-stats dt { color: var(--mute); }
.cs-stats dd { font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; font-variant-numeric: tabular-nums; }

.cs-table-wrap { margin-top: 32px; overflow-x: auto; }
.cs-table { width: 100%; max-width: 52em; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.cs-table th, .cs-table td { padding: 14px 16px 14px 0; text-align: left; border-bottom: 1px solid var(--line); }
.cs-table thead th { font-size: 13px; font-weight: 400; color: var(--mute); vertical-align: bottom; }
.cs-table td { text-align: right; }
.cs-table thead th:not(:first-child) { text-align: right; }
.cs-table tbody th { font-weight: 500; }
.cs-table tr.is-ours th, .cs-table tr.is-ours td { font-weight: 600; }


.cs-fig { margin-top: 48px; }
.cs-fig img { display: block; width: 100%; height: auto; background: var(--slot); }
.cs-fig--narrow { max-width: 760px; }
.cs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cs-sec .fn { margin-top: 48px; max-width: 330px; }

.cs-end { padding-top: 40px; padding-bottom: 160px; }
.cs-end__h { font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.cs-end__p { margin-top: 16px; max-width: 34em; color: var(--mute); }
.cs-cta--end { margin-top: 28px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.01em; }
.cs-cta--end .icon { width: 26px; height: 26px; }

@media (min-width: 768px) {
  .cs-end { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .cs-end > * { grid-column: 4 / span 9; }
}

@media (max-width: 1023px) {
  .cs-intro { grid-column: 1 / span 12; }
  .cs-rail { grid-column: 1 / span 3; }
  .cs-body { grid-column: 4 / span 9; }
}

@media (max-width: 767px) {
  .cs-top { padding-top: 24px; }
  .cs-back { margin-bottom: 24px; }
  .cs-hero { margin-bottom: 0; }
  .footer__icons { margin: 16px 0 0 -10px; }
  .cs { display: block; padding-bottom: 48px; }
  .cs-rail { position: sticky; top: 0; z-index: 10; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .cs-rail::-webkit-scrollbar { display: none; }
  .cs-rail ol { display: flex; gap: 20px; width: max-content; }
  .cs-rail a { padding: 14px 0; }
  .cs-rail__mark { top: auto; bottom: 0; left: 0; width: 100px; transform-origin: 0 50%; }
  .cs-sec { scroll-margin-top: 64px; padding-top: 56px; }
  .cs-sec + .cs-sec { margin-top: 40px; }
  .cs-steps li { grid-template-columns: 1fr; gap: 4px; }
  .cs-stats dd { font-size: 17px; }
  .cs-pair { grid-template-columns: 1fr; }
  .cs-end { padding-bottom: 96px; }
}

/* ---------- case study: numbered sections, process rows, bars (no accent colour) ---------- */
.cs-cta--top { margin-top: 28px; font-size: 16px; }
.cs-num { display: flex; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.cs-num span { color: var(--fg); font-weight: 600; }
.cs-rail__n { display: inline-block; width: 2.2em; font-variant-numeric: tabular-nums; }
.cs-rail a[aria-current] .cs-rail__n { font-weight: 600; }

.cs-bullets { margin-top: 20px; max-width: 38em; }
.cs-bullets li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); }
.cs-bullets li::before { content: ''; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 1px; background: var(--fg); }

.cs-rows { margin-top: 40px; border-top: 1px solid var(--line); }
.cs-rows li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr); gap: var(--gap); align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.cs-rows h3 { font-size: 17px; font-weight: 600; letter-spacing: -.005em; }
.cs-rows p { margin-top: 8px; font-size: 15px; color: var(--mute); max-width: 26em; }
.cs-rows__img img { display: block; width: 100%; height: auto; background: var(--slot); }

.cs-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gap); margin-top: 40px; max-width: 60em; }
.cs-bars__g figcaption { margin: 0 0 14px; font-size: 13px; color: var(--mute); white-space: normal; }
.cs-bar { display: grid; grid-template-columns: 10.5em 1fr; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.cs-bar dt { color: var(--mute); }
.cs-bar dd { display: flex; align-items: center; gap: 10px; }
.cs-bar__fill { display: block; height: 10px; width: var(--w); min-width: 2px; background: var(--line); }
.cs-bar__v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-bar.is-ours dt, .cs-bar.is-ours .cs-bar__v { color: var(--fg); font-weight: 600; }
.cs-bar.is-ours .cs-bar__fill { background: var(--fg); }

.cs-note { margin-top: 28px; max-width: 42em; font-size: 13px; line-height: 1.5; color: var(--mute); }

@media (max-width: 767px) {
  .cs-rows li { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .cs-bars { grid-template-columns: 1fr; }
  .cs-bar { grid-template-columns: 8.5em 1fr; font-size: 13px; }
  .cs-rail__n { width: auto; margin-right: 6px; }
}

/* ---------- calmer case-study hierarchy (overrides) ---------- */
.cs-sec + .cs-sec { margin-top: 0; }
.cs-sec { padding-top: 140px; }
.cs-sec:first-child { padding-top: 0; }
.cs-num { margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.cs-h { max-width: 15em; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.025em; }
.cs-quote { margin-top: 32px; max-width: 24em; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.cs-text { margin-top: 28px; max-width: 36em; font-size: 18px; line-height: 1.55; }
.cs-quote + .cs-text { margin-top: 24px; }
.cs-text p + p { margin-top: 18px; }
.cs-bullets { margin-top: 16px; max-width: 36em; font-size: 18px; }
.cs-bullets li { padding: 5px 0 5px 24px; border-bottom: 0; }
.cs-bullets li::before { top: 1.05em; width: 10px; }
.cs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gap); max-width: none; margin-top: 48px; border-top: 0; }
.cs-steps li { display: block; padding: 0; border-bottom: 0; }
.cs-steps__k { display: block; margin-bottom: 8px; font-size: 17px; line-height: 1.3; }
.cs-steps p { font-size: 15px; line-height: 1.5; }
.cs-rows { display: grid; gap: 88px; margin-top: 64px; border-top: 0; }
.cs-rows li { gap: 40px; padding: 0; border-bottom: 0; }
.cs-rows__img--narrow { max-width: 340px; }
.cs-fig { margin-top: 64px; }
.cs-bars { margin-top: 48px; }
.cs-note { margin-top: 32px; }
.cs-sec .fn { margin-top: 64px; }

@media (max-width: 767px) {
  .cs-sec { padding-top: 72px; }
  .cs-steps { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .cs-rows { gap: 56px; margin-top: 40px; }
  .cs-text, .cs-bullets { font-size: 16px; }
}

/* ---------- big stats and key takeaway ---------- */
.cs-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); margin-top: 32px; max-width: 46em; }
.cs-big div { display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--fg); }
.cs-big__v { order: 1; font-size: clamp(56px, 6vw, 96px); font-weight: 600; letter-spacing: -.04em; line-height: .95; font-variant-numeric: tabular-nums; }
.cs-big__k { order: 2; margin-top: 12px; font-size: 17px; font-weight: 600; }
.cs-big__d { order: 3; margin-top: 4px; font-size: 14px; color: var(--mute); }
.cs-takeaway { margin-top: 56px; padding-top: 20px; max-width: 36em; border-top: 1px solid var(--line); }
.cs-takeaway__k { font-size: 13px; color: var(--mute); }
.cs-takeaway__t { margin-top: 10px; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.cs-takeaway__s { margin-top: 16px; font-size: 17px; color: var(--mute); }
@media (max-width: 767px) { .cs-big { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- the little me ---------- */
.me { display: inline-block; width: 64px; aspect-ratio: 1; color: var(--fg); --face: var(--bg); cursor: default; -webkit-tap-highlight-color: transparent; }
.me__svg { display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor; }
.me__tilt { transform-origin: 50px 94px; }
.me__turn { transform-origin: 50px 60px; }
.me__specs, .me__m-ooh { fill: var(--face); }
.me__cut { fill: none; stroke: var(--face); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.me__hairline { stroke-width: 2.2; }
.me__hap { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
/* Expressions: eyes and mouth swap with a quick scale, so the change feels physical. */
.me__pill, .me__hap, .me__mouth > * { transform-box: fill-box; transform-origin: center; transition: transform 160ms cubic-bezier(.2, .7, .2, 1), opacity 120ms ease-out; }
.me__hap, .me__m-happy, .me__m-ooh { opacity: 0; transform: scale(.4); }
.me.is-blink .me__pill { transform: scaleY(.12); transition-duration: 60ms; }
.me.is-happy .me__pill, .me.is-happy .me__m-idle, .me.is-ooh .me__m-idle { opacity: 0; transform: scale(.4); }
.me.is-happy .me__hap, .me.is-happy .me__m-happy, .me.is-ooh .me__m-ooh { opacity: 1; transform: none; transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); transition-duration: 260ms; }
.me.is-ooh .me__pill { transform: scale(1.3, 1.15); transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); transition-duration: 260ms; }
@media (prefers-reduced-motion: reduce) { .me__pill, .me__hap, .me__mouth > * { transition: none; } }

/* About: sits in the empty column next to the text. */
.about__me { grid-column: 1 / span 2; grid-row: 2; margin-top: 52px; }
.about__me .me { width: clamp(72px, 7vw, 104px); }
/* Case study end: watches the Behance link. */
.cs-end__go { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.cs-end__go .cs-cta--end { margin-top: 0; }
.me--cs { width: 56px; flex: none; }
@media (max-width: 767px) {
  .about__me { margin-top: 24px; }
  .about__me .me { width: 64px; }
  .me--cs { width: 44px; }
}

/* ---------- "still being built" note ---------- */
.wip { display: inline-flex; align-items: center; gap: 8px; }
/* A solid dot that softly breathes, with a ring that pings out from it, so it reads as "live". */
.wip__dot { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: wip 1.8s ease-in-out infinite; }
.wip__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid currentColor; animation: wip-ping 1.8s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes wip { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes wip-ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wip__dot, .wip__dot::after { animation: none; } .wip__dot::after { display: none; } }

/* Footer: icons share the text's centre line. */
.footer__bottom { align-items: center; }
.footer__copy { grid-column: 1 / span 6; }
.footer__wip { margin-left: 20px; }
@media (max-width: 767px) { .footer__wip { display: block; margin: 6px 0 0; } }
.footer__top { white-space: nowrap; }

/* ---------- round 5 ---------- */
/* "Write to me" sits below the project titles in the hierarchy, not above them. */
.footer__cta > span { font-size: clamp(52px, 7.2vw, 120px); }
@media (min-width: 768px) { .footer__bottom { margin-top: 104px; } }
@media (max-width: 767px) { .footer__cta .l { display: inline; } }

/* About: the original layout. Photo in columns 10–12 beside the heading and text;
   the lists below line up with the text (col 4) and the photo (col 10).
   Any spare height goes under the text, never between the heading and the text. */
.about .grid { grid-template-rows: auto 1fr; }
.about__body { align-self: start; }
.about__portrait { display: block; align-self: start; }
.about__portrait img { display: block; width: 100%; height: auto; aspect-ratio: 330 / 400; object-fit: cover; background: #1A1A1A; }
.about__me { grid-column: 1 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; align-self: start; }
.about__quote { max-width: 15em; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -.005em; text-indent: -.42em; }
@media (max-width: 767px) {
  .about .grid { display: flex; flex-direction: column; }
  .about__head { order: 1; }
  .about__me { order: 2; gap: 16px; }
  .about__quote { font-size: 15px; }
  .about__body { order: 3; }
  .about__portrait { order: 4; float: none; width: 72%; margin-top: 36px; }
  .about__col { order: 5; margin-left: 0; }
  .about__col--1 { margin-top: 36px; }
}

/* ---------- unfinished projects ---------- */
.soon-note { padding-top: 8px; font-size: 13px; color: var(--mute); }/* Index: projects without a full case study yet carry a live "In progress" mark beside their number. */
.row__soon { display: inline-flex; align-items: center; gap: 8px; margin-top: 1.25em; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--fg); transition: color 100ms ease-out; }
.row__soon .wip__dot { width: 6px; height: 6px; }
.index__list.is-hovering .row:not(.is-active) .row__soon { color: var(--line); }
@media (max-width: 767px) { .row__soon { font-size: 12px; margin-top: .9em; } }
.row__soon--m { display: none; }
@media (max-width: 767px) {
  .row__title .row__soon { display: none; }
  .row__soon--m { display: inline-flex; margin-top: 6px; }
}

/* Section rail: pop on arrival, sweep on jump, back to top. */
.cs-rail a { transform-origin: 0 50%; }
.cs-rail a.pop { animation: rail-pop 420ms cubic-bezier(.3, .1, .2, 1); }
.cs-rail a.pop--end { animation: rail-pop-end 560ms cubic-bezier(.3, .1, .2, 1); }
@keyframes rail-pop { 35% { transform: scale(1.035); color: var(--fg); } 100% { transform: scale(1); } }
@keyframes rail-pop-end { 35% { transform: scale(1.07); } 100% { transform: scale(1); } }
.cs-rail.is-sweeping .cs-rail__mark { transition-duration: 110ms, 200ms; transition-timing-function: ease-out; }
@media (max-width: 767px) {
  .cs-rail a { transform-origin: 50% 50%; }
  }
@media (prefers-reduced-motion: reduce) {
  .cs-rail a.pop, .cs-rail a.pop--end { animation: none; }
}

/* Back to top: bottom-right corner, appears once you are past the hero. */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--fg); border-radius: 50%; background: var(--bg); color: var(--fg); cursor: pointer; opacity: 0; transform: translateY(8px) scale(.9); pointer-events: none; transition: opacity 200ms ease-out, transform 320ms cubic-bezier(.2, .7, .2, 1), background 160ms ease-out, color 160ms ease-out; }
.to-top[hidden] { display: none; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top .icon { width: 20px; height: 20px; }
.to-top:hover { background: var(--fg); color: var(--bg); transform: scale(1.05); }
.to-top:active { transform: scale(.96); }
@media (max-width: 767px) { .to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; } }