/* ============================================================
   Krishnapriya K — Product Portfolio
   ============================================================ */
:root {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-glow: rgba(79, 70, 229, 0.14);
  --line: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --maxw: 720px;
  --maxw-wide: 1120px;
  --section-y: clamp(40px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;
}

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

@media (min-width: 1440px) {
  :root { --maxw-wide: 1200px; }
}

html,
body { min-width: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: pageViewOut 180ms ease-out both;
}

::view-transition-new(root) {
  animation: pageViewIn 320ms var(--ease) both;
}

@keyframes pageViewOut {
  to { opacity: 0; transform: translateY(-4px); }
}

@keyframes pageViewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(79, 70, 229, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(99, 102, 241, 0.06), transparent 50%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection {
  background: var(--accent);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.45em;
  letter-spacing: -0.025em;
  color: var(--ink);
}

h1 { font-size: clamp(1.95rem, 3.8vw, 2.85rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  max-width: none;
  width: 100%;
}

p.lede {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: none;
  width: 100%;
}

.full-bleed {
  width: 100%;
  max-width: none;
}

.prose-block > .lede,
.prose-block > p:first-of-type,
.cs-hero > p:first-of-type,
.cs-hero > .full-bleed,
.section-head p,
.contact-band p.lede,
.hero .lede {
  width: 100%;
  max-width: none;
}

strong { color: var(--ink); font-weight: 600; }
.mono { font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 0.92em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head { margin-bottom: 26px; }
.section-head h2 { margin-bottom: 0.35em; }
.section-head p { margin: 0; max-width: 52ch; }
#work .section-head p { max-width: none; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

.col { max-width: var(--maxw); }

section {
  padding: var(--section-y) 0;
}

section + section {
  border-top: none;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.page-enter {
  animation: pageEnter 0.65s var(--ease) both;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Header / Nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px clamp(20px, 4vw, 40px);
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 72%, transparent 100%);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand span { color: var(--accent); }

nav.primary {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav.primary a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

nav.primary a:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
}

nav.primary a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  margin-left: 4px;
  background: var(--ink) !important;
  color: #fff !important;
  padding: 8px 16px !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  content: '';
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 4px; }

@media (max-width: 760px) {
  header.site { padding-top: 10px; padding-bottom: 10px; }

  nav.primary {
    position: fixed;
    inset: 72px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  nav.primary.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  nav.primary a { padding: 12px 14px; }

  nav.primary {
    max-height: min(70dvh, 420px);
    overflow-y: auto;
  }

  .menu-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: rgba(79, 70, 229, 0.25);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .hero-actions .btn {
    flex: 1 1 140px;
    justify-content: center;
    text-align: center;
  }

  .resume-actions .btn {
    flex-basis: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(14px, 2.5vw, 26px) 0 clamp(30px, 4vw, 44px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero h1 { margin-bottom: 14px; }

.hero .lede {
  font-size: 1rem;
  line-height: 1.65;
}

.hero-role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero .eyebrow { margin-bottom: 12px; }

.hero-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 28px 26px 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.panel-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.hero-panel-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.hero-panel-item:first-of-type { border-top: none; padding-top: 0; }

.panel-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
}

.hero-panel-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.hero-panel-item span:last-child {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Value / prose block ---------- */
.prose-block {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

/* ---------- Work cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 28px 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.case-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.18);
}

.case-card:hover::before { opacity: 1; }

.case-card .card-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}

.case-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.case-card:hover h3 { color: var(--accent); }

.case-card p {
  flex: 1;
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.case-card .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
}

.case-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.case-card .card-foot i {
  transition: transform 0.25s var(--ease);
}

.case-card:hover .card-foot i { transform: translateX(4px); }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---------- Skills ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-group {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.skill-group:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-group span.h {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.skill-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-group li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.skill-group li:last-child { border-bottom: none; padding-bottom: 0; }

@media (max-width: 960px) {
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .skill-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .skill-grid { grid-template-columns: 1fr; }
  .skill-group:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- Contact band ---------- */
.contact-band {
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 52px);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.contact-band h2,
.contact-band p.lede,
.contact-band strong { color: #fff; }

.contact-band p.lede { opacity: 0.88; max-width: 52ch; }

.contact-band .btn-primary {
  background: #fff;
  color: var(--ink);
}

.contact-band .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* ---------- Footer ---------- */
footer.site {
  padding: 28px 0 36px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

footer.site a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

footer.site a:hover { color: var(--accent); }

.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }

.foot-note {
  font-size: 0.84rem;
  color: var(--ink-faint);
}

/* ============================================================
   Work hub & case study pages
   ============================================================ */
.page-hero {
  padding: clamp(20px, 3vw, 32px) 0 clamp(24px, 3.5vw, 36px);
}

.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
  gap: 8px;
}

.cs-hero {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(22px, 3vw, 32px);
}

.cs-hero > .lede {
  max-width: none;
  width: 100%;
}

.cs-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

@media (min-width: 1100px) {
  .cs-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cs-meta .m {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.cs-meta .m .h {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}

.cs-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 18px;
  padding-left: 0;
}

.cs-tools .h {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0;
  flex-shrink: 0;
}

.cs-tools-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-tools-list li {
  display: flex;
  flex: 0 0 auto;
}

.cs-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.cs-tool-icon:hover,
a.cs-tool-icon:focus-visible {
  border-color: rgba(79, 70, 229, 0.28);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  outline: none;
}

.cs-tool-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
}

.cs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cs-section-head h2 {
  margin-bottom: 0;
}

.cs-section-tool-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.cs-section-tool-wrap--plain {
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

.cs-section-tool-wrap--plain .cs-section-tool { width: 60px; height: 60px; }

.cs-section-tool {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.cs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.cs-layout > div {
  min-width: 0;
  container-type: inline-size;
  container-name: cs;
}

.cs-section { min-width: 0; }

.cs-toc {
  position: sticky;
  top: 96px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
}

.cs-toc a {
  display: block;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.cs-toc a:hover {
  color: var(--ink);
  background: var(--bg);
}

.cs-toc a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

@media (max-width: 900px) {
  .cs-layout { grid-template-columns: 1fr; }

  .cs-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }

  .cs-toc a {
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-pill);
  }
}

.cs-section {
  padding: 34px 0;
}

.cs-section:first-child { padding-top: 0; }

.cs-section + .cs-section {
  border-top: 1px solid var(--line);
}

.cs-section h2 { margin-bottom: 16px; }
.cs-section h3 { margin: 28px 0 10px; font-size: 1.05rem; }

table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 8px;
  font-size: 0.93rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.data th,
table.data td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

@media (max-width: 700px) {
  table.data {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  table.data tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  table.data tr {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
  }

  table.data tr:first-child { display: none; }

  table.data th,
  table.data td {
    display: block;
    width: auto;
    border: none;
    padding: 4px 0;
  }

  table.data td:first-child {
    font-weight: 700;
    color: var(--ink);
    padding-top: 0;
  }

  table.data td.v { margin-top: 4px; }
}

table.data tr:last-child td,
table.data tr:last-child th { border-bottom: none; }

table.data th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg);
}

table.data td.v {
  font-weight: 600;
  color: var(--accent);
}

.problem-synthesis {
  margin: 14px 0 0;
  max-width: none;
  color: var(--ink);
  font-weight: 600;
}

.pipeline,
.pipeline-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.pipeline-5 .step {
  min-width: 0;
  padding: 14px 12px 13px;
}

.pipeline-5 .step .meta {
  font-size: 0.78rem;
}

.arch-full {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker cue"
    "title cue"
    "meta cue";
  gap: 4px 20px;
  align-items: center;
  width: 100%;
  margin: 8px 0 20px;
  padding: 22px 24px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.arch-full:hover,
.arch-full:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
  outline: none;
}

.arch-full-kicker {
  grid-area: kicker;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.arch-full strong {
  grid-area: title;
  font-size: 1.15rem;
  font-weight: 700;
}

.arch-full-meta {
  grid-area: meta;
  font-size: 0.9rem;
  color: var(--ink-faint);
  line-height: 1.45;
}

.arch-full-cue {
  grid-area: cue;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .arch-full {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "meta"
      "cue";
  }

  .arch-full-cue { justify-self: start; margin-top: 8px; }
}

.pipeline .step {
  display: block;
  width: auto;
  flex: 0 0 calc(33.333% - 12px);
  max-width: calc(33.333% - 8px);
  min-width: min(100%, 200px);
  position: relative;
  padding: 16px 16px 15px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font: inherit;
  color: inherit;
  text-align: left;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.pipeline .step[data-diagram] { cursor: pointer; }

.pipeline .step[data-diagram]:hover,
.pipeline .step[data-diagram]:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
  outline: none;
}

.pipeline .step[data-diagram]:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

.pipeline .step.is-active {
  opacity: 0;
  pointer-events: none;
}

.step-cue {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s var(--ease);
}

.pipeline .step[data-diagram]:hover .step-cue,
.pipeline .step[data-diagram]:focus-visible .step-cue {
  gap: 9px;
}

/* ---------- Diagram viewer ---------- */
.diagram-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vw, 72px) clamp(56px, 8vw, 88px) clamp(56px, 7vw, 80px);
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.diagram-viewer[hidden] { display: none !important; }
.diagram-viewer.is-open { opacity: 1; }

.diagram-viewer.is-solo .dv-nav { display: none; }

.arch-full.is-active {
  opacity: 0;
  pointer-events: none;
}

body.viewer-open { overflow: hidden; }

.dv-frame {
  position: relative;
  margin: 0;
  width: min(100%, 1100px);
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transform-origin: center center;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.38s var(--ease), opacity 0.28s ease;
}

.diagram-viewer.is-open .dv-frame {
  transform: scale(1);
  opacity: 1;
}

.dv-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: calc(100vh - 160px);
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.dv-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.diagram-viewer.is-open .dv-img.is-entering {
  animation: dvImgIn 0.4s var(--ease) both;
}

.dv-img[hidden] { display: none; }

@keyframes dvImgIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.dv-missing {
  margin: 0;
  max-width: 42ch;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.dv-missing .mono {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.82rem;
}

.dv-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  border: none;
  text-align: center;
}

.dv-step {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.dv-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.dv-close,
.dv-nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.dv-close:hover,
.dv-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: scale(1.05);
}

.dv-close { top: clamp(16px, 3vw, 28px); right: clamp(16px, 3vw, 28px); }
.dv-nav { top: 50%; margin-top: -22px; }
.dv-prev { left: clamp(12px, 2.5vw, 28px); }
.dv-next { right: clamp(12px, 2.5vw, 28px); }

@media (max-width: 640px) {
  .diagram-viewer {
    padding: 64px 16px 72px;
  }

  .dv-nav {
    top: auto;
    bottom: 18px;
    margin-top: 0;
  }

  .dv-frame {
    max-height: calc(100vh - 100px);
  }

  .dv-stage,
  .dv-img {
    max-height: calc(100vh - 140px);
  }
}

.pipeline .step .n {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
}

.pipeline .step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.pipeline .step .meta {
  display: block;
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--ink-faint);
}

@media (max-width: 520px) {
  .cs-meta { grid-template-columns: 1fr; }
}

.impact-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tier .phase {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.tier .figure {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
  letter-spacing: -0.02em;
}

.tier ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.tier li { margin-bottom: 6px; }

@media (max-width: 760px) {
  .impact-tiers { grid-template-columns: 1fr; }
}

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 20px 0;
}

.callout p {
  margin: 0;
  color: var(--ink);
  max-width: none;
  font-weight: 500;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.shot img { width: 100%; height: auto; display: block; }

.shot .cap {
  font-size: 0.76rem;
  color: var(--ink-faint);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.shot.placeholder {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, #eef2ff 100%);
}

.shot.placeholder span {
  font-size: 0.78rem;
  color: var(--ink-faint);
  background: var(--bg-elevated);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--line);
}

@media (max-width: 640px) {
  .shot-grid { grid-template-columns: 1fr; }
}

/* ---------- EDGE product output pair ---------- */
.output-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0 8px;
  align-items: start;
}

.output-rail {
  position: absolute;
  top: 42px;
  left: calc(50% - 28px);
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  pointer-events: none;
  z-index: 1;
}

.output-rail::before,
.output-rail::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.output-rail::before { left: -2px; }
.output-rail::after { right: -2px; }

.output-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.25s ease;
}

.output-panel-shift {
  margin-top: 28px;
}

.output-panel:hover,
.output-panel:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.28);
  outline: none;
}

.output-panel.is-active {
  opacity: 0;
  pointer-events: none;
}

.output-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.output-frame {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 55%, #e2e8f0 100%);
}

.output-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s var(--ease);
}

.output-panel:hover .output-frame img,
.output-panel:focus-visible .output-frame img {
  transform: scale(1.04);
}

.output-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.output-body strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.output-cap {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.output-cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.output-panel:hover .output-cue {
  gap: 10px;
}

@media (max-width: 800px) {
  .output-pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .output-panel-shift { margin-top: 0; }

  .output-rail {
    display: none;
  }
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.resource-list li {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.resource-list li:hover {
  transform: none;
  border-color: transparent;
}

.resource-list a,
.resource-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.resource-list button {
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.resource-list a:hover,
.resource-list button:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.22);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.resource-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mandi-source-content {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mandi-source-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  object-fit: cover;
}

.mandi-medal-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 2px solid rgba(205, 127, 50, 0.35);
  border-radius: 50%;
  background: rgba(205, 127, 50, 0.1);
  color: #cd7f32;
  font-size: 1.6rem;
}

.mandi-principles-heading {
  margin: 28px 0 14px;
  font-size: 1.05rem;
}

.mandi-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mandi-principle {
  min-width: 0;
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.mandi-principle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
}

.mandi-principle h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.mandi-principle p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.resource-list .name {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

.resource-list .note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.resource-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.resource-action i {
  font-size: 0.85rem;
}

.resource-list a:hover .resource-action,
.resource-list button:hover .resource-action {
  background: var(--accent);
  color: #fff;
  transform: translateX(2px);
}

@media (max-width: 560px) {
  .resource-list a,
  .resource-list button {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

.reflection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .mandi-principles { grid-template-columns: 1fr; }
}

.reflection-grid > div {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 700px) {
  .reflection-grid { grid-template-columns: 1fr; }
}

/* ---------- Resume ---------- */
.resume-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  height: 82vh;
  box-shadow: var(--shadow-md);
}

.resume-embed object,
.resume-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.resume-fallback { padding: 60px 24px; text-align: center; }

/* ---------- Legacy compat ---------- */
.work-list { display: contents; }
.work-item { display: contents; }
.ledger { display: none; }
.toolkit-band { display: none; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.spacer-sm { height: 16px; }

/* ============================================================
   Case 02 additions
   ============================================================ */

.cs-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 10px 4px 6px;
  vertical-align: middle;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

a.cs-tool-chip:hover,
a.cs-tool-chip:focus-visible {
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.28);
  outline: none;
}

.cs-tool-chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.prototype-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.prototype-heading > span { min-width: 0; }
.prototype-heading .cs-tool-chip { flex-shrink: 0; margin-left: auto; }
.prototype-heading .cs-tool-chip img { width: 20px; height: 20px; }

.cs-tool-chip-logo {
  margin-left: 10px;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg-elevated);
}

.cs-tool-chip-logo img {
  width: 36px;
  height: 36px;
}

.launch-step-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: block;
  width: 52px;
  height: 52px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

.launch-step-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.launch-step-logo:hover,
.launch-step-logo:focus-visible {
  transform: scale(1.06);
  opacity: 0.88;
  outline: none;
}

h3 .cs-tool-chip { margin-left: 10px; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-row .cs-tool-chip { margin-left: 0; }

.persona {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 8px 0 24px;
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.persona-image-right {
  grid-template-columns: minmax(0, 1fr) 140px;
}

.persona-avatar {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 2px solid var(--line);
}

.persona-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.persona-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.persona-avatar.is-placeholder .persona-fallback {
  display: flex;
}

.persona-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.persona-copy blockquote {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}

.cs-hero > p,
.persona-copy blockquote { max-width: 46rem; }

.persona-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.persona-ownership { color: inherit; font-weight: 600; }

.frame-list,
.req-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.frame-list li,
.req-list li {
  margin-bottom: 8px;
  max-width: 68ch;
}

.section-note {
  max-width: none;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.proto-carousel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  margin: 18px 0 12px;
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.proto-carousel.mandi-screen-carousel {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.mandi-screen-carousel .proto-carousel-copy { order: 2; }
.mandi-screen-carousel .proto-carousel-media { order: 1; }

.proto-carousel-copy {
  min-width: 0;
  transition: opacity 0.35s ease;
}

.proto-carousel-copy.is-fading {
  opacity: 0;
}

.proto-carousel-index {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.proto-carousel-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.proto-carousel-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch;
}

.proto-carousel-media {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.proto-viewport {
  overflow: hidden;
  min-width: 0;
  border-radius: 14px;
}

.proto-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.proto-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.proto-nav:hover,
.proto-nav:focus-visible {
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.28);
  background: var(--accent-soft);
  outline: none;
}

.proto-nav:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.proto-slide {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.proto-slide:hover,
.proto-slide:focus-visible {
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
  outline: none;
}

.proto-slide.is-active {
  opacity: 0;
  pointer-events: none;
}

.proto-frame {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 60%, #e2e8f0 100%);
}

.proto-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.proto-slide-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .proto-track {
    transition: none;
  }

  .proto-carousel-copy {
    transition: none;
  }
}

.launch-steps .step {
  align-items: start;
  flex-basis: calc(33.333% - 12px);
  min-width: min(100%, 240px);
  max-width: calc(33.333% - 8px);
  padding-right: 72px;
}

.launch-steps .step .meta {
  display: block;
  margin-top: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.xyz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}

.xyz-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.xyz-card {
  padding: 18px 18px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.xyz-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.xyz-row:first-child { border-top: none; padding-top: 0; }

.xyz-k {
  display: block;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.xyz-row p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: none;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 12px;
}

.stat-row-secondary {
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
}

.stat-item {
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-num {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.stat-window {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.expand-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 22px;
}

.expand-step {
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
/* 
.attendance-comparison {
  margin: 24px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.attendance-path { padding: 18px 0; }
.attendance-path + .attendance-path { border-top: 1px solid var(--line); }
.attendance-path-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.attendance-path-header h3 { margin: 0; font-size: 1rem; }
.attendance-mode {
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: right;
  text-transform: uppercase;
}
.attendance-path--automated .attendance-mode { color: var(--accent); }
.attendance-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.attendance-steps--automated { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.attendance-steps li {
  min-width: 0;
  padding: 12px 10px 13px;
  border-right: 1px solid var(--line);
}
.attendance-steps li:last-child { border-right: 0; }
.attendance-step-number {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.attendance-step-text {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 800px) {
  .attendance-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .attendance-path-header { align-items: flex-start; }
  .attendance-steps,
  .attendance-steps--automated { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-steps li:nth-child(3n) { border-right: 1px solid var(--line); }
  .attendance-steps li:nth-child(2n) { border-right: 0; }
} */

/* ============================================================
   MeetRoll before/after workflow
   1) DELETE the old .attendance-* rules from style.css
      (from ".attendance-comparison" through the last
       ".attendance-steps li" mobile rule).
   2) Paste this block at the END of style.css.
   ============================================================ */

.ba {
  --meetroll-after: #77DD77;
  --meetroll-after-soft: rgba(119, 221, 119, 0.14);
  --meetroll-after-glow: rgba(119, 221, 119, 0.22);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  margin: 16px 0 12px;
  align-items: stretch;
}

.ba-col {
  padding: 20px 20px 22px;
  background: var(--bg-elevated);
  border: 1.5px dashed rgba(15, 23, 42, 0.18);
  border-radius: var(--radius-lg);
}

.ba-after {
  border: 1px solid rgba(119, 221, 119, 0.36);
  background: linear-gradient(160deg, #ffffff 0%, var(--meetroll-after-soft) 100%);
  box-shadow: 0 10px 30px var(--meetroll-after-glow);
}

.ba-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.ba-tag {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba-after .ba-tag { background: var(--meetroll-after); color: #fff; }

.ba-count { color: var(--ink-faint); font-size: 0.8rem; font-weight: 600; }
.ba-count b { margin-right: 3px; color: var(--ink); font-size: 1.5rem; letter-spacing: -0.02em; }

.ba-steps { margin: 0; padding: 0; list-style: none; }

.ba-steps li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 24px;
  padding: 0 0 16px 36px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.ba-steps li:last-child { padding-bottom: 0; }

.ba-steps li::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 4px;
  left: 11px;
  width: 2px;
  background: var(--line);
}

.ba-steps li:last-child::before { display: none; }

.ba-n {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.ba-steps li.is-pain .ba-n {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber-ink);
}

.ba-pain {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ba-after .ba-steps li::before { background: rgba(119, 221, 119, 0.28); }
.ba-after .ba-n { border-color: var(--meetroll-after); background: var(--meetroll-after); color: #fff; }
.ba-after .ba-steps li.is-key { color: var(--meetroll-after); }

.ba-ok {
  border: 1px solid rgba(119, 221, 119, 0.25);
  background: #fff;
  color: var(--meetroll-after);
}

/* arrow badge sitting on the seam between the two cards */
.ba-arrow {
  position: absolute;
  top: 50%;
  left: calc((100% - 22px) * 0.5349 + 11px - 19px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--meetroll-after);
  color: #fff;
  font-size: 0.8rem;
  box-shadow: 0 6px 16px var(--meetroll-after-glow);
}

/* the delta strip: what the change removes */
.ba-delta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.ba-delta > div { padding: 18px 20px 20px; }
.ba-delta > div + div { border-left: 1px solid rgba(255, 255, 255, 0.12); }

.ba-delta-k {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba-delta-v {
  display: block;
  color: #fff;
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ba-delta-v i { margin: 0 8px; color: #a5b4fc; font-style: normal; }

@media (max-width: 800px) {
  .ba { grid-template-columns: 1fr; gap: 16px; }
  .ba-arrow { display: none; }
  .ba-delta { grid-template-columns: 1fr; }
  .ba-delta > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}
.expand-k {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.expand-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: none;
}

.expand-why {
  margin-top: 12px;
  padding: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--radius-md);
}

.expand-why-title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.expand-step .expand-why p {
  font-size: 0.82rem;
}

.meetroll-shot {
  margin: 18px 0;
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.meetroll-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.meetroll-shot figcaption {
  padding: 12px 16px;
  font-size: 0.84rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

.resource-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.resource-button:hover,
.resource-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.22);
  box-shadow: var(--shadow-md);
  outline: none;
}

.resource-button:hover .resource-action {
  background: var(--accent);
  color: #fff;
}

.card-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
}

.card-tools img {
  height: 22px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
  opacity: 0.85;
}

.case-card:hover .card-tools img { opacity: 1; }

.proto-slide.is-active,
.resource-button.is-active {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .proto-carousel {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@container cs (max-width: 719px) {
  .proto-carousel {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@container cs (min-width: 720px) {
  .proto-carousel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
  }
}

@media (max-width: 800px) {
  .persona { grid-template-columns: 1fr; justify-items: start; }
  .xyz-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .expand-flow,
  .stat-row,
  .stat-row-secondary { grid-template-columns: 1fr; }

  .launch-steps .step {
    padding: 16px 72px 16px 16px;
  }

  .launch-step-logo {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
  }

  .proto-carousel {
    padding: 14px;
  }

  .proto-carousel-media {
    gap: 6px;
  }

  .proto-nav {
    width: 40px;
    height: 40px;
  }

  .cs-tool-chip-logo img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 680px) {
  .pipeline .step,
  .launch-steps .step {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}
/* ============================================================
   Case 02 restructure additions: append to the end of style.css
   ============================================================ */
:root {
  --amber: #f59e0b;
  --amber-soft: #fff7e6;
  --amber-ink: #b45309;
  --ok: #16a34a;
}

/* TL;DR strip */
.tldr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.tldr > div {
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.tldr .k {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tldr p { margin: 0; max-width: none; font-size: 0.93rem; line-height: 1.5; color: var(--ink); }

/* Research snapshot */
.snapshot {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  margin: 20px 0;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.snapshot-rail {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px;
  background: var(--ink);
  color: #fff;
}
.snapshot-rail-top { display: grid; gap: 18px; }
.snapshot-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #c7d2fe;
  font-size: 1.05rem;
}
.snapshot-kicker {
  color: #c7d2fe;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.snapshot-rail h3 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.2;
}
.snapshot-rail > p {
  margin: 0;
  max-width: none;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.55;
}
.snapshot-rail-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.snapshot-item {
  min-width: 0;
  padding: 19px 20px;
}
.snapshot-item:nth-child(odd) { border-right: 1px solid var(--line); }
.snapshot-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
.snapshot-item-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.snapshot-icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
}
.snapshot-index {
  color: var(--accent);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.snapshot-item h4 {
  margin: 0 0 6px;
  font-size: 0.94rem;
  line-height: 1.35;
}
.snapshot-item p {
  margin: 0;
  max-width: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* Hypothesis: spec-card style */
.hypo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
  background: var(--bg-elevated);
  border: 1.5px dashed rgba(79, 70, 229, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hypo-cell { padding: 18px 18px 20px; }
.hypo-cell + .hypo-cell { border-left: 1.5px dashed rgba(79, 70, 229, 0.25); }
.hypo-kw {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.8rem;
  font-weight: 700;
}
.hypo-k {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hypo-cell strong { display: block; font-size: 0.95rem; line-height: 1.4; font-weight: 600; color: var(--ink); }
.hypo-cell.is-result { background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%); }
.hypo-cell.is-result .hypo-kw { background: rgba(255, 255, 255, 0.12); color: #c7d2fe; }
.hypo-cell.is-result .hypo-k { color: #94a3b8; }
.hypo-cell.is-result strong { color: #fff; }
@media (max-width: 800px) {
  .hypo { grid-template-columns: 1fr; }
  .hypo-cell + .hypo-cell { border-left: none; border-top: 1.5px dashed rgba(79, 70, 229, 0.25); }
}

/* 3 decisions */
.decision-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.decision-trio > div {
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.decision-trio .n { font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.decision-trio strong { display: block; margin: 4px 0; font-size: 0.95rem; }
.decision-trio span.t { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.45; }

/* Outcome hero */
.outcome {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 20px 0;
  padding: 24px 26px;
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.outcome .num { font-size: clamp(1.7rem, 4.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
.outcome .arrow { color: #a5b4fc; margin: 0 8px; }
.outcome .lbl { flex: 0 0 100%; min-width: 0; font-size: 0.9rem; opacity: 0.85; max-width: none; line-height: 1.5; }
.outcome .lbl strong { color: #fff; }

/* Progress tracker */
.tracker {
  --node: 34px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 22px 0 26px;
  padding: 22px 8px 18px;
  list-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.tracker li { position: relative; text-align: center; padding: 0 6px; }
.tracker li::before {
  content: '';
  position: absolute;
  top: calc(var(--node) / 2 - 1px);
  left: -50%;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.tracker li:first-child::before { display: none; }
.tracker li.done::before,
.tracker li.current::before { background: var(--ok); }
.tracker .node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.tracker li.done .node { background: var(--ok); border-color: var(--ok); color: #fff; }
.tracker li.current .node {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
  animation: trackerPulse 2s ease-out infinite;
}
.tracker .name { display: block; margin-top: 10px; font-size: 0.82rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.tracker .sub { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--ink-faint); line-height: 1.35; }
.tracker li.current .name { color: var(--amber-ink); }
.tracker li.current .sub {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-weight: 700;
}
@keyframes trackerPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Why publish */
.why-list { margin: 0 0 1.25rem; padding-left: 1.2rem; color: var(--ink-soft); }
.why-list li { margin-bottom: 8px; max-width: 68ch; }

@media (max-width: 800px) {
  .tldr, .decision-trio { grid-template-columns: 1fr; }
  .snapshot { grid-template-columns: 1fr; }
  .snapshot-rail { min-height: 0; }
  .snapshot-rail-foot { margin-top: 18px; }
  .tracker { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .tracker li { display: grid; grid-template-columns: var(--node) 1fr; column-gap: 14px; text-align: left; padding: 0; }
  .tracker li::before { top: calc(-16px - 2px); left: calc(var(--node) / 2 - 1px); width: 3px; height: 18px; }
  .tracker .node { grid-row: span 2; }
  .tracker .name { margin-top: 0; }
  .tracker li.current .sub { justify-self: start; }
}

@media (max-width: 600px) {
  .snapshot-grid { grid-template-columns: 1fr; }
  .snapshot-item,
  .snapshot-item:nth-child(odd) {
    padding: 16px 18px;
    border-right: 0;
  }
  .snapshot-item + .snapshot-item { border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .tracker li.current .node { animation: none; }
}

/* Section header with logo on the right */
.cs-section .cs-section-head h2 { margin: 0; }

/* ============================================================
   CASE 02: consolidated additions
   Paste at the END of assets/css/style.css (replaces the inline
   <style> block that used to sit in case-02.html).
   Every value uses the site tokens (--line, --radius-*, --accent...)
   so it matches the other cards exactly.

   THEN DELETE these dead rules from style.css (no longer in HTML):
    .hypo, .hypo-*            (replaced by .hyp-statement below)
     .decision-trio*           .xyz-grid, .xyz-card, .xyz-row, .xyz-k
     .impact-tiers, .tier*     .shot-grid, .shot*
     .arch-full*, .step-cue    .pipeline .step[data-diagram] rules
     .launch-step-logo*        (renamed .step-logo below)
     .cs-tool-chip-logo*       .req-list, .resource-button, .card-tools
     "Legacy compat" block     .snapshot-grid .wide (unused)
   ============================================================ */

/* ---------- Tool logos on step cards (one class, two sizes) ---------- */
.step-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: block;
  width: 44px;
  height: 44px;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

.step-logo img { width: 100%; height: 100%; object-fit: contain; }

a.step-logo:hover,
a.step-logo:focus-visible { transform: scale(1.06); opacity: 0.88; outline: none; }

.step-logo-sm { top: 10px; right: 10px; width: 30px; height: 30px; }

/* ---------- TOC + section header ---------- */
.cs-toc a { font-size: 0.88rem; line-height: 1.3; }
.cs-section .cs-section-head h2 { margin: 0; }

/* ---------- Mobile: solution pipeline logos ---------- */
@media (max-width: 560px) {
  .step-logo { width: 40px; height: 40px; top: 10px; right: 10px; }
  .step-logo-sm { width: 28px; height: 28px; }
}

/* ---------- Hypothesis: clear statement and validation signals ---------- */
.hyp-statement {
  margin: 14px 0 20px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.hyp-statement-head {
  display: flex;
  padding: 17px 22px 0;
}
.hyp-statement-label {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hyp-statement p {
  margin: 0;
  padding: 12px 22px 22px;
  max-width: none;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.hyp-statement strong {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hyp-signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: hyp-signal;
}
.hyp-signal-list > div {
  position: relative;
  min-width: 0;
  padding: 15px 16px 17px 46px;
  border-right: 1px solid var(--line);
  counter-increment: hyp-signal;
}
.hyp-signal-list > div::before {
  content: counter(hyp-signal, decimal-leading-zero);
  position: absolute;
  top: 15px;
  left: 16px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hyp-signal-list > div:last-child {
  padding-right: 16px;
  border-right: 0;
}
.hyp-signal-list dt {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hyp-signal-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 600px) {
  .hyp-statement-head { padding: 16px 18px 0; }
  .hyp-statement p { padding: 12px 18px 19px; font-size: 1rem; }
  .hyp-signal-list { grid-template-columns: 1fr; }
  .hyp-signal-list > div,
  .hyp-signal-list > div:last-child {
    display: grid;
    grid-template-columns: minmax(92px, 0.65fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 16px 12px 46px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hyp-signal-list > div:last-child { border-bottom: 0; }
  .hyp-signal-list > div::before { top: 12px; left: 16px; }
  .hyp-signal-list dt { margin: 0; }
}

/* ---------- 5-step solution row: no logos ---------- */
.pipeline.pipeline-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.pipeline.pipeline-5 .step {
  flex: none;
  max-width: none;
  min-width: 0;
  padding: 14px 14px 13px;
}
.pipeline.pipeline-5 .step-expand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}
.pipeline.pipeline-5 .step-expand:hover,
.pipeline.pipeline-5 .step-expand:focus-visible {
  transform: translateY(-1px);
  color: var(--ink);
  outline: none;
}
.pipeline.pipeline-5 .step-expand:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 900px) { .pipeline.pipeline-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pipeline.pipeline-5 { grid-template-columns: 1fr; } }

/* ---------- Results: 6 stats ---------- */
.stat-row > :last-child:nth-child(odd) { grid-column: auto; }
@media (min-width: 1000px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Next: three reflection cards ---------- */
.reflection-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Callout sitting between stats and notes */
.stat-row + .callout { margin-top: 18px; }