/* Case file pages (/work/*). Builds on styles.css tokens. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); text-wrap: pretty; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-900); }

.cf-kicker { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); }
.cf-back { font-size: 14px; text-decoration: none; }
.cf-hero { display: flex; flex-direction: column; gap: 20px; padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.cf-hero h1 { font-size: clamp(44px, 6.2vw, 88px); line-height: 1.0; letter-spacing: 0.005em; text-transform: uppercase; margin: 0 0 0 -0.052em; max-width: 16ch; }
.cf-lede { font-size: 20px; line-height: 1.5; margin: 0; max-width: 56ch; }

.cf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.cf-stats div { padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 6px; }
.cf-stats strong { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 40px; line-height: 1; }
.cf-stats span { font-size: 14px; color: color-mix(in srgb, var(--color-text) 75%, transparent); }

.cf-section { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px clamp(24px, 5vw, 64px); padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--color-divider); }
.cf-section > h2 { font-size: 28px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }
.cf-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cf-body p { font-size: 17px; line-height: 1.6; margin: 0; max-width: 64ch; }
.cf-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; max-width: 64ch; }
.cf-list li::marker { color: var(--color-accent-700); }
.cf-list b { font-weight: 700; }
@media (max-width: 720px) { .cf-section { grid-template-columns: minmax(0, 1fr); } }

.cf-figure { margin: 8px 0 0; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.cf-bar-label { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.cf-bar { height: 20px; border: 1px solid var(--color-divider); position: relative; }
.cf-steps { display: flex; flex-direction: column; }
.cf-steps div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent); font-size: 15px; }
.cf-steps div:last-child { border-bottom: 0; }
.cf-steps span:first-child { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-700); white-space: nowrap; }
.cf-steps span:last-child { text-align: right; }

.cf-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; padding: clamp(32px, 5vw, 56px) 0; }
.cf-pager a { display: flex; flex-direction: column; gap: 8px; padding: 24px; text-decoration: none; color: var(--color-text); }
.cf-pager a:hover { color: var(--color-accent-700); }
.cf-pager a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.cf-pager h3 { font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.cf-pager .next { text-align: right; align-items: flex-end; }

.cf-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(24px, 4vw, 40px); margin-bottom: 96px; }
.cf-cta h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.05; text-transform: uppercase; margin: 0; }
