/* Rich case-study layout: device mockups, staged scenes, brand panels, diagrams.
   Themed per project through CSS variables set on .cr (see build_case_studies.py). */
@font-face { font-family: "CS Geist"; src: url("../fonts/case/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CS Geist"; src: url("../fonts/case/geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "CS Geist"; src: url("../fonts/case/geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "CS Geist"; src: url("../fonts/case/geist-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "CS Lato"; src: url("../fonts/case/lato-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CS Lato"; src: url("../fonts/case/lato-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "CS General Sans"; src: url("../fonts/case/generalsans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "CS General Sans"; src: url("../fonts/case/generalsans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "CS Butler"; src: url("../fonts/case/butler-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }

.cr { --p-bg: #111; --p-fg: #fff; --p-accent: #c8f; --p-accent-fg: #000; --p-alt: #f4f4f4; --p-alt-fg: #111; --p-dark: #000; --p-dark-fg: #fff;
  --p-font: "CS Geist", system-ui, sans-serif; --p-display: "CS Geist", system-ui, sans-serif; --p-r: 0px; --p-line: rgba(255,255,255,.16);
  font-family: var(--p-font); color: var(--p-fg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.cr * { box-sizing: border-box; }
.cr img { display: block; max-width: 100%; }
.cr-sec { position: relative; padding: clamp(56px, 8vw, 128px) clamp(20px, 5vw, 80px); }
.cr-in { max-width: 1320px; margin: 0 auto; }
.cr-label { font-family: ui-monospace, "DM Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.cr-h2 { font-family: var(--p-display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.04; letter-spacing: -.03em; margin: .5rem 0 0; }
.cr-p { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.6; opacity: .82; max-width: 62ch; }
.on-alt { background: var(--p-alt); color: var(--p-alt-fg); }
.on-bg { background: var(--p-bg); color: var(--p-fg); }
.on-dark { background: var(--p-dark); color: var(--p-dark-fg); }
.on-accent { background: var(--p-accent); color: var(--p-accent-fg); }

/* ---------- devices (scale with the scene through container query units) ---------- */
.scene { position: relative; container-type: inline-size; width: 100%; aspect-ratio: var(--ar, 16/9); }
.scene > .dev { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: var(--z, 1);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); }
.scene > .dev.tilt { transform: translate(-50%, -50%) perspective(1600px) rotateY(var(--ry, -16deg)) rotateX(var(--rx, 6deg)) rotate(var(--rot, 0deg)); }
.scene.glow::before { content: ""; position: absolute; inset: 8% 10%; background: radial-gradient(closest-side, var(--p-accent), transparent 72%); opacity: .22; filter: blur(30px); }
.dev-screen { position: relative; overflow: hidden; background: #000; }
.dev-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.dev-phone { width: calc(var(--w) * 1cqw); aspect-ratio: 9 / 19; background: #0a0a0b; border-radius: calc(var(--w) * .14cqw); padding: calc(var(--w) * .032cqw);
  box-shadow: inset 0 0 0 calc(var(--w) * .008cqw) #34343a, 0 calc(var(--w) * .12cqw) calc(var(--w) * .26cqw) rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.06); }
.dev-phone .dev-screen { width: 100%; height: 100%; border-radius: calc(var(--w) * .11cqw); }
.dev-phone::before { content: ""; position: absolute; z-index: 3; top: calc(var(--w) * .052cqw); left: 50%; transform: translateX(-50%); width: 27%; height: calc(var(--w) * .07cqw); background: #000; border-radius: 99px; }

.dev-tablet { width: calc(var(--w) * 1cqw); aspect-ratio: 3 / 4; background: #0a0a0b; border-radius: calc(var(--w) * .05cqw); padding: calc(var(--w) * .03cqw);
  box-shadow: inset 0 0 0 calc(var(--w) * .006cqw) #34343a, 0 calc(var(--w) * .09cqw) calc(var(--w) * .2cqw) rgba(0,0,0,.35); }
.dev-tablet .dev-screen { width: 100%; height: 100%; border-radius: calc(var(--w) * .025cqw); }

.dev-laptop { width: calc(var(--w) * 1cqw); filter: drop-shadow(0 calc(var(--w) * .05cqw) calc(var(--w) * .06cqw) rgba(0,0,0,.35)); }
.dev-laptop .lid { background: #0b0b0c; border-radius: calc(var(--w) * .018cqw) calc(var(--w) * .018cqw) 0 0; padding: calc(var(--w) * .012cqw) calc(var(--w) * .012cqw) calc(var(--w) * .016cqw); box-shadow: inset 0 0 0 calc(var(--w) * .003cqw) #34343a; position: relative; }
.dev-laptop .lid::after { content: ""; position: absolute; top: calc(var(--w) * .004cqw); left: 50%; width: calc(var(--w) * .004cqw); height: calc(var(--w) * .004cqw); background: #2b2b30; border-radius: 50%; }
.dev-laptop .dev-screen { aspect-ratio: 16 / 10; border-radius: calc(var(--w) * .004cqw); }
.dev-laptop .base { height: calc(var(--w) * .018cqw); width: 108%; margin-left: -4%; background: linear-gradient(#e4e5e8, #a8aaaf); border-radius: 0 0 calc(var(--w) * .02cqw) calc(var(--w) * .02cqw); position: relative; }
.dev-laptop .base::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 16%; height: 48%; background: #9a9ca1; border-radius: 0 0 calc(var(--w) * .01cqw) calc(var(--w) * .01cqw); }

.dev-monitor { width: calc(var(--w) * 1cqw); filter: drop-shadow(0 calc(var(--w) * .04cqw) calc(var(--w) * .06cqw) rgba(0,0,0,.3)); }
.dev-monitor .lid { background: #111; border-radius: calc(var(--w) * .012cqw); padding: calc(var(--w) * .012cqw) calc(var(--w) * .012cqw) calc(var(--w) * .03cqw); box-shadow: inset 0 0 0 calc(var(--w) * .003cqw) #3a3a40; }
.dev-monitor .dev-screen { aspect-ratio: 16 / 10; border-radius: calc(var(--w) * .003cqw); }
.dev-monitor .neck { width: 12%; height: calc(var(--w) * .07cqw); margin: 0 auto; background: linear-gradient(90deg, #b9bbc0, #e3e4e7, #b9bbc0); }
.dev-monitor .foot { width: 26%; height: calc(var(--w) * .012cqw); margin: 0 auto; background: linear-gradient(#d3d4d8, #9a9ca1); border-radius: calc(var(--w) * .012cqw); }

.dev-browser { width: calc(var(--w) * 1cqw); background: #fff; border-radius: calc(var(--w) * .012cqw); overflow: hidden; box-shadow: 0 calc(var(--w) * .05cqw) calc(var(--w) * .12cqw) rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.08); }
.dev-browser .bar { height: calc(var(--w) * .032cqw); background: #eceef2; display: flex; align-items: center; gap: calc(var(--w) * .008cqw); padding: 0 calc(var(--w) * .014cqw); }
.dev-browser .bar i { width: calc(var(--w) * .009cqw); height: calc(var(--w) * .009cqw); border-radius: 50%; background: #c3c7d0; }
.dev-browser .bar b { margin-left: calc(var(--w) * .014cqw); flex: 1; height: 62%; border-radius: 99px; background: #fff; max-width: 40%; }
.dev-browser .dev-screen { aspect-ratio: 16 / 10; }
.dev-flat { width: calc(var(--w) * 1cqw); box-shadow: 0 calc(var(--w) * .04cqw) calc(var(--w) * .1cqw) rgba(0,0,0,.3); border-radius: calc(var(--w) * .008cqw); overflow: hidden; }
.dev-flat .dev-screen { aspect-ratio: var(--ia, 16/10); }

/* ---------- cover ---------- */
.cr-cover { min-height: min(94vh, 900px); display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; gap: 1rem; padding-top: clamp(40px, 6vw, 90px); padding-bottom: clamp(40px, 6vw, 90px); }
.cr-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.cr-chipx { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .8rem; border: 1px solid currentColor; border-radius: 99px; opacity: .8; }
.cr-wordmark { font-family: var(--p-display); font-weight: var(--p-wm-weight, 500); font-size: clamp(3.2rem, 10.5vw, 10rem); line-height: .92; letter-spacing: -.05em; margin: 0 0 1.5rem; overflow-wrap: anywhere; }
.cr-wordmark.long { font-size: clamp(2.6rem, 7.2vw, 6.6rem); }
.cr-tag { font-size: clamp(1.1rem, 1.8vw, 1.6rem); line-height: 1.35; max-width: 30ch; opacity: .9; }
.cr-cover .scene { --ar: 1.28/1; margin-right: -2vw; }

/* ---------- statement with inline chips ---------- */
.cr-statement .cr-in { max-width: 1100px; }
.cr-big { font-family: var(--p-display); font-weight: 500; font-size: clamp(1.9rem, 4.6vw, 4.2rem); line-height: 1.22; letter-spacing: -.03em; margin: 0; }
.cr-big .pill { display: inline-block; padding: .02em .38em .08em; border-radius: 99px; line-height: 1.1; vertical-align: .04em; background: var(--p-accent); color: var(--p-accent-fg); }
.cr-big .pill.line { background: none; color: inherit; box-shadow: inset 0 0 0 .06em currentColor; }
.cr-big .pill.dark { background: var(--p-alt-fg); color: var(--p-alt); }

/* ---------- device band ---------- */
.cr-band { padding-top: clamp(40px, 6vw, 90px); padding-bottom: clamp(40px, 6vw, 90px); overflow: hidden; }
.cr-band .scene { --ar: 16/8.6; max-width: 1400px; margin: 0 auto; }
.cr-cap { text-align: center; font-size: .95rem; opacity: .7; margin-top: 1rem; }

/* ---------- big type slab ---------- */
.cr-slab .row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .6fr); align-items: end; gap: 2rem; padding: .4rem 0; }
.cr-slab .w { font-family: var(--p-display); font-weight: var(--p-slab-weight, 600); font-size: clamp(3.4rem, 13vw, 12rem); line-height: .96; letter-spacing: -.055em; }
.cr-slab .w.acc { color: var(--p-accent); }
.cr-slab .c { font-size: clamp(.9rem, 1.1vw, 1.05rem); line-height: 1.5; opacity: .8; max-width: 26ch; padding-bottom: 1.2rem; }

/* ---------- process ---------- */
.cr-gantt { margin-top: 2.5rem; display: grid; gap: .55rem; }
.cr-gantt .head, .cr-gantt .r { display: grid; grid-template-columns: 160px repeat(4, 1fr); align-items: center; gap: 0; }
.cr-gantt .head span { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .55; padding-bottom: .5rem; }
.cr-gantt .name { font-size: .95rem; opacity: .85; }
.cr-gantt .track { grid-column: 2 / span 4; position: relative; height: 22px; background: linear-gradient(90deg, transparent calc(25% - 1px), rgba(128,128,128,.25) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), rgba(128,128,128,.25) calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), rgba(128,128,128,.25) calc(75% - 1px) 75%, transparent 75%); }
.cr-gantt .bar { position: absolute; top: 3px; bottom: 3px; left: calc(var(--s) * 1%); width: calc(var(--l) * 1%); background: currentColor; }
.cr-gantt .bar.hot { background: var(--p-accent); }
.cr-note { font-size: .8rem; opacity: .55; margin-top: 1.2rem; }

/* ---------- problems / answers ---------- */
.cr-pa { position: relative; display: grid; grid-template-columns: 1fr minmax(160px, 260px) 1fr; align-items: center; gap: 0; margin-top: 3rem; min-height: 460px; }
.cr-pa .col { display: grid; gap: 0; align-content: space-between; height: 100%; min-height: 460px; }
.cr-pa .it { font-size: clamp(.95rem, 1.25vw, 1.2rem); line-height: 1.4; max-width: 28ch; padding: 1rem 0; }
.cr-pa .left .it { text-align: left; }
.cr-pa .right .it { text-align: left; justify-self: end; }
.cr-pa .mid { display: grid; place-items: center; font-family: var(--p-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.03em; position: relative; z-index: 1; padding: 0 1rem; text-align: center; }
.cr-pa svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cr-pa svg path { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .6; vector-effect: non-scaling-stroke; }

/* ---------- persona ---------- */
.cr-persona { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch; }
.cr-pface { background: var(--p-accent); color: var(--p-accent-fg); display: grid; align-content: space-between; padding: clamp(1.5rem, 3vw, 2.5rem); min-height: 380px; border-radius: var(--p-r); }
.cr-pface .mono { font-family: var(--p-display); font-weight: 600; font-size: clamp(5rem, 11vw, 9rem); line-height: .8; letter-spacing: -.06em; }
.cr-pface .nm { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; }
.cr-pface .sub { font-size: .85rem; opacity: .7; margin-top: .3rem; }
.cr-plist { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cr-plist h4 { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin: 0 0 .8rem; font-weight: 400; }
.cr-plist ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.cr-plist li { font-size: clamp(.95rem, 1.2vw, 1.12rem); line-height: 1.4; padding-top: .8rem; border-top: 1px solid var(--p-line-d, rgba(128,128,128,.3)); }

/* ---------- brand panel ---------- */
.cr-brand { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.6rem, 1.2vw, 1.2rem); }
.cr-tile { position: relative; overflow: hidden; border-radius: var(--p-r); min-height: 280px; padding: clamp(1.2rem, 2.4vw, 2.2rem); display: flex; flex-direction: column; justify-content: space-between; }
.cr-tile.wm { grid-column: span 7; background: var(--p-bg); color: var(--p-fg); min-height: 360px; justify-content: center; align-items: center; }
.cr-tile.wm .big { font-family: var(--p-display); font-weight: var(--p-wm-weight, 500); font-size: clamp(3rem, 9vw, 8rem); letter-spacing: -.05em; line-height: 1; }
.cr-tile.ty { grid-column: span 5; background: var(--p-dark); color: var(--p-dark-fg); }
.cr-tile.ty .aa { font-family: var(--p-display); font-size: clamp(5rem, 11vw, 9rem); line-height: .9; letter-spacing: -.04em; font-weight: var(--p-aa-weight, 500); }
.cr-tile.ty .fn { font-size: .95rem; opacity: .85; line-height: 1.5; }
.cr-tile.ty .gl { font-family: var(--p-display); font-size: 1.05rem; opacity: .6; letter-spacing: .02em; word-break: break-all; }
.cr-sw { grid-column: span 12; display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: clamp(.4rem, 1vw, .8rem); }
.cr-sw .s { min-height: 190px; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--p-r); font-size: .85rem; line-height: 1.4; box-shadow: inset 0 0 0 1px rgba(128,128,128,.28); }
.cr-sw .s b { font-weight: 600; display: block; font-size: .95rem; }
.cr-sw .s span { opacity: .75; font-family: ui-monospace, monospace; font-size: 11.5px; letter-spacing: .04em; }
.cr-kit { grid-column: span 12; background: var(--p-alt); color: var(--p-alt-fg); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; padding: clamp(1.2rem, 2.4vw, 2.2rem); border-radius: var(--p-r); align-items: start; }
.cr-kit .k { display: grid; gap: .8rem; align-content: start; }
.cr-kit .k > small { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.kit-btn { display: inline-flex; justify-content: center; align-items: center; font: 600 .95rem var(--p-font); padding: .85rem 1.3rem; background: var(--p-accent); color: var(--p-accent-fg); border-radius: var(--p-btn-r, var(--p-r)); border: 0; width: max-content; }
.kit-btn.ghost { background: none; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.kit-btn.dark { background: var(--p-kit-dark, #111); color: var(--p-kit-dark-fg, #fff); }
.kit-tag { display: inline-block; font: 600 .72rem ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .6rem; background: var(--p-kit-tag, #e8e8e8); color: var(--p-kit-tag-fg, #111); border-radius: var(--p-btn-r, var(--p-r)); width: max-content; }
.kit-in { font: 400 .95rem var(--p-font); padding: .8rem 1rem; background: #fff; color: #667; border: 1px solid rgba(0,0,0,.18); border-radius: var(--p-in-r, var(--p-r)); width: 100%; }
.kit-card { background: #fff; color: var(--p-alt-fg); padding: 1rem; border-radius: var(--p-r); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.07); font-size: .9rem; line-height: 1.4; }
.kit-card b { display: block; font-size: 1.05rem; margin-bottom: .2rem; }

/* ---------- flow ---------- */
.cr-flow { margin-top: 3rem; display: grid; grid-template-columns: var(--cols); align-items: center; row-gap: .8rem; }
.cr-node { display: contents; }
.cr-node .thumb { grid-row: 1; align-self: center; aspect-ratio: 16/10; overflow: hidden; background: #000; border-radius: calc(var(--p-r) * .6); box-shadow: 0 6px 18px rgba(0,0,0,.18), 0 0 0 1px rgba(128,128,128,.22); }
.cr-node .thumb.ph { aspect-ratio: 9/17; width: 100%; max-width: 150px; justify-self: center; border-radius: 20px; }
.cr-node .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cr-node .n { grid-row: 2; font-size: .85rem; opacity: .85; text-align: center; }
.cr-arr { grid-row: 1; align-self: center; height: 0; border-top: 1.5px solid currentColor; opacity: .5; position: relative; margin: 0 .5rem; }
.cr-arr::after { content: ""; position: absolute; right: -1px; top: -5px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }

/* ---------- rules ---------- */
.cr-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--p-line-d, rgba(128,128,128,.3)); margin-top: 3rem; }
.cr-rule { padding: 1.5rem 1.2rem 0 0; border-right: 1px solid var(--p-line-d, rgba(128,128,128,.3)); }
.cr-rule:last-child { border-right: 0; }
.cr-rule .big { font-family: var(--p-display); font-weight: 500; font-size: clamp(2.2rem, 4.2vw, 4rem); letter-spacing: -.04em; line-height: 1; }
.cr-rule p { font-size: .92rem; line-height: 1.5; opacity: .75; margin: .8rem 0 0; max-width: 28ch; }

/* ---------- feature (large shot + overlay caption) ---------- */
.cr-feature { padding-top: clamp(48px, 7vw, 110px); padding-bottom: clamp(48px, 7vw, 110px); overflow: hidden; }
.cr-feature .fwrap { position: relative; max-width: 1380px; margin: 0 auto; }
.cr-feature .scene { --ar: 16/8.4; }
.cr-feature .cap { position: absolute; z-index: 9; left: clamp(0px, 1vw, 20px); bottom: clamp(0px, 2vw, 30px); max-width: 360px; padding: 1.2rem 1.4rem; background: rgba(255,255,255,.94); color: #111; border-radius: var(--p-r); box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.cr-feature .cap .cr-label { color: #111; }
.cr-feature .cap h3 { font-family: var(--p-display); font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.02em; margin: .4rem 0 .4rem; font-weight: 600; line-height: 1.15; }
.cr-feature .cap p { margin: 0; font-size: .9rem; line-height: 1.5; opacity: .75; }

/* ---------- responsive / fan ---------- */
.cr-resp .scene { --ar: 16/8; max-width: 1300px; margin: 3rem auto 0; }
.cr-fan .scene { --ar: 16/7; max-width: 1300px; margin: 2rem auto 0; }

/* ---------- thank you ---------- */
.cr-thanks { text-align: left; }
.cr-thanks .tk { font-family: var(--p-display); font-weight: 600; font-size: clamp(3.4rem, 14vw, 13rem); line-height: .92; letter-spacing: -.06em; margin: 0 0 2rem; }
.cr-thanks .row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.cr-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.5rem; font: 600 1rem var(--p-font); text-decoration: none; border-radius: var(--p-btn-r, var(--p-r)); background: var(--p-accent-fg); color: var(--p-accent); box-shadow: inset 0 0 0 1.5px var(--p-accent-fg); }
.cr-btn.ghost { background: none; color: var(--p-accent-fg); }
.cr-next { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.4rem clamp(20px, 5vw, 80px); background: #111; color: #fff; }
.cr-next a { color: #fff; text-decoration: none; font-size: 1rem; }
.cr-next a:hover { text-decoration: underline; }

/* ---------- responsive layout ---------- */
@media (max-width: 900px) {
  .cr-cover { grid-template-columns: 1fr; }
  .cr-slab .row { grid-template-columns: 1fr; gap: 0; }
  .cr-slab .c { padding-bottom: 1rem; }
  .cr-gantt .head, .cr-gantt .r { grid-template-columns: 96px repeat(4, 1fr); }
  .cr-pa { grid-template-columns: 1fr; min-height: 0; gap: 1.5rem; }
  .cr-pa .col { min-height: 0; gap: .5rem; }
  .cr-pa svg { display: none; }
  .cr-pa .mid { order: -1; padding: 1rem 0; }
  .cr-pa .left, .cr-pa .right { border-top: 1px solid var(--p-line-d, rgba(128,128,128,.3)); }
  .cr-pa .right .it { justify-self: start; }
  .cr-persona { grid-template-columns: 1fr; }
  .cr-plist { grid-template-columns: 1fr; }
  .cr-tile.wm, .cr-tile.ty { grid-column: span 12; }
  .cr-sw { grid-template-columns: repeat(2, 1fr); }
  .cr-kit { grid-template-columns: 1fr 1fr; }
  .cr-flow { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 1.6rem; column-gap: 1rem; align-items: start; }
  .cr-node { display: block; }
  .cr-node .thumb, .cr-node .n { grid-row: auto !important; grid-column: auto !important; }
  .cr-node .thumb { margin-bottom: .5rem; }
  .cr-arr { display: none; }
  .cr-rules { grid-template-columns: 1fr 1fr; }
  .cr-rule { border-right: 0; border-bottom: 1px solid var(--p-line-d, rgba(128,128,128,.3)); padding-bottom: 1.5rem; }
  .cr-feature .cap { position: static; max-width: none; margin-top: 1rem; }
  .cr-feature .scene { --ar: 16/10 !important; }
  .cr-resp .scene, .cr-fan .scene { aspect-ratio: 16/10; }
}
@media (max-width: 520px) { .cr-kit { grid-template-columns: 1fr; } .cr-rules { grid-template-columns: 1fr; } }

/* ---------- brand identity gallery ---------- */
.cr-concept { display: inline-block; margin-top: 1.2rem; font: 500 12px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; padding: .5rem .9rem; border: 1px solid currentColor; border-radius: 99px; opacity: .8; }
.cr-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.2vw, 1.2rem); margin-top: 2.5rem; }
.cr-mosaic figure { margin: 0; position: relative; overflow: hidden; background: #0003; }
.cr-mosaic figure.wide { grid-column: 1 / -1; }
.cr-mosaic img { width: 100%; height: auto; display: block; }
.cr-mosaic figcaption { position: absolute; left: 0; bottom: 0; padding: .55rem .9rem; font: 500 11px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; background: rgba(11,21,48,.78); color: #fff; }
@media (max-width: 700px) { .cr-mosaic { grid-template-columns: 1fr; } }

/* horizontal scroll wrapper keeps multi-device scenes readable on phones */
.hscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) {
  .cr-cover { min-height: 0; padding-top: 28px; }
  .cr-cover .scene { margin-right: 0; }
  .hscroll .scene { min-width: 760px; }
  .hscroll { margin: 0 -20px; padding: 0 20px; }
}
@media (max-width: 520px) { .cr-gantt .head span { font-size: 9px; letter-spacing: .02em; } .cr-gantt .name { font-size: .85rem; } }

/* ---------- print / PDF ---------- */
@media print {
  .viva-nav, .case-footer, .cr-next, [class*=vld-consent] { display: none !important; }
}
