/* Light, Figma-like workspace. Tokens: primitives → semantic → components. */
:root {
  /* primitives */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-150: #ededed;
  --gray-200: #e6e6e6;
  --gray-300: #d4d4d4;
  --gray-600: #666666;
  --gray-900: #1e1e1e;
  --blue-50: #e5f4ff;
  --blue-500: #0b8ae6;
  --blue-600: #0a6dc2;
  --blue-700: #085a9f;

  /* semantic */
  --bg-app: var(--gray-100);
  --bg-panel: var(--white);
  --bg-hover: var(--gray-100);
  --bg-selected: var(--blue-50);
  --border: var(--gray-200);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --accent: var(--blue-500);
  --accent-strong: var(--blue-600);
  --focus: var(--blue-500);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-float: 0 1px 2px rgb(0 0 0 / 0.06), 0 4px 16px rgb(0 0 0 / 0.08);
  --shadow-slide: 0 0 0 1px rgb(0 0 0 / 0.05), 0 2px 8px rgb(0 0 0 / 0.06);
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* components */
  --rail-w: 48px;
  --panel-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 400 13px/1.45 var(--font);
  font-feature-settings: "cv11", "ss01";
  color: var(--text);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 50; padding: 8px 12px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-float); }
.skip-link:focus { top: 8px; }

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: auto 1fr;
  height: 100dvh;
}
.sidebar { display: flex; min-height: 0; }
.mobile-bar, .scrim { display: none; }

/* ---------- Rail ---------- */
.rail {
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
}
.rail__logo {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 8px;
  border-radius: var(--radius-md);
  background: #101820;
}
.rail__logo img { display: block; width: 22px; height: 22px; }
.rail__btn {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--text-muted);
  cursor: pointer;
}
.rail__btn svg { width: 18px; height: 18px; }
.rail__btn:hover { background: var(--bg-hover); color: var(--text); }
.rail__btn.is-active { background: var(--bg-selected); color: var(--blue-700); }
.rail__spacer { flex: 1; }

/* ---------- Panel ---------- */
.panel {
  width: var(--panel-w);
  display: flex; flex-direction: column;
  min-height: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
}
.panel__head { padding: 16px 16px 12px; border-bottom: 1px solid var(--border); }
.panel__file { margin: 0; font-weight: 600; font-size: 13px; }
.panel__sub { margin: 2px 0 0; color: var(--text-muted); font-size: 12px; }
.panel__body { flex: 1; overflow-y: auto; padding: 6px 8px 12px; }
.panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.panel__section {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 6px;
}
.panel__label { margin: 0; font-size: 12px; font-weight: 600; }
.panel__meta { font-size: 12px; color: var(--text-muted); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--text);
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) { background: var(--bg-hover); }
.icon-btn:disabled { color: var(--gray-300); cursor: default; }
.icon-btn--sm { width: 24px; height: 24px; border-radius: var(--radius-sm); }

.pages, .slides { list-style: none; margin: 0; padding: 0; }
.page-row, .slide-row {
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 32px;
  padding: 6px 8px;
  border: 0; border-radius: var(--radius-sm);
  background: transparent;
  text-align: left; cursor: pointer;
}
.page-row:hover, .slide-row:hover { background: var(--bg-hover); }
.page-row svg { color: var(--text-muted); }
.page-row.is-active { font-weight: 600; }
.page-row.is-active svg { color: var(--text); }
.page-row__name, .slide-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-row__count { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.slides { margin: 2px 0 6px; }
.slide-row { padding-left: 12px; gap: 8px; font-size: 12px; }
.slide-row.is-active { background: var(--bg-selected); }
.slide-row__num { width: 14px; text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.slide-row__thumb {
  width: 34px; height: 22px; flex: none;
  border-radius: 3px; overflow: hidden;
  background: var(--gray-150);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.slide-row__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.slide-row.is-active .slide-row__thumb { box-shadow: 0 0 0 1.5px var(--accent); }
.mini { display: grid; gap: 2px; width: 100%; height: 100%; padding: 4px; background: var(--white); }
.mini i { border-radius: 1px; background: var(--gray-300); }
.mini--sm-map { grid-template-columns: repeat(3, 1fr); }
.mini--sm-map i:first-child { grid-column: 2; background: var(--gray-900); }
.mini--sm-page { grid-template-columns: 1fr 2fr; grid-template-rows: 1fr 1fr; }
.mini--sm-page i:first-child { grid-row: span 2; background: var(--gray-900); }
.mini--sm-story, .mini--sm-funnel, .mini--sm-flow { grid-auto-flow: column; align-items: center; }
.mini--sm-story i, .mini--sm-funnel i { height: 60%; }
.mini--sm-flow i { height: 5px; border-radius: 50%; }
.mini--sm-funnel i:last-child { background: #12a150; }
.mini--sm-later { grid-auto-flow: column; }
.mini--sm-later i { background: none; border: 1px dashed var(--gray-300); }
.mini--br-color { grid-auto-flow: column; gap: 0; padding: 0; }
.mini--br-color i { border-radius: 0; }
.mini--br-overview { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mini--br-overview i:first-child { grid-row: span 2; background: var(--gray-900); }
.mini--dk-facts { grid-template-columns: 1fr 1fr; }
.mini--dk-cards { grid-template-columns: repeat(3, 1fr); }
.mini--dk-goals { grid-template-columns: 3fr 2fr; grid-template-rows: repeat(3, 1fr); }
.mini--dk-goals i:nth-child(odd) { background: var(--gray-900); }
.mini--dk-goals i:nth-child(5), .mini--dk-goals i:nth-child(6) { grid-column: span 1; background: var(--gray-200); }
.mini--dk-persona { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mini--dk-persona i:first-child { grid-row: span 2; background: var(--gray-900); }
.mini--dk-steps { grid-auto-flow: column; align-items: center; }
.mini--dk-steps i { height: 60%; }
.mini--dk-steps i:last-child { background: var(--gray-900); }
.mini--dk-map { position: relative; grid-template-columns: repeat(3, 1fr); background: var(--gray-50); }
.mini--dk-map i { width: 5px; height: 5px; border-radius: 50%; background: var(--gray-600); align-self: center; justify-self: center; }
.mini--dk-map i:last-child { background: #fc3f2b; }
.mini--dk-status { grid-template-rows: repeat(5, 1fr); }
.mini--dk-status i:nth-child(odd) { background: var(--gray-200); }
.mini--dk-index, .mini--dk-table { grid-template-rows: repeat(5, 1fr); }
.mini--dk-index i, .mini--dk-table i { height: 2px; align-self: center; border-radius: 0; }
.mini--dk-index i:first-child, .mini--dk-table i:first-child { background: var(--gray-900); }
.mini--dk-catalog { grid-template-columns: repeat(3, 1fr); }
.mini--dk-columns { grid-auto-flow: column; }
.mini--dk-agenda { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); }
.mini--dk-statement { grid-template-columns: 3fr 2fr; grid-template-rows: repeat(3, 1fr); }
.mini--dk-statement i:first-child { grid-row: span 3; background: var(--gray-900); }
.mini--br-logo, .mini--br-type, .mini--br-apps, .mini--br-imagery { grid-auto-flow: column; }
.mini--br-type i:first-child, .mini--br-logo i:nth-child(2) { background: var(--gray-900); }

.badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gray-150); color: var(--text-muted);
  font-size: 12px; font-weight: 500; line-height: 18px;
}

.add-page { position: relative; }
.menu {
  position: absolute; right: 0; top: 28px; z-index: 20;
  min-width: 180px; padding: 6px;
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}
.menu__label { margin: 2px 8px 6px; font-size: 12px; color: var(--text-muted); }
.menu button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 32px; padding: 6px 8px;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; text-align: left; cursor: pointer;
}
.menu button:hover, .menu button:focus-visible { background: var(--bg-selected); outline: none; }

.asset-grid { list-style: none; margin: 0; padding: 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.asset {
  display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0;
  border: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--gray-150); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.asset img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.asset:hover { box-shadow: 0 0 0 2px var(--accent); }

.empty-note { margin: 4px 8px; padding: 14px; border-radius: var(--radius-md); background: var(--gray-50); border: 1px dashed var(--gray-300); color: var(--text-muted); }
.empty-note p { margin: 0; }
.empty-note__title { color: var(--text); font-weight: 600; margin-bottom: 4px !important; }

body.panel-collapsed .panel { display: none; }

/* ---------- Canvas ---------- */
.canvas {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0; min-height: 0;
}
.canvas__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 48px; padding: 0 12px 0 16px;
}
.canvas__crumb { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-muted); font-size: 12px; }
.canvas__crumb span { white-space: nowrap; }
.canvas__crumb span:last-child { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canvas__crumb svg { width: 12px; height: 12px; }
.canvas__actions { display: flex; gap: 6px; flex: none; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-weight: 500; cursor: pointer; white-space: nowrap;
}
.btn--sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn svg { width: 14px; height: 14px; }
.btn--primary { background: var(--accent-strong); color: var(--white); }
.btn--primary:hover { background: var(--blue-700); }
.btn--primary svg { fill: currentColor; stroke: none; }
.btn--ghost { background: var(--white); border-color: var(--border); }
.btn--ghost:hover { background: var(--gray-50); border-color: var(--gray-300); }

.stage {
  container-type: size;
  display: grid; place-items: center;
  min-height: 0;
  padding: 4px 24px 72px;
  outline: none;
}
.slide-frame {
  width: min(100cqw, 1760px);
  height: min(100cqh, 1100px);
  background: var(--white);
  box-shadow: var(--shadow-slide);
  border-radius: 2px;
  overflow: hidden;
  container-type: size;
}
.canvas.is-dragging .slide-frame { box-shadow: 0 0 0 2px var(--accent), var(--shadow-slide); }

.toolbar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.toolbar__count { min-width: 52px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.toolbar__sep { width: 1px; height: 20px; margin: 0 6px; background: var(--border); }
.segmented { display: flex; padding: 2px; border-radius: var(--radius-md); background: var(--gray-100); }
.segmented button {
  height: 28px; padding: 0 10px;
  border: 0; border-radius: 6px;
  background: transparent; color: var(--text-muted);
  font-size: 12px; font-weight: 500; cursor: pointer;
}
.segmented button[aria-checked="true"] { background: var(--white); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.1); }

.exit-present { display: none; }

/* ---------- Slides ---------- */
.slide {
  position: relative;
  width: 100%; height: 100%;
  padding: clamp(24px, 3.6cqw, 64px) clamp(24px, 4cqw, 72px);
  color: var(--text);
}
.eyebrow { margin: 0 0 clamp(6px, 0.7cqw, 12px); font-size: clamp(12px, 1cqw, 16px); font-weight: 600; letter-spacing: 0.02em; color: var(--text-muted); }
.display { margin: 0; font-size: clamp(34px, 5cqw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.title { margin: 0; font-size: clamp(24px, 2.8cqw, 48px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
.lede { margin: clamp(10px, 1.4cqw, 24px) 0 0; max-width: 46ch; font-size: clamp(14px, 1.4cqw, 22px); line-height: 1.45; color: var(--text-muted); }
.body { margin: 0; font-size: clamp(12px, 1.1cqw, 18px); line-height: 1.5; color: var(--text-muted); }
.label { margin: clamp(14px, 1.5cqw, 26px) 0 clamp(4px, 0.5cqw, 8px); font-size: clamp(12px, 0.9cqw, 14px); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.small { margin: 0; font-size: clamp(12px, 1cqw, 16px); color: var(--text-muted); }
[contenteditable] { border-radius: 4px; cursor: text; }
[contenteditable]:hover { box-shadow: 0 0 0 1px var(--accent); }
[contenteditable]:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }

.auto-layout { position: relative; min-width: 0; min-height: 0; height: 100%; }
.tile {
  position: absolute; left: 0; top: 0;
  padding: 0; border: 0;
  border-radius: max(4px, 0.5cqw);
  overflow: hidden;
  background: var(--gray-150);
  cursor: zoom-in;
  transition: transform 260ms var(--ease), width 260ms var(--ease), height 260ms var(--ease);
}
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); pointer-events: none; }
.tile:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.tile:focus-visible { outline-offset: 3px; z-index: 1; }
.tile__badge {
  position: absolute; left: 8px; bottom: 8px;
  padding: 2px 8px; border-radius: 999px;
  background: rgb(255 255 255 / 0.94); color: var(--text);
  font-size: 12px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

/* cover */
.slide--cover { display: grid; grid-template-columns: minmax(280px, 36%) 1fr; gap: clamp(24px, 4cqw, 72px); }
.cover__text { display: flex; flex-direction: column; justify-content: space-between; }
.cover__brand { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: clamp(13px, 1.1cqw, 18px); }
.cover__logo { display: block; height: clamp(22px, 2cqw, 34px); width: auto; }
/* Cover images: one large tile on top, then one per remaining moodboard direction. */
.cover__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 3fr) minmax(0, 1fr); gap: max(6px, 1cqw); min-width: 0; min-height: 0; }
.cover__grid .tile { position: relative; width: 100%; height: 100%; }
.cover__grid .tile:first-child { grid-column: 1 / -1; }
.cover__grid .tile:first-child img { object-position: left top; }

/* moodboard intro */
.slide--intro { display: grid; grid-template-rows: auto 1fr auto; gap: clamp(20px, 2.6cqw, 44px); }
.directions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 2cqw; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
.directions > li { min-height: 0; }
/* 5+ directions: two rows of three instead of one cramped row */
@media (min-width: 768px) { .directions:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.direction-card {
  display: grid; grid-template-rows: minmax(0, 1fr) auto auto; grid-template-columns: auto 1fr; column-gap: 1.2cqw;
  width: 100%; height: 100%; min-height: 0; overflow: hidden; padding: 1.2cqw;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--gray-50); text-align: left; cursor: pointer;
}
.direction-card:hover { border-color: var(--accent); background: var(--white); }
.direction-card__images { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.6cqw; min-height: 0; margin-bottom: 1.4cqw; }
.direction-card__images img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: top; border-radius: 0.5cqw; display: block; }
.direction-card__num { grid-row: 2 / 4; align-self: start; font-size: clamp(22px, 2.3cqw, 38px); font-weight: 600; letter-spacing: -0.03em; color: var(--text-muted); line-height: 1; }
.direction-card__title { font-size: clamp(14px, 1.6cqw, 26px); font-weight: 600; letter-spacing: -0.015em; }
.direction-card__meta { font-size: clamp(12px, 1cqw, 16px); color: var(--text-muted); }
.hint { display: flex; align-items: center; gap: 6px; margin: 0; font-size: clamp(12px, 1cqw, 16px); color: var(--text-muted); }
kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px;
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px;
  background: var(--white); font: 500 12px var(--font); color: var(--text);
}

/* direction */
.slide--direction { display: grid; grid-template-columns: minmax(260px, 32%) 1fr; gap: clamp(20px, 3.2cqw, 56px); }
.direction__text { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.direction__text .title { margin-bottom: 0.4cqw; }
.features { margin: 0; display: grid; gap: clamp(6px, 0.7cqw, 14px); }
.features dt { font-size: clamp(12px, 1.05cqw, 17px); font-weight: 600; }
.features dd { margin: 1px 0 0; font-size: clamp(12px, 0.98cqw, 16px); line-height: 1.4; color: var(--text-muted); }
.tags { list-style: none; margin: auto 0 0; padding: clamp(12px, 1.2cqw, 22px) 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--gray-50);
  font-size: clamp(12px, 0.9cqw, 15px); font-weight: 500; white-space: nowrap;
}

/* board */
.slide--board { display: grid; grid-template-rows: auto 1fr; gap: clamp(16px, 2cqw, 32px); }
.board__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2cqw; }
.board__count { margin: 0; font-size: clamp(12px, 1cqw, 16px); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.auto-layout.is-empty { display: grid; }
.dropzone {
  display: grid; place-content: center; gap: 6px; text-align: center;
  border: 1.5px dashed var(--gray-300); border-radius: var(--radius-lg);
  background: var(--gray-50); color: var(--text-muted);
  font-size: max(12px, 1.1cqw); padding: 2cqw;
}
.dropzone p { margin: 0; max-width: 42ch; }
.dropzone__title { color: var(--text); font-weight: 600; font-size: max(14px, 1.6cqw); }
.canvas.is-dragging .dropzone { border-color: var(--accent); background: var(--bg-selected); }

/* placeholder */
.slide--placeholder { display: grid; place-items: center; }
.placeholder { display: grid; justify-items: center; gap: 1.2cqw; max-width: 46ch; text-align: center; }
.placeholder__icon { display: grid; place-items: center; width: 5cqw; height: 5cqw; border-radius: var(--radius-lg); background: var(--gray-100); color: var(--text-muted); }
.placeholder__icon svg { width: 50%; height: 50%; }

/* ---------- Sitemap ---------- */
/* Page-type colors: --g marks borders and dots, --g-text is the darker shade
   that keeps text at 4.5:1 or more on white. */
[data-group="home"] { --g: #1e1e1e; --g-text: #1e1e1e; }
[data-group="support"] { --g: #5b6cf0; --g-text: #3c4bcf; }
[data-group="funnel"] { --g: #e5484d; --g-text: #c0262c; }
[data-group="offer"] { --g: #12a150; --g-text: #0a7038; }
[data-group="product"] { --g: #e5484d; --g-text: #c0262c; }
[data-group="capability"] { --g: #5b6cf0; --g-text: #3c4bcf; }
[data-group="company"] { --g: #d9822b; --g-text: #8f5310; }
[data-group="convert"] { --g: #12a150; --g-text: #0a7038; }
[data-group="future"] { --g: #a3a3a3; --g-text: #666666; }
[data-group="utility"] { --g: #737373; --g-text: #595959; }

.slide--sm {
  display: flex; flex-direction: column; gap: clamp(14px, 1.8cqw, 30px);
  overflow-y: auto; scrollbar-width: thin;
}
.slide--sm .label { margin-top: 0; }
.sm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; }
.sm-legend li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-900); white-space: nowrap; }
.sm-legend li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--g); }
.sm-legend li[data-group="future"]::before { box-sizing: border-box; background: none; border: 1.5px solid var(--g); }

/* Sitemap slides built from the component layer (components.js). */
.slide--sm .ui-head .body { max-width: 70ch; }
.sm-wire__block b { margin-right: 4px; font-weight: 600; font-variant-numeric: tabular-nums; color: #8a8a8a; }
.sm-later__state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 2px; }
.sm-later__state .ui-meta { margin: 0; }
.sm-later .ui-col > .ui-rows { margin-top: clamp(8px, 0.8cqw, 14px); }
.sm-flow__tag { margin: auto 0 0; padding-top: clamp(8px, 0.8cqw, 12px); font-size: 12.5px; font-weight: 600; color: var(--gray-900); }
.sm-flow .ui-col.is-accent .sm-flow__tag { color: var(--red-text); }
.slide--sm-flow > .ui-cols { margin: auto 0; }
.slide--sm-story > .ui-head + div { margin-top: clamp(24px, 3cqw, 56px); }
.ui-cols--tight { gap: clamp(14px, 1.6cqw, 28px); }
.ui-cols--tight .ui-col__title { font-size: clamp(14px, 1.2cqw, 20px); }
.ui-cols--tight .ui-col__text { font-size: clamp(12px, 0.9cqw, 14px); }

/* overview map: a pannable canvas with one column per page (Relume-style) */
.slide--sm-map { overflow: hidden; }
.slide--sm-map .title { font-size: clamp(26px, 2.6cqw, 44px); }
/* Header facts: label over value. */
.sm-facts { display: flex; flex-wrap: wrap; gap: 10px clamp(22px, 2.4cqw, 40px); margin: clamp(12px, 1.1cqw, 18px) 0 0; }
.sm-facts > div { display: grid; gap: 3px; }
.sm-facts dt { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.sm-facts dd { margin: 0; font-size: clamp(13px, 0.95cqw, 15px); font-weight: 500; color: var(--gray-900); font-variant-numeric: tabular-nums; }
/* The map panel: a key bar on top, the canvas below. */
.sm-panel {
  flex: 1 1 0; min-height: 300px; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white);
}
.sm-key { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.sm-key .sm-legend { flex: 1 1 0; min-width: 0; }
.sm-key__label { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.sm-canvas {
  --col-w: 148px; --gap: 12px; --line: #b8b8b8; --drop: 24px;
  position: relative; flex: 1 1 0; min-height: 240px; overflow: hidden;
  background: var(--gray-100) radial-gradient(circle, #d6d6d6 1px, transparent 1.3px) 0 0 / 16px 16px;
  touch-action: none; user-select: none; cursor: grab;
}
.sm-canvas.is-dragging, .sm-canvas.is-dragging .sm-col { cursor: grabbing; }
.sm-board { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: center; width: max-content; transform-origin: 0 0; }
.sm-board__root { position: relative; padding-bottom: var(--drop); }
.sm-board__root::after { content: ""; position: absolute; left: 50%; bottom: 0; height: var(--drop); border-left: 1.5px solid var(--line); }
.sm-board__level { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.sm-board__level > li { position: relative; width: calc(var(--col-w) + var(--gap)); padding: var(--drop) calc(var(--gap) / 2) 0; }
.sm-board__level > li::before { content: ""; position: absolute; top: 0; left: 50%; height: var(--drop); border-left: 1.5px solid var(--line); }
.sm-board__level > li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 1.5px solid var(--line); }
.sm-board__level > li:first-child::after { left: 50%; }
.sm-board__level > li:last-child::after { right: 50%; }
.sm-board__level > li.is-later::before { border-left-style: dashed; }

.sm-col {
  display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 7px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--white); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.sm-col:hover { border-color: var(--accent); box-shadow: var(--shadow-float); }
.sm-col--root { width: calc(var(--col-w) * 3 + var(--gap) * 2); }
.sm-col__head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; }
.sm-col__icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--g); color: var(--white); }
.sm-col__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.sm-col__name { min-width: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.sm-col__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 0 2px 2px; }
.sm-col__path { font-size: 12px; font-weight: 600; color: var(--g-text); font-variant-numeric: tabular-nums; }
.sm-col__cards { display: grid; gap: 4px; }
.sm-col--root .sm-col__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sm-item { display: flex; gap: 6px; padding: 5px 2px; border-top: 1px solid var(--gray-150); font-size: 13px; font-weight: 500; line-height: 1.3; }
.sm-item__num { flex: none; font-size: 11.5px; line-height: 17px; font-variant-numeric: tabular-nums; color: #6b6b6b; }
.sm-item__anchor { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--blue-700); font-size: 11px; font-weight: 400; white-space: nowrap; }
.sm-col__offers { padding: 4px 2px 0; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.sm-col.is-later { background: var(--gray-50); color: var(--gray-600); box-shadow: none; }
.sm-col.is-later:hover { border-color: var(--accent); }
.sm-col.is-later .sm-item { color: var(--gray-600); }

.sm-canvas__hint {
  position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 6px 10px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); pointer-events: none;
}
.sm-zoom {
  position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; padding: 3px;
  border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--border); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  cursor: auto;
}
.sm-zoom button {
  display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--text);
  font: inherit; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.sm-zoom button:hover:not(:disabled) { background: var(--gray-100); }
.sm-zoom button:disabled { color: #a3a3a3; cursor: default; }
.sm-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sm-zoom__fit { min-width: 52px !important; }

/* Narrow slides: no canvas, the map becomes a stacked outline. */
.slide--sm-map.is-outline { overflow-y: auto; }
.is-outline .sm-canvas { flex: none; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: none; touch-action: auto; user-select: auto; cursor: auto; }
.is-outline .sm-board { position: static; width: auto; align-items: stretch; transform: none; }
.is-outline .sm-board__root { padding-bottom: 12px; }
.is-outline .sm-board__root::after { left: 20px; height: 12px; }
.is-outline .sm-col--root { width: 100%; }
.is-outline .sm-col--root .sm-col__cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.is-outline .sm-board__level { flex-direction: column; align-items: stretch; gap: 10px; margin-left: 20px; padding-left: 14px; border-left: 1.5px solid var(--line); }
.is-outline .sm-board__level > li { width: auto; padding: 0; }
.is-outline .sm-board__level > li::before { top: 18px; left: -14px; width: 14px; height: 0; border-left: 0; border-top: 1.5px solid var(--line); }
.is-outline .sm-board__level > li.is-later::before { border-top-style: dashed; }
.is-outline .sm-board__level > li::after { display: none; }
.is-outline .sm-zoom, .is-outline .sm-canvas__drag { display: none; }
.is-outline .sm-panel { flex: none; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: none; }
.is-outline .sm-key { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 0 14px; margin-bottom: 14px; }
.is-outline .sm-key .sm-legend { flex: none; }
.is-outline .sm-col, .is-outline .sm-col.is-later { padding: 10px 0 4px; border: 0; border-top: 1.5px solid var(--g, var(--gray-900)); border-radius: 0; background: none; box-shadow: none; }
.is-outline .sm-col:hover { box-shadow: none; }
.is-outline .sm-canvas__hint { position: static; margin-top: 12px; padding: 0; border: 0; background: none; }
.sm-nav {
  display: flex; align-items: center; gap: 2cqw;
  padding: clamp(10px, 1cqw, 16px) clamp(14px, 1.4cqw, 24px);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-slide);
}
.sm-nav__brand { font-weight: 700; font-size: clamp(13px, 1.1cqw, 18px); letter-spacing: -0.01em; }
.sm-nav__items { flex: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px clamp(14px, 2cqw, 36px); font-size: clamp(12px, 1cqw, 16px); color: var(--text-muted); }
.sm-nav__items .is-current { color: var(--text); font-weight: 600; }
.sm-nav__items .is-anchor { color: var(--blue-700); }
.sm-nav__cta { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--gray-900); color: var(--white); font-size: clamp(12px, 0.95cqw, 15px); font-weight: 600; white-space: nowrap; }


/* page detail */
.slide--sm-page { display: grid; grid-template-columns: minmax(240px, 30%) 1fr; gap: clamp(20px, 3.2cqw, 56px); }
.sm-page__info { display: flex; flex-direction: column; min-height: 0; }
.sm-page__info .body { margin-top: clamp(8px, 0.8cqw, 14px); }
.sm-page__main { min-width: 0; }
.sm-wire {
  display: grid; margin-top: clamp(16px, 1.8cqw, 30px);
  padding-left: 12px; border-left: 2px solid var(--gray-200);
}
.sm-wire__block {
  padding: 5px 0; border-bottom: var(--hair);
  font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sm-wire__block.is-hero { padding-block: clamp(10px, 1.2cqw, 22px); margin-left: -14px; padding-left: 12px; border-left: 2px solid var(--g); color: var(--text); font-weight: 600; }

/* Smaller slides: story arc, flow and cards drop to two columns. */
/* ---------- Branding slides ----------
   Brand colors (--c-*) and fonts (--f-*) are set inline on each slide from the data. */
.br-mark { --dot: var(--c-accent); display: inline-flex; align-items: baseline; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.br-mark i { width: 0.2em; height: 0.2em; margin-left: 0.07em; border-radius: 50%; background: var(--dot); }
/* Real logo files: the symbol is 1em tall, the wordmark keeps the logo's own
   proportions (0.24 of the symbol height, 0.165em gap). */
.br-lockup { align-items: center; gap: 0.165em; height: 1em; }
.br-lockup img { display: block; height: 1em; width: auto; }
.br-lockup img + img { height: 0.2414em; }

/* overview: a bento brand board */
.br-bento {
  flex: 1; min-height: 0;
  display: grid; gap: clamp(8px, 1cqw, 16px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-areas: "logo logo palette type" "logo logo words scales";
}
.br-tile {
  min-width: 0; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: clamp(8px, 0.9cqw, 14px);
  padding: clamp(14px, 1.5cqw, 26px);
  border-radius: var(--radius-lg);
  background: var(--c-light); color: var(--c-dark);
}
.br-tile--logo { grid-area: logo; justify-content: space-between; background: var(--c-dark); color: var(--c-light); }
.br-tile--logo .br-mark { --dot: var(--c-pop); font-size: clamp(56px, 9cqw, 168px); }
.br-tile--logo .br-lockup { font-size: clamp(44px, 7cqw, 128px); }
.br-tagline { margin: 0; max-width: 16ch; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.1cqw, 36px); line-height: 1.08; letter-spacing: -0.025em; }
.br-tile--palette { grid-area: palette; padding: 0; gap: 0; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.br-tile--palette span { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 clamp(10px, 1cqw, 16px); font-size: clamp(12px, 0.85cqw, 14px); }
.br-tile--palette small { font-size: inherit; font-variant-numeric: tabular-nums; }
.br-tile--type { grid-area: type; justify-content: space-between; background: var(--c-pop); }
.br-aa { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 6.4cqw, 116px); line-height: 0.9; letter-spacing: -0.05em; }
.br-tile__fonts { display: grid; gap: 2px; font-size: clamp(12px, 0.85cqw, 14px); }
.br-tile__fonts b { font-family: var(--f-display); font-size: clamp(14px, 1.1cqw, 18px); }
.br-tile__label { margin: 0; font-size: clamp(12px, 0.8cqw, 13px); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.br-tile--words { grid-area: words; padding: clamp(12px, 1.2cqw, 20px) 0 0; background: transparent; border-radius: 0; border-top: var(--rule); }
.br-tile--words .br-words { margin: 0; flex-direction: column; gap: 0; font-family: var(--f-display); font-size: clamp(16px, 1.6cqw, 28px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--c-dark, var(--gray-900)); }
.br-tile--words .br-words li + li::before { content: none; }

.br-tile--scales { grid-area: scales; padding: clamp(12px, 1.2cqw, 20px) 0 0; background: transparent; border-radius: 0; border-top: var(--rule); }
.br-tile--scales ul { list-style: none; margin: clamp(4px, 0.4cqw, 8px) 0 0; padding: 0; display: grid; grid-template-columns: max-content minmax(24px, 1fr) max-content; align-items: center; gap: clamp(8px, 0.9cqw, 14px) 10px; }
.br-tile--scales li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; font-size: clamp(12px, 0.85cqw, 14px); }
.br-tile--scales li span:last-child { text-align: right; }
.br-scale { position: relative; height: 4px; border-radius: 2px; background: rgb(14 17 22 / 0.16); }
.br-scale i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--c-dark); transform: translate(-50%, -50%); }

/* logo */
.br-logos { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 8px clamp(8px, 1cqw, 16px); }
.br-logos figure { margin: 0; min-width: 0; min-height: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.br-logos figcaption, .br-app figcaption { font-size: clamp(12px, 0.85cqw, 14px); color: var(--text-muted); }
.br-logos figcaption b, .br-app figcaption b { margin-right: 6px; color: var(--text); font-weight: 600; }
.br-logos figcaption p { margin: 0; }
.br-logos__why { margin-top: 2px !important; max-width: 46ch; line-height: 1.45; }
.br-logo { flex: 1; min-height: 0; display: grid; place-items: center; border-radius: var(--radius-lg); }
.br-logo .br-mark { font-size: clamp(36px, 5.2cqw, 96px); }
.br-logo--light { background: var(--c-light); color: var(--c-dark); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.br-logo--deep { background: var(--c-deep); color: var(--c-light); }
.br-logo--deep .br-mark { --dot: var(--c-pop); }
.br-logo--pop { background: var(--c-pop); color: var(--c-dark); }
.br-logo .br-mark--mono { --dot: var(--c-deep); font-size: clamp(56px, 7.5cqw, 140px); }
/* logo specs: same three columns as the logo cards above */
.br-specs { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(8px, 1cqw, 16px); }
.br-spec {
  min-width: 0; display: flex; flex-direction: column; gap: clamp(8px, 0.8cqw, 12px);
  padding-top: clamp(12px, 1.2cqw, 20px); border-top: var(--rule);
}
.br-spec .label { margin: 0; }
.br-spec__visual { flex: 1; min-height: clamp(92px, 8.4cqw, 132px); display: grid; place-items: center; }
.br-spec__rule { margin: 0; font-size: clamp(13px, 0.95cqw, 15px); line-height: 1.4; color: var(--text); }
.br-spec__note { margin: -4px 0 0; font-size: clamp(12px, 0.85cqw, 14px); line-height: 1.4; color: var(--text-muted); }
.br-spec--space .br-spec__visual { background: var(--gray-50); border-radius: var(--radius-md); }

/* clear space: the margin is x = symbol height / 3 */
.br-space {
  --s: clamp(44px, 5.6cqw, 88px); --x: calc(var(--s) / 3);
  position: relative; padding: var(--x);
  background: repeating-linear-gradient(-45deg, rgb(11 138 230 / 0.1) 0 3px, transparent 3px 7px), var(--white);
  outline: 1px dashed var(--accent-strong); outline-offset: -1px;
}
.br-space__logo { display: block; background: var(--white); box-shadow: 0 0 0 1px rgb(11 138 230 / 0.45); }
.br-space__logo .br-lockup { font-size: var(--s); display: flex; color: var(--c-dark); }
.br-space__x { position: absolute; display: grid; place-items: center; font: 600 12px/1 Inter, sans-serif; color: var(--accent-strong); }
.br-space__x--t, .br-space__x--b { left: 0; right: 0; height: var(--x); }
.br-space__x--t { top: 0; }
.br-space__x--b { bottom: 0; }
.br-space__x--l, .br-space__x--r { top: 0; bottom: 0; width: var(--x); }
.br-space__x--l { left: 0; }
.br-space__x--r { right: 0; }

/* minimum size: rendered at the real pixel sizes */
.br-sizes { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: clamp(16px, 1.8cqw, 28px); }
.br-sizes li { display: grid; justify-items: center; gap: 8px; }
.br-sizes__mark { display: flex; align-items: flex-end; height: 48px; }
.br-sizes__mark .br-lockup { color: var(--c-dark); }
.br-sizes__px { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
.br-sizes .is-min .br-sizes__px { color: var(--text); font-weight: 600; }

/* pending items from the client */
.br-pending { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; align-content: center; gap: 10px; }
.br-pending li { display: flex; align-items: flex-start; gap: 10px; font-size: clamp(13px, 0.95cqw, 15px); line-height: 1.4; }
.br-pending li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; border: 1.5px solid var(--gray-400, #a3a3a3); border-radius: 50%; }

/* color */
.br-swatches { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: clamp(8px, 1cqw, 16px); }
.br-swatch {
  width: 100%; height: 100%; padding: 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.br-swatch:hover { border-color: var(--accent); box-shadow: var(--shadow-float); }
.br-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.br-swatch__chip { flex: 1; min-height: 72px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: clamp(10px, 1.1cqw, 18px); font-size: clamp(12px, 0.9cqw, 14px); font-weight: 600; }
.br-swatch__chip b { font-family: var(--f-display); font-size: clamp(16px, 1.6cqw, 28px); letter-spacing: -0.02em; }
.br-swatch__info { display: grid; gap: 2px; padding: clamp(10px, 1cqw, 16px); font-size: clamp(12px, 0.85cqw, 14px); color: var(--text-muted); border-top: 1px solid var(--border); }
.br-swatch__hex { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.br-color-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(16px, 2.6cqw, 44px); }
.br-color-foot .label { margin-top: 0; }
.br-usage { display: flex; height: clamp(26px, 2.6cqw, 44px); border-radius: var(--radius-md); overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.br-usage span { min-width: 6px; }
.br-usage__legend { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-muted); }
.br-usage__legend span { display: inline-flex; align-items: center; gap: 5px; }
.br-usage__legend i { width: 9px; height: 9px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.br-pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px clamp(8px, 1cqw, 14px); }
.br-pairs li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: var(--hair); }
.br-pair__sample { flex: none; display: grid; place-items: center; width: clamp(30px, 2.5cqw, 40px); aspect-ratio: 1; border-radius: var(--radius-sm); font-family: var(--f-display); font-weight: 700; font-size: clamp(14px, 1.2cqw, 19px); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.br-pair__text { flex: 1; min-width: 0; display: grid; font-size: clamp(12px, 0.85cqw, 14px); }
.br-pair__text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-pair__text span { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* typography */
.br-type { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(16px, 2.6cqw, 44px); }
.br-fonts { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(8px, 1cqw, 16px); }
.br-font { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: clamp(14px, 1.4cqw, 24px); border-radius: var(--radius-lg); }
.br-font--display { background: var(--c-dark); color: var(--c-light); }
.br-font--body { background: var(--gray-100); color: var(--c-dark); }
.br-font__role { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.br-font__aa { margin: auto 0 0; font-size: clamp(52px, 6.6cqw, 124px); line-height: 1; letter-spacing: -0.045em; }
.br-font__name { margin: 4px 0 clamp(8px, 0.9cqw, 14px); font-size: clamp(15px, 1.35cqw, 24px); letter-spacing: -0.01em; }
.br-font--display .br-font__aa, .br-font--display .br-font__name { font-family: var(--f-display); font-weight: 800; }
.br-font--body .br-font__aa, .br-font--body .br-font__name { font-family: var(--f-body); font-weight: 600; }
.br-font__meta { margin: 0; display: grid; gap: 5px; font-size: clamp(12px, 0.8cqw, 13px); line-height: 1.35; }
.br-font__meta div { display: grid; grid-template-columns: 5em 1fr; gap: 6px; }
.br-font__meta dt { font-weight: 600; }
.br-font__meta dd { margin: 0; }
.br-chars { grid-column: 1 / -1; margin: 0; padding-top: clamp(10px, 1cqw, 16px); border-top: var(--hair); font-family: var(--f-display); font-weight: 700; font-size: clamp(14px, 1.25cqw, 22px); line-height: 1.35; overflow-wrap: anywhere; }
.br-scale-list { list-style: none; margin: 0; padding: 0; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; }
.br-scale-list li { display: grid; grid-template-columns: clamp(92px, 8.5cqw, 150px) minmax(0, 1fr); align-items: baseline; gap: 12px; padding: clamp(6px, 0.6cqw, 10px) 0; border-bottom: 1px solid var(--border); }
.br-scale-list li:last-child { border-bottom: 0; }
.br-scale__meta { display: grid; font-size: clamp(12px, 0.85cqw, 14px); }
.br-scale__meta b { font-weight: 600; }
.br-scale__meta span { color: var(--text-muted); font-variant-numeric: tabular-nums; }
/* Samples render at their real size on a 1440 px wide slide and scale with it. */
.br-scale__sample { min-width: 0; color: var(--c-dark); font-size: max(12px, calc(var(--s) * 0.0694cqw)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-scale__sample--display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.035em; }
.br-scale__sample--body { font-family: var(--f-body); font-weight: 400; }

/* imagery */
.br-shots { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 0 clamp(8px, 1cqw, 16px); }
/* Subgrid keeps every photo the same height when one caption wraps. */
.br-shots li { min-width: 0; min-height: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.br-shot { position: relative; flex: 1; min-height: 0; border-radius: var(--radius-lg); overflow: hidden; }
.br-shot--forest, .br-shot--deep { background: var(--c-deep); }
.br-shot--paper, .br-shot--light { background: var(--c-light); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.br-shot--lime, .br-shot--pop { background: var(--c-pop); }
.br-shot--ink, .br-shot--dark { background: var(--c-dark); }
.br-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.br-shot__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: clamp(8px, 0.8cqw, 12px) 0 2px; font-weight: 600; font-size: clamp(13px, 1cqw, 16px); }
.br-shot__title .ui-status { font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.br-shot__text { margin: 0; font-size: clamp(12px, 0.85cqw, 14px); line-height: 1.4; color: var(--text-muted); }
.br-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.6cqw, 44px); }
.br-dodont .label { margin-top: 0; }
.br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: clamp(12px, 0.95cqw, 15px); }
.br-list li { display: flex; gap: 8px; align-items: baseline; }
.br-list li::before { flex: none; font-weight: 700; }
.br-list--do li::before { content: "✓" / ""; color: #0a7038; }
.br-list--dont li::before { content: "✕" / ""; color: #c0262c; }

/* applications */
.br-apps {
  flex: 1; min-height: 0;
  display: grid; gap: clamp(10px, 1.2cqw, 20px);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "web social" "web card";
}
.br-app { margin: 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.br-app--web { grid-area: web; }
.br-app--social { grid-area: social; }
.br-app--card { grid-area: card; }
.br-browser { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-light); }
.br-browser__bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--white); border-bottom: 1px solid var(--border); }
.br-browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); }
.br-browser__bar span { margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: var(--gray-100); font-size: 12px; color: var(--text-muted); }
.br-site { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(12px, 1.6cqw, 28px); padding: clamp(12px, 1.4cqw, 24px) clamp(14px, 2cqw, 36px); color: var(--c-dark); font-family: var(--f-body); }
.br-site__nav { display: flex; align-items: center; gap: clamp(10px, 1.4cqw, 24px); }
.br-site__nav .br-mark { margin-right: auto; font-size: clamp(16px, 1.5cqw, 26px); }
.br-site__links { display: flex; gap: clamp(10px, 1.4cqw, 24px); font-size: clamp(12px, 0.9cqw, 15px); font-weight: 500; }
.br-pill { display: inline-flex; align-items: center; padding: 0.5em 1.1em; border-radius: 999px; background: var(--c-dark); color: var(--c-light); font-size: clamp(12px, 0.9cqw, 15px); font-weight: 600; white-space: nowrap; }
.br-pill--ghost { background: transparent; color: var(--c-dark); box-shadow: inset 0 0 0 1.5px var(--c-dark); }
.br-site__hero { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(12px, 2cqw, 36px); align-items: center; }
.br-site__h { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.6cqw, 66px); line-height: 0.98; letter-spacing: -0.045em; }
.br-site__h mark { padding: 0 0.1em; border-radius: 0.12em; background: var(--c-pop); color: inherit; }
.br-site__ctas { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.br-site__cards { height: 100%; max-height: 24cqw; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.2fr 1fr; gap: clamp(6px, 0.8cqw, 12px); }
/* Website wireframe: grey shapes instead of copy and photos, so nobody
   reads it as the finished site. */
.br-wf-tag { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--gray-600); white-space: nowrap; }
.br-wf-bar { display: block; height: 0.6em; border-radius: 999px; background: var(--gray-200); }
.br-site__links .br-wf-bar { width: clamp(40px, 4.5cqw, 72px); }
.br-wf-lines { display: grid; gap: 0.7em; margin: clamp(12px, 1.4cqw, 22px) 0 clamp(14px, 1.6cqw, 26px); max-width: 38ch; font-size: clamp(12px, 1cqw, 17px); }
.br-wf-lines .br-wf-bar:nth-child(2) { width: 92%; }
.br-wf-lines .br-wf-bar:nth-child(3) { width: 64%; }
.br-wf-img { position: relative; display: grid; place-items: center; border: 1.5px dashed var(--gray-300); border-radius: var(--radius-lg); background:
  linear-gradient(to top right, transparent calc(50% - 0.75px), var(--gray-300) 50%, transparent calc(50% + 0.75px)),
  linear-gradient(to bottom right, transparent calc(50% - 0.75px), var(--gray-300) 50%, transparent calc(50% + 0.75px)),
  var(--gray-50); }
.br-wf-img:first-child { grid-row: span 2; }
.br-wf-img span { font-size: 12px; font-weight: 600; color: var(--gray-600); }
.br-post, .br-bcard { flex: 1; min-height: 0; max-width: 100%; align-self: flex-start; display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius-lg); }
.br-post { aspect-ratio: 1; padding: clamp(12px, 1.3cqw, 22px); background: var(--c-deep); color: var(--c-light); }
.br-post .br-mark { --dot: var(--c-pop); font-size: clamp(14px, 1.2cqw, 22px); }
.br-post__h { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.6cqw, 48px); line-height: 0.95; letter-spacing: -0.045em; color: var(--c-light); }
.br-post__tag { font-size: 12px; font-weight: 600; color: var(--c-dark); }
.br-bcard { flex: none; width: 100%; aspect-ratio: 1.75; padding: clamp(12px, 1.3cqw, 22px); background: var(--c-light); color: var(--c-dark); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 8px 24px -12px rgb(0 0 0 / 0.25); }
.br-bcard .br-mark { font-size: clamp(16px, 1.5cqw, 26px); }
.br-bcard__name { margin: 0; font-weight: 600; font-size: clamp(13px, 1cqw, 16px); }
.br-bcard__role { margin: 0; font-size: 12px; color: #3d4249; }

/* Smaller slides: branding grids get fewer columns and the slide scrolls. */
/* ---------- Strategy pages (dk-) ---------- */
.slide--dk > :not(.ui-head) { flex: none; }
/* Small frames (editor view on a tablet): a strategy slide that no longer fits scrolls instead of clipping. */
@container (max-width: 900px) { .slide--dk { overflow-y: auto; scrollbar-width: thin; } }

/* Strategy slides built from the component layer (components.js). */
.dk-ov-facts { flex: 1 1 auto; grid-auto-rows: 1fr; }
.dk-ov-facts dd { font-size: clamp(14px, 1.25cqw, 21px); }
.dk-columns { --n: 3; }
.dk-columns .ui-col > .ui-label { margin-top: clamp(10px, 1cqw, 18px); }
.dk-columns .dk-check { margin-top: 2px; }

.dk-overview { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3.2cqw, 56px); }
.dk-overview > section { display: flex; flex-direction: column; min-height: 0; }
.dk-timeline { flex: 1 1 auto; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1.5px solid var(--gray-900); }
.dk-timeline li { flex: 1 1 auto; position: relative; display: grid; grid-template-columns: 6.5em 1fr auto; gap: 10px; align-content: center; align-items: baseline; padding: clamp(8px, 0.9cqw, 16px) 0 clamp(8px, 0.9cqw, 16px) 22px; border-bottom: 1px solid var(--border); font-size: clamp(13px, 1.05cqw, 17px); }
.dk-timeline li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; border: 1.5px solid var(--gray-300); background: var(--white); }
.dk-timeline li[data-state="done"]::before { background: var(--gray-900); border-color: var(--gray-900); }
.dk-timeline li[data-state="next"]::before { background: var(--pop); border-color: var(--pop); }
.dk-timeline__when { font-weight: 600; font-variant-numeric: tabular-nums; }
.dk-timeline__what { color: var(--text-muted); }
.dk-timeline li[data-state="next"] .dk-timeline__what { color: var(--text); font-weight: 500; }

/* goals & success: a short goal you can read at a glance, the detail beside it in grey */
.slide--dk-goals > .dk-goals { flex: 1 1 auto; }
.dk-goals { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3.2cqw, 56px); }
.dk-goals__main { display: flex; flex-direction: column; }
.dk-goals__list { flex: 1 1 auto; display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--gray-900); }
.dk-goals__list li { display: grid; grid-template-columns: clamp(30px, 3cqw, 50px) minmax(0, 1fr) minmax(0, 1.05fr); column-gap: clamp(12px, 1.6cqw, 28px); flex: 1 1 auto; align-content: center; align-items: baseline; padding: clamp(10px, 1.1cqw, 20px) 0; border-bottom: 1px solid var(--border); }
.dk-goals__num { font-family: var(--f-display); font-size: clamp(12px, 1.05cqw, 17px); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--red-text); }
.dk-goals__k { font-family: var(--f-display); font-size: clamp(18px, 2cqw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; color: var(--gray-900); text-wrap: balance; }
.dk-goals__d { font-size: clamp(13px, 1.1cqw, 18px); line-height: 1.45; color: var(--gray-600); text-wrap: pretty; }
.dk-goals__kpi { display: flex; flex-direction: column; }
.dk-kpi { flex: 1 1 auto; display: flex; flex-direction: column; margin: 0; border-top: 1.5px solid var(--gray-900); }
.dk-kpi > div { flex: 1 1 auto; align-content: center; display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: clamp(10px, 1.1cqw, 20px) 0; border-bottom: 1px solid var(--border); }
.dk-kpi dt { padding-top: 0.25em; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.dk-kpi dd { margin: 0; }
.dk-kpi ul { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 0.8cqw, 14px); font-size: clamp(14px, 1.25cqw, 21px); line-height: 1.25; }
.dk-out { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px clamp(14px, 1.6cqw, 28px); margin-top: clamp(14px, 1.6cqw, 28px); padding-top: clamp(10px, 1cqw, 16px); border-top: 1px solid var(--border); }
.dk-out .ui-label { margin: 0; }
.dk-out ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2cqw, 36px); font-size: clamp(13px, 1cqw, 16px); line-height: 1.4; }
.dk-out li { position: relative; padding-left: 16px; }
.dk-out li::before { content: "×"; position: absolute; left: 0; top: -0.05em; font-weight: 600; color: var(--gray-600); }
@container (max-width: 640px) {
  .dk-goals { grid-template-columns: 1fr; }
  .dk-goals__list li { grid-template-columns: 32px minmax(0, 1fr); }
  .dk-goals__d { grid-column: 2; margin-top: 4px; }
  .dk-out { flex-direction: column; }
}

/* Card slides: one layout per content type instead of a grid of equal boxes. */
.slide--dk > .dk-fill { flex: 1 1 auto; }
.dk-inline { margin: 0; text-wrap: pretty; }
.dk-inline--muted { color: var(--text-muted); }

/* Index: numbered rows under a dark rule */
.dk-index { display: flex; flex-direction: column; --idx: clamp(30px, 3.2cqw, 54px) minmax(0, 0.8fr) minmax(0, 1.6fr); }
.dk-index--where { --idx: clamp(30px, 3.2cqw, 54px) minmax(0, 0.8fr) minmax(0, 1.35fr) minmax(0, 0.75fr); }
.dk-index__head, .dk-index__row { display: grid; grid-template-columns: var(--idx); column-gap: clamp(14px, 2cqw, 36px); }
.dk-index__head { padding-bottom: clamp(6px, 0.6cqw, 10px); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.dk-index__list { flex: 1 1 auto; display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--gray-900); }
.dk-index__row { flex: 1 1 auto; align-content: center; align-items: baseline; padding: clamp(10px, 1.1cqw, 20px) 0; border-bottom: 1px solid var(--border); }
.dk-index__num { font-family: var(--f-display); font-size: clamp(12px, 1.05cqw, 17px); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--red-text); }
.dk-index__title { margin: 0; font-family: var(--f-display); font-size: clamp(16px, 1.55cqw, 27px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--gray-900); text-wrap: balance; }
.dk-index__text { margin: 0; font-size: clamp(13px, 1.1cqw, 18px); line-height: 1.45; color: var(--gray-600); text-wrap: pretty; }
.dk-index__text.dk-inline { color: var(--gray-900); font-weight: 500; }
.dk-index__where { margin: 0; font-size: clamp(12px, 0.95cqw, 15px); line-height: 1.6; color: var(--gray-900); font-weight: 500; }
.dk-index__where.dk-check { font-size: clamp(12px, 0.95cqw, 15px); }
.dk-index__where code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; font-weight: 400; color: var(--gray-600); }

/* Table: real comparison table with an overlap meter */
.dk-tablewrap { display: flex; flex-direction: column; }
.dk-table { flex: 1 1 auto; width: 100%; height: 100%; border-collapse: collapse; font-size: clamp(13px, 1cqw, 16px); line-height: 1.4; }
.dk-table thead th { padding: 0 clamp(10px, 1.2cqw, 20px) clamp(6px, 0.6cqw, 10px) 0; border-bottom: 1.5px solid var(--gray-900); text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.dk-table td, .dk-table tbody th { padding: clamp(8px, 0.8cqw, 14px) clamp(10px, 1.2cqw, 20px) clamp(8px, 0.8cqw, 14px) 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.dk-table tbody th { font-family: var(--f-display); font-size: clamp(15px, 1.3cqw, 22px); font-weight: 700; letter-spacing: -0.015em; color: var(--gray-900); white-space: nowrap; }
.dk-table td { color: var(--gray-600); }
.dk-table__base { white-space: nowrap; color: var(--gray-900) !important; }
.dk-table__overlap { white-space: nowrap; color: var(--gray-900) !important; text-transform: capitalize; }
.dk-table td:nth-child(4) { width: 42%; }
.dk-meter { display: inline-flex; gap: 2px; margin-right: 8px; vertical-align: 1px; }
.dk-meter i { width: 4px; height: 12px; border-radius: 1px; background: var(--gray-200); }
.dk-meter[data-level="1"] i:nth-child(-n+1), .dk-meter[data-level="2"] i:nth-child(-n+2) { background: var(--gray-900); }
.dk-meter[data-level="3"] i { background: var(--pop); }

/* Catalog: image-led product list, no box borders */
.dk-catalog { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(18px, 2cqw, 34px) clamp(14px, 1.6cqw, 28px); list-style: none; margin: 0; padding: 0; }
.dk-catalog__item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dk-catalog__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); background: var(--gray-100); margin-bottom: 6px; }
.dk-catalog--compact .dk-catalog__img { aspect-ratio: 4 / 3; }
.dk-catalog__img--empty { display: grid; place-items: center; background: var(--gray-100); }
.dk-catalog__img--empty span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.dk-catalog__cap { display: flex; align-items: baseline; gap: 10px; }
.dk-catalog__num { font-family: var(--f-display); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--red-text); }
.dk-catalog__title { margin: 0; font-family: var(--f-display); font-size: clamp(15px, 1.35cqw, 22px); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--gray-900); }
.dk-catalog--compact .dk-catalog__title { font-size: clamp(14px, 1.15cqw, 18px); }
.dk-catalog__text { margin: 0; font-size: clamp(13px, 0.95cqw, 15px); line-height: 1.45; color: var(--gray-600); }
.dk-catalog__tags { font-size: clamp(12px, 0.9cqw, 14px); line-height: 1.5; color: var(--gray-600); }
.dk-catalog__item.is-muted .dk-catalog__title { color: var(--gray-600); }
.dk-check { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(5px, 0.5cqw, 9px); font-size: clamp(13px, 1.02cqw, 16px); line-height: 1.4; color: var(--gray-900); }
.dk-check li { position: relative; padding-left: 20px; }
.dk-check li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 9px; height: 9px; border: 1.5px solid var(--gray-900); border-radius: 2px; }
.dk-check--pending li::before { border-color: var(--gray-300); border-radius: 50%; }

/* Agenda: questions and files as two checklists */
.dk-agenda { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 3.4cqw, 60px); }
.dk-agenda__col { display: flex; flex-direction: column; min-width: 0; }
.dk-agenda__list { flex: 1 1 auto; display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--gray-900); }
.dk-agenda__list li { flex: 1 1 auto; display: grid; grid-template-columns: clamp(30px, 3cqw, 50px) 1fr; align-content: center; align-items: baseline; padding: clamp(9px, 0.95cqw, 17px) 0; border-bottom: 1px solid var(--border); font-family: var(--f-display); font-size: clamp(15px, 1.4cqw, 24px); font-weight: 700; line-height: 1.22; letter-spacing: -0.015em; color: var(--gray-900); text-wrap: pretty; }
.dk-agenda__num { font-size: 0.72em; font-variant-numeric: tabular-nums; color: var(--red-text); }
.dk-agenda__col--check .dk-agenda__list li { grid-template-columns: 28px 1fr; font-family: inherit; font-size: clamp(13px, 1.1cqw, 18px); font-weight: 500; letter-spacing: 0; }
.dk-agenda__col--check .dk-agenda__num { width: 12px; height: 12px; border: 1.5px solid var(--gray-900); border-radius: 3px; align-self: center; }

/* Statement: the line to repeat, then definition rows */
.dk-statement { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3cqw, 52px); }
.dk-statement__lead { display: flex; flex-direction: column; gap: clamp(8px, 0.8cqw, 14px); padding-top: clamp(12px, 1.2cqw, 20px); border-top: var(--rule); color: var(--gray-900); }
.dk-statement__quote { margin: 0 0 auto; padding-bottom: clamp(16px, 2cqw, 34px); font-family: var(--f-display); font-size: clamp(32px, 5.2cqw, 92px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.dk-statement__text { margin: 0; font-size: clamp(14px, 1.25cqw, 21px); line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.dk-statement__why { margin: clamp(6px, 0.6cqw, 10px) 0 0; padding-top: clamp(10px, 1cqw, 16px); border-top: var(--hair); font-size: clamp(12px, 0.95cqw, 15px); line-height: 1.5; color: var(--gray-600); }
.dk-statement__why strong { color: var(--red-text); font-weight: 600; }
.dk-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(4px, 0.4cqw, 7px); font-size: clamp(13px, 1.05cqw, 17px); font-weight: 500; line-height: 1.4; color: var(--gray-900); }
.dk-plain--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }

@container (max-width: 900px) {
  .dk-statement { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .dk-statement__quote { font-size: clamp(28px, 4.6cqw, 92px); }
  .dk-plain { gap: 2px; font-size: 13px; }
  .dk-plain--2 { display: flex; flex-wrap: wrap; column-gap: 0; }
  .dk-plain--2 li:not(:last-child)::after { content: ",\00a0"; }
}
@container (max-width: 820px) {
  .dk-index--where .dk-index__row { padding: 8px 0; }
  .dk-index--where .dk-index__where { line-height: 1.45; }
  .dk-index--where .dk-index__where br { display: none; }
  .dk-index--where .dk-index__where code { display: inline-block; margin-right: 12px; }
  .dk-index--where { --idx: clamp(30px, 3.2cqw, 54px) minmax(0, 0.9fr) minmax(0, 1.4fr); }
  .dk-index--where .dk-index__head span:nth-child(4) { display: none; }
  .dk-index--where .dk-index__where { grid-column: 3; margin-top: 4px; }
  .dk-table td:nth-child(5), .dk-table th:nth-child(5) { display: none; }
}
@container (max-width: 560px) {
  .dk-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 640px) {
  .dk-statement, .dk-agenda { grid-template-columns: 1fr; }
  .dk-index, .dk-index--where { --idx: 32px minmax(0, 1fr); }
  .dk-index__head { display: none; }
  .dk-index__row > :nth-child(n + 3), .dk-index--where .dk-index__where { grid-column: 2; margin-top: 4px; }
}
@container (max-width: 520px) {
  .dk-catalog { gap: 18px 12px; }
  .dk-catalog__text, .dk-catalog__tags { font-size: 12px; }
  .dk-table thead { display: none; }
  .dk-table, .dk-table tbody { display: block; height: auto; }
  .dk-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .dk-table td, .dk-table tbody th { padding: 0; border: 0; }
  .dk-table td:nth-child(2) { grid-row: 2; }
  .dk-table td:nth-child(3) { grid-row: 1; grid-column: 2; }
  .dk-table td:nth-child(4) { grid-column: 1 / -1; width: auto; }
}

/* Persona: who they are on top, four scannable columns, the path they take. */
.dk-persona { display: flex; flex-direction: column; gap: clamp(16px, 2cqw, 36px); }
.dk-persona__top { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 4cqw, 72px); align-items: center; }
.dk-persona__who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(12px, 1.4cqw, 24px); align-items: start; }
.dk-avatar { display: grid; place-items: center; width: clamp(48px, 4.4cqw, 72px); aspect-ratio: 1; border-radius: 50%; background: #100f0d; color: #fff; font-size: clamp(16px, 1.4cqw, 24px); font-weight: 700; letter-spacing: 0.02em; }
.dk-persona__role { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--text-muted); }
.dk-persona__quote { margin: 8px 0 0; font-family: var(--f-display); font-size: clamp(19px, 2.7cqw, 46px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--gray-900); text-wrap: balance; }
.dk-persona__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--gray-900); border-bottom: 1px solid var(--border); }
.dk-pcol { display: flex; flex-direction: column; padding: clamp(12px, 1.3cqw, 22px) clamp(14px, 1.6cqw, 28px); }
.dk-pcol:first-child { padding-left: 0; }
.dk-pcol:last-child { padding-right: 0; }
.dk-pcol + .dk-pcol { border-left: 1px solid var(--border); }
.dk-pcol__list { list-style: none; margin: clamp(6px, 0.8cqw, 14px) 0 0; padding: 0; display: flex; flex-direction: column; gap: clamp(12px, 1.4cqw, 24px); font-size: clamp(14px, 1.25cqw, 21px); line-height: 1.25; }
.dk-pcol__list--asks li { font-size: 0.86em; font-weight: 500; line-height: 1.4; color: var(--gray-900); }
.dk-pcol__list--asks li::before { content: "“"; margin-right: 1px; color: var(--gray-400, #a3a3a3); }
.dk-pcol__list--asks li::after { content: "”"; color: var(--gray-400, #a3a3a3); }
.dk-persona__path { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2cqw, 36px); align-items: center; }
.dk-path { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; }
.dk-path li { position: relative; display: flex; align-items: center; gap: 8px; font-size: clamp(13px, 1cqw, 16px); font-weight: 600; }
.dk-path li:not(:last-child)::after { content: "→"; position: absolute; right: -21px; font-weight: 400; color: var(--gray-400, #a3a3a3); }
.dk-path__n { font-family: var(--f-display); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--red-text); }
.dk-path__cta { color: var(--red-text); font-weight: 700; }

/* Steps: numbered rows on the left, the program terms on the right. */
.dk-split { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(20px, 3.2cqw, 56px); }
.dk-terms { display: flex; flex-direction: column; }
.dk-split .dk-index__head { padding-bottom: clamp(6px, 0.6cqw, 10px); }
.slide--dk-steps .dk-index { min-height: 0; }

.dk-map { margin: 0; display: grid; gap: 12px; }
.dk-map__plot {
  position: relative; height: clamp(320px, 34cqw, 560px);
  border-top: var(--rule);
  background:
    linear-gradient(var(--border), var(--border)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--border), var(--border)) 0 50% / 100% 1px no-repeat;
}
.dk-map__axis { position: absolute; font-size: var(--ui-k); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.dk-map__axis--x0 { left: 0; bottom: 8px; }
.dk-map__axis--x1 { right: 0; bottom: 8px; }
.dk-map__axis--y0 { bottom: 8px; left: 50%; transform: translateX(-50%); }
.dk-map__axis--y1 { top: 10px; left: 50%; transform: translateX(-50%); }
.dk-dot {
  position: absolute; left: var(--x); bottom: var(--y); transform: translate(-5px, 50%);
  display: flex; align-items: center; gap: 7px;
  font-size: clamp(12px, 0.9cqw, 14px); font-weight: 500; color: var(--gray-600); white-space: nowrap; z-index: 1;
}
.dk-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gray-900); }
.dk-dot--target { color: var(--gray-900); font-weight: 700; }
.dk-dot--target::before { background: var(--pop); }
.dk-map__list.ui-meta { display: none; }

.dk-counts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-variant-numeric: tabular-nums; }
.dk-counts b { margin-left: 4px; font-weight: 700; }
.dk-status { width: 100%; border-collapse: collapse; font-size: clamp(13px, 0.95cqw, 15px); }
.dk-status th, .dk-status td { padding: clamp(7px, 0.65cqw, 11px) 12px clamp(7px, 0.65cqw, 11px) 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.dk-status thead th { padding-top: 0; border-bottom: 1.5px solid var(--gray-900); font-size: var(--ui-k); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); background: var(--white); position: sticky; top: 0; }
.dk-status tbody th { font-weight: 500; }
.dk-status td:last-child { color: var(--text-muted); }

@container (max-width: 820px) {
  .dk-overview, .dk-split, .dk-persona__top { grid-template-columns: 1fr; }
  .dk-persona__top { align-items: start; }
  .dk-persona__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-pcol, .dk-pcol:first-child, .dk-pcol:last-child { padding: clamp(12px, 1.6cqw, 20px) clamp(12px, 1.6cqw, 20px) clamp(12px, 1.6cqw, 20px) 0; }
  .dk-pcol:nth-child(even) { padding-left: clamp(12px, 1.6cqw, 20px); }
  .dk-pcol:nth-child(odd) { border-left: 0; }
  .dk-pcol:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .dk-persona__path { grid-template-columns: 1fr; gap: 8px; }
}
@container (max-width: 520px) {
  .dk-persona__cols { grid-template-columns: 1fr; }
  .dk-pcol, .dk-pcol:nth-child(n) { padding: 14px 0; border-left: 0; }
  .dk-pcol + .dk-pcol { border-top: 1px solid var(--border); }
  .dk-map__plot { display: none; }
  .dk-map__list.ui-meta { display: flex; }
  .dk-map__list.ui-meta { margin: 0; }
  
  .dk-status thead { display: none; }
  .dk-status tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .dk-status th, .dk-status td { padding: 0; border: 0; }
  .dk-status td:last-child { grid-column: 1 / -1; font-size: 12px; }
}

@container (max-width: 820px) {
  .slide--br > :not(.ui-head) { flex: none; }
  .br-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 220px repeat(2, minmax(160px, auto)); grid-template-areas: "logo logo" "palette type" "words scales"; }
  .br-logos { grid-template-rows: minmax(160px, auto) auto; }
  .br-color-foot, .br-type { grid-template-columns: 1fr; }
  .br-specs { grid-template-columns: 1fr 1fr; }
  .br-spec--space { grid-column: 1 / -1; }
  .br-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .br-swatch__chip { min-height: 90px; }
  .br-fonts { grid-template-rows: minmax(220px, auto) auto; }
  .br-shots { grid-template-columns: 1fr 1fr !important; grid-template-rows: none; gap: 16px; }
  .br-shots li { grid-row: auto; display: flex; flex-direction: column; }
  .br-shot { min-height: 160px; }
  .br-apps { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-template-areas: "web web" "social card"; }
  .br-browser { min-height: 300px; }
  .br-post, .br-bcard { flex: none; width: 100%; }
}

/* ---------- Dialogs and toast ---------- */
dialog { border: 0; padding: 0; color: var(--text); }
dialog::backdrop { background: rgb(30 30 30 / 0.4); }
.viewer {
  width: min(1100px, 94vw); height: min(92dvh, 1200px); max-height: none;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-float);
}
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer__head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); }
.viewer__title { flex: 1; margin: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__count { margin-right: 6px; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.viewer__body { overflow: auto; background: var(--gray-100); padding: 24px; display: grid; justify-items: center; align-items: start; }
.viewer__body img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-slide); }

.shortcuts { width: min(380px, 92vw); padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-float); }
.shortcuts h2 { margin: 0 0 12px; font-size: 15px; }
.shortcuts dl { margin: 0 0 16px; display: grid; gap: 8px; }
.shortcuts dl div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.shortcuts dt { font-weight: 600; }
.shortcuts dd { margin: 0; color: var(--text-muted); }
.shortcuts form { display: flex; justify-content: flex-end; }

.toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 40;
  padding: 8px 14px; border-radius: var(--radius-md);
  background: var(--gray-900); color: var(--white); font-size: 12px; font-weight: 500;
  box-shadow: var(--shadow-float);
}

/* ---------- Present mode ---------- */
body.is-presenting .app { grid-template-columns: 1fr; }
body.is-presenting .sidebar,
body.is-presenting .canvas__top { display: none; }
body.is-presenting .canvas { grid-template-rows: 1fr; background: var(--gray-150); }
body.is-presenting .stage { padding: 0; }
body.is-presenting .slide-frame { width: 100cqw; height: 100cqh; border-radius: 0; }
body.is-presenting .slide-frame { box-shadow: none; }
body.is-presenting .toolbar,
body.is-presenting .exit-present { opacity: 0; transition: opacity 200ms; }
body.is-presenting .canvas:hover .toolbar,
body.is-presenting .canvas:hover .exit-present,
body.is-presenting .toolbar:focus-within,
body.is-presenting .exit-present:focus-visible { opacity: 1; }
body.is-presenting .segmented, body.is-presenting .toolbar__sep { display: none; }
.toolbar.no-arrange .segmented, .toolbar.no-arrange .toolbar__sep { display: none; }
body.is-presenting .exit-present {
  display: block; position: absolute; top: 14px; right: 14px;
  height: 28px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--white); font-size: 12px; font-weight: 500; cursor: pointer;
  box-shadow: var(--shadow-float);
}

/* ---------- Narrow screens: drawer + flowing slides ---------- */
@media (max-width: 767px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 48px 1fr; }
  .mobile-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 0 8px; background: var(--white); border-bottom: 1px solid var(--border);
  }
  .mobile-bar__logo { height: 15px; width: auto; margin-left: 4px; }
  .mobile-bar__title { flex: 1; font-weight: 600; padding-left: 8px; border-left: 1px solid var(--border); }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 30;
    transform: translateX(-100%); visibility: hidden;
    transition: transform 220ms var(--ease), visibility 0s 220ms;
    box-shadow: var(--shadow-float);
  }
  body.drawer-open .sidebar { transform: none; visibility: visible; transition: transform 220ms var(--ease); }
  .panel { width: min(272px, calc(100vw - var(--rail-w) - 40px)); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgb(30 30 30 / 0.3); }
  .scrim[hidden] { display: none; }
  .canvas { grid-template-rows: 1fr; }
  .canvas__top { display: none; }
  .direction__text { overflow: visible; padding-right: 0; }
  .slide--direction, .slide--cover { grid-template-columns: none; }
  .stage { display: block; overflow-y: auto; padding: 12px 12px 88px; container-type: normal; }
  .slide-frame { width: 100%; height: auto; container-type: inline-size; }
  .slide { height: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 20px; }
  .display { font-size: 34px; }
  .title { font-size: 24px; }
  .eyebrow, .body, .small, .hint, .board__count, .features dt, .features dd, .tags li, .direction-card__meta { font-size: 12px; }
  .lede { font-size: 14px; }
  .label { font-size: 12px; margin-top: 16px; }
  .cover__text { gap: 24px; }
  .cover__logo { height: 22px; }
  .cover__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .cover__grid .tile { aspect-ratio: 4 / 3; height: auto; }
  .cover__grid .tile:first-child { aspect-ratio: 16 / 10; }
  .direction__text { overflow: visible; }
  .tags { margin-top: 12px; padding-top: 0; gap: 6px; }
  .tags li { padding: 2px 8px; }
  .directions { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .direction-card { padding: 12px; column-gap: 10px; }
  .direction-card__images { height: 120px; gap: 4px; margin-bottom: 10px; }
  .direction-card__num { font-size: 22px; }
  .direction-card__title { font-size: 15px; }
  .slide--placeholder { min-height: 60dvh; justify-content: center; }
  .placeholder__icon { width: 48px; height: 48px; }
  .dropzone { min-height: 220px; }
  .segmented, .toolbar__sep { display: none; }
  .tile__badge { left: 6px; bottom: 6px; }
  .slide--sm { overflow: visible; }
  .slide--sm-page { display: flex; }
  .sm-legend { justify-content: flex-start; max-width: none; }
  .sm-nav { flex-wrap: wrap; }
  .sm-nav__items { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .sm-wire { display: none; }
  .br-bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; grid-template-areas: none; }
  .br-bento > .br-tile { grid-area: auto; }
  .br-tile--logo { min-height: 200px; }
  .br-tile--palette { min-height: 200px; }
  .br-logos, .br-swatches, .br-shots, .br-dodont, .br-fonts { grid-template-columns: 1fr !important; }
  .br-logos { grid-template-rows: none; grid-auto-rows: auto; row-gap: 20px; }
  .br-logos figure { display: flex; flex-direction: column; gap: 8px; grid-row: auto; }
  .br-logo { flex: none; min-height: 150px; }
  .br-specs { grid-template-columns: 1fr; }
  .br-swatch { display: grid; grid-template-columns: 110px 1fr; }
  .br-swatch__chip { min-height: 84px; }
  .br-swatch__info { border-top: 0; border-left: 1px solid var(--border); align-content: center; }
  .br-pairs { grid-template-columns: 1fr; }
  .br-fonts { grid-template-rows: none; }
  .br-font { min-height: 200px; }
  .br-scale-list li { grid-template-columns: 84px minmax(0, 1fr); }
  .br-shot { min-height: 180px; }
  .br-apps { grid-template-columns: 1fr; grid-template-areas: "web" "social" "card"; }
  .br-browser { min-height: 0; }
  .br-site__links { display: none; }
  .br-site__hero { grid-template-columns: 1fr; }
  .br-site__cards { height: 140px; max-height: none; }
  .br-post { width: min(100%, 300px); }
  .br-bcard { width: min(100%, 340px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
