/* Layout: one calm reading column (~680px) with full-bleed figures; case meta set like a case-management header bar */
:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --fg: #141821;
  --muted: #5a6273;
  --rule: #e2e5eb;
  --accent: #015FFC;
  --accent-soft: #e6efff;
  --warn: #b3392d;
  --band: #0f2747;
  --band-fg: #e9eef7;
  --band-muted: #9fb0c9;
  --outline: #cfd4dd;
  --on-accent: #ffffff;
  --accent-hover: #014ED0;
  --display: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "Sansation", "Figtree", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1015; --surface: #161922; --fg: #e8eaf0; --muted: #9aa1af; --rule: #272c37;
    --accent: #6FA3FF; --accent-soft: #0f2350; --warn: #f0806f; --band: #121d33; --band-fg: #e9eef7; --band-muted: #93a3bd; --outline: #3a4150; --on-accent: #0e1015; --accent-hover: #9cc0ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1015; --surface: #161922; --fg: #e8eaf0; --muted: #9aa1af; --rule: #272c37;
  --accent: #6FA3FF; --accent-soft: #0f2350; --warn: #f0806f; --band: #121d33; --band-fg: #e9eef7; --band-muted: #93a3bd; --outline: #3a4150; --on-accent: #0e1015; --accent-hover: #9cc0ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.65 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; }
.col { max-width: 680px; margin: 0 auto; }

/* Site header */
.site-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-block: 28px; }
.brand { font: 600 17px/1 var(--display); color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; font: 500 15px/1 var(--display); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.02em; color: var(--fg); }
.label { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Home */
.intro { padding-block: 72px 56px; }
.intro h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; font-weight: 600; margin: 0 0 24px; max-width: 16ch; }
.intro p { font-size: 19px; color: var(--muted); max-width: 54ch; margin: 0; }
.intro p strong { color: var(--fg); font-weight: 500; }

.work { border-top: 1px solid var(--rule); padding-block: 40px 24px; }
.work-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.work-item { border-bottom: 1px solid var(--rule); }
.work-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; padding-block: 28px; text-decoration: none; color: inherit; }
.work-link:hover h3 { color: var(--accent); }
.work-item h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; margin: 6px 0 8px; font-weight: 600; transition: color .15s; }
.work-item p { margin: 0; color: var(--muted); max-width: 58ch; }
.work-result { font: 600 15px/1.3 var(--display); color: var(--fg); text-align: right; align-self: center; white-space: nowrap; }
.work-result span { display: block; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.is-soon .work-link { cursor: default; }
.is-soon h3 { color: var(--muted); }
.pill { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }

.about { border-top: 1px solid var(--rule); padding-block: 48px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
.about p { margin: 0 0 16px; max-width: 60ch; }
.site-foot { border-top: 1px solid var(--rule); padding-block: 32px 48px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; font: 400 14px/1.5 var(--display); color: var(--muted); }
.site-foot a { color: var(--fg); }

/* Case study */
.case-hero { padding-block: 56px 32px; }
.case-hero h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.06; margin: 12px 0 20px; font-weight: 600; }
.case-hero .dek { font-size: 20px; color: var(--muted); margin: 0; max-width: 56ch; }

.casebar { background: var(--fg); color: var(--bg); border-radius: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; margin-block: 8px 48px; }
.casebar div { padding: 16px 18px; border-left: 1px solid rgba(128,128,128,.25); min-width: 0; }
.casebar div:first-child { border-left: 0; }
.casebar dt { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bg); opacity: .62; margin-bottom: 6px; }
.casebar dd { margin: 0; font: 500 15px/1.4 var(--display); }

.tldr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 8px 56px; border-bottom: 1px solid var(--rule); }
.tldr h2 { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.tldr p { margin: 0; font-size: 16px; }
.big { font: 600 clamp(30px, 4vw, 40px)/1.05 var(--display); letter-spacing: -0.02em; display: block; margin-bottom: 6px; color: var(--fg); font-variant-numeric: tabular-nums; }

.section { padding-block: 56px 8px; }
.section h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin: 8px 0 20px; font-weight: 600; }
.section p { margin: 0 0 20px; }
.section ul, .section ol { margin: 0 0 20px; padding-left: 1.2em; }
.section li { margin-bottom: 10px; padding-left: 4px; }
.section li strong, .section p strong { font-weight: 600; }

.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 28px 0; font: 500 21px/1.45 var(--display); letter-spacing: -0.01em; }

figure { margin: 40px 0; }
figure.wide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.shot { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(15, 25, 50, .04), 0 12px 32px -16px rgba(15, 25, 50, .18); }
figcaption { font: 400 14px/1.5 var(--display); color: var(--muted); margin-top: 14px; max-width: 680px; margin-left: auto; margin-right: auto; }
figcaption b { color: var(--fg); font-weight: 600; }

.diagram { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 24px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 560px; height: auto; }
.d-box { fill: none; stroke: var(--muted); stroke-width: 1.25; }
.d-box-main { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.d-tangle { fill: none; stroke: var(--warn); stroke-width: 1.25; opacity: .85; }
.d-arrow { stroke: var(--muted); stroke-width: 1.25; fill: none; }
.d-head { fill: var(--muted); }
.d-t { fill: var(--fg); font: 500 13px var(--display); }
.d-h { fill: var(--fg); font: 600 15px var(--display); }
.d-s { fill: var(--muted); font: 400 12px var(--display); }
.d-w { fill: var(--warn); font: 600 14px var(--display); }

.steps { display: grid; gap: 64px; margin-top: 32px; }
.step-num { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.next { border-top: 1px solid var(--rule); margin-top: 72px; padding-block: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--display); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .work-link { grid-template-columns: minmax(0, 1fr); }
  .work-result { text-align: left; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .casebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tldr { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Work cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; min-width: 0; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card:hover h3 { color: var(--accent); }
a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.card-media { aspect-ratio: 16 / 10; max-width: 100%; background: var(--accent-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-feature .card-media { aspect-ratio: auto; min-height: 100%; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card-feature .card-body { padding: 32px; justify-content: center; }
.card h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; margin: 0; font-weight: 600; transition: color .15s; }
.card-feature h3 { font-size: clamp(24px, 3vw, 32px); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card-stat { color: var(--fg) !important; font-family: var(--display); }
.card-stat strong { font-size: 20px; font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; }
.card-cta { font: 600 15px/1 var(--display); color: var(--on-accent); background: var(--accent); padding: 12px 20px; border-radius: 999px; margin-top: 8px; transition: background .15s; }
a.card:hover .card-cta { background: var(--accent-hover); }
.is-soon h3 { color: var(--fg); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 500 12px/1 var(--mono); letter-spacing: .02em; padding: 6px 11px; border-radius: 999px; background: transparent; border: 1px solid var(--outline); color: var(--muted); }

.media-dco { display: grid; place-items: center; }
.mini-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 16px; }
.mini-flow span { font: 500 13px/1 var(--display); padding: 10px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--rule); color: var(--fg); }
.mini-flow i { width: 18px; height: 1px; background: var(--muted); }
.media-cb { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px; }
.swatch-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.swatch-row b { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.swatch-row em { font: 400 12px/1.3 var(--mono); font-style: normal; color: var(--muted); margin-left: 6px; }

/* Additional work */
.more { border-top: 1px solid var(--rule); padding-block: 40px; margin-top: 32px; }
.more-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.more-list li { padding-block: 18px; border-bottom: 1px solid var(--rule); min-width: 0; }
.more-list h3 { font-size: 18px; margin: 6px 0 4px; font-weight: 600; }
.more-list p { margin: 0; color: var(--muted); font-size: 15px; }
.tags-inline { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 720px) {
  .cards, .more-list { grid-template-columns: minmax(0, 1fr); }
  .card-feature { grid-template-columns: minmax(0, 1fr); }
  .card-feature .card-media { aspect-ratio: 16 / 10; }
  .card-feature .card-body { padding: 24px; }
  .swatch-row b { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }

/* Case study: impact strip + snapshot */
.impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 8px 16px; }
.impact div { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 20px 24px; min-width: 0; }
.impact .big { color: var(--accent); }
.impact p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.snapshot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; padding-block: 8px 56px; border-bottom: 1px solid var(--rule); }
.snapshot h2 { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.snapshot p { margin: 0; font-size: 17px; line-height: 1.5; }
@media (max-width: 720px) {
  .impact { grid-template-columns: minmax(0, 1fr); }
  .snapshot { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Case study: one shared width for every block */
.wrap.case { max-width: 800px; }
.wrap.case .col, .wrap.case figure.wide, .wrap.case figcaption { max-width: none; margin-left: 0; margin-right: 0; }
.wrap.case .section p, .wrap.case .section ul, .wrap.case .section ol { max-width: 68ch; }
.wrap.case .case-hero .tags { margin-bottom: 4px; }
.wrap.case .next { margin-left: 0; margin-right: 0; }
@media (max-width: 720px) {
  .casebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .casebar div { border-left: 0; border-top: 1px solid rgba(128,128,128,.25); }
  .casebar div:nth-child(-n+2) { border-top: 0; }
  .casebar div:nth-child(even) { border-left: 1px solid rgba(128,128,128,.25); }
}

/* Wide artifacts that scroll sideways */
.scroller { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.scroller img { max-width: none; height: auto; display: block; }
figcaption a { color: var(--accent); white-space: nowrap; }

/* Image viewer */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(10, 12, 18, .92); color: #fff; }
.lightbox::backdrop { background: rgba(10, 12, 18, .92); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.lb-hint { font: 400 13px/1.3 var(--display); color: rgba(255,255,255,.7); }
.lb-actions { display: flex; gap: 8px; }
.lb-actions button { font: 600 14px/1 var(--display); color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.lb-actions button:hover { background: rgba(255,255,255,.22); }
.lb-actions button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-stage { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; border-radius: 6px; background: #fff; }
.lb-stage.is-zoomed { display: block; }
.lb-stage.is-zoomed img { max-width: none; max-height: calc(100vh - 100px); width: auto; height: calc(100vh - 100px); cursor: zoom-out; }

/* At a glance card */
.glance { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 32px; margin-block: 0 64px; }
.glance-title { font: 600 22px/1.2 var(--display); letter-spacing: -0.01em; margin: 0 0 24px; }
.glance .snapshot { border-bottom: 0; padding: 0; gap: 24px 40px; }
.glance .snapshot h3 { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.glance .impact { margin: 28px 0 0; padding-top: 28px; border-top: 1px solid var(--rule); }
.glance .impact div { background: var(--bg); }
.part-title { font: 600 clamp(26px, 3.4vw, 34px)/1.15 var(--display); letter-spacing: -0.02em; margin: 0; padding-bottom: 16px; border-bottom: 2px solid var(--fg); }
.part-title + .section { padding-top: 40px; }
@media (max-width: 720px) { .glance { padding: 22px; } }
.part-title + .glance { margin-top: 24px; }
.glance + .casebar { margin-top: 0; }
.glance .results-label { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 28px 0 12px; padding-top: 28px; border-top: 1px solid var(--rule); }
.glance .results-label + .impact { margin-top: 0; padding-top: 0; border-top: 0; }
.glance { margin-bottom: 24px; }
.casebar + .part-title { margin-top: 16px; }
.part-title + .casebar { margin-top: 24px; margin-bottom: 16px; }
.casebar + .glance { margin-top: 0; }
.glance + .part-title { margin-top: 40px; }
.callout + .label { display: block; margin-top: 56px; }
.placeholder { border: 2px dashed var(--outline); border-radius: 10px; padding: 48px 24px; text-align: center; color: var(--muted); font: 500 14px/1.4 var(--mono); }

/* Testimonial (enable in index.html once a quote is ready) */
.quote { border-top: 1px solid var(--rule); padding-block: 48px; }
.quote blockquote { margin: 0; max-width: 60ch; }
.quote blockquote p { font: 500 22px/1.45 var(--display); margin: 0 0 12px; }
.quote footer { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* About: photo and art */
.about-side { display: flex; flex-direction: column; gap: 16px; }
.about-photo { width: 100%; max-width: 200px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.about-art { margin: 8px 0 16px; max-width: 320px; }
.about-art img { border-radius: 8px; border: 1px solid var(--rule); }
.about-art figcaption { margin: 8px 0 0; font-size: 13px; }
@media (max-width: 720px) { .about-photo { max-width: 160px; } }

/* DCO: competitive analysis and journey */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.compare-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.compare-card h3 { margin: 0; font-size: 22px; font-weight: 600; }
.compare-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.compare-card p b { color: var(--fg); font-weight: 600; }
.compare-take { margin-top: auto !important; padding-top: 12px; border-top: 1px solid var(--rule); }
.compare-take b { color: var(--accent) !important; }
.journey { display: flex; align-items: stretch; gap: 12px; }
.journey i { align-self: center; font-style: normal; color: var(--muted); font-size: 22px; }
.journey-step { flex: 1; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; min-width: 0; }
.journey-step h3 { margin: 8px 0 4px; font-size: 19px; font-weight: 600; }
.journey-step p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.journey-main { border: 2px solid var(--accent); background: var(--accent-soft); }
@media (max-width: 720px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .journey { flex-direction: column; }
  .journey i { transform: rotate(90deg); }
}

/* Case study v2: side nav + scannable modules */
:root { --panel: #eef0f4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --panel: #13161d; } }
:root[data-theme="dark"] { --panel: #13161d; }
.cs-wrap { max-width: 1120px; }
.cs-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 56px; align-items: start; }
.cs-side { position: sticky; top: 24px; padding-top: 64px; display: flex; flex-direction: column; gap: 20px; }
.cs-back { font: 500 14px/1 var(--display); color: var(--muted); text-decoration: none; }
.cs-back:hover { color: var(--fg); }
.cs-toggle { display: inline-flex; border: 1px solid var(--outline); border-radius: 999px; padding: 3px; width: max-content; }
.cs-toggle button { font: 500 12px/1 var(--mono); letter-spacing: .04em; border: 0; background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.cs-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.cs-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-toc { display: flex; flex-direction: column; gap: 2px; }
.cs-toc a { font: 400 14px/1.3 var(--display); color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid transparent; }
.cs-toc a:hover { color: var(--fg); }
.cs-toc a.is-active { color: var(--fg); border-left-color: var(--accent); font-weight: 500; }
.cs-main { max-width: 780px; min-width: 0; }
.cs-hero { padding-block: 56px 24px; scroll-margin-top: 24px; }
.cs-hero h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.05; margin: 14px 0 8px; font-weight: 600; }
.cs-sub { font-size: 21px; color: var(--muted); margin: 0 0 24px; max-width: 52ch; line-height: 1.4; }
.cs-overview { margin: 0 0 32px; max-width: 64ch; }
.cs-overview b, .cs-sec p b, .cs-card p b, .cs-decision p b, .cs-step p b { color: var(--fg); font-weight: 600; }
.cs-hero .casebar { margin: 0 0 16px; }
.cs-hero .impact { margin: 0; }
.cs-sec { padding-block: 56px 0; scroll-margin-top: 24px; }
.cs-sec h2 { font-size: clamp(22px, 2.6vw, 26px); line-height: 1.2; font-weight: 600; margin: 0 0 10px; }
.cs-sec > p { margin: 0 0 16px; max-width: 66ch; }
.cs-intro { color: var(--muted); }
.cs-sec figure { margin: 24px 0 0; }
.cs-sec figcaption { margin-left: 0; max-width: none; }
.cs-panel { background: var(--panel); border-radius: 16px; padding: 24px; margin-top: 20px; }
.cs-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.cs-panel.cs-grid-2 { gap: 14px; }
.cs-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.cs-card p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.cs-pill { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--on-accent); background: var(--accent); padding: 7px 12px; border-radius: 999px; }
.cs-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.cs-stages > li { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; margin: 0; }
.cs-stages ul { margin: 0; padding-left: 1.1em; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.cs-stages ul li { margin: 0 0 6px; padding: 0; }
.cs-verdict { margin-top: 14px; border: 1.5px solid var(--warn); border-radius: 12px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; color: var(--warn); background: var(--surface); }
.cs-verdict b { font: 600 18px/1.3 var(--display); }
.cs-verdict span { font-size: 15px; }
.cs-decision { background: var(--panel); border-radius: 16px; padding: 22px; min-width: 0; }
.cs-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 600 15px/1 var(--display); }
.cs-decision h3 { font-size: 19px; font-weight: 600; margin: 14px 0 6px; }
.cs-decision p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.cs-step { margin-top: 48px; }
.cs-step h3 { font-size: 20px; font-weight: 600; margin: 6px 0 6px; }
.cs-step > p { margin: 0; color: var(--muted); max-width: 64ch; }
.cs-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; }
.cs-results { display: flex; flex-direction: column; gap: 24px; }
.cs-stat { display: block; font: 600 clamp(32px, 4.4vw, 44px)/1.05 var(--display); letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.cs-results p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.cs-results ul { margin: 0; padding: 18px 0 0 1.1em; border-top: 1px solid var(--rule); color: var(--muted); }
.cs-results li { margin-bottom: 6px; }
.cs-results li b { color: var(--fg); }
.cs-main .next { margin-top: 72px; }
body.is-tldr .full-only { display: none; }
@media (max-width: 960px) {
  .cs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cs-side { position: static; padding-top: 16px; flex-direction: row; align-items: center; justify-content: space-between; }
  .cs-toc { display: none; }
  .cs-hero { padding-top: 32px; }
}
@media (max-width: 720px) {
  .cs-grid-2, .cs-split { grid-template-columns: minmax(0, 1fr); }
  .cs-stages { grid-template-columns: minmax(0, 1fr); }
  .cs-panel { padding: 16px; }
}
.cs-stages ul { list-style: disc; }
.cs-sec .callout { margin-top: 28px; }

/* Case study v2: simpler hero and aligned side nav */
.cs-hero { padding-block: 64px 8px; }
.cs-hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; margin: 0 0 10px; letter-spacing: -0.025em; }
.cs-sub { font-size: clamp(19px, 2vw, 23px); color: var(--muted); margin: 0 0 40px; line-height: 1.35; }
.cs-overview { font-size: 18px; line-height: 1.65; margin: 0 0 44px; max-width: 66ch; }
.cs-overview a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--outline); text-underline-offset: 4px; }
.cs-overview a:hover { text-decoration-color: var(--accent); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 0; }
.cs-meta dt { font: 400 14px/1.3 var(--display); color: var(--muted); margin-bottom: 6px; }
.cs-meta dd { margin: 0; font: 500 16px/1.4 var(--display); }
.cs-sec .impact { margin-top: 16px; }
.cs-side { padding-top: 76px; }
.cs-toc a { padding: 5px 0; border-left: 0; }
.cs-toc a.is-active { border-left: 0; }
.cs-toc a.is-active::before { content: ""; display: inline-block; width: 2px; height: 14px; background: var(--accent); margin-right: 10px; vertical-align: -2px; border-radius: 1px; }
@media (max-width: 960px) { .cs-side { padding-top: 16px; } .cs-hero { padding-top: 32px; } }

/* Case study v2: flush-left modules */
.cs-flow { margin-top: 20px; }
.cs-users { margin-top: 20px; }
.cs-user { border: 1px solid var(--rule); border-radius: 14px; padding: 22px; background: var(--surface); min-width: 0; }
.cs-user h3 { font-size: 19px; font-weight: 600; margin: 12px 0 6px; }
.cs-user p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.cs-user p b { color: var(--fg); font-weight: 600; }
.cs-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.cs-note { --note: #fff1a8; --note-ink: #3b3412; background: var(--note); color: var(--note-ink); padding: 18px 16px 22px; min-height: 170px; border-radius: 2px 2px 12px 2px; box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 8px 18px -10px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.cs-note:nth-child(2) { --note: #ffd9e6; --note-ink: #4a1d2c; transform: rotate(1deg); }
.cs-note:nth-child(3) { --note: #d4f0dc; --note-ink: #173b22; transform: rotate(-0.6deg); }
.cs-note:nth-child(4) { --note: #d9e8ff; --note-ink: #14294a; transform: rotate(1.3deg); }
.cs-note h3 { font: 700 15px/1.25 var(--display); margin: 0 0 8px; color: inherit; letter-spacing: 0; }
.cs-note p { margin: 0; font-size: 14.5px; line-height: 1.45; color: inherit; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .cs-note { transform: none !important; } }
.cs-compare { margin: 24px 0 0; }
.cs-compare-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; background: var(--panel); border-radius: 16px; padding: 24px; }
.cs-frame { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.cs-frame img { border-radius: 10px; border: 1px solid var(--rule); box-shadow: 0 10px 28px -16px rgba(15,25,50,.35); background: #fff; }
.cs-arrow { font-size: 22px; color: var(--muted); }
.cs-tag { font: 500 13px/1 var(--mono); padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); color: var(--fg); }
.cs-tag-final { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.cs-goals { margin: 20px 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.cs-goals > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cs-goals dt { font: 600 16px/1.4 var(--display); }
.cs-goals dd { margin: 0; color: var(--muted); }
.cs-goals dd b { color: var(--fg); font-weight: 600; }
@media (max-width: 860px) { .cs-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .cs-compare-row { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .cs-arrow { transform: rotate(90deg); justify-self: center; }
  .cs-goals > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 480px) { .cs-notes { grid-template-columns: minmax(0, 1fr); } .cs-note { min-height: 0; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs-note { filter: brightness(.92); } }

/* PCO refinements */
.cs-compare-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; row-gap: 16px; }
.cs-shot { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); box-shadow: 0 10px 28px -16px rgba(15,25,50,.35); background: #fff; }
.cs-compare-row .cs-arrow { align-self: center; grid-row: 1; }
.cs-compare-row .cs-tag { justify-self: center; }
.d-num { fill: var(--accent); }
.d-num-t { fill: var(--on-accent); font: 600 13px var(--display); }
.d-hl { fill: none; stroke: var(--accent); stroke-width: 2; animation: d-slide 6s ease-in-out infinite; will-change: transform; }
@keyframes d-slide {
  0%, 22% { transform: translateX(0); }
  33%, 55% { transform: translateX(264px); }
  66%, 88% { transform: translateX(528px); }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .d-hl { animation: none; } }
.cs-results { gap: 28px; }
.cs-more { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--rule); }
.cs-more h2 { font-size: clamp(22px, 2.6vw, 26px); font-weight: 600; margin: 0 0 20px; }
.cs-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cs-more-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 1px solid var(--rule); border-radius: 14px; padding: 20px; background: var(--surface); color: inherit; text-decoration: none; min-width: 0; transition: border-color .15s, transform .15s; }
.cs-more-card h3 { font-size: 17px; font-weight: 600; margin: 8px 0 0; line-height: 1.3; }
.cs-more-card p { margin: 0 0 6px; font-size: 14.5px; color: var(--muted); line-height: 1.45; flex: 1; }
a.cs-more-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cs-more-link { font: 600 14px/1 var(--display); color: var(--accent); }
@media (max-width: 720px) {
  .cs-more-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-compare-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .cs-compare-row > :nth-child(1) { order: 1; } .cs-compare-row > :nth-child(4) { order: 2; }
  .cs-compare-row > :nth-child(2) { order: 3; } .cs-compare-row > :nth-child(5) { display: none; }
  .cs-compare-row > :nth-child(3) { order: 4; } .cs-compare-row > :nth-child(6) { order: 5; }
}
@media (prefers-reduced-motion: reduce) { a.cs-more-card:hover { transform: none; } }
@media (min-width: 721px) {
  .cs-compare-row > :nth-child(1) { grid-column: 1; grid-row: 1; }
  .cs-compare-row > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .cs-compare-row > :nth-child(3) { grid-column: 3; grid-row: 1; }
  .cs-compare-row > :nth-child(4) { grid-column: 1; grid-row: 2; }
  .cs-compare-row > :nth-child(5) { grid-column: 2; grid-row: 2; }
  .cs-compare-row > :nth-child(6) { grid-column: 3; grid-row: 2; }
}
.cs-compare-row .cs-arrow { grid-row: auto; }
.cs-more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cs-more-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.cs-more-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 4px; color: inherit; text-decoration: none; }
.cs-more-row h3 { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.3; }
.cs-more-row p { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }
a.cs-more-row:hover h3 { color: var(--accent); }
@media (max-width: 520px) { .cs-more-row { grid-template-columns: auto minmax(0, 1fr); } .cs-more-row > :last-child { grid-column: 2; justify-self: start; } }

/* Hero demo: animated recreation of the flow */
.demo { margin: 40px 0 0; }
.demo-app { background: var(--panel); border-radius: 18px; padding: 20px; position: relative; }
.demo-top { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--outline); }
.demo-title { margin-left: 10px; font: 600 14px/1 var(--display); color: var(--muted); }
.demo-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 8px; }
.demo-steps li { display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--display); color: var(--muted); padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); transition: background .3s, color .3s, border-color .3s; }
.demo-steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rule); color: var(--muted); font-size: 12px; font-weight: 600; transition: inherit; }
.demo-app[data-step="1"] [data-s="1"], .demo-app[data-step="2"] [data-s="2"], .demo-app[data-step="3"] [data-s="3"] { color: var(--fg); border-color: var(--accent); }
.demo-app[data-step="1"] [data-s="1"] span, .demo-app[data-step="2"] [data-s="2"] span, .demo-app[data-step="3"] [data-s="3"] span { background: var(--accent); color: var(--on-accent); }
.demo-body { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; min-height: 236px; position: relative; overflow: hidden; }
.demo-panel { position: absolute; inset: 22px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; pointer-events: none; }
.demo-app[data-step="1"] [data-p="1"], .demo-app[data-step="2"] [data-p="2"], .demo-app[data-step="3"] [data-p="3"] { opacity: 1; transform: none; }
.demo-field label { display: block; font: 500 13px/1.3 var(--display); color: var(--muted); margin-bottom: 6px; }
.demo-box { height: 40px; border: 1px solid var(--outline); border-radius: 8px; padding: 0 12px; display: flex; align-items: center; font: 500 16px/1 var(--display); color: var(--fg); background: var(--surface); }
.demo-input { max-width: 300px; }
.demo-input .demo-box { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.demo-input small { display: block; margin-top: 6px; font: 500 12px/1 var(--mono); color: var(--accent); }
.demo-caret { width: 1.5px; height: 18px; background: var(--fg); margin-left: 2px; animation: demo-blink 1s steps(1) infinite; }
.is-filled .demo-caret { display: none; }
@keyframes demo-blink { 50% { opacity: 0; } }
.demo-calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.demo-auto .demo-box { background: var(--panel); border-color: var(--rule); color: transparent; transition: color .3s, background .3s; }
.is-filled .demo-auto .demo-box { color: var(--fg); background: var(--accent-soft); }
.is-filled .demo-auto[data-i="2"] .demo-box { transition-delay: .15s; }
.is-filled .demo-auto[data-i="3"] .demo-box { transition-delay: .3s; }
.demo-badge { display: inline-block; margin-top: 16px; font: 500 13px/1 var(--mono); color: var(--accent); background: var(--accent-soft); padding: 7px 11px; border-radius: 999px; opacity: 0; transition: opacity .4s; }
.is-done .demo-badge { opacity: 1; }
.demo-h { margin: 0 0 12px; font: 600 15px/1.2 var(--display); }
.demo-lines { display: grid; gap: 9px; margin-bottom: 18px; }
.demo-lines i { display: block; height: 9px; border-radius: 5px; background: var(--rule); }
.demo-lines i:nth-child(1) { width: 78%; } .demo-lines i:nth-child(2) { width: 64%; } .demo-lines i:nth-child(3) { width: 82%; } .demo-lines i:nth-child(4) { width: 55%; }
.demo-check { display: flex; align-items: center; gap: 10px; font: 500 14px/1.3 var(--display); }
.demo-cb { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--outline); display: grid; place-items: center; transition: background .2s, border-color .2s; flex: none; }
.is-checked .demo-cb { background: var(--accent); border-color: var(--accent); }
.is-checked .demo-cb::after { content: "✓"; color: var(--on-accent); font-size: 13px; font-weight: 700; }
.demo-btn { display: inline-block; margin-top: 16px; font: 600 14px/1 var(--display); padding: 11px 16px; border-radius: 999px; background: var(--rule); color: var(--muted); transition: background .3s, color .3s; }
.is-checked .demo-btn { background: var(--accent); color: var(--on-accent); }
.demo-rows { list-style: none; margin: 0; padding: 0; }
.demo-rows li { display: grid; grid-template-columns: 1fr 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--rule); font: 500 14px/1.2 var(--display); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.demo-rows em { font: 500 12px/1 var(--mono); font-style: normal; color: var(--accent); background: var(--accent-soft); padding: 5px 8px; border-radius: 999px; }
.demo-app[data-step="3"] .demo-rows li { opacity: 1; transform: none; }
.demo-app[data-step="3"] .demo-rows li:nth-child(2) { transition-delay: .15s; }
.demo-app[data-step="3"] .demo-rows li:nth-child(3) { transition-delay: .3s; }
.demo-app[data-step="3"] .demo-rows li:nth-child(4) { transition-delay: .45s; }
.demo figcaption { margin-top: 12px; }
@media (max-width: 600px) {
  .demo-app { padding: 14px; }
  .demo-steps li { font-size: 12.5px; padding: 6px 10px 6px 6px; }
  .demo-calc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .demo-body { min-height: 360px; padding: 16px; }
  .demo-panel { inset: 16px; }
}
@media (prefers-reduced-motion: reduce) { .demo-caret { animation: none; } .demo-panel, .demo-rows li, .demo-box, .demo-badge { transition: none; } }
.demo figcaption { margin-left: 0; margin-right: 0; max-width: none; }
@media (max-width: 600px) { .demo-body { min-height: 410px; } }
.demo-app { border: 1px solid var(--outline); box-shadow: 0 1px 2px rgba(15,25,50,.05), 0 18px 40px -20px rgba(15,25,50,.28); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo-app { box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); } }
:root[data-theme="dark"] .demo-app { box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); }
.cs-subhead { font-size: 18px; font-weight: 600; margin: 36px 0 14px; }
.cs-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cs-insight { margin-top: 32px; }
.cs-insight-label { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px; }
.cs-insight p { margin: 12px 0 0; font: 500 21px/1.45 var(--display); letter-spacing: -0.01em; max-width: 52ch; }
@media (max-width: 720px) { .cs-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* DCO demo panels */
.demo-owe { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); margin-bottom: 14px; }
.demo-owe span { font: 500 14px/1 var(--display); color: var(--muted); }
.demo-owe strong { font: 600 24px/1 var(--display); color: var(--fg); }
.demo-why { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 15px; }
.demo-why li { margin-bottom: 6px; }
.demo-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.demo-opt { position: relative; border: 1.5px solid var(--rule); border-radius: 12px; padding: 30px 14px 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, background .3s, transform .3s; }
.demo-opt b { font: 600 15px/1.2 var(--display); }
.demo-opt span { font-size: 14px; color: var(--muted); }
.demo-opt em { position: absolute; top: 9px; left: 14px; font: 500 11px/1 var(--mono); font-style: normal; color: var(--on-accent); background: var(--accent); padding: 4px 7px; border-radius: 999px; }
.demo-pop { border-color: var(--accent); }
.is-hint .demo-pop { transform: translateY(-3px); }
.is-picked .demo-pop { background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.cs-compare-tall { grid-template-columns: minmax(0, 300px) auto minmax(0, 300px); justify-content: center; }
@media (max-width: 600px) { .demo-opts { grid-template-columns: minmax(0, 1fr); gap: 8px; } .demo-opt { padding: 26px 12px 12px; } }
.cs-insight-label { background: none; padding: 0; border-radius: 0; }
.d-ico rect, .d-ico path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cs-compare-3 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); }
@media (min-width: 721px) {
  .cs-compare-3 > :nth-child(n) { grid-column: auto; grid-row: auto; }
  .cs-compare-3 > :nth-child(-n+5) { grid-row: 1; }
  .cs-compare-3 > :nth-child(n+6) { grid-row: 2; }
}
@media (max-width: 720px) {
  .cs-compare-3 { grid-template-columns: minmax(0, 1fr); }
  .cs-compare-3 > :nth-child(n) { order: 0; display: revert; }
  .cs-compare-3 > :nth-child(1) { order: 1; } .cs-compare-3 > :nth-child(6) { order: 2; }
  .cs-compare-3 > :nth-child(2) { order: 3; }
  .cs-compare-3 > :nth-child(3) { order: 4; } .cs-compare-3 > :nth-child(8) { order: 5; }
  .cs-compare-3 > :nth-child(4) { order: 6; }
  .cs-compare-3 > :nth-child(5) { order: 7; } .cs-compare-3 > :nth-child(10) { order: 8; }
  .cs-compare-3 > :nth-child(7), .cs-compare-3 > :nth-child(9) { display: none; }
}
.cs-illus { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 28px; }
.cs-illus img { width: 100%; height: auto; display: block; }
.cs-sketch { margin: 20px 0 0; }
.cs-sketch-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) auto minmax(0, 1.4fr); gap: 14px; align-items: center; background: var(--panel); border-radius: 16px; padding: 20px; }
.cs-sketch-row-2 { grid-template-columns: minmax(0, 2fr) auto minmax(0, .9fr); }
.cs-sketch-img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); transform: rotate(-1deg); }
.cs-sketch-row .cs-sketch-img:nth-child(2) { transform: rotate(1.2deg); }
.cs-sketch-final { width: 100%; height: auto; border-radius: 10px; background: #fff; border: 1px solid var(--rule); }
@media (max-width: 720px) {
  .cs-sketch-row, .cs-sketch-row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 14px; }
  .cs-sketch-row .cs-arrow { display: none; }
  .cs-sketch-final { grid-column: 1 / -1; }
  .cs-sketch-row-2 .cs-sketch-img { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .cs-sketch-img { transform: none !important; } }
.cs-sketch-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1.15fr); }
.cs-sketch-solo { grid-template-columns: minmax(0, 1fr); }
.cs-door { justify-items: center; }
.cs-door .cs-sketch-final { max-width: 300px; }
.cs-sketch-solo .cs-sketch-img { transform: none; }
.cs-door .cs-sketch-final { max-width: 220px; }

/* Design directions */
.cs-dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; align-items: start; }
.cs-dir { background: var(--panel); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; border: 2px solid transparent; }
.cs-dir-chosen { border-color: var(--accent); }
.cs-pill-soft { background: var(--surface); color: var(--fg); border: 1px solid var(--rule); }
.cs-dir .cs-pill { align-self: flex-start; }
.cs-dir-shot img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--rule); background: #fff; box-shadow: 0 8px 20px -14px rgba(15,25,50,.35); }
.cs-fb b { display: block; font: 600 13px/1.2 var(--display); margin-bottom: 6px; }
.cs-fb ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cs-fb li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.cs-fb-pos li::before { content: "+"; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: #e3f4e8; color: #1c7a3b; font: 700 12px/15px var(--display); text-align: center; }
.cs-fb-neg li::before { content: "−"; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: #fbe7e5; color: var(--warn); font: 700 12px/15px var(--display); text-align: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cs-fb-pos li::before { background: #173b22; color: #8fdca6; } :root:not([data-theme="light"]) .cs-fb-neg li::before { background: #3d1c18; } }
.cs-dir-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 860px) { .cs-dirs { grid-template-columns: minmax(0, 1fr); } .cs-dir-shot { max-width: 260px; } }
.cs-emails { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; background: var(--panel); border-radius: 16px; padding: 24px; }
.cs-emails img { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--outline); border-radius: 14px; padding: 10px; box-shadow: 0 1px 2px rgba(15,25,50,.05), 0 18px 40px -20px rgba(15,25,50,.28); }
@media (max-width: 600px) { .cs-emails { grid-template-columns: minmax(0, 1fr); padding: 14px; } }

/* Home hero: text + animation */
.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 48px 40px; }
.intro h1 { font-size: clamp(34px, 4.6vw, 50px); max-width: 15ch; }
.intro p { font-size: 18px; }
.intro-jump { margin-top: 22px !important; }
.intro-jump a { font: 600 15px/1 var(--display); color: var(--accent); text-decoration: none; }
.intro-jump a:hover { text-decoration: underline; }
.hero-anim { position: relative; height: 320px; background: var(--panel); border: 1px solid var(--outline); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,25,50,.05), 0 18px 40px -20px rgba(15,25,50,.28); }
.ha-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ha-lines path { fill: none; stroke: var(--warn); stroke-width: 1.4; opacity: .55; stroke-dasharray: 4 5; transition: opacity .6s; }
.ha-chip { position: absolute; left: var(--x); top: var(--y); font: 500 13px/1 var(--display); padding: 9px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--rule); color: var(--fg); white-space: nowrap; transition: left .9s cubic-bezier(.6,0,.3,1), top .9s cubic-bezier(.6,0,.3,1), opacity .5s .4s, transform .9s; animation: ha-jit 2.4s ease-in-out infinite alternate; }
.ha-chip:nth-child(3) { animation-delay: -.6s; } .ha-chip:nth-child(4) { animation-delay: -1.2s; } .ha-chip:nth-child(5) { animation-delay: -.3s; } .ha-chip:nth-child(6) { animation-delay: -1.8s; } .ha-chip:nth-child(7) { animation-delay: -.9s; }
@keyframes ha-jit { from { transform: translate(0,0) rotate(-1.5deg); } to { transform: translate(6px,-5px) rotate(1.5deg); } }
.ha-flow { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.9); display: flex; flex-direction: column; gap: 10px; width: 62%; opacity: 0; transition: opacity .5s, transform .6s; }
.ha-step { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--rule); font: 600 16px/1 var(--display); color: var(--fg); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s, border-color .4s; }
.ha-step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; }
.ha-label { position: absolute; left: 16px; bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; transition: opacity .5s; }
.ha-label-a { color: var(--warn); background: var(--surface); }
.ha-label-b { color: var(--accent); background: var(--accent-soft); opacity: 0; }
.is-simple .ha-lines path { opacity: 0; }
.is-simple .ha-chip { left: 42%; top: 46%; opacity: 0; animation: none; transform: scale(.6); }
.is-simple .ha-flow { opacity: 1; transform: translate(-50%,-50%) scale(1); transition-delay: .7s; }
.is-simple .ha-step { opacity: 1; transform: none; }
.is-simple .ha-step:nth-child(1) { transition-delay: .85s; border-color: var(--accent); }
.is-simple .ha-step:nth-child(2) { transition-delay: 1s; }
.is-simple .ha-step:nth-child(3) { transition-delay: 1.15s; }
.is-simple .ha-label-a { opacity: 0; }
.is-simple .ha-label-b { opacity: 1; transition-delay: 1s; }
@media (prefers-reduced-motion: reduce) { .ha-chip { animation: none; } }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px 24px; } .hero-anim { height: 280px; } }

/* Other work */
.ow-hero { padding-block: 56px 16px; }
.ow-hero h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.08; margin: 0 0 10px; font-weight: 600; }
.ow-hero p { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 0; max-width: 56ch; line-height: 1.45; }
.ow-sec { border-top: 1px solid var(--rule); padding-block: 40px 16px; margin-top: 32px; }
.ow-sec .label { margin: 0 0 20px; }
.ow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ow-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.ow-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ow-shot { background: var(--panel); padding: 20px 20px 0; }
.ow-shot img { width: 100%; height: auto; display: block; border-radius: 10px 10px 0 0; box-shadow: 0 12px 28px -18px rgba(15,25,50,.45); }
.ow-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ow-body h3 { font-size: 20px; font-weight: 600; margin: 0; }
.ow-body p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.ow-link, .more-link a { font: 600 15px/1 var(--display); color: var(--accent); text-decoration: none; }
.ow-link { margin-top: 6px; }
.more-link { margin: 20px 0 0; }
.ow-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ow-tile { display: block; color: inherit; text-decoration: none; }
.ow-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--rule); display: block; transition: transform .15s; }
.ow-tile:hover img { transform: translateY(-2px); }
.ow-tile span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.ow-tile b { display: block; color: var(--fg); font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .ow-grid { grid-template-columns: minmax(0, 1fr); } .ow-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ow-card:hover, .ow-tile:hover img { transform: none; } }

/* Additional + Other work: small image cards */
.label { font-size: 13px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.mini-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; min-width: 0; transition: border-color .15s, transform .15s; }
a.mini-card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.mini-card:hover h3 { color: var(--accent); }
.mini-media { aspect-ratio: 16 / 10; background: var(--accent-soft); overflow: hidden; position: relative; }
.mm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.mini-body h3 { font-size: 16.5px; line-height: 1.3; margin: 0; font-weight: 600; transition: color .15s; }
.mini-body p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mini-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
.mini-card .mini-flow span { font-size: 11.5px; padding: 7px 9px; }
.mini-card .mini-flow i { width: 10px; }
.mm-chat { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 16px; }
.mm-chat span { font: 500 12px/1.3 var(--display); padding: 7px 11px; border-radius: 12px; max-width: 78%; }
.mm-chat .b1 { background: var(--surface); color: var(--fg); border: 1px solid var(--rule); border-bottom-left-radius: 3px; }
.mm-chat .b2 { background: var(--accent); color: var(--on-accent); align-self: flex-end; border-bottom-right-radius: 3px; }
.mm-ds { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 16px; }
.ds-btn { font: 600 12px/1 var(--display); padding: 9px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.ds-ghost { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }
.ds-chip { font: 500 11px/1 var(--mono); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--outline); color: var(--muted); background: var(--surface); }
.ds-sw { display: flex; gap: 6px; width: 100%; justify-content: center; }
.ds-sw i { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); }
.ds-sw i:nth-child(2) { background: var(--fg); } .ds-sw i:nth-child(3) { background: #f2b42a; } .ds-sw i:nth-child(4) { background: var(--surface); border: 1px solid var(--rule); }
.mm-yt { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px 20px; }
.yt-row { display: flex; align-items: center; gap: 10px; }
.yt-row b { height: 10px; border-radius: 5px; background: var(--accent); flex: none; }
.yt-row:nth-child(n+3) b { background: var(--outline); }
.yt-row em { font: 600 12px/1 var(--mono); font-style: normal; color: var(--fg); }
.other { border-top: 1px solid var(--rule); padding-block: 40px; }
.other-head { display: flex; justify-content: space-between; align-items: center; }
.other-head .label { margin: 0; }
.other-nav { display: flex; gap: 8px; }
.other-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--outline); background: var(--surface); color: var(--fg); font-size: 15px; cursor: pointer; }
.other-nav button:hover { border-color: var(--accent); color: var(--accent); }
.other-nav button:focus-visible, .other-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.other-intro { margin: 10px 0 20px; color: var(--muted); max-width: 60ch; }
.other-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: thin; }
.other-row .mini-card { scroll-snap-align: start; }
@media (max-width: 720px) { .mini-grid { grid-template-columns: minmax(0, 1fr); } .other-row { grid-auto-columns: 78%; } }
@media (prefers-reduced-motion: reduce) { a.mini-card:hover { transform: none; } }
.tags-sm li { font-size: 11px; padding: 5px 9px; }
.mini-body .tags { margin-bottom: 2px; }

/* One headline result per case study card */
.card-result { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; padding: 7px 12px; border-radius: 999px; font: 600 13px/1 var(--display); color: var(--accent); background: var(--accent-soft); font-variant-numeric: tabular-nums; }
.card-result::before { content: "↗"; font-weight: 700; }

/* Research tool case study demo */
.yt-chat { display: flex; flex-direction: column; gap: 12px; }
.yt-msg { margin: 0; max-width: 78%; padding: 12px 14px; border-radius: 14px; font: 500 15px/1.4 var(--display); }
.yt-me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.yt-ai { align-self: flex-start; background: var(--panel); color: var(--fg); border-bottom-left-radius: 4px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.is-typed .yt-ai { opacity: 1; transform: none; }
.yt-dots { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.yt-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: yt-dot 1.2s infinite; }
.yt-dots i:nth-child(2) { animation-delay: .15s; } .yt-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes yt-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.yt-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.yt-bars li { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 72px; align-items: center; gap: 12px; font: 500 14px/1.2 var(--display); }
.yt-bars i { display: block; height: 10px; border-radius: 6px; background: var(--rule); position: relative; overflow: hidden; }
.yt-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: var(--accent); transition: width .9s ease; }
.is-found .yt-bars i::after { width: var(--w); }
.yt-bars li:nth-child(2) i::after { transition-delay: .15s; } .yt-bars li:nth-child(3) i::after { transition-delay: .3s; }
.yt-bars em { justify-self: start; font: 500 11px/1 var(--mono); font-style: normal; color: var(--accent); background: var(--accent-soft); padding: 5px 8px; border-radius: 999px; }
.yt-idea { border: 1.5px solid var(--rule); border-radius: 12px; padding: 16px; transition: border-color .4s, box-shadow .4s; }
.is-saved .yt-idea { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.yt-idea-tag { display: inline-block; margin-bottom: 10px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.yt-ev { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.yt-ev li { font: 500 12px/1 var(--mono); color: var(--accent); background: var(--accent-soft); padding: 6px 9px; border-radius: 999px; opacity: 0; transition: opacity .4s; }
.is-saved .yt-ev li { opacity: 1; } .is-saved .yt-ev li:nth-child(2) { transition-delay: .2s; }
@media (max-width: 600px) { .yt-bars li { grid-template-columns: minmax(0, 1fr) auto; } .yt-bars i { grid-column: 1 / -1; grid-row: 2; } .yt-msg { max-width: 92%; } }
@media (prefers-reduced-motion: reduce) { .yt-dots i { animation: none; } .yt-ai, .yt-bars i::after, .yt-ev li, .yt-idea { transition: none; } }

.cs-frame { margin: 28px 0 0; }
.cs-frame-stage { background: var(--panel); border-radius: 16px; padding: 24px; }
.cs-frame img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--outline); border-radius: 14px; padding: 10px; box-shadow: 0 1px 2px rgba(15,25,50,.05), 0 18px 40px -20px rgba(15,25,50,.28); }
@media (max-width: 600px) { .cs-frame-stage { padding: 14px; } .cs-frame img { padding: 6px; border-radius: 10px; } }

/* All case studies as horizontal cards */
.cards { grid-template-columns: minmax(0, 1fr); }
.card-feature + .card-feature { margin-top: 0; }
.card-static { cursor: default; }
.card-media.mm-chat { padding: 28px 36px; gap: 10px; }
.card-media.mm-chat span { font-size: 15px; padding: 10px 14px; }
.card-media.mm-ds { padding: 28px; gap: 14px; }
.card-media.mm-ds .ds-btn { font-size: 14px; padding: 12px 18px; }
.card-media.mm-ds .ds-chip { font-size: 13px; padding: 9px 12px; }
.card-media.mm-ds .ds-sw i { width: 40px; height: 40px; }
.about p { font-size: 16px; line-height: 1.6; }
@media (max-width: 720px) {
  .card-media.mm-chat, .card-media.mm-ds { padding: 20px; }
  .card-media.mm-chat span { font-size: 13px; }
}
.co-pill { display: inline-block; font: 600 0.92em/1.2 var(--display); color: var(--fg); background: var(--surface); border: 1px solid var(--outline); border-radius: 999px; padding: 0.12em 0.6em; white-space: nowrap; }

/* Video figures (lazy, muted loops) */
.cs-video { margin: 28px 0 0; }
.cs-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--panel); object-fit: cover; }
.cs-video figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Trait continuum */
.traits { margin-top: 20px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); padding: 8px 20px 12px; }
.traits-head, .trait { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; }
.traits-head { padding: 10px 0; border-bottom: 1px solid var(--rule); font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.traits-head span:first-child { text-align: right; } .traits-head span:nth-child(2) { text-align: center; min-width: 128px; }
.trait { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.trait:last-child { border-bottom: 0; }
.trait span { color: var(--muted); }
.trait span:first-child { text-align: right; }
.trait b { font: 600 14px/1 var(--display); background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; min-width: 128px; text-align: center; position: relative; }
.trait span:first-child::after, .trait span:last-child::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--outline); vertical-align: middle; margin: 0 10px; }
@media (max-width: 560px) {
  .traits { padding: 6px 12px 8px; }
  .traits-head, .trait { gap: 8px; font-size: 13px; }
  .trait b { min-width: 0; padding: 7px 10px; font-size: 12.5px; }
  .traits-head span:nth-child(2) { min-width: 0; }
  .trait span:first-child::after, .trait span:last-child::before { display: none; }
}
.cs-persona { margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: var(--panel); }
.cs-persona p { margin: 8px 0 0; }

/* Tone study */
.tones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.tone { border: 1px solid var(--rule); border-radius: 14px; padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tone.is-pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tone-label { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tone.is-pick .tone-label { color: var(--accent); }
.tone-msg { margin: 0; padding: 12px 14px; border-radius: 12px 12px 12px 4px; background: var(--panel); font-size: 15px; line-height: 1.5; }
.tone-say { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .tones { grid-template-columns: minmax(0, 1fr); } }
.cs-quotes { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.cs-quotes li { padding-left: 16px; border-left: 3px solid var(--accent); font-style: italic; color: var(--fg); }

/* Phone screens */
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.phones figure { margin: 0; min-width: 0; }
.phones img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--outline); background: #fff; box-shadow: 0 1px 2px rgba(15,25,50,.05), 0 14px 30px -18px rgba(15,25,50,.28); }
.phones figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.phones figcaption b { color: var(--fg); }
@media (max-width: 720px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* Video media inside cards */
.mini-media video, .card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phones img { aspect-ratio: 750 / 1458; object-fit: cover; object-position: top; }
.tones + p { margin-top: 20px; }
.cs-shot-hero { margin: 28px 0 0; }
.cs-shot-hero img { display: block; width: 100%; height: auto; border-radius: 16px; }
.cs-shot-hero figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.tone-q { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tone-say q, .cs-quotes q { font-style: italic; color: var(--fg); }
.cs-quotes-label { margin: 22px 0 0; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cs-quotes-label + .cs-quotes { margin-top: 10px; }
.cs-quotes li { font-style: normal; }

/* Design system case study illustrations */
.ds-sheet { margin: 28px 0 0; }
.ds-sheet-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 28px; border-radius: 16px; background: var(--accent-soft); }
.ds-sheet figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.ds-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--surface); border-radius: 12px; padding: 20px; border: 1px solid var(--rule); }
.ds-h { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ds-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-b { font: 600 13px/1 var(--display); padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.ds-b-2 { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }
.ds-b-3 { background: transparent; color: var(--muted); border: 1px solid var(--outline); }
.ds-s { font: 600 11px/1 var(--mono); padding: 6px 10px; border-radius: 6px; letter-spacing: .04em; text-transform: uppercase; }
.ds-s-ok { background: #e3f4ea; color: #1f7a4d; } .ds-s-warn { background: #fdf0d9; color: #9a5b00; } .ds-s-bad { background: #fbe9e7; color: #b3392d; }
.ds-steps { display: flex; align-items: center; }
.ds-steps i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--outline); background: var(--surface); flex: none; }
.ds-steps i.on { border-color: var(--accent); background: var(--accent); }
.ds-steps b { height: 2px; flex: 1; background: var(--outline); }
.ds-in { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.ds-in div { border: 1px solid var(--outline); border-radius: 8px; padding: 9px 12px; color: var(--fg); background: var(--surface); font-size: 14px; }
.ds-sw { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-sw i { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--rule); }
@media (max-width: 640px) { .ds-sheet-in { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 14px; } }

.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.tpl { margin: 0; min-width: 0; }
.tpl figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.tpl figcaption b { color: var(--fg); }
.tpl-art { aspect-ratio: 4 / 3; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,25,50,.05), 0 14px 30px -20px rgba(15,25,50,.25); }
.tpl-art em { font: 500 9px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.tj-stages { display: grid; grid-template-columns: 64px repeat(5, minmax(0, 1fr)); gap: 4px; }
.tj-stages::before { content: ""; }
.tj-stages span { font: 600 9px/1 var(--display); background: var(--accent); color: var(--on-accent); padding: 5px 2px; border-radius: 4px; text-align: center; overflow: hidden; white-space: nowrap; }
.tj-row { display: grid; grid-template-columns: 64px repeat(5, minmax(0, 1fr)); gap: 4px; align-items: center; flex: 1; }
.tj-row i { height: 100%; min-height: 16px; border-radius: 4px; background: var(--panel); }
.tj-row i.p { background: #fbe9e7; } .tj-row i.o { background: #e3f4ea; }
.tj-row svg { grid-column: 2 / -1; width: 100%; height: 26px; }
.tj-row svg path { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.tc-head, .tc-row { display: grid; grid-template-columns: 84px repeat(4, minmax(0, 1fr)); gap: 5px; align-items: center; }
.tc-head span { font: 600 10px/1 var(--display); text-align: center; color: var(--muted); }
.tc-row { flex: 1; }
.tc-row i { height: 14px; border-radius: 999px; }
.tc-row i.g { background: #cfead9; } .tc-row i.m { background: #fbe3b8; } .tc-row i.p { background: #f6cfca; }
.tc-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 4px; }
.tc-notes span { font: 500 9px/1.2 var(--mono); text-transform: uppercase; color: var(--muted); background: var(--panel); border-radius: 6px; padding: 10px 6px 18px; }
.tp-top { display: flex; gap: 10px; align-items: center; }
.tp-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); border: 2px solid var(--accent); flex: none; }
.tp-top b { display: block; width: 90px; height: 9px; border-radius: 4px; background: var(--fg); opacity: .8; }
.tp-top span { display: block; width: 60px; height: 7px; border-radius: 4px; background: var(--outline); margin-top: 6px; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.tp-grid > div { background: var(--panel); border-radius: 6px; padding: 7px; display: flex; flex-direction: column; gap: 5px; }
.tp-grid span { height: 5px; border-radius: 3px; background: var(--outline); }
.tp-grid span + span { width: 70%; }
.tp-bar { height: 6px; border-radius: 3px; background: var(--outline); overflow: hidden; } .tp-bar i { display: block; height: 100%; background: var(--accent); }
.tp-quote { height: 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; }
@media (max-width: 820px) { .tpl-grid { grid-template-columns: minmax(0, 1fr); } .tpl-art { aspect-ratio: 16 / 10; } }

/* Chat-bubble tones, quote cards, glowing DS cover */
.tone-msg { background: #1f7aff; color: #fff; border-radius: 16px 16px 16px 4px; }
.cs-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cs-quotes li { position: relative; padding: 38px 20px 20px; border: 1px solid var(--rule); border-left: 1px solid var(--rule); border-radius: 14px; background: #fff; color: #1a1d24; box-shadow: 0 8px 24px -14px rgba(20,30,60,.25); }
.cs-quotes li::before { content: "\201C"; position: absolute; top: 6px; left: 18px; font: 700 40px/1 var(--display); color: var(--accent); }
.cs-quotes li q { color: #1a1d24; font-style: normal; quotes: none; }
.ds-sheet-in { display: block; padding: 56px 48px; background: #e3e9f3; }
.ds-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 28px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(1,95,252,.10), 0 24px 60px -10px rgba(1,95,252,.30), 0 0 40px rgba(1,95,252,.10); }
.ds-card .ds-col { background: none; border: 0; padding: 0; border-radius: 0; }
@media (max-width: 760px) { .cs-quotes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ds-sheet-in { padding: 20px 14px; } .ds-card { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; } }
.about-label { grid-column: 1 / -1; margin: 0; }
.about-side .about-art { margin: 0; max-width: 200px; }
@media (max-width: 720px) { .about-side .about-art { max-width: 320px; } }
