:root {
  --bg: #edecea;
  --text-primary: #111111;
  --text-secondary: #666666;
  --text-muted: #555555;
  --text-meta: #777777;
  --accent: #b05c38;
  --accent-dark: #7a3e25;
  --border: #c8c5be;
  --card-bg: #f9f9f9;
  --track-fill: #4a917f;
  --footer-muted: #8c8a85;
  --sidebar-width: 302px;
  --gutter: 80px;
  --font-serif: "Literata", Georgia, serif;
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* Decorative background grid, matches the Figma "Lines" layer */
.grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to right,
    rgba(0, 0, 0, 0.1) 0,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 25%
  );
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  max-width: 1280px;
  margin: 0 auto;
  left: var(--gutter);
  right: var(--gutter);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
  display: flex;
  gap: 46px;
  align-items: flex-start;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: sticky;
  top: 40px;
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: calc(100vh - 80px);
  min-height: 620px;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.name {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 32px;
  color: var(--text-primary);
}

.side-nav {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  width: 100%;
  margin-top: -5px;
}

.side-nav a {
  padding: 5px 0;
  color: var(--text-secondary);
  transition: color 0.15s ease-out;
}

.side-nav a:hover {
  color: var(--text-primary);
}

.side-nav .idx {
  color: var(--accent);
}

.preview-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
}

.glance-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.glance-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--track-fill);
}

.glance-location {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.glance-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.glance-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.preview-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 10px;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.preview-links a {
  position: relative;
  transition: color 150ms ease-out;
}

.preview-links a::before {
  content: "";
  position: absolute;
  inset: -10px -8px;
}

.preview-links a:hover {
  color: var(--text-primary);
}

/* ---------- Main content ---------- */

.content {
  flex: 1;
  min-width: 0;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.annotation {
  margin: 0;
  text-align: right;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-meta);
}

.hero p {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  max-width: 772px;
  text-wrap: balance;
}

.group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.group h2 {
  margin: 0;
  align-self: flex-end;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.18px;
  color: var(--text-muted);
}

.table {
  --grid-join: 0px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.row {
  display: grid;
  grid-template-columns: 80px 1fr 160px 100px;
  align-items: center;
  column-gap: 16px;
  margin-left: calc(var(--grid-join) * -1);
  padding: 8px 16px 8px calc(16px + var(--grid-join));
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.row .col {
  min-width: 0;
  padding: 6px;
}

.row .year {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.row .title {
  overflow: hidden;
  font-size: 16px;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.row .type {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  text-align: center;
}

.row .view {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.link-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.row:hover .link-icon {
  transform: translateX(2px);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .grid-lines {
    display: none;
  }

  .page {
    flex-direction: column;
    padding-top: 32px;
    gap: 40px;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .preview-card {
    display: none;
  }

  .content {
    padding-top: 0;
  }

  .annotation {
    text-align: left;
  }

  .hero p {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .group h2 {
    align-self: flex-start;
  }

  .row {
    grid-template-columns: 60px 1fr 100px;
  }

  .row .type {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero p {
    font-size: 24px;
  }

  .row .title {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
  }
}

/* ---------- Case study page ---------- */

.side-nav a.active {
  color: var(--accent);
}

.sidebar-placeholder {
  height: 86px;
  width: 100%;
  flex-shrink: 0;
}

.sidebar-brief {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* Content normally fits; this stays a silent safety valve for very short
     windows, so the scrollbar itself shouldn't be visible. */
  scrollbar-width: none;
}

.sidebar-brief::-webkit-scrollbar {
  display: none;
}

.sidebar-brief > :first-child {
  margin-top: auto;
}

.micro-label {
  margin: 0;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-meta);
}

.tldr p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.tldr ol {
  margin: 0;
  padding: 0;
  list-style: decimal;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.tldr li {
  margin-left: 21px;
}

/* case hero meta row */

.case-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-eyebrow {
  margin: 0;
  text-align: right;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-meta);
}

.case-title {
  margin: 0;
  text-wrap: balance;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-meta-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* glance / scrubber */

.glance {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.glance-label {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.scrubber {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  min-height: 90px;
}

.scrubber-play {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid #d9d9d9;
}

.scrubber-track-wrap {
  flex: 1;
  min-width: 0;
}

.scrubber-track {
  position: relative;
  height: 11px;
  border-radius: 9px;
  background: var(--bg);
}

.scrubber-fill {
  position: absolute;
  inset: 0;
  width: 48%;
  border-radius: 9px;
  background: var(--track-fill);
}

.scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 48%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  transform: translate(-50%, -50%);
}

.scrubber-times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-primary);
}

/* review + compliance cards */

.review-row {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: stretch;
  flex-wrap: wrap;
}

.review-card,
.compliance-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  min-height: 319px;
}

.review-card {
  flex: 1 1 489px;
  background: var(--bg);
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}

.review-preview {
  flex: 1 1 259px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  min-height: 251px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 16px;
}

.review-preview img {
  width: 42px;
  height: 42px;
}

.review-preview p {
  margin: 0;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.review-notes {
  flex: 1 1 184px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 251px;
}

.review-notes .micro-label {
  color: var(--text-primary);
}

.notes-line {
  height: 14px;
  border-radius: 3px;
  background: #d9d9d9;
  width: 100%;
}

.notes-line.short {
  width: 70%;
}

.notes-placeholder {
  margin: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: auto;
}

.card-footer .value {
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.18px;
  text-transform: none;
  color: var(--accent);
}

.compliance-card {
  flex: 1 1 300px;
  background: var(--card-bg);
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px;
}

.compliance-badge p {
  margin: 0;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.compliance-note {
  margin: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 0 8px;
}

/* tiny avatar face, composited from Figma part-svgs */

.avatar-face {
  position: relative;
  width: 22px;
  height: 25.667px;
  flex-shrink: 0;
}

.avatar-face .part {
  position: absolute;
  display: block;
}

.avatar-face .part-inner {
  position: absolute;
  display: block;
}

.avatar-face img {
  display: block;
  width: 100%;
  height: 100%;
}

.avatar-head { inset: 14.48% 13.67% 0.8% 13.67%; }
.avatar-head .part-inner { inset: -1.04% -1.61% -20.2% -1.61%; }
.avatar-chin { inset: 66.47% 14.06% 0.32% 13.67%; }
.avatar-mouth { inset: 81.55% 41.02% 14.28% 42.19%; }
.avatar-eyes { inset: 50.42% 27.73% 38.11% 27.34%; }
.avatar-eyes .part-inner { inset: -19.64% -2.26% 0% -4%; }
.avatar-nose { inset: 58.77% 45.31% 24.23% 45.31%; }
.avatar-nose .part-inner { inset: 0% -5.47% -2.58% -4.01%; }
.avatar-hair { bottom: 39.39%; left: 50%; top: 0; width: 17.145px; transform: translateX(-50%); }
.avatar-ears { inset: 49.46% 0% 33.21% 0%; }
.avatar-ears .part-inner { inset: 0% -1.03% -6.3% -1.03%; }
.avatar-glasses { inset: 48.5% 10.94% 35.78% 10.16%; }
.avatar-glasses .part-inner { inset: -6.12% -0.34% -6.12% -0.33%; }

/* ---------- Review Tool Before/After ---------- */
/* Restyled to the site's own design system (Inter, monochrome text
   scale, --border/--card-bg/--bg, --accent/--track-fill) rather than
   the component spec's bespoke literal palette. The compliance/
   wellbeing/pedagogy categories still need to read as distinct, so
   they're mapped onto the two colors the site already uses for
   emphasis (--accent, --track-fill) plus a neutral third, instead of
   inventing new brand hues. */

.review-compare {
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --fs-xs: 0.625rem;
  --fs-sm: 0.75rem;
  --fw-medium: 500;
  --lh-normal: 1.4;
  --ls-wide: 0.06em;
  --dur-normal: 300ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --rc-compliance: var(--accent);
  --rc-compliance-bg: #f3e7e1;
  --rc-wellbeing: var(--track-fill);
  --rc-wellbeing-bg: #e8f2ef;
  --rc-pedagogy: var(--text-primary);
  --rc-pedagogy-bg: var(--bg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
}

.review-compare-labels {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.review-compare-label {
  color: var(--text-meta);
  transition: color var(--dur-normal) var(--ease-standard);
}

.review-compare-label.is-active {
  color: var(--text-primary);
}

.review-compare-label-arrow {
  color: var(--text-meta);
}

.review-compare-hint {
  margin-left: 8px;
  font-size: var(--fs-xs);
  color: var(--text-meta);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.review-compare-stage {
  position: relative;
  display: grid;
  cursor: default;
}

.review-compare-layer {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  min-width: 0;
}

.review-compare-layer--after {
  will-change: clip-path;
}

.review-compare-swipe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.15), 0 2px 10px rgba(17, 17, 17, 0.25);
  translate: -50% 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 1px;
}

.review-compare-timeline {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  flex-shrink: 0;
}

.review-compare-play {
  flex-shrink: 0;
}

.review-compare-track-wrap {
  position: relative;
  flex: 1;
  padding-top: 34px;
}

.review-compare-tags {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
}

.review-compare-tag {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 9px;
  font-weight: var(--fw-medium);
}

.review-compare-tag-line {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 12px;
  opacity: 0.6;
}

.review-compare-track {
  position: relative;
  height: 11px;
  background: var(--bg);
  border-radius: 9px;
}

.review-compare-track-fill {
  position: relative;
  height: 100%;
  background: var(--track-fill);
  border-radius: 9px;
  transition: width var(--dur-normal) var(--ease-standard);
}

.review-compare-playhead {
  position: absolute;
  right: -7px;
  top: 50%;
  translate: 0 -50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--track-fill);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.review-compare-times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-primary);
  margin-top: 6px;
}

.review-compare-panels {
  display: flex;
  flex: 1;
  gap: var(--sp-md);
  align-items: stretch;
}

.review-compare-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  border-radius: 9px;
  padding: 16px;
  min-height: 340px;
}

.review-compare-panel--left {
  background: var(--bg);
  border: 1px solid var(--border);
  flex: 0 0 53%;
}

.review-compare-panel--right {
  background: var(--card-bg);
  border: 1px solid var(--border);
  flex: 1;
}

.review-compare-panel-inner {
  flex: 1;
  min-height: 0;
}

.review-compare-panel-inner--split {
  display: flex;
  gap: var(--sp-sm);
  height: 100%;
}

.review-compare-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  text-align: center;
}

.review-compare-preview-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--text-meta);
  color: var(--text-meta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 8px;
}

.review-compare-preview-text,
.review-compare-preview-subtext {
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}

.review-compare-notes {
  width: 154px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-compare-notes-label {
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.review-compare-notes-line {
  display: block;
  height: 14px;
  background: var(--border);
  border-radius: 3px;
}

.review-compare-notes-placeholder {
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-style: italic;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.review-compare-brief {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-compare-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.review-compare-brief-badge {
  font-size: 9px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--rc-pedagogy);
  background: var(--rc-pedagogy-bg);
  padding: 2px 8px;
  border-radius: 9px;
}

.review-compare-brief-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0;
}

.review-compare-brief-text {
  font-size: 12px;
  line-height: var(--lh-normal);
  color: var(--text-primary);
  margin: 0;
}

.review-compare-brief-chart {
  position: relative;
  background: var(--bg);
  border-radius: 6px;
  padding: 8px;
}

.review-compare-brief-peak {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 9px;
  color: var(--track-fill);
}

.review-compare-brief-findings {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.review-compare-brief-findings-label {
  font-size: 9px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 2px;
}

.review-compare-finding {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.review-compare-finding-badge {
  font-size: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.review-compare-finding-label {
  flex: 1;
  color: var(--text-primary);
}

.review-compare-finding-time {
  color: var(--text-meta);
  flex-shrink: 0;
}

.review-compare-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-compare-benefit {
  border: 1px solid;
  border-radius: 9px;
  padding: 10px;
}

.review-compare-benefit-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  margin-bottom: 4px;
}

.review-compare-benefit ul {
  margin: 0;
  padding-left: 15px;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  line-height: 1.6;
}

.review-compare-avatar {
  width: 20px;
  height: auto;
  flex-shrink: 0;
}

.review-compare-limited {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
}

.review-compare-limited-title {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.review-compare-limited-subtext {
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 2px;
}

.review-compare-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-compare-stat-label {
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.review-compare-stat-value {
  font-size: 18px;
  letter-spacing: 0.18px;
  font-weight: var(--fw-medium);
  transition: color var(--dur-normal) var(--ease-standard);
}

@media (max-width: 640px) {
  .review-compare-panels {
    flex-direction: column;
  }

  .review-compare-panel--left {
    flex-basis: auto;
  }

  .review-compare-panel-inner--split {
    flex-direction: column;
  }

  .review-compare-notes {
    width: auto;
  }
}

/* problem + data-focus panel */

.problem-row {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.problem-text {
  flex: 1 1 380px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.problem-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.data-focus {
  flex: 1 1 380px;
  max-width: 480px;
  background: var(--bg);
  padding: 5px 0 0;
}

.data-focus-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.data-focus-headers p {
  margin: 0;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.data-focus-headers .current {
  color: var(--text-secondary);
}

.data-focus-headers .target {
  color: var(--accent-dark);
}

.data-focus-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 8px;
}

.data-focus-lists .current-list {
  border-right: 1px solid var(--border);
  padding-right: 24px;
}

.data-focus-lists ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.5;
}

.data-focus-lists .current-list li {
  color: var(--border);
}

.data-focus-lists .target-list li {
  color: var(--text-secondary);
}

/* challenge / strategy rows */

.challenge-row {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  width: 100%;
}

.challenge-col {
  flex: 0 0 313px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  padding: 0 32px 0 16px;
}

.strategy-col {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.challenge-col p,
.strategy-col p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.strategy-col p + p {
  margin-top: 8px;
}

/* solution highlights */

/* video placeholder + floating badge */

.video-block {
  position: relative;
  width: 100%;
}

.video-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 8px;
  background: var(--text-secondary);
  color: var(--bg);
  font-family: inherit;
  font-weight: 500;
  font-size: 10px;
  line-height: inherit;
  letter-spacing: 0.3px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn {
  position: relative;
  transition-property: background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.btn:hover {
  background: var(--text-primary);
}

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

.btn--center {
  align-self: center;
}

.btn--overlap {
  align-self: center;
  position: relative;
  z-index: 1;
  margin: -20px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 0;
  width: 100%;
  background: var(--card-bg);
  border-top: 1px solid #bebcb8;
  border-radius: 0 0 12px 12px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px var(--gutter) 0;
}

@media (prefers-reduced-motion: no-preference) {
  .site-footer.js-reveal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-brand p {
  margin: 0;
}

.footer-brand .footer-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--text-primary);
}

.footer-brand .footer-tagline {
  font-size: 11px;
  color: var(--footer-muted);
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav .footer-nav-label,
.footer-contact .footer-nav-label {
  font-size: 11px;
  color: var(--footer-muted);
}

.footer-nav a,
.footer-contact a {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-nav a .idx {
  color: var(--accent);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--text-primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.footer-contact a {
  width: fit-content;
  transition: color 150ms ease-out;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #bebcb8;
  padding: 16px 0;
  font-size: 11px;
}

.footer-bottom .copyright {
  color: var(--footer-muted);
}

.footer-bottom .back-to-top {
  color: var(--text-muted);
}

.footer-bottom .back-to-top:hover {
  color: var(--text-primary);
}

/* ---------- Case study responsive ---------- */

@media (max-width: 900px) {
  .case-title {
    font-size: 30px;
    letter-spacing: -1px;
  }

  .review-card {
    flex-direction: column;
  }

  .challenge-row {
    flex-direction: column;
    gap: 12px;
  }

  .challenge-col {
    flex: 1 1 auto;
    text-align: left;
    padding: 0;
  }

  .strategy-col {
    flex: 1 1 auto;
  }

  .data-focus,
  .problem-text {
    max-width: 100%;
  }

  .footer-columns {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- ChatterBox page ---------- */

.cb-final-label {
  margin: 0;
}

.cb-showcase {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 69.6329%;
  box-sizing: content-box;
  container-type: inline-size;
}

.cb-device {
  position: absolute;
}

.cb-device .cb-screen {
  position: absolute;
  overflow: hidden;
}

.cb-device .cb-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-device .cb-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.cb-phone {
  left: 25.35%;
  top: 30.63%;
  width: 22.96%;
  height: 63.88%;
  z-index: 2;
}

.cb-phone .cb-screen {
  inset: 7.2% 11.41% 1.77% 11.26%;
  border-radius: 10% / 5%;
}

.cb-ipad {
  left: 47.44%;
  top: 4.5%;
  width: 47.1%;
  height: 91.24%;
  z-index: 1;
}

.cb-ipad .cb-screen {
  inset: 9.28% 7.35% 9.33% 6.27%;
  border-radius: 3% / 2.3%;
}

.cb-card {
  position: absolute;
  left: 9.47%;
  width: 13.8%;
  border-radius: 8px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.25);
  padding: clamp(6px, 1.5cqw, 16px) clamp(5px, 1.2cqw, 14px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 3cqw, 28px);
  z-index: 3;
  overflow: hidden;
}

.cb-card.prompt {
  top: 2.09%;
  height: 27.66%;
  background: #f2d9ae;
  color: #4d3929;
}

.cb-card.free {
  top: 32.93%;
  height: 27.61%;
  background: #deddda;
  color: #a83a00;
}

.cb-card.instructor {
  top: 63.78%;
  height: 27.61%;
  background: #5a69d8;
  color: #fff7df;
}

.cb-card-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: clamp(2px, 0.6cqw, 6px);
  text-align: right;
  flex-wrap: nowrap;
}

.cb-card-plus {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 2.7cqw, 26px);
  line-height: 1.2;
  white-space: nowrap;
}

.cb-card-label {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 1.65cqw, 16px);
  line-height: 1.2;
  text-align: right;
}

.cb-card-body {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(7px, 0.92cqw, 11px);
  line-height: 1.4;
}

/* problem + specifically */

.cb-problem-row {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
}

.cb-problem-col {
  flex: 1 1 380px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-problem-col p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.cb-problem-col ol {
  margin: 0;
  padding: 0;
  list-style: decimal;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.cb-problem-col li {
  margin-left: 21px;
}

/* three-up challenge rows with image placeholder */

.cb-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 16px 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  width: 100%;
  flex-wrap: wrap;
}

.cb-row .challenge-col {
  flex: 0 0 284px;
  padding: 0 16px;
}

.cb-row .strategy-col {
  flex: 1 1 260px;
  min-width: 0;
}

.cb-placeholder {
  flex: 0 0 260px;
  aspect-ratio: 268 / 293;
  background: #d9d9d9;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05) 0,
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 10px
  );
  border-radius: 2px;
}

.cb-video {
  flex: 0 0 260px;
  border-radius: 2px;
  overflow: hidden;
  background: #111;
}

.cb-video video {
  display: block;
  width: 100%;
  height: auto;
}

.media-placeholder {
  width: 100%;
  aspect-ratio: 931 / 436;
  background: #d9d9d9;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05) 0,
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 10px
  );
  border-radius: 2px;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.about-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ---------- Learn By Doing ---------- */

.lbd-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.lbd-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lbd-question {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.lbd-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lbd-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  appearance: none;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
}

.lbd-option:hover {
  background: #e2e1de;
}

.lbd-option.is-selected {
  background: #f7ece7;
  border-color: var(--accent);
  color: var(--accent-dark);
}

.lbd-option.is-correct {
  background: #eaf6ec;
  border-color: #2e7d46;
  color: #1f5c33;
}

.lbd-option.is-incorrect {
  background: #fbebea;
  border-color: #c0392b;
  color: #96271b;
}

.lbd-option-mark {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.lbd-option.is-correct .lbd-option-mark {
  color: #2e7d46;
}

.lbd-option.is-incorrect .lbd-option-mark {
  color: #c0392b;
}

.lbd-answer-box {
  min-height: 66px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-primary);
  resize: vertical;
}

.lbd-answer-box::placeholder {
  color: var(--text-secondary);
  font-style: italic;
}

.lbd-answer-box:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.lbd-feedback {
  font-style: italic;
  color: var(--text-secondary);
}

.lbd-feedback.is-filled {
  font-style: normal;
  color: var(--text-primary);
}

.lbd-reflection-input {
  min-height: 79px;
  background: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  resize: vertical;
}

.lbd-reflection-input::placeholder {
  color: var(--text-secondary);
  font-style: italic;
}

.lbd-reflection-input:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.lbd-note {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.cb-mini-course {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* ---------- Completion certificate ---------- */

.cert-inline {
  position: relative;
  margin-top: 4px;
  min-height: 142px;
  padding: 16px 24px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 12px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cert-inline[hidden] {
  display: none;
}

.cert-inline .micro-label {
  position: relative;
  z-index: 2;
  margin-bottom: 6px;
  color: var(--accent);
}

.cert-confetti {
  position: absolute;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.cert-title {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  color: var(--text-primary);
}

.cert-body {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cert-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .cb-card {
    display: none;
  }

  .cb-showcase {
    display: none;
  }

  .cb-row {
    flex-direction: column;
    gap: 12px;
  }

  .cb-row .challenge-col {
    flex: 1 1 auto;
    text-align: left;
    padding: 0;
  }

  .cb-placeholder {
    display: none;
  }

  .cb-video {
    flex: 1 1 auto;
    width: min(100% , 320px);
    max-width: 320px;
    height: auto;
    aspect-ratio: auto;
  }

  .cb-video video {
    height: auto;
  }

  .cb-problem-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ---------- Experience Map (guided scroll story) ---------- */

.xm-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.xm-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.xm-credit {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.xm-credit strong {
  color: var(--text-primary);
  font-weight: 500;
}

.xm-problem {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 24px;
  flex-wrap: wrap;
}

.xm-problem img {
  width: 200px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
}

.xm-problem-text {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xm-problem-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.xm-problem-quote {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* stepper shell */

.xm-stepper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.xm-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.xm-stage-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .xm-stage-btn {
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
}

.xm-stage-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.xm-stage-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.xm-stage-btn .n {
  color: inherit;
  opacity: 0.6;
  margin-right: 4px;
}

/* scene */

.xm-scene-wrap {
  position: relative;
  min-height: 400px;
}

.xm-scene {
  display: none;
  gap: 40px;
  width: 100%;
}

.xm-scene.active {
  display: flex;
  flex-wrap: wrap;
}

.xm-scene.xm-exit-left,
.xm-scene.xm-exit-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.xm-scene.xm-enter-left,
.xm-scene.xm-enter-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .xm-scene.xm-enter-right {
    animation: xm-slide-in-right 220ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .xm-scene.xm-enter-left {
    animation: xm-slide-in-left 220ms cubic-bezier(0.32, 0.72, 0, 1);
  }

  .xm-scene.xm-exit-left {
    animation: xm-slide-out-left 180ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
  }

  .xm-scene.xm-exit-right {
    animation: xm-slide-out-right 180ms cubic-bezier(0.32, 0.72, 0, 1) forwards;
  }
}

@keyframes xm-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes xm-slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes xm-slide-out-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-28px);
  }
}

@keyframes xm-slide-out-right {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(28px);
  }
}

.xm-scene-media {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xm-scene-media img,
.xm-scene-media video {
  width: 100%;
  height: auto;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  display: block;
}

.xm-scene-media video.xm-portrait-video {
  width: auto;
  height: 420px;
  max-width: 100%;
  margin: 0 auto;
}

.xm-scene-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.xm-scene-body {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.xm-scene-eyebrow {
  margin: 0;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-meta);
}

.xm-scene-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.xm-lanes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.xm-lane {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.xm-lane-tag {
  flex: 0 0 84px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.xm-lane-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.xm-lane-tag span {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.xm-lane[data-lane="student"] .xm-lane-dot,
.xm-lane[data-lane="teacher"] .xm-lane-dot {
  background: var(--accent);
}

.xm-lane[data-lane="physical"] .xm-lane-dot,
.xm-lane[data-lane="digital"] .xm-lane-dot {
  background: #5b7c99;
}

.xm-lane[data-lane="backstage"] .xm-lane-dot {
  background: var(--text-secondary);
}

.xm-lane-items {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xm-lane-items p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.xm-insight {
  margin: 0;
  padding: 10px 12px;
  background: var(--card-bg);
  border-radius: 6px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* nav controls */

.xm-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.xm-nav-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .xm-nav-btn {
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
}

.xm-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.xm-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.xm-dots {
  display: flex;
}

.xm-dots button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.xm-dots button::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}

.xm-dots button.active::before {
  background: var(--accent);
  width: 18px;
  height: 7px;
  border-radius: 4px;
}

/* resolution outro */

.xm-resolution {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 24px;
}

.xm-resolution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.xm-resolution-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* teaser card linking out to the experience map */

.xm-teaser-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.xm-teaser {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.xm-teaser:hover {
  border-color: var(--accent);
  background: #f2efe9;
}

.xm-teaser img {
  width: 180px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  display: block;
}

.xm-teaser-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.xm-teaser-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.xm-teaser-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.xm-teaser-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.xm-teaser-cta .link-icon {
  width: 13px;
  height: 13px;
  transition: transform 0.15s ease;
}

.xm-teaser:hover .xm-teaser-cta .link-icon {
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .xm-problem {
    flex-direction: column;
  }

  .xm-problem img {
    width: 100%;
    max-width: 280px;
  }

  .xm-scene-wrap {
    min-height: 0;
  }

  .xm-scene-media video.xm-portrait-video {
    height: 320px;
    margin: 0;
  }

  .xm-resolution-grid {
    grid-template-columns: 1fr;
  }

  .xm-teaser {
    flex-direction: column;
    align-items: flex-start;
  }

  .xm-teaser img {
    width: 100%;
    max-width: 280px;
  }
}

/* ---------- Prompt Card Fan ---------- */

.cc-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.pf-wrap {
  --pf-scale: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.pf-stage-shell {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pf-stage {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: calc(240px * var(--pf-scale));
  padding: calc(480px * var(--pf-scale)) calc(60px * var(--pf-scale)) calc(60px * var(--pf-scale)) calc(240px * var(--pf-scale));
  width: max-content;
}

.pf-fan {
  position: relative;
  width: calc(178px * var(--pf-scale));
  height: calc(250px * var(--pf-scale));
  flex-shrink: 0;
  --step-x: calc(34px * var(--pf-scale));
  --step-y: calc(42px * var(--pf-scale));
  --hover-lift: calc(200px * var(--pf-scale));
}

.pf-card {
  position: absolute;
  inset: 0;
  width: calc(178px * var(--pf-scale));
  height: calc(250px * var(--pf-scale));
  cursor: default;
  transform-origin: 50% 100%;
  /* Only the resting fan position lives on this element -- it never moves
     on hover/focus, so its hit-test area stays anchored right where the
     card sits. The lift transform below moves just the visual face; if it
     moved this box instead, the box would vacate its resting spot the
     instant it lifted, and a cursor that hadn't moved would "fall through"
     onto whichever card is stacked behind, which would then lift in turn --
     a flicker loop between neighboring cards. */
  transform: translate(calc(var(--i) * var(--step-x) * -1), calc(var(--i) * var(--step-y) * -1));
  outline: none;
}

.pf-card-face {
  position: absolute;
  inset: 0;
  background: #f2d9ae;
  border: 1px solid #1c1710;
  border-radius: calc(14px * var(--pf-scale));
  padding: calc(14px * var(--pf-scale)) calc(15px * var(--pf-scale));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: 50% 100%;
  box-shadow: 0 3px 8px rgba(30, 26, 20, 0.3);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
}

.pf-card:focus .pf-card-face {
  transform: translateY(calc(var(--hover-lift) * -1)) scale(1.03);
  box-shadow: 0 22px 34px -12px rgba(30, 26, 20, 0.45);
}

@media (hover: hover) and (pointer: fine) {
  .pf-card:hover .pf-card-face {
    transform: translateY(calc(var(--hover-lift) * -1)) scale(1.03);
    box-shadow: 0 22px 34px -12px rgba(30, 26, 20, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card-face {
    transition-duration: 0.01ms !important;
  }
}

.pf-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.pf-card-plus {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 400;
  font-size: calc(22px * var(--pf-scale));
  color: #4d3929;
  line-height: 1;
}

.pf-card-title {
  font-family: "Anton", "Inter", sans-serif;
  font-weight: 700;
  font-size: calc(18px * var(--pf-scale));
  line-height: 1.05;
  text-align: right;
  text-transform: uppercase;
  color: #4d3929;
}

.pf-card-question {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: #4d3929;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-detail {
  max-width: 65ch;
  min-height: 220px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.pf-detail-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.pf-detail-code {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.pf-detail-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 90ch;
}



/* ---------- Session Scope: explanatory additions ---------- */

.case-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  text-wrap: pretty;
}

.section-lede {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}

.pipeline-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.pipeline li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 16px;
}

.pipeline li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--accent);
}

.pipeline-step {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.pipeline-note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  .pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline li + li {
    border-top: 0.5px solid var(--border);
  }
}

.video-figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.labeled-example {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.labeled-example-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--accent-dark);
}

.pipeline-block > .micro-label,
.video-figure > .micro-label,
.review-compare > .micro-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
}


.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.sidebar-meta .case-meta-item {
  gap: 4px;
}

.review-compare-times,
.review-compare-stat-value {
  font-variant-numeric: tabular-nums;
}

.review-compare-stage {
  -webkit-user-select: none;
  user-select: none;
}

.avatar-face,
.review-compare-avatar {
  pointer-events: none;
  -webkit-user-drag: none;
}

.data-focus-lists .current-list li {
  color: var(--footer-muted);
}

.proto {
  aspect-ratio: 1953 / 1275;
}

.proto-launch {
  position: absolute;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  box-shadow: 0 2px 12px rgba(17, 17, 17, 0.2);
}

.proto-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
  background: #fff;
}

.proto.is-live img {
  visibility: hidden;
}

/* Sidebar hierarchy: small gray labels over regular-size values, and the
   summary group set apart from the facts above it. */
.sidebar-meta .micro-label,
.sidebar-brief .micro-label {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.6px;
  color: var(--text-secondary);
}

.sidebar-brief .tldr .micro-label {
  margin: 0 0 6px;
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
}

.project-nav .btn:only-child {
  margin-left: auto;
}

.row--static {
  cursor: default;
}

.row--static:hover {
  background: none;
}

.row--static .view {
  color: var(--text-secondary);
}

.course-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.course-shots img,
.glance-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
}

@media (max-width: 720px) {
  .course-shots {
    grid-template-columns: 1fr;
  }
}

.glance-link {
  display: block;
}

.glance-btn {
  margin-top: 4px;
}

/* ---------- Custom cursor (see cursor.js) ---------- */

html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

/* Keep the real cursor where a dot would be wrong: typing, and inside the
   embedded prototype. */
html.has-custom-cursor textarea,
html.has-custom-cursor input,
html.has-custom-cursor select {
  cursor: text !important;
}

html.cursor-away,
html.cursor-away * {
  cursor: auto !important;
}

.cursor-dot,
.cursor-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 2px;
  background: var(--accent);
  transition: opacity 150ms ease-out, scale 150ms ease-out;
}

.cursor-dot.is-active {
  scale: 1.75;
}

.cursor-line {
  background: rgba(17, 17, 17, 0.16);
  transition: opacity 150ms ease-out;
}

.cursor-line--v {
  width: 1px;
  height: 100vh;
}

.cursor-line--h {
  width: 100vw;
  height: 1px;
}

html.has-custom-cursor:not(.cursor-away) .cursor-dot,
html.has-custom-cursor:not(.cursor-away) .cursor-line {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-line {
    display: none;
  }
}

/* Lines are frozen at their resting breaks by title-motion.js so the
   weight animation never re-wraps the title. */
.title-line {
  display: block;
  white-space: nowrap;
  transform-origin: 0 100%;
}

/* ---------- Resume page ---------- */

.resume-section {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-row {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 0.5px solid var(--border);
}

.resume-section > .resume-row:last-child {
  border-bottom: 0.5px solid var(--border);
}

.resume-dates {
  flex: 0 0 108px;
  margin: 0;
  padding-top: 1px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-meta);
  white-space: nowrap;
}

.resume-entry {
  flex: 1 1 auto;
  min-width: 0;
}

.resume-entry-title {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.resume-entry-org {
  margin: 2px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary);
}

.resume-bullets {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resume-bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
}

.resume-bullets strong {
  font-weight: 600;
}

.resume-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-meta);
}

@media (max-width: 720px) {
  .resume-row {
    flex-direction: column;
    gap: 4px;
  }
  .resume-dates {
    flex: none;
  }
}

/* Highlighter: a colored stroke wipes in behind key phrases the first
   time they scroll into view (see the observer script on resume.html). */
mark.hl {
  background-color: transparent;
  background-image: linear-gradient(rgba(176, 92, 56, 0.28), rgba(176, 92, 56, 0.28));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  color: inherit;
  border-radius: 0.3em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.02em 0.2em;
  margin: 0 -0.2em;
  transition: background-size 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

mark.hl.is-visible {
  background-size: 100% 100%;
}

@media (prefers-reduced-motion: reduce) {
  mark.hl {
    transition: none;
    background-size: 100% 100%;
  }
}

/* Printing a page (the resume, in practice) shouldn't include the site
   chrome around the actual content. */
@media print {
  .grid-lines,
  .sidebar,
  .site-footer {
    display: none;
  }

  .page {
    max-width: none;
    padding: 0.4in 0.5in;
    gap: 0;
  }

  .glance-tag {
    border-color: #999;
  }

  mark.hl {
    background-size: 100% 100%;
    transition: none;
  }
}
