/* amitbhalla.co.in
   Decision record: README.md, "Design system (26 Nov 2026)".
   The site reads like a consulting exhibit pack. Every claim with a number is an exhibit:
   a finding as the title, the figure, and a source line. Blue appears only on Amit's own results.
   Archivo (Omnibus-Type, SIL Open Font License) is self-hosted. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format("woff2");
}

:root {
  --paper: #ffffff;      /* the printed page */
  --ink: #10142a;        /* toner black, slightly cool */
  --ink-2: #4c5168;      /* secondary text */
  --ink-3: #6f7489;      /* captions, sources (4.8:1 on white) */
  --rule: #dcdee6;       /* hairlines in tables and ledgers */
  --baseline: #c3c7d3;   /* the "before" bar in every exhibit */
  --result: #1f4bff;     /* Amit's results, and nothing else */
  --alert: #b3261e;      /* form errors only */
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --nav-h: 68px;
  --sec: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f); font-size: 17px; line-height: 1.6; font-weight: 400; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.15; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
b, strong { font-weight: 650; }
::selection { background: var(--result); color: #fff; }
input, textarea { caret-color: var(--result); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }

/* Type scale: display about 3.8x body on desktop */
.h1, .hero__h { font-size: clamp(34px, 4.3vw, 64px); font-stretch: 88%; font-weight: 680; line-height: 1.04; letter-spacing: -.02em; max-width: 20ch; }
.hero__h { max-width: 19ch; }
.h2 { font-size: clamp(27px, 2.9vw, 42px); font-stretch: 90%; font-weight: 650; line-height: 1.1; letter-spacing: -.015em; max-width: 30ch; }
.intro { margin: 18px 0 0; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); max-width: 56ch; }

/* Links and buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: #fff; border-radius: 2px; font-weight: 600; font-size: 15.5px; transition: background-color .15s ease-out; }
.btn:hover { background: #000; }
.tlink { display: inline-block; padding: 10px 0; font-weight: 600; font-size: 15.5px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .15s ease-out; }
.tlink:hover { color: var(--ink-2); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s ease-out; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.logo__name { font-weight: 700; font-size: 17px; }
.logo__role { font-size: 13.5px; color: var(--ink-3); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a { color: var(--ink-2); padding: 8px 0; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav__links .nav__cta { color: var(--ink); font-weight: 600; padding-left: 28px; border-left: 1px solid var(--rule); }
.burger { display: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 2px; font-size: 14px; font-weight: 600; }
.menu { display: none; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(32px, 6vh, 72px) 0 clamp(40px, 6vh, 64px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 6vw, 104px); row-gap: clamp(36px, 6vh, 64px); align-items: center; min-height: calc(100svh - var(--nav-h) - clamp(72px, 12vh, 136px)); }
.hero__text { display: grid; gap: clamp(20px, 3vh, 28px); }
.hero__sub { margin: 0; font-size: clamp(16.5px, 1.25vw, 19px); color: var(--ink-2); max-width: 48ch; }
.hero__photo { margin: 0; justify-self: end; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; max-height: 58vh; overflow: hidden; background: #eef0f4; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.gates { grid-column: 1 / -1; align-self: end; margin: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); border-top: 1px solid var(--ink); padding-top: 18px; }
.gates div { display: grid; gap: 4px; align-content: start; }
.gates dt { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.gates dd { margin: 0; font-size: 15.5px; line-height: 1.4; }
.gates__lead { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center !important; }
.gates__lead dd { order: -1; font-size: clamp(40px, 3.6vw, 54px); font-stretch: 85%; font-weight: 700; line-height: .9; color: var(--result); font-variant-numeric: tabular-nums; }
.gates__lead dt { color: var(--ink-2); max-width: 32ch; }

/* ---------- Inner page heroes ---------- */
.phero { padding: clamp(48px, 8vw, 112px) 0 clamp(40px, 5vw, 72px); }
.phero .wrap { display: grid; gap: 22px; justify-items: start; }
.phero__sub { margin: 0; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); max-width: 54ch; }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0 0; }
.sec--flush { padding-top: 0; }
.close { padding-bottom: var(--sec); }
.close__mail { display: inline-block; margin: 28px 0 30px; font-size: clamp(28px, 5.2vw, 76px); font-stretch: 82%; font-weight: 650; letter-spacing: -.02em; line-height: 1.05; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; overflow-wrap: anywhere; transition: color .15s ease-out; }
.close__mail:hover { color: var(--ink-2); }
.phero .close__mail { margin: 4px 0 6px; }

/* Photos the site keeps: full-bleed plates with a credit line, no text on top */
.plate { margin: var(--sec) 0 0; }
.plate img { width: 100%; height: clamp(240px, 40vw, 540px); object-fit: cover; }
.plate figcaption, .photo figcaption { padding-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.plate figcaption a, .photo figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.photo { margin: 40px 0 0; }
.photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.photo--side { margin: 0; }
.photo--side img { aspect-ratio: 4 / 3; }

/* ---------- Problems table (home) ---------- */
.fit { margin-top: 44px; border-top: 1px solid var(--ink); }
.fit__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 2fr); gap: 32px; padding: 24px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.fit__row p { margin: 0; color: var(--ink-2); }
.fit__row .fit__p { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.fit__row p:last-child { justify-self: end; }
.fit__row .tlink { padding: 0; font-size: 15px; white-space: nowrap; }
.fit__row--head { border-top: 0; padding: 12px 0; font-size: 13px; color: var(--ink-3); }

/* ---------- Exhibits: the signature ---------- */
.exhibits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(32px, 5vw, 72px); margin-top: 48px; }
.ex { margin: 0; border-top: 2px solid var(--ink); padding-top: 14px; }
.ex--wide { grid-column: 1 / -1; }
.case .ex { margin: 36px 0 8px; }
.ex__head { display: grid; gap: 4px; margin-bottom: 24px; }
.ex__n { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ex__t { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.3; font-weight: 650; max-width: 46ch; }
.ex__src { margin: 22px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(120px, 15em) minmax(0, 1fr) 4.6em; gap: 16px; align-items: center; }
.bar__k { font-size: 14.5px; color: var(--ink-2); line-height: 1.3; }
.bar__track { height: 26px; position: relative; box-shadow: inset 1px 0 0 var(--ink); }
.bar__track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); min-width: 3px; background: var(--baseline); }
.bar__v { font-size: 17px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.bar.is-mine .bar__track i { background: var(--result); }
.bar.is-mine .bar__v, .bar.is-mine .bar__k { color: var(--result); }
.bar.is-mine .bar__k { font-weight: 600; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.figs div { display: grid; gap: 4px; align-content: start; }
.figs dt { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.figs dd { order: -1; margin: 0; font-size: 28px; font-stretch: 88%; font-weight: 650; line-height: 1.05; color: var(--result); font-variant-numeric: tabular-nums; }
.figs--big { margin-top: 0; padding-top: 0; border-top: 0; }
.figs--big dd { font-size: clamp(30px, 3vw, 40px); color: var(--ink); }
.figs--big .is-mine dd { font-size: clamp(44px, 5.4vw, 76px); color: var(--result); }
.figs dd small { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; font-stretch: 100%; color: var(--ink-2); }
.swap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.swap__h { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.swap ul { list-style: none; margin: 0; padding: 0; }
.swap li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: clamp(19px, 1.7vw, 24px); font-stretch: 90%; font-weight: 600; }
.swap__out li { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--ink-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.tbl td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.is-mine { color: var(--result); font-weight: 650; }
.also { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 72px); }
.also li { border-top: 1px solid var(--rule); padding-top: 14px; color: var(--ink-2); }
.also b { color: var(--result); font-size: 1.15em; }

/* ---------- How I work (a real sequence) ---------- */
.steps { list-style: none; counter-reset: s; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3em minmax(0, 5fr) minmax(0, 6fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.steps li::before { content: counter(s); font-size: 15px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; }
.steps p { margin: 0; color: var(--ink-2); max-width: 56ch; }

/* ---------- Career span (home and resume) ---------- */
.span { margin: 44px 0 0; }
.span__bar { display: flex; height: 12px; }
.span__bar i { display: block; height: 100%; }
.span__bar .t0 { background: #e3e5ec; }
.span__bar .t1 { background: #b4b8c6; }
.span__bar .t2 { background: #6f7489; }
.span__bar .t3 { background: var(--ink); }
.span__ticks { position: relative; height: 26px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.span__ticks span { position: absolute; top: 8px; }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 72px); margin-top: 28px; }
.places__yr { margin: 0 0 6px; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.places h3 { font-size: 22px; margin-bottom: 10px; }
.places p:last-child { color: var(--ink-2); margin: 0; }

/* ---------- Tools catalogue ---------- */
.catalogue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); margin-top: 48px; }
.catalogue h3 { font-size: 15px; font-weight: 700; padding-top: 12px; border-top: 2px solid var(--ink); }
.catalogue ul { list-style: none; margin: 8px 0 0; padding: 0; }
.catalogue li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 16px; line-height: 1.35; }
.catalogue li span { display: block; margin-top: 5px; font-weight: 400; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Work page ---------- */
.toc { position: sticky; top: var(--nav-h); z-index: 40; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.toc a { display: block; padding: 12px 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.toc a span { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.toc + .plate { margin-top: 0; }
.case { padding-top: var(--sec); scroll-margin-top: calc(var(--nav-h) + 40px); }
.case__meta { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }
.ledger { margin: 36px 0 0; border-top: 1px solid var(--ink); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.ledger dd { margin: 0; max-width: 68ch; }
.ledger dd b { color: var(--result); }
.ledger--wide dd b { color: var(--ink); display: block; font-size: 18.5px; margin-bottom: 4px; }

/* ---------- Approach ---------- */
.ruler { position: relative; height: 34px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ruler span { position: absolute; bottom: 10px; }
.ruler span::after { content: ""; position: absolute; left: 0; bottom: -11px; width: 1px; height: 8px; background: var(--ink); }
.ruler span[style*="right"]::after { left: auto; right: 0; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(32px, 4vw, 64px); }
.days__when { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.days h3 { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 14px; }
.days ul { list-style: none; margin: 0; padding: 0; }
.days ul li { padding: 11px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }

/* ---------- Contact ---------- */
.elsewhere { list-style: none; margin: 28px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--rule); }
.elsewhere li { padding: 16px 0; }
.elsewhere a { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.elsewhere span { display: block; font-size: 14px; color: var(--ink-3); }
.form-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: var(--sec); }
.sig { margin: 32px 0 0; display: flex; align-items: center; gap: 16px; }
.sig img { width: 72px; height: 72px; object-fit: cover; }
.sig figcaption { font-size: 14px; color: var(--ink-3); }
.cform { display: grid; gap: 20px; }
.cform__topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cform__topics legend { width: 100%; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.cform__topics label { position: relative; }
.cform__topics input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cform__topics span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #b9bdca; border-radius: 2px; font-size: 15px; }
.cform__topics input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.cform__topics input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.cform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cf { display: grid; gap: 6px; min-width: 0; }
.cf > span { font-size: 14px; font-weight: 600; }
.cf i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.cf input, .cf textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid #b9bdca; border-radius: 2px; padding: 12px 14px; }
.cf textarea { resize: vertical; min-height: 140px; }
.cf input:focus, .cf textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cf.is-bad input, .cf.is-bad textarea { border-color: var(--alert); box-shadow: inset 0 0 0 1px var(--alert); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cform__status { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.cform__status[data-tone="bad"] { color: var(--alert); }
.cform__status a { text-decoration: underline; }
.cform.is-sending .cform__send { opacity: .6; }
.cform__done h3 { font-size: 24px; margin-bottom: 8px; }

/* ---------- Resume ---------- */
.tl { margin-top: 40px; }
.tl__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; padding: 28px 0 36px; border-top: 2px solid var(--ink); }
.tl__when b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.tl__when span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.tl__co h2 { font-size: clamp(24px, 2.2vw, 30px); font-stretch: 90%; margin-bottom: 10px; }
.about { color: var(--ink-2); max-width: 68ch; }
.role { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.tl__co h2 + .role { border-top: 0; padding-top: 0; margin-top: 14px; }
.when { display: block; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.role h3 { font-size: 19px; line-height: 1.35; margin: 4px 0 10px; }
.role > p { max-width: 68ch; }
.role ul { margin: 10px 0 0; padding-left: 1.1em; max-width: 72ch; }
.role li { margin: 8px 0; }
.role li::marker { color: var(--ink-3); }
.role li b { color: var(--result); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 96px); margin-top: 40px; padding-bottom: var(--sec); }
.facts > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.facts > div b, .facts > div span { display: block; }
.facts > div span { color: var(--ink-2); font-size: 15.5px; }
.facts > div:has(+ .plain) { border-top: 1px solid var(--ink); padding-bottom: 6px; }
.plain { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Legal ---------- */
.legal { padding-bottom: var(--sec); }
.legal__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--rule); }
.legal__row h2 { font-size: 18px; }
.legal__body { max-width: 68ch; }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }
.legal__cookies { list-style: none; margin: 0 0 1em; padding: 0; }
.legal__cookies li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.legal__cookies code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.legal__upd { font-size: 14px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--ink); padding: 48px 0 28px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px; }
.foot__about p { color: var(--ink-2); max-width: 52ch; }
.foot__about b { color: var(--ink); }
.foot__list { list-style: none; margin: 0; padding: 0; }
.foot__list a { display: inline-block; padding: 5px 0; }
.foot__list a:hover, .foot__base a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__base { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: var(--ink-3); }
.foot__base > span:last-child { display: flex; gap: 22px; }

/* ---------- Questions, layers, checks, signals, paths (Dec 2026) ---------- */
.asks { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.asks li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.asks h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; }
.asks p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.more { margin: 28px 0 0; }
.layers { list-style: none; margin: 40px 0 0; padding: 0; }
.layers li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px; padding: 18px 0; border-top: 1px solid var(--rule); margin-left: calc(var(--d, 0) * clamp(16px, 4vw, 64px)); align-items: baseline; }
.layers li:first-child { border-top-color: var(--ink); }
.layers li:last-child { border-bottom: 2px solid var(--ink); }
.layers b { font-size: 15px; font-weight: 650; }
.layers p { margin: 0; max-width: 60ch; }
.layers li:last-child p { font-weight: 600; }
.checks { list-style: none; counter-reset: c; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); max-width: 720px; }
.checks li { counter-increment: c; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: clamp(18px, 1.4vw, 20px); font-weight: 600; line-height: 1.35; }
.checks li::before { content: counter(c); font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 3px; }
.list2 { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); border-top: 1px solid var(--ink); }
.list2 li { padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 18px; line-height: 1.4; }
.note { margin: 28px 0 0; color: var(--ink-2); max-width: 64ch; }
.sub3 { margin-top: clamp(48px, 6vw, 80px); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; max-width: 36ch; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 72px); margin-top: 8px; }
.paths > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.paths h3 { font-size: 22px; margin-bottom: 8px; }
.paths p { color: var(--ink-2); margin: 0 0 14px; max-width: 46ch; }
.paths .tlink { padding-left: 0; }
.toc--6 ol { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .asks li, .layers li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .layers li { margin-left: calc(var(--d, 0) * 14px); }
  .paths, .list2 { grid-template-columns: minmax(0, 1fr); }
  .toc--6 ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .nav__links .nav__cta { display: none; }
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .logo__role { display: none; }
  .burger { display: inline-flex; align-items: center; }
  .menu { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: var(--paper); padding: 24px var(--gutter) 32px; overflow-y: auto; flex-direction: column; justify-content: space-between; }
  .menu-open .menu { display: flex; }
  .menu-open { overflow: hidden; }
  .menu nav { display: grid; border-top: 1px solid var(--ink); }
  .menu nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 26px; font-stretch: 90%; font-weight: 650; }
  .menu nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .menu__foot { display: grid; gap: 4px; margin-top: 32px; font-size: 15px; color: var(--ink-2); }
  .menu__foot a { padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__photo { justify-self: start; max-width: 360px; max-height: none; }
  .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gates__lead { grid-column: 1 / -1; }
  .fit__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fit__row--head { display: none; }
  .fit__row p:last-child { justify-self: start; margin-top: 4px; }
  .exhibits, .also, .places, .days, .split, .form-wrap, .cols2 { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 2em minmax(0, 1fr); gap: 8px 16px; }
  .steps li p { grid-column: 2; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 6px 0; }
  .toc a { padding: 8px 0; }
  .ledger > div, .tl__row, .legal__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ruler { display: none; }
  .days > li { border-top: 1px solid var(--ink); padding-top: 14px; }
  .split .photo--side { order: -1; }
  .elsewhere { grid-template-columns: minmax(0, 1fr); }
  .elsewhere li { border-bottom: 1px solid var(--rule); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .hero { padding-top: 28px; }
  .h1, .hero__h { font-size: 33px; }
  .h2 { font-size: 26px; }
  .hero__photo { max-width: none; aspect-ratio: 1 / 1; }
  .gates { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gates div { grid-template-columns: 9em minmax(0, 1fr); column-gap: 12px; }
  .gates__lead { grid-template-columns: auto minmax(0, 1fr) !important; }
  .bar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bar__k { grid-column: 1 / -1; }
  .figs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .figs--big .is-mine dd { font-size: 48px; }
  .swap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tbl--stack thead { display: none; }
  .tbl--stack tr { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .tbl--stack td { border: 0; padding: 0; }
  .tbl--stack td:first-child { font-weight: 650; }
  .tbl td { font-size: 15px; }
  .catalogue { grid-template-columns: minmax(0, 1fr); }
  .span__t24 { display: none; }
  .cform__row { grid-template-columns: minmax(0, 1fr); }
  .legal__cookies li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .photo img { aspect-ratio: 4 / 3; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .hero__grid { min-height: 0; }
  .hero__photo { max-height: 52vh; }
}

/* Photo plates placed straight after a page intro */
.plate--top { margin-top: 0; }
.plate--top + .legal { padding-top: clamp(48px, 6vw, 80px); }
.plate--end { margin-bottom: var(--sec); }
.photo--form { margin: 32px 0 0; }
.photo--form img { aspect-ratio: 3 / 2; }

/* =========================================================
   Motion (26 Nov 2026)
   Rules: motion explains a figure or answers what the visitor does.
   Everything is visible without JS. Initial states only apply under html.mo,
   which the head script sets when reduced motion is off.
   Easing is ease-out only. UI feedback stays under 250ms.
   ========================================================= */
:root { --out: cubic-bezier(.16, 1, .3, 1); --out-q: cubic-bezier(.23, 1, .32, 1); }

/* --- Micro-interactions (all visitors with a pointer) --- */
.btn { transition: background-color .15s ease-out, transform .1s ease-out; }
.btn:active { transform: scale(.97); }
.tlink, .close__mail, .elsewhere a, .plate figcaption a, .photo figcaption a, .legal__body a {
  transition: color .15s ease-out, text-underline-offset .2s var(--out-q), text-decoration-thickness .2s var(--out-q);
}
.tlink:hover, .elsewhere a:hover { text-underline-offset: 3px; text-decoration-thickness: 2px; }
.close__mail:hover { text-underline-offset: .08em; text-decoration-thickness: 3px; }
button.tlink.is-copied { color: var(--result); text-decoration-color: transparent; }

.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--out-q); }
.nav__links .nav__cta::after { left: 28px; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a[aria-current] { text-decoration: none; }
.nav__links a[aria-current]::after { transform: scaleX(1); }

.foot__list a, .foot__base a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--out-q); }
.foot__list a:hover, .foot__base a:hover { text-decoration: none; background-size: 100% 1px; }

/* Problem rows are links to the case */
.fit__row:not(.fit__row--head) { position: relative; transition: background-color .2s ease-out; }
.fit__row .tlink::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) {
  .fit__row:not(.fit__row--head) { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .fit__row:not(.fit__row--head):hover { background: #f4f5f8; }
  .fit__row:hover .tlink { text-underline-offset: 3px; text-decoration-thickness: 2px; }
  .fit__row .fit__p { transition: transform .25s var(--out-q); }
  .fit__row:hover .fit__p { transform: translateX(4px); }
}

/* Work page: the case you are reading */
.toc a { position: relative; transition: color .15s ease-out; }
.toc a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--out-q); }
.toc a.is-current::after { transform: scaleX(1); }
.toc a:not(.is-current) { color: var(--ink-2); }
.toc a:hover { text-decoration: none; color: var(--ink); }

/* Form */
.cform__topics span { transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.cform__topics label:hover input:not(:checked) + span { border-color: var(--ink); }
.cf input, .cf textarea { transition: border-color .15s ease-out, box-shadow .15s ease-out; }

/* Photos: a slow settle on hover, only where a pointer can hover */
@media (hover: hover) {
  .plate, .photo { overflow: hidden; }
  .plate img, .photo img { transition: transform 1.2s var(--out); }
  .plate:hover img, .photo:hover img { transform: scale(1.02); }
}

/* --- Animated states (html.mo only) --- */
@keyframes mo-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mo-fade { from { opacity: 0; } }
@keyframes mo-unclip { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mo-settle { from { transform: scale(1.08); } }
@keyframes mo-draw { from { transform: scaleX(0); } }

/* Page intros: once, on load */
.mo .hero__text > *, .mo .phero .wrap > * { animation: mo-rise .7s var(--out) both; }
.mo .hero__text > :nth-child(2), .mo .phero .wrap > :nth-child(2) { animation-delay: .08s; }
.mo .hero__text > :nth-child(3), .mo .phero .wrap > :nth-child(3) { animation-delay: .16s; }
.mo .phero .wrap > :nth-child(4) { animation-delay: .24s; }
.mo .phero .wrap > :nth-child(5) { animation-delay: .3s; }
.mo .hero__photo { animation: mo-unclip 1s var(--out) .12s both; }
.mo .hero__photo img { animation: mo-settle 1.4s var(--out) .12s both; }
.mo .gates { position: relative; border-top-color: transparent; animation: mo-fade .6s ease-out .35s both; }
.mo .gates::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform-origin: left; animation: mo-draw 1s var(--out) .3s both; }

/* Exhibits draw themselves when they come into view */
.mo .ex { position: relative; border-top-color: transparent; }
.mo .ex::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--out); }
.mo .ex.in::before { transform: none; }
.mo .bar__track i { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--out); transition-delay: calc(.25s + var(--i, 0) * .14s); }
.mo .ex.in .bar__track i { transform: none; }
.mo .bar.is-mine .bar__track i { transition-delay: calc(.45s + var(--i, 0) * .14s); }
.mo .swap__out s { text-decoration: none; background: linear-gradient(var(--ink-2), var(--ink-2)) 0 58% / 0 2px no-repeat; transition: background-size .5s var(--out); transition-delay: calc(.35s + var(--i, 0) * .18s); }
.mo .ex.in .swap__out s { background-size: 100% 2px; }
.mo .figs dd, .mo .tbl td.is-mine { transition: opacity .6s ease-out .5s, transform .6s var(--out) .5s; }
.mo .ex:not(.in) .figs dd, .mo .ex:not(.in) .tbl td.is-mine { opacity: 0; transform: translateY(6px); }

/* Time moves left to right */
.mo .span__bar i { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--out-q); transition-delay: calc(var(--i, 0) * .22s); }
.mo .span.in .span__bar i { transform: none; }
.ruler { border-bottom: 0; }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform-origin: left; }
.mo .ruler::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.65, 0, .35, 1); }
.mo .ruler.in::before { transform: none; }
.mo .ruler span { opacity: 0; transition: opacity .4s ease-out; }
.mo .ruler.in span { opacity: 1; }
.mo .ruler.in span:nth-child(2) { transition-delay: .45s; }
.mo .ruler.in span:nth-child(3) { transition-delay: .9s; }
.mo .ruler.in span:nth-child(4) { transition-delay: 1.3s; }

/* Phone menu */
@media (max-width: 900px) {
  .mo.menu-open .menu, .mo .menu-open .menu { animation: mo-fade .2s ease-out both; }
  .mo .menu-open .menu nav a { animation: mo-rise .45s var(--out) both; }
  .mo .menu-open .menu nav a:nth-child(2) { animation-delay: .04s; }
  .mo .menu-open .menu nav a:nth-child(3) { animation-delay: .08s; }
  .mo .menu-open .menu nav a:nth-child(4) { animation-delay: .12s; }
  .mo .menu-open .menu nav a:nth-child(5) { animation-delay: .16s; }
  .mo .menu-open .menu__foot { animation: mo-fade .4s ease-out .2s both; }
}

/* Form success */
.mo .cform__done { animation: mo-rise .6s var(--out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Work page: alternate cases on a faint shade so each one reads as its own block */
:root { --shade: #f5f6f9; }
.case { padding-bottom: var(--sec); }
.case:nth-of-type(even) { background: var(--shade); }
.case + .close { padding-top: var(--sec); }
.case + .plate { margin-top: 0; }
.foot__alt { font-size: 14.5px; } .foot__alt a { text-decoration: underline; text-underline-offset: 3px; }
.catalogue--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .catalogue--3 { grid-template-columns: minmax(0, 1fr); } }
