/* ==========================================================================
   Virtual Reality (/virtual-reality)
   Page-only layouts. Shared pieces come from components.css; values are tokens.
   ========================================================================== */

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

/* the viewer: a headset-shaped window onto a 360° virtual flat that wraps round */
.vrv { 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 .vrv { animation: vrp-rise var(--dur-slow) var(--ease-signature) calc(var(--stagger-items) * 2) backwards; }
.vrv__view { position: relative; aspect-ratio: 2 / 1; cursor: grab; touch-action: pan-y; user-select: none; }
.vrv__view.is-drag { cursor: grabbing; }
/* the headset's eye-piece shape (with a nose bridge) masks the view */
.vrv__frame { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: linear-gradient(var(--c-surface-2), var(--c-bg) 75%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500' preserveAspectRatio='none'%3E%3Cpath d='M130 30H870Q970 30 970 130V350Q970 470 850 470H650Q600 470 575 420Q545 360 500 360Q455 360 425 420Q400 470 350 470H150Q30 470 30 350V130Q30 30 130 30Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500' preserveAspectRatio='none'%3E%3Cpath d='M130 30H870Q970 30 970 130V350Q970 470 850 470H650Q600 470 575 420Q545 360 500 360Q455 360 425 420Q400 470 350 470H150Q30 470 30 350V130Q30 30 130 30Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.vrv__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; }
.vrv__edge, .vrv__floor { fill: none; stroke: var(--c-line-strong); stroke-width: 1; }
.vrv__floor { stroke: var(--c-line); }
.vrv__glow { fill: url(#vrp-glow); }
.vrv__sun { fill: url(#vrp-sun); }
.vrv__window { fill: rgb(var(--c-accent-rgb) / 0.16); stroke: var(--c-accent-bright); stroke-width: 1.5; }
.vrv__city { fill: none; stroke: rgb(var(--c-accent-rgb) / 0.6); stroke-width: 1; }
.vrv__thing { fill: var(--c-surface-3); stroke: var(--c-text-muted); stroke-width: 1; }
path.vrv__thing { fill: none; }
.vrv__lamp { fill: rgb(var(--c-accent-rgb) / 0.3); stroke: var(--c-accent-bright); filter: drop-shadow(0 0 6px var(--glow-color)); }
.vrv__pendant { fill: var(--c-accent-bright); filter: drop-shadow(0 0 6px var(--glow-color)); }
.vrv__spot { fill: rgb(var(--c-accent-rgb) / 0.12); stroke: var(--c-accent); stroke-width: 1.5; }
.vrv__lens { position: absolute; inset: 0; background: radial-gradient(42% 70% at 27% 50%, transparent 55%, rgb(0 0 0 / 0.35)), radial-gradient(42% 70% at 73% 50%, transparent 55%, rgb(0 0 0 / 0.35)); pointer-events: none; }
.vrv__reticle { position: absolute; left: 50%; top: 42%; width: 1.25rem; aspect-ratio: 1; translate: -50% -50%; border: 1px solid rgb(var(--c-accent-rgb) / 0.6); border-radius: 50%; pointer-events: none; }
.vrv__reticle::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: var(--c-accent); }
.vrv__rim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.vrv__rim path { fill: none; stroke: var(--c-accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px var(--glow-color)); }
.vrv__soon { justify-self: start; margin-inline: var(--sp-1); white-space: normal; line-height: 1.3; }

.vrv__control { display: grid; grid-template-columns: auto minmax(0, 1fr) 3.5rem; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-1); }
.vrv__label { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-text-muted); }
.vrv__out { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--c-accent-text); text-align: right; font-variant-numeric: tabular-nums; }
.vrv__range { width: 100%; height: var(--tap); margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.vrv__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%)); }
.vrv__range::-moz-range-track { height: 2px; border-radius: var(--r-pill); background: var(--c-line-strong); }
.vrv__range::-moz-range-progress { height: 2px; background: var(--c-accent); }
.vrv__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); }
.vrv__range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--c-accent); border-radius: 50%; background: var(--c-bg); }
.vrv__range:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: var(--r-sm); }
@media (max-width: 379.98px) { .vrv__control { grid-template-columns: minmax(0, 1fr) 3rem; } .vrv__label { grid-column: 1 / -1; } }

/* ── 01 · What it is ───────────────────────────────────────────────────── */
.vrp-feel { display: grid; gap: var(--grid-gutter); list-style: none; }
@media (min-width: 576px) { .vrp-feel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .vrp-feel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vrp-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); }
.vrp-feel .icon { --icon-size: 1.5rem; margin-bottom: var(--sp-1); color: var(--c-accent-text); }
.vrp-feel h3 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.vrp-feel p { color: var(--c-text-muted); font-size: var(--fs-small); }

/* ── 02 · Who uses it ──────────────────────────────────────────────────── */
.vrp-who__grid { display: grid; gap: var(--sp-5) var(--grid-gutter); align-items: start; }
@media (min-width: 992px) { .vrp-who__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .vrp-who__intro { position: sticky; top: calc(var(--header-h) + var(--sp-4)); } }
.vrp-who__intro { display: grid; gap: var(--sp-3); }
.vrp-who__intro .t-h2 { max-width: 12ch; }
.vrp-who__intro .t-lead { color: var(--c-text-muted); max-width: 40ch; }
.vrp-chips { display: flex; flex-wrap: wrap; gap: var(--sp-1); list-style: none; }
.vrp-chips li { padding: var(--sp-1) var(--sp-2); border: var(--border-strong); border-radius: var(--r-pill); font-size: var(--fs-small); }
.vrp-for { display: grid; gap: var(--grid-gutter); list-style: none; }
@media (min-width: 576px) { .vrp-for { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vrp-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); }
.vrp-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); }
.vrp-for__card:hover { border-color: var(--c-line-strong); }
.vrp-for__card:hover::before { opacity: 1; }
.vrp-for__card h3 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.vrp-for__card p { color: var(--c-text-muted); font-size: var(--fs-small); }
.vrp-for__card .vrp-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 ───────────────────────────────────────────── */
.vrp-process__grid { display: grid; gap: var(--sp-6) var(--grid-gutter); align-items: start; }
@media (min-width: 992px) { .vrp-process__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-6) clamp(3rem, 6vw, 6rem); } .vrp-process .delivery { position: sticky; top: calc(var(--header-h) + var(--sp-4)); } }
.vrp-process__steps { display: grid; gap: var(--sp-3); }
.vrp-process__steps .t-h2 { max-width: 14ch; }
.vrp-steps { display: grid; list-style: none; margin-top: var(--sp-2); border-top: var(--border-strong); }
.vrp-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); }
.vrp-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); }
.vrp-steps h3 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.vrp-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); }

.vrp-where { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--c-text-muted); }
.vrp-where span { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-accent-text); margin-right: var(--sp-1); }

/* ── 05 · Samples: the placeholder, then five 360° tours (labelled as tours) ─ */
.vrp-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) { .vrp-ph { aspect-ratio: 16 / 9; } }
.vrp-ph .ph-media__label { text-align: center; }
.vrp-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)); }
.vrp-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); }
.vrp-tours { display: grid; gap: var(--sp-4) var(--grid-gutter); list-style: none; }
/* five tours: one wide then pairs on tablets; two wide over three on desktop — no orphan */
@media (min-width: 576px) and (max-width: 991.98px) { .vrp-tours { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vrp-tours > :first-child { grid-column: 1 / -1; } }
@media (min-width: 992px) { .vrp-tours { grid-template-columns: repeat(6, minmax(0, 1fr)); } .vrp-tours > * { grid-column: span 2; } .vrp-tours > :nth-child(-n + 2) { grid-column: span 3; } }
.vrp-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; }
.vrp-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); }
.vrp-tour__media:hover img { transform: scale(1.04); filter: none; }
.vrp-tour__media:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.vrp-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); }
.vrp-tour__open .icon { --icon-size: 1rem; color: var(--c-accent-text); }
.vrp-tour__media:hover .vrp-tour__open { background: var(--c-accent); color: var(--c-accent-ink); }
.vrp-tour__media:hover .vrp-tour__open .icon { color: currentColor; }
.vrp-tour__meta { display: grid; gap: 2px; margin-top: var(--sp-1); }
.vrp-tour__name { font-weight: var(--text-weight-bold); line-height: 1.3; }
.vrp-tour__kind { font-size: var(--fs-small); color: var(--c-text-muted); }
