.cs-hero {
    padding-top: 64px; padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
  }
  .cs-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate);
    text-decoration: none;
    margin-bottom: 28px;
  }
  .cs-back:hover { color: var(--cs-accent, var(--accent)); }
  .cs-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    max-width: 22ch;
    line-height: 1.1;
    margin-top: 18px;
  }
  .cs-hero .sub {
    margin-top: 18px;
    max-width: 60ch;
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.6;
  }
  .cs-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 32px;
  }
  .cs-meta-row .item .k {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 4px;
  }
  .cs-meta-row .item .v {
    font-size: 14px;
    color: var(--ink);
  }

  .cs-section {
    padding-top: 56px; padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 128px;
  }
  .cs-section:last-of-type { border-bottom: none; }

  .cs-item { margin: 24px 0 0; }
  .cs-figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(38, 43, 40, 0.06);
  }
  .cs-figure img {
    width: 100%;
    height: auto;
    display: block;
  }
  .cs-figcaption {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--slate);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }
  .cs-figcaption .step-num { color: var(--cs-accent, var(--accent)); }

  /* ---- editorial rhythm: process sections vs. flagship product section ---- */
  .cs-kicker {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--slate);
    margin-bottom: 18px;
    max-width: 46ch;
  }
  .cs-kicker-accent {
    color: var(--cs-accent, var(--accent));
    font-weight: 600;
  }

  /* Process sections (Challenge–Principles): slightly contained, less dominant
     than the hero and the shipped-product screens, so the strongest visuals lead. */


  /* Flagship: the shipped product gets the most visual weight in the story. */
  .cs-flagship {
    padding-top: 72px; padding-bottom: 80px;
    background: var(--paper-dim);
    border-bottom: 1px solid var(--line);
  }
  .cs-figure-flagship {
    box-shadow: 0 16px 50px rgba(38, 43, 40, 0.12);
    border-color: var(--line-strong);
  }

  .cs-figure-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    font: inherit;
  }
  .cs-figure-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }

  /* ---- lightbox ---- */
  .cs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    margin: 0;
    padding: 40px 20px;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border: none;
    background: #262b28;
    display: none;
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
  }
  .cs-lightbox[open] {
    display: flex;
  }
  .cs-lightbox-scroll {
    max-width: 1200px;
    width: 100%;
    margin: auto;
  }
  .cs-lightbox img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
  }
  .cs-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 201;
  }
  .cs-lightbox-close:hover,
  .cs-lightbox-close:focus-visible {
    background: rgba(255,255,255,0.22);
  }

  .cs-nav-strip {
    position: sticky;
    top: 70px;
    z-index: 40;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cs-nav-strip::-webkit-scrollbar { display: none; }
  .cs-nav-strip .strip-inner {
    display: flex;
    gap: 22px;
    white-space: nowrap;
  }
  .cs-nav-strip a {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .cs-nav-strip a:hover,
  .cs-nav-strip a:focus-visible { color: var(--ink); }
  .cs-nav-strip a.active { color: var(--cs-accent, var(--accent)); border-bottom-color: var(--cs-accent, var(--accent)); }

  .cs-confidential {
    margin-top: 40px;
    padding: 16px 20px;
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    color: var(--slate);
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .cs-confidential svg { flex-shrink: 0; margin-top: 2px; }

  .cs-next {
    padding-top: 70px; padding-bottom: 70px;
    text-align: center;
  }
  .cs-next p {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 16px;
  }
  .cs-next h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 28px; }

  @media (max-width: 700px) {
    .cs-nav-strip { position: static; }
    .cs-meta-row { gap: 20px; }
  }

/* ---- shared case-study layout (BIN, VCA, Traveloo, Creative) ---- */
.cs-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.cs-num { font-family: var(--font-mono); font-size: 14px; color: var(--cs-accent, var(--accent)); }
.cs-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.cs-section p, .cs-section ul { max-width: 66ch; font-size: 17px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 14px; }
.cs-section ul { padding-left: 20px; }
.cs-section p.cs-kicker { font-size: 14px; line-height: 1.5; color: var(--slate); margin: 0 0 6px; }
.cs-section p.cs-kicker-accent { color: var(--cs-accent, var(--accent)); }
.cs-section p.cs-note { font-size: 14px; color: var(--slate); margin-top: 16px; }
.cs-grid { display: grid; gap: 20px; margin-top: 24px; }
.cs-grid.two { grid-template-columns: repeat(2, 1fr); }
.cs-grid.three { grid-template-columns: repeat(3, 1fr); }
.cs-grid .cs-item { margin: 0; }
.cs-grid.tall img { aspect-ratio: 3/4; object-fit: cover; }
.cs-grid.sq img { aspect-ratio: 1/1; object-fit: cover; }
.cs-card { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: #fff; }
.cs-card h3 { font-size: 18px; margin: 0 0 8px; }
.cs-section .cs-card p { margin: 0; font-size: 16px; }
.cs-figure video { display: block; width: 100%; height: auto; background: #f4f6f6; aspect-ratio: 16/9; }
.cs-figure .video { position: relative; aspect-ratio: 16/9; }
.cs-figure .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-sub { font-size: 18px; margin: 32px 0 6px; }
.cs-figcaption { justify-content: flex-start; }
.cs-todo { background: #fff6d6; border: 1px dashed #c9a400; border-radius: 6px; padding: 10px 14px; font-size: 14px !important; color: #5b4a00 !important; max-width: 66ch; }
.cs-logos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 24px; }
.cs-logos .tile { border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 36px; background: #fff; }
.cs-logos .tile img { max-width: 100%; max-height: 260px; height: auto; width: auto; }
.cs-logos .tile.dark { background: #111; }
.cs-figure-btn img { cursor: zoom-in; }
@media (max-width: 760px) {
  .cs-grid.two, .cs-grid.three, .cs-logos { grid-template-columns: 1fr; }
  .cs-section { padding-top: 40px; padding-bottom: 40px; }
}

/* ---- per-project accent (layout stays the same, branding changes) ---- */
body.theme-bin { --cs-accent: #2f56d0; --cs-accent-soft: #eaeffc; }
body.theme-vca { --cs-accent: #12596a; --cs-accent-soft: #e3eef0; }
body.theme-traveloo { --cs-accent: #2b4fd8; --cs-accent-soft: #fff3cf; }
body { --cs-accent-soft: var(--accent-soft); }

/* ---- at a glance ---- */
.cs-glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.cs-glance .g { padding: 28px 24px 28px 0; }
.cs-glance .g + .g { padding-left: 24px; border-left: 1px solid var(--line); }
.cs-glance .n { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--cs-accent, var(--ink)); }
.cs-glance .t { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin-top: 8px; max-width: 26ch; }

/* ---- flows ---- */
.cs-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.cs-flow h3 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.cs-step { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff; margin-bottom: 8px; line-height: 1.35; }
.cs-step small { display: block; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
.cs-step.manual { border-style: dashed; background: #fdf6f5; color: #7a6360; }
.cs-step.manual::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e4a49a; margin-right: 8px; }
.cs-step.key { border-color: var(--cs-accent); background: var(--cs-accent-soft); color: var(--cs-accent); font-weight: 600; }
.cs-step.key small { color: var(--cs-accent); }
.cs-legend { display: flex; gap: 20px; font-size: 14px; color: var(--slate); margin-top: 4px; }
.cs-callout { margin-top: 24px; padding: 16px 20px; background: var(--paper-dim); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; color: var(--ink-soft); max-width: none; }
.cs-callout strong { color: var(--ink); }

/* ---- small cards ---- */
.cs-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.cs-mini.three { grid-template-columns: repeat(3, 1fr); }
.cs-mini .c { border-top: 2px solid var(--cs-accent, var(--ink)); padding-top: 12px; }
.cs-mini .c b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.cs-mini .c span { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.cs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cs-chips span { font-size: 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; padding: 5px 12px; color: var(--ink-soft); background: #fff; }

/* ---- quotes ---- */
.cs-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.cs-theme h3 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cs-accent); margin: 0 0 12px; }
.cs-quote { background: var(--cs-accent-soft); border-radius: 8px; padding: 14px 16px; font-size: 15px; line-height: 1.5; color: var(--ink); margin-bottom: 10px; }
.cs-theme .take { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }

/* ---- insight rows ---- */
.cs-rows { margin-top: 24px; border-top: 1px solid var(--line); }
.cs-row { display: grid; grid-template-columns: 36px 1.2fr 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cs-row .i { font-family: var(--font-mono); font-size: 14px; color: var(--cs-accent); }
.cs-row .p { font-weight: 600; color: var(--ink); font-size: 16px; }
.cs-row .s { font-size: 14px; color: var(--ink-soft); }
.cs-row .s::before { content: "→ "; color: var(--cs-accent); }
.cs-built { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.cs-built .b { border: 1px solid var(--cs-accent); background: var(--cs-accent-soft); border-radius: 8px; padding: 16px 18px; }
.cs-built .b b { display: block; color: var(--cs-accent); font-size: 16px; margin-bottom: 4px; }
.cs-built .b span { font-size: 14px; color: var(--ink-soft); }
.cs-sublabel { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin: 36px 0 0; max-width: none; }

/* ---- principles ---- */
.cs-principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.cs-principle { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; background: #fff; }
.cs-principle .k { font-family: var(--font-mono); font-size: 14px; color: var(--cs-accent); }
.cs-principle b { display: block; font-size: 19px; margin: 4px 0 6px; color: var(--ink); }
.cs-principle span { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---- before / after ---- */
.cs-swap { margin-top: 24px; border-top: 1px solid var(--line); }
.cs-swap div { display: grid; grid-template-columns: 1fr 30px 1fr; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.cs-swap .from { color: var(--slate); text-decoration: line-through; text-decoration-color: #cfd3cf; }
.cs-swap .arrow { color: var(--cs-accent); text-align: center; }
.cs-swap .to { font-weight: 600; color: var(--ink); }

/* ---- outcomes ---- */
.cs-checks { list-style: none; padding: 0 !important; margin-top: 20px; }
.cs-checks li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); font-size: 17px; }
.cs-checks li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--cs-accent); font-weight: 700; }
.cs-pull { margin: 32px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--cs-accent); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--ink); max-width: 56ch; }
.cs-pull small { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }

/* ---- full slides drawer ---- */
.cs-drawer { margin-top: 0; }
.cs-drawer summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-drawer summary::after { content: "+"; font-size: 22px; color: var(--cs-accent); }
.cs-drawer[open] summary::after { content: "−"; }
.cs-drawer summary::-webkit-details-marker { display: none; }
.cs-drawer .inner { padding-top: 8px; }

/* ---- motion: gentle reveal + hover ---- */
.cs-section .cs-item, .cs-section .cs-card, .cs-section .cs-principle, .cs-glance .g { transition: transform .25s ease, box-shadow .25s ease; }
.cs-principle:hover, .cs-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(38,43,40,.08); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none !important; transform: none !important; } .cs-principle:hover, .cs-card:hover { transform: none; } }

@media (max-width: 900px) {
  .cs-flow { grid-template-columns: repeat(2, 1fr); }
  .cs-mini { grid-template-columns: repeat(2, 1fr); }
  .cs-themes { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cs-glance { grid-template-columns: repeat(2, 1fr); }
  .cs-glance .g { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
  .cs-glance .g:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cs-glance .g:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .cs-built, .cs-principles { grid-template-columns: 1fr; }
  .cs-row { grid-template-columns: 28px 1fr; }
  .cs-row .s { grid-column: 2; }
  .cs-swap div { grid-template-columns: 1fr; gap: 2px; }
  .cs-swap .arrow { text-align: left; }
}
@media (max-width: 480px) { .cs-flow, .cs-mini, .cs-mini.three { grid-template-columns: 1fr; } }
.cs-section p.cs-callout { max-width: none; font-size: 15px; line-height: 1.55; margin: 24px 0 0; }
.cs-section p.cs-sublabel { max-width: none; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin: 36px 0 0; }
.cs-section p.take { font-size: 14px; margin-top: 12px; }
.cs-section .cs-checks li { max-width: 66ch; }
.cs-section blockquote.cs-pull { max-width: 56ch; }

.cs-toggle { display: inline-flex; margin-top: 8px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; }
.cs-toggle button { font: inherit; font-size: 14px; padding: 7px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s; }
.cs-toggle button[aria-pressed="true"] { background: var(--cs-accent, var(--ink)); color: #fff; }
.cs-panel:not([hidden]) { animation: csFade .35s ease; }
@keyframes csFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cs-panel:not([hidden]) { animation: none; } }

/* What I owned */
.cs-owned { padding-top: 32px; padding-bottom: 8px; }
.cs-owned .o-h { display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.cs-owned .o-h p { margin: 0; color: var(--slate); font-size: 15px; max-width: 60ch; }
.cs-owned ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cs-owned li { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.cs-owned li b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--accent, inherit); }
.cs-owned li span { font-size: 14px; color: var(--slate); line-height: 1.5; }
@media (max-width: 900px) { .cs-owned ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cs-owned ul { grid-template-columns: 1fr; } }
.cs-section .cs-mini + h3, .cs-section .cs-grid + h3 { margin-top: 44px; }
.cs-logos.three-up { grid-template-columns: 1.6fr 1fr 1fr; }
.cs-logos.three-up .tile { padding: 28px; }
.cs-logos.three-up .tile img { max-height: 220px; }
.cs-grid.sq .cs-figure { background: #f6f7f9; }
.cs-grid.sq img { object-fit: contain; background: #fff; }
@media (max-width: 760px) { .cs-logos.three-up { grid-template-columns: 1fr; } }
.rh-fig { max-width: 420px; }
