/* Case study hub + detail pages */
.cs-col { max-width: 880px; margin: 0 auto; }
.cs-hero-label { display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; color: #b85c2e; text-transform: uppercase; }
.cs-hero-label::before { content: ''; width: 18px; height: 1px; background: #b85c2e; display: inline-block; }
.cs-hero h1 { font-size: 50px; font-weight: 500; line-height: 1.06; letter-spacing: -0.03em; margin: 22px 0 20px; }
.cs-hero p { font-size: 17px; line-height: 1.55; color: #5e5d54; max-width: 46ch; }
.cs-index { margin-top: 44px; border-top: 0.5px solid #d4cebe; }
.cs-index a { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 0.5px solid #d4cebe; text-decoration: none; transition: padding-left 0.3s ease; }
.cs-index a:hover { padding-left: 8px; }
.cs-index .ix-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #b85c2e; letter-spacing: 0.1em; flex-shrink: 0; }
.cs-index .ix-title { font-size: 17px; font-weight: 500; color: #1f1d18; }
.cs-index .ix-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #5e5d54; letter-spacing: 0.04em; margin-left: auto; text-align: right; transition: color 0.3s ease; }
.cs-index a:hover .ix-sub { color: #b85c2e; }
.cs-teaser { border-top: 0.5px solid #d4cebe; padding: 40px 0; }
.cs-teaser-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 16px; flex-wrap: wrap; }
.cs-teaser h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.2; }
.cs-teaser p { font-size: 15px; line-height: 1.6; color: #5e5d54; margin: 0 0 14px; max-width: 52ch; }
.cs-teaser-metric { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #1f1d18; letter-spacing: 0.04em; margin-bottom: 14px; }
.cs-read { font-size: 13px; font-weight: 500; color: #1f1d18; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cs-read:hover { color: #b85c2e; }
.cs-crumb { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 28px; }
.cs-crumb a { color: #5e5d54; text-decoration: none; }
.cs-crumb a:hover { color: #b85c2e; }
.cs-next { margin-top: 48px; padding-top: 32px; border-top: 0.5px solid #d4cebe; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.cs-next-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #5e5d54; width: 100%; margin-bottom: 4px; }
.cs-study { border-top: 0.5px solid #d4cebe; padding-top: 56px; margin-top: 8px; scroll-margin-top: 90px; }
.cs-study-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cs-bignum { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #b85c2e; letter-spacing: 0.14em; }
.cs-status { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: #6b7a5a; letter-spacing: 0.06em; text-transform: uppercase; }
.cs-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #6b7a5a; }
.cs-study h1, .cs-study h2 { font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -0.028em; margin: 0 0 14px; }
.cs-metaline { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #5e5d54; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 26px; }
.cs-metaline span b { color: #1f1d18; font-weight: 500; }
.cs-lead { font-size: 18px; line-height: 1.5; color: #1f1d18; letter-spacing: -0.01em; margin-bottom: 8px; }
.cs-label { display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #b85c2e; margin: 44px 0 16px; }
.cs-label::before { content: ''; width: 16px; height: 1px; background: #b85c2e; display: inline-block; }
.cs-body p { font-size: 15.5px; line-height: 1.68; color: #43413a; margin-bottom: 16px; }
.cs-subh { font-size: 13px; font-weight: 500; color: #1f1d18; margin: 24px 0 8px; }
.cs-body strong { color: #1f1d18; font-weight: 500; }
.cs-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.cs-table th { text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.09em; text-transform: uppercase; color: #5e5d54; font-weight: 400; padding: 0 0 11px; border-bottom: 0.5px solid #d4cebe; }
.cs-table th.n { text-align: right; }
.cs-table td { padding: 13px 0; border-bottom: 0.5px solid #e6dfcf; font-size: 14px; vertical-align: top; }
.cs-table td.metric { color: #1f1d18; padding-right: 18px; line-height: 1.4; }
.cs-table td.before { text-align: right; color: #a39e92; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; white-space: nowrap; padding-left: 14px; }
.cs-table td.after { text-align: right; color: #b85c2e; font-weight: 500; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; white-space: nowrap; padding-left: 14px; }
.cs-table tr:hover td { background: rgba(184, 92, 46, 0.035); }
.cs-bad { padding: 2px 0 2px 16px; border-left: 1.5px solid #d8a98c; margin-bottom: 18px; }
.cs-bad p { margin: 0; font-size: 15px; line-height: 1.62; color: #43413a; }
.cs-bad p b { color: #1f1d18; font-weight: 500; }
.cs-lessons { list-style: none; padding: 0; margin: 0; }
.cs-lessons li { position: relative; padding-left: 22px; margin-bottom: 16px; font-size: 15px; line-height: 1.62; color: #43413a; }
.cs-lessons li::before { content: ''; position: absolute; left: 0; top: 10px; width: 9px; height: 1.5px; background: #b85c2e; }
.cs-lessons li b { color: #1f1d18; font-weight: 500; }
.cs-end { border-top: 0.5px solid #d4cebe; margin-top: 60px; padding-top: 40px; text-align: center; }
.cs-end h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px; }
.cs-end p { font-size: 15px; color: #5e5d54; margin-bottom: 24px; }
.cs-end .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cs-pill { background: #1f1d18; color: #f5f2ea; padding: 13px 24px; border-radius: 24px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cs-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(31,29,24,0.4); }
.cs-ghost { border: 0.5px solid #1f1d18; color: #1f1d18; padding: 13px 24px; border-radius: 24px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: background 0.3s ease, color 0.3s ease; }
.cs-ghost:hover { background: #1f1d18; color: #f5f2ea; }
.ft-link { color: #d4cebe; text-decoration: none; position: relative; transition: color 0.25s ease; }
.ft-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: #b85c2e; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.ft-link:hover { color: #f5f2ea; }
.ft-link:hover::after { transform: scaleX(1); }
.ft-totop { cursor: pointer; transition: color 0.25s ease; }
.ft-totop:hover { color: #b85c2e; }
.brand svg polygon { transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.brand:hover svg g polygon:nth-child(-n+3) { transform: translateY(2.5px); }
.brand:hover svg g polygon:nth-child(n+7) { transform: translateY(-2.5px); }
.brand:hover svg > .logo-peak { transform: translateY(-4px); }
.cta-btn { transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(31, 29, 24, 0.35); }
.cta-arrow { display: inline-block; max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; vertical-align: middle; transform: translateX(-4px); transition: max-width 0.3s ease, margin-left 0.3s ease, opacity 0.3s ease, transform 0.3s ease; }
.cta-btn:hover .cta-arrow { max-width: 16px; margin-left: 7px; opacity: 1; transform: translateX(0); }
.nav-contact { border: 0.5px solid #1f1d18; color: #1f1d18; background: transparent; padding: 7px 16px; border-radius: 22px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; display: inline-block; transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.nav-contact:hover { background: #1f1d18; color: #f5f2ea; transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(31, 29, 24, 0.25); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .cs-hero h1 { font-size: 34px; }
  .cs-study h1, .cs-study h2 { font-size: 26px; }
  .cs-table td.metric { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }
