/* ── Hybrid case study styles , shared across Playbooks / Orchestration / Rovo Ops ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light theme (white) */
  --bg:        #FFFFFF;
  --bg-grid:   #EFE9DF;
  --ink:       #141414;
  --ink-mid:   #4B4640;
  --ink-faint: #8A847B;
  --rule:      #E6DECC;
  --paper:     #FBF6EC;
  --paper-2:   #F4ECDE;

  --accent:        #6E3FCC;
  --accent-soft:   rgba(110,63,204,0.14);

  --peach:        #FFB991;
  --peach-deep:   #F09D6E;
  --sage:         #B8C7A5;
  --sage-deep:    #95A881;
  --lavender:     #C9BEDC;
  --lavender-deep:#A799BD;
  --butter:       #F5D783;
  --butter-deep:  #E3BF55;

  --glow-1: #FFB991;
  --glow-2: #F5D783;
  --glow-3: #B8C7A5;

  --display: 'DM Sans', system-ui, sans-serif;
  --serif:   'DM Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:        #0B0810;
  --bg-grid:   #15101D;
  --ink:       #F2ECDF;
  --ink-mid:   #B8B0A2;
  --ink-faint: #5C544A;
  --rule:      #2A2230;
  --paper:     #15101D;
  --paper-2:   #1B1525;
  --accent:        #B080F0;
  --accent-soft:   rgba(176,128,240,0.18);
      --glow-1: #A044C2;
      --glow-2: #B080F0;
      --glow-3: #4A5DD6;
}

::selection { background: var(--ink); color: var(--bg); }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  transition: background 0.35s ease, color 0.35s ease;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at center, var(--bg-grid) 0.8px, transparent 0.9px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
a { color: inherit; text-decoration: none; }

/* ── Progress bar ── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ── Fixed bottom glow ── */
.bottom-glow {
  position: fixed;
  bottom: -40px;
  left: -10%;
  right: -10%;
  height: 260px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 52% 95% at 14% 100%, color-mix(in oklch, var(--glow-1) 70%, transparent) 0%, transparent 62%),
    radial-gradient(ellipse 58% 100% at 50% 100%, color-mix(in oklch, var(--glow-2) 55%, transparent) 0%, transparent 68%),
    radial-gradient(ellipse 60% 95% at 86% 100%, color-mix(in oklch, var(--glow-3) 60%, transparent) 0%, transparent 65%);
  filter: blur(48px);
  opacity: 0.5;
}
[data-theme="dark"] .bottom-glow { opacity: 0.4; }
.bottom-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 18%);
}
.glow-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at center, var(--bg-grid) 0.8px, transparent 0.9px);
  background-size: 18px 18px;
  opacity: 0.3;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .glow-veil { mix-blend-mode: screen; opacity: 0.4; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }
.narrow    { max-width: 760px; margin: 0 auto; }

/* ── Nav (Option 1 style with theme toggle) ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s, border-color 0.35s;
}
.nav-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 55%, transparent);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: width 0.25s ease, opacity 0.2s ease;
}
html.is-navigating .nav-progress {
  opacity: 1;
  width: 90%;
  transition: width 0.55s cubic-bezier(0.1, 0.7, 0.2, 0.96), opacity 0.1s ease;
}
.nav-progress.land {
  opacity: 1;
  width: 100%;
  transition: width 0.25s ease;
}
.nav-progress.land.fade {
  opacity: 0;
  transition: opacity 0.32s ease;
}

/* Cross-document crossfade where supported. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.15s;
}
.nav-back:hover { color: var(--accent); }
.nav-back .arrow { transition: transform 0.2s; }
.nav-back:hover .arrow { transform: translateX(-3px); }
.nav-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
  padding: 9px 16px;
  border-radius: 100px;
  transition: transform 0.15s, opacity 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.9; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--rule);
  padding: 6px 10px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-mid);
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
  border-radius: 100px;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--ink); }
.theme-toggle .led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ── HERO ── */
.cs-hero {
  padding: 80px 0 24px;
  position: relative;
  z-index: 1;
}
.cs-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 8px 16px 8px 12px;
  background: var(--paper);
  border-radius: 100px;
  margin-bottom: 40px;
  border: 1px solid var(--rule);
}
.cs-breadcrumb::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.cs-hero-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 40;
  font-weight: 800;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 1100px;
  margin-bottom: 32px;
  color: var(--ink);
}
.cs-hero-title .ser, .cs-section-title .ser, .decision-head .ser, .stat-card .ser, .next-title .ser, .pq-text .ser {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
}
.cs-hero-sub {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 680px;
  letter-spacing: -0.005em;
  margin-bottom: 64px;
}
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.meta-value {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* ── Image blocks (color-block hero & inline) ── */
.image-block {
  padding: 56px 0 64px;
  position: relative;
  z-index: 1;
}
.image-block.spacing-lg { padding: 80px 0 96px; }
.hero-image,
.image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 56px 80px 0;
  background: var(--peach);
  aspect-ratio: 16 / 9;
}
.image-card.peach    { background: var(--peach); }
.image-card.sage     { background: var(--sage); }
.image-card.lavender { background: var(--lavender); }
.image-card.butter   { background: var(--butter); }
.hero-image-tag, .image-card .tag {
  position: absolute;
  top: 28px; left: 32px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #141414;
  opacity: 0.6;
  z-index: 2;
}
.hero-screen, .img-screen {
  width: 100%;
  height: 100%;
  background: #FBF6EC;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(20,20,20,0.16);
  border-bottom: none;
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.32);
}
.img-screen.flex-center { display: flex; align-items: center; justify-content: center; padding: 40px; background: #FBF6EC; }

/* Product chrome */
.ui-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(20,20,20,0.10);
  background: #F4ECDE;
}
.ui-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(20,20,20,0.14); }
.ui-title {
  margin-left: 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: #4B4640;
  letter-spacing: -0.005em;
}
.ui-tabs { margin-left: auto; display: flex; gap: 8px; }
.ui-tab {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  color: #8A847B;
  padding: 4px 10px;
  border-radius: 100px;
}
.ui-tab.active { background: #141414; color: #FBF6EC; }

.hero-app {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  min-height: 460px;
  background: #FBF6EC;
}
.app-side {
  border-right: 1px solid rgba(20,20,20,0.10);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #F4ECDE;
}
.app-side .head {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A847B;
  margin: 12px 8px 8px;
}
.app-side .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  color: #4B4640;
  letter-spacing: -0.005em;
}
.app-side .nav-item.active { background: #141414; color: #FBF6EC; }
.app-side .nav-item .glyph { width: 14px; height: 14px; border-radius: 4px; background: #EBE0CC; }
.app-side .nav-item.active .glyph { background: var(--accent); }

.app-main {
  padding: 24px 28px;
  background: #FBF6EC;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.app-main .header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.app-main .header h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #141414;
}
.app-main .header .status {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-main .header .status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.pb-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #FBF6EC;
  border: 1px solid #DDD3BE;
  border-radius: 12px;
}
.pb-step.done { opacity: 0.5; }
.pb-step.now {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 12px 32px -12px rgba(110,63,204,0.45);
}
.pb-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #EBE0CC;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: #141414;
}
.pb-step.done .pb-num { background: var(--sage); }
.pb-step.now .pb-num  { background: var(--accent); color: #FBF6EC; }
.pb-label {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: #141414;
  letter-spacing: -0.005em;
}
.pb-step.done .pb-label { text-decoration: line-through; }
.pb-meta {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A847B;
}
.pb-step.now .pb-meta { color: var(--accent); }

.app-rail {
  border-left: 1px solid rgba(20,20,20,0.10);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FBF6EC;
}
.rail-card {
  background: var(--lavender);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rail-card.lav    { background: var(--lavender); }
.rail-card.butter { background: var(--butter); }
.rail-card.peach  { background: var(--peach); }
.rail-card.sage   { background: var(--sage); }
.rail-card .h {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #141414;
  opacity: 0.65;
}
.rail-card .b {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
  color: #141414;
}
.rail-card .b.sm { font-size: 12px; opacity: 0.7; font-weight: 500; }
.rail-card .n {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 4px 0 0;
  color: #141414;
}

/* ── 3-card flow ── */
.three-card-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: 780px;
}
.flow-card {
  background: #FBF6EC;
  border: 1px solid #DDD3BE;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-card.dashed { border-style: dashed; border-color: #8A847B; }
.flow-card.faded { opacity: 0.55; }
.flow-card .cap {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A847B;
}
.flow-card .lg {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #141414;
}
.flow-card .sm {
  font-family: var(--display);
  font-size: 13px;
  color: #4B4640;
}
.flow-arrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: #8A847B;
}

/* ── Body sections ── */
.section-wrap {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.section-eyebrow {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
}
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-faint);
  margin-right: 8px;
}
.cs-section-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 40;
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 880px;
  margin-bottom: 32px;
  color: var(--ink);
}
.body-text {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-mid);
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.body-text strong { color: var(--ink); font-weight: 600; }

/* ── Pull quote ── */
.pull-quote {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.pq-text {
  font-family: var(--display);
  font-variation-settings: "opsz" 40;
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 1100px;
  margin: 0 auto 32px;
}
.pq-text .hl {
  background: var(--butter);
  color: #141414;
  padding: 0 8px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.pq-attr {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  max-width: 1100px;
  margin: 0 auto;
}
.pq-attr::before { content: ''; }

/* ── Findings ── */
.findings {
  padding: 24px 0 80px;
  position: relative;
  z-index: 1;
}
.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.finding {
  background: var(--paper);
  border-radius: 24px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  color: #141414;
}
.finding.peach  { background: var(--peach); }
.finding.sage   { background: var(--sage); }
.finding.butter { background: var(--butter); }
.finding.lavender { background: var(--lavender); }
.finding .num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #141414;
  opacity: 0.55;
}
.finding .stat {
  font-family: var(--display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #141414;
}
.finding .stat .ser {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}
.finding .head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #141414;
}
.finding .body {
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.5;
  color: #4B4640;
  letter-spacing: -0.005em;
  margin-top: auto;
}

/* ── Two-up ── */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.two-up .image-card {
  aspect-ratio: 4 / 3;
  padding: 40px 40px 0;
}
.two-up .image-card .tag { top: 24px; left: 28px; }

.author-canvas {
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  height: calc(100% - 50px);
  background: #FBF6EC;
}
.author-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tool-pill {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 100px;
  background: #FBF6EC;
  border: 1px solid #DDD3BE;
  color: #141414;
}
.tool-pill.active { background: #141414; color: #FBF6EC; border-color: #141414; }
.canvas-area {
  position: relative;
  background: #F4ECDE;
  border-radius: 12px;
  border: 1px solid #DDD3BE;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: radial-gradient(circle, #EBE0CC 1.2px, transparent 1.3px);
  background-size: 18px 18px;
}
.canvas-node {
  align-self: flex-start;
  background: #FBF6EC;
  border: 1.5px solid #141414;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  color: #141414;
  box-shadow: 0 4px 0 #141414;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.canvas-node .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.canvas-node.sage .swatch   { background: var(--sage-deep); }
.canvas-node.lav .swatch    { background: var(--lavender-deep); }
.canvas-node.butter .swatch { background: var(--butter-deep); }
.canvas-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-left: 32px;
}

.exec-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FBF6EC;
  height: calc(100% - 50px);
}
.exec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.exec-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #141414;
}
.exec-now {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.exec-body {
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.5;
  color: #4B4640;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.exec-body code {
  background: #EBE0CC;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.code-block {
  background: #FBF6EC;
  border: 1px solid #DDD3BE;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #4B4640;
}
.btn-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-dark {
  background: #141414;
  color: #FBF6EC;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.btn-light {
  background: #FBF6EC;
  color: #141414;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #DDD3BE;
  cursor: pointer;
}

/* ── Decisions ── */
.decisions { padding: 24px 0 80px; position: relative; z-index: 1; }
.decision {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr 360px;
  gap: 48px;
  align-items: start;
}
.decision-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
}
.decision-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.decision-body {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mid);
  letter-spacing: -0.005em;
}

/* ── Outcome stats ── */
.outcome-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.stat-card {
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #141414;
}
.stat-card.peach  { background: var(--peach); }
.stat-card.sage   { background: var(--sage); }
.stat-card.lav    { background: var(--lavender); }
.stat-card.butter { background: var(--butter); }
.stat-card .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #141414;
}
.stat-card .n .ser {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
}
.stat-card .l {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  color: #4B4640;
  margin-top: 4px;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

/* ── NEXT PROJECT (subtle) ── */
.next-project {
  background: transparent;
  color: var(--ink);
  margin-top: 24px;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.next-grid { display: none; }
.next-project::after { content: none; }
.next-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}
.next-label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
  display: block;
}
.next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 0;
  transition: padding-left 0.2s ease;
}
.next-link:hover { padding-left: 6px; }
.next-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 40;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 1000px;
  transition: color 0.2s;
}
.next-title .ser {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.015em;
}
.next-link:hover .next-title { color: var(--accent); }
.next-arrow {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-faint);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.next-link:hover .next-arrow {
  transform: translateX(6px);
  color: var(--accent);
}
.next-meta {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: -0.005em;
}

/* ── Footer ── */
.site-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  font-family: var(--display);
  position: relative;
  z-index: 2;
}
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.footer-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.footer-sub::before { content: '› '; color: var(--accent); }
.footer-sub + .footer-sub::before { content: '© '; color: var(--ink-faint); }
.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
}
.footer-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

/* Contact-style footer (used site-wide) */
.contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-direction: row;
}
.contact-footer-name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-transform: none;
}
.contact-footer-role,
.contact-footer-meta {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink-faint);
}
.contact-footer-role { text-align: center; flex: 1; }
.contact-footer-meta { text-align: right; }
@media (max-width: 720px) {
  .contact-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact-footer-role,
  .contact-footer-meta { text-align: left; flex: 0; }
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1), transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Touch-friendly nav links site-wide (inline-block expands the tap area
   without changing visible layout). */
.nav-links a { display: inline-block; padding: 6px 0; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .site-nav { padding: 16px 24px; }
  .container { padding: 0 24px; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-image, .image-card { padding: 36px 32px 0; aspect-ratio: 4 / 3; }
  .hero-app { grid-template-columns: minmax(0, 1fr); }
  .app-side, .app-rail { display: none; }
  .findings-grid { grid-template-columns: minmax(0, 1fr); }
  .two-up { grid-template-columns: minmax(0, 1fr); }
  .decision { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .outcome-stats { grid-template-columns: repeat(2, 1fr); }
  .next-project { padding: 40px 0 48px; }
  .next-inner { padding: 0 24px; }
  .three-card-flow { grid-template-columns: 1fr; gap: 12px; }
  .three-card-flow .flow-arrow { display: none; }
  .site-footer { padding: 32px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav-title { display: none; }
}

/* ── True mobile (≤640px) ──────────────────────────────────────────────
   Case study pages and About/Contact share this stylesheet. Tighten the
   container, dial big display type back to phone-appropriate sizes, and
   relax fixed paddings that were tuned for desktop. */
@media (max-width: 640px) {
  .site-nav { padding: 12px 20px; }
  .nav-right { gap: 12px; }
  .nav-links { gap: 14px !important; }
  .nav-links a { font-size: 12px; }
  .theme-toggle { padding: 6px 9px; font-size: 10px; letter-spacing: 0.08em; }
  .nav-back { font-size: 12px; gap: 6px; }
  .nav-cta { display: none; }

  .container { padding: 0 20px; }

  /* Case-study hero */
  .cs-hero { padding: 48px 0 16px; }
  .cs-breadcrumb { font-size: 10px; padding: 6px 12px 6px 10px; margin-bottom: 24px; }
  .cs-hero-title { font-size: clamp(36px, 11vw, 56px); margin-bottom: 22px; letter-spacing: -0.035em; }
  .cs-hero-sub { font-size: 16px; line-height: 1.5; margin-bottom: 40px; }
  .cs-meta { grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 0; }
  .meta-value { font-size: 14px; }
  .meta-label { font-size: 11px; letter-spacing: 0.1em; }

  /* Body & section type */
  .section-wrap { padding: 56px 0; }
  .cs-section-title { font-size: clamp(28px, 8.5vw, 40px); margin-bottom: 22px; }
  .body-text { font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
  .section-eyebrow { font-size: 11px; letter-spacing: 0.14em; margin-bottom: 12px; }

  /* Image / app cards */
  .image-block { padding: 32px 0 36px; }
  .image-block.spacing-lg { padding: 40px 0 48px; }
  .hero-image, .image-card { padding: 24px 18px 0; border-radius: 20px; aspect-ratio: auto; min-height: 320px; }
  .hero-image-tag, .image-card .tag { top: 18px; left: 20px; font-size: 10px; letter-spacing: 0.08em; }
  .app-main { padding: 18px 16px; gap: 10px; }
  .app-main .header h4 { font-size: 17px; }
  .app-main .header .status { font-size: 10px; }
  .pb-step { padding: 10px 12px; grid-template-columns: 22px 1fr auto; gap: 10px; }
  .pb-num { width: 22px; height: 22px; font-size: 11px; }
  .pb-label { font-size: 12px; }
  .pb-meta { font-size: 10px; }
  .ui-bar { padding: 10px 14px; }
  .ui-dot { width: 8px; height: 8px; }
  .ui-title { font-size: 11px; }
  .ui-tab { font-size: 10px; padding: 3px 8px; }

  /* Pull quotes */
  .pull-quote { padding: 56px 0; }
  .pq-text { font-size: clamp(24px, 7vw, 32px); margin-bottom: 22px; line-height: 1.15; }
  .pq-attr { font-size: 11px; letter-spacing: 0.1em; }

  /* Findings + stats */
  .findings { padding: 16px 0 56px; }
  .finding { padding: 24px 22px; min-height: 0; border-radius: 20px; }
  .finding .stat { font-size: 48px; }
  .finding .head { font-size: 17px; }
  .finding .body { font-size: 13px; }
  .outcome-stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
  .stat-card { padding: 22px 18px; border-radius: 18px; }
  .stat-card .n { font-size: 36px; }
  .stat-card .l { font-size: 12px; }

  /* Decisions */
  .decisions { padding: 16px 0 56px; }
  .decision { padding: 28px 0; gap: 14px; }
  .decision-mark { font-size: 40px; }
  .decision-head { font-size: 22px; line-height: 1.18; }
  .decision-body { font-size: 14px; }

  /* Next-project block */
  .next-project { padding: 32px 0 40px; }
  .next-inner { padding: 0 20px; }
  .next-title { font-size: 24px; line-height: 1.15; }
  .next-arrow { font-size: 18px; }
  .next-link { gap: 16px; padding: 8px 0; }

  /* Footer */
  .site-footer { padding: 24px 20px; gap: 14px; }
  .footer-name { font-size: 12px; }
  .footer-sub { font-size: 10px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  .footer-links a { font-size: 10px; letter-spacing: 0.1em; }
  .contact-footer { padding: 24px 20px; }
  .contact-footer-name { font-size: 12px; }
  .contact-footer-role, .contact-footer-meta { font-size: 10px; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .next-inner { padding: 0 16px; }
  .site-footer, .contact-footer { padding: 24px 16px; }
  .cs-meta { grid-template-columns: 1fr; }
  .outcome-stats { grid-template-columns: 1fr; }
  .findings-grid { gap: 12px; }
  .nav-links a::before { display: none; }
}

/* ── Page transitions ── */
@view-transition { navigation: auto; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } }
::view-transition-old(root) { animation: vt-fade-out 0.12s ease both; }
::view-transition-new(root) { animation: vt-fade-in 0.18s ease both; }
@keyframes page-enter { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-enter 0.18s cubic-bezier(0.22,1,0.36,1) both; }
@supports (view-transition-name: none) { body { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}
