:root {
  --ink: #3d313d;
  --lavender: #625862;
  --sky: #9caaca;
  --serif: "Silk Serif", "Playfair Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }
body { font-family: var(--sans); color: #fff; background: #040404; -webkit-font-smoothing: antialiased; }
.serif { font-family: var(--serif); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-logo { position: fixed; top: 0; left: 0; right: 0; height: 90px; z-index: 20; display: flex; justify-content: center; padding-top: 20px; /* 20 + 50 (logo) + 20 */ pointer-events: none; }
/* glass strip behind the logo so scrolling text never collides with it */
.site-logo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(24,30,52,.34), rgba(24,30,52,.16));
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; transition: opacity .35s ease; }
/* thin line under the glass strip */
.site-logo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: -1;
  background: rgba(255,255,255,.38); opacity: 0; transition: opacity .35s ease; }
.site-logo.is-scrolled::before, .site-logo.is-scrolled::after { opacity: 1; }
.site-logo img { display: block; width: 99px; height: 50px; filter: drop-shadow(0 1px 8px rgba(0,0,0,.28)); }

.screen { min-height: 100vh; min-height: 100svh; position: relative; overflow: hidden;
  background: var(--bg) center / cover no-repeat; display: flex; }

/* 1. cover: stays pinned while the next section slides over it */
.screen.cover { position: sticky; top: 0; }
.cover { background-size: cover; background-position: 50% 50%; background-color: #040404; }
/* never show the browser's own play button / controls on the background video (iOS Safari draws a big play icon when autoplay is blocked) */
.cover__video { pointer-events: none; }
/* The poster sits ABOVE the video and fades away once the video is really playing. The video itself is never hidden
   (opacity/visibility/display tricks make iOS Safari and Chrome refuse to autoplay it), and if autoplay is blocked the
   native play button stays hidden underneath the poster. */
.cover__poster { position: absolute; inset: 0; background: inherit; pointer-events: none; transition: opacity .6s ease; }
.cover.is-video-playing .cover__poster { opacity: 0; }
/* Play button: only shown when the browser refuses to autoplay the video (iOS Low Power / Low Data mode...). A tap on it is a real
   user gesture, so the video can start. Until then the poster stays visible. */
.cover__play { position: absolute; right: 20px; bottom: 24px; z-index: 3; width: 52px; height: 52px; padding: 0 0 0 3px; display: grid; place-items: center;
  color: #fff; background: rgba(24, 30, 52, .38); border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-tap-highlight-color: transparent; transition: background .2s, opacity .3s; }
.cover__play[hidden] { display: none; }
.cover__play:hover, .cover__play:focus-visible { background: rgba(24, 30, 52, .6); }
.cover__play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cover__video::-webkit-media-controls,
.cover__video::-webkit-media-controls-panel,
.cover__video::-webkit-media-controls-overlay-play-button,
.cover__video::-webkit-media-controls-start-playback-button,
.cover__video::-webkit-media-controls-play-button,
.cover__video::-webkit-media-controls-enclosure { display: none !important; -webkit-appearance: none; opacity: 0 !important; pointer-events: none; }
.cover__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,.55) 100%); }
.cover__body { z-index: 2; }
.cover__body { position: relative; margin: auto auto 0; padding: 0 24px 42px; width: 100%; max-width: 402px; text-align: center;
  display: flex; flex-direction: column; align-items: center; }
.cover h1 { font-size: clamp(48px, 16.4vw, 66px); line-height: .94; letter-spacing: .03em; font-weight: 500; margin-bottom: 38px; }
.chevron { color: #fff; margin-top: 30px; display: block; line-height: 0; animation: bounce 1.6s ease-in-out infinite; }
.chevron svg { width: 36px; height: 36px; }
@keyframes bounce { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .chevron { animation: none; } }

.btn { display: inline-block; font: 400 14px/1 var(--sans); letter-spacing: .06em; text-decoration: none;
  padding: 17px 24px; border-radius: 10px; cursor: pointer; transition: opacity .2s, background .2s; }
.btn--ghost { color: #fff; border: 1px solid rgba(255,255,255,.8); width: 72%; text-align: center; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--solid { background: var(--ink); color: #fff; border: 0; width: 100%; border-radius: 6px; }
.btn--solid:hover { opacity: .88; }
.btn--solid:disabled { opacity: .5; cursor: wait; }

/* 2. about */
.about { background-color: #97a6c8; background-size: auto 106svh; background-position: 34% calc(410px - 50.35svh); align-items: flex-start; }
.about__body { padding: 124px 22px 0; max-width: 402px; }
.about h2 { font-size: 32px; line-height: 1.1; letter-spacing: .03em; font-weight: 400; margin-bottom: 26px; }
.about p { font-size: 12px; line-height: 1.45; letter-spacing: .03em; max-width: 314px; text-shadow: 0 1px 14px rgba(45,60,110,.5); }

/* 3. location */
/* the Location layer is frosted glass over the Google map (the map is visible through it) */
.location { background: none; align-items: center; justify-content: center; }
/* #3D313D layer (70% opaque) with a frosted blur: the blur clears after a short scroll (--blur), the dark tint
   dissolves gradually (--glass) and the real Google map underneath is revealed. */
.location::before { content: ""; position: absolute; inset: 0;
  background: rgba(61, 49, 61, calc(.7 * var(--glass, 1)));
  -webkit-backdrop-filter: blur(calc(5px * var(--blur, 1))); backdrop-filter: blur(calc(8px * var(--blur, 1))); }
.location h2 { position: relative; opacity: var(--title-o, 1); font-size: clamp(34px, 11vw, 48px); letter-spacing: .03em; font-weight: 400; }

.loc-stage { height: 270vh; height: 270svh; position: relative; }
.loc-stage__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* no will-change/opacity/filter here: those make this element a "backdrop root" and the glass blur below would stop seeing the map */
.screen.location { position: absolute; inset: 0; z-index: 2; }
.map { position: absolute; inset: 0; z-index: 1; background: #e8e8e8; transform-origin: 50% 50%; will-change: transform; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.map.is-active iframe { pointer-events: auto; }
/* Baku Bay icon next to the pin. The Google pin sits at the centre of the embed (tip at the centre, body ~30px above it),
   so the icon is placed just to the right of the pin body. Hidden once the map is being panned/zoomed. */
.map__pin-icon { position: absolute; left: calc(50% + 24px); top: calc(50% - 58px); width: 88px; height: 88px; pointer-events: none; z-index: 2;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.35)); opacity: var(--pin-o, 1); transition: opacity .2s; }
.map__pin-icon { border-radius: 50%; animation: pin-pulse 2s ease-out infinite; }
/* pulse: the icon swells slightly while a soft ring expands from it and fades out */
@keyframes pin-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(61,48,60,.55); }
  55%  { transform: scale(1.07); box-shadow: 0 0 0 24px rgba(61,48,60,0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(61,48,60,0); }
}
@media (prefers-reduced-motion: reduce) { .map__pin-icon { animation: none; } }
.map.is-active .map__pin-icon { opacity: 0; }

/* 4. contact */
.screen.contact { overflow: visible; }
/* "Book a tour": the contact section slides up over the cover like the second section does (animated from js/site.js
   with the Web Animations API), then the page jumps to its real position */
.screen.contact.contact--overlay { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; z-index: 15; overflow-y: auto; will-change: transform; }
.contact { flex-direction: column; background: #fff; color: var(--ink); }
.contact__photo { position: relative; height: 32.6svh; min-height: 220px; overflow: hidden; background: #111; }
.contact__photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.6) 0, rgba(0,0,0,.3) 38%, rgba(0,0,0,0) 62%); }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.contact__progress { position: absolute; z-index: 2; left: 19px; right: 20px; bottom: 22px; display: flex; gap: 6px; }
.contact__progress span { position: relative; flex: 1; height: 2px; background: rgba(255,255,255,.45); }
.contact__progress i { position: absolute; left: 0; top: 50%; width: 0; height: 3px; margin-top: -1.5px; background: #fff; }
.contact__progress i.is-done { width: 100%; }
@keyframes slide-progress { from { width: 0; } to { width: 100%; } }
.contact__form { flex: 1; padding: 47px 20px 33px; max-width: 520px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.contact h2 { font-size: clamp(34px, 10.4vw, 42px); line-height: 1; letter-spacing: .03em; font-weight: 400; margin-bottom: -6px; }
.contact label { display: block; position: relative; }
.field-error { position: absolute; left: 11px; bottom: -19px; font: 400 12px/1 var(--sans); color: #b3261e; }
.field-error:empty { display: none; }
.contact input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  padding: 37px 11px 16px; font: 400 18px/22px var(--sans); color: var(--ink); outline: none; }
.contact input::placeholder { color: var(--ink); opacity: 1; }
.contact input:focus { border-bottom-width: 2px; }
.contact input.invalid { border-color: #b3261e; }
.contact .btn--solid { margin-top: 37px; padding: 15px 24px; font-size: 14px; letter-spacing: .1em; }
.recaptcha { margin-top: 28px; min-height: 78px; transform-origin: 0 0; }
.contact__fields[hidden], .contact__success[hidden] { display: none; }
.contact__success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 0 12px; }
.contact__success-icon { color: #1f6b3a; }
.contact__success-title { font-size: 30px; line-height: 1.1; font-weight: 400; }
.contact__success-text { font-size: 15px; line-height: 1.5; max-width: 280px; }
.contact__again { margin-top: 10px; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 2px; font: 400 13px var(--sans); color: var(--ink); cursor: pointer; letter-spacing: .04em; }
.form-status { font-size: 13px; min-height: 0; margin-top: 8px; }
.form-status:empty { display: none; }
.form-status.error { color: #b3261e; }
.form-status.success { color: #1f6b3a; font-size: 14px; font-weight: 500; }
.contact__rule { border: 0; border-top: 1px solid var(--ink); margin: 50px 0 43px; }
.contact__logos { display: flex; align-items: center; justify-content: center; gap: 22px; }
.contact__divider { width: 1px; height: 44px; background: var(--ink); opacity: .5; }
.contact__bcr { display: block; width: 99px; height: 50px; object-fit: contain; }
.logo-dark { display: block; width: 99px; height: 50px; margin: 0; background: var(--ink);
  -webkit-mask: url('../img/logo.svg') center / contain no-repeat; mask: url('../img/logo.svg') center / contain no-repeat; }

@media (min-width: 900px) {
  .contact { flex-direction: row; }
  .contact__photo { height: auto; min-height: 100svh; flex: 1; }
  .contact__form { justify-content: center; padding: 0 64px; }
  /* desktop cover: one-line title, wide button below, arrow at the bottom */
  .cover__body { max-width: none; padding: 0 48px 26px; }
  .cover h1 br { display: none; }
  .cover h1 { white-space: nowrap; font-size: clamp(48px, 7.05vw, 120px); line-height: 1; letter-spacing: .03em; font-weight: 600; margin-bottom: clamp(30px, 4.4vw, 56px); }
  .cover .btn--ghost { width: clamp(300px, 37vw, 560px); padding: clamp(14px, 1.45vw, 20px) 24px; font-size: clamp(15px, 1.6vw, 22px); font-weight: 300; letter-spacing: .1em; border-radius: 8px; }
  .cover .chevron { margin-top: clamp(26px, 3.2vw, 44px); }
  .cover { background-image: var(--bg-desktop, var(--bg)); }

  /* portrait video on a wide screen (only until a landscape desktop video exists): keep it uncropped in the centre, fill the sides with a blurred copy */
  .cover__video--bg { filter: blur(36px) brightness(.5) saturate(1.1); transform: scale(1.25); }
  .cover__video--main.is-portrait { left: 50%; right: auto; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); object-fit: contain;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%); }

  /* the artwork is portrait: fill the wide screen instead of using the phone framing */
  .about { background-size: 100% 100%; background-position: 0 0; background-image: linear-gradient(to bottom, #96a6c8 0, #9fafd0 40%, #c3cce2 75%, #cdd0e3 100%); }
  .about::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 64%;
    background: var(--bg) 50% 100% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
  .about__body { position: relative; z-index: 1; }
  .about__body { padding: 150px 0 0 8vw; max-width: none; width: 56vw; }
  .about h2 { font-size: 48px; }
  .about p { font-size: 16px; line-height: 1.55; max-width: 520px; }
}
