/* Opening and geographic journey. The photographic gallery keeps its own styles. */
html { scroll-behavior: auto; }
body { scroll-behavior: auto; }
:focus-visible { outline: 2px solid #c7a16c; outline-offset: 6px; }
.geo-story { height: 580svh; position: relative; background: #090706; }
.geo-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #090706; isolation: isolate; }
.globe-wrap, .map-surface, .cinematic-vignette { position: absolute; inset: 0; }
.globe-wrap { z-index: 1; }
.map-surface { background: transparent; }
.map-surface canvas { display: block; }
.earth-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: #090706; transition: opacity .5s; }
.earth-fallback img { object-fit: contain; }
.map-ready .earth-fallback { opacity: 0; pointer-events: none; }
.cinematic-vignette { z-index: 2; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(9,7,6,.25)); }
.opening { position: absolute; z-index: 4; left: 6.5%; top: 50%; width: 43%; max-width: 640px; transform: translateY(-50%); text-align: left; }
.opening-visual { transform: translateY(0); }
.opening-brand { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(28px, 5vh, 48px); }
.opening-logo { width: auto; height: 74px; object-fit: contain; mix-blend-mode: screen; }
.opening-brand span { font: 400 clamp(30px, 3.1vw, 46px)/1 Georgia, serif; letter-spacing: -.035em; }
.opening h1 { margin: 0; font: 400 clamp(44px, 4.65vw, 72px)/1.07 Georgia, serif; letter-spacing: -.045em; }
.opening h1 em { font-weight: 400; }
.opening-copy { margin: 26px 0 0; max-width: 440px; font: 400 17px/1.65 Inter, ui-sans-serif, system-ui, sans-serif; color: #c8c5c3; }
.discover { min-height: 50px; margin-top: 30px; padding: 14px 24px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; display: inline-flex; align-items: center; gap: 26px; background: transparent; color: #fff; text-transform: uppercase; letter-spacing: .22em; font-size: 11px; cursor: pointer; transition: background .2s, color .2s; }
.discover i { display: flex; }
.discover svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.discover:hover { background: white; color: #090706; }
.geo-caption { position: absolute; z-index: 4; left: 5%; bottom: 100px; opacity: 0; pointer-events: none; color: #fff; }
.geo-caption span { display: block; font-size: 11px; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 12px; }
.geo-caption strong { display: block; font: 400 clamp(42px, 5vw, 68px)/1 Georgia, serif; letter-spacing: -.035em; }
#bolognaCaption { color: #39291f; }
.studio-locator { position: absolute; z-index: 3; display: flex; align-items: center; opacity: 0; pointer-events: none; color: #fff; font: 19px Georgia, serif; white-space: nowrap; transform: translate(-5px, -50%); }
.studio-locator i { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px #09070640, 0 0 0 6px #ffffff60; }
.studio-locator::after { content: ''; position: absolute; width: 24px; height: 1px; background: #e2c6a5; left: 14px; top: 50%; }
.studio-locator span { margin-left: 32px; padding: 9px 13px 10px; background: #090706e8; border: 1px solid #e2c6a53d; border-radius: 2px; }
.city-stage .studio-locator i { background: #916134; box-shadow: 0 0 0 5px #ffffff80; }
.city-stage .studio-locator span { color: #39291f; background: #f6f0e7f2; border-color: #91613440; }
.studio-marker { position: absolute; z-index: 4; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.marker-core { position: absolute; width: 58px; height: 58px; left: -29px; top: -29px; border-radius: 50%; background: #201d1a; border: 1px solid #c7a16c; display: grid; place-items: center; box-shadow: 0 8px 28px #201d1a30; }
.logo-mark { width: auto; height: 35px; mix-blend-mode: screen; }
.marker-ripple { position: absolute; left: -37px; top: -37px; width: 74px; height: 74px; border: 1px solid #91613466; border-radius: 50%; }
.marker-hairline { position: absolute; top: 38px; left: 0; width: 1px; height: 24px; background: #916134; }
.marker-copy { position: absolute; top: 72px; left: -135px; width: 270px; padding: 12px 10px; text-align: center; color: #39291f; background: #f6f0e7ec; border-radius: 2px; }
.marker-copy span { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #715b4a; margin-bottom: 6px; }
.marker-copy strong { display: block; font: 400 26px/1.15 Georgia, serif; }
.marker-copy small { display: block; margin-top: 7px; font-size: 12px; }
.photo-portal { position: absolute; z-index: 5; inset: 0; opacity: 0; pointer-events: none; clip-path: circle(0 at 50% 50%); }
.photo-portal > img { width: 100%; height: 100%; object-fit: cover; }
.portal-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, #130e0966); }
.portal-brand { position: absolute; left: 5%; bottom: 100px; display: flex; align-items: center; gap: 20px; opacity: 0; }
.portal-brand .portal-monogram { height: 64px; width: auto; mix-blend-mode: screen; }
.portal-brand span { font: 24px Georgia, serif; }
.journey-progress { position: absolute; z-index: 6; left: 5%; right: 5%; bottom: 65px; height: 1px; background: #ffffff30; }
.journey-progress i { display: block; height: 100%; background: #e2c6a5; transform-origin: left; transform: scaleX(0); }
.journey-footer { position: absolute; z-index: 6; bottom: max(14px, env(safe-area-inset-bottom)); left: 5%; right: 5%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.skip-journey { font-size: 12px; color: #e0dcd8; padding: 12px 0; white-space: nowrap; }
.skip-journey span { margin-left: 8px; }
.source-credit { font-size: 10px; line-height: 1.5; color: #bcb8b5; text-align: right; }
.source-credit [hidden] { display: none; }
.source-credit a:hover, .skip-journey:hover { text-decoration: underline; text-underline-offset: 4px; }
.city-stage .journey-footer { color: #39291f; }
.city-stage .source-credit, .city-stage .skip-journey { color: #493d32; }
.city-stage .journey-progress { background: #39291f30; }
.city-stage .journey-progress i { background: #916134; }
.gallery-arrival:focus { outline: none; }
.geo-story.is-static { height: auto; min-height: 100svh; }
.is-static .geo-sticky { position: relative; }
.is-static .journey-progress { display: none; }

@media (max-width: 900px) and (orientation: portrait) {
  .geo-story { height: 520svh; }
  .opening { left: 7%; top: max(26px, 5svh); width: 86%; max-width: none; transform: none; }
  /* Keep the measured opening box unchanged for globe framing; only move its visible content below the fixed site controls. */
  .opening-visual { transform: translateY(clamp(34px, 4.5svh, 46px)); }
  .opening-brand { gap: 14px; margin-bottom: clamp(16px, 3svh, 28px); }
  .opening-logo { height: clamp(40px, 6.5svh, 58px); }
  .opening-brand span { font-size: clamp(28px, 5vw, 38px); }
  .opening h1 { font-size: clamp(36px, 7vw, 52px); line-height: 1.05; }
  .opening-copy { margin-top: 16px; max-width: 440px; font-size: 15px; line-height: 1.55; }
  .discover { margin-top: 19px; min-height: 46px; padding: 12px 21px; font-size: 10px; }
  .geo-caption { left: 7%; bottom: 110px; }
}
@media (max-width: 600px) {
  .studio-locator span { position: absolute; left: 5px; bottom: 28px; margin: 0; transform: translateX(-50%); font-size: 17px; padding: 8px 11px; }
  .studio-locator::after { left: 5px; top: -18px; width: 1px; height: 14px; }
  .journey-footer { left: 7%; right: 7%; gap: 4px; flex-wrap: wrap; align-content: center; }
  .skip-journey { font-size: 11px; padding: 8px 0; }
  .source-credit { font-size: 9px; }
  .journey-progress { left: 7%; right: 7%; bottom: 76px; }
  .geo-caption { bottom: 115px; }
  .marker-copy { top: 60px; }
}
@media (max-height: 600px) and (orientation: landscape) {
  .opening { left: 5%; width: 46%; }
  .opening-brand { gap: 12px; margin-bottom: 18px; }
  .opening-logo { height: 46px; }
  .opening-brand span { font-size: 30px; }
  .opening h1 { font-size: clamp(30px, 4vw, 46px); }
  .opening-copy { font-size: 14px; margin-top: 16px; line-height: 1.45; }
  .discover { margin-top: 18px; min-height: 44px; padding: 10px 20px; font-size: 10px; }
  .geo-caption { bottom: 85px; }
  .marker-copy { top: 44px; }
  .marker-hairline { display: none; }
}
/* Reflow instead of trapping large text in a fixed-height scene. */
.text-reflow.geo-story { height: auto; }
.text-reflow .geo-sticky { height: auto; min-height: 100svh; position: relative; }
.text-reflow .opening { position: relative; top: auto; left: auto; width: 43%; max-width: 640px; margin-left: 6.5%; padding: 32px 0 350px; transform: none !important; }
.text-reflow .opening-visual { transform: none; }
.text-reflow .globe-wrap { opacity: .35; }
.text-reflow .journey-footer { flex-wrap: wrap; }
@media (max-width: 900px) and (orientation: portrait) {
  .text-reflow .opening { width: 86%; margin-left: 7%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .geo-story { height: auto; min-height: 100svh; }
  .geo-sticky { position: relative; }
  .discover, .earth-fallback { transition: none; }
}

/* Google Maps provider layer. The page choreography above is intentionally unchanged. */
.map-surface { opacity: 0; transition: none; }
.google-map-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.italy-map-overlay { position: absolute; z-index: 2; pointer-events: none; opacity: 0; overflow: visible; width: 1000px; height: 1300.895px; transform-origin: 0 0; will-change: transform, opacity; contain: layout paint style; backface-visibility: hidden; }
.italy-map-overlay img { width: 1000px; height: 1300.895px; display: block; }
.map-surface, .google-map-3d { will-change: opacity, transform; backface-visibility: hidden; }
/* Keep Google legal attribution in its native map UI; this legacy credit slot stays empty. */
.google-map-active .source-credit { min-width: 1px; }
.map-input-shield { position: absolute; z-index: 1; inset: 0 0 38px; background: transparent; touch-action: pan-y; }
