/* Homepage opening tour (#tour): full-screen walk through real Officea offices, room by room.
   Behaviour in js/officea-tour.js. Without JavaScript only the first scene (the page heading) shows. */
.tour { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1100px; background: #0F1011; color: #F4F1EA; overflow: hidden; isolation: isolate; }
.tour-scene { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.tour-scene.on { visibility: visible; opacity: 1; z-index: 2; }
.tour-scene.off { visibility: visible; z-index: 1; }
.tour-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12,13,14,.92) 0%, rgba(12,13,14,.55) 30%, rgba(12,13,14,.08) 62%, rgba(12,13,14,.35) 100%); }
.tour-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 max(24px, 5vw) clamp(72px, 10vh, 104px); }
.tour-k { font: 600 12px/1 var(--body, sans-serif); letter-spacing: .18em; text-transform: uppercase; color: #D9B97A; margin: 0 0 14px; }
.tour h1, .tour .tour-h { margin: 0; font-family: "Sora", var(--display, sans-serif); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; color: #fff; }
.tour h1 { font-size: clamp(2.4rem, 6.2vw, 5.6rem); line-height: .95; max-width: 13ch; }
.tour .tour-h { font-size: clamp(2.2rem, 6vw, 5rem); line-height: .95; max-width: 14ch; }
.tour h1 em, .tour .tour-h em { font-style: normal; color: #D9B97A; }
.tour-t { margin: 16px 0 0; max-width: 38rem; font-size: 1.08rem; line-height: 1.55; color: rgba(244,241,234,.9); }
.tour-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tour .btn.ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.tour .btn.ghost:hover { background: rgba(255,255,255,.12); }
.tour-nav { min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 4px; background: rgba(15,16,17,.35); color: #fff; font: 700 13px/1 var(--body, sans-serif); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.tour-nav:hover { background: rgba(255,255,255,.14); }
.tour-nav[disabled] { opacity: .35; cursor: default; }
.tour-alt { margin: 14px 0 0; font-size: .95rem; color: rgba(244,241,234,.9); }
.tour-alt a, .tour-alt button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(244,241,234,.45); text-underline-offset: 3px; }
.tour-alt a:hover, .tour-alt button:hover { text-decoration-color: currentColor; }
.tour-proof { margin: 16px 0 0; font-size: .86rem; color: rgba(244,241,234,.78); }
.tour-proof a { color: inherit; text-decoration: underline; text-decoration-color: rgba(244,241,234,.45); text-underline-offset: 3px; }

/* room counter, top left under the header */
.tour-count { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top, 0px) + 84px); left: max(24px, 5vw); margin: 0;
  font: 600 12px/1 var(--body, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: rgba(244,241,234,.85); }
/* room rail, right edge (desktop); dots on small screens */
.tour-rail { position: absolute; z-index: 4; right: max(18px, 2.4vw); top: 50%; transform: translateY(-50%); margin: 0; padding: 10px 6px; list-style: none;
  display: grid; gap: 2px; background: rgba(15,16,17,.45); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; }
.tour-rail button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 4px; background: none;
  color: rgba(244,241,234,.7); font: 600 12px/1 var(--body, sans-serif); letter-spacing: .06em; text-align: left; cursor: pointer; }
.tour-rail button b { font: 700 12px/1 "Sora", var(--display, sans-serif); color: rgba(244,241,234,.55); min-width: 20px; }
.tour-rail button:hover { background: rgba(255,255,255,.1); color: #fff; }
.tour-rail button[aria-current="true"] { background: #B08A4E; color: #fff; }
.tour-rail button[aria-current="true"] b { color: #fff; }
.tour-bar { position: absolute; z-index: 4; left: 0; bottom: 0; height: 3px; width: 0; background: #B08A4E; transition: width .5s ease; }

/* moving through: the next room grows into view as if the camera walks in */
.tour.ready .tour-scene { transition: opacity .7s ease, visibility 0s linear .7s; }
.tour.ready .tour-scene.on { transition: opacity .7s ease, visibility 0s; }
.tour.ready .tour-img { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.tour.ready .tour-scene:not(.on) .tour-img { transform: scale(1.12); }
.tour.ready .tour-scene.off .tour-img { transform: scale(1.18); }
.tour.ready.back .tour-scene:not(.on):not(.off) .tour-img { transform: scale(.96); }
.tour.ready .tour-copy > * { transition: opacity .5s ease .25s, transform .6s cubic-bezier(.2,.7,.2,1) .25s; }
.tour.ready .tour-scene:not(.on) .tour-copy > * { opacity: 0; transform: translateY(18px); }

@media (max-width: 900px) {
  .tour-rail { top: auto; bottom: 18px; right: 50%; transform: translateX(50%); display: flex; gap: 4px; padding: 6px 8px; border-radius: 999px; }
  .tour-rail button { width: 22px; min-height: 22px; padding: 0; justify-content: center; border-radius: 50%; }
  .tour-rail button span, .tour-rail button b { display: none; }
  .tour-rail button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(244,241,234,.6); }
  .tour-rail button[aria-current="true"] { background: none; }
  .tour-rail button[aria-current="true"]::before { width: 10px; height: 10px; background: #D9B97A; }
  .tour-copy { padding-bottom: 66px; }
  .tour-count { top: calc(env(safe-area-inset-top, 0px) + 76px); }
}
@media (max-width: 640px) {
  .tour { min-height: 520px; max-height: none; }
  .tour h1 { font-size: 40px; }
  .tour .tour-h { font-size: 38px; }
  .tour-t { font-size: 15px; }
  .tour-actions .btn { padding: 11px 16px; }
}
/* the fixed mobile contact bar (same screens as in css/officea-ui.css) covers the bottom 56px. Reserved from the
   first paint, not when js/officea-ui.js adds body.has-mbar, so the tour never jumps while the page loads */
@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1100px) {
  .tour { height: calc(100svh - 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .tour.ready .tour-img, .tour.ready .tour-copy > *, .tour-bar { transition: none !important; transform: none !important; }
  .tour.ready .tour-scene, .tour.ready .tour-scene.on { transition: opacity .2s linear, visibility 0s; }
}

/* Desktop photo size as on the earlier homepage hero (owner's preference, 5 Nov 2026): up to 90% of the screen
   height, at most 860px. Phones and tablets with the contact bar keep the full-screen tour. */
@media (min-width: 721px) and (hover: hover), (min-width: 1101px) {
  .tour { height: min(90vh, 860px); height: min(90svh, 860px); min-height: 520px; max-height: none; }
}
@media (min-width: 701px) {
  .tour-img { object-position: center 55%; }
  .tour h1 { font-size: clamp(2.5rem, 4.6vw, 4.2rem); line-height: 1.03; max-width: 15ch; }
  .tour .tour-h { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.03; }
}
