/* Structural base shared by every lounge site. Look and feel lives in each site's style.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: thin; }
html.is-loading { overflow: hidden; }
body { margin: 0; min-height: 100vh; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: #fff; color: #000; }
.skip:focus { top: 12px; }

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* stage */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
main, .nav, footer { position: relative; z-index: 2; }
.no-webgl #gl { display: none; }

/* extra slide anchors for tall pinned sections */
.anchor { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; visibility: hidden; }

/* loader */
#loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }

/* split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0.04em 0.16em; margin: -0.12em -0.04em -0.16em; }
.split .c { display: inline-block; will-change: transform; }
[data-split="chars"] .w { white-space: nowrap; }

/* marquee */
.marquee { overflow: hidden; }
[data-marquee] { display: flex; width: max-content; will-change: transform; }
[data-marquee] > * { flex: none; }

/* horizontal scroll */
.hscroll-track { display: flex; width: max-content; will-change: transform; }
@media (max-width: 899px) {
  [data-hscroll] { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; }
  [data-hscroll]::-webkit-scrollbar { display: none; }
  .hscroll-track > * { scroll-snap-align: center; }
}

/* cursor */
#cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; opacity: 0; transition: opacity .3s; }
#cursor.on { opacity: 1; }
@media (hover: none) { #cursor { display: none; } }

/* media frames */
.frame { overflow: hidden; position: relative; }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }

/* one-shot hero film */
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1; }

/* the nav may have slid away on scroll: bring it back while its menu overlay is open */
.menu-open .nav { transform: none; }

/* phone menu: links slide in one after another */
@media (max-width: 899px) {
  .nav-links > * { transform: translateY(26px); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .45s; }
  .menu-open .nav-links > * { transform: none; opacity: 1; }
  .menu-open .nav-links > :nth-child(1) { transition-delay: .08s; } .menu-open .nav-links > :nth-child(2) { transition-delay: .14s; }
  .menu-open .nav-links > :nth-child(3) { transition-delay: .2s; } .menu-open .nav-links > :nth-child(4) { transition-delay: .26s; }
  .menu-open .nav-links > :nth-child(5) { transition-delay: .32s; } .menu-open .nav-links > :nth-child(6) { transition-delay: .38s; }
  .menu-open .nav-links > :nth-child(n+7) { transition-delay: .44s; }
}

/* reduced motion: everything visible, nothing moving */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
