/* =========================================================
   Nandha Kumar · Portfolio · Shared stylesheet
   Redesign keeps the original cream + Libre Baskerville voice,
   loses the stacked-glassmorphism cards in favour of an editorial
   single-column flow, tighter type, and a single warm accent.
   ========================================================= */

:root {
  --bg: #F0E6DA;
  --bg-soft: #F5EDE2;
  --bg-card: #F9F2E6;
  --bg-quote: #FBF5EA;
  --ink: #1A1B1D;
  --ink-2: #2A2B2D;
  --muted: rgba(26, 27, 29, 0.62);
  --muted-2: rgba(26, 27, 29, 0.45);
  --hairline: rgba(26, 27, 29, 0.14);
  --hairline-2: rgba(26, 27, 29, 0.08);
  --accent: #C8632E;
  --accent-hover: #A84F22;

  /* Per-project tints (used as subtle theming) */
  --tint-myntra: #EAD3C2;       /* warm peach */
  --tint-workiva: #D3DDC6;      /* olive sage */
  --tint-deere: #BFD2B9;        /* tractor green-muted */
  --tint-velotic: #DEE3A8;      /* citrus lime, dialled down */

  --font-display: 'Libre Baskerville', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mark: 'Manufacturing Consent', 'Libre Baskerville', serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-8: 48px;
  --s-10: 64px;
  --s-12: 96px;
  --s-16: 128px;
  --s-20: 160px;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 999px;

  --container: 1240px;
  --container-prose: 720px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Quietened paper texture — keeps the warm feel without competing */
body::before {
  content: '';
  position: fixed;
  inset: -5%;
  background-image: url('Images/ae67138a6f565770faea17e8161fb957.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: multiply;
  z-index: -1;
  pointer-events: none;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

/* =========================================================
   Layout primitives
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--prose {
  margin: 0 389.5px;
  padding: 0;
}
@media (max-width: 1559px) {
  .container--prose {
    max-width: var(--container-prose);
    margin: 0 auto;
    padding: 0 32px;
  }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .container--prose { padding: 0 20px; }
}

.section { padding: var(--s-16) 0; }
.section--tight { padding: var(--s-10) 0; }
@media (max-width: 720px) {
  .section { padding: var(--s-10) 0; }
  .section--tight { padding: var(--s-8) 0; }
}

/* =========================================================
   Type scale
   ========================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lede {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  font-weight: 400;
}

.serif-italic, em.serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-block;
}
.eyebrow--accent { color: var(--accent); }

/* Highlight signature — preserved from original site */
.highlight {
  position: relative;
  display: inline-block;
  font-style: italic;
}
.highlight::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 112%;
  height: 124%;
  background-image: url('Icons/Highlight.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 230, 218, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(240, 230, 218, 0.92);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.nav__logo {
  font-family: var(--font-mark);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a[aria-current="page"] {
  font-style: italic;
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav__inner { height: 60px; padding: 0 20px; }
  .nav__logo { font-size: 30px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 13px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn__chip {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
  font-size: 14px;
}
.btn:hover { background: var(--accent); }
.btn:hover .btn__chip { background: var(--ink); transform: rotate(-45deg); }
.btn--accent { background: var(--accent); }
.btn--accent .btn__chip { background: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 8px 8px 8px 22px;
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--ghost .btn__chip { background: var(--ink); color: var(--bg); }
.btn--ghost:hover .btn__chip { background: var(--accent); }

/* status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2FA56A;
  box-shadow: 0 0 0 4px rgba(47, 165, 106, 0.18);
}

/* =========================================================
   Home hero
   ========================================================= */
.home-hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s-10) 0 var(--s-12);
}
.home-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.home-hero__status { margin-bottom: var(--s-6); }
.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-5);
}
.home-hero__title .role {
  font-style: italic;
  display: block;
}
.home-hero__title .highlight::before { width: 105%; height: 115%; }
.home-hero__location {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--muted);
  margin-top: var(--s-5);
}
.home-hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: var(--s-8);
  flex-wrap: wrap;
}
.home-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  max-width: 900px;
  margin: var(--s-12) auto 0;
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
  text-align: left;
}
.home-hero__meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.home-hero__meta dd {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}
@media (max-width: 720px) {
  .home-hero__meta { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}

/* =========================================================
   Section header
   ========================================================= */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-6);
  flex-wrap: wrap;
  margin-bottom: var(--s-10);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.section-head__title { max-width: 24ch; }
.section-head__meta {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
}
.section-head__meta:hover { color: var(--accent); }

/* =========================================================
   Featured work grid (home + work)
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-m);
  padding: 24px;
  border: 1px solid var(--hairline-2);
  transition: transform 0.35s var(--ease), border-color 0.2s var(--ease);
}
.work-card:hover {
  transform: translateY(-3px);
  border-color: var(--hairline);
}
.work-card__media {
  aspect-ratio: 16/10;
  border-radius: var(--radius-s);
  overflow: hidden;
  margin-bottom: var(--s-5);
  background: var(--bg-soft);
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.03); }
.work-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.work-card__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 400;
  max-width: 22ch;
}
.work-card__title em { font-style: italic; color: var(--accent); }
.work-card__arrow {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
}
.work-card:hover .work-card__arrow {
  background: var(--accent);
  transform: rotate(-45deg);
}
.work-card__meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.work-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline-2);
}
.work-card__logo {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}
.work-card__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Per-project tints on cards */
.work-card--myntra { background: var(--tint-myntra); }
.work-card--workiva { background: var(--tint-workiva); }
.work-card--deere { background: var(--tint-deere); }
.work-card--velotic { background: var(--tint-velotic); }

/* =========================================================
   About page
   ========================================================= */
.about-hero {
  padding: var(--s-12) 0 var(--s-8);
}
.about-hero__eyebrow { margin-bottom: var(--s-3); }
.about-hero__title { margin-bottom: var(--s-5); max-width: 18ch; }

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-10);
  align-items: start;
  margin-top: var(--s-8);
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
.about-grid__photo {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 4/5;
  max-width: 320px;
}
.about-grid__photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.about-grid__body p {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: var(--s-5);
  color: var(--ink-2);
  max-width: 60ch;
}
.about-grid__body p:first-child { font-size: 20px; }
.about-grid__body p em { font-style: italic; color: var(--accent); }

.about-contact {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}
.about-contact dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.about-contact dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.about-contact dd { font-size: 16px; color: var(--ink); }
.about-contact dd a:hover { color: var(--accent); }

/* =========================================================
   Work index (page)
   ========================================================= */
.work-intro { padding: var(--s-12) 0 var(--s-8); }
.work-intro__title { margin-bottom: var(--s-5); max-width: 16ch; }

.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.work-row {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--hairline);
  transition: padding 0.3s var(--ease);
}
.work-row:last-child { border-bottom: 1px solid var(--hairline); }
.work-row:hover { padding-left: var(--s-4); }
.work-row__media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--bg-card);
}
.work-row__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.work-row__body h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 8px;
}
.work-row__body h3 em { font-style: italic; color: var(--accent); }
.work-row__body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 56ch;
}
.work-row__tags {
  display: flex;
  gap: 8px;
  margin-top: var(--s-3);
  flex-wrap: wrap;
}
.work-row__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.work-row__year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .work-row { grid-template-columns: 1fr; gap: var(--s-3); }
  .work-row__year { order: -1; }
}

/* =========================================================
   Case study page
   ========================================================= */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-8);
}
.cs-back:hover { color: var(--accent); }

.cs-hero {
  padding: var(--s-10) 0 var(--s-8);
}
.cs-hero__tags {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--s-4);
}
.cs-hero__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-5);
  max-width: 22ch;
}
.cs-hero__lede {
  max-width: 64ch;
}

/* Metadata strip */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
  padding: var(--s-6) 0;
  margin: var(--s-8) 0 var(--s-10);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cs-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.cs-meta dd {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
@media (max-width: 900px) {
  .cs-meta { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .cs-meta { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}

/* Cover image */
.cs-cover {
  margin: var(--s-8) 0 var(--s-12);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--cs-tint, var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Per-case-study tints */
.cs-tint-myntra { --cs-tint: var(--tint-myntra); }
.cs-tint-workiva { --cs-tint: var(--tint-workiva); }
.cs-tint-deere { --cs-tint: var(--tint-deere); }
.cs-tint-velotic { --cs-tint: var(--tint-velotic); }

/* Body sections */
.cs-section {
  padding: var(--s-10) 0;
  border-top: 1px solid var(--hairline);
}
.cs-section:first-of-type { border-top: none; padding-top: 0; }

.cs-section__head {
  margin-bottom: var(--s-6);
}
.cs-section__eyebrow { margin-bottom: var(--s-3); }
.cs-section__title { max-width: 24ch; }
.cs-section__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin-top: var(--s-3);
}

.cs-prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
  max-width: 68ch;
}
.cs-prose p strong { color: var(--ink); font-weight: 500; }
.cs-prose p em { font-style: italic; color: var(--accent); }
.cs-prose ul {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  max-width: 68ch;
}
.cs-prose ul li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}
.cs-prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.cs-prose ul li strong { color: var(--ink); font-weight: 500; }

/* Stat / impact grids */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin: var(--s-6) 0;
}
.stat-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stat-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .stat-grid, .stat-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stat-grid, .stat-grid--4, .stat-grid--2 { grid-template-columns: 1fr; }
}

.stat {
  padding: var(--s-5) var(--s-4);
  background: var(--bg-card);
  border-radius: var(--radius-s);
  border: 1px solid var(--hairline-2);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 8px;
}
.stat__value em { font-style: italic; color: var(--accent); }
.stat__label {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* Step / research / principle cards */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin: var(--s-6) 0;
}
.step-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .step-grid, .step-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .step-grid, .step-grid--4 { grid-template-columns: 1fr; }
}

.step {
  padding: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-s);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--s-3);
  text-transform: uppercase;
}
.step__title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: var(--s-2);
}
.step__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Issue / pullout cards */
.issue {
  padding: var(--s-5) var(--s-6);
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin-bottom: var(--s-4);
}
.issue__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.issue__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.issue__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 70ch;
}

/* Quote block */
.cs-quote {
  margin: var(--s-8) 0;
  padding: var(--s-6) 0 var(--s-6) var(--s-6);
  border-left: 3px solid var(--accent);
  background: var(--bg-quote);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding-right: var(--s-6);
}
.cs-quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--s-3);
  max-width: 60ch;
}
.cs-quote__author {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Persona card */
.persona {
  background: var(--bg-card);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-m);
  padding: var(--s-6);
  margin-bottom: var(--s-5);
}
.persona__head {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--hairline);
}
.persona__photo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
}
.persona__photo img { width: 100%; height: 100%; object-fit: cover; }
.persona__name {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.persona__role {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
}
.persona__details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  margin-top: 6px;
}
.persona__details div {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.persona__details strong {
  color: var(--ink);
  font-weight: 500;
}
.persona__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-quote);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  margin-bottom: var(--s-5);
}
.persona__bg {
  margin-bottom: var(--s-5);
}
.persona__bg-title, .persona__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.persona__bg-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.persona__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.persona__cols--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .persona__cols, .persona__cols--3 { grid-template-columns: 1fr; }
  .persona__details { grid-template-columns: 1fr; }
}
.persona__cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.persona__cols li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 10px;
  padding-left: 16px;
  position: relative;
}
.persona__cols li::before {
  content: '·';
  position: absolute;
  left: 4px;
  top: -2px;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}
.persona__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.persona__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}

/* Solution card */
.solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--hairline-2);
}
.solution:first-of-type { border-top: none; }
@media (max-width: 900px) {
  .solution { grid-template-columns: 1fr; }
}
.solution__media {
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--hairline-2);
}
.solution__media img { width: 100%; height: auto; display: block; }
.solution__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.solution__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.22;
  margin-bottom: var(--s-3);
}
.solution__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
  max-width: 50ch;
}
.solution__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline-2);
}
.solution__stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.solution__stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Figure / image block */
.cs-figure {
  margin: var(--s-8) 0;
}
.cs-figure__img {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--hairline-2);
}
.cs-figure__img img { width: 100%; height: auto; display: block; }
.cs-figure__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s-3);
  text-align: left;
}

/* Figure grid — used for screen line-ups (e.g. phone screens) */
.cs-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4);
  margin: var(--s-8) 0 var(--s-3);
}
.cs-figure-grid__item {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #0A0A0A;
  border: 1px solid var(--hairline-2);
  aspect-ratio: 9/19.5;
}
.cs-figure-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Platform / stack pills */
.cs-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-5) 0;
}
.cs-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cs-platform__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* =========================================================
   Case study — additional components (Velotic restructure)
   ========================================================= */

/* Big pull quote — for thesis statements / key user truths */
.cs-pull {
  margin: var(--s-8) 0;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cs-pull__text {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-style: italic;
  max-width: 22ch;
}
.cs-pull__text em { color: var(--accent); font-style: italic; }
.cs-pull__attr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: var(--s-4);
}

/* Decision callout — for "I chose X over Y because Z" */
.cs-decision {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4) var(--s-5);
  padding: var(--s-5) var(--s-5);
  margin: var(--s-5) 0;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.cs-decision__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  padding-top: 4px;
}
.cs-decision__body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.cs-decision__body strong { color: var(--ink); font-weight: 500; }
@media (max-width: 600px) {
  .cs-decision { grid-template-columns: 1fr; }
}

/* Token swatch grid — for design system color showcase */
.cs-tokens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-3);
  margin: var(--s-6) 0;
}
.cs-token {
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  background: var(--bg-card);
}
.cs-token__swatch {
  height: 90px;
  display: block;
}
.cs-token__meta {
  padding: 10px 12px;
  border-top: 1px solid var(--hairline-2);
  background: var(--bg-soft);
}
.cs-token__name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.cs-token__hex {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
}

/* Type specimen — three families, one breath */
.cs-specimen {
  margin: var(--s-6) 0;
  padding: var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.cs-specimen__display {
  font-family: 'Barlow Condensed', 'Barlow', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cs-specimen__body {
  font-family: 'Barlow', 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 50ch;
}
.cs-specimen__data {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ASCII / mono architecture diagram */
.cs-diagram {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  background: var(--bg-card);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-m);
  padding: var(--s-6);
  margin: var(--s-6) 0;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: pre;
}
.cs-diagram strong { color: var(--ink); font-weight: 500; }

/* Structured architecture diagram (replaces ASCII cs-diagram) */
.cs-archdiag {
  margin: var(--s-6) 0;
  background: var(--bg-card);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-m);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-4);
}
.cs-archdiag__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.cs-archdiag__node {
  background: var(--bg-soft);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-s);
  padding: var(--s-4);
  text-align: center;
}
.cs-archdiag__node strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.cs-archdiag__node span {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}
.cs-archdiag__hub {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: var(--s-4) var(--s-5);
  text-align: center;
}
.cs-archdiag__hub strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.cs-archdiag__hub span {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-2);
}
.cs-archdiag__rule {
  height: 1px;
  background: var(--hairline-2);
  margin: var(--s-2) 0;
}
@media (max-width: 600px) {
  .cs-archdiag__row { grid-template-columns: 1fr; }
}

/* Platform parity table */
.cs-parity {
  margin: var(--s-6) 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.cs-parity__head, .cs-parity__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 0;
}
.cs-parity__head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--hairline);
}
.cs-parity__row {
  border-bottom: 1px solid var(--hairline-2);
}
.cs-parity__row:last-child { border-bottom: none; }
.cs-parity__cell {
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-2);
}
.cs-parity__head .cs-parity__cell {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}
.cs-parity__row .cs-parity__cell:first-child { color: var(--ink); font-weight: 500; }
.cs-parity__cell--y { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
.cs-parity__cell--n { color: var(--muted-2); font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 600px) {
  .cs-parity__head, .cs-parity__row { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .cs-parity__cell { padding: var(--s-2) var(--s-3); font-size: 12px; }
}

/* Big hero stat block — single oversized number for outcome */
.cs-bigstat {
  margin: var(--s-8) 0;
  padding: var(--s-8) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-5);
}
.cs-bigstat__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cs-bigstat__num em { font-style: italic; color: var(--accent); }
.cs-bigstat__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 30ch;
}

/* Honest status bar — "where it is now" */
.cs-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}
.cs-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: cs-pulse 2.4s ease-in-out infinite;
}
@keyframes cs-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Research-scope disclosure — small honest box that earns the quote */
.cs-scope {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  background: var(--bg-soft);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-s);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4) var(--s-5);
  align-items: start;
}
.cs-scope__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  padding-top: 4px;
}
.cs-scope__body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cs-scope__body strong { color: var(--ink); font-weight: 500; }
@media (max-width: 600px) {
  .cs-scope { grid-template-columns: 1fr; }
}

/* Module map — IA visual that stands in for coach-portal screens */
.cs-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: var(--s-6) 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  background: var(--hairline);
  overflow: hidden;
}
.cs-module {
  background: var(--bg-soft);
  padding: var(--s-4) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
  position: relative;
  transition: background 0.2s var(--ease);
}
.cs-module:hover { background: var(--bg-card); }
.cs-module__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.cs-module__name {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
}
.cs-module__sub {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: auto;
}
.cs-module--accent {
  background: var(--cs-tint, var(--bg-card));
}
.cs-module--accent .cs-module__sub { color: var(--ink-2); }

/* Prompt anatomy — layered system-prompt visual */
.cs-prompt {
  margin: var(--s-6) 0;
  padding: var(--s-6);
  background: #0A0A0A;
  border-radius: var(--radius-m);
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.85);
  overflow-x: auto;
}
.cs-prompt__layer {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-s);
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.55;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}
.cs-prompt__layer:last-child { margin-bottom: 0; }
.cs-prompt__tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cs-prompt__text { color: rgba(255, 255, 255, 0.9); }
.cs-prompt__layer--safety {
  background: rgba(255, 77, 77, 0.08);
  border-left: 2px solid #FF4D4D;
}
.cs-prompt__layer--safety .cs-prompt__tag { background: rgba(255, 77, 77, 0.25); color: #FFB8B8; }
.cs-prompt__layer--coach {
  background: rgba(200, 245, 0, 0.08);
  border-left: 2px solid #C8F500;
}
.cs-prompt__layer--coach .cs-prompt__tag { background: rgba(200, 245, 0, 0.25); color: #DFFF66; }
.cs-prompt__layer--client {
  background: rgba(77, 200, 255, 0.08);
  border-left: 2px solid #4DC8FF;
}
.cs-prompt__layer--client .cs-prompt__tag { background: rgba(77, 200, 255, 0.25); color: #B8E5FF; }
.cs-prompt__layer--task {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}
.cs-prompt__layer--task .cs-prompt__tag { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.85); }
@media (max-width: 600px) {
  .cs-prompt { padding: var(--s-4); }
  .cs-prompt__layer { flex-direction: column; gap: 6px; }
}

/* =========================================================
   Case study TOC (sticky left rail)
   ========================================================= */
.cs-toc {
  position: fixed;
  top: 120px;
  left: 24px;
  width: 200px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding-right: 8px;
  z-index: 50;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
  scrollbar-width: none;
}
.cs-toc::-webkit-scrollbar { display: none; }
.cs-toc.is-ready {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cs-toc__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--s-3);
}
.cs-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--hairline);
}
.cs-toc__list li { margin: 0; }
.cs-toc__link {
  display: block;
  padding: 6px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cs-toc__link:hover { color: var(--ink); }
.cs-toc__link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}
@media (max-width: 1280px) {
  .cs-toc { display: none; }
}

/* =========================================================
   Next project block
   ========================================================= */
.cs-next {
  padding: var(--s-12) 0 var(--s-10);
  border-top: 1px solid var(--hairline);
}

/* =========================================================
   Closing refrain CTA
   ========================================================= */
.refrain {
  padding: var(--s-16) 0;
  border-top: 1px solid var(--hairline);
}
.refrain__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: var(--s-6);
}
.refrain__title em { font-style: italic; color: var(--accent); }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: var(--s-10) 0 var(--s-5);
  border-top: 1px solid var(--hairline);
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(56px, 14vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: var(--s-6) 0 var(--s-10);
  color: var(--ink);
}
.footer__wordmark em { font-style: italic; color: var(--accent); }
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}
@media (max-width: 720px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.footer__col p,
.footer__col a {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.5;
}
.footer__col a:hover { color: var(--accent); }
.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    transition-duration: 0.001s !important;
    animation-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Utility
   ========================================================= */
.u-flex { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.u-mt-5 { margin-top: var(--s-5); }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-8 { margin-top: var(--s-8); }
.u-mb-5 { margin-bottom: var(--s-5); }
.u-mb-6 { margin-bottom: var(--s-6); }
.u-mb-8 { margin-bottom: var(--s-8); }
.u-muted { color: var(--muted); }
.u-accent { color: var(--accent); }
.u-center { text-align: center; }

/* =========================================================
   Lightbox
   ========================================================= */
main img.is-zoomable { cursor: zoom-in; }

body.is-lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 14, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(0.7);
  backdrop-filter: blur(14px) saturate(0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
  padding: clamp(16px, 4vw, 48px);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0s linear 0s;
}

.lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.98);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
  opacity: 1;
}

.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font: 500 18px/1 var(--font-sans);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
  background: rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.lightbox__btn:active { transform: scale(0.96); }

.lightbox__btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.lightbox__close { top: 18px; right: 18px; font-size: 22px; }
.lightbox__prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 18px; top: 50%; transform: translateY(-50%); }

.lightbox__prev:active,
.lightbox__next:active { transform: translateY(-50%) scale(0.96); }

.lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
  .lightbox__close { top: 10px; right: 10px; }
  .lightbox__prev  { left: 8px; }
  .lightbox__next  { right: 8px; }
  .lightbox__btn   { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__img { transition: none; }
}

/* =========================================================
   Scroll progress bar — top of case study pages
   ========================================================= */
.cs-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.cs-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transform-origin: left center;
  transition: width 0.05s linear;
}

/* =========================================================
   Hero TL;DR — 60-second-read summary
   ========================================================= */
.cs-tldr {
  margin: var(--s-6) 0 0;
  padding: var(--s-6) var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m, 12px);
  position: relative;
}
.cs-tldr__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.cs-tldr__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-3);
}
.cs-tldr__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-4);
  align-items: baseline;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--hairline-2);
}
.cs-tldr__list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.cs-tldr__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cs-tldr__val {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
@media (max-width: 720px) {
  .cs-tldr { padding: var(--s-5); }
  .cs-tldr__list li {
    grid-template-columns: 1fr;
    gap: var(--s-1);
  }
  .cs-tldr__val { font-size: 15px; }
}

/* =========================================================
   Mid-page lateral nav — sibling case study jumps
   ========================================================= */
.cs-jump {
  margin: var(--s-12) 0;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.cs-jump__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: var(--s-5);
}
.cs-jump__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.cs-jump__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-4) var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m, 12px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cs-jump__card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.cs-jump__year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cs-jump__title {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.cs-jump__arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--muted-2);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.cs-jump__card:hover .cs-jump__arrow {
  color: var(--accent);
  transform: translateX(2px);
}
@media (max-width: 900px) {
  .cs-jump__row { grid-template-columns: 1fr; }
}
