@import url('https://fonts.googleapis.com/css2?family=Solway:wght@300;400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #1A6BFF;
  --accent-dim: rgba(26, 107, 255, 0.08);
  --bg: #FAFAF9;
  --bg-2: #F4F3F0;
  --text-primary: #111110;
  --text-secondary: #262626;
  --text-tertiary: #A8A7A2;
  --border: rgba(0,0,0,0.08);
  --border-mid: rgba(0,0,0,0.12);
  --sans: 'Solway', Georgia, serif;
  --mono: 'Solway', Georgia, serif;
  --body: 'Plus Jakarta Sans', sans-serif;
  --site-padding: 100px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--text-primary); min-height: 100vh; }

a { color: inherit; text-decoration: none; }

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  width: 100%;
  border-bottom: 0.5px solid var(--border);
  padding: 0 var(--site-padding);
  position: fixed;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.topbar-name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.topbar-nav { display: flex; gap: 24px; }
.topbar-nav a {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color 0.15s;
  letter-spacing: 0.02em;
}
.topbar-nav a:hover { color: var(--text-primary); }
.topbar-nav a.active { color: var(--accent); }
.topbar-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.avail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.avail-label { font-size: 14px; color: var(--text-secondary); }

/* ── Layout shells ───────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 48px); margin-top: 48px; }
.two-col .left { border-right: 0.5px solid var(--border); }

.sidebar-col { display: grid; grid-template-columns: 180px 1fr; min-height: calc(100vh - 48px); }
.sidebar-col .sidebar { border-right: 0.5px solid var(--border); padding: 36px 24px; display: flex; flex-direction: column; }

/* ── Mono label ──────────────────────────────────────── */
.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mono-label.accent { color: var(--accent); }

/* ── Section header ──────────────────────────────────── */
.sec-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.sec-header .num { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--accent); }
.sec-header .title { font-size: 14px; font-weight: 600; color: #1b2249; letter-spacing: 0.06em; text-transform: uppercase; }
.sec-header::after { content: none; }

/* ── Meta strip ──────────────────────────────────────── */
.meta-strip {
  display: grid;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.meta-cell { padding: 10px 14px; border-right: 0.5px solid var(--border); }
.meta-cell:last-child { border-right: none; }
.meta-cell .key { font-family: var(--mono); font-size: 9px; color: var(--text-tertiary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.meta-cell .val { font-size: 11px; color: var(--text-primary); }

/* ── Grid table (challenges, outcomes) ───────────────── */
.grid-table {
  display: grid;
  gap: 1.5px;
  background: var(--border-mid);
  border: 1.5px solid var(--border-mid);
  border-radius: 4px;
  overflow: hidden;
  align-items: stretch;
}
.grid-table .cell { background: var(--bg); padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-start; }
.grid-table .cell .cell-num { font-family: var(--mono); font-size: 10px; color: var(--accent); margin-bottom: 6px; }
.grid-table .cell .cell-title { font-size: 12px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.grid-table .cell .cell-body { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text-secondary); line-height: 1.65; }

/* ── Ruled list (steps, decisions, learnings) ─────────── */
.ruled-list { border: 0.5px solid var(--border); border-radius: 4px; overflow: hidden; }
.ruled-list .row { border-bottom: 0.5px solid var(--border); }
.ruled-list .row:last-child { border-bottom: none; }

.step-row { display: grid; grid-template-columns: 36px 1fr; }
.step-row .step-num { padding: 14px 0 14px 14px; font-family: var(--mono); font-size: 10px; color: var(--accent); border-right: 0.5px solid var(--border); }
.step-row .step-body { padding: 14px 16px; }
.step-row .step-title { font-size: 12px; font-weight: 500; color: var(--text-primary); margin-bottom: 3px; }
.step-row .step-desc { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text-secondary); line-height: 1.65; }

/* ── Free-form process steps ─────────── */
.cs-process-steps { display: flex; flex-direction: column; gap: 40px; }
.cs-process-step .step-num { font-family: var(--mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 8px; }
.cs-process-step .step-title { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.cs-process-step .step-desc { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text-secondary); line-height: 1.65; }

/* ── Key features ─────────── */
.cs-features { display: flex; flex-direction: column; gap: 40px; }
.cs-feature-num { font-family: var(--mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 8px; }
.cs-feature-title { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.cs-feature-desc { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text-secondary); line-height: 1.65; }
.step-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.step-tag { font-family: var(--mono); font-size: 9px; padding: 2px 6px; border: 0.5px solid var(--border-mid); color: var(--text-tertiary); border-radius: 2px; }

.decision-row { font-family: var(--body); padding: 14px 18px; border-left: 2px solid var(--accent); font-size: 13px; font-weight: 400; color: var(--text-secondary); line-height: 1.75; }
.decision-row strong { color: var(--text-primary); font-weight: 500; }

.learning-row { display: grid; grid-template-columns: 28px 1fr; }
.learning-row .idx { padding: 13px 0 13px 12px; font-family: var(--mono); font-size: 10px; color: var(--text-tertiary); border-right: 0.5px solid var(--border); }
.learning-row .txt { font-family: var(--body); padding: 13px 16px; font-size: 13px; font-weight: 400; color: var(--text-secondary); line-height: 1.7; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-accent {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.btn-accent:hover { opacity: 0.88; }

.btn-ghost {
  font-family: var(--sans);
  font-size: 12px;
  padding: 9px 20px;
  border-radius: 4px;
  background: transparent;
  color: var(--text-primary);
  border: 0.5px solid var(--border-mid);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost:hover { background: var(--bg-2); }

/* ── TOC ─────────────────────────────────────────────── */
.toc-label { font-family: var(--sans); font-size: 14px; font-weight: 500; color: #6B6A66; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.toc-item {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: #6B6A66;
  padding: 5px 0 5px 12px;
  border-left: 1.5px solid transparent;
  margin-left: -12px;
  cursor: pointer;
  transition: all 0.15s;
}
.toc-item:hover { color: var(--text-primary); border-left-color: var(--border-mid); }
.toc-item.active { color: var(--accent); border-left-color: var(--accent); }

/* ── Dark page shell ─────────────────────────────────── */
.dark-page { background: #1b2249; }

/* ── Work split layout ───────────────────────────────── */
.work-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  padding-top: 48px;
  height: 100vh;
}

/* LEFT: preview panel */
.work-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: none;
  overflow: hidden;
}
.work-preview-title {
  flex-shrink: 0;
  padding: 0 var(--site-padding) 24px;
}
.work-preview-title h1 {
  font-family: 'Solway', Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.work-preview-cards {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.work-preview-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.work-preview-card.active {
  opacity: 1;
  pointer-events: auto;
}
.work-preview-img {
  width: calc(100% - var(--site-padding));
  height: 300px;
  flex-shrink: 0;
  margin-left: var(--site-padding);
  border-radius: 12px;
}
.work-preview-meta {
  padding: 24px 0 48px var(--site-padding);
}
.work-preview-tags {
  display: flex;
  gap: 32px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}
.work-tag-dark {
  font-size: 12px;
  color: #ffffffb3;
  font-weight: 300;
  white-space: nowrap;
}
.work-preview-title {
  font-family: 'Solway', Georgia, serif;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 400;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.work-preview-year {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
  margin: 0 0 14px;
}
.work-preview-desc {
  font-size: 13px;
  color: #fff;
  line-height: 1.75;
  font-weight: 300;
  margin: 0 0 20px;
}
.work-preview-link {
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.work-preview-link:hover { color: #fff; }

/* RIGHT: scrollable list */
.work-list {
  height: 100%;
  overflow-y: auto;
  padding: 0 var(--site-padding) 80px 0;
  scrollbar-width: none;
}
.work-list::-webkit-scrollbar { display: none; }

.work-list-header { margin-bottom: 56px; }
.work-list-title {
  font-family: 'Solway', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.work-list-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  margin: 0;
  line-height: 1.6;
}

.work-list-section { margin-bottom: 40px; }
.work-list-label {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0;
  text-transform: none;
  border: none;
  padding: 0;
}

.work-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 2px;
}
.work-list-row:hover { background: rgba(255,255,255,0.05); }
.work-list-row.active { background: rgba(255,255,255,0.08); }
.work-list-row-muted { cursor: default; }
.work-list-row-muted:hover { background: none; }

.work-list-name {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s;
}
.work-list-row.active .work-list-name {
  font-size: 20px;
  color: #fff;
}
.work-list-row:hover:not(.work-list-row-muted) .work-list-name { color: #fff; }

.work-list-dots {
  flex: 1;
  border-bottom: 1.5px dashed rgba(255,255,255,0.1);
  margin-bottom: 3px;
  min-width: 20px;
}
.work-list-row.active .work-list-dots { border-bottom-color: rgba(255,255,255,0.15); }

.work-list-year {
  font-size: 13px;
  font-weight: 300;
  color: #fff;
  white-space: nowrap;
  min-width: 82px;
  text-align: right;
}
.work-list-row.active .work-list-year { color: rgba(255,255,255,0.6); }

.work-list-arrow {
  font-size: 18px;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  visibility: visible;
}
.work-list-arrow:empty { visibility: hidden; }
.work-list-row.active .work-list-arrow { color: rgba(255,255,255,0.7); }

.work-header {
  margin-bottom: 72px;
}
.work-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 12px;
  line-height: 1;
}
.work-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.work-section {
  margin-bottom: 64px;
}
.work-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border);
}

.work-row {
  display: block;
  position: relative;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.work-row:hover { opacity: 0.72; }
.work-row:hover .work-row-arrow { transform: translateX(4px); }

.work-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.work-row-name {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.work-row-year {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-tertiary);
}

.work-row-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.work-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  border: 0.5px solid var(--border-mid);
  border-radius: 100px;
  padding: 3px 10px;
}

.work-row-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
  max-width: 580px;
}

.work-row-arrow {
  position: absolute;
  right: 0;
  top: 28px;
  font-size: 18px;
  color: var(--text-tertiary);
  transition: transform 0.15s;
}

.work-row-muted .work-row-name { color: var(--text-secondary); font-size: clamp(16px, 2vw, 22px); }
.work-row-muted .work-row-arrow { display: none; }
.work-row-muted:hover { opacity: 1; cursor: default; }

/* ── Case study nav ──────────────────────────────────── */
.cs-nav { display: flex; justify-content: space-between; padding-top: 28px; border-top: 0.5px solid var(--border); margin-top: 8px; }
.cs-nav-btn { font-size: 11px; color: var(--text-tertiary); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: color 0.15s; text-decoration: none; }
.cs-nav-btn:hover { color: var(--accent); }

/* ── Case study nav ──────────────────────────────────── */
.cs-nav { display: flex; justify-content: space-between; padding-top: 28px; border-top: 0.5px solid var(--border); margin-top: 8px; }
.cs-nav-btn { font-family: var(--mono); font-size: 11px; color: var(--text-tertiary); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: color 0.15s; text-decoration: none; }
.cs-nav-btn:hover { color: var(--accent); }

/* ── Skill items ─────────────────────────────────────── */
.skill-item { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 7px; }
.skill-item::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── Index rows (footer info) ────────────────────────── */
.index-row { display: flex; justify-content: space-between; padding: 5px 0; }
.index-key { font-size: 11px; color: var(--text-tertiary); }
.index-val { font-size: 11px; color: var(--text-secondary); }
.index-val.link { color: var(--accent); }

/* ── About page ──────────────────────────────────────── */
.about-prose { font-size: 14px; color: var(--text-secondary); line-height: 1.85; max-width: 460px; }
.about-prose p + p { margin-top: 16px; }
.exp-row { padding: 16px 0; border-bottom: 0.5px solid var(--border); }
.exp-row:first-child { border-top: 0.5px solid var(--border); }
.exp-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3px; }
.exp-title { font-size: 13px; font-weight: 500; }
.exp-period { font-family: var(--mono); font-size: 10px; color: var(--text-tertiary); }
.exp-company { font-size: 12px; color: var(--accent); margin-bottom: 5px; }
.exp-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }

/* ── Contact page ────────────────────────────────────── */
.contact-field { padding: 16px 0; border-bottom: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.contact-field:first-child { border-top: 0.5px solid var(--border); }
.cf-label { font-family: var(--mono); font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.06em; }
.cf-val { font-size: 13px; color: var(--text-primary); }
.cf-val a { color: var(--accent); transition: opacity 0.15s; }
.cf-val a:hover { opacity: 0.75; }

/* ── Home: dark topbar ───────────────────────────────── */
.topbar-dark {
  background: #1f2753;
  border-bottom-color: rgba(255,255,255,0.06);
  position: relative;
  z-index: 10;
}
.topbar-dark .topbar-name { color: #fff; }
.topbar-dark .topbar-nav a { color: rgba(255,255,255,0.4); }
.topbar-dark .topbar-nav a:hover { color: #fff; }
.topbar-dark .topbar-nav a.active { color: #f9f5eb; }
.topbar-dark .avail-dot { background: #4ade80; }
.topbar-dark .avail-label { color: rgba(255,255,255,0.45); }

/* ── Hero page shell ─────────────────────────────────── */
.hero-page {
  position: fixed;
  left: 0; right: 0;
  top: 48px;
  bottom: 0;
  background: #1b2249;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Top: name + subtitle ────────────────────────────── */
.hero-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px var(--site-padding) 0;
  z-index: 1;
}

.hero-name {
  font-family: 'Solway', Georgia, serif;
  font-size: min(13.5vw, 234px);
  line-height: 0.82;
  letter-spacing: 4px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

.hero-sub {
  white-space: nowrap;
  align-self: flex-start;
}
.hero-sub span {
  font-family: var(--sans);
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.28em;
}

/* ── Mid: illustration + bottom text ────────────────── */
.hero-mid {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ── Illustration: fills hero-mid, centred ───────────── */
.hero-illustration {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(52vw, 750px);
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  opacity: 0.92;
}

/* ── Bottom row ──────────────────────────────────────── */
.hero-bottom {
  position: absolute;
  bottom: 160px;
  left: var(--site-padding);
  right: var(--site-padding);
  display: flex;
  align-items: flex-start;
  z-index: 1;
}

.hero-bio-wrap {
  width: 290px;
  flex-shrink: 0;
}
.hero-bio {
  font-size: 13px;
  line-height: 1.75;
  font-weight: 300;
  color: #fff;
  margin: 0;
}
.hero-bio strong { font-weight: 500; }

.hero-right-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;
}
.hero-quote {
  font-size: 13px;
  line-height: 1.75;
  font-weight: 300;
  color: #fefbf5;
  text-align: justify;
  text-align-last: justify;
  margin: 0;
  white-space: nowrap;
  width: 200px;
}
.btn-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  padding: 13px 24px;
  border-radius: 122px;
  background: #28315f;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 400;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-hero:hover { background: #1f2753; }

/* ── Work section (other pages) ──────────────────────── */
.home-work-section { background: var(--bg); }

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.1s; }
.fade-up-3 { animation-delay: 0.15s; }
.fade-up-4 { animation-delay: 0.2s; }

/* ── Case study page wrapper ─────────────────────────── */
.cs-page { margin-top: 0; }
.cs-page .cs-layout { margin-top: 0; }

/* ── Case study hero ─────────────────────────────────── */
.cs-hero {
  background: #1b2249;
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  padding: 40px var(--site-padding);
}
.cs-hero-card {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
}
.cs-hero-top {
  text-align: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.cs-hero-title {
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.cs-hero-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.cs-hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.cs-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.cs-meta-item {
  width: 100%;
}
.cs-meta-key {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 3px;
}
.cs-meta-val {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}
.cs-hero-img {
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
}
.cs-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Case study sub-sections ─────────────────────────── */
.cs-step-decision { font-family: var(--body); font-size: 12px; color: var(--text-secondary); line-height: 1.7; margin-top: 12px; padding: 10px 12px; background: var(--accent-dim); border-radius: 4px; }
.cs-step-why { font-family: var(--body); font-size: 12px; color: var(--text-secondary); line-height: 1.7; margin-top: 6px; padding: 10px 12px; background: var(--bg-2); border-radius: 4px; }
.cs-step-decision-label { font-family: var(--sans); font-size: 10px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 3px; }

.cs-sub-section { margin-top: 32px; }
.cs-sub-title { font-family: var(--sans); font-size: 14px; font-weight: 600; color: #1b2249; margin: 0 0 10px; }
.cs-body-p { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text-secondary); line-height: 1.85; margin: 0; }
.cs-body-p + .cs-body-p { margin-top: 10px; }

/* ── Case study challenge list ───────────────────────── */
.cs-challenge-list { display: flex; flex-direction: column; gap: 14px; }
.cs-challenge-item { display: flex; align-items: baseline; gap: 16px; }
.cs-challenge-num { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--accent); flex-shrink: 0; width: 20px; }
.cs-challenge-txt { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--text-secondary); line-height: 1.65; }

/* ── Case study layout ───────────────────────────────── */
.cs-layout {
  display: grid;
  grid-template-columns: calc(var(--site-padding) + 140px) 1fr;
  min-height: calc(100vh - 48px);
  margin-top: 48px;
  align-items: start;
}
.cs-sidebar {
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
  padding: 40px 24px 40px var(--site-padding);
  border-right: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}
.cs-sidebar::-webkit-scrollbar { display: none; }
.cs-back {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.cs-back:hover { color: var(--accent); }
.cs-main {
  padding: 40px var(--site-padding) 80px 48px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 720px) {
  :root { --site-padding: 20px; }

  /* Generic layouts */
  .two-col { grid-template-columns: 1fr; }
  .two-col .left { border-right: none; border-bottom: 0.5px solid var(--border); }
  .sidebar-col { grid-template-columns: 1fr; }
  .sidebar-col .sidebar { border-right: none; border-bottom: 0.5px solid var(--border); padding: 24px; }

  /* Topbar */
  .topbar { padding: 0 20px; }
  .topbar-nav { gap: 12px; }
  .topbar-nav a { font-size: 12px; }
  .avail-label { display: none; }

  /* Homepage hero — full flow layout on mobile */
  .hero-page {
    position: relative;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: visible;
    min-height: calc(100vh - 48px);
    padding: 32px 20px 40px;
    display: flex;
    flex-direction: column;
  }
  .hero-top {
    padding: 0 !important;
    align-items: flex-start;
  }
  .hero-name { font-size: min(11vw, 234px); text-align: left; width: 100%; }
  .hero-sub { margin-left: 0 !important; align-self: flex-start; }
  .hero-sub span { white-space: normal; letter-spacing: 0.1em; text-align: left; }
  .hero-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .hero-illustration {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    top: auto !important;
    height: auto !important;
    width: 68vw !important;
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .hero-illustration img { height: auto; object-fit: contain; object-position: center center; }
  .hero-bottom {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }
  .hero-bio-wrap { width: 100%; text-align: center; }
  .hero-bio { text-align: center; }
  .hero-right-wrap { flex-direction: row; align-items: center; justify-content: center; width: 100%; }
  .hero-quote { display: none; }
  .btn-hero { width: 100%; }

  /* Work page */
  .work-split {
    grid-template-columns: 1fr;
    height: auto;
    padding-top: 48px;
  }
  .work-preview { display: none; }
  .work-list {
    height: auto;
    overflow-y: visible;
    padding: 24px 20px 80px;
  }
  .work-list-section { padding-top: 32px !important; }
  .work-list-header { margin-bottom: 32px; }

  /* Case study layout */
  .cs-layout { grid-template-columns: 1fr; }
  .cs-sidebar { display: none; }
  .cs-main { padding: 32px 20px 60px; }
  .cs-hero { padding: 32px 20px; min-height: auto; }
  .cs-hero-body { grid-template-columns: 1fr; gap: 24px; }
  .grid-table { grid-template-columns: 1fr !important; }
}
