/* Brand: black / white marble. Logotype face is Century Gothic; Questrial + Urbanist stand in where it isn't installed. */
:root {
  --ink: #000; --paper: #fff; --mute: rgba(255,255,255,.66); --line: rgba(255,255,255,.18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(20px, 3.4vw, 52px);
  --text: "Century Gothic", CenturyGothic, "Questrial", "URW Gothic", sans-serif;
  --bold: "Century Gothic", CenturyGothic, "Urbanist", "URW Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #000; color: #fff; }
body { font-family: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
b { font-family: var(--bold); font-weight: 700; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.stage { position: fixed; inset: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #2a2d32; isolation: isolate; }

/* ---- layers ---- */
#map    { position: absolute; inset: 0; z-index: 0; background: #2a2d32; }
#fx     { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.sky    { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.jet    { position: absolute; left: 0; top: 0; z-index: 4; width: 80px; height: 100px; margin: -50px 0 0 -40px; pointer-events: none; opacity: 0; will-change: transform; }
.jet--shadow { z-index: 3; }
.pin    { position: absolute; left: 0; top: 0; z-index: 5; width: 0; height: 0; pointer-events: none; will-change: transform; }
.marble { z-index: 6; }
.bar, .copy, .replay, .dock { z-index: 8; }

/* ---- loader ---- */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #000; animation: gone .8s var(--ease) 1.15s forwards; pointer-events: none; }
.loader svg { width: 132px; height: 96px; fill: #fff; animation: wipe 1s var(--ease) .1s both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }
@keyframes gone { to { opacity: 0; visibility: hidden; } }

/* ---- clouds ---- */
.cloud { position: absolute; left: 0; will-change: transform; animation: drift linear infinite; }
.cloud img { display: block; width: 100%; height: auto; user-select: none; }
.cloud img + img { position: absolute; left: 0; top: 0; }
.cloud .sh { filter: brightness(0) blur(10px); opacity: .5; transform: translate(26px, 46px) scale(.94); }
@keyframes drift { from { transform: translate3d(-620px, 0, 0); } to { transform: translate3d(calc(100vw + 120px), 0, 0); } }

/* ---- jet ---- */
.jet svg { display: block; width: 100%; height: 100%; overflow: visible; }
.jet--shadow svg { filter: blur(3px); }
.jet__beam { opacity: 0; }
.nav { opacity: .25; }
.nav--l, .nav--r { animation: nav 1.4s steps(1) infinite; }
.nav--s { animation: nav 1.1s steps(1) .3s infinite; }
@keyframes nav { 0% { opacity: 1; } 22% { opacity: .2; } }

/* ---- pin ---- */
.pin__body { position: absolute; left: -32px; top: -79px; width: 64px; height: 80px; transform-origin: 50% 100%; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)) drop-shadow(0 0 26px rgba(255,255,255,.35)); animation: hover 3.4s ease-in-out infinite; }
.pin__drop { position: absolute; inset: 0; width: 64px; height: 80px; }
.pin__logo { position: absolute; left: 14.5px; top: 20px; width: 35px; height: 25.5px; fill: #000; }
@keyframes hover { 50% { transform: translateY(-5px); } }
.pin.is-hit .pin__body { animation: hit 1s var(--ease), hover 3.4s ease-in-out 1s infinite; }
@keyframes hit { 0% { transform: none; } 22% { transform: scale(1.14, .82); } 52% { transform: translateY(-22px) scale(.95, 1.06); } 100% { transform: none; } }
.pin__ring { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #fff; opacity: 0; animation: ring 3.3s cubic-bezier(.2,.6,.3,1) infinite; }
.pin__ring:nth-child(2) { animation-delay: 1.1s; } .pin__ring:nth-child(3) { animation-delay: 2.2s; }
@keyframes ring { 0% { transform: scale(.3); opacity: .95; } 100% { transform: scale(6.5); opacity: 0; } }
.pin__label { position: absolute; right: 42px; top: -70px; padding: 9px 15px; border-radius: 16px; background: #fff; color: #000; font-size: 13px; line-height: 1.25; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.pin__label b { display: block; }

/* ---- marble panel ---- */
.marble { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(4,4,4,.42), rgba(4,4,4,.42)), #060606 url(assets/marble.webp) left center / cover;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 27%, rgba(0,0,0,.86) 36%, rgba(0,0,0,.38) 47%, transparent 57%); mask-image: linear-gradient(90deg, #000 0, #000 27%, rgba(0,0,0,.86) 36%, rgba(0,0,0,.38) 47%, transparent 57%); }

/* ---- header ---- */
.bar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: calc(clamp(18px, 3.6vh, 40px) + env(safe-area-inset-top)) var(--gut) 0; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 22px; }
.brand__mp { width: clamp(64px, 6vw, 92px); aspect-ratio: 285.5 / 208; fill: #fff; flex: none; }
.brand__txt { display: grid; gap: 3px; text-transform: uppercase; line-height: 1.25; }
.brand__txt b { font-size: 13px; letter-spacing: .13em; }
.brand__txt span { font-size: 12px; letter-spacing: .13em; color: rgba(255,255,255,.85); }
.status { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 99px; background: rgba(0,0,0,.55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: nav 2s steps(1) infinite; }

/* ---- copy ---- */
.copy { position: absolute; left: var(--gut); top: 50%; width: 46vw; transform: translateY(-46%); pointer-events: none; }
.copy a { pointer-events: auto; }
h1 { margin: 0; font-family: var(--text); font-weight: 400; text-transform: uppercase; font-size: min(5.9vw, 13vh, 108px); line-height: 1.06; letter-spacing: -.005em; }
.ln { display: block; width: max-content; clip-path: inset(0 -1em); padding-top: .06em; white-space: nowrap; }
.ln > span { display: block; transform: translateY(112%); animation: up 1.2s var(--ease) 1.25s forwards; }
.ln + .ln > span { animation-delay: 1.36s; }
.lead { max-width: 31em; margin: clamp(14px, 3vh, 30px) 0 0; font-size: clamp(15px, 1.25vw, 18px); color: var(--mute); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 3.6vh, 38px); }
.copy address { margin-top: clamp(12px, 2.6vh, 26px); font-size: 15px; color: var(--mute); }
.lead, .cta, .copy address { opacity: 0; animation: in 1s var(--ease) 1.6s forwards; }
.cta { animation-delay: 1.7s; } .copy address { animation-delay: 1.8s; }
@keyframes up { to { transform: none; } }
@keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 26px; border-radius: 99px; border: 1px solid rgba(255,255,255,.32); font-size: 16px; white-space: nowrap; transition: background .35s, color .35s, transform .5s var(--ease); }
.btn svg { width: 20px; height: 20px; }
.btn:hover { background: rgba(255,255,255,.12); }
.btn:active { transform: scale(.97); }
.btn--solid { background: #fff; color: #000; border-color: #fff; font-family: var(--bold); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.btn--solid:hover { background: #dcdcdc; }

.replay { position: absolute; right: var(--gut); bottom: clamp(34px, 5vh, 48px); display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 99px; background: rgba(0,0,0,.6); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; transition: background .3s; }
.replay svg { width: 17px; height: 17px; }
.replay:hover { background: rgba(0,0,0,.9); }

.dock { display: none; }

/* attribution */
.maplibregl-ctrl-attrib.maplibregl-ctrl-attrib { background: rgba(0,0,0,.45); color: rgba(255,255,255,.7); font: 11px/1.6 var(--text); margin: 0; }
.maplibregl-ctrl-attrib.maplibregl-ctrl-attrib a { color: inherit; }
#map .maplibregl-ctrl-attrib-button { display: none; }

/* ---- phones / narrow ---- */
@media (max-width: 820px) and (orientation: portrait), (max-width: 600px) {
  .marble { background-size: auto, auto 100%;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 25%, rgba(0,0,0,.8) 33%, rgba(0,0,0,.3) 41%, transparent 47%); mask-image: linear-gradient(180deg, #000 0, #000 25%, rgba(0,0,0,.8) 33%, rgba(0,0,0,.3) 41%, transparent 47%); }
  .bar { align-items: center; padding-top: calc(16px + env(safe-area-inset-top)); }
  .brand { gap: 13px; } .brand__mp { width: 58px; }
  .brand__txt b { font-size: 11px; letter-spacing: .07em; } .brand__txt span { font-size: 11px; letter-spacing: .07em; }
  .status { padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; } .status span { display: none; }
  .copy { left: var(--gut); right: var(--gut); width: auto; transform: none; top: calc(84px + env(safe-area-inset-top) + 1.4vh); }
  h1 { font-size: min(11.6vw, 7.2vh, 72px); }
  .lead { font-size: 15px; line-height: 1.42; margin-top: 10px; }
  .copy address, .cta, .replay { display: none; }

  .dock { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(430px, calc(100% - 24px)); display: grid; grid-template-columns: 68px 1fr 68px; align-items: center; padding: 7px; border-radius: 99px; background: rgba(14,14,15,.72); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: 0 18px 50px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.12); animation: dock 1s var(--ease) 1.3s both; }
  @keyframes dock { from { transform: translate(-50%, 140%); } to { transform: translate(-50%, 0); } }
  .dock__i { display: grid; justify-items: center; gap: 2px; padding: 7px 0; font-size: 11px; line-height: 1.2; border-radius: 99px; }
  .dock__i svg { width: 23px; height: 23px; }
  .dock__i:active { background: rgba(255,255,255,.12); }
  .dock__call { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; border-radius: 99px; background: #fff; color: #000; font-family: var(--bold); font-weight: 700; font-size: 19px; line-height: 1.12; white-space: nowrap; position: relative; }
  .dock__call:active { background: #d8d8d8; }
  .dock__call svg { width: 24px; height: 24px; }
  .dock__call small { display: block; font-family: var(--text); font-weight: 400; font-size: 12px; }
  .dock__call::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: halo 2.8s ease-out infinite; pointer-events: none; }
  @keyframes halo { from { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } to { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
  #map .maplibregl-ctrl-bottom-right { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 820px) and (max-height: 640px) and (orientation: portrait) { .lead { display: none; } }
/* short landscape (phones rotated) */
@media (orientation: landscape) and (max-height: 520px) {
  .lead { display: none; } .brand__mp { width: 52px; } .copy { transform: translateY(-38%); }
  .btn { min-height: 46px; padding: 0 18px; } .btn--solid { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .cloud { animation: none !important; transform: translate3d(var(--rest), 0, 0); }
  .pin__ring { opacity: .4; transform: scale(2.5); animation: none !important; }
}
