/* Case studies. Built on the tokens in styles.css; each page sets --accent on <body>. */
.case-body { --accent: #8fb4ff; --accent-ink: #050608; --warn: #ff7a66; }

.cs-wrap { max-width: 1740px; margin: 0 auto; padding: 0 clamp(18px, 3vw, 32px); }
.cs-section { padding: clamp(72px, 9vw, 140px) 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.cs-label { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.cs-head { margin-bottom: clamp(30px, 4vw, 56px); }
.cs-head .cs-label { color: var(--accent); }
.cs-head h2 { max-width: 1150px; margin: 16px 0 0; font-size: clamp(2.4rem, 5.2vw, 5.4rem); line-height: .96; letter-spacing: -.06em; font-weight: 500; }
.cs-lead { max-width: 980px; margin: 0 0 clamp(36px, 4vw, 60px); color: #d9d9d6; font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.28; letter-spacing: -.035em; }
.cs-prose p { max-width: 760px; color: #cfcfcb; font-size: 1.12rem; line-height: 1.6; }
.cs-subhead { margin: clamp(56px, 6vw, 88px) 0 22px; }
.cs-subhead:first-child { margin-top: 0; }
.cs-subhead h3 { margin: 0 0 6px; font-size: clamp(1.3rem, 1.9vw, 1.8rem); font-weight: 500; letter-spacing: -.035em; }
.cs-subhead p { max-width: 640px; margin: 0; color: var(--muted); line-height: 1.5; }
.cs-note { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.cs-tag { display: inline-block; margin-bottom: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.cs-tag.is-accent { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.cs-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
.cs-split:first-child { margin-top: 0; }

/* At a glance */
.cs-glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.cs-glance > div { padding-top: 20px; border-top: 2px solid var(--accent); }
.cs-glance .cs-label { color: var(--accent); }
.cs-glance p { margin: 14px 0 0; color: #dcdcd8; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; letter-spacing: -.02em; }

/* Figures */
.cs-figure { margin: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.cs-zoom { display: block; flex: 1; width: 100%; padding: 0; border: 0; background: #0d0d0d; cursor: zoom-in; }
.cs-figure img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.cs-figure:not(.is-contain):hover img { transform: scale(1.02); }
.cs-figure.is-contain img { object-fit: contain; padding: clamp(10px, 1.6vw, 22px); }
.cs-figure.is-light .cs-zoom { background: #ececea; }
.cs-figure figcaption { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; line-height: 1.4; }
.cs-figure.is-banner { margin-top: clamp(16px, 2vw, 24px); }
.cs-figure.is-banner img { aspect-ratio: auto; height: auto; max-height: 86vh; }
.cs-zoom:focus-visible, .case-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cs-grid { display: grid; gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(16px, 2vw, 24px); }
.cs-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cs-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cs-grid.is-compact { max-width: 960px; }

/* Phones */
.cs-phones { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.cs-phones figure { margin: 0; }
.cs-phones .cs-zoom { padding: clamp(10px, 1.1vw, 16px); border: 1px solid var(--line); border-radius: 26px; background: #0d0d0d; }
.cs-phones img { display: block; width: 100%; aspect-ratio: 440 / 956; object-fit: cover; object-position: top; border-radius: 16px; }
.cs-phones figcaption { margin-top: 12px; color: var(--muted); font-size: .9rem; line-height: 1.4; }

/* Numbers */
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.cs-stats strong, .hx-checks strong { display: block; font-size: clamp(2.8rem, 5.5vw, 5.4rem); line-height: .9; letter-spacing: -.065em; font-weight: 500; }
.cs-stats span, .hx-checks span { display: block; max-width: 220px; margin-top: 10px; color: var(--muted); line-height: 1.4; }

.cs-quote { margin: 0; padding: clamp(28px, 4vw, 56px); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 22px; background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.cs-quote p { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3.3rem); line-height: 1.04; letter-spacing: -.05em; }
.cs-quote footer { max-width: 560px; margin-top: 22px; color: #bdbdb9; line-height: 1.5; }
.cs-section > .cs-wrap > .cs-quote { margin-top: clamp(40px, 5vw, 72px); }

/* Bars and dots: real values only */
.cs-bar { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr 64px; gap: 18px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cs-bar span { color: #d6d6d2; }
.cs-bar-track { height: 12px; overflow: hidden; border-radius: 99px; background: #1c1c1c; }
.cs-bar-track i { display: block; width: var(--v); height: 100%; border-radius: inherit; background: var(--accent); transition: width 1s cubic-bezier(.2, .8, .2, 1) .15s; }
.js .cs-bars:not(.visible) .cs-bar-track i { width: 0; }
.cs-bar b { justify-self: end; font-size: 1.35rem; font-weight: 500; }
.cs-dots-row { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr 70px; gap: 18px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cs-dots-row b { display: block; font-weight: 500; }
.cs-dots-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .85rem; }
.cs-dots-set { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-dots-set i { width: 15px; height: 15px; border-radius: 50%; background: #262626; transition: background .4s ease; }
.cs-dots-set i.on { background: var(--accent); }
.js .cs-dots:not(.visible) .cs-dots-set i.on { background: #262626; }
.cs-dots-row strong { justify-self: end; font-size: 1.5rem; font-weight: 500; }
.cs-dots-row strong small { display: inline; color: var(--muted); font-size: .9rem; }

/* Matrix */
.cs-matrix-scroll { overflow-x: auto; }
.cs-matrix { width: 100%; min-width: 520px; border-collapse: collapse; }
.cs-matrix th, .cs-matrix td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.cs-matrix thead th { color: var(--muted); font-size: .76rem; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; }
.cs-matrix th[scope="row"], .cs-matrix thead th:first-child { text-align: left; font-weight: 400; }
.cs-matrix th[scope="row"] { color: #d6d6d2; }
.cs-mark { display: inline-block; vertical-align: middle; border-radius: 50%; }
.cs-mark.is-yes, .cs-mark.is-high { width: 18px; height: 18px; background: var(--accent); }
.cs-mark.is-medium { width: 12px; height: 12px; background: color-mix(in srgb, var(--accent) 55%, #333); }
.cs-mark.is-low { width: 7px; height: 7px; background: #555; }
.cs-mark.is-no { width: 16px; height: 16px; border: 1.5px solid #4a4a4a; }
.cs-matrix em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Before / after */
.cs-pair, .hx-compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); margin-bottom: 8px; }
.hx-compare { grid-template-columns: repeat(3, 1fr); }

.cs-responses article { display: grid; grid-template-columns: 100px 1fr 32px 1fr; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cs-responses p { margin: 0; color: var(--muted); line-height: 1.5; }
.cs-responses .cs-res { color: var(--ink); }
.cs-responses i { color: var(--accent); font-style: normal; }
.cs-sev { justify-self: start; padding: 5px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.cs-sev.is-critical { border-color: transparent; background: var(--ink); color: #080808; }
.cs-sev.is-high { border-color: transparent; background: color-mix(in srgb, var(--accent) 28%, #1a1a1a); }

.cs-decisions { margin: 0; padding: 0; list-style: none; counter-reset: decision; border-top: 1px solid var(--line); }
.cs-decisions li { display: grid; grid-template-columns: 64px .9fr 1.1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); counter-increment: decision; }
.cs-decisions li::before { content: counter(decision, decimal-leading-zero); color: var(--accent); font-size: .9rem; }
.cs-decisions h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.1; font-weight: 500; letter-spacing: -.035em; }
.cs-decisions p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.cs-split .cs-decisions li { grid-template-columns: 40px 1fr; }
.cs-split .cs-decisions p { grid-column: 2; }
.cs-decisions + .cs-grid, .cs-decisions + .sg-controls { margin-top: clamp(40px, 5vw, 64px); }

.cs-donut { position: relative; width: clamp(180px, 20vw, 260px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--v) * 1%), #1d1d1d 0); }
.cs-donut::after { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: var(--bg); }
.cs-donut strong { position: relative; z-index: 1; font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 500; letter-spacing: -.06em; }

.cs-status { max-width: 900px; margin-top: clamp(48px, 6vw, 80px); padding: 24px 0 0 24px; border-left: 2px solid var(--accent); }
.cs-status p { margin: 12px 0 0; color: #d6d6d2; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; }

/* JoinXR */
.jx-flow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); }
.jx-flow .is-wide { grid-column: span 2; }
.jx-journeys { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.cs-journey { padding: clamp(18px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.cs-journey-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.cs-journey-head p { margin: 0 0 12px; color: #d6d6d2; font-size: 1.1rem; }
.cs-journey-scroll { overflow-x: auto; }
.cs-journey svg { display: block; width: 100%; min-width: 860px; }
.j-lane { fill: var(--muted); font-size: 15px; }
.j-lane-line { stroke: #242424; stroke-width: 1; }
.j-seg { fill: none; stroke: #6b6b6b; stroke-width: 3; }
.j-seg.is-switch { stroke: var(--warn); stroke-dasharray: 7 7; }
.cs-journey.is-after .j-seg { stroke: var(--accent); }
.j-node { fill: var(--panel); stroke: var(--ink); stroke-width: 3; }
.cs-journey.is-after .j-node { stroke: var(--accent); }
.j-step { fill: var(--ink); font-size: 15px; text-anchor: middle; paint-order: stroke; stroke: var(--panel); stroke-width: 6px; }
.jx-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); margin-bottom: clamp(16px, 2vw, 24px); }
.jx-phases article { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.jx-phases h3 { margin: 10px 0 6px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.035em; }
.jx-action { margin: 0 0 16px; color: var(--muted); }
.jx-phases q { display: block; margin: 8px 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #1d1d1d; color: #e6e6e2; line-height: 1.4; }
.jx-flag { display: inline-block; margin-top: 12px; color: var(--warn); font-size: .92rem; }
.jx-flag::before { content: "⚠ "; }
.jx-chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0 0 clamp(40px, 5vw, 72px); padding: 0; list-style: none; }
.jx-chain li { position: relative; padding-top: 18px; border-top: 2px solid var(--accent); }
.jx-chain li:not(:last-child)::after { content: "→"; position: absolute; top: 14px; right: 6px; color: var(--accent); }
.jx-chain strong { display: block; font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: .9; letter-spacing: -.065em; font-weight: 500; }
.jx-chain span { display: block; margin-top: 10px; color: var(--muted); line-height: 1.4; }
.jx-result { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.jx-result .cs-lead { margin-bottom: 28px; }

/* Hollister */
.hx-map { max-width: 1100px; margin: clamp(16px, 2vw, 24px) auto 0; }
.hx-map img { aspect-ratio: 16 / 10; }
.hx-compare .cs-figure img { aspect-ratio: 4 / 5; }
.hx-checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Lloyds */
.lx-route { margin: 0; padding: 0; list-style: none; }
.lx-route li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); padding: clamp(28px, 3.5vw, 48px) 0; border-top: 1px solid var(--line); }
.lx-route li.has-image { grid-template-columns: 120px minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; }
.lx-route li::before { content: ""; position: absolute; top: 0; bottom: 0; left: 33px; width: 2px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.lx-stop { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; align-self: start; }
.lx-num { display: grid; place-items: center; width: 68px; height: 68px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); font-size: 1.35rem; font-weight: 500; }
.lx-area-tag { padding: 4px 8px; border-radius: 6px; background: var(--bg); color: var(--muted); font-size: .8rem; white-space: nowrap; }
.lx-copy h3 { margin: 10px 0 12px; font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.lx-copy p { max-width: 560px; margin: 0; color: #c9c9c5; font-size: 1.08rem; line-height: 1.55; }
.lx-area { margin-bottom: clamp(16px, 2vw, 24px); }
.lx-area-bar { display: flex; gap: 3px; height: clamp(64px, 8vw, 96px); overflow: hidden; border-radius: 16px; }
.lx-area-bar span, .lx-area-legend i { background: color-mix(in srgb, var(--accent) calc(100% - var(--i) * 11%), #2b2b2b); }
.lx-area-bar span { display: grid; place-items: center; min-width: 0; transform-origin: left; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .lx-area:not(.visible) .lx-area-bar span { transform: scaleX(0); }
.lx-area-bar b { color: var(--accent-ink); font-size: .85rem; font-weight: 600; }
.lx-area-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 32px; margin: 22px 0 0; padding: 0; list-style: none; }
.lx-area-legend li { display: grid; grid-template-columns: 14px 1fr auto 44px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lx-area-legend i { width: 14px; height: 14px; border-radius: 4px; }
.lx-area-legend b { font-weight: 500; }
.lx-area-legend small { justify-self: end; color: var(--muted); }
.lx-audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.lx-audiences article { min-height: 200px; padding: 24px; border: 1px solid var(--line); border-top: 3px solid color-mix(in srgb, var(--accent) calc(100% - var(--i) * 12%), #3a3a3a); border-radius: 18px; background: var(--panel); }
.lx-audiences h3 { margin: 0 0 40px; font-size: 1.45rem; font-weight: 500; letter-spacing: -.035em; }
.lx-audiences p { margin: 0; color: var(--muted); line-height: 1.5; }
.lx-modes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); margin-bottom: clamp(40px, 5vw, 64px); }
.lx-modes article { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.lx-modes h3 { margin: 10px 0; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; letter-spacing: -.05em; }
.lx-modes p { max-width: 480px; color: #c9c9c5; line-height: 1.55; }
.lx-seq { display: flex; align-items: center; gap: 0; margin-top: 28px; }
.lx-seq i { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--accent); border-radius: 50%; font-size: .8rem; font-style: normal; }
.lx-seq i:not(:last-child) { margin-right: 18px; position: relative; }
.lx-seq i:not(:last-child)::after { content: ""; position: absolute; left: 100%; width: 18px; height: 2px; background: var(--accent); }
.lx-pad { display: flex; flex-wrap: wrap; gap: 8px; width: fit-content; margin-top: 28px; padding: 12px; border: 1px solid #333; border-radius: 22px; background: #0d0d0d; }
.lx-pad span { padding: 10px 16px; border-radius: 12px; background: #1d1d1d; font-size: .9rem; }
.lx-pad span:first-child { background: var(--accent); color: var(--accent-ink); }

/* Saint-Gobain */
.sg-walk { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); }
.sg-walk .is-wide { grid-column: span 2; }
.sg-walk .is-wide img { aspect-ratio: 21 / 9; }
.sg-zones { display: grid; grid-template-columns: .8fr 1.6fr 1fr 1fr; gap: clamp(12px, 1.4vw, 18px); }
.sg-zones article { --zone: #e6d68a; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--zone); border-radius: 18px; background: var(--panel); }
.sg-zones article:nth-child(2) { --zone: #9db6e8; }
.sg-zones article:nth-child(3) { --zone: #e7a6d8; }
.sg-zones article:nth-child(4) { --zone: #a8d89a; }
.sg-zones .cs-label { color: var(--zone); }
.sg-zones h3 { margin: 8px 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -.04em; }
.sg-zones p { color: var(--muted); line-height: 1.5; }
.sg-zones ol { margin: 16px 0 0; padding-left: 22px; color: #d6d6d2; line-height: 1.75; }
.sg-zones article:nth-child(2) ol { columns: 2; column-gap: 28px; }
.sg-ledger { display: grid; grid-template-columns: 1fr auto 2.4fr; gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.sg-ledger strong { display: block; font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: .9; letter-spacing: -.065em; font-weight: 500; }
.sg-ledger-in strong { font-size: clamp(4rem, 8vw, 7.5rem); color: var(--accent); }
.sg-ledger span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.4; }
.sg-ledger > i { color: var(--accent); font-size: 2.4rem; font-style: normal; }
.sg-ledger-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.sg-layers { margin: 0; padding: 0; list-style: none; }
.sg-layers li { display: flex; justify-content: space-between; gap: 16px; width: calc(100% - var(--i) * 11%); margin-bottom: 8px; padding: 16px 20px; border-radius: 12px; background: color-mix(in srgb, var(--accent) calc(70% - var(--i) * 13%), #1b1b1b); }
.sg-layers li:first-child { color: var(--accent-ink); font-weight: 500; }
.sg-layers small { opacity: .75; }
.sg-controls { display: flex; flex-wrap: wrap; gap: 8px; width: fit-content; margin-bottom: 8px; padding: 14px; border: 1px solid #333; border-radius: 26px; background: #0d0d0d; }
.sg-controls span { padding: 12px 18px; border-radius: 14px; background: #1d1d1d; }
.sg-controls .is-main { background: var(--accent); color: var(--accent-ink); font-weight: 500; }

/* HeiVelo */
.hv-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 22px); }
.hv-showcase .is-wide { grid-column: span 2; }
.hv-showcase .is-wide img { aspect-ratio: 16 / 9; }
.hv-model { align-items: center; margin-bottom: clamp(16px, 2vw, 24px); }
.hv-hub { display: block; width: 100%; max-width: 560px; margin: 0 auto; }
.hv-ring { fill: none; stroke: #2a2a2a; stroke-dasharray: 4 8; }
.hv-spoke { stroke: color-mix(in srgb, var(--accent) 40%, #222); stroke-width: 2; }
.hv-node { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.hv-role { fill: var(--ink); font-size: 17px; text-anchor: middle; }
.hv-core { fill: color-mix(in srgb, var(--accent) 22%, var(--bg)); stroke: var(--accent); stroke-width: 2; }
.hv-core-text { fill: var(--ink); font-size: 22px; font-weight: 500; text-anchor: middle; }
.hv-shift { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hv-shift article { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.hv-shift article.is-accent { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.hv-shift ol { margin: 6px 0 0; padding-left: 20px; color: #d6d6d2; line-height: 1.9; }
.hv-shift article:not(.is-accent) ol { color: var(--muted); }
.hv-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 31%); gap: 18px; margin: 0; padding: 0 0 16px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; }
.hv-strip li { scroll-snap-align: start; }
.hv-strip .cs-zoom { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.hv-strip img { display: block; width: 100%; aspect-ratio: 2048 / 1167; object-fit: cover; }
.hv-step { display: inline-block; margin-top: 14px; color: var(--accent); font-size: .85rem; }
.hv-strip h3 { margin: 4px 0 6px; font-size: 1.25rem; font-weight: 500; letter-spacing: -.03em; }
.hv-strip p { margin: 0; color: var(--muted); line-height: 1.5; }
.hv-loop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hv-loop li { padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; background: var(--panel); }
.hv-loop li:not(:last-child)::after { content: "→"; margin-left: 14px; color: var(--accent); }
.hv-loop li:last-child::after { content: "↺"; margin-left: 12px; color: var(--accent); }

/* Work page card tags */
.project-tags { display: block; margin-bottom: 8px; color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1100px) {
  .cs-phones { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(170px, 34%); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .cs-phones figure { scroll-snap-align: start; }
  .sg-zones { grid-template-columns: 1fr 1fr; }
  .jx-chain { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .sg-ledger { grid-template-columns: 1fr; }
  .sg-ledger > i { transform: rotate(90deg); justify-self: start; }
}
@media (max-width: 900px) {
  .cs-glance, .cs-split, .cs-grid-2, .cs-grid-3, .jx-phases, .cs-pair, .hx-compare, .lx-modes, .hv-showcase, .hv-shift, .jx-flow, .sg-walk { grid-template-columns: 1fr; }
  .jx-flow .is-wide, .sg-walk .is-wide, .hv-showcase .is-wide { grid-column: auto; }
  .lx-audiences { grid-template-columns: 1fr 1fr; }
  .hx-checks { grid-template-columns: 1fr 1fr; }
  .jx-result { grid-template-columns: 1fr; }
  .cs-responses article { grid-template-columns: 1fr; gap: 10px; }
  .cs-responses i { display: none; }
  .cs-responses .cs-res::before { content: "→ "; color: var(--accent); }
  .cs-decisions li { grid-template-columns: 40px 1fr; }
  .cs-decisions p { grid-column: 2; }
  .lx-route li, .lx-route li.has-image { grid-template-columns: 76px minmax(0, 1fr); }
  .lx-route li .cs-figure { grid-column: 1 / -1; }
  .lx-num { width: 56px; height: 56px; font-size: 1.1rem; }
  .lx-route li::before { left: 27px; }
  .lx-area-bar b { display: none; }
  .hv-strip { grid-auto-columns: 78%; }
}
@media (max-width: 600px) {
  .cs-bar, .cs-dots-row { grid-template-columns: 1fr auto; }
  .cs-bar-track, .cs-dots-set { grid-column: 1 / -1; grid-row: 2; }
  .lx-audiences, .sg-zones, .jx-chain { grid-template-columns: 1fr; }
  .sg-zones article:nth-child(2) ol { columns: 1; }
  .sg-ledger-out { grid-template-columns: 1fr 1fr; }
  .jx-chain li:not(:last-child)::after { content: "↓"; }
  .lx-seq i { width: 32px; height: 32px; }
  .lx-seq i:not(:last-child) { margin-right: 8px; }
  .lx-seq i:not(:last-child)::after { width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .cs-bars:not(.visible) .cs-bar-track i { width: var(--v); }
  .js .lx-area:not(.visible) .lx-area-bar span { transform: none; }
  .js .cs-dots:not(.visible) .cs-dots-set i.on { background: var(--accent); }
}

/* Let wide content (diagrams, tables) scroll inside its column instead of widening the page. */
.cs-split > *, .cs-grid > *, .jx-journeys > *, .cs-journey { min-width: 0; }

/* Sticky bar with Home / All work on either side of the section links */
.case-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 0 30px; background: rgba(6,6,6,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.case-bar .case-nav { position: static; flex: 1; min-width: 0; padding: 20px 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.case-bar-home, .case-bar-work { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.case-bar-home:hover, .case-bar-work:hover { border-color: rgba(255,255,255,.35); }
.case-bar-home:focus-visible, .case-bar-work:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.case-page .case-footer { margin-top: 0; border-top: 1px solid var(--line); }
.case-footer .footer-contacts { grid-template-columns: 1.25fr .75fr 1fr; }
.case-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.case-footer-links a { font-size: clamp(1.2rem, 2vw, 2.1rem); }
.case-footer-links a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .case-bar { gap: 14px; padding: 0 14px; }
  .case-bar-work { display: none; }
  .case-bar-home { padding: 7px 12px; font-size: .9rem; }
  .case-footer .footer-contacts { grid-template-columns: 1fr; }
}
