/* OmneNEST case study — builds on styles.css */
:root {
  --brand-a: #7000ff;
  --brand-b: #ff740f;
  --brand: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  --brand-soft: linear-gradient(90deg, rgb(112 0 255 / 0.08), rgb(255 116 15 / 0.08));
  --grey-band: #fafafa;
  --body: #404040;
  --line: #e7e7ee;
  --purple-ink: #5b00d1;
}

.on { color: var(--navy); }
.on strong, .on b { font-weight: 600; }
.on h4 { margin: 0; }
.on p + p { margin-top: 14px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; background: #000; color: #fff; border-radius: 6px; }
.skip:focus { left: 8px; }

.grad {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.on-header { position: absolute; inset: 0 0 auto 0; z-index: 2; }

/* ---------- Hero ---------- */
.hero-on {
  padding: 150px 0 56px;
  background: var(--brand-soft), #fff;
  overflow: hidden;
}
.hero-on__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 48px;
}
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-ink);
  margin-bottom: 12px;
}
.hero-on h1 { font-size: clamp(44px, 5vw, 72px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.hero-on__sub { margin-top: 8px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; line-height: 1.25; color: #000; letter-spacing: -0.01em; }
.hero-on__lede { margin-top: 22px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; color: var(--body); max-width: 520px; }

.hero-on__media { position: relative; aspect-ratio: 1.45; }
.hero-on__shot {
  position: absolute;
  width: 82%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px -18px rgb(40 45 70 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.06);
}
.hero-on__shot--light { left: 0; top: 0; }
.hero-on__shot--dark { right: 0; bottom: 0; }

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 1.2fr 1.4fr;
  gap: 24px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgb(40 45 70 / 0.12);
}
.meta dt { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6f82; }
.meta dd { margin-top: 6px; font-size: 16px; line-height: 1.5; font-weight: 500; }

/* ---------- Bands + type ---------- */
.band { padding: 96px 0; }
.band--grey { background: var(--grey-band); }
.band--tint { background: var(--brand-soft), #fff; }

.h2 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; line-height: 1.3; margin: 64px 0 18px; }
.h4 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.6; color: var(--navy); }
.body { font-size: 17px; line-height: 1.75; color: var(--body); }
.narrow { max-width: 760px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ---------- At a glance ---------- */
.glance {
  padding: 48px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -30px rgb(40 45 70 / 0.25);
}
.glance__title { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-ink); margin-bottom: 28px; }
.glance__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.glance__cols h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.glance__cols p { font-size: 16px; line-height: 1.7; color: var(--body); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stats-row--4 { grid-template-columns: 1fr 1.5fr 1fr 1fr; }
.stats-row li { display: flex; flex-direction: column; gap: 6px; }
.stats-row strong { font-size: clamp(34px, 3.4vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.stats-row span { font-size: 15px; line-height: 1.5; color: var(--body); }
.footnote { margin-top: 24px; font-size: 13px; line-height: 1.6; color: #6b6f82; }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 40px -24px rgb(40 45 70 / 0.35);
}
.shot img[data-zoom] { cursor: zoom-in; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.shot img[data-zoom]:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -22px rgb(40 45 70 / 0.45); }
.shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: #6b6f82; }
.shot--wide { margin-top: 40px; }

.shot--annotated { margin-top: 48px; }
.shot__frame { position: relative; }
.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-a);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.85), 0 6px 14px rgb(0 0 0 / 0.25);
  pointer-events: none;
}
.pins-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; counter-reset: pin; }
.pins-legend li { position: relative; padding-left: 44px; font-size: 15px; line-height: 1.65; color: var(--body); counter-increment: pin; }
.pins-legend li::before {
  content: counter(pin);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-a);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.pins-legend strong { display: block; color: var(--navy); }

/* ---------- Constraints ---------- */
.constraints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.constraints li { padding: 24px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.constraints strong { display: block; font-size: 17px; margin-bottom: 8px; }
.constraints span { font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- Hypotheses + goals ---------- */
.hypotheses { display: grid; gap: 12px; margin-top: 28px; max-width: 860px; }
.hypotheses li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--grey-band);
  border: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.55;
}
.hypotheses span {
  flex: none;
  min-width: 36px;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-ink);
}

.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.goals li { padding: 28px 24px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -24px rgb(40 45 70 / 0.4); }
.num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 20px;
  font-weight: 500;
  color: #000;
}
.goals h4 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: #000; }
.goals p { font-size: 16px; line-height: 1.6; color: var(--body); }

/* ---------- Personas ---------- */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.persona { padding: 28px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.persona__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.persona__head img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
  background: var(--brand-soft), #f3effa;
  flex: none;
}
.persona h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.persona h3 small { display: block; font-size: 14px; font-weight: 400; color: #6b6f82; }
.persona h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6f82; margin: 18px 0 8px; }
.persona ul ul, .persona > ul { display: grid; gap: 6px; }
.persona > ul li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.55; color: var(--body); }
.persona > ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 32px;
  align-items: center;
  margin-top: 8px;
  padding: 28px 32px;
  border-radius: 16px;
  background: #f7f7f7;
}
.process__label { font-size: 15px; font-weight: 600; }
.process__steps { display: flex; flex-wrap: wrap; gap: 8px; }
.process__steps li {
  padding: 8px 14px;
  border-radius: 4px;
  background: rgb(var(--c) / 0.2);
  font-size: 15px;
  font-weight: 500;
  color: #000;
}
.process__note { grid-column: 1 / -1; font-size: 15px; line-height: 1.6; color: var(--body); }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--purple-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--purple-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-link::after { content: "↗"; text-decoration: none; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Research steps ---------- */
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; margin-top: clamp(80px, 10vw, 128px); }
.h2 + .step { margin-top: 48px; }
.step--flip .step__text { order: 2; }
.step--stack { display: block; }
.step--stack .step__text { max-width: 760px; margin-bottom: 28px; }
.step .h3 { margin-top: 0; }
.ticks { display: grid; gap: 12px; margin-top: 20px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.65; color: var(--body); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.2 3.3 8l-1 1 4.2 4.2 7.2-7.2-1-1z'/%3E%3C/svg%3E") center / 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.2 3.3 8l-1 1 4.2 4.2 7.2-7.2-1-1z'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair--wide { gap: 28px; margin-top: 8px; }

/* ---------- Decisions ---------- */
.decision {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: center;
  margin-top: 72px;
}
.decision + .decision { margin-top: clamp(96px, 11vw, 140px); }
.decision--flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.decision--flip .decision__media { order: 2; }
.decision__num { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; color: var(--purple-ink); margin-bottom: 10px; }
.decision h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; line-height: 1.3; margin-bottom: 14px; }
.decision p { font-size: 16px; line-height: 1.7; color: var(--body); }
.solves { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px !important; font-size: 13px !important; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b6f82 !important; }
.solves b { padding: 2px 8px; border-radius: 4px; background: rgb(112 0 255 / 0.1); color: var(--purple-ink); letter-spacing: 0; }

.scale { margin-top: 96px; padding-top: 64px; border-top: 1px solid rgb(40 45 70 / 0.12); }
.scale__text { max-width: 760px; margin-bottom: 28px; }
.scale .h3 { margin-top: 0; }

/* ---------- Validation ---------- */
.study { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.study li { padding: 22px 24px; border-radius: 12px; background: var(--grey-band); border: 1px solid var(--line); }
.study strong { display: block; font-size: 20px; margin-bottom: 4px; }
.study span { font-size: 15px; line-height: 1.55; color: var(--body); }

.results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 48px; }
.results__insight { max-width: 860px; }
.table-wrap td small { white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--grey-band); font-size: 13px; font-weight: 600; color: #4d5168; }
.table-wrap tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap td { color: #166533; font-weight: 500; }
.table-wrap td.low { background: #fef2f2; color: #b91c1c; font-weight: 700; }
.table-wrap td small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: #6b6f82; }
.table-wrap tr.row-all > * { background: var(--grey-band); font-weight: 700; }
.table-wrap tr.row-all td { color: var(--navy); }

.sus-chart { display: grid; gap: 14px; max-width: 860px; }
.sus-chart .h4 { margin-bottom: 4px; }
.sus-row { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 16px; font-size: 15px; }
.sus-label { font-weight: 600; }
.sus-val { font-weight: 700; text-align: right; }
.sus-track { position: relative; height: 14px; border-radius: 7px; background: #f0f0f4; }
.sus-bar { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: 7px; background: #f59e0b; }
.sus-bar--ok { background: #16a34a; }
.sus-bar--bad { background: #dc2626; }
.sus-row--all .sus-bar { background: var(--navy); }
.sus-mark { position: absolute; left: 68%; top: -6px; bottom: -6px; border-left: 2px dashed var(--navy); }
.sus-mark i { position: absolute; top: 24px; left: -4px; font-size: 12px; font-style: normal; font-weight: 600; white-space: nowrap; color: var(--navy); transform: translateX(-50%); }
.sus-row--all { margin-bottom: 18px; }
.table-note { margin-top: 10px; font-size: 13px; color: #6b6f82; }

.themes { margin-top: 24px; }
.themes table { min-width: 620px; }
.themes thead th:first-child { text-align: left; }
.themes tbody th { white-space: normal; font-size: 15px; line-height: 1.4; }
.themes tbody th small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--body); }
.themes td { width: 13%; font-size: 18px; }
.themes td.hit { color: var(--brand-a); }
.themes td.pos { color: #16a34a; font-weight: 700; }
.insight--spaced { margin-top: 28px; max-width: 860px; }

.insight { padding-left: 24px; border-left: 3px solid var(--brand-a); font-size: 18px; line-height: 1.65; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quotes li { padding: 22px 24px; border-radius: 10px; background: #f0fdf5; border: 1px solid #bbf7d1; }
.quotes blockquote, .finding blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.quotes cite { display: block; margin-top: 12px; font-size: 13px; font-style: normal; font-weight: 600; color: #166533; }

.findings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.finding { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -26px rgb(40 45 70 / 0.5); }
.finding h4 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.finding h4 small { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: #fef2f2; color: #991b1b; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }
.finding blockquote { padding: 12px 16px; border-radius: 8px; background: #fef2f2; color: #3b1d1d; }
.finding .obs { padding: 12px 16px; border-radius: 8px; background: var(--grey-band); font-size: 15px; line-height: 1.6; color: var(--body); margin: 0; }
.fix { margin: auto 0 0 !important; padding-top: 4px; font-size: 15px; line-height: 1.6; color: var(--body); }
.fix b { color: var(--navy); }
.prio { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.prio--p0 { background: #fee2e2; color: #991b1b; }
.prio--p1 { background: #ede9fe; color: #5b21b6; }
.prio--p2 { background: #dbeafe; color: #1e40af; }

.deferred { margin: 28px 0 56px; padding: 18px 22px; border-radius: 10px; border: 1px dashed #c9c9d6; font-size: 16px; line-height: 1.65; color: var(--body); }
.deferred strong { color: var(--navy); }

/* ---------- Outcomes ---------- */
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.results-grid li { padding: 28px 24px; border-radius: 12px; background: var(--brand-soft), #fff; border: 1px solid var(--line); }
.results-grid strong { display: block; font-size: clamp(36px, 3.6vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.results-grid span { display: block; margin-top: 8px; font-size: 16px; color: var(--body); }

/* ---------- Reflection ---------- */
.learnings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: l; }
.learnings li { position: relative; padding: 28px 24px 24px; border-radius: 12px; border: 1px solid var(--line); counter-increment: l; }
.learnings li::before { content: "0" counter(l); display: block; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--purple-ink); }
.learnings h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.learnings p { font-size: 16px; line-height: 1.7; color: var(--body); }

/* ---------- Thanks + more ---------- */
.thanks { padding: 120px 0; text-align: center; }
.thanks__title { font-size: clamp(40px, 7vw, 104px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }

.more { padding: 96px 0 88px; }
.more__title { margin: 0 0 40px; color: #000; }
.more-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.card--sm { min-height: 290px; }
.card--sm .card-text { min-height: 290px; width: 62%; padding: 34px 0 30px 38px; }
.card--sm .card-title { font-size: clamp(20px, 1.6vw, 22px); line-height: 1.6; }
.card--sm .card-client { font-size: 15px; }
.card--sm .card-media { width: 50%; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(96vw, 1600px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
}
.lightbox::backdrop { background: rgb(15 17 30 / 0.82); }
.lightbox img { width: 100%; height: auto; }
.lightbox__close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 10px -52px 0;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .meta { grid-template-columns: repeat(3, 1fr); }
  .constraints, .stats-row--4, .results-grid { grid-template-columns: repeat(2, 1fr); }
  .decision { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .band { padding: 64px 0; }
  .hero-on { padding: 120px 0 40px; }
  .hero-on__grid, .two-col, .step, .decision, .decision--flip, .results { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-on__media { max-width: 620px; }
  .step--flip .step__text, .decision--flip .decision__media { order: 0; }
  .decision__media { order: 0; }
  .decision, .decision + .decision { margin-top: 72px; }
  .step { margin-top: 56px; }
  .glance { padding: 32px 24px; }
  .glance__cols, .goals, .personas, .quotes, .learnings, .study, .pins-legend { grid-template-columns: 1fr; gap: 20px; }
  .findings { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; padding: 24px; }
  .h3 { margin-top: 48px; }
  .more-cards { grid-template-columns: 1fr; gap: 32px; }
  .thanks { padding: 80px 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .nav-links { gap: 20px; }
  .resume-btn { padding: 0 16px 0 12px; }
  .meta { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 44px; }
  .meta > div:nth-child(3) { grid-column: 1 / -1; }
  .stats-row { grid-template-columns: 1fr; gap: 20px; }
  .constraints, .pair { grid-template-columns: 1fr; }
  .pin { width: 24px; height: 24px; font-size: 12px; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.85); }
  .tag { top: 8px; left: 8px; font-size: 12px; padding: 2px 8px; }
  .hypotheses li { font-size: 16px; padding: 14px 16px; }
  .themes table { min-width: 0; }
  .themes th, .themes td { padding: 12px 8px; }
  .themes thead th { font-size: 11px; }
  .themes tbody th { font-size: 14px; }
  .themes td { width: 52px; }
  .card--sm .card-text { width: auto; min-height: 0; padding: 28px 24px 20px; }
  .card--sm { display: flex; flex-direction: column; min-height: 0; }
  .card--sm .card-media { position: static; width: 100%; height: 200px; margin-top: auto; object-fit: cover; object-position: left top; }
}


/* ---------- Users: interview synthesis ---------- */
.interview { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.iv { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.iv__seg { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple-ink); }
.iv blockquote { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--grey-band); font-size: 15px; line-height: 1.55; color: var(--navy); }
.iv__item { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.iv__item h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.iv__item h4 span { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-50); color: var(--purple-ink); font: 500 11px/1.6 var(--font-mono); letter-spacing: 0.04em; vertical-align: 2px; }
.iv__item p { font-size: 15px; line-height: 1.55; color: var(--body); }
.iv__res { margin-top: 4px; padding: 10px 12px; border-radius: 10px; }
.iv__res b { display: block; margin-bottom: 2px; font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.iv__res--done { background: #ecf7f0; } .iv__res--done b { color: #166533; }
.iv__res--part { background: #f2eaff; } .iv__res--part b { color: var(--purple-ink); }
.iv__res--fix { background: #fdf3dd; } .iv__res--fix b { color: #8a5a00; }
.iv__res--out { background: var(--grey-band); } .iv__res--out b { color: var(--muted-ink); }
.iv__later { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--muted-ink); }
@media (max-width: 1080px) { .interview { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Problem statement ---------- */
.ps-card { max-width: 920px; padding: clamp(22px, 3vw, 36px); border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand-a); }
.ps-card__label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple-ink); }
.ps-card__main { margin-top: 12px; font-family: var(--font-display); font-size: clamp(20px, 2.1vw, 26px); font-weight: 600; line-height: 1.38; letter-spacing: -0.01em; color: var(--navy); }
.ps-card__main em { font-style: normal; color: #b42318; }
.ps-card__hmw { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.6; color: var(--body); }
.ps-card__hmw span { margin-right: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple-ink); }
.ps-card__note { margin-top: 28px; }

/* =====================================================================
   Site look: same structure as above, restyled to the case study family
   (warm paper ground, Schibsted Grotesk / Instrument Sans / Geist Mono,
   hairline cards). OmneNEST purple is the accent.
   ===================================================================== */
:root {
  --navy: #15171c;
  --body: #3c414b;
  --muted-ink: #6b707b;
  --line: #e7e3da;
  --grey-band: #f4f1ea;
  --paper-bg: #fbfaf7;
  --brand-a: #6b00ef;
  --purple-ink: #6b00ef;
  --accent-50: #f2eaff;
  --brand: linear-gradient(90deg, #6b00ef, #6b00ef);
  --brand-soft: linear-gradient(0deg, #f4f1ea, #f4f1ea);
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-family: var(--font-body);
}
body { background: var(--paper-bg); font-family: var(--font-body); }
.on { color: var(--navy); }

/* Type */
.on h1, .on h2, .on h3, .on h4, .h2, .h3, .h4, .hero-on__sub, .glance__cols h3, .stats-row strong,
.results-grid strong, .decision h3, .learnings h3, .persona h3, .goals h4, .constraints strong,
.study strong, .finding h4, .thanks__title, .card-title, .num, .pin, .pins-legend li::before {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.hero-on h1 { font-weight: 800; letter-spacing: -0.035em; }
.hero-on h1 .grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--brand-a); }
.h2, .h2 .grad, .thanks__title .grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--navy); font-weight: 800; }
.hero-on__sub { color: var(--navy); font-weight: 700; }
.kicker, .glance__title, .meta dt, .persona h4, .sub, .table-wrap thead th, .solves, .decision__num,
.learnings li::before, .hypotheses span, .prio, .quotes cite, .tag, .process__label {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.kicker { font-size: 12px; color: var(--purple-ink); }
.meta dt { font-size: 11px; color: var(--muted-ink); }
.nav-link, .resume-btn { font-family: var(--font-body); }

/* Surfaces: hairline cards on paper, no heavy shadows */
.hero-on { background: var(--paper-bg); }
.band--tint, .band--grey { background: var(--grey-band); }
.glance, .goals li, .constraints li, .persona, .finding, .study li, .learnings li, .hypotheses li,
.results-grid li, .quotes li, .table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}
.glance, .goals li, .constraints li, .persona, .finding, .learnings li, .results-grid li { background: #fff; }
.hypotheses li, .study li { background: var(--paper-bg); }
.results-grid li { background: #fff; }
.shot img { border-color: var(--line); box-shadow: none; }
.shot img[data-zoom]:hover { box-shadow: 0 10px 24px -16px rgb(21 23 28 / 0.3); }
.hero-on__shot { box-shadow: 0 20px 50px -24px rgb(21 23 28 / 0.35), 0 0 0 1px var(--line); }
.num { background: var(--accent-50); color: var(--purple-ink); }
.tag, .pin, .pins-legend li::before { background: var(--brand-a); }
.process { background: #fff; border: 1px solid var(--line); }
.insight { border-left-color: var(--brand-a); }
.solves b { background: var(--accent-50); color: var(--purple-ink); }
.source-link, .link-btn { color: var(--purple-ink); }
.table-wrap thead th { background: var(--grey-band); color: var(--muted-ink); font-size: 11px; text-transform: uppercase; }
.table-wrap tr.row-all > * { background: var(--grey-band); }
.themes td.hit { color: var(--brand-a); }
.sus-row--all .sus-bar { background: var(--navy); }
.sus-mark { border-left-color: var(--navy); }
.sus-mark i { font-family: var(--font-mono); font-weight: 500; }
.persona__head img { background: var(--accent-50); }
.persona > ul li::before { background: var(--brand-a); }
.ticks li::before { background: var(--brand-a); }
.deferred { border-color: var(--line); }
.thanks { background: var(--grey-band); }
.footer { color: var(--muted-ink); }

/* =====================================================================
   Site chrome: the header, "More work", contact and footer shared with the
   other case studies (site.css styles them; these are the base rules
   site.css builds on). Page content above is unchanged.
   ===================================================================== */
:root {
  --ink: #15171c;
  --ink-2: #3c414b;
  --muted: #6b707b;
  --paper-bg: #f5f5f3;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.s-top { position: sticky; top: 0; z-index: 20; background: rgb(245 245 243 / 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { font-family: var(--font-display); font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.toc { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; font-size: 14px; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; }
.toc a:hover { color: var(--ink); background: var(--grey-band); }
.toc a.s-is-on { color: var(--ink); background: var(--grey-band); font-weight: 600; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, #7000ff, #ff740f); }
.hero-on { padding-top: 64px; }
[id] { scroll-margin-top: 72px; }
.foot { margin-top: 0; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-more h2, .site-contact h2, .site-card h3 { color: var(--ink); }
@media (max-width: 860px) { .hero-on { padding-top: 40px; } }
@media (max-width: 720px) { .s-top .toc { display: none; } .top-in { justify-content: space-between; } }

/* Headings in ink, like the JPMC case study; numbers sit above each legend item */
.hero-on h1 .grad { color: var(--navy); }
.pins-legend li { padding-left: 0; padding-top: 42px; }
.pins-legend li::before { top: 0; left: 0; }

/* ---------- Hero, laid out like the JPMC case study ----------
   Device stage on a soft gradient (the light workspace, with the dark theme overlapping it
   where JPMC shows a phone), then label, title, lede and a one-row fact strip.
   The screenshots carry their own window chrome, so there is no extra browser bar. */
.on-hero { padding: 0 0 40px; }
.on-stage { background: linear-gradient(180deg, #efe6fd 0%, #fbfaf7 100%); border-bottom: 1px solid var(--line); padding: 48px 0 0; margin-bottom: 48px; overflow: hidden; }
/* Both screens are the same size (w = 88.18% of the stage). The dark one sits in front, shifted
   right and down by 13.4% of a screen, which leaves exactly 25% of the light one showing
   (1 - 0.866 x 0.866 = 0.25). Shifts in stage widths: 0.134w = 11.82% across, 0.134 x 0.625w = 7.38% down. */
.on-devices { position: relative; max-width: 1000px; margin: 0 auto; padding-top: 7.38%; }
.on-browser { position: absolute; left: 0; top: 0; width: 88.18%; margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -30px rgb(107 0 239 / .35), 0 0 0 1px rgb(21 23 28 / .08); }
.on-browser img { display: block; width: 100%; height: auto; }
.on-browser--dark { position: relative; z-index: 1; margin-left: 11.82%; margin-bottom: -2px; border-radius: 12px 12px 0 0; box-shadow: -24px -10px 60px -24px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .06); }
.on-hero__kicker { margin-bottom: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-ink); }
.on-hero h1 { max-width: 16ch; font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: #15171c; }
.on-hero__lede { max-width: 640px; margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--body); }
.on-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.on-meta div { padding: 16px 16px 16px 0; }
.on-meta div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.on-meta dt { margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6b707b; }
.on-meta dd { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
@media (max-width: 900px) {
  .on-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .on-meta div, .on-meta div + div { padding: 14px 16px 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .on-meta div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .on-meta div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 720px) {
  .on-stage { padding-top: 28px; margin-bottom: 32px; }
}

/* ---------- Project timeline: overlapping phase pills on faint guide lines ----------
   Each row sets --s and --e, the phase's start and end as a % of the project (not to scale). */
.tl { margin-top: 28px; }
.tl__rows { list-style: none; margin: 0; padding: 0; }
.tl__rows li { position: relative; height: 54px; }
.tl__rows li::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #e6e2f3; }
.tl__bar { position: absolute; top: 50%; left: calc(var(--s) * 1%); width: calc((var(--e) - var(--s)) * 1%); min-width: max-content; translate: 0 -50%;
  padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
/* late phases are anchored at their end so their labels never run off the right edge */
.tl__rows li:nth-last-child(-n+4) .tl__bar { left: auto; right: calc((100 - var(--e)) * 1%); }
.tl__bar--y { background: linear-gradient(90deg, #faf3d4, #fbf7e6); color: #8a5a12; }
.tl__bar--r { background: linear-gradient(90deg, #fdd9dc, #fdeef0); color: #9b1c38; }
.tl__bar--p { background: linear-gradient(90deg, #e6dcfb, #f3eefe); color: #5b2bb0; }
.tl__bar--g { background: linear-gradient(90deg, #dcf3c4, #eef9e2); color: #3d6b12; }
.tl__bar--b { background: linear-gradient(90deg, #d6e6fd, #ecf3fe); color: #1e3a8a; }
.tl__scale { margin-top: 20px; text-align: center; font-size: clamp(18px, 2vw, 24px); font-weight: 600; color: #3b3f5c; }
.tl__note { margin-top: 12px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--body); }
@media (max-width: 720px) {
  .tl__rows li { height: 46px; }
  .tl__bar { padding: 9px 14px; font-size: 13px; }
}
