/* Case study content styles — embedded in Win98 windows */
:root {
    --bg: #FFFFFF;
    --card-bg: #F2F4F6;
    --text: #1E2428;
    --text-secondary: #4A555E;
    --text-tertiary: #8A949C;
    --border: #DEE2E6;
    --tag-border: #D4D9DE;
    --accent-blue: #3A6A8F;
    --accent-lavender: #9B8CBF;
    --accent-sage: #6DB5A8;
    --accent-sky: #82B5C4;
    --accent-butter: #C4B87A;
    --accent-blue-muted: #B08B9B;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   CASE STUDY PAGES — SHARED
   ============================================================ */
.cs-hero { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 0; position: relative; z-index: 1; text-align: left; width: 100%; }
.cs-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.15; margin-bottom: 0.6rem; max-width: 700px; }
.cs-hero-subtitle { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 700px; line-height: 1.5; }
.cs-hero-subtitle--accent { color: var(--accent-blue); }

/* Meta — default 4 columns, 5-column variant */
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.cs-meta--5 { grid-template-columns: repeat(5, 1fr); }
.cs-meta--borderless { border-bottom: none; padding-bottom: 0; }
.cs-meta-label { font-size: 0.65rem !important; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-blue) !important; margin-bottom: 0.3rem; }
.cs-meta-value { font-size: 0.88rem !important; color: var(--text-secondary) !important; line-height: 1.5; font-weight: 300; overflow-wrap: anywhere; }

.cs-cover { max-width: 1100px; margin: 3rem auto; padding: 0 2rem; }
.cs-cover-inner { width: 100%; aspect-ratio: 16 / 8; background: var(--card-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; overflow: hidden; }
.cs-cover-inner img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-radius: 8px; }

.cs-content { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.cs-section { padding: 3rem 0; border-top: 1px solid var(--border); }
.cs-section:first-of-type { border-top: none; padding-top: 1rem; }
.cs-section:first-child { border-top: none; padding-top: 2rem; }

/* Section label — consistent across scan and full story */
.cs-section-label { font-size: 0.95rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 1.25rem; display: block; }

.cs-section h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.3; margin-bottom: 1.25rem; }
.cs-section h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; line-height: 1.35; margin-bottom: 0.75rem; margin-top: 2rem; }
.cs-section p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; font-weight: 300; margin-bottom: 1rem; }
.cs-section p strong { color: var(--text); font-weight: 500; }
.cs-section p em { font-style: italic; }
.cs-section ul { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.cs-section ul li { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; font-weight: 300; padding-left: 1.1rem; position: relative; margin-bottom: 0.5rem; }
.cs-section ul li::before { content: '–'; position: absolute; left: 0; color: var(--accent-blue); }

.cs-quote { margin: 2rem 0; padding: 1.75rem 2rem; border-left: 2.5px solid var(--accent-blue); }
.cs-quote p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--text); line-height: 1.55; margin-bottom: 0; }
.cs-quote cite { display: block; margin-top: 0.6rem; font-family: var(--sans); font-style: normal; font-size: 0.78rem; color: var(--text-tertiary); }

.cs-outcomes { margin: 2rem 0; padding: 2rem; background: var(--card-bg); border-radius: 12px; }
.cs-outcomes-title { font-size: 0.65rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-blue); margin-bottom: 1.25rem; }
.cs-outcomes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cs-outcome h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.25rem; }
.cs-outcome p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; font-weight: 300; margin-bottom: 0; }

/* Images */
.cs-image { margin: 2rem 0; border-radius: 10px; overflow: hidden; }
.cs-image-inner { border-radius: 12px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); width: 100%; display: block; }
.cs-image-inner img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-radius: 6px; }
.cs-image-placeholder { width: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.cs-image-caption { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 0.6rem; font-weight: 300; }
.cs-image-inline { margin: 2rem 0; }
.cs-image-wide { max-width: 1100px; margin: 3.5rem auto; padding: 0 2rem; width: 100%; align-self: center; }
.cs-image-wide .cs-image-inner { border-radius: 10px; }

.cs-next { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; border-top: 1px solid var(--border); }
.cs-next-label { font-size: 0.65rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); margin-bottom: 0.75rem; }
.cs-next-card { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; transition: gap 0.2s, color 0.2s; }
.cs-next-card:hover { gap: 0.8rem; color: var(--accent-blue); }
.cs-next-arrow { font-size: 1rem; color: var(--text-tertiary); }

/* ============================================================
   SCAN ZONE — case study overview (above the fold)
   ============================================================ */
.scan-zone { min-height: calc(100vh - 57px); display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; }
.scan-inner { max-width: 760px; margin: 2rem auto 0; padding: 0 2rem; }
.scan-overview { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; font-weight: 300; margin-bottom: 1.5rem; }
.scan-problem-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; font-weight: 300; margin-bottom: 0; }
.scan-problem-text strong { color: var(--text); font-weight: 500; }
.scan-callouts-wrap { max-width: 1100px; margin: 3.5rem auto 0; padding: 0 2rem; }
.scan-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Section divider — "Overview" / "Full case study" */
.cs-divider { max-width: 1100px; width: 100%; margin: 1.5rem auto 0; padding: 0 2rem; display: flex; align-items: center; gap: 1rem; }
.cs-divider span { font-size: 0.65rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); white-space: nowrap; }
.cs-divider hr { flex: 1; height: 1px; border: none; background: var(--border); }

/* ============================================================
   CS INSIGHT — numbered callout block
   ============================================================ */
.cs-insight { border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; margin: 10px 0; background: var(--bg); display: flex; gap: 14px; align-items: flex-start; }
.cs-insight-num { font-size: 0.65rem; font-weight: 500; color: var(--accent-blue); background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; flex-shrink: 0; margin-top: 2px; letter-spacing: 0.04em; }
.cs-insight p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.7; max-width: 100%; font-weight: 300; }

/* ============================================================
   CS STAT CARD
   ============================================================ */
.cs-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.25rem 0; }
.cs-stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; }
.cs-stat-card h4 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--text); margin-bottom: 6px; line-height: 1.1; }
.cs-stat-card p { font-size: 0.8rem; color: var(--text-tertiary); margin: 0; max-width: 100%; line-height: 1.5; }

/* ============================================================
   CS TRADEOFF
   ============================================================ */
.cs-tradeoff { margin: 1.75rem 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cs-tradeoff-header { padding: 0.75rem 1.25rem; background: var(--card-bg); border-bottom: 1px solid var(--border); font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); }
.cs-tradeoff-row { display: grid; grid-template-columns: 100px 1fr; border-bottom: 1px solid var(--border); }
.cs-tradeoff-row:last-child { border-bottom: none; }
.cs-tradeoff-badge { padding: 1rem 1.25rem; font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.cs-tradeoff-badge.shipped { color: var(--accent-sage); }
.cs-tradeoff-badge.deferred { color: var(--accent-lavender); }
.cs-tradeoff-body { padding: 1rem 1.25rem; border-left: 1px solid var(--border); font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; font-weight: 300; }

/* ============================================================
   CS ROLE TABLE
   ============================================================ */
.cs-role-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.9rem; }
.cs-role-table tr { border-bottom: 1px solid var(--border); }
.cs-role-table tr:last-child { border-bottom: none; }
.cs-role-table td { padding: 0.65rem 0; vertical-align: top; line-height: 1.5; }
.cs-role-table td:first-child { font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); width: 120px; padding-right: 1.5rem; padding-top: 0.8rem; }
.cs-role-table td:last-child { color: var(--text-secondary); font-weight: 300; }
.cs-outcomes-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.cs-outcomes-table tr { border-bottom: 1px solid var(--border); }
.cs-outcomes-table tr:last-child { border-bottom: none; }
.cs-outcomes-table td { padding: 0.9rem 0; vertical-align: top; line-height: 1.6; }
.cs-outcomes-table td:first-child { font-weight: 500; color: var(--text); width: 200px; padding-right: 1.5rem; }
.cs-outcomes-table td.stat-cell { font-family: var(--serif); font-size: 1.1rem; color: var(--accent-blue); }
.cs-outcomes-table td:last-child { color: var(--text-secondary); font-weight: 300; }

/* ============================================================
   CS PROBLEM STATEMENT
   ============================================================ */
.cs-problem-statement { background: var(--card-bg); border: 1px solid var(--border); border-left: 3px solid var(--accent-sage); border-radius: 0 8px 8px 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.cs-problem-statement p { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--text); line-height: 1.65; margin: 0; max-width: 100%; }

/* ============================================================
   CS DELIVERABLES
   ============================================================ */
.cs-deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-deliverable { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font-size: 0.87rem; color: var(--text-secondary); }
.cs-deliverable-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-blue); flex-shrink: 0; }

/* ============================================================
   CS ROLE ROWS
   ============================================================ */
.cs-role { display: flex; align-items: flex-start; gap: 14px; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cs-role:first-of-type { border-top: 1px solid var(--border); }
.cs-role-icon { width: 32px; height: 32px; background: var(--card-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.cs-role-title { font-size: 0.65rem; font-weight: 500; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.cs-role-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; font-weight: 300; }

/* ============================================================
   CS PHASES — vertical timeline
   ============================================================ */
.cs-phases { display: flex; flex-direction: column; margin: 1.25rem 0; }
.cs-phase { display: flex; gap: 0; position: relative; }
.cs-phase-track { display: flex; flex-direction: column; align-items: center; width: 28px; flex-shrink: 0; }
.cs-phase-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-blue); border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--accent-blue); margin-top: 4px; flex-shrink: 0; z-index: 1; }
.cs-phase-line { width: 2px; flex: 1; background: var(--border); margin: 3px 0; min-height: 18px; }
.cs-phase:last-child .cs-phase-line { display: none; }
.cs-phase-body { padding: 0 0 1.75rem 1rem; flex: 1; }
.cs-phase-label { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 3px; font-weight: 400; }
.cs-phase-title { font-size: 0.92rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.cs-phase-body p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; margin: 0; max-width: 100%; font-weight: 300; }

/* ============================================================
   CS RETRO CARDS
   ============================================================ */
.cs-retro { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1.5rem; }
.cs-retro-card { border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; background: var(--bg); }
.cs-retro-card.went-well  { border-top: 3px solid var(--accent-sage); }
.cs-retro-card.improve    { border-top: 3px solid var(--accent-lavender); }
.cs-retro-card.validated  { border-top: 3px solid var(--accent-sage); }
.cs-retro-card.challenged { border-top: 3px solid var(--accent-lavender); }
.cs-retro-label { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.cs-retro-label::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cs-retro-card.went-well  .cs-retro-label { color: var(--accent-sage); }
.cs-retro-card.improve    .cs-retro-label { color: var(--accent-lavender); }
.cs-retro-card.validated  .cs-retro-label { color: var(--accent-sage); }
.cs-retro-card.challenged .cs-retro-label { color: var(--accent-lavender); }
.cs-retro-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; margin: 0; max-width: 100%; font-weight: 300; }

/* ============================================================
   CS PROTOTYPE EMBED
   ============================================================ */
.cs-proto-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04); margin-top: 1rem; }
.cs-proto-chrome { height: 36px; background: var(--card-bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 14px; gap: 10px; }
.cs-proto-dots { display: flex; gap: 5px; }
.cs-proto-dot { width: 10px; height: 10px; border-radius: 50%; }
.cs-proto-dot:nth-child(1) { background: #ff5f57; }
.cs-proto-dot:nth-child(2) { background: #febc2e; }
.cs-proto-dot:nth-child(3) { background: #28c840; }
.cs-proto-url { flex: 1; font-size: 0.72rem; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-proto-open { font-size: 0.72rem; color: var(--accent-blue); text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: color 0.15s; }
.cs-proto-open:hover { text-decoration: underline; }
.cs-proto-iframe { width: 100%; height: 600px; border: none; display: block; background: var(--card-bg); }

/* Image pair (Combined Product Groups round 1 concepts) */
.cs-image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cs-image-pair .cs-image-pair-group:first-child { padding-right: 20px; border-right: 1px solid var(--border); }
.cs-image-pair .cs-image-pair-group:last-child { padding-left: 20px; }
.cs-image-pair img { width: 100%; display: block; border-radius: 6px; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.cs-image-pair-group { display: flex; flex-direction: column; gap: 6px; }
.cs-image-pair-label { font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 400; }
@media (max-width: 640px) {
  .cs-image-pair { grid-template-columns: 1fr; }
  .cs-image-pair .cs-image-pair-group:first-child { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .cs-image-pair .cs-image-pair-group:last-child { padding-left: 0; padding-top: 20px; }
}

/* ============================================================
   INLINE CODE
   ============================================================ */
code { font-size: 0.88em; background: var(--card-bg); padding: 0.15em 0.4em; border-radius: 4px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

/* ============================================================
   CALLOUT
   ============================================================ */
.callout { margin-bottom: 4rem; padding: 2.5rem; border: 1px solid var(--border); border-radius: 16px; text-align: center; position: relative; z-index: 1; background: rgba(255,255,255,0.4); backdrop-filter: blur(4px); }
.callout p { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; line-height: 1.45; margin-bottom: 0.6rem; }
.callout .callout-sub { font-family: var(--sans); font-size: 0.88rem; color: var(--text-secondary); font-weight: 300; margin-bottom: 1.25rem; }
.callout-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 400; color: var(--text); padding: 0.5rem 1.2rem; border: 1.5px solid var(--text); border-radius: 30px; transition: all 0.3s ease; }
.callout-link:hover { background: var(--text); color: var(--bg); gap: 0.65rem; }


/* ============================================================
   ANIMATIONS
   ============================================================ */

.doc-body .fade-in {
  opacity: 1;
  transform: none;
}
