/* Kritika Singh — portfolio
   One family (Geist), one accent (cobalt, links and focus only).
   The work carries the colour; the page stays quiet around it. */

@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/CrimsonPro-Variable.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F5F5F5;      /* Rachel's background */
  --ink: #525252;        /* body text: mid grey */
  --ink-strong: #3F3F3F; /* headings: soft charcoal, never black */
  --muted: #737373;      /* secondary text, still AA on #F5F5F5 */
  --rule: #E0E0E0;
  --plate: #EBEBEB;
  --serif: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --baby: #B9DCF6;       /* baby blue: fills, pills, highlights */
  --baby-soft: #E4F1FB;
  --accent: #2F6DA8;     /* deeper blue for link text, readable on paper */

  --measure: 38rem;
  --wide: 76rem;
  --gutter: clamp(16px, 4vw, 48px);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.2vw, 2.75rem);
  --step-4: clamp(2.5rem, 7vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-strong); }

.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* Header */
.site-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 28px 0;
}
.site-head .name { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-head nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.site-head nav a:hover { color: var(--accent); }

/* Home intro */
.intro { padding-block: clamp(64px, 12vw, 152px) clamp(40px, 6vw, 72px); }
.intro h1 {
  font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600;
  max-width: 15ch;
}
.intro p { margin-top: 1.75rem; color: var(--muted); font-size: var(--step-1); line-height: 1.45; max-width: 34ch; }

/* Featured project */
.feature { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.feature .shot { border-radius: 10px; overflow: hidden; background: var(--plate); }
.feature .shot img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature:hover .shot img { transform: scale(1.012); }
.feature-next { margin-top: clamp(64px, 9vw, 112px); }
@media (max-width: 760px) {
  .feature .shot.phones.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 20px 14px; }
  .feature .shot.phones img { border-radius: 12px; }
}
.feature .shot.phones img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
/* Name and summary sit above the picture */
.feature-meta {
  order: -1;
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: center;
  padding-block: 0 20px;
}
.feature-meta h2 { font-size: var(--step-2); }
.feature:hover h2 { color: var(--accent); }
.feature-meta .tags { justify-self: end; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.feature-meta .kind {
  white-space: nowrap;
  padding: 5px 14px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: var(--step--1); line-height: 1.2; color: var(--ink);
}
.feature-meta p { grid-column: 1 / -1; color: var(--muted); margin: 0; }

/* Project list */
.section { padding-block: clamp(72px, 10vw, 128px) 0; }
.section > h2 { font-size: var(--step-1); margin-bottom: 20px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li {
  display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr auto; gap: 1rem 2rem;
  padding-block: 20px; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.rows .title { font-weight: 600; }
.rows .desc { color: var(--muted); }
.rows .when { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .rows li { grid-template-columns: 1fr auto; }
  .rows .desc { grid-column: 1 / -1; grid-row: 2; }
}

/* Case study */
.cs-head { padding-block: clamp(56px, 10vw, 120px) 0; }
.cs-head .project { color: var(--muted); margin-bottom: 1rem; }
.cs-head h1 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.03em; max-width: 22ch; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 2rem;
  margin: clamp(40px, 6vw, 64px) 0 0; padding: 24px 0 0; border-top: 1px solid var(--rule);
}
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: var(--step--1); }
.facts dd { margin: .2rem 0 0; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.story {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(32px, 6vw, 96px);
  padding-block: clamp(40px, 6vw, 64px) 0;
}
.story h2 { font-size: var(--step-0); margin-bottom: .5rem; }
.story p { color: var(--ink); }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } }

.note {
  margin-top: 8px; padding: 16px 20px; border-left: 2px solid var(--ink);
  background: var(--plate); color: var(--ink); max-width: 46rem; font-size: var(--step--1); line-height: 1.5;
}
.note p { margin: 0; }

figure { margin: 0; }
.plate { border-radius: 10px; overflow: hidden; background: var(--plate); }
.fig { padding-block: clamp(48px, 7vw, 88px) 0; }
figcaption { color: var(--muted); font-size: var(--step--1); margin-top: 12px; max-width: 60ch; }

.chapter { padding-block: clamp(80px, 11vw, 144px) 0; }
.chapter > h2 { font-size: var(--step-2); max-width: 24ch; }
.chapter > .prose { margin-top: 1rem; }

/* Behaviour grid: confidence × who it affects */
.behaviour { margin-top: clamp(32px, 5vw, 48px); }
.matrix {
  display: grid; grid-template-columns: auto 1fr 1fr; grid-template-rows: auto 1fr 1fr;
  gap: 8px; max-width: 56rem;
}
.matrix .axis { color: var(--muted); font-size: var(--step--1); }
.matrix .axis-x { align-self: end; padding: 0 4px 4px; }
.matrix .axis-y {
  writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; padding: 4px;
}
.cell {
  background: #fff; border-radius: 8px; padding: 20px 20px 22px; min-height: 9.5rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.cell h3 { font-size: var(--step-0); font-weight: 600; letter-spacing: -0.01em; }
.cell p { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.cell .eg { margin-top: auto; padding-top: .6rem; color: var(--ink); font-size: var(--step--1); }
/* The "asks you" cell borrows Proofroom's own uncertain treatment: dashed teal */
.cell.ask { background: #F2F8F6; outline: 1.5px dashed #2F8F7E; outline-offset: -1.5px; }
@media (max-width: 640px) {
  .matrix { grid-template-columns: 1fr; grid-template-rows: none; }
  .matrix .axis-x, .matrix .axis-y, .matrix .corner { display: none; }
  .cell[data-q]::before {
    content: attr(data-q); color: var(--muted); font-size: var(--step--1);
  }
}

/* Hazedawn: site conditions and the design answer to each */
.conditions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: clamp(32px, 5vw, 48px);
}
.conditions .cell { min-height: 0; }
.conditions .cost { color: var(--muted); font-size: var(--step--1); line-height: 1.5; margin: 0; }
.conditions .answer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule);
  font-size: var(--step--1); line-height: 1.5; color: var(--ink);
}
@media (max-width: 760px) { .conditions { grid-template-columns: 1fr; } }

.reframe {
  margin-top: clamp(40px, 6vw, 64px); max-width: 46rem;
  font-size: var(--step-1); line-height: 1.45; letter-spacing: -0.01em;
}
.reframe s { color: var(--muted); text-decoration-thickness: 1px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem;
  margin: clamp(32px, 5vw, 48px) 0 0; padding-top: 24px; border-top: 1px solid var(--rule);
}
.stats div { min-width: 0; }
.stats dt { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stats dd { margin: .4rem 0 0; color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.phones.three { grid-template-columns: repeat(3, minmax(0, 17rem)); }
.phones figure figcaption { text-align: left; }
@media (max-width: 760px) { .phones.three { grid-template-columns: minmax(0, 18rem); } }

/* ICICI: login paths before and after */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: clamp(32px, 5vw, 48px); }
.paths .cell { min-height: 0; gap: .75rem; }
.paths .label { color: var(--muted); font-size: var(--step--1); }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.route li {
  display: flex; align-items: baseline; gap: .6rem; padding: 10px 12px; border-radius: 6px;
  background: var(--paper); font-size: var(--step--1); line-height: 1.4;
}
.route li::before { content: "↓"; color: var(--muted); flex: none; }
.route li:first-child::before { content: "→"; }
.route li.dead { background: #F6E9E6; color: #8A2A1B; }
.route li.dead::before { content: "✕"; color: #8A2A1B; }
.route li.ok { background: #E7F1EC; color: #1F5B43; }
.route li.ok::before { content: "✓"; color: #1F5B43; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.strip figure .plate { background: #171614; }
.strip figcaption { margin-top: 10px; }
.step { color: var(--ink); font-weight: 600; margin-right: .35em; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr; max-width: 26rem; } }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 4vw, 48px); }
.pair .plate { background: #171614; }
.phones {
  display: grid; grid-template-columns: repeat(2, minmax(0, 20rem)); gap: clamp(16px, 4vw, 56px);
  justify-content: center; background: var(--plate); border-radius: 10px;
  padding: clamp(24px, 6vw, 72px) clamp(16px, 4vw, 56px);
}
.phones img { border-radius: 28px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

.detail { display: grid; gap: 12px; }
.detail .plate { background: #171614; }

/* Next / footer */
.next {
  margin-top: clamp(96px, 12vw, 160px); padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.site-foot {
  margin-top: clamp(96px, 12vw, 160px); padding-block: 28px 40px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; color: var(--muted);
  font-size: var(--step--1);
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-foot p { margin: 0; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 3rem clamp(32px, 8vw, 120px); padding-block: clamp(56px, 10vw, 120px) 0; }
.about h1 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; max-width: 20ch; }
.about .lede { font-size: var(--step-1); line-height: 1.45; }
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { padding-block: 12px; border-bottom: 1px solid var(--rule); }
.cv li:first-child { border-top: 1px solid var(--rule); }
.cv .org { font-weight: 600; display: block; }
.cv .role { color: var(--muted); font-size: var(--step--1); }
.aside h2 { font-size: var(--step-0); margin-bottom: .75rem; }
.aside + .aside { margin-top: 2.5rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

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

/* Small archival screenshots: show near their real size so they stay sharp */
.fig.before .plate { max-width: 680px; background: #fff; }

@media (max-width: 640px) {
  .feature-meta { grid-template-columns: 1fr; }
  .feature-meta .tags { justify-self: start; justify-content: flex-start; }
}

/* ---------- Homepage: one colour world per project ---------- */
html, body { overflow-x: clip; }
.slab {
  --slab-bg: var(--paper); --slab-ink: var(--ink); --slab-muted: var(--muted); --slab-line: var(--ink);
  width: 100vw; margin-left: calc(50% - 50vw); margin-top: 0;
  padding: clamp(56px, 8vw, 112px) max(var(--gutter), calc((100vw - var(--wide)) / 2)) clamp(56px, 8vw, 104px);
  background: var(--slab-bg); color: var(--slab-ink);
}
.slab + .slab { margin-top: 0; }
.slab .feature-meta { padding-bottom: clamp(24px, 3vw, 36px); }
.slab .feature-meta h2 { font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1.05; }
.slab .feature-meta p { color: var(--slab-muted); font-size: var(--step-1); line-height: 1.45; }
.slab .feature-meta .kind { border-color: var(--slab-line); color: var(--slab-ink); }
.slab:hover h2 { color: var(--slab-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.slab .shot { background: transparent; border-radius: 0; overflow: visible; }
.slab .shot img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.slab:hover .shot img { transform: translateY(-6px); }
.slab:focus-visible { outline-offset: -6px; }

.slab-proofroom { --slab-bg: #141312; --slab-ink: #F1EFEA; --slab-muted: #B9B4AA; --slab-line: #5BD6BE; }
.slab-proofroom .shot img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.5); }

.slab-hazedawn { --slab-bg: #FF6A13; --slab-ink: #17181A; --slab-muted: #2B1A0F; --slab-line: #17181A; }
.slab-hazedawn .shot.phones { padding: 0; }
.slab-hazedawn .shot.phones img { border-radius: 28px; box-shadow: 0 0 0 3px #17181A, 0 24px 60px rgba(60,20,0,.28); }

.slab-icici { --slab-bg: #FBEADA; --slab-ink: #3A1E0B; --slab-muted: #6E4A31; --slab-line: #3A1E0B; }

.slab + .section { margin-top: 0; }

@media (max-width: 760px) {
  .slab-hazedawn .shot.phones img { border-radius: 14px; box-shadow: 0 0 0 2px #17181A; }
}
@media (prefers-reduced-motion: reduce) { .slab:hover .shot img { transform: none; } }

@media (max-width: 760px) { .slab .feature-meta p { font-size: var(--step-0); } }

/* Hero index: one swatch per project, matching the slabs below */
.index { list-style: none; margin: clamp(32px, 5vw, 48px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.index a {
  display: inline-flex; align-items: center; gap: .55rem; padding: 8px 16px 8px 10px;
  border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none;
  font-size: var(--step--1);
}
.index a:hover { background: var(--ink); color: var(--paper); }
.index i { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* ---------- Hero: a calm sentence plus currently / previously ---------- */
.intro h1.hero-line {
  max-width: 24ch; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.18; letter-spacing: -0.025em;
  font-weight: 500; color: var(--ink-strong);
}
.intro h1.hero-line .hl { background: linear-gradient(transparent 58%, var(--baby) 58%, var(--baby) 92%, transparent 92%); padding: 0 .06em; }
.now-then { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.25rem; margin: clamp(24px, 4vw, 36px) auto 0; text-align: left; font-size: var(--step-0); max-width: 34rem; }
.now-then dt { color: var(--muted); }
.now-then dd { margin: 0; color: var(--ink); }

/* Centered hero with portrait */
.intro-centered { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(48px, 8vw, 96px); }
.intro-centered .portrait {
  width: clamp(120px, 16vw, 184px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  margin-bottom: clamp(24px, 4vw, 40px); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--rule);
}
.intro-centered h1.hero-line { margin-inline: auto; }
.intro-centered p { margin-inline: auto; }
.intro-centered .index { justify-content: center; }


/* Cursor: a small circle of my photo (mouse and trackpad only) */
@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url("img/cursor-40.png") 20 20, auto;
    cursor: -webkit-image-set(url("img/cursor-40.png") 1x, url("img/cursor-80.png") 2x) 20 20, auto;
    cursor: image-set(url("img/cursor-40.png") 1x, url("img/cursor-80.png") 2x) 20 20, auto;
  }
  a, button, [role="button"] {
    cursor: url("img/cursor-link-40.png") 20 20, pointer;
    cursor: -webkit-image-set(url("img/cursor-link-40.png") 1x, url("img/cursor-link-80.png") 2x) 20 20, pointer;
    cursor: image-set(url("img/cursor-link-40.png") 1x, url("img/cursor-link-80.png") 2x) 20 20, pointer;
  }
}

/* Wordmark: Kritika, with the final "a" turned into AI */
.site-head .name { letter-spacing: -0.01em; }
.name-ai {
  display: inline-block; margin-left: 1px; padding: 0 .28em; border-radius: .3em;
  background: var(--baby); color: #1E3F5E; font-size: .82em; line-height: 1.35; vertical-align: .08em;
}
.slab .feature-meta h2 { color: var(--slab-ink); }
.index a:hover { background: var(--baby); border-color: var(--baby); color: #1E3F5E; }
.intro h1.hero-line { text-wrap: balance; max-width: 26ch; }
.now-then { max-width: 42rem; }

.built-head { font-size: var(--step-2); }
.built-sub { color: var(--muted); margin: .4rem 0 20px; }
.intro h1.hero-line + .index { margin-top: clamp(28px, 4vw, 40px); }

/* Typography: serif display (Crimson Pro), Geist for everything else */
h1, h2, h3, .site-head .name { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.intro h1.hero-line { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; }
.cs-head h1, .about h1 { font-weight: 400; letter-spacing: -0.015em; }
.slab .feature-meta h2 { font-weight: 400; letter-spacing: -0.015em; }
.site-head .name { font-size: 1.2rem; }
.rows .title, .cell h3, .story h2, .aside h2, .facts dt { font-family: "Geist", system-ui, sans-serif; }

/* Hero: photo on the left, sentence beside it, left aligned */
.intro-side {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3.5vw, 48px);
  align-items: center; text-align: left; padding-top: clamp(56px, 9vw, 120px);
}
.intro-side .portrait {
  width: clamp(112px, 13vw, 168px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--rule);
}
.intro-side h1.hero-line { margin: 0; max-width: 22ch; }
.intro-side .index { justify-content: flex-start; margin-top: clamp(20px, 3vw, 32px); }
@media (max-width: 640px) {
  .intro-side { grid-template-columns: 1fr; gap: 20px; }
  .intro-side .portrait { width: 96px; }
}
/* align: photo top = headline top, photo left edge (ring included) = page margin */
.intro-side { align-items: start; }
.intro-side .portrait { margin: 7px 0 0 7px; width: clamp(104px, 11vw, 150px); }
.intro-side h1.hero-line { max-width: 20ch; }
/* hero text fills the width beside the photo */
.intro-side h1.hero-line { max-width: none; font-size: clamp(2.2rem, 5.6vw, 4.9rem); line-height: 1.08; text-wrap: balance; }

/* ---------- Softer project containers: rounded, inset, gentle gradients ---------- */
.slab {
  width: auto; margin: clamp(16px, 2.5vw, 28px) 0 0; border-radius: clamp(20px, 2.4vw, 32px);
  padding: clamp(36px, 6vw, 88px) clamp(20px, 5vw, 80px) clamp(40px, 6vw, 80px);
}
.slab:first-of-type { margin-top: 0; }
.slab .feature-meta .kind { background: rgba(255,255,255,.55); border-color: rgba(63,63,63,.22); color: var(--ink-strong); }

.slab-proofroom {
  --slab-ink: #2F3A38; --slab-muted: #5C6B68; --slab-line: #2F3A38;
  background:
    radial-gradient(120% 90% at 0% 0%, #D6EEE7 0%, rgba(214,238,231,0) 60%),
    radial-gradient(90% 80% at 100% 100%, #DCE6F3 0%, rgba(220,230,243,0) 60%),
    #EEF3F1;
}
.slab-proofroom .shot img { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 24px 60px rgba(40,70,64,.18); }

.slab-hazedawn {
  --slab-ink: #4A3426; --slab-muted: #7A5E4C; --slab-line: #4A3426;
  background:
    radial-gradient(110% 90% at 100% 0%, #FFD9BF 0%, rgba(255,217,191,0) 60%),
    radial-gradient(90% 80% at 0% 100%, #FFE9D6 0%, rgba(255,233,214,0) 60%),
    #FFF4EC;
}
.slab-hazedawn .shot.phones img { border-radius: 28px; box-shadow: 0 0 0 1px rgba(74,52,38,.12), 0 20px 50px rgba(120,60,20,.14); }

.slab-icici {
  --slab-ink: #3F3A4A; --slab-muted: #6C6578; --slab-line: #3F3A4A;
  background:
    radial-gradient(110% 90% at 0% 0%, #FBE6D4 0%, rgba(251,230,212,0) 60%),
    radial-gradient(90% 80% at 100% 100%, #DCEBFA 0%, rgba(220,235,250,0) 60%),
    #F7F3F1;
}
@media (max-width: 760px) {
  .slab-hazedawn .shot.phones img { border-radius: 14px; box-shadow: 0 0 0 1px rgba(74,52,38,.14); }
}
.slab + .slab { margin-top: clamp(16px, 2.5vw, 28px); }

/* ---------- Notes: a wall of sticky notes ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { display: none; }
.notes-head { padding-block: clamp(56px, 9vw, 112px) clamp(28px, 4vw, 44px); max-width: 40rem; }
.notes-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.015em; }
.notes-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; margin-top: 1rem; }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: start; }
.sticky {
  --c: #DCEBFA; margin: 0; padding: 22px 22px 18px; min-height: 220px; border-radius: 4px 4px 14px 4px;
  background: var(--c); color: var(--ink-strong); position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,.04), 0 10px 24px -12px rgba(60,60,60,.35);
  transform: rotate(var(--tilt, -1.2deg)); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.sticky::before { /* a strip of tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 72px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.05); border-radius: 2px;
}
.sticky:nth-child(3n)   { --tilt: 1.4deg; }
.sticky:nth-child(3n+1) { --tilt: -0.8deg; }
.sticky:nth-child(4n)   { --tilt: 2deg; }
figure.sticky:hover { transform: rotate(0) translateY(-3px); box-shadow: 0 14px 30px -12px rgba(60,60,60,.45); }
.sticky[data-colour="blue"]  { --c: #DCEBFA; }
.sticky[data-colour="peach"] { --c: #FFE3D1; }
.sticky[data-colour="mint"]  { --c: #DDF1EA; }
.sticky[data-colour="cream"] { --c: #FBF1DC; }
.sticky blockquote { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; flex: 1; }
.sticky figcaption { color: var(--muted); font-size: var(--step--1); }

.composer { --tilt: 0deg; outline: 1.5px dashed rgba(63,63,63,.35); outline-offset: -8px; }
.composer textarea, .composer input:not([type="radio"]) {
  font: inherit; color: var(--ink-strong); background: transparent; border: 0; resize: none; width: 100%;
}
.composer textarea { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; min-height: 6.5em; }
.composer textarea:focus, .composer input:focus { outline: none; }
.composer:focus-within { outline-color: var(--accent); }
.composer ::placeholder { color: rgba(63,63,63,.5); }
.composer-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid rgba(63,63,63,.15); padding-top: 10px; }
.composer-row input { font-size: var(--step--1); }
.count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.colours { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; }
.colours input { position: absolute; opacity: 0; }
.colours .sw { display: block; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(63,63,63,.25); cursor: inherit; }
.colours input:checked + .sw { border-color: var(--ink-strong); box-shadow: 0 0 0 2px var(--c); }
.colours input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-blue { background: #DCEBFA; } .sw-peach { background: #FFE3D1; } .sw-mint { background: #DDF1EA; } .sw-cream { background: #FBF1DC; }
.composer button {
  align-self: flex-start; font: inherit; font-size: var(--step--1); padding: 9px 18px; border-radius: 999px;
  border: 0; background: var(--ink-strong); color: #fff;
}
.composer button:disabled { opacity: .5; }
.note-status { margin: 0; font-size: var(--step--1); color: var(--ink); }
.note-status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }
.intro-side { padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(64px, 8vw, 112px); }

/* Current page in the menu: a baby blue pill */
.site-head nav { align-items: center; }
.site-head nav a { padding: 4px 12px; border-radius: 999px; }
.site-head nav a[aria-current="page"] { background: var(--baby); color: #1E3F5E; text-decoration: none; }
.site-head nav a[aria-current="page"]:hover { color: #1E3F5E; }
.site-head nav { gap: clamp(4px, 1.2vw, 14px); }
.site-head .name { margin-right: auto; }
@media (max-width: 420px) { .site-head nav a { padding: 4px 8px; } }

/* Hero sub-line */
.intro-side .hero-sub { margin: clamp(20px, 3vw, 32px) 0 0; max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--muted); }

/* Concept card: lilac to baby blue */
.slab-stuck {
  --slab-ink: #3A3A52; --slab-muted: #63637A; --slab-line: #3A3A52;
  background:
    radial-gradient(120% 90% at 100% 0%, #E6E1F5 0%, rgba(230,225,245,0) 60%),
    radial-gradient(90% 80% at 0% 100%, #DCEBFA 0%, rgba(220,235,250,0) 60%),
    #F3F2F8;
}
.slab-stuck .shot { background: none; }
.slab-stuck .shot img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(58,58,82,.08), 0 24px 60px rgba(58,58,110,.16); }
