/* Stardust & Beyond — site styles
   "The interface is the frame, not the picture."
   1970s disco: deep-aubergine night ground · gold + magenta accents ·
   image-first · raised surfaces · swipe-led. Tasteful retro, photos stay the star. */

:root {
  color-scheme: dark;

  /* Night-club dark — a deep warm aubergine, never pure black */
  --paper: #140a1e;     /* page ground */
  --paper-2: #1c1230;   /* raised bands: header, footer */
  --card: #221636;      /* raised card surface */
  --ink: #f5edff;       /* warm white */
  --ink-2: #c6b6dd;
  --muted: #8f80a8;
  --hair: #362449;
  --accent: #f4b740;    /* gold — primary accent / CTA */
  --accent-ink: #ffd06f; /* lighter gold for hover / pressed */
  --accent-2: #ff4fa3;  /* hot magenta — secondary highlight / links */
  --vermilion: #ff4fa3;  /* alias kept for the badge */

  /* Elevation — one light source, above and slightly to the front.
     A lit top edge + a downward-cast shadow makes each surface sit "raised". */
  --edge: rgba(255, 255, 255, 0.07);
  --edge-top: rgba(255, 210, 150, 0.22);
  --lift: 0 8px 16px -4px rgba(0, 0, 0, 0.72), 0 30px 60px -14px rgba(0, 0, 0, 0.82);
  --lift-hi: 0 18px 34px -6px rgba(0, 0, 0, 0.78), 0 54px 96px -22px rgba(0, 0, 0, 0.9);
  --shadow: var(--lift);
  --glow: 0 0 22px rgba(244, 183, 64, 0.28);

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Iowan Old Style", ui-serif, "New York", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --maxw: 1360px;
  --gap: 22px;
}

/* Shared raised-surface treatment: lit top edge, downward shadow */
.raised {
  border: 1px solid var(--edge);
  border-top-color: var(--edge-top);
  box-shadow: var(--lift);
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.38s ease;
}
.raised:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift-hi);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
/* Soft dance-floor glow — two low-alpha colour washes fixed behind everything.
   Kept subtle so photographs never fight it. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 12% 0%, rgba(255, 79, 163, 0.14), transparent 70%),
    radial-gradient(55% 45% at 100% 100%, rgba(244, 183, 64, 0.12), transparent 70%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 3.5vw, 2.6rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.03em; text-wrap: balance; }

/* ---------------- Header ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--hair);
}
.hdr-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.85rem clamp(1.1rem, 3.5vw, 2.6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.mark { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
.mark b { color: var(--accent); font-weight: 700; font-family: var(--serif); font-style: italic; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-2);
  padding: 0.2rem 0; border-bottom: 1.5px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-2); }

.hdr-tools { display: flex; align-items: center; gap: 0.6rem; }
.menu-btn {
  background: none; border: 1px solid var(--hair); color: var(--ink-2);
  border-radius: 100px; cursor: pointer; padding: 0.42rem 0.5rem; line-height: 0;
  display: none; align-items: center; justify-content: center;
}
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- Landing ---------------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center; padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.hero-copy .eyebrow { margin-bottom: 1.5rem; color: var(--accent-2); }
.hero-copy h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2.9rem, 7.6vw, 6.2rem);
  line-height: 0.95; letter-spacing: -0.02em; text-shadow: 0 0 34px rgba(244, 183, 64, 0.22);
}
.hero-copy h1 .amp { font-style: italic; color: var(--accent); }
.hero-copy h1 .last { color: var(--accent-2); }
.hero-copy .tag {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  color: var(--ink-2); margin: 1.6rem 0 0; max-width: 24ch; letter-spacing: -0.01em; line-height: 1.35;
}
.hero-cta { display: flex; gap: 0.8rem; margin-top: 2.2rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; letter-spacing: 0.01em; padding: 0.7rem 1.15rem; border-radius: 100px;
  border: 1px solid var(--ink); color: var(--ink); transition: all 0.2s;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #201007; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero-fig { position: relative; }
.hero-fig img {
  width: 100%; height: auto;
  border: 1px solid var(--edge); border-top-color: var(--edge-top); box-shadow: var(--lift);
}
.hero-fig figcaption {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 0.7rem;
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-fig { order: -1; }
}

/* Section entry cards on the landing */
.rooms { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem); }
.rooms h2.label { font-family: var(--mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.room-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.room {
  position: relative; overflow: hidden; background: var(--card); aspect-ratio: 4 / 5; display: block;
  border: 1px solid var(--edge); border-top-color: var(--edge-top); box-shadow: var(--lift);
  transition: transform 0.38s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.38s ease;
}
.room:hover { transform: translateY(-4px); box-shadow: var(--lift-hi); }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2,0.7,0.3,1); }
.room:hover img { transform: scale(1.05); }
.room .cap {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1.1rem 0.95rem;
  background: linear-gradient(to top, rgba(10,4,18,0.86), rgba(10,4,18,0.35) 55%, transparent);
  color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.1rem 0.6rem;
}
.room .cap .t { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.room .cap .b { grid-column: 1 / -1; font-size: 0.8rem; color: var(--ink-2); line-height: 1.3; }
.room .cap .n { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (max-width: 980px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .room-grid { grid-template-columns: 1fr; } .room { aspect-ratio: 16 / 10; } }

/* ---------------- Page intro ---------------- */
main { min-height: 60vh; }
.page-intro { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(1.4rem, 2.5vw, 2rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-intro h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1; }
.page-intro .eyebrow { margin-bottom: 0.9rem; }
.page-intro .sub { font-family: var(--serif); font-style: italic; color: var(--ink-2); max-width: 40ch; margin: 0.3rem 0 0; }
.page-intro .count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------------- Gallery grid (masonry) ---------------- */
.grid { columns: 4 300px; column-gap: var(--gap); padding-bottom: clamp(3rem, 6vw, 5rem); }
.tile {
  display: block; width: 100%; margin: 0 0 var(--gap); padding: 0;
  border: 1px solid var(--edge); border-top-color: var(--edge-top);
  box-shadow: var(--lift);
  background: var(--card); cursor: zoom-in; overflow: hidden; break-inside: avoid;
  position: relative;
  transition: transform 0.38s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.38s ease;
}
.tile img { width: 100%; height: auto; transition: transform 0.6s cubic-bezier(0.2,0.7,0.3,1), opacity 0.4s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--lift-hi); }
.tile:hover img { transform: scale(1.035); }
.tile .cap {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 0.9rem 0.75rem;
  background: linear-gradient(to top, rgba(10,10,14,0.66), transparent);
  color: #fff; font-family: var(--serif); font-style: italic; font-size: 0.9rem;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.tile:hover .cap { opacity: 1; transform: none; }

/* ---------------- Section lead (the club) ---------------- */
.lead { max-width: 440px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.lead .tile { background: var(--card); cursor: zoom-in; box-shadow: var(--lift), var(--glow); }
.lead figcaption {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-top: 0.9rem;
}

/* ---------------- Prose (section intro copy) ---------------- */
.prose { max-width: 62ch; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.prose p { color: var(--ink-2); margin: 0 0 1.15rem; font-size: 1.08rem; }
.prose p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.4rem; line-height: 0.8; float: left;
  padding: 0.15rem 0.55rem 0 0; color: var(--accent-2);
}
.prose p:last-child { margin-bottom: 0; }

/* ---------------- For sale ---------------- */
.works { display: grid; gap: clamp(2rem, 4vw, 3.2rem); max-width: 820px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.work { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
.work .tile { cursor: zoom-in; }
.work h2 { font-size: 1.35rem; }
.work .meta { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin: 0.5rem 0 0.7rem; }
.work .price { font-size: 1.15rem; margin: 0; }
.work .price s { color: var(--muted); }
.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; background: var(--vermilion); color: #fff;
  padding: 0.2rem 0.5rem; border-radius: 3px; margin-left: 0.6rem; vertical-align: middle;
}
.enquire { margin-top: 0.9rem; font-size: 0.9rem; color: var(--muted); }
.enquire a { color: var(--accent); border-bottom: 1px solid currentColor; }
@media (max-width: 620px) { .work { grid-template-columns: 1fr; } }

/* ---------------- About ---------------- */
.about { display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); max-width: 1000px; }
.about img {
  width: 100%; height: auto;
  border: 1px solid var(--edge); border-top-color: var(--edge-top); box-shadow: var(--lift);
}
.about .prose p { color: var(--ink-2); margin: 0 0 1.15rem; max-width: 60ch; }
.about .prose p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.4rem; line-height: 0.8; float: left;
  padding: 0.15rem 0.6rem 0 0; color: var(--accent);
}
.about .prose p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .about img { max-width: 280px; } }

/* ---------------- Footer ---------------- */
.ftr { border-top: 1px solid var(--hair); background: var(--paper-2); }
.ftr-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.4rem clamp(1.1rem, 3.5vw, 2.6rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ftr .mark { font-size: 1rem; }
.ftr .social { display: flex; gap: 1.3rem; }
.ftr .social a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ftr .social a:hover { color: var(--accent); }
.ftr .cr { width: 100%; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.3rem; }

/* ---------------- Mobile menu ---------------- */
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav {
    /* the header's backdrop-filter makes it the containing block for this
       fixed panel, so set an explicit full height rather than relying on
       bottom:0 (which would resolve against the ~56px header). */
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
    width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    overflow-y: auto;
    background: var(--paper); border-left: 1px solid var(--hair); padding: 5rem 2rem 2rem;
    transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1); box-shadow: var(--shadow);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink); }
  .nav-scrim { position: fixed; inset: 0; background: rgba(10,10,14,0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 29; }
  .nav-scrim.open { opacity: 1; pointer-events: auto; }
}

/* ---------------- Lightbox (PhotoSwipe theming) ---------------- */
/* Hide the sticky header while the lightbox is open — on mobile (seen on Chrome
   Android) its backdrop-filter layer otherwise paints over the fixed overlay,
   cutting off the top of the image and showing the burger. */
html.pswp-open .hdr { visibility: hidden !important; backdrop-filter: none !important; }
.pswp { --pswp-bg: #17181b; --pswp-icon-color: #e9e9e4; --pswp-icon-color-secondary: #17181b; }
.pswp__bg { background: var(--pswp-bg); }
.pswp-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem 1.4rem;
  text-align: center; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: #e9e9e4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.pswp__counter { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; opacity: 0.85; }

/* ---------------- Reveal / a11y ---------------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,0.61,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .room img { transition: none; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
