/* ==========================================================================
   360° Video (/360-video)
   Page-only layouts. Shared pieces come from components.css; values are tokens.
   ========================================================================== */

/* ── Hero: a window into a full circle — drag to look round the room ───── */
.v36-hero { position: relative; padding-bottom: var(--section-pad-tight); overflow-x: clip; isolation: isolate; }
.v36-hero__light { position: absolute; z-index: -1; inset: -15% -10% auto 40%; height: 120%; background: var(--light-spot); pointer-events: none; }
.v36-hero__grid { display: grid; gap: var(--sp-6) var(--grid-gutter); align-items: center; }
@media (min-width: 1200px) { .v36-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
@media (max-width: 1199.98px) { .v36-hero__grid { grid-template-columns: minmax(0, 1fr); } }
.v36-hero__copy { display: grid; gap: var(--sp-3); justify-items: start; }
.v36-hero__title { max-width: 14ch; }
.v36-hero__answer { color: var(--c-text); max-width: 54ch; }
.v36-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }
@media (max-width: 575.98px) { .v36-hero__actions .btn { width: 100%; padding-inline: var(--sp-3); white-space: normal; text-align: center; text-wrap: balance; line-height: 1.2; } }
.js-motion .v36-hero__copy > * { animation: v36-rise var(--dur-slow) var(--ease-signature) backwards; }
.js-motion .v36-hero__copy > :nth-child(2) { animation-delay: var(--stagger-items); }
.js-motion .v36-hero__copy > :nth-child(3) { animation-delay: calc(var(--stagger-items) * 2); }
.js-motion .v36-hero__copy > :nth-child(n + 4) { animation-delay: calc(var(--stagger-items) * 3); }
@keyframes v36-rise { from { opacity: 0.01; transform: translateY(var(--reveal-rise)); } }

/* the viewer: a 120° window onto a 360° strip that wraps */
.pano { display: grid; gap: var(--sp-2); margin: 0; padding: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem); border: var(--border-strong); border-radius: var(--r-lg); background: radial-gradient(90% 55% at 50% 100%, rgb(var(--c-accent-rgb) / 0.12), transparent 70%), var(--c-surface-1); box-shadow: var(--shadow), 0 0 120px -30px var(--glow-color); }
.js-motion .pano { animation: v36-rise var(--dur-slow) var(--ease-signature) calc(var(--stagger-items) * 2) backwards; }
.pano__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(var(--c-surface-2), var(--c-bg) 70%); cursor: grab; touch-action: pan-y; user-select: none; isolation: isolate; }
.pano__frame.is-drag { cursor: grabbing; }
.pano__world { position: absolute; top: 0; left: 0; width: 600%; max-width: none; height: 100%; transform: translate3d(calc(var(--pan, 0.16667) * -100%), 0, 0); will-change: transform; }
.pano__glow { fill: url(#v36-glow); }
.pano__beam { fill: url(#v36-beam); }
.pano__ceiling, .pano__floor { stroke: var(--c-line-strong); stroke-width: 1; }
.pano__ticks { stroke: var(--c-text-muted); stroke-width: 6; stroke-dasharray: 0.75 52.58; opacity: 0.6; }
.pano__cols path, .pano__floorlines path, .pano__seats path, .pano__door { fill: none; stroke: var(--c-line-strong); stroke-width: 1; }
.pano__floorlines path { stroke: var(--c-line); }
.pano__seats path { stroke: rgb(var(--c-accent-rgb) / 0.35); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.pano__stage { fill: var(--c-surface-3); stroke: rgb(var(--c-accent-rgb) / 0.6); }
.pano__screen { fill: rgb(var(--c-accent-rgb) / 0.14); stroke: var(--c-accent); stroke-width: 1; }
.pano__windows rect { fill: rgb(var(--c-accent-rgb) / 0.05); stroke: var(--c-line-strong); }
.pano__labels text { fill: var(--c-text-muted); font-family: var(--font-mono); font-size: 7px; text-anchor: middle; }
/* a soft lens edge and a centre mark, fixed over the moving world */
.pano__lens { position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 50%, transparent 55%, rgb(0 0 0 / 0.55)); pointer-events: none; }
.pano__reticle { position: absolute; left: 50%; top: 50%; width: 1.5rem; aspect-ratio: 1; translate: -50% -50%; border: 1px solid rgb(var(--c-accent-rgb) / 0.6); border-radius: 50%; pointer-events: none; }
.pano__reticle::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: var(--c-accent); }
.pano__rec { position: absolute; right: var(--sp-2); top: var(--sp-2); display: inline-flex; align-items: center; gap: var(--sp-1); padding: 2px var(--sp-1); border-radius: var(--r-sm); background: var(--c-overlay); font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-text); }
.pano__rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-rec); }
.js-motion .pano__rec i { animation: v36-blink calc(var(--dur-slow) * 2) var(--ease-hover) infinite; }
@keyframes v36-blink { 50% { opacity: 0.25; } }
/* the little planet: where you are looking, out of the full circle */
.pano__planet { position: absolute; right: var(--sp-2); bottom: var(--sp-2); width: clamp(2.75rem, 2rem + 3vw, 4rem); aspect-ratio: 1; border: 1px solid var(--c-line-strong); border-radius: 50%; background: var(--c-overlay); }
.pano__planet::after { content: ""; position: absolute; inset: 42%; border-radius: 50%; background: var(--c-text); }
.pano__planet i { position: absolute; inset: 3px; border-radius: 50%; background: conic-gradient(from -60deg, rgb(var(--c-accent-rgb) / 0.75) 0 120deg, transparent 120deg); rotate: var(--look, 0deg); }
.pano__soon { justify-self: start; margin-inline: var(--sp-1); white-space: normal; line-height: 1.3; }

.pano__control { display: grid; grid-template-columns: auto minmax(0, 1fr) 3.5rem; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-1); }
.pano__label { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-text-muted); }
.pano__out { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--c-accent-text); text-align: right; font-variant-numeric: tabular-nums; }
.pano__range { width: 100%; height: var(--tap); margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.pano__range::-webkit-slider-runnable-track { height: 2px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--c-accent) var(--fill, 0%), var(--c-line-strong) var(--fill, 0%)); }
.pano__range::-moz-range-track { height: 2px; border-radius: var(--r-pill); background: var(--c-line-strong); }
.pano__range::-moz-range-progress { height: 2px; background: var(--c-accent); }
.pano__range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border: 2px solid var(--c-accent); border-radius: 50%; background: var(--c-bg); box-shadow: 0 0 12px var(--glow-color); }
.pano__range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--c-accent); border-radius: 50%; background: var(--c-bg); }
.pano__range:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: var(--r-sm); }
@media (max-width: 379.98px) { .pano__control { grid-template-columns: minmax(0, 1fr) 3rem; } .pano__label { grid-column: 1 / -1; } }

/* ── 01 · What it is ───────────────────────────────────────────────────── */
.v36-feel { display: grid; gap: var(--grid-gutter); list-style: none; }
@media (min-width: 576px) { .v36-feel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .v36-feel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.v36-feel li { display: grid; align-content: start; gap: var(--sp-1); padding: var(--sp-3); border: var(--border); border-radius: var(--r-lg); background: var(--c-surface-1); }
.v36-feel .icon { --icon-size: 1.5rem; margin-bottom: var(--sp-1); color: var(--c-accent-text); }
.v36-feel h3 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.v36-feel p { color: var(--c-text-muted); font-size: var(--fs-small); }

/* ── 02 · Who uses it ──────────────────────────────────────────────────── */
.v36-who__grid { display: grid; gap: var(--sp-5) var(--grid-gutter); align-items: start; }
@media (min-width: 992px) { .v36-who__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .v36-who__intro { position: sticky; top: calc(var(--header-h) + var(--sp-4)); } }
.v36-who__intro { display: grid; gap: var(--sp-3); }
.v36-who__intro .t-h2 { max-width: 12ch; }
.v36-who__intro .t-lead { color: var(--c-text-muted); max-width: 40ch; }
.v36-chips { display: flex; flex-wrap: wrap; gap: var(--sp-1); list-style: none; }
.v36-chips li { padding: var(--sp-1) var(--sp-2); border: var(--border-strong); border-radius: var(--r-pill); font-size: var(--fs-small); }
.v36-for { display: grid; gap: var(--grid-gutter); list-style: none; }
@media (min-width: 576px) { .v36-for { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v36-for__card { display: grid; grid-template-rows: auto 1fr auto; gap: var(--sp-1); padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); background: var(--c-bg); transition: border-color var(--dur-base) var(--ease-signature); }
.v36-for__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(20rem circle at var(--mx, 50%) var(--my, 0%), rgb(var(--c-accent-rgb) / 0.12), transparent 60%); opacity: 0; transition: opacity var(--dur-base) var(--ease-signature); }
.v36-for__card:hover { border-color: var(--c-line-strong); }
.v36-for__card:hover::before { opacity: 1; }
.v36-for__card h3 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.v36-for__card p { color: var(--c-text-muted); font-size: var(--fs-small); }
.v36-for__card .v36-for__use { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: var(--border); font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-accent-text); }

/* ── 03 · Which one do you need ────────────────────────────────────────── */
.which { display: grid; gap: var(--grid-gutter); }
@media (min-width: 576px) { .which { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .which { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.which__card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: var(--sp-2); padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); border: var(--border); border-radius: var(--r-lg); background: var(--c-bg); transition: border-color var(--dur-base) var(--ease-signature); }
.which__card:not(.which__card--here):hover { border-color: var(--c-line-strong); }
.which__card--here { border-color: rgb(var(--c-accent-rgb) / 0.55); background: radial-gradient(circle at 100% 0%, rgb(var(--c-accent-rgb) / 0.14), transparent 55%), var(--c-bg); }
.which__here { position: absolute; top: var(--sp-3); right: var(--sp-3); padding: 2px var(--sp-1); border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-accent-ink); font-size: var(--fs-caption); font-weight: var(--text-weight-bold); }
.which__when { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-accent-text); }
.which__card--here .which__when { padding-right: 6.5rem; }
.which__name { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.which__name a { color: inherit; text-decoration: none; }
.which__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.which__name a:focus-visible { outline: none; }
.which__card:has(a:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.which__text { color: var(--c-text-muted); font-size: var(--fs-small); }
.which__card:hover .which__go .icon { translate: 4px 0; }

/* ── 04 · Process + handover ───────────────────────────────────────────── */
.v36-process__grid { display: grid; gap: var(--sp-6) var(--grid-gutter); align-items: start; }
@media (min-width: 992px) { .v36-process__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-6) clamp(3rem, 6vw, 6rem); } .v36-process .delivery { position: sticky; top: calc(var(--header-h) + var(--sp-4)); } }
.v36-process__steps { display: grid; gap: var(--sp-3); }
.v36-process__steps .t-h2 { max-width: 14ch; }
.v36-steps { display: grid; list-style: none; margin-top: var(--sp-2); border-top: var(--border-strong); }
.v36-steps li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-3) 0; border-bottom: var(--border); }
.v36-steps__no { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--display-weight); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgb(var(--c-accent-rgb) / 0.75); }
.v36-steps h3 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.v36-steps p { margin-top: 4px; color: var(--c-text-muted); max-width: 46ch; }
.delivery__foot a, .section-head__lead a { color: var(--c-accent-text); }


/* ── 05 · Samples: the placeholder, then three tours (labelled as tours) ─ */
.v36-ph { aspect-ratio: 3 / 1; place-items: center; align-content: center; gap: var(--sp-2); border-radius: var(--r-lg); }
@media (max-width: 991.98px) { .v36-ph { aspect-ratio: 16 / 9; } }
.v36-ph .ph-media__label { text-align: center; }
.v36-ph__icon { --icon-size: 2.5rem; position: relative; stroke-width: 1.1; color: var(--c-accent-text); filter: drop-shadow(0 0 12px var(--glow-color)); }
.v36-note { margin: var(--sp-5) 0 var(--sp-3); font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-text-muted); }
.v36-tours { display: grid; gap: var(--sp-4) var(--grid-gutter); list-style: none; }
@media (min-width: 576px) { .v36-tours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .v36-tours { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 576px) and (max-width: 991.98px) { .v36-tours > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.v36-tour__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: var(--border); border-radius: var(--r-md); background: var(--c-surface-2); overflow: hidden; cursor: pointer; isolation: isolate; }
.v36-tour__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); transition: transform var(--dur-slow) var(--ease-signature), filter var(--dur-base) var(--ease-signature); }
.v36-tour__media:hover img { transform: scale(1.04); filter: none; }
.v36-tour__media:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.v36-tour__open { position: absolute; left: var(--sp-2); bottom: var(--sp-2); display: inline-flex; align-items: center; gap: var(--sp-1); padding: var(--sp-0-5) var(--sp-2); border-radius: var(--r-pill); background: var(--c-overlay); color: var(--c-text); font-size: var(--fs-small); font-weight: var(--text-weight-med); transition: background-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover); }
.v36-tour__open .icon { --icon-size: 1rem; color: var(--c-accent-text); }
.v36-tour__media:hover .v36-tour__open { background: var(--c-accent); color: var(--c-accent-ink); }
.v36-tour__media:hover .v36-tour__open .icon { color: currentColor; }
.v36-tour__meta { display: grid; gap: 2px; margin-top: var(--sp-1); }
.v36-tour__name { font-weight: var(--text-weight-bold); line-height: 1.3; }
.v36-tour__kind { font-size: var(--fs-small); color: var(--c-text-muted); }
