:root {
  --night: #0B0A1E;
  --plum: #1D0225;
  --ink: #070615;
  --magenta: #FF3EA5;
  --cyan: #41E8FF;
  --amber: #FFBF66;
  --text: #F2F5FF;
  --text-2: rgba(242, 245, 255, .72);
  --text-3: rgba(242, 245, 255, .5);
  --line: rgba(242, 245, 255, .12);
  --panel: rgba(18, 16, 44, .72);
  --display: "Tektur", "Chakra Petch", system-ui, sans-serif;
  --ui: "Chakra Petch", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--magenta); color: var(--night); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--night); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: 68px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11, 10, 30, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 16px/1 var(--display); letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-play { color: var(--text); padding: 9px 16px; border: 1px solid rgba(255, 62, 165, .55); border-radius: 999px; }
.nav-links .nav-play:hover { background: rgba(255, 62, 165, .14); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 12px; border: 0; cursor: pointer; white-space: nowrap;
  font: 600 16px/1 var(--ui); letter-spacing: .02em; text-decoration: none;
  transition: transform .2s, box-shadow .25s, background .2s, color .2s;
}
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 10px 34px -10px rgba(255, 62, 165, .75); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 44px -10px rgba(255, 62, 165, .95); }
.btn-ghost { background: rgba(242, 245, 255, .1); color: var(--text); }
.btn-ghost:hover { background: rgba(242, 245, 255, .18); }
.btn-light { background: var(--text); color: var(--night); }
.btn-light:hover { background: #fff; box-shadow: 0 8px 30px -8px rgba(65, 232, 255, .6); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---------- Waitlist form ---------- */
.wl { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 16px;
  background: rgba(11, 10, 30, .55); border: 1px solid rgba(242, 245, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s; }
.wl:focus-within { border-color: rgba(65, 232, 255, .6); }
.wl.is-invalid { border-color: rgba(255, 110, 140, .8); }
.wl input[type="email"] {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--text);
  font: 500 16px/1 var(--ui); outline: none;
}
.wl input::placeholder { color: var(--text-3); }
.wl .btn { height: 48px; padding: 0 20px; border-radius: 11px; }
.wl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-msg { position: absolute; left: 12px; top: calc(100% + 10px); margin: 0; font-size: 14px; color: var(--text-2); }
.wl-msg:empty { display: none; }
.wl-msg.is-error { color: #FF9DB5; }
.wl-msg.is-ok { color: var(--cyan); }
.wl.is-busy .btn { opacity: .7; }
.wl.is-done input[type="email"], .wl.is-done .btn { display: none; }
.wl.is-done { background: rgba(65, 232, 255, .08); border-color: rgba(65, 232, 255, .4); min-height: 62px; }
.wl.is-done .wl-msg { position: static; display: block; padding: 0 12px; font-size: 16px; font-weight: 500; }
.wl-stack { flex-direction: column; align-items: stretch; padding: 0; background: none; border: 0; backdrop-filter: none; gap: 10px; }
.wl-stack input[type="email"] { flex: none; background: rgba(242, 245, 255, .07); border: 1px solid var(--line); border-radius: 12px; height: 52px; }
.wl-stack input[type="email"]:focus { border-color: rgba(65, 232, 255, .6); }
.wl-stack .btn { height: 52px; }
.wl-stack .wl-msg { position: static; padding: 0 2px; }
.wl-stack.is-done { background: rgba(65, 232, 255, .08); border: 1px solid rgba(65, 232, 255, .4); border-radius: 12px; justify-content: center; padding: 16px 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--ink); }
.slide {
  position: absolute; inset: -4%; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.4s ease; animation: kenburns 28s ease-in-out infinite alternate;
}
.slide.is-on { opacity: 1; }
.slide:first-child { background-position: 62% center; }
.slide:nth-child(2) { animation-delay: -9s; animation-name: kenburns2; }
.slide:nth-child(3) { animation-delay: -18s; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2.5%, -1.5%, 0); } }
@keyframes kenburns2 { from { transform: scale(1.12) translate3d(2%, 0, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 10, 30, .55) 0%, rgba(11, 10, 30, 0) 22%),
    linear-gradient(90deg, rgba(11, 10, 30, .82) 0%, rgba(11, 10, 30, .35) 48%, rgba(11, 10, 30, 0) 75%),
    linear-gradient(0deg, var(--night) 0%, rgba(11, 10, 30, .55) 30%, rgba(11, 10, 30, 0) 60%);
}
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 120px var(--gutter) clamp(72px, 12vh, 128px); }
.wordmark {
  margin: 0; font: 700 clamp(64px, 9.4vw, 136px)/.88 var(--display); letter-spacing: .015em;
  text-shadow: 0 0 44px rgba(255, 62, 165, .45), 0 0 2px rgba(255, 62, 165, .6);
  animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both;
}
.tagline { margin: 26px 0 0; font: 500 clamp(21px, 2.3vw, 28px)/1.3 var(--ui); color: var(--text); animation: rise 1.2s .12s cubic-bezier(.2, .7, .2, 1) both; }
.tagline::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 20px; border-radius: 3px; background: var(--magenta); box-shadow: 0 0 16px var(--magenta); }
.lede { max-width: 30em; margin: 12px 0 0; color: var(--text-2); animation: rise 1.2s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; scroll-margin-top: 120px; animation: rise 1.2s .3s cubic-bezier(.2, .7, .2, 1) both; }
.hero-cta .btn-primary { height: 62px; padding: 0 30px; font-size: 17px; border-radius: 16px; }
.hero-cta .wl { width: min(470px, 100%); }
.hero-foot { margin: 40px 0 0; font-size: 14px; color: var(--text-3); animation: rise 1.2s .4s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid var(--text-3); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--text-2); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(84px, 12vw, 150px) 0; }
.h2 { margin: 0 0 clamp(36px, 5vw, 60px); font: 700 clamp(34px, 4.6vw, 58px)/1.02 var(--display); letter-spacing: .005em; }

.features { background: linear-gradient(180deg, var(--night) 0%, #0e0a26 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.card { margin: 0; }
.card figure { position: relative; margin: 0 0 18px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--ink); }
.card figure::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(242, 245, 255, .08); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.card:hover img { transform: scale(1.05); }
.card h3 { margin: 0 0 6px; font: 600 21px/1.25 var(--display); letter-spacing: .01em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }

.gallery { background: #0e0a26; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 14px; }
.g { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: var(--ink); }
.g-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.g-right { grid-column: 2 / span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: saturate(.95); }
.g:hover img { transform: scale(1.04); filter: saturate(1.1); }

.note { background: radial-gradient(120% 90% at 85% 10%, rgba(29, 2, 37, .95) 0%, #0e0a26 55%, var(--night) 100%); }
.note-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.note-side { position: relative; }
.note-side .h2 { position: sticky; top: 110px; }
.note-moon { width: 76px; height: 76px; margin-bottom: 30px; border-radius: 50%;
  background: radial-gradient(circle at 36% 36%, #fff3dd 0%, var(--amber) 55%, #d98a3a 100%);
  box-shadow: 0 0 60px rgba(255, 191, 102, .45), 0 0 140px rgba(255, 191, 102, .18); }
.note-body p { margin: 0 0 1.1em; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.72; color: rgba(242, 245, 255, .84); }
.note-body .note-hi { font: 600 clamp(22px, 2.2vw, 27px)/1.35 var(--ui); color: var(--text); margin-bottom: 1.2em; }
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(242, 245, 255, .04); color: var(--text-2); cursor: pointer; text-decoration: none; font-size: 15px; transition: border-color .2s, color .2s; }
.contact-link:hover { border-color: rgba(65, 232, 255, .5); color: var(--text); }
.contact-link svg { color: var(--cyan); }
.contact-link b { color: var(--text); font-weight: 600; }
.copied { font-style: normal; color: var(--cyan); font-size: 13px; }

.outro { overflow: hidden; text-align: center; isolation: isolate; padding: clamp(110px, 16vw, 200px) 0; }
.outro-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, rgba(11, 10, 30, .78) 30%, rgba(11, 10, 30, .5) 60%, rgba(7, 6, 21, .85) 100%), url(../img/outro-globe.jpg) center 30% / cover no-repeat; }
.outro-inner { display: flex; flex-direction: column; align-items: center; }
.outro .h2 { margin-bottom: 16px; }
.outro p { max-width: 30em; margin: 0 0 34px; color: var(--text-2); }
.wl-center { width: min(520px, 100%); }
.text-link { margin-top: 44px; color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--text); border-color: var(--magenta); }

.footer { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--text-3); background: var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--text); }
.privacy { margin: 0 0 0 auto; }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.cards .card:nth-child(3n+2), .grid .g:nth-child(3n+2) { transition-delay: .08s; }
.cards .card:nth-child(3n), .grid .g:nth-child(3n) { transition-delay: .16s; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 4, 16, .94); opacity: 0; transition: opacity .22s; padding: 60px 70px; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(242, 245, 255, .08); color: var(--text); cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(242, 245, 255, .18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lb-next { right: 14px; top: 50%; margin-top: -24px; }

/* ---------- Popup ---------- */
.popup { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(5, 4, 16, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .26s; }
.popup.is-open { opacity: 1; }
.popup-card { position: relative; width: min(760px, 100%); display: grid; grid-template-columns: 5fr 6fr; overflow: hidden;
  border-radius: 20px; background: #110e2c; border: 1px solid rgba(242, 245, 255, .1); box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  transform: translateY(14px) scale(.98); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.popup.is-open .popup-card { transform: none; }
.popup-art { background: url(../img/street-tokyo-sm.jpg) 30% center / cover; min-height: 300px; }
.popup-body { padding: 40px 34px 30px; }
.popup-body h2 { margin: 0 0 10px; font: 700 28px/1.1 var(--display); }
.popup-body p { margin: 0 0 24px; color: var(--text-2); font-size: 16px; }
.popup-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(242, 245, 255, .06); cursor: pointer; font-size: 24px; line-height: 1; }
.popup-later { display: block; margin: 16px auto 0; border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 14px; }
.popup-later:hover { color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .g-wide, .g-right { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .grid .g:last-child { display: none; }
  .note-wrap { grid-template-columns: 1fr; }
  .note-side .h2 { position: static; margin-bottom: 8px; }
  .note-moon { width: 56px; height: 56px; margin-bottom: 22px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { height: 60px; }
  .nav-links a:not(.nav-play) { display: none; }
  .nav-links .nav-play { padding: 8px 14px; font-size: 14px; }
  .brand span { font-size: 14px; }
  .hero { align-items: flex-end; }
  .hero-inner { padding-top: 100px; padding-bottom: 64px; }
  .hero-shade { background:
    linear-gradient(180deg, rgba(11, 10, 30, .55) 0%, rgba(11, 10, 30, 0) 22%),
    linear-gradient(0deg, var(--night) 0%, rgba(11, 10, 30, .8) 45%, rgba(11, 10, 30, .15) 80%); }
  .slide { background-position: 40% center; }
  .tagline { margin-top: 20px; }
  .tagline::before { margin-bottom: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px; }
  .hero-cta .btn-primary { height: 56px; }
  .hero-cta .wl, .wl-center { width: 100%; flex-direction: column; align-items: stretch; padding: 6px; }
  .wl .btn { width: 100%; }
  .wl input[type="email"] { flex: none; height: 50px; text-align: center; }
  .wl-msg { position: static; text-align: center; padding: 4px 0 2px; }
  .hero-foot { margin-top: 22px; text-align: center; }
  .scroll-cue { display: none; }
  .cards { grid-template-columns: 1fr; gap: 34px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .g { border-radius: 8px; }
  .lightbox { padding: 16px; }
  .lb-nav { top: auto; bottom: 20px; margin: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .popup { align-items: flex-end; padding: 0; }
  .popup-card { grid-template-columns: 1fr; border-radius: 20px 20px 0 0; }
  .popup-art { min-height: 130px; }
  .popup-body { padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); }
  .privacy { margin: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .slide { opacity: 0; } .slide.is-on { opacity: 1; }
}
