/* Hallmark · shape: Showcase Run (a short banner head, the live 360 tour across the container, an index of the seven solutions on its walls that opens each film, the brands as a set in type, contact close) · genre: atmospheric · theme: Midnight (locked: design.md) · redesign: full
 * hero: Banner (head on seven columns, the line and actions on five, the tour starting inside the first screen right under it) · nav: edge-aligned · footer: index columns · imagery: the product (the live 360 showroom itself, its wall cards and their films) · signature: the 360 room you walk through on the first screen, each wall card opening its film
 * axes: dark/grotesk-sans/cool · posture: committed · job: hire (a virtual showroom for a brand) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a tour argues by being walked; the index under it names the seven solutions on its walls and opens each film, so the room is proof and menu at once */
/* Hallmark · dismissed 11 · .service-card-hs is a card painted inside the 3D room by CSS3DRenderer; its one hover signal is the label stepping to the accent, the picture stays still */
@import url("/ds/tokens.css");
@import url("/ds/base.css");
@import url("/ds/site.css");

/* restated from base.css and site.css for this file's own checks */
html, body { overflow-x: clip; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
.btn:disabled, .ctrl-btn:disabled, .nav-arrow:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- hero: Banner ---------- */
.sr-hero { padding-block: var(--space-3xl) var(--space-2xl); }
.sr-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; }
.sr-hero h1 { max-width: 12ch; }
.sr-hero__side { display: grid; gap: var(--space-lg); }
.sr-hero .hero__actions { margin-top: 0; }
@media (max-width: 60rem) { .sr-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }

/* ---------- the tour: the live room in a frame (ids read by the tour script) ---------- */
.showcase { padding-bottom: var(--section-gap); }
.tour { position: relative; height: clamp(440px, 74svh, 780px); background: var(--color-paper-2); box-shadow: var(--shadow-card); overflow: hidden; }
.tour:fullscreen { height: 100%; }
#scene-container { position: relative; width: 100%; height: 100%; cursor: grab; touch-action: none; }
#scene-container.dragging { cursor: grabbing; }
#scene-container.walking { cursor: none; }
#scene-container canvas { display: block; }

.loading-overlay { position: absolute; inset: 0; z-index: var(--z-dropdown); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md); background: var(--color-paper-2); color: var(--color-muted); font-size: var(--text-sm); transition: opacity var(--dur-long) var(--ease-out); }
.loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loading-spinner { width: 32px; height: 32px; border: 2px solid var(--color-rule-2); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation-duration: 2400ms; } }

/* controls, top right of the room */
.controls { position: absolute; top: var(--space-md); right: var(--space-md); z-index: var(--z-raised); display: flex; gap: var(--space-xs); }
.ctrl-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.ctrl-btn svg, .help-panel__icon svg, .hint svg, .service-panel__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ctrl-btn:hover { background: var(--color-rule-2); color: var(--color-ink); }
.ctrl-btn:active { transform: translateY(1px); }
.ctrl-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.help-panel { position: absolute; top: calc(var(--space-md) + 44px + var(--space-xs)); right: var(--space-md); z-index: var(--z-dropdown); width: min(300px, calc(100% - 2 * var(--space-md))); display: grid; gap: var(--space-sm); padding: var(--space-lg); background: var(--color-paper-3); box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transition: opacity var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
.help-panel.active { opacity: 1; visibility: visible; transition: opacity var(--dur-short) var(--ease-out); }
.help-panel__title { font-weight: 500; color: var(--color-ink); }
.help-panel__row { display: flex; align-items: center; gap: var(--space-sm); }
.help-panel__icon, .help-panel__keys { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: var(--space-2xs); min-width: 36px; height: 36px; color: var(--color-accent); }
.help-panel__k, .hint__key { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 var(--space-2xs); border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.help-panel__desc { font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.4; }
.help-panel__desc strong { font-weight: 500; color: var(--color-ink); }

/* the first-visit hint, top left where the room is calmest */
.hint { position: absolute; top: var(--space-md); left: var(--space-md); z-index: var(--z-raised); max-width: min(30rem, calc(100% - 260px)); padding: var(--space-sm) var(--space-md); background: var(--color-paper-3); box-shadow: var(--shadow-card); pointer-events: none; transition: opacity var(--dur-long) var(--ease-out); }
.hint.hidden { opacity: 0; }
.hint__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.hint__list li { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.hint svg { color: var(--color-accent); }
@media (max-width: 40rem) { .hint { top: calc(var(--space-md) + 44px + var(--space-sm)); right: var(--space-md); max-width: none; } }

/* walk forward and back */
.nav-arrows { position: absolute; bottom: var(--space-lg); left: 50%; z-index: var(--z-raised); display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); transform: translateX(-50%); }
.nav-arrow { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav-arrow svg { width: 28px; height: 28px; fill: currentColor; }
.nav-arrow:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.nav-arrow:active { transform: translateY(1px); }
.nav-arrow:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* the walking cursor and its trail (fixed, so they follow into full screen) */
#walk-cursor { position: fixed; top: 0; left: 0; z-index: var(--z-tooltip); display: none; width: 32px; height: 32px; pointer-events: none; transform: translate(-50%, -50%); color: var(--color-ink); }
#walk-cursor.active { display: block; }
#walk-cursor .foot { position: absolute; inset: 0; padding: 0; border: 0; font-size: inherit; transition: opacity var(--dur-micro) var(--ease-out); }
#walk-cursor .foot svg { width: 32px; height: 32px; fill: currentColor; }
#walk-cursor.step-left .foot-l { opacity: 1; }
#walk-cursor.step-right .foot-l { opacity: 0.5; }
#cursor-trail { position: fixed; inset: 0; z-index: var(--z-tooltip); pointer-events: none; overflow: hidden; }
.trail-dot { position: absolute; width: 6px; height: 6px; background: var(--color-accent); transform: translate(-50%, -50%); animation: trail-fade var(--dur-long) var(--ease-out) forwards; }
@keyframes trail-fade { from { opacity: 0.8; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .trail-dot { display: none; } }

/* the wall cards, made by the tour script and placed in 3D */
.service-card-hs { width: 260px; cursor: pointer; pointer-events: auto; }
.service-card-hs__thumb { position: relative; width: 260px; height: 160px; overflow: hidden; background: var(--color-paper-3); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.service-card-hs__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card-hs__shine { display: none; }
.service-card-hs__label { margin-top: var(--space-xs); padding: var(--space-xs) var(--space-sm); background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-md); font-weight: 500; text-align: center; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.service-card-hs:hover .service-card-hs__label { background: var(--color-accent); color: var(--color-accent-ink); }
@media (max-width: 40rem) {
  .service-card-hs, .service-card-hs__thumb { width: 180px; }
  .service-card-hs__thumb { height: 112px; }
  .service-card-hs__label { font-size: var(--text-sm); }
}

/* the film of a solution, a dialog over the page (and over the room in full screen) */
.service-panel { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: var(--space-md); opacity: 0; visibility: hidden; transition: opacity var(--dur-short) var(--ease-in), visibility 0s linear var(--dur-short); }
.service-panel.active { opacity: 1; visibility: visible; transition: opacity var(--dur-long) var(--ease-out); }
.service-panel__backdrop { position: absolute; inset: 0; background: color-mix(in oklab, var(--color-paper) 82%, transparent); }
.service-panel__card { position: relative; width: min(640px, 100%); max-height: calc(100dvh - 2 * var(--space-md)); overflow-y: auto; background: var(--color-paper-3); color: var(--color-ink); box-shadow: var(--shadow-card); }
.service-panel__video { position: relative; aspect-ratio: 16 / 9; background: var(--color-paper); }
.service-panel__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.service-panel__body { display: grid; gap: var(--space-md); padding: var(--space-xl); }
.service-panel__close { position: absolute; top: var(--space-sm); left: var(--space-sm); z-index: var(--z-raised); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--color-paper-3); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.service-panel__close:hover { background: var(--color-rule-2); }
.service-panel__close:active { transform: translateY(1px); }
.service-panel__close:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.service-panel__title { font-size: var(--text-2xl); font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
.service-panel__desc { color: var(--color-ink-2); max-width: 60ch; }
.service-panel__tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.service-panel__tag { padding: var(--space-2xs) var(--space-sm); background: var(--color-paper-2); color: var(--color-ink-2); font-size: var(--text-sm); }
.service-panel__cta { justify-self: start; }
@media (max-width: 40rem) { .service-panel__body { padding: var(--space-lg); } }

/* ---------- the seven solutions: an index under the room ---------- */
.solutions { padding-block: var(--section-gap-s) var(--section-gap); border-top: var(--rule-hair) solid var(--color-rule); }
.solutions__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.solutions__list { list-style: none; margin: 0; padding: 0; }
.solutions__list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: var(--space-xs) var(--gap-columns); align-items: center; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.solutions__list li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.solutions__list h3 { font-size: var(--text-xl); }
.solutions__list p { color: var(--color-ink-2); }
.solutions__list .btn { min-height: 44px; }
@media (max-width: 60rem) {
  .solutions__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .solutions__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .solutions__list p { grid-column: 1; }
  .solutions__list .btn { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- the brands, a set in type on a paper-2 band ---------- */
.brands { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.brands__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.brands__grid h2 { max-width: 12ch; }
.brands__side { display: grid; gap: var(--space-xl); }
.brands__names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-columns); }
.brands__names li { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-xl); font-stretch: var(--display-stretch); font-weight: var(--display-weight); color: var(--color-ink); }
.brands__line { color: var(--color-ink-2); }
@media (max-width: 60rem) { .brands__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }
@media (max-width: 40rem) { .brands__names { grid-template-columns: minmax(0, 1fr); } }
