/* Rena Spa, Tower Bridge. Speculative hero. aesthetic bureau.
   Geist (OFL) in one weight. Palette taken from the club's own lighting:
   violet cove light, honey timber, one amber glow. */
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-300-normal.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #120d24;
  --cream: #f6efe6;
  --cream-dim: rgba(246, 239, 230, 0.68);
  --amber: #f2a65a;
  --pad: clamp(16px, 1.4vw, 24px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --font: 'Geist', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 300;
  overflow-x: hidden;
}

p, h1 { margin: 0; font-weight: 300; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }

:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }
::selection { background: var(--amber); color: var(--ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 20; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--pad);
  font-size: 15px; letter-spacing: -0.01em; line-height: 1;
  pointer-events: none;
}
.nav a { pointer-events: auto; }
.nav__brand { display: flex; align-items: baseline; gap: 10px; }
.nav__mark {
  align-self: center; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--amber); position: relative;
}
.nav__mark::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px;
  margin: -2px 0 0 -2px; border-radius: 50%; background: var(--amber);
}
.nav__name { font-size: 20px; letter-spacing: 0.02em; }
.nav__place { color: var(--cream-dim); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a { position: relative; padding: 6px 0; color: var(--cream-dim); transition: color 0.3s ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease-out);
}
.nav__links a.is-active::after { transform: scaleX(1); }

/* ---------- Pinned stage: 520svh of scroll, one screen visible ---------- */
.journey { position: relative; height: 520vh; height: 520svh; background: var(--ink); }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink);
  opacity: 0; transition: opacity 1.1s var(--ease-out);
}
.journey[data-state='ready'] .stage { opacity: 1; }

.scenes, .scene { position: absolute; inset: 0; }
.scene { overflow: hidden; will-change: clip-path; }
.scene[data-scene='1'], .scene[data-scene='2'] { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
.scene img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 55%; will-change: transform, filter;
}

/* legibility: the rooms are bright, the type is cream */
.shade { position: absolute; left: 0; right: 0; pointer-events: none; }
.shade--top {
  top: 0; height: 52%;
  background: linear-gradient(to bottom, rgba(18, 13, 36, 0.62), rgba(18, 13, 36, 0.28) 45%, rgba(18, 13, 36, 0));
}
.shade--bottom {
  bottom: 0; height: 46%;
  background: linear-gradient(to top, rgba(18, 13, 36, 0.78), rgba(18, 13, 36, 0.34) 55%, rgba(18, 13, 36, 0));
}

/* ---------- Headline: letters rise out of a mask ---------- */
.titles { position: absolute; left: var(--pad); top: clamp(86px, 14vh, 150px); right: var(--pad); }
.title {
  position: absolute; left: 0; top: 0;
  font-size: clamp(46px, 8.2vw, 132px);
  line-height: 0.98; letter-spacing: -0.045em; white-space: nowrap;
  color: var(--cream); text-shadow: 0 2px 40px rgba(18, 13, 36, 0.35);
}
.line { display: block; overflow: hidden; padding: 0.04em 0.06em 0.1em 0; margin: -0.04em 0 -0.1em; }
.ch { display: inline-block; transform: translate3d(0, 112%, 0); transition: transform 1.1s var(--ease-out); will-change: transform; }
.title.is-active .ch { transform: none; }
.title.is-past .ch { transform: translate3d(0, -112%, 0); transition-duration: 0.75s; transition-timing-function: var(--ease-in-out); }

/* ---------- Dock: call to action, journey rail, copy ---------- */
.dock {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: end; gap: var(--pad);
  padding: var(--pad) var(--pad) calc(var(--pad) + 22px);
}

.cta {
  justify-self: start; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-width: 220px; padding: 13px 16px;
  background: var(--amber); color: var(--ink);
  font-size: 16px; letter-spacing: -0.02em; line-height: 1.2;
  transition: background 0.3s ease, transform 0.5s var(--ease-out);
}
.cta:hover { background: var(--cream); }
.cta__arrow { transition: transform 0.5s var(--ease-out); }
.cta:hover .cta__arrow { transform: translateX(4px); }

.rail { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 520px; justify-self: center; width: 100%; padding-top: 14px; }
.rail__track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(246, 239, 230, 0.28); }
.rail__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }
.rail__item { display: flex; flex-direction: column; gap: 4px; text-align: left; padding-right: 8px; color: var(--cream-dim); transition: color 0.4s ease; }
.rail__item:hover, .rail__item.is-active { color: var(--cream); }
.rail__no { font-size: 12px; letter-spacing: 0.06em; color: var(--cream-dim); }
.rail__item.is-active .rail__no { color: var(--amber); }
.rail__label { font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }

.copies { position: relative; justify-self: end; width: 100%; max-width: 340px; min-height: 5.4em; }
.copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 16px; line-height: 1.25; letter-spacing: -0.015em; color: var(--cream);
  opacity: 0; visibility: hidden; transform: translate3d(0, 16px, 0);
  transition: opacity 0.5s ease, transform 0.9s var(--ease-out), visibility 0s linear 0.5s;
}
.copy.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.7s ease 0.25s, transform 0.9s var(--ease-out) 0.25s, visibility 0s;
}

.cue {
  position: absolute; left: 50%; bottom: calc(var(--pad) + 92px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim);
  transition: opacity 0.5s ease;
}
.cue i { display: block; width: 1px; height: 38px; background: linear-gradient(to bottom, var(--amber), transparent); animation: cue 2.2s var(--ease-in-out) infinite; transform-origin: 50% 0; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.note {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 9px; text-align: center;
  font-size: 10.5px; letter-spacing: 0.02em; color: rgba(246, 239, 230, 0.5);
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  .nav { font-size: 14px; }
  .nav__place { display: none; }
  .nav__links { gap: 18px; }
  .titles { top: 92px; }
  .scene img { object-position: 38% 50%; }
  .dock { grid-template-columns: 1fr; gap: 18px; padding-bottom: calc(var(--pad) + 34px); }
  .copies { order: 1; justify-self: start; max-width: none; min-height: 5.2em; }
  .copy { font-size: 15px; text-shadow: 0 1px 8px rgba(18, 13, 36, 0.6); }
  .rail { order: 2; max-width: none; }
  .cta { order: 3; width: 100%; }
  .cue { display: none; }
  .note { font-size: 9.5px; bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage, .ch, .copy, .cta, .cta__arrow, .rail__item, .nav__links a, .nav__links a::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .cue i { animation: none; transform: none; }
}
