  .hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem 3rem 5rem; position: relative; overflow: hidden; }
  .hero-accent-bar { position: absolute; top: 110px; left: 3rem; width: 32px; height: 3px; background: var(--accent); }
  .hero-eyebrow { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1.25rem; opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s; }
  .hero-headline { font-family: var(--font-display); font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--text-primary); max-width: 680px; margin-bottom: 1.75rem; opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s; }
  .hero-headline em { font-style: italic; color: var(--accent); }
  .hero-sub { font-size: 1rem; line-height: 1.75; color: var(--text-secondary); max-width: 500px; margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s; }
  .hero-stats { display: flex; gap: 3rem; margin-bottom: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); opacity: 0; animation: fadeUp 0.8s ease forwards 0.8s; }
  .hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1; }
  .hero-stat-label { font-size: 0.75rem; color: var(--text-dim); margin-top: 5px; }
  .hero-cta { display: flex; gap: 1rem; align-items: center; opacity: 0; animation: fadeUp 0.8s ease forwards 1s; }
  .btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--text-primary); color: var(--bg); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; padding: 0.8rem 1.6rem; border-radius: 3px; text-decoration: none; transition: background 0.2s, transform 0.2s; }
  .btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
  .btn-ghost { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.8125rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: color 0.2s; }
  .btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
  .hero-scroll { position: absolute; bottom: 2rem; right: 3rem; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: fadeIn 1s ease forwards 1.4s; }
  .hero-scroll span { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); writing-mode: vertical-rl; }
  .scroll-line { width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent); animation: scrollLine 2s ease infinite; }
  @keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

  .work { padding: 4rem 3rem; }
  .section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 3rem; }
  .section-eyebrow { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
  .section-line { flex: 1; height: 1px; background: var(--border); }

  .project-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; text-decoration: none; transition: border-color 0.3s, box-shadow 0.3s; margin-bottom: 12px; cursor: pointer; }
  .project-card:hover { border-color: var(--accent); box-shadow: 0 4px 24px rgba(155,123,92,0.08); }
  .project-card:hover .project-arrow { transform: translate(4px,-4px); color: var(--accent); }
  .project-card:hover .project-thumb-inner:not(.project-thumb-inner--bleed) { transform: scale(1.02); }
  .project-info { padding: 2.5rem 2.5rem 2rem; display: flex; flex-direction: column; justify-content: space-between; }
  .project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.5rem; }
  .tag { display: inline-block; background: transparent; color: var(--text-secondary); font-size: 0.625rem; font-weight: 500; padding: 3px 8px; border-radius: 99px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--border); }
  .project-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-primary); margin-bottom: 0.75rem; }
  .project-desc { font-size: 0.875rem; line-height: 1.65; color: var(--text-secondary); margin-bottom: 1.5rem; }
  .project-impact { font-size: 0.75rem; font-weight: 500; color: var(--accent); padding: 0.6rem 0; border-top: 1px solid var(--border); }
  .project-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
  .project-company { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.04em; }
  .project-arrow { font-size: 1rem; color: var(--text-dim); transition: transform 0.3s, color 0.3s; }
  .project-thumb { overflow: hidden; background: var(--surface-2); position: relative; }
  .project-thumb-inner { position: absolute; inset: 0; transition: transform 0.6s ease; }

  /* Full-bleed thumbs — fit entire visual (no crop) */
  .project-thumb-inner--bleed {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow: hidden;
  }
  .project-thumb-bleed-img,
  .project-thumb-bleed-media {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: none;
    transition: transform 0.6s ease;
    transform-origin: center center;
    flex-shrink: 0;
  }
  .project-thumb-bleed-img {
    object-fit: cover;
    object-position: center center;
  }
  .project-card:hover .project-thumb-inner--bleed { transform: none; }
  .project-card:hover .project-thumb-bleed-img,
  .project-card:hover .project-thumb-bleed-media { transform: scale(1.05); }

  .thumb-1 { background: linear-gradient(135deg, #EDE8DF 0%, #DDD5C8 50%, #E8E2D8 100%); }
  .thumb-2 { background: linear-gradient(135deg, #E2DDD4 0%, #D8D0C5 50%, #DDD8CE 100%); }
  .thumb-3 { background: linear-gradient(135deg, #E8E3DA 0%, #DDD5C5 50%, #E5E0D6 100%); }
  .thumb-4 { background: linear-gradient(135deg, #DDD8CE 0%, #D5CEC3 50%, #E0DAD0 100%); }
  .thumb-mockup { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 2rem; }
  .mock-window { width: 100%; max-width: 320px; background: rgba(250,250,248,0.95); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: 0 8px 32px rgba(26,25,22,0.12); }
  .mock-topbar { background: var(--surface); padding: 8px 12px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); }
  .mock-dot { width: 7px; height: 7px; border-radius: 50%; }
  .mock-dot-r { background: #D9B8A8; } .mock-dot-y { background: #D9CBA8; } .mock-dot-g { background: #B8D9C0; }
  .mock-title { font-size: 9px; color: var(--text-dim); margin-left: 4px; font-family: monospace; }
  .mock-body { padding: 14px; }
  .mock-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(221,217,207,0.6); }
  .mock-row:last-child { border-bottom: none; }
  .mock-label { font-size: 8px; color: var(--text-dim); font-family: monospace; }
  .mock-val { font-size: 8px; color: var(--accent); font-family: monospace; }
  .mock-chart { height: 48px; display: flex; align-items: flex-end; gap: 3px; margin: 10px 0 6px; }
  .mock-bar { flex: 1; background: rgba(155,123,92,0.15); border-radius: 2px 2px 0 0; border-top: 1px solid rgba(155,123,92,0.5); }
  .mock-tag-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
  .mock-tag { background: rgba(155,123,92,0.1); color: var(--accent); font-size: 7px; padding: 2px 6px; border-radius: 99px; font-family: monospace; border: 1px solid rgba(155,123,92,0.25); }
  .mock-ai-row { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0; }
  .mock-ai-icon { width: 16px; height: 16px; border-radius: 50%; background: rgba(155,123,92,0.15); border: 1px solid rgba(155,123,92,0.3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 7px; color: var(--accent); }
  .mock-ai-bubble { background: rgba(155,123,92,0.07); border: 1px solid rgba(155,123,92,0.18); border-radius: 0 6px 6px 6px; padding: 5px 8px; font-size: 7px; color: var(--text-secondary); font-family: monospace; line-height: 1.5; flex: 1; }

  .overlay { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
  .overlay.active { opacity: 1; pointer-events: all; }
  .overlay-nav { position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 1.25rem 3rem; display: flex; justify-content: space-between; align-items: center; z-index: 10; }
  .overlay-back { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-secondary); cursor: pointer; background: none; border: none; font-family: var(--font-body); transition: color 0.2s; }
  .overlay-back:hover { color: var(--accent); }
  .overlay-content { max-width: 760px; margin: 0 auto; padding: 4rem 3rem 8rem; }

  .cs-eyebrow { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; }
  .cs-title { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 1.5rem; }
  .cs-impact-bar { background: rgba(155,123,92,0.07); border-left: 3px solid var(--accent); padding: 1.25rem 1.5rem; margin: 2rem 0; border-radius: 0 4px 4px 0; }
  .cs-impact-bar p { font-size: 1.0625rem; line-height: 1.75; color: var(--text-primary); font-family: var(--font-body); font-style: normal; font-weight: 400; }
  .cs-contribution { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem; margin: 2rem 0; }
  .cs-contribution-title { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
  .cs-contribution ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
  .cs-contribution li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }
  .cs-contribution li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }
  .cs-h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; color: var(--text-primary); margin: 3rem 0 1rem; }
  .cs-body { font-size: 0.9375rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1rem; }
  .cs-principle { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem 1.5rem; margin-bottom: 10px; }
  .cs-principle-title { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
  .cs-principle-sub { font-size: 0.75rem; color: var(--text-dim); font-style: italic; margin-bottom: 0.75rem; }
  .cs-principle-body { font-size: 0.875rem; line-height: 1.65; color: var(--text-secondary); }
  .cs-level { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem 1.5rem; margin-bottom: 10px; }
  .cs-level-badge { display: inline-block; font-size: 0.625rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; margin-bottom: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
  .badge-l1 { background: rgba(155,123,92,0.12); color: #A06830; }
  .badge-l2 { background: rgba(107,105,96,0.1); color: #4A4840; }
  .badge-l3 { background: rgba(155,123,92,0.18); color: var(--accent); }
  .cs-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

  .cs-spec-block { margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
  .cs-spec-label { display: flex; align-items: center; gap: 10px; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); background: rgba(155,123,92,0.05); }
  .cs-spec-tag { font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: 2px 7px; border-radius: 3px; }
  .cs-spec-title { font-size: 0.8125rem; font-weight: 500; color: var(--text-primary); }
  .cs-spec-caption { font-size: 0.8125rem; line-height: 1.6; color: var(--text-dim); padding: 0.75rem 1.25rem 0; font-style: italic; }
  .cs-spec-img-wrap { padding: 1.25rem; }
  .cs-spec-img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); display: block; }

  rect { padding-left: 2px; padding-right: 2px; }

  /* cs2 pillar thumb animation — slate blue theme */
  .thumb-2.cs2-thumb-active {
    --cs2-accent: #1d6fb8;
    --cs2-accent-deep: #155a96;
    --cs2-accent-soft: rgba(29, 111, 184, 0.1);
    --cs2-accent-soft-2: rgba(29, 111, 184, 0.08);
    --cs2-accent-border: rgba(29, 111, 184, 0.22);
    --cs2-border: #d4e0ec;
    --cs2-text-label: #6b849c;
    --cs2-text-body: #3d5568;
  }
  .project-thumb-inner--bleed .cs2-mock {
    width: 100%;
    max-width: 340px;
    max-height: 100%;
    height: auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(21, 90, 150, 0.1);
    border: 1px solid var(--cs2-border);
    display: flex;
    flex-direction: column;
  }
  .cs2-mock-chrome {
    padding: 6px 12px;
    background: #f7fafc;
    border-bottom: 1px solid var(--cs2-border);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .cs2-mock-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
  .cs2-mock-dot--r { background: #e8b4b4; }
  .cs2-mock-dot--y { background: #e8d4a8; }
  .cs2-mock-dot--g { background: #b8dcc4; }
  .cs2-mock-title {
    font-size: 9px;
    color: var(--cs2-text-label);
    margin-left: 4px;
    font-family: Inter, sans-serif;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .cs2-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    padding: 6px 10px 0;
  }
  .cs2-tab {
    text-align: center;
    font-size: 7px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    padding: 3px 2px;
    border-radius: 99px;
    color: var(--cs2-accent);
    background: var(--cs2-accent-soft-2);
    border: 0.7px solid var(--cs2-accent-border);
    animation-duration: 16s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }
  .cs2-tab--1 { animation-name: cs2Tab1; }
  .cs2-tab--2 { animation-name: cs2Tab2; }
  .cs2-tab--3 { animation-name: cs2Tab3; }
  .cs2-tab--4 { animation-name: cs2Tab4; }
  .cs2-pillar-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 12px;
  }
  .cs2-pillar-group {
    position: absolute;
    inset: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    opacity: 0;
    transform: translateY(8px);
    animation: cs2PillarShow 16s ease-in-out infinite;
    pointer-events: none;
  }
  .cs2-pillar-group--1 { animation-delay: 0s; z-index: 4; }
  .cs2-pillar-group--2 { animation-delay: 4s; z-index: 3; }
  .cs2-pillar-group--3 { animation-delay: 8s; z-index: 2; }
  .cs2-pillar-group--4 { animation-delay: 12s; z-index: 1; }
  .cs2-group-label {
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cs2-text-label);
    font-family: Inter, sans-serif;
    padding-left: 2px;
  }
  .cs2-mini {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    border-radius: 5px;
    flex: 1;
    background: #fff;
    border: 1px solid var(--cs2-border);
    box-shadow: 0 1px 4px rgba(21, 90, 150, 0.05);
  }
  .cs2-mini-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs2-accent-soft);
    border: 1px solid var(--cs2-accent-border);
    color: var(--cs2-accent);
  }
  .cs2-mini-icon svg { width: 11px; height: 11px; }
  .cs2-mini-icon--ai { background: rgba(29, 111, 184, 0.14); }
  .cs2-mini-name {
    font-size: 8px;
    font-weight: 700;
    color: #1a2d3d;
    font-family: Inter, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }
  .cs2-mini-meta {
    font-size: 7px;
    color: var(--cs2-text-label);
    font-family: Inter, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .cs2-mini-badge {
    font-size: 6.5px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    padding: 2px 6px;
    border-radius: 99px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .cs2-badge-good { background: #e6f4ea; color: #1e8e3e; }
  .cs2-badge-warn { background: #fef3e0; color: #b26a1a; }
  .cs2-badge-prog { background: var(--cs2-accent-soft); color: var(--cs2-accent); }
  .cs2-badge-alert { background: #fdecec; color: #c4392a; }
  .cs2-pillar-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs2-accent-soft);
    border: 1px solid var(--cs2-accent-border);
    color: var(--cs2-accent);
  }
  .cs2-pillar-icon svg { width: 14px; height: 14px; }
  .cs2-pillar-icon--ai { background: rgba(29, 111, 184, 0.14); }
  .cs2-pillar-content {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 1px;
    align-content: center;
  }
  .cs2-pillar-label {
    font-size: 6px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cs2-text-label);
    font-family: Inter, sans-serif;
    grid-column: 1 / -1;
  }
  .cs2-pillar-headline {
    font-size: 9px;
    font-weight: 700;
    color: #1a2d3d;
    font-family: Inter, sans-serif;
    line-height: 1.2;
    grid-column: 1 / -1;
  }
  svg.project-thumb-bleed-media {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 320 / 240;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  }
  svg.project-thumb-bleed-media.cs2-sketch {
    max-width: 100%;
    aspect-ratio: 720 / 260;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(160, 96, 32, 0.18);
  }
  .project-thumb-inner--bleed .cs2-pillar-headline { font-size: 11px; }
  .project-thumb-inner--bleed .cs2-pillar-label { font-size: 7px; }
  .project-thumb-inner--bleed .cs2-tab { font-size: 8px; padding: 4px 2px; }
  .project-thumb-inner--bleed .cs4-kanban-header { font-size: 8px; }
  .project-thumb-inner--bleed .cs4-kanban-card { font-size: 7px; }
  .cs2-pillar-detail {
    font-size: 7px;
    color: var(--cs2-text-body);
    font-family: Inter, sans-serif;
    line-height: 1.3;
    grid-column: 1 / -1;
    margin-bottom: 1px;
  }
  .cs2-pillar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 1 / -1;
  }
  .cs2-pillar-row span {
    font-size: 6.5px;
    font-family: Inter, sans-serif;
    color: var(--cs2-text-label);
  }
  .cs2-pillar-row em {
    font-style: normal;
    font-weight: 600;
    font-size: 6.5px;
    font-family: Inter, sans-serif;
    color: var(--cs2-accent);
    text-align: right;
  }
  .cs2-pillar-warn { color: #c45a2a !important; }
  .cs2-pillar-ai {
    font-size: 6.5px;
    line-height: 1.3;
    color: #1a2d3d;
    background: var(--cs2-accent-soft-2);
    border: 1px solid var(--cs2-accent-border);
    border-radius: 99px;
    padding: 2px 8px;
    margin: 0;
    font-family: Inter, sans-serif;
    grid-column: 1 / -1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cs2-pillar-progress {
    height: 3px;
    border-radius: 99px;
    background: rgba(29, 111, 184, 0.12);
    margin: 0;
    overflow: hidden;
    grid-column: 1 / -1;
  }
  .cs2-pillar-progress span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cs2-accent), #4a9ad4);
  }
  .cs2-impact-strip {
    display: flex;
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--cs2-border);
  }
  .cs2-impact-strip span {
    flex: 1;
    text-align: center;
    font-size: 6.5px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    color: #fff;
    padding: 5px 8px;
    border-radius: 0;
    background: var(--cs2-accent);
  }
  .cs2-impact-strip span:last-child { background: var(--cs2-accent-deep); }
  @keyframes cs2PillarShow {
    0%, 2% { opacity: 0; transform: translateY(8px) scale(0.98); }
    4%, 22% { opacity: 1; transform: translateY(0) scale(1); }
    24%, 25% { opacity: 0; transform: translateY(-6px) scale(0.98); }
    26%, 100% { opacity: 0; transform: translateY(8px) scale(0.98); }
  }
  @keyframes cs2Tab1 {
    0%, 22% { background: var(--cs2-accent); color: #fff; border-color: var(--cs2-accent); }
    23%, 100% { background: var(--cs2-accent-soft-2); color: var(--cs2-accent); border-color: var(--cs2-accent-border); }
  }
  @keyframes cs2Tab2 {
    0%, 22% { background: var(--cs2-accent-soft-2); color: var(--cs2-accent); }
    23%, 47% { background: var(--cs2-accent); color: #fff; border-color: var(--cs2-accent); }
    48%, 100% { background: var(--cs2-accent-soft-2); color: var(--cs2-accent); }
  }
  @keyframes cs2Tab3 {
    0%, 47% { background: var(--cs2-accent-soft-2); color: var(--cs2-accent); }
    48%, 72% { background: var(--cs2-accent); color: #fff; border-color: var(--cs2-accent); }
    73%, 100% { background: var(--cs2-accent-soft-2); color: var(--cs2-accent); }
  }
  @keyframes cs2Tab4 {
    0%, 72% { background: var(--cs2-accent-soft-2); color: var(--cs2-accent); }
    73%, 97% { background: var(--cs2-accent); color: #fff; border-color: var(--cs2-accent); }
    98%, 100% { background: var(--cs2-accent-soft-2); color: var(--cs2-accent); }
  }
  @media (prefers-reduced-motion: reduce) {
    .cs2-pillar-card { animation: none; opacity: 0; }
    .cs2-pillar-card--1 { opacity: 1; transform: none; }
    .cs2-pillar-card--2,
    .cs2-pillar-card--3,
    .cs2-pillar-card--4 { display: none; }
    .cs2-tab { animation: none; }
    .cs2-tab--1 { background: var(--cs2-accent); color: #fff; }
  }

  /* cs4 kanban thumb animation */
  .project-thumb-inner--bleed .cs4-mock {
    width: 100%;
    max-width: 340px;
    max-height: 100%;
    height: auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(60, 30, 90, 0.12);
    border: 1px solid #ddd6eb;
    display: flex;
    flex-direction: column;
  }
  .cs4-mock-chrome {
    padding: 8px 12px;
    background: #f6f4fa;
    border-bottom: 1px solid #e0d8ec;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .cs4-mock-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
  .cs4-mock-dot--r { background: #e8b4b4; }
  .cs4-mock-dot--y { background: #e8d4a8; }
  .cs4-mock-dot--g { background: #b8dcc4; }
  .cs4-mock-title {
    font-size: 9px;
    color: #8060a8;
    margin-left: 4px;
    font-family: Inter, sans-serif;
    font-weight: 500;
  }
  .cs4-kanban-headers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    padding: 10px 10px 0;
  }
  .cs4-kanban-header {
    border-radius: 4px;
    padding: 5px 7px;
    font-size: 7px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-top: 3px solid transparent;
    transition: background-color 0.3s ease;
  }
  .cs4-kanban-header--todo { background: #f4f5f7; color: #676879; border-top-color: #c4c4c4; }
  .cs4-kanban-header--progress { background: #e8f0fe; color: #1a73e8; border-top-color: #1a73e8; }
  .cs4-kanban-header--done { background: #e6f4ea; color: #1e8e3e; border-top-color: #1e8e3e; }
  .cs4-kanban-board {
    --cs4-col-w: calc((100% - 30px) / 3);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    padding: 6px 10px 0;
    min-height: 78px;
    flex: 1 1 auto;
  }
  .cs4-kanban-col {
    border-radius: 4px;
    padding: 4px;
    min-height: 72px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .cs4-kanban-col--todo { background: #f4f5f7; }
  .cs4-kanban-col--progress { background: #e8f0fe; }
  .cs4-kanban-col--done { background: #e6f4ea; }
  .cs4-kanban-card {
    background: #fff;
    border-radius: 3px;
    padding: 4px 5px;
    font-size: 6px;
    color: #323338;
    font-family: Inter, sans-serif;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    border-left: 2px solid #c4c4c4;
  }
  .cs4-kanban-card--done {
    border-left-color: #1e8e3e;
    opacity: 0.85;
  }
  .cs4-kanban-card--ghost {
    border: 1px dashed rgba(26, 115, 232, 0.25);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: none;
    min-height: 18px;
    animation: cs4KanbanGhost 8s ease-in-out infinite;
  }
  .cs4-kanban-card--moving {
    position: absolute;
    top: 10px;
    left: 10px;
    width: var(--cs4-col-w);
    z-index: 3;
    margin: 0;
    transform-origin: left center;
    animation: cs4KanbanCardMove 8s ease-in-out infinite;
    will-change: transform, opacity;
  }
  .cs4-kanban-card--moving-2 {
    top: 32px;
    animation-delay: 4s;
  }
  .cs4-kanban-spec {
    position: relative;
    padding: 8px 10px 10px;
    flex-shrink: 0;
  }
  .project-thumb-inner--bleed .cs4-kanban-spec-img {
    height: 70px;
  }
  .project-thumb-inner--bleed .cs4-kanban-spec-img img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: fill;
    transform: translateY(-27%);
  }
  .cs4-kanban-spec-img {
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #e8e4f0;
    background: #faf9fc;
    height: 70px;
  }
  .cs4-kanban-spec-img img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(-27%);
  }
  .cs4-kanban-inset {
    position: absolute;
    bottom: 6px;
    right: 14px;
    width: 68px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd6eb;
    box-shadow: 0 4px 12px rgba(60, 30, 90, 0.15);
    background: #fff;
  }
  .cs4-kanban-inset img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: left top;
    max-height: 58px;
  }
  @keyframes cs4KanbanCardMove {
    /* To Do — hold */
    0%, 6% {
      transform: translateX(0) scale(1);
      opacity: 1;
      border-left-color: #c4c4c4;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    /* Slide → In Progress */
    16% {
      transform: translateX(calc(100% + 5px)) scale(1.04);
      opacity: 1;
      border-left-color: #1a73e8;
      box-shadow: 0 6px 16px rgba(26, 115, 232, 0.28);
    }
    /* In Progress — hold */
    16%, 34% {
      transform: translateX(calc(100% + 5px)) scale(1.04);
      opacity: 1;
      border-left-color: #1a73e8;
      box-shadow: 0 6px 16px rgba(26, 115, 232, 0.28);
    }
    /* Slide → Done */
    44% {
      transform: translateX(calc(200% + 10px)) scale(1);
      opacity: 1;
      border-left-color: #1e8e3e;
      box-shadow: 0 2px 8px rgba(30, 142, 62, 0.2);
    }
    /* Done — hold */
    44%, 58% {
      transform: translateX(calc(200% + 10px)) scale(1);
      opacity: 1;
      border-left-color: #1e8e3e;
      box-shadow: 0 2px 8px rgba(30, 142, 62, 0.2);
    }
    /* Complete & fade */
    64%, 66% {
      transform: translateX(calc(200% + 10px)) scale(0.96);
      opacity: 0;
    }
    /* Reset to To Do */
    67%, 68% {
      transform: translateX(0) scale(1);
      opacity: 0;
      border-left-color: #c4c4c4;
      box-shadow: none;
    }
    72%, 100% {
      transform: translateX(0) scale(1);
      opacity: 1;
      border-left-color: #c4c4c4;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
  }
  @keyframes cs4KanbanGhost {
    0%, 8%, 38%, 58%, 72%, 100% { opacity: 0.25; }
    18%, 32% { opacity: 0.95; }
  }
  @media (prefers-reduced-motion: reduce) {
    .cs4-kanban-card--moving,
    .cs4-kanban-card--ghost {
      animation: none;
    }
    .cs4-kanban-card--moving-2 {
      display: none;
    }
  }

