/* Boulevard Hotels & Resorts — foundations and the site frame.
   Load order: style.css (this) → menu.css → project.css → views.css. */

:root {
  --bg: #00112a;
  --fg: #f4f1ec;
  --ink: #041a36;
  --paper: #f4f1ec;
  --red: #b8935a;
  --muted: rgba(244, 241, 236, 0.52);
  --faint: rgba(244, 241, 236, 0.14);
  --panel: #03203f;
  --sans: 'Newsreader', Georgia, 'Times New Roman', serif;
  --caps: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
  --display: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
  --script: 'Noto Serif Display', Georgia, 'Times New Roman', serif;
  --gx: clamp(16px, 5.3vw, 80px);
  --gy: clamp(16px, 3vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 5px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (min-width: 1600px) { .label { font-size: 13.5px; } }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }

/* ---- Stage: the WebGL carousel ------------------------------------------------ */
.stage {
  position: fixed;
  inset: 0;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.stage canvas { display: block; width: 100%; height: 100%; }
html.is-grabbing, html.is-grabbing .stage { cursor: grabbing !important; }

/* ---- Chrome: logo, booking call, hint and footer line ------------------------ */
.chrome {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(var(--gy), env(safe-area-inset-top)) max(var(--gx), env(safe-area-inset-right))
           max(var(--gy), env(safe-area-inset-bottom)) max(var(--gx), env(safe-area-inset-left));
  transition: opacity 1s var(--ease);
}
.is-loading .chrome { opacity: 0; }
.chrome-row { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 12px; }
/* Logo, menu island and corner pill share one centre line: the island's. */
.chrome-top { align-items: center; height: 50px; margin-top: calc(max(calc(var(--gy) - 17px), 10px) - var(--gy)); }
@media (max-width: 899px) { .chrome-top { height: 44px; } }
.chrome-link { pointer-events: auto; position: relative; transition: opacity 0.3s; }
.chrome-link::before { content: ''; position: absolute; inset: -14px -10px; }
.chrome-link:hover { opacity: 0.6; }
.chrome-logo img { height: 36px; width: auto; }

/* The top-right slot */
.chrome-scav { position: relative; display: flex; align-items: center; }

.chrome-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0.88;
  transition: opacity 0.5s var(--ease);
}
.chrome-hint.is-hidden { opacity: 0; }
.chrome-hint .num { font-variant-numeric: tabular-nums; }

.chrome-foot { display: flex; align-items: center; gap: 10px; opacity: 0.72; white-space: nowrap; pointer-events: auto; transition: opacity 0.5s var(--ease); }
.chrome-foot a:hover { opacity: 0.7; }
.chrome-foot .sep { opacity: 0.5; }
.chrome-foot .credit { color: inherit; }
.credit { letter-spacing: 0.08em; color: var(--muted); }
/* The footer's left column: the line, and the social marks beneath it. */
.chrome-bottom { align-items: flex-end; }
.chrome-foot-l { display: grid; gap: 12px; justify-items: start; }
.social { display: flex; align-items: center; gap: 6px; pointer-events: auto; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -6px; border-radius: 50%; opacity: 0.72; transition: opacity 0.3s, color 0.3s, background-color 0.3s; }
.social a + a { margin-left: 0; }
.social a:hover { opacity: 1; color: #fff; background: rgba(255, 255, 255, 0.1); }
.social svg { width: 17px; height: 17px; }
.credit b { font-weight: 600; color: var(--fg); letter-spacing: 0.04em; }

/* What the chrome shows in each state: pages carry their own badge and close,
   overlays and the phone menu keep only what they need. */
body.is-project .chrome-logo, body.is-project .chrome-scav, body.is-project .chrome-bottom { opacity: 0; pointer-events: none; }
body.is-project .chrome-logo *, body.is-project .chrome-scav *, body.is-project .chrome-bottom * { pointer-events: none; }
body.is-project.has-overlay .chrome-bottom { opacity: 1; pointer-events: auto; }
body.is-project.has-overlay .chrome-bottom * { pointer-events: auto; }
body.has-drawer .chrome-bottom, body.has-drawer .chrome-scav { opacity: 0; pointer-events: none; }
body.is-collection .chrome-scav, body.has-overlay .chrome-scav { opacity: 0; pointer-events: none; }
body.has-overlay .chrome-foot, body.has-drawer .chrome-foot, body.has-drawer .chrome-hint { opacity: 0; pointer-events: none; }
body.has-overlay .chrome-hint { opacity: 0; pointer-events: none; }
body.has-overlay .chrome-social, body.has-drawer .chrome-social { opacity: 0; pointer-events: none; }

/* ---- Views --------------------------------------------------------------------- */
.view {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.view.is-active { opacity: 1; visibility: visible; }
.view-project { z-index: 20; background: var(--bg); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.view-project::-webkit-scrollbar { width: 0; height: 0; }

/* ---- Overlays ------------------------------------------------------------------ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 17, 42, 0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.overlay.is-active { opacity: 1; visibility: visible; }
.overlay-scroll {
  height: 100%;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: calc(var(--gy) * 2.6) var(--gx);
  overscroll-behavior: contain;
}
.overlay-inner {
  width: min(600px, 100%);
  text-align: center;
  outline: none;
}
.overlay-inner > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.overlay.is-active .overlay-inner > * { opacity: 1; transform: none; }
.overlay.is-active .overlay-inner > *:nth-child(2) { transition-delay: 60ms; }
.overlay.is-active .overlay-inner > *:nth-child(3) { transition-delay: 120ms; }
.overlay.is-active .overlay-inner > *:nth-child(4) { transition-delay: 180ms; }
.overlay.is-active .overlay-inner > *:nth-child(5) { transition-delay: 240ms; }
.overlay.is-active .overlay-inner > *:nth-child(6) { transition-delay: 300ms; }
.overlay.is-active .overlay-inner > *:nth-child(7) { transition-delay: 360ms; }

/* ---- Smaller screens ------------------------------------------------------------ */
@media (max-width: 1360px) {
  .chrome-foot .hide-s { display: none; }
}
@media (max-width: 899px) {
  .chrome-scav { display: none; }
}
@media (max-width: 760px) {
  .chrome-logo img { height: 28px; }
  .chrome-hint { display: none; }
  .chrome-bottom { justify-content: center; }
  .chrome-foot-l { display: none; }
  .chrome-foot-r { position: static; }
  .view-project { -webkit-overflow-scrolling: touch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ---- Protection: browsing and clicking only (see js/guard.js) --------------------- */
.is-guarded body, .is-guarded body *:not(input):not(textarea):not(select) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.is-guarded input, .is-guarded textarea, .is-guarded select { -webkit-user-select: text; user-select: text; }
.is-guarded img { -webkit-user-drag: none; }
.guard-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), visibility 0s 0.25s;
}
.guard-veil.is-on { opacity: 1; visibility: visible; transition: none; }
.guard-veil img { width: min(180px, 40vw); height: auto; opacity: 0.9; }
@media print {
  body > * { display: none !important; }
  body::after { content: 'Boulevard Hotels and Resorts'; display: block; padding: 40px; color: #000; font: 16px sans-serif; }
}
