:root {
  --black: #000;
  --ink: #0a0908;
  --ivory: #efe7da;
  --muted: rgba(239, 231, 218, .55);
  --line: rgba(239, 231, 218, .12);
  --gold: #c9a86a;
  --warm: 255, 236, 205;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --figure-x: 64%; /* where RAY stands, and where the spotlight points */
}

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

html { background: var(--black); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--black); }

/* ---------- Loader ---------- */

.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--black);
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner {
  position: absolute;
  top: calc(var(--gutter) + env(safe-area-inset-top));
  left: var(--gutter);
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted);
}
.loader__bar { width: clamp(80px, 16vw, 180px); height: 1px; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.loader__count { color: var(--ivory); font-variant-numeric: tabular-nums; min-width: 4.5em; }
.loader__count b { font-weight: 300; }

/* ---------- Dust ---------- */

.dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(22px + env(safe-area-inset-top)) var(--gutter) 22px;
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .85), transparent);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}
.nav.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.nav__brand { font-size: 15px; letter-spacing: .5em; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav__links a { color: var(--muted); transition: color .3s ease; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--ivory); }

/* ---------- Intro ---------- */

.intro { position: relative; height: 420vh; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--black);
}

/* Slow glow behind the logo */
.glow { position: absolute; inset: 40% -10% -20%; opacity: 0; filter: blur(70px); }
.glow span { position: absolute; border-radius: 50%; }
.glow__a {
  left: 8%; bottom: 0; width: 55%; height: 80%;
  background: radial-gradient(closest-side, rgba(201, 168, 106, .42), transparent);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.glow__b {
  right: 6%; bottom: 6%; width: 48%; height: 70%;
  background: radial-gradient(closest-side, rgba(170, 120, 150, .26), transparent);
  animation: drift-b 21s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(34%, -10%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-40%, 8%) scale(.9); } }

/* Logo, sitting on the bottom edge */
.mark {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  opacity: 0; font-weight: 200;
  z-index: 2; /* the logo crosses in front of her legs; black trousers would otherwise punch a hole in it */
}
.mark__type {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--sans);
  font-size: min(27vw, 50svh);
  line-height: .74;
  padding-bottom: .04em;
}
.mark__img { display: block; width: 100%; max-height: 52svh; object-fit: contain; object-position: bottom; }

/* Spotlight */
.light { position: absolute; inset: 0; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.light__beam {
  position: absolute; top: -6%; left: var(--figure-x);
  width: min(74svh, 120vw); height: 106%;
  transform: translateX(-50%);
  filter: blur(26px);
}
/* Clip on the child so the parent's blur softens the cone's edges */
.light__beam::before {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(var(--warm), .5), rgba(var(--warm), .14) 55%, rgba(var(--warm), .04));
}
.light__pool {
  position: absolute; bottom: calc(var(--feet, 0px) - 8svh); left: var(--figure-x);
  width: min(80svh, 130vw); height: 16svh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--warm), .38), transparent);
  filter: blur(14px);
}

/* RAY herself */
.figure {
  position: absolute; bottom: var(--feet, 0px); left: var(--figure-x); /* --feet: the letters' baseline, set in main.js */
  height: min(64svh, 150vw);
  transform: translateX(-50%);
  opacity: 0;
}
.figure__ph, .figure__img { display: block; height: 100%; width: auto; }
.figure__ph { filter: blur(1.2px); }

.hint {
  position: absolute; left: 50%; bottom: calc(34px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted);
  text-indent: .5em;
}
.hint i { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--ivory), transparent); transform-origin: top; animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sections ---------- */

.section {
  position: relative; z-index: 4;
  max-width: 1280px; margin: 0 auto;
  padding: clamp(96px, 16vh, 200px) var(--gutter);
}
.eyebrow { font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
h2 {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(48px, 8vw, 112px); line-height: 1; letter-spacing: -.01em;
}
.section__head { margin-bottom: clamp(40px, 7vh, 80px); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Videos */
.tile {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--warm), .09), transparent 60%),
    var(--ink);
  transition: border-color .5s ease, background-color .5s ease;
}
.tile--wide { aspect-ratio: 16 / 9; }
.tile--tall { aspect-ratio: 9 / 16; }
.tile:hover, .tile:focus-visible { border-color: rgba(201, 168, 106, .55); }
.tile__play {
  position: absolute; top: 50%; left: 50%;
  width: clamp(48px, 6vw, 76px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(239, 231, 218, .45); border-radius: 50%;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), border-color .4s ease;
}
.tile__play::after {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--ivory);
}
.tile:hover .tile__play { transform: translate(-50%, -50%) scale(1.12); border-color: var(--gold); }
.tile__meta {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.tile__meta em { display: block; font-style: normal; color: var(--gold); margin-bottom: 2px; }

.videos__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 22px); margin-top: clamp(10px, 1.6vw, 22px); }
/* Real video tiles */
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .6s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img, .tile:focus-visible img { opacity: 1; transform: scale(1.03); }
.tile[data-yt] .tile__play { background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Instagram embeds: the embed puts a 9:16 reel inside a 4:5 box with a white header and footer.
   Widen the frame so the reel alone fills the tile, and shift it up past the 54px header. */
.videos__grid--ig { grid-template-columns: repeat(3, 1fr); }
.tile--ig { background: #000; }
.tile--ig iframe { top: -55px; left: -22.5%; width: 145%; height: calc(100% + 600px); }
.video__title { margin-top: 12px; font-size: 13px; line-height: 1.45; letter-spacing: .04em; color: rgba(239, 231, 218, .78); }
.video__title--feature { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.1; letter-spacing: 0; color: var(--ivory); }
.video__title--feature em { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.videos__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: clamp(48px, 8vh, 88px); }
.videos__row .eyebrow { margin-bottom: 0; }
.videos__more { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .3s ease, border-color .3s ease; }
.videos__more:hover { color: var(--ivory); border-color: var(--gold); }

.videos__grid .reveal:nth-child(2) { transition-delay: .08s; }
.videos__grid .reveal:nth-child(3) { transition-delay: .16s; }
.videos__grid .reveal:nth-child(4) { transition-delay: .24s; }

/* About */
.about__film { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: var(--ink); }
.about__film video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.about__sound {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px);
  padding: 10px 16px 10px 18px;
  font: inherit; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--ivory);
  background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(239, 231, 218, .35); border-radius: 999px; cursor: pointer;
  transition: border-color .3s ease, color .3s ease;
}
.about__sound:hover, .about__sound[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.about__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 7vh, 80px); }
.about__text h2 { font-size: clamp(40px, 5.6vw, 80px); }
.about__text p:not(.eyebrow) { max-width: 46ch; color: rgba(239, 231, 218, .78); }
.about__text p + p { margin-top: 1.1em; }

.about__text h2 { font-size: clamp(36px, 4.8vw, 68px); }
.about__facts { margin: clamp(48px, 8vh, 96px) 0 0; border-bottom: 1px solid var(--line); }
.about__facts > div { display: grid; grid-template-columns: minmax(120px, 1fr) 4fr; gap: 8px 32px; align-items: baseline; padding: clamp(16px, 2.4vh, 26px) 0; border-top: 1px solid var(--line); }
.about__facts dt { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.about__facts dd { margin: 0; font-family: var(--serif); font-size: clamp(21px, 2.5vw, 32px); line-height: 1.25; }

/* Bookings */
.bookings { text-align: center; }
.bookings h2 { margin-bottom: clamp(28px, 5vh, 56px); }
.bookings__mail {
  display: inline-block;
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 42px); line-height: 1.3;
  padding-bottom: 6px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat;
  transition: background-size .5s ease, color .3s ease;
  overflow-wrap: anywhere;
}
.bookings__mail:hover { color: var(--gold); background-size: 0 1px; background-position: right bottom; }
.bookings__alt { margin-top: 22px; font-size: 14px; letter-spacing: .06em; color: var(--muted); }
.bookings__alt a { color: var(--ivory); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .3s ease, border-color .3s ease; }
.bookings__alt a:hover { color: var(--gold); border-color: var(--gold); }
.bookings__social { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px clamp(24px, 5vw, 56px); margin-top: clamp(40px, 7vh, 72px); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; }
.bookings__social a { color: var(--muted); transition: color .3s ease; }
.bookings__social a:hover { color: var(--ivory); }

.footer {
  position: relative; z-index: 4;
  display: flex; justify-content: space-between; gap: 16px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted);
}
.footer a:hover { color: var(--ivory); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  :root { --figure-x: 60%; }
  body { font-size: 16px; }
  .nav__links a:first-child { display: none; }
  .videos__grid { grid-template-columns: repeat(2, 1fr); }
  .about__text { grid-template-columns: 1fr; }
  .about__facts > div { grid-template-columns: 1fr; }
  .figure { height: min(58svh, 150vw); }
}

/* ---------- Reduced motion: show the finished scene, no scroll choreography ---------- */

@media (prefers-reduced-motion: reduce) {
  .intro { height: auto; }
  .stage { position: relative; }
  .glow, .mark, .light, .figure { opacity: 1; }
  .glow span, .hint i { animation: none; }
  .hint { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav { transition: none; }
}
