@font-face { font-family: "Bricolage"; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url(vendor/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2"); }
@font-face { font-family: "Marker"; font-weight: 400; font-display: swap; src: url(vendor/fonts/permanent-marker-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(vendor/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(vendor/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #060608;
  --fg: #f4f2f7;
  --dim: rgba(244, 242, 247, .58);
  --faint: rgba(244, 242, 247, .14);
  --violet: #8f63ff;
  --violet-hi: #b79bff;
  --sans: "Bricolage", system-ui, sans-serif;
  --script: "Marker", "Comic Sans MS", cursive;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --world: "Bricolage", "Yu Gothic", "Malgun Gothic", "Nirmala UI", "Segoe UI", "Noto Sans", system-ui, sans-serif;
  --pad: clamp(16px, 2vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); }
body { font-family: var(--sans); font-size: clamp(14px, 1vw, 16px); line-height: 1.45; background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; cursor: none; }
body.is-loading { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 1px solid var(--violet-hi); outline-offset: 4px; }
@media (hover: none) { body { cursor: auto; } }

.mono { font-family: var(--mono); font-size: clamp(9px, .66vw, 11px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.script { font-family: var(--script); color: var(--violet); text-transform: uppercase; line-height: .9; }
.script > span { display: inline-block; }
.ch { display: inline-block; will-change: transform; }

.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .12;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -3%); } 75% { transform: translate(-2%, -4%); } 100% { transform: translate(0, 0); } }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--fg); mix-blend-mode: difference;
  display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
}
.cursor span { font-family: var(--script); font-size: 14px; color: #fff; opacity: 0; white-space: nowrap; transition: opacity .2s; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--violet); mix-blend-mode: normal; }
.cursor.is-label span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ───────── HUD (persistent across every section) ───────── */
.hud { position: fixed; z-index: 30; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--pad) calc(var(--pad) + 14px) 0; mix-blend-mode: difference; }
.hud__l, .hud__r { display: flex; gap: clamp(12px, 2vw, 34px); }
.hud__r { justify-content: flex-end; }
.hud a { opacity: .8; transition: opacity .2s; }
.hud a:hover { opacity: 1; }
.hud__logo { font-weight: 800; font-stretch: 75%; font-size: 18px; opacity: 1 !important; }
.rail { position: fixed; z-index: 30; top: 30vh; bottom: 30vh; width: 8px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; mix-blend-mode: difference; }
.rail--l { left: 10px; } .rail--r { right: 10px; align-items: flex-end; }
.rail i { width: 5px; height: 1px; background: var(--faint); transition: width .3s, background .3s; }
.rail i:nth-child(5n + 1) { width: 8px; background: var(--dim); }
.rail i.is-on { background: var(--violet-hi); width: 12px; }
.now { position: fixed; z-index: 30; left: calc(var(--pad) + 14px); bottom: calc(var(--pad) - 4px); color: var(--fg); mix-blend-mode: difference; }
.now #nowNum { color: var(--violet-hi); }
.progress { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.progress i { display: block; height: 100%; background: var(--violet); transform: scaleX(0); transform-origin: left; }

.hud__sound { display: flex; align-items: center; gap: 8px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; opacity: .8; }
.hud__sound:hover { opacity: 1; }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.eq i { width: 2px; height: 3px; background: currentColor; }
.hud__sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite; }
.hud__sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.hud__sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }

/* ───────── Loader ───────── */
.loader { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding: var(--pad); color: var(--dim); }
.loader p:last-child { text-align: right; }
.loader__n { overflow: hidden; display: inline-block; justify-self: center; font-weight: 800; font-stretch: 75%; font-size: clamp(90px, 16vw, 260px); line-height: .78; letter-spacing: -.04em; color: var(--fg); }

/* ───────── Stage ───────── */
#spacer { width: 1px; }
#stage { position: fixed; inset: 0; overflow: hidden; }
.bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at var(--bx, 50%) var(--by, 58%), var(--bc, #1a1030), var(--bg) 72%); }
.sec { position: absolute; inset: 0; visibility: hidden; }
.sec a { pointer-events: auto; }
.sec__scroll { position: absolute; z-index: 3; left: 50%; bottom: 7vh; translate: -50% 0; color: #fff; font-size: clamp(16px, 1.4vw, 24px); display: grid; justify-items: center; }

/* shared hero object: the 3D moon (canvas) */
.moth-wrap { position: absolute; z-index: 5; left: 50%; top: 56%; width: min(64vh, 52vw); aspect-ratio: 1; margin-left: calc(min(64vh, 52vw) / -2); translate: 0 -50%; pointer-events: none; will-change: transform; }
.moon { width: 100%; height: 100%; display: block; }

/* shared sky: orbit + planet */
.sky { position: absolute; inset: 0; z-index: 2; pointer-events: none; visibility: hidden; }
.orbit { position: absolute; left: 50%; top: 46%; width: min(92vw, 1300px); translate: -50% -50%; overflow: visible; }
.orbit__ring { fill: none; stroke: rgba(244, 242, 247, .4); stroke-width: 1.2; }
.orbit__ring--2 { stroke: rgba(183, 155, 255, .4); stroke-dasharray: 2 8; }
.planet { position: absolute; left: 50%; top: 46%; width: min(46vh, 70vw); height: min(46vh, 70vw); translate: -50% -50%; }

/* 01 hero */
.hero__word {
  position: absolute; left: 0; right: 0; top: 10vh; z-index: 1;
  font-weight: 800; font-stretch: 75%; text-transform: uppercase; text-align: center; white-space: nowrap;
  font-size: 20vw; line-height: .76; letter-spacing: -.035em;
}
.hero__row { display: inline-block; overflow: hidden; padding-top: .03em; }
.hero__tag { position: absolute; z-index: 6; right: 9%; top: 19vh; font-size: clamp(18px, 2.3vw, 38px); transform: rotate(-7deg); }
.hero__labels { position: absolute; inset: 0; z-index: 6; pointer-events: none; color: var(--dim); }
.hl { position: absolute; display: flex; align-items: center; gap: 8px; }
.hl::before { content: ""; width: 26px; height: 1px; background: var(--faint); }
.hl--1 { left: 12%; top: 54%; } .hl--2 { left: 18%; top: 66%; } .hl--3 { right: 14%; top: 54%; flex-direction: row-reverse; } .hl--4 { right: 19%; top: 66%; flex-direction: row-reverse; }
.hero__scroll { position: absolute; z-index: 6; left: 50%; bottom: 15vh; translate: -50% 0; width: clamp(110px, 10vw, 170px); display: grid; place-items: center; }
.hero__scroll svg { width: 100%; overflow: visible; }
.scribble { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.hero__scroll .script { position: absolute; color: #fff; font-size: clamp(14px, 1.3vw, 22px); }
.hero__foot { position: absolute; z-index: 6; left: calc(var(--pad) + 14px); right: calc(var(--pad) + 14px); bottom: calc(var(--pad) + 18px); display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: end; color: var(--dim); }
.hero__foot p { max-width: 70ch; justify-self: center; text-align: center; }

/* 02 about: the moon stays centred; "ABOUT US" orbits it; copy sits either side */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.about__copy { position: absolute; z-index: 7; bottom: 15vh; width: min(20vw, 290px); display: grid; gap: 14px; color: var(--dim); font-size: clamp(13px, .95vw, 15px); }
.about__copy--l { left: calc(var(--pad) + 22px); }
.about__copy--r { right: calc(var(--pad) + 22px); text-align: right; }
.about__copy strong { color: var(--fg); font-weight: 600; }
.about__script { font-size: clamp(24px, 2.6vw, 44px); margin-bottom: 4px; }

/* orbit ring: two layers (behind / in front of the moon); letters are placed by JS */
.ring { position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
.ring--back { z-index: 4; }
.ring--front { z-index: 6; }
.ring__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring__line path { fill: none; stroke: rgba(196, 176, 255, .35); stroke-width: 1; }
.ring--back .ring__line path { stroke: rgba(196, 176, 255, .14); }
.rl {
  position: absolute; left: 0; top: 0; will-change: transform, opacity;
  font-family: var(--mono); font-weight: 500; text-transform: uppercase; line-height: 1;
  font-size: clamp(11px, .95vw, 15px); letter-spacing: .02em; color: #e6dcff; white-space: pre;
  text-shadow: 0 0 10px rgba(143, 99, 255, .6);
}
.ring--back .rl { color: #8a7bb5; text-shadow: none; }

/* 03 services: two copies of the list; the lit copy is masked by the spotlight (viewport coords) */
.svc__dim, .svc__lit { position: absolute; inset: 0; overflow: hidden; }
.svc__lit { --x: 50vw; --y: 50vh; --r: 0px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 30%, rgba(0, 0, 0, .25) 60%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 30%, rgba(0, 0, 0, .25) 60%, transparent 100%);
}
.svc__list { position: absolute; left: 0; right: 0; top: 0; display: grid; justify-items: center; will-change: transform; }
.svc__row { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 12vw; line-height: .86; letter-spacing: -.03em; white-space: nowrap; transform-origin: 50% 50%; }
.svc__dim .svc__row { color: #26262c; }
.svc__lit .svc__row { color: #fff; text-shadow: 0 0 30px rgba(183, 155, 255, .35); }

/* 04 flip */
.flip { display: grid; place-items: center; }
.flip__word { display: flex; justify-content: center; font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 23vw; line-height: .8; letter-spacing: -.035em; }
.fl { position: relative; display: inline-block; overflow: hidden; height: .8em; }
.fl__in { display: flex; flex-direction: column; }
.fl__in > span { height: .8em; display: block; text-align: center; }
.flip__caps { position: absolute; left: 50%; bottom: 13vh; translate: -50% 0; width: min(560px, 86vw); height: 3em; text-align: center; color: var(--dim); }
.flip__cap { position: absolute; left: 0; right: 0; }
.flip__cap b { color: var(--violet-hi); font-weight: 500; }

/* 05 booking */
.booking { display: grid; place-content: center; }
.marquee { position: relative; transform: rotate(-3deg); width: 110vw; margin-left: -5vw; }
.mq { display: grid; }
.marquee__row { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 13vw; line-height: .86; letter-spacing: -.035em; padding-right: .25em; }
.marquee__track span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .5); }
.marquee__track span.st { color: var(--violet-hi); }
/* the words in the dark (like the unlit services list) */
.mq--dim span { color: #24232b; }
.mq--dim span.o { color: transparent; -webkit-text-stroke: 1.5px #2b2a33; }
.mq--dim span.st { color: #2a2638; }
/* the slot is empty in the dark: the only UNSEEN you see is the real word landing, then the lit ones */
.mq--dim span.u { color: transparent; }
/* the lit copy only shows where the light is: a soft spotlight, plus the trail it has already lit */
.mq--lit { position: absolute; inset: 0;
  --sx: 50%; --sy: 50%; --srx: 0px; --sry: 0px;       /* spotlight centre + radii */
  --tx: 0px; --tw: 0px;                               /* lit trail: left edge + width */
  -webkit-mask-image: radial-gradient(ellipse var(--srx) var(--sry) at var(--sx) var(--sy), #000 40%, rgba(0, 0, 0, .35) 70%, transparent 100%),
                      linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
          mask-image: radial-gradient(ellipse var(--srx) var(--sry) at var(--sx) var(--sy), #000 40%, rgba(0, 0, 0, .35) 70%, transparent 100%),
                      linear-gradient(90deg, transparent, #000 80px, #000 calc(100% - 80px), transparent);
  -webkit-mask-size: 100% 100%, var(--tw) 100%; mask-size: 100% 100%, var(--tw) 100%;
  -webkit-mask-position: 0 0, var(--tx) 0; mask-position: 0 0, var(--tx) 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* 06 global */
.global__txt { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.global__name { position: absolute; z-index: 3; left: 0; right: 0; bottom: 17vh; text-align: center; font-family: var(--world); font-weight: 800; font-stretch: 75%; font-size: clamp(30px, 4.4vw, 72px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.global__lang { position: absolute; z-index: 3; left: 0; right: 0; bottom: 12.5vh; text-align: center; color: var(--dim); }

/* 07 footer */
.footer { display: grid; grid-template-rows: 1fr auto auto auto; gap: 3.5vh; padding: calc(var(--pad) + 70px) calc(var(--pad) + 22px) calc(var(--pad) + 26px); z-index: 3; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: -1; background: linear-gradient(rgba(6, 6, 8, 0), rgba(6, 6, 8, .78) 45%); pointer-events: none; }
.footer__word { align-self: center; text-align: center; font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 19vw; line-height: .8; letter-spacing: -.03em; white-space: nowrap; color: #f4f2f7; }
.footer__mail { justify-self: center; font-weight: 800; font-stretch: 75%; text-transform: lowercase; font-size: clamp(28px, 4vw, 64px); letter-spacing: -.02em; border-bottom: 2px solid var(--violet); line-height: 1.05; }
.footer__mail:hover { color: var(--violet-hi); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__cols > div { display: grid; gap: 6px; align-content: start; color: var(--dim); }
.footer__cols a:hover { color: var(--violet-hi); }
.footer__h { color: var(--fg); margin-bottom: 6px; }
.footer__h::before { content: "● "; color: var(--violet); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); flex-wrap: wrap; border-top: 1px solid var(--faint); padding-top: 14px; }

/* ───────── Mobile ───────── */
@media (max-width: 760px) {
  .hud { grid-template-columns: 1fr auto; padding: 14px 18px 0; }
  .hud__l { display: none; }
  .hud__r { gap: 14px; }
  .rail { display: none; }
  .hero__word { top: 14vh; }
  .hero__tag { top: 21vh; right: 6%; }
  .moth-wrap { width: 92vw; margin-left: -46vw; top: 50%; }
  .hero__labels { display: none; }
  .hero__scroll { bottom: 22vh; }
  .hero__foot { grid-template-columns: 1fr; left: 18px; right: 18px; bottom: 40px; }
  .hero__foot span { display: none; }
  .hero__foot p { text-align: left; }
  .about__copy { width: auto; left: 18px; right: 18px; bottom: 9vh; text-align: left; }
  .about__copy--l { bottom: auto; top: 13vh; }
  .about__copy--r p:last-child { display: none; }
  .rl { font-size: 10px; }
  .svc__row { font-size: 14vw; }
  .flip__word { font-size: 24vw; }
  .marquee__track span { font-size: 22vw; }
  .footer { padding: 70px 18px 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__word { font-size: 20vw; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}
