/* Unified filters case study. Self-contained; colors follow the case study deck. */
:root {
  --uf-bg: #fff;
  --uf-muted: #f6f4ef;
  --uf-raised: #fffdf9;
  --uf-panel: #e6e0d6;
  --uf-ink: #16202e;
  --uf-ink-soft: #4a5462;
  --uf-line: #e4dfd5;
  --uf-accent: #b4532a;
  --uf-accent-wash: #f1dfd4;
  --uf-dark: #16202e;
  --uf-font: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --uf-wrap: 1040px;
  --uf-gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--uf-bg);
  color: var(--uf-ink);
  font: 400 18px/1.65 var(--uf-font);
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--uf-accent); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }

.uf-wrap { max-width: var(--uf-wrap); margin: 0 auto; padding-inline: var(--uf-gutter); }
.uf-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.uf-topnav { padding: 16px var(--uf-gutter); font-size: 15px; }
.uf-topnav a, .uf-end a { text-decoration: none; }
.uf-topnav a:hover, .uf-end a:hover { text-decoration: underline; text-underline-offset: 4px; }

.uf-kicker {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--uf-accent);
}

/* ---------- Hero ---------- */
.uf-hero { padding: 24px 0 0; background: var(--uf-muted); overflow: hidden; }
.uf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: end;
}
.uf-hero__grid > div:first-child { align-self: center; padding-bottom: 48px; }
.uf-hero h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.05; font-weight: 700; }
.uf-lede { margin-top: 20px; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.45; color: var(--uf-ink-soft); }
.uf-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 48px 32px 0;
  background: var(--uf-panel);
  border-radius: 16px 16px 0 0;
}
.uf-cover img { border-radius: 10px; box-shadow: 0 12px 32px rgba(22, 32, 46, .14); }
.uf-cover__picker { width: 42%; margin: 0 -4% 12% 0; position: relative; z-index: 1; }
.uf-cover__editor { width: 54%; border-radius: 10px 10px 0 0; }

/* ---------- Sections ---------- */
.uf-section { padding: 80px 0; }
.uf-section--muted { background: var(--uf-muted); }
.uf-section h2 { margin-bottom: 24px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.2; font-weight: 700; }
.uf-section h3 { margin-bottom: 12px; font-size: 22px; line-height: 1.3; font-weight: 700; }
.uf-section h4 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.uf-section p + p { margin-top: 14px; }
.uf-prose { max-width: 820px; }
.uf-subhead { margin-top: 48px; }
.uf-feature .uf-subhead { margin-top: 32px; }

/* Overview */
.uf-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; }
.uf-facts { display: grid; gap: 24px; align-content: start; padding-top: 8px; }
.uf-facts dt { font-size: 15px; font-weight: 700; }
.uf-facts dd { margin-top: 4px; color: var(--uf-ink-soft); }

/* Products */
.uf-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.uf-products article { padding: 24px; background: var(--uf-raised); border-radius: 12px; }
.uf-products h4 { margin-bottom: 8px; color: var(--uf-accent); }
.uf-products p { font-size: 16px; line-height: 1.55; }
.uf-users { margin-top: 16px !important; font-size: 14px !important; color: var(--uf-ink-soft); }
.uf-users::before { content: "Core users: "; font-weight: 600; color: var(--uf-ink); }

/* Quotes */
.uf-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.uf-quote { padding-left: 20px; border-left: 3px solid var(--uf-accent); }
.uf-quote p { font-style: italic; }
.uf-quote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--uf-ink-soft); }
.uf-quote cite::before { content: "— "; }

.uf-list { max-width: 820px; padding-left: 1.2em; list-style: disc; }
.uf-list li + li { margin-top: 12px; }

/* ---------- Opportunity flow ---------- */
.uf-flow {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}
.uf-flow__label { margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--uf-accent); }
.uf-flow__old, .uf-flow__surfaces { display: grid; gap: 10px; }
.uf-flow__old { padding: 20px; background: var(--uf-panel); border-radius: 12px; }
.uf-flow__old span, .uf-flow__surfaces span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
}
.uf-flow__old span { border: 1px solid #cfc6b8; color: var(--uf-ink-soft); text-decoration: line-through; }
.uf-flow__surfaces span { background: var(--uf-raised); box-shadow: 0 1px 4px rgba(22, 32, 46, .08); }
.uf-flow__arrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--uf-accent); }
.uf-flow__arrow::after { content: " →"; }
.uf-flow__node {
  display: grid;
  gap: 8px;
  padding: 28px 16px;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--uf-raised);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(22, 32, 46, .08);
}
.uf-flow__node small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--uf-accent); }
.uf-flow__node--dark { background: var(--uf-dark); color: #fff; }
.uf-flow__node--dark small { color: #f0a77f; }

/* ---------- How might we ---------- */
.uf-hmw { padding: 96px 0; background: var(--uf-dark); color: #fff; }
.uf-hmw__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.uf-hmw .uf-kicker { color: #f0a77f; }
.uf-hmw h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; font-weight: 600; }

/* ---------- Metrics ---------- */
.uf-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; counter-reset: none; }
.uf-metrics li { padding: 24px; border-radius: 12px; background: var(--uf-muted); }
.uf-metrics span { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--uf-accent); }
.uf-metrics h4 { margin-bottom: 8px; font-size: 18px; }
.uf-metrics p { font-size: 16px; line-height: 1.55; color: var(--uf-ink-soft); }

/* ---------- Role ---------- */
.uf-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.uf-three--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 0; }
.uf-three h3 { font-size: 20px; }

/* ---------- Timeline ---------- */
.uf-timeline { overflow-x: auto; padding: 24px; background: var(--uf-raised); border-radius: 12px; }
.uf-timeline__inner {
  --lane: 110px;
  --months: 7;
  position: relative;
  min-width: 760px;
  margin-left: var(--lane);
  container-type: inline-size;
  background: repeating-linear-gradient(90deg, var(--uf-line) 0 1px, transparent 1px calc(100% / 7));
}
.uf-timeline__months { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 0 12px 8px; font-size: 14px; font-weight: 600; color: var(--uf-ink-soft); }
.uf-timeline__row { position: relative; height: 84px; }
.uf-timeline__lane { position: absolute; right: 100%; top: 4px; width: var(--lane); font-size: 16px; font-weight: 700; }
.uf-bar, .uf-milestone {
  position: absolute;
  top: 8px;
  padding-top: 18px;
  font-size: 13px;
  line-height: 1.3;
}
.uf-bar {
  left: calc(var(--from) / var(--months) * 100%);
  width: max(calc((var(--to) - var(--from)) / var(--months) * 100cqw), 140px);
  padding-right: 8px;
}
.uf-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc((var(--to) - var(--from)) / var(--months) * 100cqw);
  min-width: 10px;
  height: 10px;
  background: var(--uf-accent);
  border-radius: 5px;
}
.uf-milestone { left: calc(var(--at) / var(--months) * 100%); padding-left: 0; font-weight: 600; }
.uf-milestone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--uf-dark);
  transform: rotate(45deg);
}

/* ---------- Feature rows ---------- */
.uf-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.uf-shot img { border-radius: 10px; }
.uf-shot figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--uf-ink-soft); }
.uf-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; margin-top: 40px; align-items: center; }

.uf-tag { margin-bottom: 12px !important; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--uf-accent); }

/* ---------- Design decisions ---------- */
.uf-decision + .uf-decision { margin-top: 80px; }
.uf-decision > h3 { font-size: 24px; }
.uf-decision > .uf-prose { margin-bottom: 32px; }
.uf-decision > h3 + .uf-ba,
.uf-decision > h3 + .uf-sub,
.uf-decision > h3 + .uf-sentence { margin-top: 24px; }

.uf-ba { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.uf-ba img, .uf-trio img, .uf-ops img, .uf-sub img { background: #fff; border: 1px solid var(--uf-line); }
.uf-ba__after { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.uf-ba--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.uf-ba--wide img { border: 0; background: none; }

.uf-trio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 24px; align-items: center; }

.uf-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.uf-ops img { border: 0; background: none; }

/* Data panel IA */
.uf-ia { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.uf-ia__card { padding: 28px; background: var(--uf-raised); border-radius: 14px; }
.uf-tree, .uf-tree ul { display: grid; gap: 10px; }
.uf-tree > li + li { margin-top: 18px; }
.uf-tree ul { margin: 10px 0 0 20px; padding-left: 18px; border-left: 1px solid #cfc6b8; }
.uf-tree ul > li { position: relative; }
.uf-tree ul > li::before { content: ""; position: absolute; left: -18px; top: 17px; width: 14px; border-top: 1px solid #cfc6b8; }
.uf-tree span { display: inline-block; padding: 6px 12px; font-size: 15px; background: #ece6dc; border-radius: 6px; }
.uf-tree .uf-tree__root { font-weight: 600; background: var(--uf-accent-wash); }
.uf-tree li:has(> .uf-tree__side) { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; }
.uf-tree ul.uf-tree__side { margin: 0; padding: 0; border: 0; }
.uf-tree ul.uf-tree__side > li::before { left: -12px; width: 10px; }

/* Pattern table */
.uf-table-wrap { overflow-x: auto; background: var(--uf-raised); border-radius: 14px; }
.uf-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.uf-table th, .uf-table td { padding: 16px 24px; text-align: left; vertical-align: top; font-size: 16px; }
.uf-table thead th { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--uf-accent); }
.uf-table tbody th { font-weight: 700; white-space: nowrap; }
.uf-table td { color: var(--uf-ink-soft); }
.uf-table tbody tr { border-top: 1px solid var(--uf-line); }

/* ---------- Demo ---------- */
.uf-demo { padding: 96px 0; background: var(--uf-dark); color: #fff; }
.uf-demo h2 { margin-bottom: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.1; font-weight: 700; }
.uf-button {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  background: #ef8a5c;
  color: var(--uf-dark);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.uf-button:hover { background: #f39d74; }
.uf-button--light { margin-top: 32px; }
.uf-button--sm { padding: 10px 20px; font-size: 15px; }

/* ---------- Results ---------- */
.uf-results { display: grid; gap: 32px; counter-reset: result; }
.uf-results li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; counter-increment: result; }
.uf-results li::before {
  content: counter(result);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--uf-accent-wash);
  color: var(--uf-accent);
  font-weight: 700;
}
.uf-results h3 { margin-bottom: 6px; font-size: 18px; line-height: 1.65; }
.uf-feedback { display: grid; gap: 16px; }
.uf-feedback img { border: 1px solid var(--uf-line); border-radius: 10px; }

/* ---------- Future ---------- */
.uf-sentence {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  padding: 28px;
  background: var(--uf-muted);
  border-radius: 14px 14px 0 0;
}
.uf-sentence__part { display: grid; gap: 6px; }
.uf-sentence__word { padding: 8px 0; color: var(--uf-ink-soft); }
.uf-chip {
  min-width: 96px;
  padding: 8px 12px;
  background: #fff;
  border: 1.5px solid var(--uf-ink);
  border-radius: 6px;
  font-weight: 600;
}
.uf-chip::after { content: " ▾"; font-size: 11px; color: var(--uf-accent); }
.uf-opt {
  display: block;
  max-width: 200px;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.4;
  background: var(--uf-accent-wash);
  border: 1.5px solid transparent;
  border-radius: 6px;
}
.uf-opt--next { background: transparent; border: 1.5px dashed #e08a63; }
.uf-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 20px 28px;
  background: var(--uf-muted);
  border-top: 1px solid var(--uf-line);
  border-radius: 0 0 14px 14px;
}
.uf-callout__x { font-size: 40px; line-height: 1; font-weight: 600; color: #e07a4c; }
.uf-callout > p:nth-child(2) { flex: 1; min-width: 220px; font-weight: 600; }
.uf-legend { display: grid; gap: 6px; font-size: 13px; color: var(--uf-ink-soft); }
.uf-legend li { display: flex; align-items: center; gap: 8px; }
.uf-legend .uf-opt { width: 24px; height: 14px; padding: 0; }

.uf-sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 32px; align-items: center; }

.uf-end { padding-block: 48px 64px; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .uf-products, .uf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uf-flow { grid-template-columns: 1fr; justify-items: stretch; }
  .uf-flow__arrow::after { content: " ↓"; }
}
@media (max-width: 760px) {
  :root { --uf-gutter: 16px; }
  body { font-size: 17px; }
  .uf-section { padding: 56px 0; }
  .uf-hmw, .uf-demo { padding: 64px 0; }
  .uf-hero__grid, .uf-overview, .uf-quotes, .uf-hmw__grid, .uf-three, .uf-three--two,
  .uf-feature, .uf-pair, .uf-ba, .uf-ba--wide, .uf-ops, .uf-ia, .uf-sub { grid-template-columns: 1fr; gap: 32px; }
  .uf-hero__grid > div:first-child { padding-bottom: 0; }
  .uf-products, .uf-metrics { grid-template-columns: 1fr; }
  .uf-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uf-trio .uf-shot--center { grid-column: 1 / -1; }
  .uf-cover { padding: 32px 16px 0; }
  .uf-decision + .uf-decision { margin-top: 56px; }
}
.uf-bar--low { top: 46px; }
.uf-milestone { width: calc(100% / 7); }

/* Fixes from review */
.uf-section > .uf-wrap > .uf-prose + .uf-decision { margin-top: 48px; }
.uf-feature .uf-shot img[src*="principles"] { border: 1px solid var(--uf-line); }
.uf-sentence { flex-wrap: nowrap; overflow-x: auto; gap: 10px; }
.uf-sentence__part { flex: none; }
.uf-chip { min-width: 0; white-space: nowrap; }
.uf-opt { max-width: 168px; }
.uf-results li.uf-recognition { display: block; padding-top: 8px; counter-increment: none; font-weight: 600; }
.uf-results li.uf-recognition::before { content: none; }

/* ---------- Round 1 comments ---------- */
.uf-prose { max-width: none; }
.uf-hero h1 { font-size: clamp(40px, 4.4vw, 60px); white-space: nowrap; }
.uf-hero__grid > div:first-child { padding-bottom: 0; }
.uf-cover { background: none; padding-top: 32px; }
#overview h2 { margin-bottom: 16px; font-size: 24px; }
.uf-subhead { margin-bottom: 32px; }
.uf-feature .uf-subhead { margin-bottom: 12px; }
#process h2 { margin-bottom: 24px; }
.uf-discovery h2, .uf-principles h2 { margin-bottom: 44px; }
.uf-discovery .uf-feature > div > p:first-child { margin-bottom: 40px; }
.uf-discovery .uf-quote { margin-top: 80px; }
.uf-principles .uf-shot img { box-shadow: 0 12px 32px rgba(22, 32, 46, .12); }
.uf-principles h3 { font-size: 18px; }
.uf-decision > h3 { margin-bottom: 32px; }
.uf-trio img { background: none; border: 0; }

/* Quotes: the orange line follows the quote text only */
.uf-quotes { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.uf-quote { padding-left: 0; border-left: 0; }
.uf-quote p { padding-left: 20px; border-left: 3px solid var(--uf-accent); }
.uf-quote cite { padding-left: 23px; }

/* Opportunity diagram with connectors, as in the deck */
.uf-flow { grid-template-columns: minmax(150px, 1fr) minmax(90px, .7fr) minmax(150px, 1fr) 40px minmax(150px, 1fr) 56px minmax(140px, .9fr); gap: 0; }
.uf-flow__link { position: relative; align-self: center; height: 1px; background: #d9b8a6; }
.uf-flow__link--replace { background: var(--uf-accent); }
.uf-flow__link--replace::before { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--uf-accent); }
.uf-flow__link--replace::after { content: ""; position: absolute; right: -2px; top: -7px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--uf-accent); border: 1.5px solid var(--uf-accent); box-sizing: border-box; }
.uf-flow__link span { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--uf-accent); white-space: nowrap; }
.uf-flow__node { position: relative; z-index: 1; }
.uf-flow__node--editor::after { content: ""; position: absolute; right: -8px; top: 50%; width: 15px; height: 15px; margin-top: -7px; border-radius: 50%; background: #fff; border: 1.5px solid var(--uf-accent); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px var(--uf-accent); box-sizing: border-box; }
.uf-flow__fan { align-self: stretch; width: 100%; height: calc(100% - 34px); margin-top: 34px; overflow: visible; }
.uf-flow__fan path { fill: none; stroke: #d9b8a6; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.uf-flow__surfaces { grid-template-rows: auto repeat(5, 1fr); gap: 10px; }
.uf-flow__surfaces .uf-flow__label { margin-bottom: 0; height: 24px; }
.uf-flow__old .uf-flow__label { margin-bottom: 4px; }
@media (max-width: 900px) {
  .uf-flow { grid-template-columns: 1fr; gap: 16px; }
  .uf-flow__link, .uf-flow__fan, .uf-flow__node--editor::after { display: none; }
}

/* How might we */
.uf-hmw__title { margin-bottom: 48px; text-align: center; font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
.uf-hmw__q { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; }

/* Success metrics on a timeline, as in the deck */
.uf-metrics { position: relative; gap: 24px; margin-top: 48px; padding-top: 0; }
.uf-metrics::before { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: var(--uf-ink); opacity: .85; }
.uf-metrics li { position: relative; padding: 0; background: none; border-radius: 0; }
.uf-metrics .uf-metrics__when { display: block; height: 32px; margin: 0; font-size: 15px; font-weight: 600; color: var(--uf-ink); }
.uf-metrics li::before { content: ""; position: absolute; left: 0; top: 33px; width: 16px; height: 16px; border-radius: 50%; background: var(--uf-muted); box-shadow: inset 0 0 0 5px var(--uf-muted), inset 0 0 0 8px var(--uf-accent); border: 1.5px solid var(--uf-accent); box-sizing: border-box; }
.uf-metrics li::after { content: ""; position: absolute; left: 7px; top: 49px; width: 2px; height: 31px; background: var(--uf-accent); }
.uf-metrics__card { margin-top: 48px; padding: 24px; background: var(--uf-muted); border-radius: 12px; }
@media (max-width: 760px) { .uf-metrics::before { display: none; } }

/* Process collage */
.uf-feature--collage { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); align-items: center; }
.uf-collage { position: relative; aspect-ratio: 1.15; }
.uf-collage img { position: absolute; border-radius: 10px; }
.uf-collage__a { top: 0; right: 0; width: 78%; z-index: 1; }
.uf-collage__b { left: 0; bottom: 4%; width: 62%; z-index: 2; }
.uf-collage__c { right: 0; bottom: 0; width: 34%; z-index: 3; }
@media (max-width: 760px) { .uf-collage { aspect-ratio: 1.1; } }

/* Segment data panel diagram, as in the deck */
.uf-htree, .uf-htree ul { list-style: none; margin: 0; padding: 0; }
.uf-htree > li + li { margin-top: 28px; }
.uf-htree li { display: flex; align-items: flex-start; }
.uf-htree span { flex: none; display: inline-block; padding: 6px 12px; font-size: 15px; line-height: 22px; background: #ece6dc; border-radius: 6px; white-space: nowrap; }
.uf-htree .uf-htree__root { font-weight: 600; background: var(--uf-accent-wash); }
.uf-htree ul { position: relative; display: flex; flex-direction: column; gap: 10px; margin-left: 28px; }
.uf-htree ul::before { content: ""; position: absolute; left: -28px; top: 17px; width: 14px; border-top: 1px solid #cfc6b8; }
.uf-htree ul > li { position: relative; }
.uf-htree ul > li::before { content: ""; position: absolute; left: -14px; top: 17px; width: 14px; border-top: 1px solid #cfc6b8; }
.uf-htree ul > li::after { content: ""; position: absolute; left: -14px; top: -10px; bottom: 0; border-left: 1px solid #cfc6b8; }
.uf-htree ul > li:first-child::after { top: 17px; }
.uf-htree ul > li:last-child::after { bottom: auto; height: 27px; }
.uf-htree ul > li:first-child:last-child::after { display: none; }
.uf-ia { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.uf-ia__card { overflow-x: auto; }
.uf-flow > .uf-flow__old, .uf-flow > .uf-flow__link, .uf-flow > .uf-flow__node { margin-top: 34px; }
@media (max-width: 900px) { .uf-flow > .uf-flow__old, .uf-flow > .uf-flow__node { margin-top: 0; } }
.uf-hmw .uf-hmw__title { margin-bottom: 48px; font-size: clamp(36px, 4.4vw, 52px); font-weight: 700; line-height: 1.15; }
.uf-ia { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.uf-ia__card { padding: 24px; }
.uf-htree span { padding: 5px 10px; font-size: 14px; }
.uf-htree ul { margin-left: 24px; }
.uf-htree ul::before { left: -24px; width: 12px; }
.uf-htree ul > li::before { left: -12px; width: 12px; }
.uf-htree ul > li::after { left: -12px; }
.uf-htree ul > li:first-child::after { top: 16px; }
.uf-htree ul > li:last-child::after { height: 26px; }
.uf-htree ul::before, .uf-htree ul > li::before { top: 16px; }

/* Demo walkthrough */
.uf-demo__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-bottom: 64px; }
.uf-walk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; }
.uf-walk__item { margin: 0; }
.uf-walk__item--wide { grid-column: 1 / -1; }
.uf-walk__item h3 { margin: 0 0 20px; font-size: 22px; font-weight: 600; color: #fff; }
.uf-walk__item img { display: block; width: 100%; height: auto; border-radius: 12px; }
.uf-walk__item--wide img { max-width: 1000px; }
@media (max-width: 900px) { .uf-walk { grid-template-columns: 1fr; } }
.uf-ops img { border-radius: 12px; }

/* Round 2 comments */
#role .uf-subhead { margin-bottom: 52px; }
.uf-feature--collage > div:first-child { position: relative; top: -20px; }
.uf-principles .uf-feature { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }

/* Workflow IA: root chip with an indented, full-width list */
.uf-vtree, .uf-vtree ul { list-style: none; margin: 0; padding: 0; }
.uf-vtree > li + li { margin-top: 28px; }
.uf-vtree span { display: block; padding: 10px 16px; font-size: 15px; line-height: 1.3; background: #ece6dc; border-radius: 6px; }
.uf-vtree .uf-vtree__root { display: inline-block; font-weight: 600; background: var(--uf-accent-wash); }
.uf-vtree ul { position: relative; display: grid; gap: 12px; margin: 12px 0 0 16px; padding-left: 24px; }
.uf-vtree ul > li { position: relative; }
.uf-vtree ul > li::before { content: ""; position: absolute; left: -24px; top: -12px; width: 16px; height: calc(50% + 12px); border-left: 1px solid #cfc6b8; border-bottom: 1px solid #cfc6b8; }

/* Customer feedback collage */
.uf-feedback--collage { position: relative; display: block; padding-bottom: 12%; }
.uf-feedback--collage img { display: block; border: 0; border-radius: 10px; box-shadow: 0 12px 32px rgba(22, 32, 46, .14); }
.uf-feedback--collage img[src*="feedback-2"] { width: 84%; }
.uf-feedback--collage img[src*="feedback-1"] { position: absolute; right: 0; bottom: 0; width: 76%; z-index: 1; }
@media (max-width: 900px) { .uf-principles .uf-feature { grid-template-columns: 1fr; } }
.uf-vtree ul > li:not(:last-child)::after { content: ""; position: absolute; left: -24px; top: 50%; bottom: -12px; border-left: 1px solid #cfc6b8; }

/* Round 3 comments */
.uf-section h2 { font-size: clamp(28px, 3.4vw, 38px); }
#context .uf-subhead { margin-bottom: 52px; }
.uf-problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 48px; }
.uf-problem .uf-subhead { margin-top: 0; }
.uf-problem .uf-quotes { grid-template-columns: 1fr; gap: 40px; margin-top: 0; }
.uf-discovery .uf-quote p { margin-right: 20px; }
.uf-role__intro { margin-top: 64px; }
@media (max-width: 900px) { .uf-problem { grid-template-columns: 1fr; gap: 40px; } }
.uf-flow__link--replace { z-index: 2; }
.uf-flow__link--replace::after { right: -8px; }
.uf-flow__surfaces span { position: relative; z-index: 1; }

/* Round 4 comments */
#design > .uf-wrap > h2 { margin-bottom: 64px; }
.uf-results li { display: block; }
.uf-results li::before { content: none; }
.uf-results .uf-recognition { margin-top: 12px; font-weight: 600; }
.uf-walk--four { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .83fr); }
.uf-walk--four .uf-walk__item:nth-child(3) { grid-column: 1; }
.uf-walk__item--events { grid-column: 2 / 4; }
@media (max-width: 900px) { .uf-walk--four { grid-template-columns: 1fr; } .uf-walk--four .uf-walk__item { grid-column: auto; } }
@media (min-width: 1100px) { .uf-walk--four { width: min(1240px, calc(100vw - 200px)); position: relative; left: 50%; transform: translateX(-50%); } }

/* If I had more time */
.uf-nl { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; margin-top: 32px; }
.uf-nl h4 { margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.uf-gif { margin-top: 32px; }
.uf-gif img { display: block; width: 100%; max-width: 1000px; height: auto; border-radius: 12px; border: 1px solid var(--uf-line); }
@media (max-width: 900px) { .uf-nl { grid-template-columns: 1fr; gap: 32px; } }

/* Round 5 comments */
.uf-section h2 { font-size: clamp(26px, 3.4vw, 36px); }
.uf-demo h2 { font-size: clamp(36px, 5vw, 60px); }
#overview h2 { font-size: 24px; }
#learnings h2 { margin-bottom: 44px; }
.uf-cover__picker { width: 40.8%; margin-right: -1%; }
.uf-cover__editor { width: 50.3%; }

/* Design walkthrough: GIF and text side by side, alternating sides */
.uf-walkthrough__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-bottom: 56px; }
.uf-walkthrough__head h2 { margin-bottom: 0; }
.uf-wt { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.uf-wt:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.uf-wt + .uf-wt { margin-top: 80px; }
.uf-wt img { display: block; width: 100%; height: auto; border-radius: 12px; }
.uf-wt:nth-of-type(even) img { order: 2; }
.uf-wt__text p { color: var(--uf-ink-soft); }
@media (min-width: 1100px) { .uf-walkthrough .uf-wrap { max-width: 1280px; } }
@media (max-width: 800px) {
  .uf-wt, .uf-wt:nth-of-type(even) { grid-template-columns: 1fr; gap: 24px; }
  .uf-wt:nth-of-type(even) img { order: 0; }
  .uf-wt + .uf-wt { margin-top: 56px; }
}

/* ---------- Filters in context ---------- */
.uf-tabs { display: flex; gap: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--uf-panel); }
.uf-tabs button { margin-bottom: -1px; padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--uf-ink-soft); font: 600 17px/1.3 var(--uf-font); cursor: pointer; }
.uf-tabs button:hover { color: var(--uf-ink); }
.uf-tabs button[aria-selected="true"] { color: var(--uf-ink); border-bottom-color: var(--uf-accent); }
.uf-context .uf-tabs, .uf-context [role="tabpanel"] { width: 70%; }
@media (max-width: 800px) { .uf-context .uf-tabs, .uf-context [role="tabpanel"] { width: 100%; } }
.uf-context { margin-top: 96px; }
.uf-context > h3 { margin-bottom: 24px; }
.uf-context [role="tabpanel"] img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 1px 2px rgba(22, 32, 46, .08), 0 8px 24px rgba(22, 32, 46, .08); }

/* ---------- If I had more time ---------- */
.uf-decision--boxed { padding: 40px; border: 1px solid var(--uf-line); border-radius: 16px; background: var(--uf-bg); box-shadow: 0 1px 2px rgba(22, 32, 46, .06), 0 8px 24px rgba(22, 32, 46, .08); }
.uf-decision--boxed > h3 { margin-bottom: 8px; }
.uf-decision__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-bottom: 24px; }
.uf-decision__head h3 { margin-bottom: 0; font-size: 24px; }
@media (max-width: 600px) { .uf-decision--boxed { padding: 24px; } }
.uf-feature-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 48px; }
.uf-feature-row img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--uf-line); }
.uf-feature-row h4 { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.uf-feature-row p { color: var(--uf-ink-soft); }
.uf-feature-row p + h4 { margin-top: 28px; }
@media (max-width: 800px) { .uf-feature-row { grid-template-columns: 1fr; gap: 24px; } }
.uf-gif--sq { width: 60%; }
@media (max-width: 800px) { .uf-gif--sq { width: 100%; } }
.uf-feature-row + .uf-feature-row { margin-top: 64px; }
.uf-feature-row--flip { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.uf-feature-row--flip img { order: 2; }
@media (max-width: 800px) { .uf-feature-row--flip { grid-template-columns: 1fr; } .uf-feature-row--flip img { order: 0; } }
.uf-context__note h4 { margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.uf-context__note p { color: var(--uf-ink-soft); }
.uf-context [role="tabpanel"].uf-context__row:not([hidden]) { display: grid; grid-template-columns: 70% minmax(0, 1fr); align-items: center; gap: 48px; width: 100%; }
@media (max-width: 800px) { .uf-context [role="tabpanel"].uf-context__row:not([hidden]) { grid-template-columns: 1fr; gap: 20px; } }
.uf-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
