/* Specialist techniques — looping 3D demonstrations (js/tech3d.js draws the canvas, js/site.js switches tabs). */
.advanced { background: radial-gradient(ellipse 60% 60% at 50% 40%, var(--burgundy) 0%, var(--burgundy-deep) 70%); color: #fff; position: relative; overflow: hidden; }
.advanced .intro { color: rgba(255,255,255,.65); }
.adv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 40px; align-items: start; }

/* Discipline chips: each shows its own set of technique tabs */
.adv-groups { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: -12px; }
.adv-groups button { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; cursor: pointer; border: 1px solid rgba(255,255,255,.14); background: transparent; color: rgba(255,255,255,.7);
    font: 400 13px/1 var(--sans); letter-spacing: .02em; transition: background .3s, border-color .3s, color .3s, translate .3s var(--ease-out); }
.adv-groups button:hover { border-color: rgba(201,168,118,.55); color: #fff; translate: 0 -2px; }
.adv-groups button[aria-pressed="true"] { background: var(--brass-2); border-color: var(--brass-2); color: var(--navy); }
.adv-groups .count { font-size: 10.5px; color: var(--brass-2); font-variant-numeric: tabular-nums; }
.adv-groups button[aria-pressed="true"] .count { color: var(--navy); opacity: .7; }

/* Technique picker */
.adv-tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.adv-tabs button[hidden] { display: none; }
.adv-tabs button { position: relative; overflow: hidden; display: grid; grid-template-columns: 30px 1fr; grid-template-areas: "ico num" "ico name"; column-gap: 12px; row-gap: 3px; align-items: center; text-align: left;
    padding: 14px 14px 16px; cursor: pointer; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: rgba(255,255,255,.72); font: inherit;
    transition: background .3s, border-color .3s, color .3s, translate .3s var(--ease-out); }
.adv-tabs button:hover { border-color: rgba(201,168,118,.45); color: #fff; translate: 0 -3px; }
.adv-tabs button[aria-selected="true"] { background: linear-gradient(100deg, rgba(201,168,118,.22), rgba(201,168,118,.03)); border-color: rgba(201,168,118,.65); color: #fff; }
.adv-ico { grid-area: ico; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--brass-2); transition: color .3s, filter .3s; }
.adv-tabs button[aria-selected="true"] .adv-ico { color: #fbe7bd; filter: drop-shadow(0 0 6px rgba(243,215,156,.5)); }
.adv-tabs .num { grid-area: num; color: var(--brass-2); }
.adv-tabs .name { grid-area: name; font: 500 17px/1.15 var(--serif); }
.adv-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--brass-2); transform: scaleX(0); transform-origin: left; }

/* Stage: title, WebGL view, numbered steps */
.adv-stage { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid rgba(var(--brand-light-rgb),.16); box-shadow: 0 40px 80px -50px rgba(0,0,0,.85);
    background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(var(--brand-glow-rgb),.3), transparent 70%), linear-gradient(180deg, rgba(var(--brand-deep-rgb),.92), var(--burgundy-dark)); }
.adv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 0; min-height: 74px; position: relative; z-index: 2; }
.adv-now { margin: 0; display: grid; gap: 7px; }
.adv-now .num { font-size: 11px; letter-spacing: .2em; color: var(--brass-2); }
.adv-now strong { font: 500 clamp(24px, 2.4vw, 32px)/1.05 var(--serif); letter-spacing: -.01em; }
.adv-tags { display: grid; justify-items: end; gap: 8px; margin-top: 2px; }
.adv-live { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.adv-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e05a4f; box-shadow: 0 0 8px #e05a4f; animation: advBlink 1.4s ease-in-out infinite; }
.adv-hint { display: none; align-items: center; gap: 8px; white-space: nowrap; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); transition: opacity .6s; }
.adv-hint::before { content: "⟲"; font-size: 15px; letter-spacing: 0; color: var(--brass-2); }
.adv-stage.is-3d .adv-hint { display: flex; }
.adv-stage.touched .adv-hint { opacity: 0; }
@keyframes advBlink { 50% { opacity: .25; } }

.adv-view { position: relative; aspect-ratio: 16 / 8.6; min-height: 280px; margin-top: 4px; overflow: hidden; cursor: grab; touch-action: pan-y; }
.adv-view.dragging { cursor: grabbing; }
.adv-view::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(169,198,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(169,198,255,.06) 1px, transparent 1px); background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 55% 60% at 50% 55%, #000 25%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 55%, #000 25%, transparent 80%); }
.adv-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.adv-view .viewer-frame { position: absolute; inset: 14px; pointer-events: none; }

.adv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(169,198,255,.16); position: relative; z-index: 2; }
.adv-steps li { position: relative; min-width: 0; }
.adv-steps li + li { border-left: 1px solid rgba(255,255,255,.07); }
.adv-steps button { width: 100%; height: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 18px 19px; text-align: left; cursor: pointer; border: 0; background: none;
    color: rgba(255,255,255,.5); font: 400 15px/1.3 var(--sans); transition: color .35s, background .35s; }
.adv-steps button:hover { color: rgba(255,255,255,.88); }
.adv-steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; font: 500 12.5px/1 var(--sans); font-variant-numeric: tabular-nums;
    transition: background .35s, border-color .35s, color .35s, box-shadow .35s; }
.adv-steps li.on button { color: #fff; background: linear-gradient(180deg, rgba(201,168,118,.18), rgba(201,168,118,.03)); }
.adv-steps li.on .n { background: var(--brass-2); border-color: var(--brass-2); color: var(--navy); box-shadow: 0 0 0 4px rgba(201,168,118,.2), 0 0 18px rgba(227,184,100,.45); }
.adv-steps li.done button { color: rgba(255,255,255,.86); }
.adv-steps li.done .n { border-color: var(--brass-2); color: var(--brass-2); font-size: 0; }
.adv-steps li.done .n::before { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; }
.adv-steps .fill { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brass), #fbe7bd); transform: scaleX(0); transform-origin: left; }
.adv-steps li.done .fill { transform: scaleX(1); opacity: .4; }

/* Without WebGL the demonstration falls back to the step list and the description alongside it. */
.advanced.no-webgl .adv-view, .advanced.no-webgl .adv-live, .advanced.no-webgl .adv-hint { display: none; }

/* Narration toggle: brass pill with a small equaliser that moves while the voice-over plays. */
.adv-voice { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; cursor: pointer; border: 1px solid rgba(201,168,118,.55); border-radius: 999px; background: rgba(var(--brand-deep-rgb),.6);
    color: #fbe7bd; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.adv-voice:hover { border-color: var(--brass-2); background: rgba(201,168,118,.16); }
.adv-voice[aria-pressed="true"] { background: var(--brass-2); border-color: var(--brass-2); color: var(--navy); }
.adv-voice:focus-visible { outline: 2px solid #fbe7bd; outline-offset: 3px; }
.adv-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.adv-eq i { width: 2px; height: 30%; background: currentColor; border-radius: 1px; }
.adv-voice[aria-pressed="true"] .adv-eq i { animation: advEq 1s ease-in-out infinite; }
.adv-eq i:nth-child(2) { animation-delay: -.3s; }
.adv-eq i:nth-child(3) { animation-delay: -.6s; }
.adv-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes advEq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ACCA bench monitor laid over the demonstration: station plate (top left), spec readout (right), timecode (bottom left). */
.adv-hud { position: absolute; inset: 22px 24px; pointer-events: none; font: 500 10.5px/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .08em; color: rgba(255,241,244,.85); }
.adv-hud-plate { position: absolute; left: 0; top: 0; margin: 0; display: flex; align-items: center; gap: 10px; padding: 7px 11px 7px 9px; background: rgba(var(--brand-deep-rgb),.55);
    border: 1px solid rgba(var(--brand-light-rgb),.18); border-left: 2px solid var(--brass-2); text-transform: uppercase; backdrop-filter: blur(4px); }
.adv-hud-plate img { height: 13px; width: auto; opacity: .92; }
.adv-hud-spec { position: absolute; right: 0; top: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; justify-items: end; max-width: 42%; }
.adv-hud-spec li { padding: 4px 8px; background: rgba(var(--brand-deep-rgb),.45); border-right: 2px solid rgba(var(--brand-light-rgb),.35); text-align: right; }
.adv-hud-spec b { color: var(--brass-2); font-weight: 600; margin-right: 8px; }
.adv-hud-clock { position: absolute; left: 0; bottom: 0; margin: 0; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; color: rgba(255,241,244,.85); }
.adv-hud-clock .rec { width: 7px; height: 7px; border-radius: 50%; background: #e05a4f; box-shadow: 0 0 8px #e05a4f; animation: advBlink 1.4s ease-in-out infinite; }
.adv-stage:not(.is-3d) .adv-hud { display: none; }

/* Subtitles for the narration, centred along the bottom of the stage. */
.adv-sub { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; width: min(76%, 720px); margin: 0; pointer-events: none; text-align: center;
    font: 400 clamp(14px, 1.25vw, 16.5px)/1.45 var(--sans); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.adv-sub:empty { display: none; }
.adv-sub:not(:empty) { padding: 8px 14px; background: rgba(var(--brand-deep-rgb),.85); border-radius: 3px; }
.adv-stage.is-narrating .adv-hud-clock { bottom: auto; top: 40px; }

/* Transcript under each description. */
.adv-transcript { margin-top: 22px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.adv-transcript summary { cursor: pointer; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); }
.adv-transcript p { font-size: 14px; line-height: 1.65; margin: 12px 0 0; }
.adv-transcript .adv-voice-note { font-size: 12px; color: rgba(255,255,255,.45); }
@media (max-width: 720px) {
    .adv-hud { inset: 12px; font-size: 9px; }
    .adv-hud-spec { display: none; }
    .adv-sub { width: calc(100% - 24px); bottom: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .adv-eq i, .adv-hud-clock .rec { animation: none !important; } }

/* Description */
.adv-info { display: flex; }
.adv-panel { border-left: 1px solid rgba(201,168,118,.4); padding-left: 24px; animation: advPanelIn .7s var(--ease-out); }
.adv-panel h3 { font: 500 32px/1.1 var(--serif); margin-bottom: 16px; }
.adv-panel p { color: rgba(255,255,255,.72); }
.adv-panel ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.adv-panel li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #fff; }
.adv-panel li::before { content: ""; width: 18px; height: 1px; background: var(--brass-2); box-shadow: 0 0 6px var(--brass-2); }
@keyframes advPanelIn { from { opacity: 0; translate: 16px 0; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 1180px) { .adv-tabs { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .adv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
    .adv-groups { gap: 6px; margin-bottom: -14px; }
    .adv-groups button { padding: 9px 12px; font-size: 12px; }
    .adv-tabs { gap: 6px; }
    .adv-tabs button { grid-template-columns: 1fr; grid-template-areas: "ico" "name"; justify-items: center; text-align: center; row-gap: 6px; padding: 12px 4px 13px; }
    .adv-ico { width: 26px; height: 26px; }
    .adv-tabs .num { position: absolute; left: 6px; top: 5px; font-size: 9px; letter-spacing: .06em; }
    .adv-tabs .name { font: 500 11.5px/1.2 var(--sans); }
    .adv-head { padding: 16px 16px 0; }
    .adv-live { display: none; }
    .adv-view { aspect-ratio: 1 / .9; min-height: 0; margin-top: 4px; }
    .adv-steps { grid-template-columns: 1fr; }
    .adv-steps li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
    .adv-steps button { padding: 13px 16px 15px; font-size: 14.5px; }
    .adv-panel h3 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .adv-live::before, .adv-panel { animation: none; }
}

/* ---------- Factory model (partials/factory-floor, js/factory-floor.js) ---------- */
.factory { background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--burgundy) 0%, var(--burgundy-deep) 72%); color: #fff; position: relative; overflow: hidden; }
.factory .intro { color: rgba(255,255,255,.65); }
.factory-stage { position: relative; aspect-ratio: 16 / 8.6; min-height: 380px; margin-top: 8px; border: 1px solid rgba(169,198,255,.16); overflow: hidden; cursor: grab; touch-action: pan-y;
    scroll-margin-top: calc(var(--header) + 12px); transition: height .6s var(--ease-out);
    background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(var(--brand-glow-rgb),.35), transparent 70%); box-shadow: 0 40px 80px -50px rgba(0,0,0,.85); }
.factory-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.factory-stage .viewer-frame { position: absolute; inset: 14px; pointer-events: none; }
.factory-tags { position: absolute; inset: 0; pointer-events: none; }
.factory-tag { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; white-space: nowrap; }
.factory-tag.on { opacity: 1; visibility: visible; }
.factory-tag--hall { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; font: 500 15px/1 var(--serif); letter-spacing: .02em; color: #fff;
    background: rgba(var(--brand-deep-rgb),.78); border-right: 2px solid var(--tint, var(--brass-2)); }
.factory-tag--hall b { padding: 4px 6px; background: var(--tint, var(--brass-2)); color: var(--navy); font: 600 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.factory-tag--hall.hot { background: rgba(201,168,118,.92); color: var(--navy); }
.factory-tag--bench { pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 4px; border: 1px solid rgba(201,168,118,.5); border-radius: 999px;
    background: rgba(var(--brand-deep-rgb),.8); color: rgba(255,255,255,.88); font: 500 11.5px/1 var(--sans); }
.factory-tag--bench b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brass-2); color: var(--navy); font-size: 10px; }
.factory-tag--bench span { max-width: 0; overflow: hidden; transition: max-width .35s; }
.factory-tag--bench.hot, .factory-tag--bench:hover { background: var(--brass-2); color: var(--navy); z-index: 2; }
.factory-tag--bench.hot b, .factory-tag--bench:hover b { background: var(--navy); color: var(--brass-2); }
.factory-tag--bench.hot span, .factory-tag--bench:hover span, .factory-tag--bench.near span { max-width: 220px; }
/* Names of the service rooms (reception, vault…), shown once you zoom into a floor. */
.factory-tag--room { padding: 4px 8px; font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); background: rgba(var(--brand-deep-rgb),.6); }
/* Inside a floor the stage takes every gesture (drag to move, pinch to zoom) instead of scrolling the page. */
.factory.is-inside .factory-stage { touch-action: none; }
.factory-zoom { position: absolute; right: 18px; top: 18px; z-index: 3; display: grid; gap: 6px; }
.factory-zoom[hidden] { display: none; }
.factory-zoom button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer; border: 1px solid rgba(201,168,118,.55); background: rgba(var(--brand-deep-rgb),.78); color: #fbe7bd; }
.factory-zoom button:hover, .factory-zoom button:focus-visible { background: var(--brass-2); color: var(--navy); }
.factory-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.factory-hint { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; margin: 0; padding: 7px 14px; pointer-events: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
    color: rgba(255,255,255,.75); background: rgba(var(--brand-deep-rgb),.6); }
.factory-back { position: absolute; left: 22px; top: 20px; padding: 9px 14px; cursor: pointer; border: 1px solid rgba(201,168,118,.55); background: rgba(var(--brand-deep-rgb),.75); color: #fbe7bd;
    font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.factory-back:hover { background: var(--brass-2); color: var(--navy); }
.factory-note { position: absolute; right: 22px; bottom: 18px; margin: 0; font-size: 10.5px; color: rgba(255,255,255,.4); pointer-events: none; }
.factory-fallback { display: none; }
.factory.no-webgl .factory-stage { aspect-ratio: auto; min-height: 0; padding: 22px; cursor: default; }
.factory.no-webgl .factory-stage > :not(.factory-fallback) { display: none; }
.factory.no-webgl .factory-fallback { display: block; margin: 0; color: rgba(255,255,255,.7); }

/* Bench pop-up: opens inside the model, growing out of the bench; the #techniques stage and descriptions are moved into its two slots. */
.factory.is-open .factory-stage { aspect-ratio: auto; height: clamp(600px, calc(100svh - var(--header) - 28px), 940px); cursor: default; }
.factory.is-open :is(.factory-tags, .factory-hint, .factory-back, .factory-note, .factory-zoom) { display: none; }
.factory-pop { position: absolute; inset: 16px; z-index: 5; display: flex; flex-direction: column; min-height: 0; border: 1px solid rgba(201,168,118,.5);
    background: rgba(var(--brand-deep-rgb),.6); backdrop-filter: blur(7px) saturate(1.1); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
    opacity: 0; scale: .15; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: opacity .4s, scale .65s var(--ease-out); }
.factory-pop.in { opacity: 1; scale: 1; }
.factory-pop[hidden] { display: none; }
.factory-pop-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 16px; border-bottom: 1px solid rgba(201,168,118,.3);
    background: linear-gradient(90deg, rgba(201,168,118,.16), rgba(201,168,118,0) 60%); }
.factory-pop-plate { margin: 0; display: flex; align-items: center; gap: 12px; min-width: 0; font: 500 11px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,241,244,.9); }
.factory-pop-plate img { height: 16px; width: auto; }
.factory-pop-plate span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 12px; border-left: 1px solid rgba(201,168,118,.45); }
.factory-pop-nav { display: flex; gap: 6px; flex: none; }
.factory-pop-nav button { display: inline-flex; align-items: center; gap: 8px; height: 34px; min-width: 34px; justify-content: center; padding: 0 10px; cursor: pointer;
    border: 1px solid rgba(201,168,118,.5); background: rgba(var(--brand-deep-rgb),.7); color: #fbe7bd; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.factory-pop-nav button:hover, .factory-pop-nav button:focus-visible { background: var(--brass-2); color: var(--navy); }
.factory-pop-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.factory-pop-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.factory-pop-stage { min-width: 0; min-height: 0; display: flex; }
.factory-pop .adv-stage { flex: 1; border: 0; box-shadow: none; }
.factory-pop .adv-view { aspect-ratio: auto; flex: 1; min-height: 0; }
.factory-pop-info { min-height: 0; overflow: auto; padding: 22px 24px; border-left: 1px solid rgba(var(--brand-light-rgb),.14); background: rgba(var(--brand-deep-rgb),.55); }
.factory-pop .adv-info { display: block; }
.factory-pop .adv-panel { border-left: 0; padding-left: 0; }
.factory-pop .adv-panel h3 { font-size: 26px; }
/* What #techniques shows while its demonstration is inside the factory. */
.adv-away { grid-column: 1 / -1; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 30px; text-align: center; border: 1px dashed rgba(201,168,118,.4); color: rgba(255,255,255,.7); }
.adv-away p { margin: 0; }
.adv-away button { padding: 10px 18px; cursor: pointer; border: 1px solid var(--brass-2); border-radius: 999px; background: transparent; color: #fbe7bd; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.adv-away button:hover { background: var(--brass-2); color: var(--navy); }
html.factory-locked { overflow: hidden; }
.factory-nav { margin-top: 22px; display: grid; gap: 14px; }
.factory-halls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.factory-halls button { display: grid; gap: 6px; padding: 16px 18px; text-align: left; cursor: pointer; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.02); color: rgba(255,255,255,.7);
    transition: border-color .3s, background .3s, translate .3s; }
.factory-halls button:hover { border-color: rgba(201,168,118,.55); translate: 0 -2px; }
.factory-halls button[aria-pressed="true"] { background: linear-gradient(100deg, rgba(201,168,118,.22), rgba(201,168,118,.03)); border-color: rgba(201,168,118,.65); color: #fff; }
.factory-halls strong { font: 500 20px/1.1 var(--serif); color: #fff; }
.factory-halls span { font-size: 13px; line-height: 1.45; }
.factory-halls em { font-style: normal; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); }
.factory-benches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.factory-benches button { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; cursor: pointer; border: 1px solid rgba(201,168,118,.35); border-radius: 999px; background: transparent; color: #fff; font-size: 13px; }
.factory-benches button:hover, .factory-benches button:focus-visible { background: var(--brass-2); color: var(--navy); }
.factory-benches .num { font-size: 10.5px; color: var(--brass-2); font-variant-numeric: tabular-nums; }
.factory-benches button:hover .num { color: var(--navy); }
@media (max-width: 900px) { .factory-halls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    /* Floor tags would hang off the left edge on a phone; the floor buttons below the model name the floors instead. */
    .factory-stage { aspect-ratio: 1 / 1.05; min-height: 0; } .factory-note, .factory-tag--hall { display: none; }
    .factory.is-open .factory-stage { height: auto; aspect-ratio: 1 / 1.05; }
    .factory-hint { white-space: normal; width: calc(100% - 40px); text-align: center; font-size: 9.5px; letter-spacing: .12em; }
    .factory-pop { position: fixed; inset: 0; z-index: 80; border: 0; background: rgba(var(--brand-deep-rgb),.94); }
    .factory-pop-body { display: block; overflow: auto; }
    .factory-pop-stage { display: block; }
    .factory-pop .adv-view { aspect-ratio: 1 / .9; flex: none; }
    .factory-pop-info { overflow: visible; border-left: 0; }
    .factory-pop-nav .factory-pop-close { font-size: 0; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .factory-stage, .factory-pop { transition: none; } }
