/* Studio pages (11/21/26): home reel, industry tiles, floor swap, car select, inquire. Loaded after site.css on the studio pages
   and on /flooring/ (the floor swap). Same tokens as site.css; no new colours. */
.studio .page-head h1, .st-hero h1 { max-width: 15ch; }
.st-hero { min-height: min(100svh, 980px); display: grid; align-items: end; padding-top: calc(var(--nav-h) + var(--s-8)); padding-bottom: clamp(4.5rem, 3rem + 5vw, 8rem); overflow: hidden; --bg: var(--night); }
.st-reel, .st-reel-item, .st-reel video { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-reel { z-index: -2; background: var(--night); }
.st-reel-item { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.st-reel-item.on { opacity: 1; }
.st-reel video { object-fit: cover; }
.st-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(21 21 20 / .55) 0%, rgb(21 21 20 / .15) 35%, rgb(21 21 20 / .55) 62%, rgb(21 21 20 / .92) 100%); }
.st-hero-grid { display: grid; gap: var(--s-5); }
.st-hero h1 { font-size: var(--fs-display); font-weight: 400; font-stretch: 100%; letter-spacing: -.045em; line-height: 1; color: #F6F4EF; }
.st-hero .lede { color: #D8D4CB; max-width: 44ch; }
.st-hero .eyebrow { color: #D8D4CB; margin-bottom: 0; }
.st-hero .actions { margin-top: var(--s-3); }
.st-hero .tlink { color: #F6F4EF; border-color: rgb(246 244 239 / .45); }
.st-hero .pill-solid { background: #F6F4EF; color: #151514; }
.st-sample { position: absolute; right: var(--gutter); bottom: var(--s-5); margin: 0; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: #D8D4CB; padding: 6px 12px; border-radius: var(--r-pill); background: rgb(21 21 20 / .7); }
@media (max-width: 719px) { .st-sample { position: static; justify-self: start; margin: var(--s-6) var(--gutter) 0; } }

.st-tiles { display: grid; gap: var(--s-5); margin-top: var(--s-7); list-style: none; padding: 0; }
@media (min-width: 720px) { .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 1099px) { .st-tiles > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .st-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.st-tile { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: var(--s-2) var(--s-3); height: 100%; padding: var(--s-3) var(--s-3) var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-float); color: var(--text); text-decoration: none; background: var(--bg-raised); transition: border-color var(--dur-fast), translate var(--dur-base) var(--ease-out); }
.st-tile-media { grid-column: 1 / -1; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--r-float) - 6px); background: var(--night); margin-bottom: var(--s-3); }
.st-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.st-tile-name { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; padding-inline: var(--s-2); }
.st-tile-sub { grid-column: 1; color: var(--text-2); font-size: var(--fs-small); line-height: 1.45; padding-inline: var(--s-2); }
.st-tile .i { grid-column: 2; grid-row: 2; width: 24px; height: 24px; transition: translate var(--dur-base) var(--ease-out); }
@media (hover: hover) { .st-tile:hover { border-color: var(--text); } .st-tile:hover img { scale: 1.04; } .st-tile:hover .i { translate: 4px 0; } }
.st-note { margin-top: var(--s-5); color: var(--text-2); font-size: var(--fs-small); max-width: 70ch; }

.st-make-fig, .st-side-fig { margin: 0; align-self: center; }
.st-make-fig img, .st-side-fig img, .st-side-fig video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-float); display: block; background: var(--night); }
.st-make-fig figcaption, .st-side-fig figcaption, .st-clip figcaption { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-small); }
@media (min-width: 1024px) { .st-make .split, .studio #make .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2.5rem, 6vw, 6rem); align-items: center; } }
.st-rows { list-style: none; padding: 0; }
.st-rows li > div { display: grid; gap: 2px; padding: var(--s-3) 0; min-height: 64px; border-bottom: 1px solid var(--line-strong); align-content: center; }

.st-step-list { list-style: none; padding: 0; display: grid; gap: var(--s-6); margin-top: var(--s-7); }
@media (min-width: 900px) { .st-step-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.st-step-list li { border-top: 1px solid var(--text); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.st-step-list h3 { font-size: var(--fs-h4); font-weight: 600; }
.st-step-list p { color: var(--text-2); }
.st-n { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; color: var(--accent-text); }
.st-founder { margin-top: var(--s-8); max-width: 60ch; color: var(--text-2); }
.st-founder a, .st-note a, .st-form-note a { color: var(--text); }

.st-head { padding-bottom: var(--s-8); }
.st-demo { padding-top: 0; }
.st-demo-title { margin-bottom: var(--s-6); }
.st-cars { position: relative; outline-offset: 6px; }
.st-cars-stage { position: relative; border-radius: var(--r-float); overflow: hidden; background: #0B0B0A; aspect-ratio: 16 / 9; }
.st-car { margin: 0; position: absolute; inset: 0; }
.st-car[hidden] { display: none; }
.st-car video, .st-car img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-car figcaption { position: absolute; left: var(--s-5); bottom: var(--s-5); display: grid; gap: var(--s-2); justify-items: start; }
.st-car-name { font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); font-weight: 300; letter-spacing: -.03em; color: #F6F4EF; line-height: 1; }
.st-car-call { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; color: #ECE9E3; padding: 6px 10px; border: 1px solid rgb(236 233 227 / .28); border-radius: var(--r-pill); background: rgb(21 21 20 / .55); backdrop-filter: blur(8px); }
.st-count { position: absolute; top: var(--s-4); right: var(--s-5); margin: 0; font-family: var(--font-mono); font-size: var(--fs-small); letter-spacing: .1em; color: #ECE9E3; }
.st-cars-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }
.st-cars-bar .ctl { min-width: var(--tap); min-height: var(--tap); display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: transparent; color: var(--text); cursor: pointer; }
.st-cars-bar .ctl .i { width: 20px; height: 20px; }
.st-cars-bar .seg button[aria-pressed="true"], .st-fs-pick button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 719px) { .st-car figcaption { left: var(--s-3); bottom: var(--s-3); } .st-car-call:last-child { display: none; } }

.st-fs-stage { position: relative; border-radius: var(--r-float); overflow: hidden; aspect-ratio: 1600 / 893; background: var(--night); touch-action: pan-y; }
.st-fs-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-fs-after { clip-path: inset(0 0 0 var(--x)); }
.st-fs-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #F6F4EF; box-shadow: 0 0 0 1px rgb(21 21 20 / .25); pointer-events: none; }
.st-fs-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; translate: -50% -50%; border-radius: 50%; background: #F6F4EF; box-shadow: 0 4px 18px rgb(0 0 0 / .35); }
.st-fs-tag { position: absolute; top: var(--s-4); padding: 6px 12px; border-radius: var(--r-pill); background: rgb(21 21 20 / .72); color: #ECE9E3; font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.st-fs-tag-l { left: var(--s-4); }
.st-fs-tag-r { right: var(--s-4); }
.st-fs-range { position: absolute; inset: 0; }
.st-fs-range input { width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.st-fs-range:has(input:focus-visible) ~ .st-fs-line, .st-fs-stage:has(input:focus-visible) .st-fs-line { outline: 3px solid var(--focus); }
.st-fs-pick { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.st-fs-pick button { min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: transparent; color: var(--text); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.st-more { margin-top: var(--s-4); }

.st-pair { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 900px) { .st-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-clip { margin: 0; }
.st-clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-float); display: block; background: #0B0B0A; }

.st-inq { padding-top: 0; }
.st-inq-grid { display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .st-inq-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; } }
.st-form { display: grid; gap: var(--s-5); padding: clamp(1.25rem, .8rem + 2vw, 2.5rem); border: 1px solid var(--line-strong); border-radius: var(--r-float); background: var(--bg-raised); }
.st-form-title { font-size: var(--fs-h3); }
.st-field { display: grid; gap: var(--s-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.st-field > span, .st-field legend { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.st-field em { font-style: normal; text-transform: none; letter-spacing: 0; }
.st-field input[type=text], .st-field input[type=tel], .st-field select, .st-field textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.st-field textarea { resize: vertical; }
.st-field input:focus-visible, .st-field select:focus-visible, .st-field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.st-wants { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.st-wants legend { margin-bottom: var(--s-2); width: 100%; }
.st-wants label { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); cursor: pointer; font-size: var(--fs-small); }
.st-wants label:has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }
.st-wants input { accent-color: currentColor; }
.st-field-row { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .st-field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-form-note { color: var(--text-2); font-size: var(--fs-small); }
.st-inq-side .contact-rows { margin-top: 0; }
.st-inq-side .st-form-note { margin-top: var(--s-5); }
.studio-close .close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }

@media (prefers-reduced-motion: reduce) { .st-reel-item, .st-tile, .st-tile img { transition: none; } }

/* Studio prices (approved 11/21/26) */
.st-prices .st-price-grid { list-style: none; padding: 0; display: grid; gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 900px) { .st-prices .st-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-price { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-float); background: var(--bg-raised); }
.st-price h3 { font-size: var(--fs-h4); font-weight: 600; }
.st-price-mid { border-color: var(--text); }
.st-amt { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
.st-amt span { font-size: var(--fs-small); letter-spacing: 0; color: var(--text-2); }
.st-amt-2 { margin-top: calc(-1 * var(--s-1)); }
.st-price p:last-child { color: var(--text-2); font-size: var(--fs-small); margin-top: var(--s-2); }
.st-ret-title { margin-top: var(--s-8); font-size: var(--fs-h3); }

/* Portfolio strip on each industry page (11/21/26) */
.st-port { padding-block: var(--s-5); border-bottom: 1px solid var(--line-strong); }
.st-port .eyebrow { margin-bottom: var(--s-3); }
.st-port ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.st-port a { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--text); text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.st-port a:hover, .st-port a:focus-visible { border-color: var(--text); }
.st-port-n { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--accent-text); }

/* Sample inventory page */
.st-inv { margin: 0; align-self: center; display: grid; gap: var(--s-3); scroll-margin-top: calc(var(--nav-h) + 16px); }
.st-inv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 10px 12px; border-radius: 12px; background: var(--night); color: #ECE9E3; }
.st-inv-brand { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; }
.st-inv-filters { display: inline-flex; gap: 4px; }
.st-inv-filters button { min-height: 36px; padding: 0 12px; border: 1px solid rgb(236 233 227 / .25); border-radius: var(--r-pill); background: transparent; color: inherit; font: inherit; font-size: var(--fs-small); cursor: pointer; }
.st-inv-filters button[aria-pressed="true"] { background: #ECE9E3; color: #151514; }
.st-inv-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: var(--s-3); }
.st-inv-grid li { display: grid; gap: 4px; align-content: start; padding: 8px 8px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-raised); }
.st-inv-grid li[hidden] { display: none; }
.st-inv-grid img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--night); }
.st-inv-name { font-weight: 600; padding-inline: 4px; }
.st-inv-meta { font-size: var(--fs-small); color: var(--text-2); padding-inline: 4px; }
.st-inv figcaption { color: var(--text-2); font-size: var(--fs-small); }

/* "How we start": the words beside what you send and what you get, so the section has no empty half */
.st-start { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 900px) { .st-start { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 6vw, 6rem); } }
.st-start .prose h2 { margin-bottom: var(--s-4); }
.st-start-card { padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--r-float); background: var(--bg-raised); display: grid; gap: var(--s-2); }
.st-start-card h3 { font-size: var(--fs-label); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-top: var(--s-2); }
.st-start-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.st-start-card p { margin-top: var(--s-3); }

.st-clip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-float); display: block; }

/* The desk is on its way (theme.js, before first paint): show its still, not the room reel, so nothing flashes */
.desk-soon .st-reel-item, .desk-soon .st-sample { display: none; }
/* First paint (11/25/26): the desk's own home view, baked from the live scene by tools/bake_desk_posters.mjs, one picture per
   framing band of scene.js frameFor, each baked at its band's widest shape. Scaled by height and pinned at (0.5 - shift)
   across, it lands where the camera draws the desk, and it stays under the opaque canvas, which fades in over it. */
.desk-soon .st-reel { background: #151514 url(/assets/desk/v2/hero-w.webp) 71% center / auto 100% no-repeat; }
@media (max-aspect-ratio: 1499/1000) { .desk-soon .st-reel { background-image: url(/assets/desk/v2/hero-m.webp); background-position: 77% center; } }
@media (max-aspect-ratio: 1149/1000) { .desk-soon .st-reel { background-image: url(/assets/desk/v2/hero-s.webp); background-position: 50% center; } }
@media (max-aspect-ratio: 799/1000) { .desk-soon .st-reel { background-image: url(/assets/desk/v2/hero-t.webp); background-position: 50% center; } }

/* Selection Studio ad (11/21/26) */
.st-ad-grid { display: grid; gap: var(--s-6); margin-top: var(--s-6); align-items: start; }
@media (min-width: 1024px) { .st-ad-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(2rem, 4vw, 4rem); } }
.st-ad-video { margin: 0; }
.st-ad-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: var(--r-float); background: #0B0B0A; }
.st-ad-video figcaption { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-small); }
.st-ad-roles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.st-ad-roles li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line-strong); color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
.st-ad-roles span { display: block; color: var(--text); font-weight: 600; font-size: var(--fs-body); }
.st-ad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.st-ad-actions[hidden] { display: none; }

/* Interactive 3D car (11/21/26) */
.st-car3d-grid { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
@media (min-width: 1024px) { .st-car3d-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; } }
.st-car3d-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-float); overflow: hidden; background: #151514; touch-action: pan-y; }
.st-car3d-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; opacity: 0; transition: opacity .6s var(--ease-out); }
.st-car3d.is-ready .st-car3d-stage canvas { opacity: 1; }
.st-car3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-car3d-modes { position: absolute; left: 50%; top: var(--s-3); translate: -50% 0; display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgb(21 21 20 / .6); backdrop-filter: blur(8px); }
.st-car3d-modes button { min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: #ECE9E3; font: 500 .8125rem/1 var(--font-sans); cursor: pointer; }
.st-car3d-modes button[aria-pressed="true"] { background: #ECE9E3; color: #151514; }
.st-car3d-status { position: absolute; left: var(--s-4); bottom: var(--s-3); margin: 0; color: #ECE9E3; font-size: var(--fs-small); }
.st-car3d.no-3d .st-car3d-modes, .st-car3d.no-3d .st-car3d-panel .st-car3d-row, .st-car3d.no-3d .st-car3d-meter { display: none; }
.st-car3d-panel { display: grid; gap: var(--s-4); }
.st-car3d-row { display: grid; gap: var(--s-2); }
.st-car3d-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.st-car3d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-car3d-chips button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: transparent; color: var(--text); font: 500 .875rem/1 var(--font-sans); cursor: pointer; }
.st-car3d-chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.st-car3d-clear { opacity: .75; }
.st-car3d-paints { display: flex; gap: 10px; }
.st-car3d-paints button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); cursor: pointer; }
.st-car3d-paints button[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg) inset; }
.st-car3d-meter { height: 8px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.st-car3d-meter span { display: block; height: 100%; width: var(--fill, 0%); background: var(--accent-text); transition: width .4s var(--ease-out); }
.st-car3d-fill, .st-car3d-dims { margin: 0; font-size: var(--fs-small); color: var(--text-2); }
.st-car3d-dims { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .04em; }

.st-car3d-modes button { white-space: nowrap; }
@media (max-width: 719px) {
  .st-car3d-stage { aspect-ratio: 4 / 3.4; }
  .st-car3d-modes { top: 8px; padding: 3px; }
  .st-car3d-modes button { min-height: 32px; padding: 0 10px; font-size: .75rem; }
}

/* portfolio numbers by counter (11/21/26) */
.st-port ol { counter-reset: port; }
.st-port li { counter-increment: port; }
.st-port a::before { content: counter(port, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--accent-text); }

/* Dealer 3D showroom (11/21/26) */
.sr-cards { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.sr-card { display: grid; gap: 4px; padding: 8px 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-float); background: var(--bg-raised); color: var(--text); text-decoration: none; transition: border-color var(--dur-fast); }
.sr-card:hover, .sr-card:focus-visible { border-color: var(--text); }
.sr-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #cfcfcb; margin-bottom: 6px; }
.sr-card-y { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text-2); padding-inline: 6px; }
.sr-card-n { font-size: var(--fs-h4); font-weight: 600; padding-inline: 6px; }
.sr-card-t { font-size: var(--fs-small); color: var(--text-2); padding-inline: 6px; }
.sr-sec { padding-top: var(--s-6); }
.pg-showroom .nav { position: absolute; }
.sr-top { margin-bottom: var(--s-4); }
.sr-top h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 3rem); }
.sr-workspace { display: grid; grid-template-areas: "views" "stage" "panel"; gap: var(--s-4); }
.sr-top .eyebrow { margin-bottom: var(--s-2); }
.sr-views { grid-area: views; display: flex; flex-wrap: wrap; gap: 6px; }
.sr-views button, .sr-chips button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: transparent; color: var(--text); font: 500 .875rem/1 var(--font-sans); cursor: pointer; }
.sr-chips button[aria-pressed="true"], .sr-views button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.sr-stage { grid-area: stage; position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-float); overflow: hidden; background: #cfcfcb; touch-action: pan-y; }
.sr-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; opacity: 0; transition: opacity .6s var(--ease-out); }
.is-ready .sr-stage canvas { opacity: 1; }
.sr-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-status, .sr-hint { position: absolute; margin: 0; font-size: var(--fs-small); color: #3a3833; }
.sr-status { left: var(--s-4); top: var(--s-3); }
.sr-hint { right: var(--s-4); bottom: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.no-3d .sr-hint, .no-3d .sr-panel, .no-3d .sr-views { display: none; }
.sr-panel { grid-area: panel; display: grid; align-content: start; gap: var(--s-4); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-row { display: grid; gap: var(--s-2); }
.sr-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.sr-paints { display: flex; flex-wrap: wrap; gap: 10px; }
.sr-sw { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 1px 3px rgb(0 0 0 / .3); cursor: pointer; }
.sr-sw[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg) inset; }
@media (max-width: 719px) { .sr-stage { aspect-ratio: 4 / 3.6; } .sr-hint { display: none; } }
@media (min-width: 900px) {
  .sr-workspace { grid-template: "views panel" auto "stage panel" 1fr / minmax(0, 1fr) clamp(16rem, 24vw, 21rem); column-gap: var(--s-5); }
  .sr-stage { align-self: start; aspect-ratio: 1.6; }
  .sr-panel { border-inline-start: 1px solid var(--line-strong); padding-inline-start: var(--s-4); }
}
@media (max-width: 500px) {
  .sr-views { gap: 4px; }
  .sr-views button { flex: 1; padding-inline: 6px; }
}
.sr-workspace [hidden] { display: none; }

/* showroom v2: cargo row (11/21/26) */
.sr-cargo { flex-basis: 100%; }
.sr-meter { display: block; height: 8px; border-radius: 4px; background: var(--line-strong); overflow: hidden; max-width: 34rem; margin-top: 4px; }
.sr-meter span { display: block; height: 100%; width: var(--fill, 0%); background: var(--accent-text); transition: width .4s var(--ease-out); }
.sr-filltext { font-size: var(--fs-small); color: var(--text-2); }
.sr-chips button[hidden], .sr-views button[hidden] { display: none; }

/* portfolio galleries (11/24/26): one tile per sample, 1 / 2 / 3 across */
.st-gallery { display: grid; gap: var(--s-5); margin-top: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .st-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .st-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-clip figcaption a { color: inherit; }

/* 11/24/26: touch targets at least 44 px on coarse pointers */
@media (pointer: coarse) { .st-inv-filters button { min-height: 44px; } .sr-sw { width: 44px; height: 44px; } }

/* ---- Work (11/25/26): client cases and the portfolio. Ads with sound use controls; loops use data-clip ---- */
.wk-case { display: grid; gap: var(--s-6); margin-top: var(--s-6); align-items: start; }
@media (min-width: 900px) { .wk-case { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 4vw, 4rem); } }
.wk-case.wk-wide { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .wk-case.wk-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.wk { margin: 0; min-width: 0; }
.wk video, .wk img { width: 100%; height: auto; display: block; border-radius: var(--r-float); background: #0B0B0A; }
.wk.v video, .wk.v img { aspect-ratio: 9 / 16; object-fit: cover; max-height: 78vh; width: auto; max-width: 100%; margin-inline: auto; }
.wk.w video { aspect-ratio: 16 / 9; object-fit: cover; }
.wk figcaption { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
.wk-grid { display: grid; gap: var(--s-5); margin-top: var(--s-6); grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; }
@media (min-width: 700px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wk-grid.wk-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wk-grid.wk-v { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .wk-grid.wk-v { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wk-side h3 { font-size: var(--fs-h4); margin: 0 0 var(--s-3); }
.wk-side p { color: var(--text-2); }
.wk-tag { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.wk-index { list-style: none; padding: 0; margin: var(--s-6) 0 0; border-top: 1px solid var(--line-strong); }
.wk-index li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line-strong); }
.wk-index a { color: var(--text); font-weight: 600; }
.wk-index p { margin: var(--s-1) 0 0; color: var(--text-2); font-size: var(--fs-small); }
