:root {
  --night: #050816;
  --ink: #090d20;
  --paper: #edf8ff;
  --muted: #9ba8bf;
  --cyan: #8ee9ff;
  --violet: #9c83ff;
  --coral: #ff8bad;
  --line: rgba(177, 213, 235, .18);
  --mx: 50%;
  --my: 50%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  color: var(--paper);
  background: var(--night);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #06101c; background: var(--cyan); }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .7; }
.grain {
  position: fixed; inset: -50%; z-index: 30; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain .22s steps(2) infinite;
}
@keyframes grain { 0%{transform:translate(0)} 25%{transform:translate(2%,-3%)} 50%{transform:translate(-3%,2%)} 75%{transform:translate(3%,4%)} 100%{transform:translate(-2%,-2%)} }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(24px, 5vw, 80px); border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(2,5,15,.8), transparent); backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 12px; width: max-content; font-weight: 750; letter-spacing: .16em; font-size: .86rem; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(142,233,255,.45); border-radius: 50%; color: var(--cyan); font-family: serif; box-shadow: inset 0 0 18px rgba(142,233,255,.12); }
.nav nav { display: flex; gap: 38px; }
.nav nav a { font-size: .76rem; letter-spacing: .12em; color: rgba(237,248,255,.7); transition: color .25s; }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--cyan); }
.sound { justify-self: end; display: flex; align-items: center; gap: 10px; color: rgba(237,248,255,.65); background: none; border: 0; cursor: pointer; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.sound-bars { display: flex; gap: 3px; align-items: center; height: 16px; }
.sound-bars i { display: block; width: 2px; height: 5px; background: var(--cyan); border-radius: 3px; }
.sound[aria-pressed="true"] .sound-bars i { animation: bars .7s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.35s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.15s; }
@keyframes bars { to { height: 15px; } }

.hero { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-image { position: absolute; inset: -4%; z-index: -3; background: url('assets/hero.jpg') center center / cover no-repeat; transform: scale(1.05); animation: breathe 18s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3,6,17,.94) 0%, rgba(4,7,18,.6) 38%, rgba(5,8,20,.08) 72%), linear-gradient(0deg, var(--night) 0%, transparent 27%); }
.hero::after { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(460px circle at var(--mx) var(--my), rgba(139,217,255,.10), transparent 65%); }
@keyframes breathe { to { transform: scale(1.1) translate3d(-.8%, -.5%, 0); } }
.hero-content { width: min(740px, 82vw); margin-left: clamp(24px, 9vw, 150px); padding-top: 68px; }
.eyebrow, .kicker { color: var(--cyan); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 15px; }
.eyebrow::before { content:""; width: 42px; height: 1px; background: var(--cyan); }
h1 { margin: 28px 0 24px; font-size: clamp(3.7rem, 8.4vw, 9rem); font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: .76; letter-spacing: -.065em; text-shadow: 0 12px 48px rgba(0,0,0,.55); }
h1 > span:last-child { display: block; font-size: .52em; font-style: italic; white-space: nowrap; }
.kanji { display: block; margin-bottom: .04em; color: transparent; -webkit-text-stroke: 1px rgba(218,241,255,.5); font-size: .42em; letter-spacing: .28em; transform: translateX(.12em); }
.hero-copy { max-width: 520px; margin: 34px 0 42px; color: rgba(230,242,250,.74); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.75; }
.cta { display: inline-flex; align-items: center; gap: 32px; min-height: 58px; padding: 7px 8px 7px 25px; border: 1px solid rgba(142,233,255,.34); background: rgba(8,15,35,.32); backdrop-filter: blur(12px); font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; transition: border-color .25s, transform .25s, background .25s; }
.cta:hover { transform: translateY(-3px); border-color: var(--cyan); background: rgba(142,233,255,.1); }
.cta-arrow { width: 42px; height: 42px; display: grid; place-items: center; color: #051019; background: var(--cyan); font-size: 1.1rem; }
.hero-meta { position: absolute; right: clamp(20px,4vw,64px); bottom: 42px; display: flex; gap: 24px; color: rgba(220,238,248,.45); font: .62rem/1 monospace; letter-spacing: .12em; }
.scroll-cue { position: absolute; left: clamp(24px,5vw,80px); bottom: 37px; display: flex; align-items: center; gap: 12px; color: rgba(230,245,255,.5); font: .6rem/1 monospace; letter-spacing: .2em; writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 42px; position: relative; overflow: hidden; background: rgba(255,255,255,.18); }
.scroll-cue span::after { content:""; position:absolute; inset: -100% 0 auto; height:100%; background: var(--cyan); animation: scrollLine 2s infinite; }
@keyframes scrollLine { to { transform: translateY(200%); } }

.section { position: relative; z-index: 3; padding: 145px clamp(24px, 8vw, 130px); background: var(--night); }
.section-no { color: rgba(142,233,255,.55); font: .65rem/1.2 monospace; letter-spacing: .2em; text-transform: uppercase; }
.story { min-height: 100vh; background: radial-gradient(circle at 82% 30%, rgba(74,59,147,.18), transparent 32%), var(--night); }
.story-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.7fr); gap: clamp(60px,10vw,180px); align-items: start; margin-top: 70px; }
.section-heading h2, .section-top h2, .signal h2 { margin: 18px 0 0; font: 400 clamp(3.1rem, 6.2vw, 7.3rem)/.95 Georgia, serif; letter-spacing: -.055em; }
.section-heading h2 em, .signal h2 em { color: var(--cyan); font-weight: 400; }
.story-copy { padding-top: 54px; }
.story-copy p { color: var(--muted); line-height: 1.9; }
.story-copy .lead { color: #dceafa; font: 1.25rem/1.7 Georgia, serif; }
.quote { margin-top: 56px; padding: 24px 0 24px 26px; border-left: 1px solid var(--coral); color: #dceafa; font: italic 1.18rem/1.5 Georgia, serif; }
.quote span { display: block; margin-top: 10px; color: #7f8aa2; font: .68rem/1.5 monospace; text-transform: uppercase; letter-spacing: .08em; }

.worlds { background: #070a18; overflow: hidden; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-top h2 { font-size: clamp(2.8rem,5.2vw,6rem); }
.section-top > p { max-width: 320px; color: var(--muted); font-size: .78rem; line-height: 1.6; letter-spacing: .08em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px; perspective: 1000px; }
.card { position: relative; min-height: 480px; padding: 28px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(17,25,54,.82), rgba(6,9,23,.9)); transition: border-color .35s, transform .15s ease-out; transform-style: preserve-3d; }
.card::after { content:""; position:absolute; inset:0; opacity:0; background: radial-gradient(350px circle at var(--cx,50%) var(--cy,50%), rgba(142,233,255,.14), transparent 55%); transition:opacity .25s; }
.card:hover { border-color: rgba(142,233,255,.45); }
.card:hover::after { opacity:1; }
.card-index { position: relative; z-index: 2; color: rgba(235,247,255,.3); font: italic 1.6rem Georgia, serif; }
.card-orb { position: absolute; width: 240px; height: 240px; top: 22%; left: calc(50% - 120px); border-radius: 50%; filter: blur(2px); transform: translateZ(30px); }
.orb-cyan { background: radial-gradient(circle at 35% 32%, #dffcff, #4ba7e4 25%, #172050 64%, transparent 67%); box-shadow: 0 0 90px rgba(65,174,232,.24); }
.orb-violet { background: radial-gradient(circle at 35% 32%, #eee6ff, #825ce2 25%, #251451 64%, transparent 67%); box-shadow: 0 0 90px rgba(132,87,230,.26); }
.orb-coral { background: radial-gradient(circle at 35% 32%, #ffe6ed, #f06d9c 25%, #4f1835 64%, transparent 67%); box-shadow: 0 0 90px rgba(240,94,147,.25); }
.card-body { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 30px; transform: translateZ(38px); }
.card-body > span { color: rgba(142,233,255,.55); font: .65rem monospace; letter-spacing: .16em; }
.card h3 { margin: 11px 0 13px; font: 400 1.7rem/1.15 Georgia, serif; }
.card p { margin: 0; color: #8592aa; font-size: .85rem; line-height: 1.65; }

.signal { min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding-bottom: 90px; background: radial-gradient(circle at 50% 52%, rgba(63,116,170,.14), transparent 34%), #050713; text-align: center; }
.signal-content { position: relative; z-index: 3; }
.signal h2 { margin: 22px 0 45px; }
.text-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid rgba(142,233,255,.36); color: var(--cyan); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.signal-rings, .signal-rings i { position: absolute; inset: 50% auto auto 50%; width: min(70vw, 850px); aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; }
.signal-rings i { width:100%; border: 1px solid rgba(142,233,255,.1); animation: pulse 5s ease-out infinite; }
.signal-rings i:nth-child(2) { animation-delay: -1.66s; }
.signal-rings i:nth-child(3) { animation-delay: -3.33s; }
@keyframes pulse { 0%{transform:translate(-50%,-50%) scale(.45);opacity:0} 20%{opacity:1} 100%{transform:translate(-50%,-50%) scale(1.15);opacity:0} }
footer { position: absolute; left: clamp(24px,8vw,130px); right: clamp(24px,8vw,130px); bottom: 34px; display:flex; justify-content:space-between; color:rgba(220,240,250,.3); font:.58rem monospace; letter-spacing:.15em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity:1; transform:translateY(0); }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .24s; }
.hero .reveal:nth-child(4) { transition-delay: .36s; }

@media (max-width: 860px) {
  .nav { height: 68px; grid-template-columns: 1fr auto; padding: 0 22px; }
  .nav nav { display:none; }
  .sound-label { display:none; }
  .hero-image { inset:-2%; background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,6,17,.88), rgba(4,7,18,.22)), linear-gradient(0deg, var(--night), transparent 45%); }
  .hero-content { width:auto; margin: 0 24px; }
  h1 { font-size: clamp(3.4rem,18vw,6.4rem); line-height:.82; }
  h1 > span:last-child { font-size:.46em; white-space: normal; line-height:.95; }
  .hero-copy { max-width: 88%; font-size:1rem; }
  .hero-meta { display:none; }
  .scroll-cue { left:auto; right:22px; }
  .section { padding: 100px 24px; }
  .story-grid { grid-template-columns:1fr; gap:35px; margin-top:45px; }
  .story-copy { padding-top:0; }
  .section-top { align-items:start; flex-direction:column; }
  .cards { grid-template-columns:1fr; }
  .card { min-height:390px; }
  .signal-rings { width: 130vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; }
  .reveal { opacity:1; transform:none; }
}
