/* Metallidis Virtual 360 Tours: landing page styles
   Palette (owner-pinned): charcoal #101114 · off-white #F5F4F0 · soft gray #A7A8AC · white #FFFFFF
   One accent, only for things you can touch: #7CC4C0 on dark, #1D6E6B on light. */

:root {
  --ink: #101114;
  --ink-2: #17181c;
  --ink-3: #0b0c0e;
  --paper: #f5f4f0;
  --paper-2: #ebeae5;
  --gray: #a7a8ac;
  --gray-ink: #5c5d62;
  --white: #ffffff;
  --accent: #7cc4c0;
  --accent-ink: #1d6e6b;
  --line-d: rgba(255, 255, 255, 0.14);
  --line-l: rgba(16, 17, 20, 0.14);
  --error: #ffb4a8;

  --font: "Commissioner", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --max: 1320px;
  --max-wide: 1600px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
  --sect: clamp(96px, 12vw, 184px);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--accent);
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }
[data-tone="light"] ::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-tone="light"] :focus-visible { outline-color: var(--accent-ink); }
html { scrollbar-color: #3a3c42 var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3a3c42; border: 2px solid var(--ink); border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.wrap--wide { max-width: calc(var(--max-wide) + 2 * var(--gutter)); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 2px; }
.skip:focus { top: 12px; }

.h2 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
  font-variation-settings: "FLAR" 30;
  text-wrap: balance;
}
.soft { font-weight: 400; color: var(--gray-ink); }
[data-tone="dark"] .soft { color: var(--gray); }

section[id] { scroll-margin-top: var(--nav-h); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 2px;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.5s var(--ease-out);
  will-change: transform;
}
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: var(--accent); }
[data-tone="light"] .btn--solid { background: var(--ink); color: var(--paper); }
[data-tone="light"] .btn--solid:hover { background: var(--accent-ink); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #9ad6d2; }
.btn--accent:disabled { cursor: progress; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--white); }
.btn--quote::after {
  content: ""; width: 18px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.4s var(--ease-out);
}
.btn--quote:hover::after { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 0; border: 0; background: none;
  font-weight: 600; text-decoration: underline; text-decoration-color: currentColor;
  text-underline-offset: 0.42em;
  transition: color 0.3s var(--ease-out), text-decoration-color 0.3s;
}
.link-arrow::after {
  content: ""; width: 18px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.4s var(--ease-out);
}
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }
[data-tone="light"] .link-arrow:hover { color: var(--accent-ink); }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: rgba(16, 17, 20, 0.72); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 2px;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding-top: env(safe-area-inset-top);
  color: var(--paper);
  background: linear-gradient(to bottom, rgba(16, 17, 20, 0.55), rgba(16, 17, 20, 0));
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), box-shadow 0.45s;
}
.nav.is-solid { background: rgba(16, 17, 20, 0.96); box-shadow: 0 1px 0 var(--line-d); }
.nav.is-solid[data-tone="light"] { background: rgba(245, 244, 240, 0.96); color: var(--ink); box-shadow: 0 1px 0 var(--line-l); }
.nav__bar {
  display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px);
  height: var(--nav-h); max-width: calc(var(--max-wide) + 2 * var(--gutter)); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__word { display: grid; line-height: 1.05; }
.brand__word b { font-size: 1.08rem; font-weight: 650; letter-spacing: -0.015em; }
.brand__word small { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.72; margin-top: 3px; }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 34px); margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.nav__links a { text-decoration: none; padding: 8px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.btn--nav { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; background: var(--paper); color: var(--ink); }
.btn--nav:hover { background: var(--accent); }
.nav.is-solid[data-tone="light"] .btn--nav { background: var(--ink); color: var(--paper); }
.nav.is-solid[data-tone="light"] .btn--nav:hover { background: var(--accent-ink); color: var(--white); }
.nav__menu-cta { display: none; }
/* Language switch: the other language is a link, the current one is marked. */
.lang { display: flex; align-items: center; flex: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; }
.lang__opt { position: relative; display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 8px; text-decoration: none; }
.lang__opt + .lang__opt::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: currentColor; opacity: 0.32; }
a.lang__opt { opacity: 0.62; text-underline-offset: 0.5em; text-decoration-thickness: 1px; transition: opacity 0.3s var(--ease-out); }
a.lang__opt:hover { opacity: 1; text-decoration-line: underline; }
.nav__toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px 0 8px; background: none; border: 0; font-weight: 600; font-size: 0.9375rem; }
.nav__toggle-icon { display: grid; gap: 6px; width: 22px; }
.nav__toggle-icon i { display: block; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav__toggle { display: inline-flex; }
  .lang { margin-left: auto; }
  .nav__links {
    position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top)); bottom: 0;
    flex-direction: column; gap: 0; margin: 0;
    padding: 12px max(var(--gutter), env(safe-area-inset-left)) 40px;
    background: var(--ink); color: var(--paper);
    font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 550; letter-spacing: -0.025em;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
    overflow-y: auto;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line-d); }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav.is-open { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 var(--line-d); }
  .nav.is-open .btn--nav { background: var(--paper); color: var(--ink); }
  .nav__links .nav__menu-cta { display: inline-flex; margin-top: 28px; padding: 0 26px; border-bottom: 0; font-size: 1rem; letter-spacing: -0.005em; background: var(--paper); color: var(--ink); }
}
@media (min-width: 480px) and (max-width: 959px) { .nav__links .nav__menu-cta { display: none; } }
@media (max-width: 479px) {
  .btn--nav { display: none; }
  .nav__bar { gap: 10px; }
}
/* Narrow phones: the brand, the language switch and the menu icon must share one row,
   so the word "Menu" is kept for screen readers only. */
@media (max-width: 419px) {
  .nav__toggle { min-width: 44px; justify-content: center; padding: 0; }
  .nav__toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .brand__word small { letter-spacing: 0.12em; }
}

/* ---------- 360 viewer shell (shared) ---------- */
.pano { position: relative; overflow: hidden; background: var(--ink-3); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.pano canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s var(--ease-out); }
.pano.is-ready canvas { opacity: 1; }
.pano.is-switching canvas { opacity: 0.15; transition-duration: 0.45s; }
.pano__fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pano.is-failed .pano__fallback { display: block; }
.pano.is-failed canvas { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1200px; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__stage { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.hero__stage.is-dragging { cursor: grabbing; }
.hero__stage canvas { transition-duration: 1.2s; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(16, 17, 20, 0.9) 0%, rgba(16, 17, 20, 0.55) 30%, rgba(16, 17, 20, 0.08) 58%, rgba(16, 17, 20, 0) 70%),
    linear-gradient(to right, rgba(16, 17, 20, 0.5) 0%, rgba(16, 17, 20, 0) 55%);
}
.hero__copy { position: absolute; left: 0; right: 0; bottom: clamp(96px, 13vh, 140px); pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.hero__title {
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 340;
  font-variation-settings: "FLAR" 20;
  color: rgba(255, 255, 255, 0.84);
}
.hero__title .line { display: block; padding-bottom: 0.04em; }
.hero__title .line > span { display: inline-block; text-wrap: balance; }
.hero__title .line--strong { color: var(--white); font-weight: 700; font-variation-settings: "FLAR" 45; }
/* The headline sets the block's width; the lead fills exactly that width (it never widens it). */
.hero__block { width: fit-content; max-width: 100%; }
.hero__lead { width: 0; min-width: 100%; margin-top: clamp(16px, 2vw, 24px); font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.5; color: rgba(255, 255, 255, 0.86); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: clamp(24px, 3vw, 36px); }
.hero__cue { position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); bottom: clamp(96px, 13vh, 140px); display: grid; justify-items: center; gap: 10px; pointer-events: none; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.8); }
.compass { width: 64px; height: 64px; overflow: visible; }
.compass__ring { fill: rgba(16, 17, 20, 0.35); stroke: rgba(255, 255, 255, 0.55); stroke-width: 1; }
.compass__ticks { stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.2; fill: none; }
.compass__needle { fill: var(--accent); }
.compass__fov { fill: rgba(124, 196, 192, 0.22); stroke: none; transform-origin: 32px 32px; }
.compass__rose { transform-origin: 32px 32px; }
.hero__tag { position: absolute; left: max(var(--gutter), env(safe-area-inset-left)); bottom: clamp(24px, 4vh, 36px); display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.74); pointer-events: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray); }

@media (max-width: 759px) {
  .hero { min-height: 560px; }
  .hero__copy { bottom: 76px; }
  .hero__cue { top: calc(var(--nav-h) + env(safe-area-inset-top) + 16px); bottom: auto; }
  .compass { width: 52px; height: 52px; }
  .hero__shade { background: linear-gradient(to top, rgba(16, 17, 20, 0.92) 0%, rgba(16, 17, 20, 0.6) 38%, rgba(16, 17, 20, 0.1) 66%, rgba(16, 17, 20, 0.25) 100%); }
}

/* Hero entrance: CSS-driven so content arrives even if scripts fail. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { animation: rise 1.3s var(--ease-out) both; }
  .js .hero__title .line:nth-child(1) > span { animation-delay: 0.9s; }
  .js .hero__title .line:nth-child(2) > span { animation-delay: 1.08s; }
  .js .hero__lead { animation: rise-soft 1.2s var(--ease-out) 1.35s both; }
  .js .hero__actions { animation: rise-soft 1.2s var(--ease-out) 1.5s both; }
  .js .hero__cue, .js .hero__tag { animation: fade 1.4s var(--ease-out) 2.2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.42em); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Section quote buttons ---------- */
.section-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(36px, 4.5vw, 56px); }
.section-cta p { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; max-width: 28ch; }
.work__cta { justify-content: space-between; padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--line-l); margin-top: clamp(48px, 6vw, 80px); }
@media (max-width: 559px) { .section-cta .btn { width: 100%; } }

/* ---------- The difference ---------- */
.diff { background: var(--paper); color: var(--ink); padding: var(--sect) 0 clamp(56px, 6vw, 88px); }
.diff__head { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.diff__title { max-width: 23ch; font-size: clamp(1.85rem, 3.6vw, 3.25rem); }
.diff__title .soft { display: block; }
.diff__copy { display: grid; gap: 10px; max-width: 52ch; color: var(--gray-ink); font-size: 1.125rem; }
.diff__wants { color: var(--ink); font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.012em; }

/* The real tours: tabs above a window-framed stage. A still with an "Explore"
   button covers the stage until clicked; then the tour (an iframe) takes over. */
.tours { margin-top: clamp(48px, 6vw, 88px); }
.tours__tabs { display: flex; gap: clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--line-l); overflow-x: auto; scrollbar-width: none; }
.tours__tabs::-webkit-scrollbar { display: none; }
.tours__tab {
  position: relative; display: grid; gap: 3px; flex: none; padding: 0 0 16px; text-align: left;
  background: none; border: 0; color: var(--gray-ink); transition: color 0.25s;
}
.tours__tab b { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 620; line-height: 1.15; letter-spacing: -0.022em; }
.tours__tab span { font-size: 0.8125rem; }
.tours__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out);
}
.tours__tab[aria-selected="true"] { color: var(--ink); }
.tours__tab[aria-selected="true"]::after { transform: scaleX(1); }
.tours__tab:hover { color: var(--accent-ink); }
.tours__tab:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 6px; }

.tours__stage {
  position: relative; margin-top: clamp(16px, 2vw, 24px);
  aspect-ratio: 16 / 9; max-height: 86svh; width: 100%;
  background: var(--ink-3); overflow: hidden; border-radius: 2px; isolation: isolate;
}
.tours__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tours__cover { position: absolute; inset: 0; z-index: 3; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-3); cursor: pointer; }
/* Scrim: a soft dark pool behind the mark and text, plus the usual bottom fade. */
.tours__cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 52% at 50% 50%, rgba(16, 17, 20, 0.5) 0%, rgba(16, 17, 20, 0.18) 70%, rgba(16, 17, 20, 0) 100%),
    linear-gradient(to top, rgba(16, 17, 20, 0.5) 0%, rgba(16, 17, 20, 0.08) 50%, rgba(16, 17, 20, 0.16) 100%);
}
.tours__poster { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease-out); }
.tours__cover:hover .tours__poster { transform: scale(1.08); }

/* The start: the brand globe in a glass ring, with "See this in 360!" beneath. */
.tours__start {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: clamp(14px, 1.6vw, 20px); color: var(--white); text-align: center;
}
.tours__mark {
  position: relative; display: grid; place-items: center;
  width: clamp(96px, 9vw, 124px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(16, 17, 20, 0.42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  transition: transform 0.6s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
/* A ring that breathes outward: "this can be touched". */
.tours__mark::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0;
}
.tours__mark svg { width: 54%; height: 54%; overflow: visible; fill: none; stroke-width: 1.6; }
.mark__ring { stroke: var(--white); }
.mark__equator { stroke: var(--accent); }
.mark__meridian { stroke: var(--white); stroke-width: 1; opacity: 0.55; transform-box: fill-box; transform-origin: center; }
.mark__dot { fill: var(--accent); stroke: none; }
.tours__cta { font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 620; line-height: 1.1; letter-spacing: -0.022em; font-variation-settings: "FLAR" 30; }
.tours__cover:hover .tours__mark { transform: scale(1.06); border-color: var(--accent); background: rgba(16, 17, 20, 0.58); }
.tours__cover:focus-visible { outline: none; }
.tours__cover:focus-visible .tours__mark { outline: 2px solid var(--accent); outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) {
  /* The meridian sweeps like a turning globe; the ring pulses outward. */
  .mark__meridian { animation: globe-turn 3.6s var(--ease-io) infinite; }
  .tours__mark::after { animation: mark-pulse 2.8s var(--ease-out) infinite; }
}
@keyframes globe-turn { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
@keyframes mark-pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.45); opacity: 0; } }
.tours__stage .tick { z-index: 4; transition: opacity 0.4s; }
/* Once the tour runs, its own buttons sit in the corners, so the frame ticks step aside. */
.tours__stage.is-live .tick { opacity: 0; }
@media (max-width: 759px) {
  .tours__tabs { gap: 22px; }
  .tours__tab { padding-bottom: 12px; }
  .tours__tab b { font-size: 1.0625rem; }
  .tours__tab span { display: none; }
  .tours__stage { aspect-ratio: 4 / 5; max-height: 78svh; }
  .tours__stage .tick { width: 12px; height: 12px; }
  .tours__stage .tick--tl, .tours__stage .tick--bl { left: 6px; }
  .tours__stage .tick--tr, .tours__stage .tick--br { right: 6px; }
  .tours__stage .tick--tl, .tours__stage .tick--tr { top: 6px; }
  .tours__stage .tick--bl, .tours__stage .tick--br { bottom: 6px; }
}

/* Full-screen tour, opened from "Explore the space" */
.tour-overlay { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: var(--ink-3); }
.tour-overlay[hidden] { display: none; }
.tour-overlay__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 10px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--ink); color: var(--white); box-shadow: 0 1px 0 var(--line-d);
}
.tour-overlay__title { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-overlay__close {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; flex: none;
  background: rgba(16, 17, 20, 0.72); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 2px;
  font-size: 0.875rem; font-weight: 600; transition: color 0.25s, border-color 0.25s;
}
.tour-overlay__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tour-overlay__close:hover { color: var(--accent); border-color: var(--accent); }
.tour-overlay__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tour-overlay .tours__frame { position: static; flex: 1; height: auto; }

/* ---------- Shared: window-frame corner ticks, spinner ---------- */
.tick { position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 2; border-color: rgba(255, 255, 255, 0.55); border-style: solid; border-width: 0; }
.tick--tl { left: 12px; top: 12px; border-left-width: 1px; border-top-width: 1px; }
.tick--tr { right: 12px; top: 12px; border-right-width: 1px; border-top-width: 1px; }
.tick--bl { left: 12px; bottom: 12px; border-left-width: 1px; border-bottom-width: 1px; }
.tick--br { right: 12px; bottom: 12px; border-right-width: 1px; border-bottom-width: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Benefits: "Why have a virtual tour on your website?" ---------- */
.benefits { background: var(--paper); color: var(--ink); padding: clamp(48px, 6vw, 88px) 0 var(--sect); }
.why__title { max-width: 20ch; }
.why { display: grid; gap: clamp(36px, 5vw, 80px); margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line-l); }
.why__stat { display: grid; align-content: start; gap: 14px; }
.why__num { font-size: clamp(4.25rem, 9vw, 6rem); line-height: 0.9; font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.why__lead { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -0.022em; font-weight: 620; max-width: 22ch; text-wrap: balance; }
.why__text { max-width: 44ch; color: var(--gray-ink); font-size: 1.0625rem; }
.why__source { font-size: 0.8125rem; color: var(--gray-ink); }
.why__list { display: grid; margin: 0; padding: 0; }
.why__list li { display: grid; grid-template-columns: 30px 1fr; gap: 0 18px; padding: clamp(22px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line-l); }
.why__list li:first-child { padding-top: 0; }
.why__list svg { width: 28px; height: 28px; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why__list h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 620; }
.why__list p { margin-top: 6px; max-width: 46ch; color: var(--gray-ink); }
@media (min-width: 960px) {
  .why { grid-template-columns: 5fr 7fr; }
}

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--paper); padding: var(--sect) 0; }
.process__title { max-width: 22ch; }
.steps { position: relative; display: grid; gap: 48px; margin-top: clamp(56px, 7vw, 104px); padding: 0; }
.steps::before { content: ""; position: absolute; background: var(--line-d); }
.steps::after { content: ""; position: absolute; background: var(--paper); transform-origin: left top; transition: transform 1.8s var(--ease-out); }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step__num { font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1; font-weight: 300; letter-spacing: -0.04em; color: var(--gray); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.step h3 { font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.15; letter-spacing: -0.022em; font-weight: 620; max-width: 18ch; }
.step p { color: rgba(245, 244, 240, 0.72); max-width: 34ch; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); padding-top: 40px; }
  .steps::before, .steps::after { left: 0; right: 0; top: 0; height: 1px; }
  .step::before { content: ""; position: absolute; top: -45px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--paper); }
}
@media (max-width: 959px) {
  .steps { padding-left: 28px; }
  .steps::before, .steps::after { left: 4px; top: 6px; bottom: 6px; width: 1px; }
  .step::before { content: ""; position: absolute; left: -28px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 1px solid var(--paper); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .steps:not(.in)::after { transform: scaleX(0); }
  @media (max-width: 959px) { .js .steps:not(.in)::after { transform: scaleY(0); } }
  .js .step { transition: transform 1s var(--ease-out); }
  .js .steps:not(.in) .step { transform: translateY(16px); }
  .js .step:nth-child(2) { transition-delay: 0.25s; }
  .js .step:nth-child(3) { transition-delay: 0.5s; }
}

/* ---------- Work ---------- */
.work { background: var(--paper); color: var(--ink); padding: var(--sect) 0 clamp(72px, 9vw, 128px); }
.work__title { max-width: 18ch; margin-bottom: clamp(40px, 5vw, 72px); }
.work__list { display: grid; gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.project { display: grid; gap: 22px; align-content: start; }
.project__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); border-radius: 2px; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.project__media:hover img { transform: scale(1.04); }
.badge-360 { position: absolute; left: 14px; top: 14px; padding: 6px 10px; background: rgba(16, 17, 20, 0.8); color: var(--white); border-radius: 2px; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.02em; }
.project__meta h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 620; }
.project__meta dl { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 14px; font-size: 0.9375rem; }
.project__meta dt { font-size: 0.8125rem; color: var(--gray-ink); }
.project__meta dd { font-weight: 500; }
.project__meta .link-arrow { margin-top: 14px; }
.project__meta p { margin-top: 12px; color: var(--gray-ink); max-width: 36ch; }
@media (min-width: 960px) {
  .work__list { grid-template-columns: 7fr 5fr; align-items: start; }
  .project:nth-child(2) { margin-top: clamp(80px, 10vw, 160px); }
}

/* ---------- FAQ ---------- */
.faq { background: var(--paper); color: var(--ink); padding: clamp(64px, 8vw, 120px) 0 var(--sect); }
.faq__inner { display: grid; gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--line-l); padding-top: clamp(48px, 6vw, 88px); }
.faq__list { border-bottom: 1px solid var(--line-l); }
.qa { border-top: 1px solid var(--line-l); }
.qa h3 { font-size: inherit; font-weight: inherit; }
.qa__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;
  padding: 26px 0; background: none; border: 0; text-align: left;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem); line-height: 1.3; letter-spacing: -0.018em; font-weight: 560;
  transition: color 0.25s;
}
.qa__q:hover { color: var(--accent-ink); }
.qa__icon { position: relative; flex: none; width: 18px; height: 18px; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.45s var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding-bottom: 28px; max-width: 60ch; color: var(--gray-ink); font-size: 1.0625rem; }
.qa__a a { color: var(--accent-ink); font-weight: 600; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.faq__cta { margin-top: 0; }
@media (min-width: 960px) { .faq__cta { grid-column: 2; } }
@media (min-width: 960px) {
  .faq__inner { grid-template-columns: 5fr 7fr; }
  .faq__inner > .h2 { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; max-width: 12ch; }
}

/* ---------- Close + form ---------- */
.close { position: relative; padding: var(--sect) 0; background: var(--ink); color: var(--white); overflow: hidden; }
.close__bg { position: absolute; inset: 0; }
.close__bg img { width: 100%; height: 116%; margin-top: -8%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.close__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 17, 20, 0.78) 0%, rgba(16, 17, 20, 0.66) 50%, rgba(16, 17, 20, 0.92) 100%); }
.close__inner { position: relative; display: grid; gap: clamp(48px, 6vw, 88px); align-items: start; }
.close__title { font-size: clamp(2.2rem, 4.6vw, 4.25rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 640; font-variation-settings: "FLAR" 40; max-width: 15ch; text-wrap: balance; }
.close__lead { margin-top: clamp(20px, 2.6vw, 32px); max-width: 40ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: rgba(255, 255, 255, 0.84); }
.close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: clamp(28px, 3.4vw, 40px); }
.contacts { display: grid; margin-top: clamp(40px, 5vw, 64px); padding: 0; max-width: 520px; border-top: 1px solid var(--line-d); }
.contacts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-d); font-size: 0.9375rem; }
.contacts__k { color: var(--gray); }
.contacts__v { text-decoration: none; color: var(--white); overflow-wrap: anywhere; }
a.contacts__v:hover { color: var(--accent); }
@media (min-width: 1040px) {
  .close__inner { grid-template-columns: 7fr 5fr; }
}

.form-card { position: relative; padding: clamp(24px, 3vw, 40px); background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); scroll-margin-top: calc(var(--nav-h) + 24px); }
.form-card:focus { outline: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 22px; }
.form__title { grid-column: 1 / -1; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 640; margin-bottom: 4px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: rgba(255, 255, 255, 0.84); }
.opt { font-weight: 400; color: var(--gray); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 0; background: transparent; color: var(--white);
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.32); border-radius: 0;
  font-size: 1rem; line-height: 1.4; transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field__error { min-height: 0; font-size: 0.8125rem; color: var(--error); }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer; }
.select select:invalid { color: rgba(255, 255, 255, 0.6); }
.select option { color: var(--ink); background: var(--paper); }
.select svg { position: absolute; right: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--gray); stroke-width: 1.6; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { grid-column: 1 / -1; display: grid; gap: 14px; margin-top: 6px; }
.form__foot .btn { width: 100%; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(16, 17, 20, 0.25); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.form__status { font-size: 0.9375rem; line-height: 1.5; color: rgba(255, 255, 255, 0.84); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.form__status a { color: inherit; }
.form__done { display: grid; justify-items: start; gap: 12px; padding: 12px 0; }
.form__done:focus { outline: none; }
.form__done svg { width: 48px; height: 48px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.form__done h3 { font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 640; }
.form__done p { color: rgba(255, 255, 255, 0.8); }
@media (max-width: 559px) {
  .form { grid-template-columns: 1fr; }
  .close__actions .btn { width: 100%; }
  .contacts li { grid-template-columns: 96px 1fr; }
}

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-d); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.foot__small { font-size: 0.8125rem; color: var(--gray); }

/* ---------- Magnetic CTAs ---------- */
.magnetic { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .close__bg img { transform: none !important; }
}
