/* The Sugar Room. Dark speakeasy palette, pink neon accent, Gatsby-era serif over a clean sans. */

:root {
  color-scheme: dark;
  --ink: #0b0808;
  --ink-2: #140f0f;
  --ink-3: #201819;
  --line: rgba(243, 233, 218, 0.12);
  --cream: #f3e9da;
  --muted: #b8aa98;
  --pink: #ff4fa0;
  --pink-soft: #ff7fb8;
  --gold: #d9b87a;
  --radius: 14px;
  /* Type matches the logo: a geometric sans (like "ON WASHINGTON AVE.") plus a monoline script (like "Sugar Room").
     --serif keeps its name so the page stylesheets need no changes; it is now the display sans. */
  --serif: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "Sacramento", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
address { font-style: normal; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--pink);
  color: #15060d;
  font-weight: 700;
}
.skip:focus { left: 16px; }

/* ---------- Shared ---------- */

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

section { padding-block: clamp(72px, 10vw, 128px); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.01em; }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 58ch; }

.body-copy { color: var(--muted); font-size: 17px; max-width: 58ch; margin-top: 18px; }

.todo {
  display: inline-block;
  padding: 6px 10px;
  border: 1px dashed var(--gold);
  border-radius: 8px;
  background: rgba(217, 184, 122, 0.1);
  color: var(--gold);
  font-size: 13px;
  line-height: 1.4;
}

.fineprint { margin-top: 20px; color: var(--muted); font-size: 14px; }
.fineprint a { color: var(--cream); text-underline-offset: 3px; }

/* Photo frame. The gradient shows while the image loads. */
.slot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #2c1d22 0%, #120c0d 100%);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--pink);
  color: #15060d;
  box-shadow: 0 12px 30px -10px rgba(255, 79, 160, 0.7);
}
.btn-primary:hover { background: var(--pink-soft); }

.btn-ghost {
  border-color: var(--line);
  background: rgba(243, 233, 218, 0.04);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--cream); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: 16px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand-logo { display: block; height: 52px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .brand-logo { height: 42px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
}
.nav a:hover { opacity: 1; color: var(--pink-soft); }
.nav a[aria-current="page"] {
  opacity: 1;
  color: var(--pink);
  box-shadow: 0 2px 0 var(--pink);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--cream);
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle .bars { top: 50%; margin-top: -1px; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; left: 0; transform: none; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.site-header.open .menu-toggle .bars { background: transparent; }
.site-header.open .menu-toggle .bars::before { top: 0; transform: rotate(45deg); }
.site-header.open .menu-toggle .bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero copy shared by the inner pages (the home hero lives in css/home.css) ---------- */

.lede {
  margin-top: 24px;
  max-width: 50ch;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--cream);
  opacity: 0.9;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hours-line {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-group { display: flex; flex: none; }
.marquee-group span {
  flex: none;
  padding-block: 18px;
  padding-right: 44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  white-space: nowrap;
}
.marquee-group span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 44px;
  border-radius: 50%;
  background: var(--pink);
  vertical-align: middle;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Experience ---------- */

.beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.beat { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.beat h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; }
.beat p { color: var(--muted); font-size: 15.5px; }

/* ---------- Nights ---------- */

.nights { background: var(--ink); }
.nights-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.night {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.night-art {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ink-3);
}
.night-art-text {
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255, 79, 160, 0.22), transparent 70%),
    var(--ink-3);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  text-align: center;
  color: var(--pink-soft);
}
.night-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 18px 20px; min-width: 0; }
.night h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.night p { color: var(--muted); font-size: 15px; }
.day {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Drinks ---------- */

.drinks { background: var(--ink-2); }
.drinks-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.drinks-wrap .eyebrow { margin-bottom: 14px; }
.drinks h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5.5vw, 62px); line-height: 1.02; }
.drinks-wrap > div:last-child .eyebrow { margin-bottom: 8px; }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 24px;
}
.dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 1px dotted rgba(243, 233, 218, 0.25);
  transform: translateY(-6px);
}

/* ---------- Gallery ---------- */

/* Photos set the row height (4:5); the vertical reel spans two rows. */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tile { position: relative; margin: 0; min-width: 0; }
.tile-reel { grid-row: span 2; }
.tile .reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-3);
}
.tile figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 8, 8, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Private ---------- */

.private { background: var(--ink); }
.private-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.private h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 68px); line-height: 1.02; margin-top: 14px; }

.private-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 79, 160, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 79, 160, 0.1), var(--ink-2) 75%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.facts { list-style: none; margin: 4px 0 8px; padding: 0; }
.facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.facts b { font-family: var(--serif); font-weight: 500; font-size: 26px; color: var(--cream); text-align: right; }

/* ---------- Book ---------- */

.book { background: var(--ink-2); }
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.book-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
}
.book-card h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; }
.book-card > p:not(.eyebrow) { color: var(--muted); flex: 1; }
.book-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- FAQ ---------- */

.faq { background: var(--ink); }
.faq-wrap { max-width: 860px; }
.faq details { padding-block: 22px; border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 26px;
  color: var(--pink);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 14px; max-width: 60ch; color: var(--muted); }
.faq details p a { color: var(--cream); }

/* ---------- Visit ---------- */

.visit { background: var(--ink-2); }
.visit-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.visit h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 68px); line-height: 1.02; margin-top: 14px; }
.visit address { margin-top: 22px; font-family: var(--serif); font-size: 26px; line-height: 1.35; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hours { margin: 0; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.hours div:last-child { border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(56px, 8vw, 88px) 32px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--muted);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand img { display: block; width: 180px; height: auto; }
.footer-brand p { margin-top: 18px; max-width: 32ch; }
.site-footer .eyebrow { margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--pink-soft); }
.site-footer address { line-height: 1.6; }
.site-footer address + p { margin-top: 10px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer-base img { display: block; width: 44px; height: auto; opacity: 0.8; }
.footer-base .sr-motion { margin-left: auto; }

/* ---------- Inner page hero (shared base; each page styles its own media) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(140px, 18vh, 190px);
  padding-bottom: clamp(56px, 8vw, 96px);
  background: var(--ink-2);
}
.page-hero h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--pink);
  text-shadow: 0 0 22px rgba(255, 79, 160, 0.45);
}

/* ---------- Closing call to action (every page) ---------- */

.cta-band {
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 79, 160, 0.18), transparent 70%),
    var(--ink-2);
}
.cta-band .monogram { display: block; width: 96px; height: auto; margin: 0 auto 24px; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; }
.cta-band p { max-width: 52ch; margin: 14px auto 0; color: var(--muted); font-size: 17px; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .nights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; margin-left: 0; }
  .site-header .btn-sm { margin-left: auto; }
  .site-header.open .nav {
    display: flex;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 4px max(20px, env(safe-area-inset-left, 0px)) 18px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
  }
  .site-header.open .nav a {
    padding-block: 15px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    opacity: 1;
  }
  .site-header.open .nav a[aria-current="page"] { box-shadow: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  .drinks-wrap,
  .private-wrap,
  .visit-wrap,
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .beats { grid-template-columns: minmax(0, 1fr); }
  .beat .slot { aspect-ratio: 1 / 1; }
  .book-card { padding: 24px; }
  .drinks-wrap { gap: 40px; }
}

@media (max-width: 760px) {
  .nights-grid { grid-template-columns: minmax(0, 1fr); }
  .night { flex-direction: row; }
  .night-art { width: 116px; flex: none; }
  .night-art-text { font-size: 22px; }
  .night-body { justify-content: center; padding: 14px 16px; }
  .night h3 { font-size: 22px; }

  .sticky-cta {
    display: flex;
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 40;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 999px;
    background: var(--pink);
    color: #15060d;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 14px 34px -10px rgba(255, 79, 160, 0.75);
  }
  .site-footer { padding-bottom: 110px; }
}

@media (max-width: 420px) {
  .facts li { flex-direction: column; gap: 4px; }
  .facts b { text-align: left; }
  .marquee-group span { font-size: 20px; }
  .brand-logo { height: 44px; }
  .site-header.scrolled .brand-logo { height: 38px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn, .site-header, .faq summary::after { transition: none; }
}

/* ---------- Brand type (matches the logo) ----------
   Accent words in headings use the logo's monoline script; the rest of the heading stays in Montserrat.
   !important is deliberate: the page stylesheets were tuned for the old serif (italic accents, very tight
   line heights) with more specific selectors, and this block is the single place that overrides them. */

:is(h1, h2, h3, .vs-keep-word) em {
  font-family: var(--script) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  font-size: 1.32em;
  line-height: 1;                              /* tall script capitals need the extra room above */
  -webkit-text-stroke: 0.035em currentColor;  /* thickens Sacramento to the logo's stroke weight */
  padding-right: 0.06em;                       /* room for the last flourish */
}
:is(h1, h2, h3):has(em) { padding-bottom: 0.12em; }
.vs-keep-word:has(em) { padding-bottom: 0.18em; }   /* clears the dashed arrow under it */
#door-title em, #bites-title em { margin-left: 0.18em; }   /* Sacramento's lowercase lead-in swallows the word space */  /* script descenders (g, p, y) hang below the line box */
:is(h1, h2) {
  font-weight: 500;
  line-height: 1.06 !important;
  letter-spacing: -0.015em;
}
h3 { line-height: 1.12; }

/* ---------- Motion layer (main.js) ----------
   Smooth scroll, page transitions, the cursor and film grain. Each piece is added by main.js only when
   GSAP/Lenis loaded and the visitor has not asked for reduced motion, so the plain site still works. */

/* Lenis drives the scroll; native smooth scrolling would fight it. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* Arriving from another page: cover the first paint until the curtain lifts. */
.sr-entering body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 210;
  background: var(--ink);
}

/* Page transition curtain: ink with the monogram and a neon seam, wiping up between pages. */
.sr-curtain {
  position: fixed;
  inset: 0;
  z-index: 205;
  display: grid;
  place-items: center;
  background: var(--ink);
  visibility: hidden;
  pointer-events: none;
}
/* The neon seam rides the moving edge: the top while it rises over a page, the bottom while it lifts off. */
.sr-curtain::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--pink);
  box-shadow: 0 0 18px 2px rgba(255, 79, 160, 0.8);
}
.sr-curtain.is-lifting::after { top: auto; bottom: 0; }
.sr-curtain img { width: 92px; height: auto; opacity: 0.9; }

/* Cursor: a dot that inverts what it passes over, a ring on links, a pink disc with a word on [data-cursor]. */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea, .has-cursor select, .has-cursor [contenteditable] { cursor: auto !important; }
.sr-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--cream);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    margin 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.25s ease, opacity 0.25s ease;
}
.sr-cursor.is-on { opacity: 1; }
.sr-cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--cream); }
.sr-cursor.is-label {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  background: var(--pink);
  mix-blend-mode: normal;
  box-shadow: 0 0 40px rgba(255, 79, 160, 0.6);
}
.sr-cursor.is-hidden { opacity: 0; }
.sr-cursor-label {
  color: #15060d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sr-cursor.is-label .sr-cursor-label { opacity: 1; }

/* Magnetic buttons: GSAP moves them, so the hover lift and transform transition step aside. */
.is-magnetic { transition-property: background-color, border-color, box-shadow, color; }
.is-magnetic:hover { transform: none; }

@media (forced-colors: active) {
  .sr-cursor { display: none; }
  .has-cursor, .has-cursor * { cursor: auto !important; }
  .has-cursor :is(a, button, summary, label, [data-cursor]) { cursor: pointer !important; }
}

/* Film grain over everything, the texture of the room's low light. */
body::after {
  content: "";
  position: fixed;
  inset: -64px;
  z-index: 95;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.055;
  animation: sr-grain 0.9s steps(5) infinite;
}
@keyframes sr-grain {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-48px, 30px, 0); }
  40% { transform: translate3d(36px, -54px, 0); }
  60% { transform: translate3d(-22px, 64px, 0); }
  80% { transform: translate3d(58px, 12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Pause motion (WCAG 2.2.2): one switch in the hero and the footer stops every loop, saved per visitor. */
.sr-motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.sr-motion::before {
  content: "";
  width: 8px;
  height: 10px;
  border-inline: 3px solid currentColor;     /* pause bars */
  box-sizing: border-box;
}
.sr-motion[data-state="paused"]::before {
  border-inline: 0;
  border-left: 8px solid currentColor;       /* play triangle */
  border-block: 5px solid transparent;
}
.sr-motion:hover { color: var(--cream); }
.sr-paused body::after,
.sr-paused .marquee-track,
.sr-paused .hm-status-dot::after,
.sr-paused .hm-scroll-cue i,
.sr-paused .hm-visit-sign::before,
.sr-paused .xp-medal-ring,
.sr-paused .xp-corridor-mark,
.sr-paused .xp-halos circle,
.sr-paused .dk-ring,
.sr-paused .nt-stamp,
.sr-paused .bk-contact-seal,
.sr-paused .vs-route-line,
.sr-paused .vs-pin::before,
.sr-paused .vs-pin::after,
.sr-paused .vs-lights circle { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .sr-motion { display: none; }       /* nothing moves, so there is nothing to pause */
}
@media (pointer: coarse) {
  body::after { animation: none; }
}

/* Printing: show everything the motion layer hides or adds. */
@media print {
  .sr-word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .sr-curtain, .sr-cursor, .sr-loader, .sr-motion, body::after { display: none !important; }
}
