/* XRmadrasa: an editorial museum site. Charcoal halls, white exhibit cards, one blue accent.
   Shape rule: site chrome is square-cornered (2px) except the round icon discs. The one exception
   is the hero's spatial glass UI, which is rounded like a headset interface (panels 22px, pills full). */

:root {
  --bg: #1b1c1f;
  --bg-2: #232428;
  --bg-3: #2c2e33;
  --text: #f4f4f2;
  --muted: #b3b5bc;
  --faint: #80838c;
  --border: rgba(244, 244, 242, 0.14);
  --border-strong: rgba(244, 244, 242, 0.3);
  --paper: #f6f6f4;
  --paper-2: #e9e9e6;
  --paper-ink: #1b1c1f;
  --paper-muted: #55585f;
  --accent: #43a7ff;
  --accent-ink: #03101f;
  --accent-soft: rgba(67, 167, 255, 0.16);
  --radius: 2px;
  --header-h: 68px;
  --font-display: 'Schibsted Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'Schibsted Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
[dir='rtl'] {
  --font-display: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* A dimmed artwork hangs behind the whole site, the way a gallery wall sits behind its labels. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(27, 28, 31, 0.9), rgba(27, 28, 31, 0.94)), url('/assets/img/hero-fresco.jpg') center / cover no-repeat;
  filter: grayscale(0.4);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.55em; letter-spacing: -0.015em; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3, [dir='rtl'] h4 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { flex: none; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.container-mid { width: min(900px, 100% - 2.5rem); }
.container-narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-tight { padding-top: 1rem; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); width: min(720px, 100%); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.mono { font-family: var(--font-mono); }
/* An address moves to the next line as one piece (never split at its hyphen); it only breaks if it
   cannot fit on a line by itself. */
.nowrap { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

/* ── Buttons: rectangular, like a gallery sign ────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1em; height: 1em; }
[dir='rtl'] .btn svg, [dir='rtl'] .text-link svg { transform: scaleX(-1); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #6bbaff; }
.btn-light { background: var(--paper); color: var(--paper-ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--paper-ink); color: var(--paper); }
.btn-dark:hover { background: #33353a; }
.btn-outline { border-color: var(--paper-ink); color: var(--paper-ink); background: transparent; }
.btn-outline:hover { background: var(--paper-ink); color: var(--paper); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.text-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; color: var(--text); }
.text-link svg { width: 0.9em; height: 0.9em; }
.text-link.dark { color: var(--paper-ink); }

/* ── Header + mobile nav (checkbox before header, mobile nav after it) ── */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 900; direction: ltr; height: var(--header-h);
  background: rgba(27, 28, 31, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; flex: none; align-items: center; text-decoration: none; }
.brand-logo { height: 22px; width: auto; }
.brand-mark { display: none; height: 24px; width: auto; }
.header-end { display: flex; align-items: center; gap: 0.6rem; }
.site-nav-desktop { margin-inline-start: auto; }
.site-nav-desktop { display: flex; align-items: center; gap: 1.6rem; margin-inline-end: 0.6rem; }
.site-nav-desktop ul, .site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.8rem; }
.site-nav-desktop a:not(.btn), .site-nav a:not(.btn) { white-space: nowrap; text-decoration: none; color: var(--text); font-size: 0.97rem; font-weight: 500; padding-block: 0.4rem; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.site-nav-desktop a:not(.btn):hover, .site-nav-desktop a.active { border-bottom-color: var(--accent); }
.lang-switcher { display: inline-flex; gap: 0.2rem; }
.lang-pill { padding: 0.3rem 0.6rem; border-radius: var(--radius); font-size: 0.85rem; text-decoration: none; color: var(--muted); border: 1px solid transparent; }
.lang-pill:hover { color: var(--text); }
.lang-pill.lang-active { color: var(--text); border-color: var(--border-strong); }
.nav-burger { display: none; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); transition: transform 0.25s, opacity 0.25s; }
.site-nav { display: none; }

@media (max-width: 1040px) {
  .site-nav-desktop { display: none; }
  .header-end { margin-inline-start: auto; }
  .nav-burger { display: inline-flex; }
  .site-nav {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 800;
    padding: 1rem 1.25rem 1.5rem; background: var(--bg-2); border-bottom: 1px solid var(--border);
    transform: translateY(-110%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { padding: 0.6rem 0; font-size: 1.05rem; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-header .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Reveal (hidden only once JS has run) ────────────── */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ── HERO: a spatial scene. A wing's environment, an exhibit placed in it like AR, floating glass UI ── */
.sp { position: relative; min-height: 100dvh; overflow: hidden; isolation: isolate; --px: 0; --py: 0; }
.sp-env { position: absolute; inset: -40px; z-index: -2; transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0); transition: transform 0.6s var(--ease); }
.sp-env-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); filter: blur(3px) brightness(0.5) saturate(1.15); transition: opacity 1.2s var(--ease), transform 6s linear; }
.sp-env-img.is-active { opacity: 1; transform: scale(1.04); }
.sp-dof { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(17, 18, 21, 0.82) 0%, rgba(17, 18, 21, 0.35) 34%, rgba(17, 18, 21, 0) 52%, rgba(17, 18, 21, 0.72) 82%, var(--bg) 100%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 50%, #000 82%); mask-image: linear-gradient(to bottom, transparent 0%, transparent 50%, #000 82%); }

.glass { background: rgba(32, 34, 40, 0.46); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 48px rgba(0, 0, 0, 0.32); }
@media (prefers-reduced-transparency: reduce) { .glass { background: rgba(32, 34, 40, 0.94); backdrop-filter: none; } }

.sp-layout {
  position: relative; min-height: 100dvh; padding: calc(var(--header-h) + 1.4rem) 0 2.6rem;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.3fr) minmax(0, 1fr); column-gap: 2rem;
  grid-template-areas: "copy copy ." "chips chips ." "side side card" "bar bar bar";
  grid-template-rows: auto auto auto auto; align-items: end; align-content: center;
}
.sp-bar { grid-area: bar; justify-self: center; margin-top: 1.2rem; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sp-bar::-webkit-scrollbar { display: none; }
.sp-tab { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1rem; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, 0.82); font: 500 0.92rem/1 var(--font-body); cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.sp-tab svg { width: 1.1em; height: 1.1em; }
.sp-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.sp-tab[aria-selected='true'] { background: #fff; color: var(--paper-ink); }
.sp-bar-go { flex: none; display: grid; place-items: center; width: 42px; height: 42px; margin-inline-start: 4px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.sp-bar-go svg { width: 18px; height: 18px; }
[dir='rtl'] .sp-bar-go svg { transform: scaleX(-1); }

/* The stage spans the headline rows of the card's column, absolutely positioned in that area: its top
   lines up with the headline and its base sinks 50px into the card's top edge. The object scales to the
   stage height (container query units), so there is no empty band above it. */
.sp-stage { grid-area: 1 / 3 / 3 / 4; position: absolute; top: 0; bottom: -50px; inset-inline-end: 0; width: 340px; margin: 0; perspective: 1000px; z-index: 4; container-type: size; }
.sp-object {
  position: absolute; left: 50%; bottom: 0; margin: 0; width: fit-content;
  opacity: 0; filter: blur(14px); pointer-events: none;
  transform: translate3d(calc(-50% + var(--px) * 22px), calc(var(--py) * 14px), 0) rotateY(calc(var(--px) * 9deg)) rotateX(calc(var(--py) * -6deg)) scale(0.8);
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.9s var(--ease);
}
.sp-object.is-active { opacity: 1; filter: none; pointer-events: auto; transform: translate3d(calc(-50% + var(--px) * 22px), calc(var(--py) * 14px), 0) rotateY(calc(var(--px) * 9deg)) rotateX(calc(var(--py) * -6deg)) scale(1); }
.sp-object-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-object-inner::before {
  content: '';
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(67, 167, 255, 0.15), transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}
.sp-object img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(var(--w), 100cqw);
  max-height: calc(100cqh - 40px);
  filter: drop-shadow(0 0 25px rgba(67, 167, 255, 0.2));
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
@media (prefers-reduced-motion: no-preference) { .sp-object.is-active img { animation: sp-float 6s ease-in-out infinite; } }
@keyframes sp-float { 50% { transform: translateY(-10px); } }
.sp-placement { position: absolute; left: 50%; bottom: -18px; width: 340px; height: 60px; margin-left: -170px; border-radius: 50%; border: 1.5px solid rgba(67, 167, 255, 0.7); box-shadow: 0 0 40px rgba(67, 167, 255, 0.35), inset 0 0 30px rgba(67, 167, 255, 0.25); opacity: 0; pointer-events: none; }
.sp.is-placing .sp-placement { animation: sp-place 1.1s var(--ease); }
@keyframes sp-place { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }

.sp-pins { position: absolute; inset: 0; margin: 0; }
.sp-pin { position: absolute; left: var(--x); top: var(--y); opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.sp-object.is-active .sp-pin { opacity: 1; transform: none; transition-delay: calc(0.45s + var(--d) * 0.18s); }
.sp-pin-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 4px rgba(67, 167, 255, 0.35); }
.sp-pin-dot::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .sp-pin-dot::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(67, 167, 255, 0.7); animation: sp-ping 2.4s ease-out infinite; animation-delay: calc(var(--d) * 0.6s); } }
@keyframes sp-ping { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.sp-pin-label { position: absolute; left: 14px; top: 0; transform: translateY(-50%); white-space: nowrap; padding: 0.28rem 0.6rem; border-radius: 999px; background: rgba(32, 34, 40, 0.62); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; font-size: 0.72rem; font-weight: 600; }
[dir='rtl'] .sp-pin-label { left: auto; right: 14px; }

.sp-card { grid-area: card; align-self: start; justify-self: end; width: 340px; margin-top: 0; position: relative; border-radius: 22px; overflow: hidden; transform: translate3d(calc(var(--px) * 30px), calc(var(--py) * 20px), 0); transition: transform 0.6s var(--ease), box-shadow 0.4s var(--ease); z-index: 2; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.sp-card-panel { display: none; }
.sp-card-panel.is-active { display: block; animation: sp-card-in 0.6s var(--ease); }
@keyframes sp-card-in { from { opacity: 0; transform: translateY(10px); } }
.sp-card-media { position: relative; aspect-ratio: 16 / 10; margin: 8px; border-radius: 16px; overflow: hidden; }
.sp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.sp-dots { position: absolute; left: 50%; bottom: 10px; display: flex; gap: 5px; transform: translateX(-50%); }
.sp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.sp-dots i.on { background: #fff; }
.sp-card-body { padding: 0.5rem 1.2rem 1.2rem; color: #fff; }
.sp-card-kicker { margin: 0 0 0.2rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.sp-card-title { margin: 0 0 0.35rem; font: 600 1.25rem/1.25 var(--font-display); }
.sp-card-text { margin: 0 0 0.9rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }
.sp-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin: 0; font-size: 0.86rem; }
.sp-card-foot span { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255, 255, 255, 0.8); }
.sp-card-foot svg { width: 1.05em; height: 1.05em; }
.sp-card-link { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; color: #fff; text-decoration: none; }
[dir='rtl'] .sp-card-link svg { transform: scaleX(-1); }

.sp-chips { grid-area: chips; position: relative; z-index: 3; list-style: none; margin: 1.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sp-chips li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: #fff; }
.sp-chips svg { width: 1.1em; height: 1.1em; }

.sp-copy { grid-area: copy; position: relative; z-index: 3; }
.sp-copy h1 { margin: 0; }
.h1-solid, .h1-outline { display: block; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 0.98; font-weight: 700; letter-spacing: -0.035em; }
.h1-outline { color: transparent; -webkit-text-stroke: 1.6px rgba(255, 255, 255, 0.92); font-weight: 600; }
@supports not (-webkit-text-stroke: 1px #fff) { .h1-outline { color: var(--text); } }
[dir='rtl'] .h1-solid, [dir='rtl'] .h1-outline { line-height: 1.25; letter-spacing: 0; }
.sp-side { grid-area: side; align-self: center; position: relative; z-index: 3; width: min(620px, 100%); padding-top: 1.5rem; }
.sp-rule { display: block; height: 2px; width: 100%; margin-bottom: 1.2rem; background: linear-gradient(to right, var(--accent), rgba(67, 167, 255, 0)); }
[dir='rtl'] .sp-rule { background: linear-gradient(to left, var(--accent), rgba(67, 167, 255, 0)); }
.sp-side .hero-sub { font-size: 1.02rem; }
.sp-side .hero-ctas { margin-top: 1.1rem; }
.btn-glass { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }

.h1-brand { display: inline-block; margin-bottom: 1.1rem; padding: 0.3rem 0.6rem; background: var(--accent); color: var(--accent-ink); font: 600 0.9rem/1.2 var(--font-body); border-radius: var(--radius); letter-spacing: 0; }
.hero-sub { width: min(520px, 100%); font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #e2e3e6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.hero-where { display: inline-flex; align-items: center; gap: 0.5rem; margin: 1.2rem 0 0; color: var(--muted); font-size: 0.95rem; }
.hero-where svg { width: 1.15em; height: 1.15em; color: var(--accent); }

/* ── Gallery: the interactive XR viewer ──────────────── */
.gallery-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }

.xr { --yaw: 0deg; --cx: -18deg; --cy: 0deg; position: relative; }
.xr-stage { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: #0d0e10; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--border); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.xr-stage:active { cursor: grabbing; }
.xr[data-mode='cube'] .xr-stage { background: transparent; box-shadow: none; }
.xr-scene { position: absolute; inset: 0; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.xr[data-mode='cube'] .xr-pano, .xr:not([data-mode='cube']) .xr-cube { opacity: 0; transform: scale(0.94); pointer-events: none; }

/* 360°: the camera stands at the centre of a ring of gallery walls (perspective == ring radius). */
.xr-eye { position: absolute; inset: 0; overflow: hidden; }
.pano-cam { position: absolute; inset: 0; perspective: 420px; perspective-origin: 50% 50%; }
.pano-ring { --eye: 0; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(420px) translateX(calc(var(--eye) * 6px)) rotateX(var(--pitch, 0deg)) rotateY(var(--yaw)); }
.pano-panel {
  position: absolute; width: 274px; height: 620px; left: -137px; top: -310px;
  transform: rotateY(calc(var(--i) * 36deg)) translateZ(-420px);
  backface-visibility: hidden;
  background:
    radial-gradient(ellipse 60% 26% at 50% 27%, rgba(255, 244, 225, 0.42), transparent 72%),
    linear-gradient(to bottom, #2e3036 0%, #45474e 30%, #4a4c53 66%, #2a2b30 66.3%, #3a2f27 67%, #24201c 100%);
}
.pano-frame { position: absolute; left: 34px; right: 34px; top: 150px; aspect-ratio: 4 / 5; margin: 0; padding: 8px; background: #f2f1ec; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); }
.pano-frame img { width: 100%; height: 100%; object-fit: cover; }
.pano-placard { position: absolute; left: 50%; top: 416px; transform: translateX(-50%); white-space: nowrap; margin: 0; padding: 0.3rem 0.5rem; background: #f2f1ec; color: #1b1c1f; font-size: 11px; font-weight: 600; border-radius: 1px; }
.pano-hotspot { display: none; position: absolute; left: calc(50% + 40px); top: calc(50% - 74px); align-items: center; gap: 0.45rem; padding: 0.35rem 0.7rem 0.35rem 0.45rem; background: rgba(27, 28, 31, 0.86); color: #fff; font-size: 0.82rem; font-weight: 600; border-radius: 999px; white-space: nowrap; }
.pano-hotspot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.xr-eye-2, .xr-eye-3, .vr-headset, .vr-strap { display: none; }

/* VR: the same ring, twice, seen through the lenses of a phone viewer. */
.xr[data-mode='vr'] .xr-eye-1, .xr[data-mode='vr'] .pano-hud { display: none; }
.xr[data-mode='vr'] .eye-hud { transform: scale(0.5); }
.xr[data-mode='vr'] .xr-eye-2, .xr[data-mode='vr'] .xr-eye-3 { display: block; inset: auto; top: 47%; width: 33%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.85), 0 0 0 4px #07080a, 0 0 0 6px #3a3d45, 0 0 0 7px rgba(255, 255, 255, 0.12); z-index: 2; }
/* Lens glass: a soft glare and a darkened rim, so each eye reads as a lens rather than a hole. */
.xr[data-mode='vr']:not(.is-immersive) .xr-eye-2::after, .xr[data-mode='vr']:not(.is-immersive) .xr-eye-3::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 34%), radial-gradient(circle, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.55) 100%); }
.xr[data-mode='vr'] .xr-eye-2 { left: 12%; }
.xr[data-mode='vr'] .xr-eye-3 { right: 12%; }
.xr-eye-2 .pano-ring { --eye: -1; }
.xr-eye-3 .pano-ring { --eye: 1; }
.xr-eye-2 .pano-cam, .xr-eye-3 .pano-cam { inset: auto; left: 50%; top: 50%; width: 420px; height: 420px; margin: -210px; transform: scale(0.5); }
/* The headset: a sculpted matte visor (wider, rounder top), the nose notch cut out with a mask so the page
   shows through, a dark foam face plate behind the lenses, a status light, and a strap running out behind. */
.xr[data-mode='vr'] .vr-headset {
  display: block; position: absolute; left: 7%; right: 7%; top: 19%; bottom: 21%; z-index: 1;
  border-radius: 46px 46px 64px 64px / 42px 42px 78px 78px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 28%),
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(67, 167, 255, 0.16), transparent 70%),
    linear-gradient(160deg, #3a3d45, #1d1e23 52%, #111215);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.14), inset 0 -14px 30px rgba(0, 0, 0, 0.5);
  -webkit-mask: radial-gradient(ellipse 44px 38px at 50% 100%, transparent 97%, #000 100%);
  mask: radial-gradient(ellipse 44px 38px at 50% 100%, transparent 97%, #000 100%);
}
.vr-face { position: absolute; left: 4.5%; right: 4.5%; top: 9%; bottom: 10%; border-radius: 36px 36px 52px 52px / 32px 32px 64px 64px; background: radial-gradient(ellipse at 50% 40%, #0d0e11, #050506 75%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 10px 26px rgba(0, 0, 0, 0.85); }
.xr[data-mode='vr'] .vr-headset::before { content: ''; position: absolute; left: 50%; top: 4.5%; width: 38px; height: 4px; margin-left: -19px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 10px 2px rgba(67, 167, 255, 0.65); }
.xr[data-mode='vr'] .vr-strap { display: block; position: absolute; left: 0; right: 0; top: 37%; height: 13%; z-index: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(42, 44, 50, 0), #2a2c32 9%, #24262b 50%, #2a2c32 91%, rgba(42, 44, 50, 0)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.xr[data-mode='vr'] .xr-stage { background: transparent; box-shadow: none; }

/* Ceiling and floor discs close the ring, so looking up or down never shows a void. */
.pano-ceiling, .pano-floor { position: absolute; left: -440px; top: -440px; width: 880px; height: 880px; border-radius: 50%; }
.pano-ceiling { transform: rotateX(-90deg) translateZ(-300px); background: radial-gradient(circle, #f6efe2 0 3%, #2b2d33 4%, #1c1d21 70%); }
.pano-floor { transform: rotateX(90deg) translateZ(-310px); background: radial-gradient(circle, rgba(67, 167, 255, 0.18), #24201c 40%, #17150f 72%); }

/* Gaze HUD, one per eye: the ring fills while you hold an exhibit in the centre. */
.eye-hud { position: absolute; inset: 0; pointer-events: none; }
.gaze { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px; overflow: visible; transition: opacity 0.3s; }
.gaze-track { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.5; }
.gaze-fill { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--dwell, 0) * 100); transform: rotate(-90deg); transform-origin: 36px 36px; filter: drop-shadow(0 0 6px rgba(67, 167, 255, 0.6)); }
.gaze-cross { stroke: #fff; stroke-width: 1.5; }
.xr.is-open .gaze { opacity: 0; }

.xr-card {
  position: absolute; left: 50%; bottom: 7%; width: min(86%, 400px); transform: translate(-50%, 16px) scale(0.96); opacity: 0;
  display: grid; grid-template-columns: 96px 1fr; gap: 0.9rem; padding: 0.8rem; text-align: start;
  background: rgba(246, 246, 244, 0.97); color: var(--paper-ink); border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); pointer-events: none;
}
.xr.is-open .xr-card { opacity: 1; transform: translate(-50%, 0) scale(1); }
.xr.is-open .xr-eye-1 .xr-card { pointer-events: auto; }
.xr-card-img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); }
.xr-card-wing { margin: 0 0 0.15rem; font-size: 0.75rem; font-weight: 600; color: var(--paper-muted); }
.xr-card-title { margin: 0 0 0.25rem; font: 600 1.05rem/1.25 var(--font-display); }
.xr-card-text { margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--paper-muted); }
.xr-card-actions { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.xr-card-close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(27, 28, 31, 0.25); border-radius: var(--radius); background: transparent; color: var(--paper-ink); cursor: pointer; }
.xr-card-close svg { width: 16px; height: 16px; }

/* Stage HUD: wing hotspot, step arrows and a radar of every exhibit with your field of view. */
.pano-hud { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.4s; }
.xr.is-open .pano-hotspot { opacity: 0; }
.xr-nav { pointer-events: auto; position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius); background: rgba(27, 28, 31, 0.7); color: #fff; cursor: pointer; transition: background-color 0.2s; }
.xr-nav:hover { background: var(--accent); color: var(--accent-ink); }
.xr-nav svg { width: 20px; height: 20px; }
.xr-prev { left: 12px; }
.xr-next { right: 12px; }
/* Compass: N/E/S/W turn with the view; the tick at the top marks where you are facing. */
.radar { position: absolute; right: 14px; bottom: 14px; width: 84px; height: 84px; border-radius: 50%; background: rgba(17, 18, 21, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 6px rgba(67, 167, 255, 0.08); }
.radar-dial { position: absolute; inset: 0; transform: rotate(calc(var(--heading, 0deg) * -1)); }
.radar-dial b { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; display: grid; place-items: center; font: 600 0.62rem/1 'Schibsted Grotesk', sans-serif; color: rgba(255, 255, 255, 0.7); }
.radar-dial b:nth-child(1) { transform: translateY(-31px); color: var(--accent); }
.radar-dial b:nth-child(2) { transform: rotate(90deg) translateY(-31px) rotate(-90deg); }
.radar-dial b:nth-child(3) { transform: rotate(180deg) translateY(-31px) rotate(-180deg); }
.radar-dial b:nth-child(4) { transform: rotate(270deg) translateY(-31px) rotate(-270deg); }
.radar-tick { position: absolute; left: 50%; top: -1px; margin-left: -5px; border: 5px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }
.radar-deg { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 600 0.75rem/1 'Schibsted Grotesk', sans-serif; }

.xr-tools { display: flex; justify-content: center; gap: 6px; margin-top: 0.8rem; }
.xr-tool { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.7rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: rgba(27, 28, 31, 0.78); color: #fff; font: 600 0.8rem/1 'Schibsted Grotesk', var(--font-body); cursor: pointer; }
.xr-tool svg { width: 1.1em; height: 1.1em; }
.xr-tool:hover, .xr-tool[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.xr-immersive { display: none; }
.xr[data-mode='vr'] .xr-immersive { display: inline-flex; }
.xr[data-mode='cube'] .xr-motion { display: none; }
.xr-exit, .xr.is-immersive .xr-enter { display: none; }
.xr.is-immersive .xr-exit { display: inline; }

/* Immersive VR: fullscreen, a true left/right stereo split for a phone viewer. */
.xr.is-immersive { position: fixed; inset: 0; z-index: 2000; background: #000; }
.xr.is-immersive .xr-stage { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #000; }
.xr.is-immersive .vr-headset, .xr.is-immersive .vr-strap, .xr.is-immersive .xr-modes, .xr.is-immersive .xr-hint { display: none; }
.xr.is-immersive .xr-eye-2, .xr.is-immersive .xr-eye-3 { top: 0; bottom: 0; width: 50%; aspect-ratio: auto; transform: none; border-radius: 0; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.9); }
.xr.is-immersive .xr-eye-2 { left: 0; border-right: 2px solid #000; }
.xr.is-immersive .xr-eye-3 { right: 0; left: auto; }
.xr.is-immersive .xr-eye-2 .pano-cam, .xr.is-immersive .xr-eye-3 .pano-cam { transform: scale(0.9); }
.xr.is-immersive .eye-hud { transform: scale(0.8); }
.xr.is-immersive .xr-tools { position: absolute; z-index: 5; left: 50%; bottom: 12px; margin: 0; transform: translateX(-50%); }

/* 3D: the six wings on a glass cube, resting on a lit plinth. */
.cube-cam { position: absolute; inset: 0; perspective: 900px; display: grid; place-items: center; }
.cube { position: relative; width: 210px; height: 210px; margin-top: -30px; transform-style: preserve-3d; transform: rotateX(var(--cx)) rotateY(var(--cy)); }
.cube-face { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.35); background: #111; box-shadow: inset 0 0 40px rgba(67, 167, 255, 0.25); }
.cube-face img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.cube-face span { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.45rem 0.6rem; background: rgba(27, 28, 31, 0.82); color: #fff; font-size: 0.8rem; font-weight: 600; }
.cube-face-1 { transform: translateZ(105px); }
.cube-face-2 { transform: rotateY(90deg) translateZ(105px); }
.cube-face-3 { transform: rotateY(180deg) translateZ(105px); }
.cube-face-4 { transform: rotateY(-90deg) translateZ(105px); }
.cube-face-5 { transform: rotateX(90deg) translateZ(105px); }
.cube-face-6 { transform: rotateX(-90deg) translateZ(105px); }
.cube-plinth { position: absolute; left: 50%; bottom: 13%; width: 300px; height: 56px; margin-left: -150px; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, rgba(67, 167, 255, 0.45), rgba(67, 167, 255, 0) 70%); }

.xr-modes { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 1rem auto 0; padding: 5px; background: rgba(17, 18, 21, 0.7); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.xr-mode { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.05rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 0.9rem/1 'Schibsted Grotesk', var(--font-body); cursor: pointer; }
.xr-mode svg { width: 1.1em; height: 1.1em; }
.xr-mode:hover { color: var(--text); }
.xr-mode[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }
.xr-hint { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 0.7rem 0 0; min-height: 1.4em; }
.xr-hint span { display: none; }
.xr[data-mode='pano'] [data-hint='pano'], .xr[data-mode='cube'] [data-hint='cube'], .xr[data-mode='vr'] [data-hint='vr'] { display: inline; }

/* ── Intro statement + admission box ─────────────────── */
.intro-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro-statement { font: 600 clamp(1.7rem, 3.2vw, 2.5rem)/1.22 var(--font-display); letter-spacing: -0.01em; margin: 0; }
[dir='rtl'] .intro-statement { line-height: 1.55; letter-spacing: 0; }
.admission { border-inline-start: 3px solid var(--accent); padding: 0.3rem 0 0.3rem 1.4rem; }
[dir='rtl'] .admission { padding: 0.3rem 1.4rem 0.3rem 0; }
.admission h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; margin-bottom: 0.7rem; }
.admission h2 svg { width: 1.3em; height: 1.3em; color: var(--accent); }
.admission p { color: var(--muted); font-size: 0.98rem; }
.admission .admission-line { color: var(--text); font-size: 1.05rem; }

/* ── Wings: venue-style bento of image tiles ─────────── */
.wing-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
.wing-tile {
  position: relative; overflow: hidden; padding: 0; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius);
  background: #111; cursor: pointer; text-align: start; color: var(--text); font: inherit;
  outline-offset: 3px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.wing-tile:hover {
  transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); border-color: rgba(67, 167, 255, 0.35);
}
.wing-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.wing-tile:nth-child(2) { grid-row: span 2; }
.wing-tile:nth-child(5), .wing-tile:nth-child(6) { grid-column: span 2; }
.wing-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.4s; filter: brightness(0.82); }
.wing-tile:hover img { transform: scale(1.05); filter: brightness(0.95); }
.wing-tile::after { content: ''; position: absolute; inset: 0; border: 3px solid transparent; transition: border-color 0.25s; pointer-events: none; }
.wing-tile[aria-selected='true']::after { border-color: var(--accent); }
.wing-label { position: absolute; top: 0.9rem; inset-inline-start: 0.9rem; max-width: calc(100% - 1.8rem); padding: 0.55rem 0.75rem; background: rgba(22, 24, 28, 0.82); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); border-radius: var(--radius); }
.wing-label strong { display: block; font-size: 1rem; line-height: 1.25; }
.wing-label span { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.35; margin-top: 0.15rem; }
.wing-tile[aria-selected='true'] .wing-label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wing-tile[aria-selected='true'] .wing-label span { color: rgba(3, 16, 31, 0.75); }

.rooms { margin-top: clamp(2.5rem, 5vw, 4rem); }
.room-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1.2rem; }
.room-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; flex: none; }
.room-head p { color: var(--muted); margin: 0; width: min(520px, 100%); }
html.js .room[hidden] { display: none; }
html:not(.js) .room + .room { margin-top: 3rem; }
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.show-card { display: flex; flex-direction: column; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.show-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35); }
.show-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); position: relative; }
.show-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.show-card:hover .show-media img { transform: scale(1.04); }
.show-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.2rem; }
.show-tag { display: inline-block; width: fit-content; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; padding: 0.22rem 0.6rem; border-radius: 999px; background: rgba(27, 28, 31, 0.08); color: var(--paper-ink); }
.show-card h4 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.show-text { color: var(--paper-muted); font-size: 0.95rem; }
.show-meta { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.35rem; font-size: 0.88rem; }
.show-meta li { display: flex; align-items: center; gap: 0.5rem; }
.show-meta svg { width: 1.05em; height: 1.05em; }
.show-foot { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid rgba(27, 28, 31, 0.14); display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; font-size: 0.88rem; font-weight: 600; }
.show-foot span { display: inline-flex; align-items: center; gap: 0.45rem; }
.show-foot span svg { width: 1.1em; height: 1.1em; }

/* ── Plan your visit ─────────────────────────────────── */
.visit { background: rgba(35, 36, 40, 0.75); border-block: 1px solid var(--border); }
.visit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.visit-item { padding: 1.8rem clamp(1rem, 2.4vw, 2rem) 1.8rem 0; border-top: 1px solid var(--border-strong); }
[dir='rtl'] .visit-item { padding: 1.8rem 0 1.8rem clamp(1rem, 2.4vw, 2rem); }
.visit-icon, .feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 1.1rem; }
.visit-icon { background: var(--accent-soft); color: var(--accent); }
.visit-icon svg, .feature-icon svg { width: 23px; height: 23px; }
.visit-item h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.visit-item p { margin: 0; color: var(--muted); }

/* ── How exhibits work: white cards ──────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); padding: clamp(1.4rem, 2.6vw, 2rem); transition: transform 0.4s var(--ease); }
.feature-card:hover { transform: translateY(-3px); }
.feature-icon { background: var(--paper-ink); color: var(--paper); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.feature-card p { margin: 0; color: var(--paper-muted); }

/* ── Member panel: image + white panel ───────────────── */
.member-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); overflow: hidden; }
/* Ticket panel media: follows the hero's selected wing. The wing's environment fills the background, its
   exhibit floats as a hologram (projection rings and beam), and the man's fingertip touches it. */
.member-media { position: relative; min-height: 420px; background-color: #0d121b; overflow: hidden; isolation: isolate; }
.mm-env { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); filter: blur(2px) brightness(0.55) saturate(1.1); transition: opacity 1.1s var(--ease), transform 6s linear; z-index: 0; }
.mm-env.is-active { opacity: 0.45; transform: scale(1.01); }
[dir='rtl'] .mm-env { transform: scaleX(-1) scale(1.06); }
[dir='rtl'] .mm-env.is-active { transform: scaleX(-1) scale(1.01); }
.member-media::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 30% 45%, rgba(67, 167, 255, 0.14), transparent 70%), linear-gradient(to top, rgba(9, 12, 18, 0.65), rgba(9, 12, 18, 0) 45%); }
[dir='rtl'] .member-media::after { background: radial-gradient(ellipse 60% 55% at 70% 45%, rgba(67, 167, 255, 0.14), transparent 70%), linear-gradient(to top, rgba(9, 12, 18, 0.65), rgba(9, 12, 18, 0) 45%); }

.mm-holo { position: absolute; z-index: 1; inset-inline-start: 2%; top: 6%; width: 57%; height: 88%; pointer-events: none; }
.mm-obj { position: absolute; left: 50%; top: 40%; width: auto; max-width: 100%; max-height: 72%; transform: translate(-50%, -50%) scale(0.85); opacity: 0; filter: blur(10px) drop-shadow(0 0 18px rgba(67, 167, 255, 0.55)); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease); }
.mm-obj.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 18px rgba(67, 167, 255, 0.55)) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45)); }
@media (prefers-reduced-motion: no-preference) { .mm-obj.is-active { animation: mm-float 6s ease-in-out infinite; } }
@keyframes mm-float { 50% { transform: translate(-50%, calc(-50% - 9px)) scale(1); } }
.mm-beam { position: absolute; left: 50%; top: 58%; bottom: 10%; width: 46%; transform: translateX(-50%); background: linear-gradient(to bottom, rgba(120, 190, 255, 0), rgba(120, 190, 255, 0.16)); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.mm-rings { position: absolute; left: 50%; bottom: 4%; width: 92%; aspect-ratio: 5 / 1; transform: translateX(-50%); }
.mm-rings i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px solid rgba(120, 190, 255, 0.6); box-shadow: 0 0 14px rgba(67, 167, 255, 0.4), inset 0 0 10px rgba(67, 167, 255, 0.25); }
.mm-rings i:nth-child(2) { width: 66%; height: 66%; }
.mm-rings i:nth-child(3) { width: 34%; height: 34%; background: radial-gradient(ellipse, rgba(120, 190, 255, 0.35), transparent 70%); }
@media (prefers-reduced-motion: no-preference) { .mm-rings i:nth-child(1) { animation: mm-ring 3.2s ease-out infinite; } }
@keyframes mm-ring { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.08); opacity: 0.35; } }

/* The man stays put: anchored to the inner edge, slightly taller than the panel. The ripple sits on his
   fingertip (6.1% / 51.7% of the image), so it follows him at every panel size. */
.mm-person { position: absolute; z-index: 2; bottom: 0; inset-inline-end: 0; height: 104%; aspect-ratio: 620 / 1208; }
.mm-person img { display: block; width: 100%; height: 100%; max-width: none; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4)); }
[dir='rtl'] .mm-person img { transform: scaleX(-1); }
.mm-touch { position: absolute; left: 6.1%; top: 51.7%; width: 0; height: 0; }
[dir='rtl'] .mm-touch { left: auto; right: 6.1%; }
.mm-touch i { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(120, 190, 255, 0.75); box-shadow: 0 0 12px rgba(67, 167, 255, 0.6); }
.mm-touch i:nth-child(2) { left: -38px; top: -38px; width: 76px; height: 76px; border-color: rgba(120, 190, 255, 0.35); }
@media (prefers-reduced-motion: no-preference) {
  .mm-touch i { animation: mm-tap 2.4s ease-out infinite; }
  .mm-touch i:nth-child(2) { animation-delay: 0.6s; }
}
@keyframes mm-tap { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }

.member-body { padding: clamp(1.8rem, 4vw, 3.2rem); }
.member-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.member-body > p { color: var(--paper-muted); }
.check-list { list-style: none; margin: 1.2rem 0 1.8rem; padding: 0; display: grid; gap: 0.65rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: center; font-weight: 500; }
.check-list svg { width: 1.2em; height: 1.2em; padding: 0.15em; border-radius: 50%; background: var(--paper-ink); color: var(--paper); }
.member-ctas { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

/* ── Pricing ticket ──────────────────────────────────── */
.ticket { --stub-w: 290px; position: relative; display: grid; grid-template-columns: 1fr var(--stub-w); background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); }
.ticket::before, .ticket::after { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); inset-inline-end: calc(var(--stub-w) - 15px); }
.ticket::before { top: -15px; }
.ticket::after { bottom: -15px; }
.ticket-main { padding: clamp(1.6rem, 4vw, 2.8rem); }
.ticket-stub { padding: clamp(1.6rem, 4vw, 2.8rem) 1.6rem; border-inline-start: 2px dashed rgba(27, 28, 31, 0.25); display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; text-align: center; }
.ticket-stub .btn { width: 100%; }
.ticket-kicker { font-size: 0.85rem; font-weight: 600; color: var(--paper-muted); margin-bottom: 0.4rem; }
.ticket p { color: var(--paper-muted); }
.ticket a:not(.btn) { color: var(--paper-ink); }
.ticket .btn-primary { background: var(--paper-ink); color: var(--paper); }
.ticket .btn-primary:hover { background: #33353a; }
.ticket .btn-ghost { color: var(--paper-ink); border-color: rgba(27, 28, 31, 0.3); }
.ticket-rack { display: grid; gap: 2rem; }
.ticket-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.pricing-operator { display: inline-block; margin-bottom: 1.2rem; padding: 0.3rem 0.7rem; border-radius: var(--radius); background: var(--paper-ink); color: var(--paper) !important; font-size: 0.85rem; font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
[dir='rtl'] .price-row { justify-content: flex-end; }
.price-val { font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 'Schibsted Grotesk', var(--font-body); margin: 0; letter-spacing: -0.02em; color: var(--paper-ink) !important; }
.price-freq { font-size: 1.1rem; margin: 0; }
.pricing-line { font-weight: 600; color: var(--paper-ink) !important; margin-bottom: 0.3rem; }
.pricing-renewal { font-size: 0.92rem; }
.pricing-features { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1.4rem; }
.pricing-features li { position: relative; padding-inline-start: 1.3rem; font-size: 0.95rem; }
.pricing-features li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.5em; width: 8px; height: 8px; background: var(--accent); }
.pricing-unsub { font-size: 0.86rem; margin: 0; }

/* ── Steps as a route ────────────────────────────────── */
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); position: relative; }
.path-steps::before { content: ''; position: absolute; top: 24px; inset-inline: 24px; height: 1px; background: repeating-linear-gradient(to right, var(--border-strong) 0 8px, transparent 8px 16px); }
.path-step { position: relative; }
.path-num { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1.05rem/1 'Schibsted Grotesk', var(--font-body); margin-bottom: 1.1rem; }
.path-step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.path-step p { color: var(--muted); margin: 0; }
.path-steps-compact { margin-top: 2.5rem; }

/* ── Opt-out ─────────────────────────────────────────── */
.optout-grid { display: grid; gap: 1rem; }
.optout-card { border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); background: var(--paper); color: var(--paper-ink); }
.optout-card h3 { font: 600 0.95rem/1.2 var(--font-body); color: var(--paper-muted); letter-spacing: 0; margin-bottom: 0.8rem; }
.optout-instruction { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.6; margin: 0; }
.optout-instruction strong { font-family: var(--font-mono); font-weight: 700; padding: 0.05rem 0.5rem; border-radius: var(--radius); background: var(--paper-ink); color: var(--paper); display: inline-block; }
.optout-instruction strong a { color: inherit; }
.optout-notes { list-style: none; margin: 1.2rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(27, 28, 31, 0.14); display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; color: var(--paper-muted); font-size: 0.92rem; }
.optout-notes li::before { content: '\2713'; color: var(--paper-ink); font-weight: 700; margin-inline-end: 0.5rem; }
.optout-also { margin-top: 1.2rem; color: var(--muted); }
.optout-also a, .footer-care a { color: var(--accent); }

/* ── Refund ──────────────────────────────────────────── */
.refund-card { border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); background: var(--bg-2); border: 1px solid var(--border); }
.refund-list { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 0.9rem; }
.refund-list li { counter-increment: r; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.6rem; color: #dcdde1; }
.refund-list li::before { content: counter(r); font: 600 0.85rem/1.9 var(--font-mono); color: var(--accent); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { display: grid; border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; font-weight: 600; font-size: 1.1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle { flex: none; width: 28px; height: 28px; border: 1px solid var(--border-strong); border-radius: var(--radius); position: relative; transition: transform 0.35s var(--ease), border-color 0.3s; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle { transform: rotate(45deg); border-color: var(--accent); }
.faq-body { padding: 0 0 1.4rem; color: var(--muted); width: min(100%, 760px); }

/* ── Inner page hero ─────────────────────────────────── */
.page-hero { padding: calc(var(--header-h) + clamp(3.5rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-hero-plain { padding-bottom: 0; }

/* ── About ───────────────────────────────────────────── */
.about-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.about-intro p { color: #dcdde1; }
.piece { margin: 0; display: flex; flex-direction: column; }
.piece-frame { overflow: hidden; border-radius: var(--radius); background: #111; }
.piece-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.placard { background: var(--paper); color: var(--paper-ink); padding: 0.9rem 1.1rem; border-radius: 0 0 var(--radius) var(--radius); }
.placard strong { display: block; font-size: 1rem; line-height: 1.3; }
.placard span { display: block; font-size: 0.9rem; color: var(--paper-muted); line-height: 1.45; margin-top: 0.2rem; }
.values-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); padding: clamp(1.4rem, 2.6vw, 2rem); }
.value .guide-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper-ink); color: var(--paper); margin-bottom: 1.1rem; }
.value .guide-icon svg { width: 23px; height: 23px; }
.value h3 { font-size: 1.4rem; }
.value p { color: var(--paper-muted); margin: 0; }
.vision { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.vision-quote { font: 600 clamp(1.5rem, 3vw, 2.3rem)/1.25 var(--font-display); letter-spacing: -0.01em; margin-bottom: 1.4rem; border-inline-start: 3px solid var(--accent); padding-inline-start: 1.2rem; }
[dir='rtl'] .vision-quote { line-height: 1.6; letter-spacing: 0; }
.vision p:not(.vision-quote) { color: var(--muted); }

/* ── Contact / sign-in ───────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.care-plaque { border-inline-start: 3px solid var(--accent); padding: 0.3rem 0 0.3rem 1.4rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
[dir='rtl'] .care-plaque { padding: 0.3rem 1.4rem 0.3rem 0; }
.care-plaque h2 { font-size: 1.6rem; }
.care-plaque p { color: var(--muted); }
.care-plaque .care-line { color: var(--text); font-weight: 600; word-break: break-word; }
.care-plaque .care-line a { color: var(--accent); }
.form-card { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); padding: clamp(1.4rem, 3.5vw, 2.4rem); }
.form-card.narrow { width: min(520px, 100%); margin-inline: auto; }
.form-group { margin-bottom: 1.1rem; display: grid; gap: 0.45rem; }
.contact-form h3, .form-card h3 { margin-bottom: 1.5rem; font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signin-card button, .form-card button { margin-top: 0.5rem; }
.form-group label { font-size: 0.92rem; font-weight: 600; color: var(--paper-ink); }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid #b9bbc0;
  background: #fff; color: var(--paper-ink); font: 400 1rem/1.4 var(--font-body); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #767980; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--paper-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-card .btn-primary { background: var(--paper-ink); color: var(--paper); }
.form-card .btn-primary:hover { background: #33353a; }
.error-msg, .errorMsg { display: none; color: #c0392b; font-size: 0.85rem; margin-top: 0.2rem; }
.form-success, .successMsg { display: none; color: #1f7a4d; font-weight: 600; margin-top: 1rem; }
.successMsg a { color: inherit; }
.form-disclaimer { color: var(--paper-muted); font-size: 0.85rem; margin-top: 1rem; }
.signin-card .form-group label { text-align: center; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── 404 ─────────────────────────────────────────────── */
.not-found { min-height: 100dvh; display: grid; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.not-found-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.empty-frame { width: clamp(180px, 26vw, 280px); aspect-ratio: 4 / 5; border: 12px solid var(--paper); background: var(--bg-2); }
.empty-frame span { display: grid; place-items: center; width: 100%; height: 100%; font: 600 clamp(2.5rem, 6vw, 4rem)/1 'Schibsted Grotesk', var(--font-body); color: var(--faint); }

/* ── Legal pages (shared partials render inside .legals) ── */
.legals-wrap { padding: 3.5rem 0; }
.legals { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem; }
.legals .container { width: min(840px, 92vw); margin-inline: auto; }
.legals h1 { display: none; }
.legals h6 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin: 2rem 0 0.5rem;
}
.legals p { margin-bottom: 0.85rem; line-height: 1.75; color: #dcdde1; }
.legals ul { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }
.legals li { margin-bottom: 0.4rem; line-height: 1.7; color: #dcdde1; }
.legals a { color: var(--accent); }
.legals table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
.legals th, .legals td { border: 1px solid var(--border); padding: 0.6rem; text-align: start; }
.page-hero-plain + .legals-wrap .legals { padding-top: 1rem; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: #141517; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-sub { color: var(--muted); margin-top: 1rem; width: min(380px, 100%); }
.footer-care { color: var(--muted); font-size: 0.95rem; }
.footer-col h2 { font: 600 0.95rem/1.2 var(--font-body); color: var(--text); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.footer-entity { color: var(--faint); font-size: 0.85rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-version { opacity: 0.6; }

/* ── RTL forms ───────────────────────────────────────── */
[dir='rtl'] .form-group input[type='text'],
[dir='rtl'] .form-group textarea { direction: rtl; text-align: right; }
[dir='rtl'] .form-group input[type='email'],
[dir='rtl'] .form-group input[type='tel'] { direction: ltr; text-align: left; }
[dir='rtl'] .form-group label { text-align: right; }
[dir='rtl'] .phone-row { direction: ltr; }
[dir='rtl'] .signin-card .form-group label { text-align: center; }
[dir='rtl'] #si-phone { direction: ltr; text-align: left; }
[dir='rtl'] #si-phone:placeholder-shown { text-align: center; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .sp-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "chips" "side" "bar"; grid-template-rows: auto minmax(300px, auto) auto auto auto; row-gap: 0.6rem; }
  .sp-card { display: none; }
  .sp-stage { grid-area: stage; position: relative; inset: auto; width: auto; height: auto; min-height: 400px; container-type: normal; }
  .sp-object img { max-width: min(var(--w), 80vw); max-height: min(40vh, 340px); }
  .sp-object { bottom: 4%; }
  .sp-placement { bottom: 2%; }
  .sp-object img { max-width: min(var(--w), 60vw); }
  .sp-side { max-width: 560px; }
  .intro-grid, .about-intro, .vision, .contact-layout, .member-panel { grid-template-columns: 1fr; }
  .care-plaque { position: static; }
  .wing-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .wing-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
  .wing-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .wing-tile:nth-child(6) { grid-column: span 2; }
  .feature-grid, .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-media { min-height: 340px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .h1-solid, .h1-outline { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .h1-outline { -webkit-text-stroke-width: 1.2px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  /* Phones: the wing bar runs edge to edge and scrolls sideways; the first tab lines up with the copy. */
  .sp-bar { justify-self: stretch; max-width: none; margin-inline: -1.25rem; padding: 6px 1.25rem; border-radius: 0; border-inline: 0; scroll-snap-type: x proximity; scroll-padding-inline: 1.25rem; -webkit-overflow-scrolling: touch; }
  .sp-tab, .sp-bar-go { scroll-snap-align: start; }
  .sp-object img { max-height: 34vh; max-width: min(var(--w), 70vw); }
  .sp-side { padding-top: 0.5rem; }
  .sp-placement { width: 280px; margin-left: -140px; }
  .sp-pin-label { font-size: 0.66rem; padding: 0.24rem 0.5rem; }
  .xr-stage { aspect-ratio: 1 / 1; }
  .cube { width: 170px; height: 170px; }
  .cube-face-1 { transform: translateZ(85px); } .cube-face-2 { transform: rotateY(90deg) translateZ(85px); } .cube-face-3 { transform: rotateY(180deg) translateZ(85px); }
  .cube-face-4 { transform: rotateY(-90deg) translateZ(85px); } .cube-face-5 { transform: rotateX(90deg) translateZ(85px); } .cube-face-6 { transform: rotateX(-90deg) translateZ(85px); }
  .cube-plinth { width: 240px; margin-left: -120px; }
  .xr[data-mode='vr'] .vr-headset { border-radius: 30px 30px 40px 40px / 26px 26px 50px 50px; -webkit-mask: radial-gradient(ellipse 30px 26px at 50% 100%, transparent 97%, #000 100%); mask: radial-gradient(ellipse 30px 26px at 50% 100%, transparent 97%, #000 100%); }
  .vr-face { border-radius: 22px 22px 32px 32px / 20px 20px 40px 40px; }
  .wing-bento { grid-auto-rows: 150px; }
  .room-head { flex-direction: column; align-items: start; gap: 0.6rem; }
  .card-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 0.8rem; }
  .card-row .show-card { flex: 0 0 82%; scroll-snap-align: start; }
  .feature-grid, .visit-grid, .values-row { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket-stub { border-inline-start: 0; border-top: 2px dashed rgba(27, 28, 31, 0.25); padding: 1.5rem; }
  .pricing-features { grid-template-columns: 1fr; }
  .path-steps { grid-template-columns: 1fr; }
  .path-steps::before { top: 24px; bottom: 24px; inset-inline-start: 24px; inset-inline-end: auto; width: 1px; height: auto; background: repeating-linear-gradient(to bottom, var(--border-strong) 0 8px, transparent 8px 16px); }
  .path-step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1rem; }
  .path-step .path-num { grid-row: span 2; margin: 0; }
  .not-found-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
}

@media (max-width: 560px) {
  .brand-logo { display: none; }
  .brand-mark { display: block; }
  .header-end { gap: 0.4rem; }
  .header-end .btn-sm { padding: 0.5rem 0.7rem; }
  .lang-pill { padding: 0.3rem 0.45rem; }
}

@media (max-width: 360px) {
  .site-header .lang-active { display: none; }
  .header-end { gap: 0.3rem; }
  .header-end .btn-sm { padding: 0.5rem 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}


/* ── Gallery: the 360° world is the whole section's background ──────────────
   Copy on the left over a shade; the camera looks at the right-hand column (--gx), where the reticle,
   compass, cube or headset sit. In 3D and VR the world stays behind, out of focus. */
.gallery { background: #0b0d12; overflow: hidden; isolation: isolate; }
.gx-shade { display: none; }
.gx-copy { position: relative; z-index: 2; }
.gx-eyebrow { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 1.1rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #9fd2ff; }
.gx-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--accent); }
[dir='rtl'] .gx-eyebrow { letter-spacing: 0; }
.gx-title { font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1.04; margin-bottom: 1rem; }
[dir='rtl'] .gx-title { line-height: 1.3; }
.gx-title em { display: block; font-style: normal; background: linear-gradient(100deg, #b9e1ff 0%, var(--accent) 45%, #2f7bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx-desc { color: #cfd2db; font-size: 1.08rem; width: min(500px, 100%); }
.gx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.6rem; }
.gx-cta .btn { border-radius: 999px; box-shadow: 0 10px 30px rgba(67, 167, 255, 0.35); }
.gx-note { margin: 1.1rem 0 0; font-size: 0.82rem; color: var(--faint); }
.pano-pin { position: absolute; left: 50%; bottom: calc(100% - 142px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem 0.35rem 0.5rem; border-radius: 999px; background: rgba(17, 18, 21, 0.6); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font: 600 11px/1 'Schibsted Grotesk', var(--font-body); white-space: nowrap; }
.pano-pin i { width: 8px; height: 8px; border-radius: 50%; background: #9fd2ff; box-shadow: 0 0 0 3px rgba(67, 167, 255, 0.35); }
.xr-eye-1 .eye-hud::before { content: ''; position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px; border-radius: 50%; border: 1px solid rgba(120, 190, 255, 0.28); box-shadow: 0 0 40px rgba(67, 167, 255, 0.18), inset 0 0 30px rgba(67, 167, 255, 0.12); transition: opacity 0.3s; }
.xr.is-open .xr-eye-1 .eye-hud::before { opacity: 0; }
.xr-eye-1 .gaze { width: 104px; height: 104px; margin: -52px; }

@media (min-width: 1025px) {
  .gallery { --gx: 70%; --gy: 44%; position: relative; min-height: 740px; display: flex; align-items: center; padding: 4.5rem 0 3rem; }
  [dir='rtl'] .gallery { --gx: 30%; }
  .gx-shade { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(11, 13, 18, 0.94) 0%, rgba(11, 13, 18, 0.78) 34%, rgba(11, 13, 18, 0.2) 62%, rgba(11, 13, 18, 0.45) 100%),
      linear-gradient(180deg, rgba(11, 13, 18, 0.35) 0%, rgba(11, 13, 18, 0) 30%, rgba(11, 13, 18, 0) 70%, rgba(11, 13, 18, 0.85) 100%); }
  [dir='rtl'] .gx-shade { background:
      linear-gradient(270deg, rgba(11, 13, 18, 0.94) 0%, rgba(11, 13, 18, 0.78) 34%, rgba(11, 13, 18, 0.2) 62%, rgba(11, 13, 18, 0.45) 100%),
      linear-gradient(180deg, rgba(11, 13, 18, 0.35) 0%, rgba(11, 13, 18, 0) 30%, rgba(11, 13, 18, 0) 70%, rgba(11, 13, 18, 0.85) 100%); }
  .gallery .gallery-grid { position: static; grid-template-columns: 1fr 1fr; align-items: stretch; width: min(1200px, 100% - 2.5rem); }
  .gallery .gx-copy { align-self: center; }
  .gallery .xr { position: static; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-height: 620px; }
  .gallery .xr-modes, .gallery .xr-hint, .gallery .xr-tools { position: relative; z-index: 2; }

  /* The world: the stage fills the section; a scaled camera keeps a natural field of view across it. */
  .gallery .xr:not(.is-immersive) .xr-stage { position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: transparent; }
  .gallery .xr:not(.is-immersive) .xr-eye-1 .pano-cam { inset: auto; left: 0; top: 0; width: 62.5%; height: 62.5%; transform: scale(1.6); transform-origin: 0 0; perspective-origin: var(--gx) var(--gy); transition: filter 0.6s var(--ease); }
  .gallery .xr:not(.is-immersive) .xr-eye-1 .pano-ring { left: var(--gx); top: var(--gy); }
  .gallery .xr:not(.is-immersive) .xr-eye-1 .gaze,
  .gallery .xr:not(.is-immersive) .xr-eye-1 .eye-hud::before,
  .gallery .xr:not(.is-immersive) .xr-eye-1 .xr-card { left: var(--gx); }
  .gallery .xr:not(.is-immersive) .xr-eye-1 .gaze,
  .gallery .xr:not(.is-immersive) .xr-eye-1 .eye-hud::before { top: var(--gy); }
  .gallery .xr:not(.is-immersive) .xr-eye-1 .xr-card { top: 9%; bottom: auto; }
  .gallery .xr:not(.is-immersive) .pano-hotspot, .gallery .xr:not(.is-immersive) .xr-nav { display: none; }
  .gallery .xr:not(.is-immersive) .radar { right: auto; bottom: auto; left: min(calc(var(--gx) + 262px), calc(100% - 100px)); top: calc(var(--gy) + 50px); }
  [dir='rtl'] .gallery .xr:not(.is-immersive) .radar { left: max(calc(var(--gx) - 346px), 16px); }

  /* 3D and VR: the world stays, out of focus; the object sits in the right-hand column. */
  .gallery .xr[data-mode='cube']:not(.is-immersive) .xr-pano { opacity: 1; transform: none; }
  .gallery .xr[data-mode='vr']:not(.is-immersive) .xr-eye-1 { display: block; }
  .gallery .xr:not([data-mode='pano']):not(.is-immersive) .xr-eye-1 .pano-cam { filter: blur(6px) brightness(0.55) saturate(1.2); }
  .gallery .xr:not([data-mode='pano']) .xr-eye-1 .eye-hud { display: none; }
  .gallery .xr:not(.is-immersive) .xr-cube { left: calc(var(--gx) - 30%); right: auto; width: 60%; }
  .gallery .xr[data-mode='vr']:not(.is-immersive) .vr-headset { left: calc(var(--gx) - 270px); right: auto; width: 540px; top: calc(50% - 150px); bottom: auto; height: 300px; }
  .gallery .xr[data-mode='vr']:not(.is-immersive) .vr-strap { left: calc(var(--gx) - 330px); right: auto; width: 660px; top: calc(50% - 38px); height: 70px; }
  .gallery .xr[data-mode='vr']:not(.is-immersive) .xr-eye-2,
  .gallery .xr[data-mode='vr']:not(.is-immersive) .xr-eye-3 { width: 226px; top: calc(50% - 6px); right: auto; }
  .gallery .xr[data-mode='vr']:not(.is-immersive) .xr-eye-2 { left: calc(var(--gx) - 242px); }
  .gallery .xr[data-mode='vr']:not(.is-immersive) .xr-eye-3 { left: calc(var(--gx) + 16px); }
}
