/* =========================================================
   Karn Anand — Portfolio
   Editorial, type-led system. No build step.
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Header/Nav
             5 Type & UI atoms · 6 Home · 7 Work index
             8 Case study · 9 About · 10 Footer · 11 Demos
             12 Utilities / motion / print
   ========================================================= */

/* 1 ─ Tokens ------------------------------------------------ */
:root {
  --bg: #f4f1ea;
  --surface: #fbfaf6;
  --surface-2: #ece8de;
  --ink: #16150f;
  --ink-2: #47443c;
  --ink-3: #78736a;
  --rule: #d9d3c6;
  --rule-strong: #16150f;
  --accent: #b4361f;
  --accent-ink: #ffffff;
  --focus: #1f5fd1;

  /* product tints for typographic covers */
  --tint-messenger: #dfe9f1;
  --tint-cinema: #1d2a5c;
  --tint-rewards: #f2e3c6;
  --tint-r1: #e1e6dc;
  --tint-gartner: #e6e0ee;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.83rem, 0.81rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.73rem, 1.48rem + 1.25vw, 2.5rem);
  --step-4: clamp(2.07rem, 1.66rem + 2vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.8rem + 3.4vw, 4.75rem);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 136px;

  --gutter: 16px;
  --max: 1200px;
  --measure: 66ch;
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --header-h: 72px; } }

:root { color-scheme: light; }

/* 2 ─ Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--step-0); line-height: 1.6;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* 3 ─ Layout ------------------------------------------------ */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-8) 0; }
@media (min-width: 900px) { .section { padding: var(--space-9) 0; } }
.section--tight { padding: var(--space-8) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 899px) { .grid-12 { grid-template-columns: 1fr; } .grid-12 > * { grid-column: 1 / -1 !important; } }

.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-7); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 4fr 8fr; align-items: end; gap: var(--space-5); }
}
.section-head h2 { font-family: var(--font-display); font-size: var(--step-4); }
.section-head p { color: var(--ink-2); max-width: 52ch; margin: 0; }

/* 4 ─ Header / Nav ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; }
.brand__role { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; display: none; }
@media (min-width: 1024px) { .brand__role { display: inline; } }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav__list { list-style: none; display: flex; gap: var(--space-1); }
.nav__link {
  display: inline-block; padding: 8px 12px; text-decoration: none; font-size: 0.95rem; color: var(--ink-2);
  border-radius: var(--radius);
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { content: ""; display: block; height: 1px; background: var(--ink); margin-top: 2px; }
.menu-toggle {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--rule);
}
.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

@media (max-width: 799px) {
  .menu-toggle { display: inline-grid; }
  .nav__list {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--rule); padding: var(--space-3) var(--gutter) var(--space-5);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s var(--ease);
  }
  .nav__list.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { display: block; padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav__link:hover { background: none; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav .btn--sm { display: none; }
}

/* 5 ─ Type & UI atoms --------------------------------------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px color-mix(in srgb, #2f9e5b 22%, transparent); }
.display { font-family: var(--font-display); font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.02em; }
.display em, .h-serif em { font-style: italic; color: var(--accent); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.h-serif { font-family: var(--font-display); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-size: .85em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 500; font-size: 0.98rem; transition: transform .15s var(--ease), background .15s;
}
.btn:hover { color: var(--bg); transform: translateY(-1px); background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; padding: 4px 9px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); }

/* Involvement meter — shows leadership vs hands-on split */
.involve { display: grid; gap: 8px; }
.involve__row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; font-size: .85rem; color: var(--ink-2); }
.involve__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.involve__bar span { height: 6px; background: var(--rule); border-radius: 1px; }
.involve__bar span.on { background: var(--ink); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule-strong); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: var(--space-5) var(--space-4) var(--space-5) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .stat { border-bottom: 0; } .stat + .stat { padding-left: var(--space-5); border-left: 1px solid var(--rule); } }
.stat__num { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; display: block; margin-bottom: 10px; }
.stat__label { font-size: .9rem; color: var(--ink-2); line-height: 1.45; display: block; max-width: 26ch; }

/* Media frames (images may be added later; frame keeps layout) */
.media { margin: 0; }
.media__frame { position: relative; background: var(--surface-2); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule); }
.media__frame img, .media__frame video { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing .media__frame img, .media.is-missing .media__frame video { display: none; }
.media.is-missing .media__frame { aspect-ratio: var(--ar, 4/3); display: grid; place-items: center; }
.media.is-missing .media__frame::after { content: attr(data-label); font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); padding: 16px; text-align: center; }
.media figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 10px; }

/* 6 ─ Home -------------------------------------------------- */
.hero { padding: var(--space-7) 0 var(--space-5); }
.hero + .section--tight { padding-top: var(--space-5); }
@media (min-width: 1024px) { .hero { padding: var(--space-9) 0 var(--space-5); } }
.hero__grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 8fr 4fr; align-items: end; gap: var(--space-8); } }
.hero .display { margin: var(--space-5) 0 var(--space-5); max-width: 15ch; }
.hero .lede { margin-bottom: var(--space-6); }

.now-card { border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); padding: var(--space-5); background: var(--surface); }
.now-card h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-4); }
.now-card__role { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; margin-bottom: 6px; }
.now-card__org { color: var(--ink-2); font-size: .95rem; margin-bottom: var(--space-4); }
.now-card ul { list-style: none; border-top: 1px solid var(--rule); }
.now-card li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.now-card li span:last-child { color: var(--ink-3); font-family: var(--font-mono); font-size: .78rem; text-align: right; }

.logo-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; padding: var(--space-5) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: var(--space-8); }
.logo-row__label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); flex-basis: 100%; margin-bottom: 4px; }
@media (min-width: 900px) { .logo-row__label { flex-basis: auto; margin: 0 12px 0 0; } }
.logo-row span.co { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink-2); }

/* Feature case rows */
.case-list { display: grid; gap: var(--space-8); }
.case-feature { display: grid; gap: var(--space-5); text-decoration: none; color: inherit; }
@media (min-width: 900px) {
  .case-feature { grid-template-columns: 7fr 5fr; gap: var(--space-7); align-items: center; }
  article:nth-child(even) > .case-feature .cover { order: 2; }
}
.case-feature:hover { color: inherit; }
.case-feature:hover .cover__inner { transform: scale(1.015); }
.case-feature:hover .case-feature__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.case-feature__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: var(--space-3); }
.case-feature__title { font-family: var(--font-display); font-size: var(--step-3); margin-bottom: var(--space-3); }
.case-feature__desc { color: var(--ink-2); margin-bottom: var(--space-5); max-width: 48ch; }
.case-feature__metrics { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-5); padding: var(--space-4) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: var(--space-5); }
.case-feature__metrics b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1; margin-bottom: 4px; }
.case-feature__metrics small { font-size: .78rem; color: var(--ink-3); line-height: 1.3; display: block; max-width: 16ch; }
.case-feature .involve { margin-bottom: var(--space-5); }

/* Typographic covers */
.cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; position: relative; border: 1px solid var(--rule); }
.cover__inner { position: absolute; inset: 0; padding: var(--space-5); display: flex; flex-direction: column; justify-content: space-between; transition: transform .5s var(--ease); }
.cover__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover__top, .cover__bottom { position: relative; z-index: 1; }
.cover__top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.cover__word { font-family: var(--font-display); font-size: clamp(2rem, 1.2rem + 4vw, 4.2rem); line-height: .95; letter-spacing: -0.03em; }
.cover__sub { font-size: .9rem; margin-top: 10px; opacity: .8; max-width: 30ch; }
.cover--messenger { background: var(--tint-messenger); color: var(--ink); }
.cover--cinema { background: var(--tint-cinema); color: #f3f1ff; }
.cover--rewards { background: var(--tint-rewards); color: var(--ink); }
.cover--r1 { background: var(--tint-r1); color: var(--ink); }
.cover--gartner { background: var(--tint-gartner); color: var(--ink); }

/* Cover art — abstract, product-specific, CSS only */
.art { position: absolute; z-index: 0; pointer-events: none; }
.art--tokens { right: 6%; top: 18%; display: grid; gap: 8px; width: 46%; }
.art--tokens span { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: clamp(.55rem, .4rem + .5vw, .75rem); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; }
.art--tokens i { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.art--reel { right: -4%; top: 10%; bottom: 10%; width: 50%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; transform: rotate(-8deg); }
.art--reel i { border-radius: 8px; background: linear-gradient(180deg, #3d5bd9, #00a8f3); opacity: .55; }
.art--reel i:nth-child(2n) { opacity: .3; transform: translateY(18%); }
.art--coins { right: 8%; top: 16%; width: 42%; aspect-ratio: 1; }
.art--coins i { position: absolute; width: 42%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); background: color-mix(in srgb, #e3a73b 70%, transparent); }
.art--coins i:nth-child(1) { left: 0; top: 30%; } .art--coins i:nth-child(2) { left: 30%; top: 0; } .art--coins i:nth-child(3) { left: 55%; top: 40%; }
.art--panels { right: 6%; top: 16%; width: 52%; height: 50%; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 6px; }
.art--panels i { border: 1.5px solid var(--ink); border-radius: 4px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.art--home { right: 6%; top: 16%; width: 50%; height: 52%; display: grid; grid-template-rows: 1fr 2fr; grid-template-columns: 1fr 1fr; gap: 6px; }
.art--home i { border: 1.5px solid var(--ink); border-radius: 4px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.art--home i:first-child { grid-column: 1 / -1; }

/* Compact case cards (earlier work) */
.case-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .case-grid { grid-template-columns: 1fr 1fr; } }
.case-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 1px solid var(--rule-strong); padding-top: var(--space-5); }
.case-card .cover { aspect-ratio: 16 / 10; margin-bottom: var(--space-5); }
.case-card:hover { color: inherit; }
.case-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.case-card h3 { font-family: var(--font-display); font-size: var(--step-2); margin: 10px 0; }
.case-card p { color: var(--ink-2); font-size: .95rem; }
.case-card__metric { margin-top: auto; padding-top: var(--space-4); font-size: .9rem; display: flex; gap: 10px; align-items: baseline; }
.case-card__metric b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }

/* On-request rows */
.req-list { list-style: none; border-top: 1px solid var(--rule); }
.req { display: grid; gap: var(--space-3); padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .req { grid-template-columns: 2fr 5fr 3fr 2fr; align-items: baseline; gap: var(--space-5); } }
.req h3 { font-family: var(--font-display); font-size: var(--step-1); }
.req p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.req__metric { font-size: .85rem; color: var(--ink-2); }
.req__cta { justify-self: start; }
@media (min-width: 900px) { .req__cta { justify-self: end; } }

/* Leadership */
.lead-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .lead-grid { grid-template-columns: 5fr 7fr; gap: var(--space-8); } }
.scope { align-self: start; border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.scope__head { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.scope__head b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }
.scope__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.scope__table th, .scope__table td { padding: 12px var(--space-4); text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.scope__table thead th { font-family: var(--font-mono); font-weight: 400; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.scope__table tbody th { font-weight: 500; }
.scope__table tr:last-child th, .scope__table tr:last-child td { border-bottom: 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); vertical-align: middle; }
.dot--full { background: var(--ink); }
.dot--half { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.scope__legend { display: flex; flex-wrap: wrap; gap: 16px; padding: var(--space-3) var(--space-5); border-top: 1px solid var(--rule); font-size: .78rem; color: var(--ink-3); }
.scope__legend span { display: inline-flex; gap: 6px; align-items: center; }
.scope-wrap { overflow-x: auto; }

.team-bars { list-style: none; display: grid; gap: var(--space-4); margin: var(--space-6) 0; }
.team-bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: .9rem; }
.team-bars .bar { grid-column: 1 / -1; height: 10px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.team-bars .bar i { display: block; height: 100%; background: var(--ink); width: var(--w); transform-origin: left; }
.team-bars b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); }

.pillars { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .pillar { padding: var(--space-5) var(--space-5) var(--space-5) 0; border-bottom: 0; } .pillar + .pillar { padding-left: var(--space-5); border-left: 1px solid var(--rule); } }
.pillar__n { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.pillar h3 { font-family: var(--font-display); font-size: var(--step-2); margin: 8px 0 10px; }
.pillar p { color: var(--ink-2); font-size: .95rem; }
.pillar ul { list-style: none; display: grid; gap: 8px; font-size: .92rem; }
.pillar li { padding-left: 16px; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--ink-3); }

.ai-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule); counter-reset: ai; }
.ai-list li { display: grid; gap: var(--space-3); padding: var(--space-5) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .ai-list li { grid-template-columns: 1fr 4fr 6fr; gap: var(--space-5); } }
.ai-list li::before { counter-increment: ai; content: "0" counter(ai); font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.ai-list h3 { font-family: var(--font-display); font-size: var(--step-1); }
.ai-list p { margin: 0; color: var(--ink-2); }

.quote { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.25; max-width: 28ch; margin: 0 0 var(--space-5); }
.quote::before { content: "“"; color: var(--accent); }
.quote::after { content: "”"; color: var(--accent); }
.quote-cite { font-size: .95rem; color: var(--ink-2); }
.quote-cite b { color: var(--ink); font-weight: 500; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-5); }
@media (min-width: 900px) { .cta-band { padding: var(--space-9) var(--space-8); } }
.cta-band h2 { font-family: var(--font-display); font-size: var(--step-4); max-width: 18ch; margin-bottom: var(--space-5); }
.cta-band p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 50ch; margin-bottom: var(--space-6); }
.cta-band .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-band .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cta-band .btn--ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.cta-band .btn--ghost:hover { background: var(--bg); color: var(--ink); }

/* 7 ─ Work index -------------------------------------------- */
.page-head { padding: var(--space-8) 0 var(--space-7); }
.page-head h1 { font-family: var(--font-display); font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.02em; margin: var(--space-4) 0; max-width: 18ch; }
.page-head .lede { max-width: 56ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-7); }
.filter { border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: 8px 14px; font-size: .88rem; min-height: 40px; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.work-table { list-style: none; border-top: 1px solid var(--rule-strong); }
.work-row { border-bottom: 1px solid var(--rule); }
.work-row a { display: grid; gap: 8px; padding: var(--space-5) 0; text-decoration: none; color: inherit; }
@media (min-width: 900px) { .work-row a { grid-template-columns: 1.2fr 4fr 3fr 1fr; gap: var(--space-5); align-items: baseline; } }
.work-row a:hover { color: inherit; }
.work-row a:hover h2 { color: var(--accent); }
.work-row h2 { font-family: var(--font-display); font-size: var(--step-2); transition: color .15s; }
.work-row p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.work-row .yr { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.work-row .go { justify-self: end; font-size: .9rem; display: none; }
@media (min-width: 900px) { .work-row .go { display: inline; } }
.work-row[hidden] { display: none; }

/* 8 ─ Case study -------------------------------------------- */
.crumbs { font-size: .85rem; color: var(--ink-3); padding-top: var(--space-6); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.cs-head { padding: var(--space-6) 0 var(--space-7); }
.cs-head h1 { font-family: var(--font-display); font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.02em; margin: var(--space-4) 0 var(--space-5); max-width: 18ch; }
.cs-head .lede { max-width: 58ch; }
.cs-hero .cover { aspect-ratio: 16 / 8; }
@media (max-width: 639px) { .cs-hero .cover { aspect-ratio: 4 / 3; } }

.glance { display: grid; gap: var(--space-5); padding: var(--space-7) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .glance { grid-template-columns: 3fr 3fr 3fr 3fr; gap: var(--space-6); } }
.glance h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; font-weight: 400; }
.glance p { font-size: .98rem; margin: 0; }
.glance dl { margin: 0; display: grid; gap: 12px; font-size: .9rem; }
.glance dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.glance dd { margin: 2px 0 0; }

.cs-stats { padding: var(--space-6) 0; }

.cs-body { display: grid; gap: var(--space-7); padding: var(--space-8) 0; }
@media (min-width: 1024px) { .cs-body { grid-template-columns: 3fr 9fr; gap: var(--space-8); } }
.toc { display: none; }
@media (min-width: 1024px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .toc h2 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 400; }
  .toc ol { list-style: none; border-left: 1px solid var(--rule); }
  .toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: .88rem; color: var(--ink-3); text-decoration: none; }
  .toc a:hover { color: var(--ink); }
  .toc a.is-active { color: var(--ink); border-left-color: var(--ink); }
  .toc .involve { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--rule); }
  .toc .involve__row { grid-template-columns: 1fr; gap: 4px; font-size: .8rem; }
}

.prose { min-width: 0; }
.chapter { padding-bottom: var(--space-8); margin-bottom: var(--space-8); border-bottom: 1px solid var(--rule); }
.chapter:last-child { border-bottom: 0; margin-bottom: 0; }
.chapter__n { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); letter-spacing: .08em; }
.chapter h2 { font-family: var(--font-display); font-size: var(--step-3); margin: 8px 0 var(--space-5); max-width: 24ch; }
.chapter h3 { font-family: var(--font-display); font-size: var(--step-1); margin: var(--space-6) 0 var(--space-3); }
.chapter p, .chapter li { max-width: var(--measure); color: var(--ink-2); }
.chapter p strong, .chapter li strong { color: var(--ink); font-weight: 500; }
.chapter ul.bullets, .chapter ol.steps { margin: 0 0 1em; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.chapter ul.bullets li { padding-left: 20px; position: relative; }
.chapter ul.bullets li::before { content: ""; position: absolute; left: 0; top: .75em; width: 9px; height: 1px; background: var(--ink); }
.chapter ol.steps { counter-reset: s; gap: 0; border-top: 1px solid var(--rule); }
.chapter ol.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.chapter ol.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); padding-top: 3px; }
.chapter ol.steps li b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.chapter figure { margin: var(--space-6) 0; }
.chapter code { font-family: var(--font-mono); font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 3px; color: var(--ink); }

.pull { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; color: var(--ink); border-left: 2px solid var(--accent); padding: 4px 0 4px var(--space-5); margin: var(--space-6) 0; max-width: 34ch; }
.pull cite { display: block; font-family: var(--font-sans); font-style: normal; font-size: .85rem; color: var(--ink-3); margin-top: 10px; }

.callout { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-5); margin: var(--space-6) 0; }
.callout h3 { margin-top: 0 !important; }
.callout p:last-child { margin-bottom: 0; }

.decisions { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
@media (min-width: 700px) { .decisions { grid-template-columns: 1fr 1fr; } }
.decision { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-5); background: var(--surface); }
.decision h3 { font-family: var(--font-display); font-size: var(--step-1); margin: 0 0 8px !important; }
.decision p { font-size: .94rem; margin: 0; }

.table-wrap { overflow-x: auto; margin: var(--space-5) 0; border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data-table thead th { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; background: var(--surface); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table code { white-space: nowrap; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--rule); vertical-align: -1px; margin-right: 6px; }

.gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .media__frame { aspect-ratio: 9 / 19; }
.gallery figcaption b { color: var(--ink); font-weight: 500; display: block; }

.timeline { list-style: none; border-left: 1px solid var(--rule-strong); margin: var(--space-5) 0; }
.timeline li { position: relative; padding: 0 0 var(--space-5) var(--space-5); }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); }
.timeline li:last-child::before { background: var(--ink); }
.timeline b { display: block; font-family: var(--font-mono); font-size: .75rem; font-weight: 400; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }

.module-grid { display: grid; gap: var(--space-3); margin: var(--space-5) 0; }
@media (min-width: 700px) { .module-grid { grid-template-columns: 1fr 1fr; } }
.module { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-4); font-size: .92rem; background: var(--surface); }
.module b { display: block; font-weight: 500; margin-bottom: 4px; }
.module span { color: var(--ink-2); }

.outcome { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--space-8) 0; }
.outcome h2 { font-family: var(--font-display); font-size: var(--step-4); margin-bottom: var(--space-6); }
.outcome .stats { margin-bottom: var(--space-6); }
.outcome p { max-width: var(--measure); color: var(--ink-2); }

.next-case { display: block; text-decoration: none; padding: var(--space-8) 0; border-top: 1px solid var(--rule); color: inherit; }
.next-case:hover { color: inherit; }
.next-case:hover .next-case__title { color: var(--accent); }
.next-case__title { font-family: var(--font-display); font-size: var(--step-4); margin-top: var(--space-3); max-width: 20ch; transition: color .15s; }

/* 9 ─ About ------------------------------------------------- */
.about-intro { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .about-intro { grid-template-columns: 7fr 5fr; gap: var(--space-8); align-items: start; } }
.about-intro .prose-lg p { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.about-intro .prose-lg p:first-child { color: var(--ink); }
.portrait .media__frame { aspect-ratio: 4 / 5; }
.facts { list-style: none; border-top: 1px solid var(--rule); margin-top: var(--space-5); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.facts li span:first-child { color: var(--ink-3); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.facts li span:last-child { text-align: right; }

.career { list-style: none; border-top: 1px solid var(--rule-strong); }
.career__item { display: grid; gap: var(--space-3); padding: var(--space-6) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .career__item { grid-template-columns: 2fr 4fr 6fr; gap: var(--space-5); } }
.career__when { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.career__role { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.career__org { color: var(--ink-2); margin-top: 4px; }
.career__body p { color: var(--ink-2); margin-bottom: var(--space-3); }
.career__item.is-current .career__when { color: var(--ink); }

.principles { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle { border-top: 1px solid var(--rule-strong); padding-top: var(--space-4); }
.principle h3 { font-family: var(--font-display); font-size: var(--step-2); margin-bottom: 8px; }
.principle p { color: var(--ink-2); margin: 0; }

.three-col { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .three-col { grid-template-columns: repeat(3, 1fr); } }
.three-col h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-4); font-weight: 400; }
.three-col ul { list-style: none; border-top: 1px solid var(--rule); }
.three-col li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.three-col li small { display: block; color: var(--ink-3); }

/* 10 ─ Footer ----------------------------------------------- */
.site-footer { padding: var(--space-8) 0 var(--space-6); border-top: 1px solid var(--rule); margin-top: var(--space-9); }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 6fr 3fr 3fr; } }
.footer-grid h2 { font-family: var(--font-display); font-size: var(--step-3); max-width: 16ch; margin-bottom: var(--space-4); }
.footer-grid h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-3); font-weight: 400; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--rule); font-size: .82rem; color: var(--ink-3); }

/* 11 ─ Demos ------------------------------------------------ */
.demo { border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); background: var(--surface); margin: var(--space-6) 0; overflow: hidden; }
.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--space-4); border-bottom: 1px solid var(--rule); }
.demo__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.demo__body { padding: var(--space-5); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-size: .82rem; min-height: 32px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.tiers { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .tiers { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; } }
.tier { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--space-4); background: var(--bg); }
.tier small { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 8px; }
.tier code { font-family: var(--font-mono); font-size: .8rem; display: block; word-break: break-all; }
.tier .val { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2); }
.tier .val i { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--rule); transition: background .3s; }
.tier-arrow { display: grid; place-items: center; color: var(--ink-3); font-family: var(--font-mono); }
@media (max-width: 699px) { .tier-arrow { transform: rotate(90deg); height: 20px; } }

.dl-demo { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.dl-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); position: relative; display: grid; place-items: center; }
.dl-btn svg.icon { width: 24px; height: 24px; position: relative; z-index: 1; }
.dl-btn svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dl-btn svg.ring circle { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 188.5; stroke-dashoffset: 188.5; transition: stroke-dashoffset .12s linear; }
.dl-status { font-size: .95rem; }
.dl-status b { display: block; font-weight: 500; }
.dl-status span { color: var(--ink-3); font-size: .85rem; }

.mission { display: grid; gap: var(--space-4); max-width: 420px; }
.mission__card { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-4); background: var(--bg); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.mission__title { font-weight: 500; }
.mission__meta { font-size: .82rem; color: var(--ink-3); grid-column: 1; }
.mission__track { grid-column: 1 / -1; height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.mission__track i { display: block; height: 100%; background: var(--ink); width: 0; transition: width .25s var(--ease); }
.mission__state { grid-column: 2; grid-row: 1 / 3; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--rule); }
.mission__state[data-s="ready"] { background: #2f9e5b; color: #fff; border-color: #2f9e5b; }
.mission__state[data-s="claimed"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mission__state[data-s="expired"] { color: var(--ink-3); text-decoration: line-through; }
.mission__states { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.mission__states li { padding: 4px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-3); }
.mission__states li.on { border-color: var(--ink); color: var(--ink); }

.brand-compare { display: grid; gap: var(--space-4); }
.brand-panel { border-radius: var(--radius); padding: var(--space-5); display: grid; gap: 14px; }
.brand-panel[hidden] { display: none; }
.brand-panel--v1 { background: #0f1a3d; color: #e8ecff; }
.brand-panel--final { background: #08122e; color: #fff; }
.brand-panel h4 { font-size: var(--step-2); font-family: var(--font-display); }
.brand-panel dl { margin: 0; display: grid; gap: 10px; font-size: .88rem; }
@media (min-width: 700px) { .brand-panel dl { grid-template-columns: 110px 1fr; } }
.brand-panel dt { opacity: .6; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.brand-panel dd { margin: 0; }

.layout-diagram { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 8px; padding: var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg); min-height: 280px; }
.layout-diagram > div { border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: .78rem; }
.layout-diagram b { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: var(--ink-3); margin-bottom: 4px; }
.layout-diagram i { display: block; height: 8px; border-radius: 2px; background: var(--rule); }
.layout-diagram i.w60 { width: 60%; } .layout-diagram i.w80 { width: 80%; } .layout-diagram i.w40 { width: 40%; }
.layout-diagram .chip { font-style: normal; font-family: var(--font-mono); font-size: .64rem; padding: 3px 6px; border-radius: 999px; border: 1px solid var(--ink); align-self: flex-start; }
@media (max-width: 599px) { .layout-diagram { grid-template-columns: 1fr; min-height: 0; } }

.shift { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 700px) { .shift { grid-template-columns: 1fr auto 1fr; } }
.shift__col { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-5); background: var(--bg); }
.shift__col small { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.shift__col h4 { font-family: var(--font-display); font-size: var(--step-2); margin: 6px 0 12px; }
.shift__col ul { list-style: none; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.shift__col--after { border-color: var(--ink); }
.shift__arrow { font-family: var(--font-mono); text-align: center; color: var(--ink-3); }

/* 12 ─ Utilities / motion / print --------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .toc, .cta-band, .demo, .next-case { display: none !important; }
  body { background: #fff; color: #000; }
}

/* compact covers: keep art clear of the wordmark */
.case-card .cover__word { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); }
.case-card .art--panels, .case-card .art--home { top: 14%; height: 36%; width: 44%; }
.cs-hero .art--panels, .cs-hero .art--home { height: 44%; width: 40%; }
.chapter .media--phone { max-width: 340px; }
.chapter .media--phone .media__frame { aspect-ratio: 9 / 16; }

/* Work tiles — one card pattern for all work (low cognitive load) */
.tile-grid { display: grid; gap: var(--space-7) var(--space-5); }
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-7) var(--space-6); } .tile-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.tile { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.tile:hover { color: inherit; }
.tile .cover { aspect-ratio: 4 / 5; margin-bottom: var(--space-5); }
.tile-grid--2 .tile .cover { aspect-ratio: 16 / 10; }
.tile .cover__word { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); }
.tile .cover__sub { font-size: .85rem; }
.tile:hover .cover__inner { transform: scale(1.02); }
.tile__body { display: flex; flex-direction: column; flex: 1; }
.tile__title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.18; margin: 10px 0 8px; }
.tile:hover .tile__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.tile__role { font-size: .92rem; color: var(--ink-3); margin: 0 0 var(--space-4); }
.tile__metric { margin: auto 0 0; padding-top: var(--space-4); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .88rem; color: var(--ink-2); }
.tile__metric b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); margin-right: 2px; }
/* tighter art placement inside portrait/compact covers */
.tile .art--tokens { top: 14%; right: 8%; width: 70%; }
.tile .art--reel { top: 8%; bottom: 38%; width: 70%; right: -6%; }
.tile .art--coins { top: 10%; width: 56%; }
.tile .art--panels, .tile .art--home { top: 14%; height: 40%; width: 50%; }

/* Proof band (testimonial) — sits between numbers and work */
.proof { padding: 0 0 var(--space-7); }
.proof__inner { margin: 0; display: grid; gap: var(--space-4); padding: var(--space-6) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .proof__inner { grid-template-columns: 8fr 4fr; align-items: end; gap: var(--space-7); } }
.proof__quote { margin: 0; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.22; max-width: 30ch; }
.proof__quote em { font-style: italic; color: var(--accent); }
.proof__cite { display: flex; flex-direction: column; font-size: .92rem; color: var(--ink-3); }
@media (min-width: 900px) { .proof__cite { text-align: right; } }
.proof__cite b { color: var(--ink); font-weight: 500; }
/* alignment + rhythm refinements */
@media (min-width: 700px) { .tile__title { min-height: 2.36em; } }
.tile__metric { flex-direction: column; gap: 6px; }
.proof + .section { padding-top: var(--space-7); }
.logo-row__label { flex-basis: 100% !important; margin: 0 0 4px !important; }
@media (max-width: 699px) {
  .tile .cover, .tile-grid--2 .tile .cover { aspect-ratio: 4 / 3; }
  .tile .art--tokens { top: 18%; right: 6%; width: 50%; }
  .tile .art--reel { top: 10%; bottom: 10%; width: 50%; right: -4%; }
  .tile .art--coins { top: 16%; width: 40%; }
}

/* Bento — numbers and testimonial as one proof block */
.bento-sec { padding: var(--space-6) 0 var(--space-4); }
.bento { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .bento { grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; } }
.bento__hero {
  grid-column: 1 / -1; margin: 0; position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg); border-radius: 18px;
  padding: var(--space-6) var(--space-5); display: flex; flex-direction: column;
}
@media (min-width: 900px) { .bento__hero { grid-column: 1; grid-row: 1 / 3; padding: var(--space-7) var(--space-6); } }
.bento__hero::after { /* soft ring echoing the big number */
  content: ""; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
  box-shadow: 0 0 0 40px color-mix(in srgb, var(--bg) 3%, transparent), 0 0 0 80px color-mix(in srgb, var(--bg) 2%, transparent);
  pointer-events: none;
}
.bento__tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.bento__big { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 8vw, 9.5rem); line-height: .9; letter-spacing: -0.04em; margin-top: var(--space-5); color: #f0795e; font-variant-numeric: tabular-nums; }
.bento__unit { font-size: .55em; margin-left: 4px; vertical-align: .55em; }
.bento__biglabel { font-size: .95rem; opacity: .7; margin: 8px 0 var(--space-6); }
.bento__quote { margin: auto 0 var(--space-5); font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1.3; max-width: 26ch; }
.bento__cite { display: flex; align-items: center; gap: 12px; font-size: .88rem; line-height: 1.35; opacity: .9; }
.bento__cite b { font-weight: 500; }
.bento__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 14%, transparent); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; flex: none; }
.bento__cell {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 18px;
  padding: var(--space-5); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); min-height: 168px;
  transition: transform .3s var(--ease), border-color .3s;
}
@media (min-width: 900px) { .bento__cell { padding: var(--space-6); min-height: 0; } }
.bento__cell:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.bento__cell--accent { background: var(--tint-rewards); border-color: transparent; }
.bento__num { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bento__label { font-size: .88rem; color: var(--ink-2); line-height: 1.4; max-width: 24ch; }
.bento-sec + .section { padding-top: var(--space-8); }

/* lighter feature rows: two numbers, no meters */
.case-feature__metrics { grid-template-columns: repeat(2, auto); gap: var(--space-7); }
.case-feature .eyebrow { margin-bottom: var(--space-3); display: inline-block; }

/* Case study: parts, device screens, findings */
.part-break { padding: var(--space-6) 0 var(--space-7); margin-bottom: var(--space-7); border-top: 2px solid var(--ink); }
.part-break:first-child { padding-top: var(--space-4); }
.part-break__label { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.15; padding-top: var(--space-5); }
.part-break__sub { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 0; }
.toc .toc__part { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 14px 0 4px 14px; }
.toc .toc__part:first-child { padding-top: 0; }

.devices { display: grid; gap: var(--space-5) var(--space-4); grid-template-columns: repeat(2, 1fr); margin: var(--space-6) 0; }
@media (min-width: 700px) { .devices--3 { grid-template-columns: repeat(3, 1fr); } }
.devices--2 { max-width: 560px; }
.device { margin: 0; }
.device img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(22, 21, 15, .14)); }
.device figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 12px; line-height: 1.45; }
.device figcaption b { display: block; color: var(--ink); font-weight: 500; }
.devices .media--phone { max-width: none; }

.finding { border-top: 1px solid var(--rule); padding: var(--space-5) 0; }
.finding:last-child { border-bottom: 1px solid var(--rule); }
.finding__head { display: flex; gap: var(--space-4); align-items: baseline; margin-bottom: var(--space-4); }
.finding__n { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); }
.finding h3 { margin: 0 0 4px !important; font-size: var(--step-1); }
.finding__meta { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.finding__nums { display: flex; flex-wrap: wrap; gap: var(--space-6); margin: 0 0 var(--space-3); padding-left: calc(var(--space-4) + 1.2em); }
.finding__nums b { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1; color: var(--ink); }
.finding__nums small { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 6px; max-width: 22ch; }
.finding > p { padding-left: calc(var(--space-4) + 1.2em); margin: 0; }

.fix { display: grid; gap: 4px 20px; padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--rule); border-left: 2px solid var(--accent); border-radius: var(--radius); margin: var(--space-3) 0; }
@media (min-width: 700px) { .fix { grid-template-columns: 110px 1fr; } }
.fix p { margin: 0 0 6px; font-size: .94rem; }
.fix__k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }

.twin { display: grid; gap: var(--space-4); margin: var(--space-5) 0; }
@media (min-width: 700px) { .twin { grid-template-columns: 1fr 1fr; } }
.twin > div { background: var(--ink); color: var(--bg); border-radius: var(--radius-lg); padding: var(--space-5); }
.twin p { color: color-mix(in srgb, var(--bg) 82%, transparent) !important; margin: 8px 0 0; }
.twin__k { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #f0795e; }

.voices { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: var(--space-5) 0; }
@media (min-width: 900px) { .voices { grid-template-columns: repeat(4, 1fr); } }
.voices blockquote { margin: 0; padding: var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); }
.voices p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; color: var(--ink) !important; margin: 0 0 8px; }
.voices cite { font-style: normal; font-size: .8rem; color: var(--ink-3); }
.chapter:has(+ .part-break) { border-bottom: 0; margin-bottom: 0; }
.device img { filter: drop-shadow(0 20px 28px rgba(22, 21, 15, .18)); }
/* screen recordings shown in a CSS phone frame, matching the v2 device shots */
.phone-frame { position: relative; border: 9px solid #121212; border-radius: 44px; overflow: hidden; background: #000; aspect-ratio: 540 / 1170; box-shadow: 0 0 0 1.5px #3a3a3a, 0 20px 28px rgba(22, 21, 15, .18); }
.phone-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 699px) { .phone-frame { border-width: 6px; border-radius: 30px; } }
