* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #020713; }
body { color: #f5d698; font-family: Georgia, serif; }
@font-face { font-family: NoediumSerif; src: url("../assets/noedium-serif.otf") format("opentype"); font-style: normal; font-weight: 400; font-display: swap; }
.teaser { width: 100%; height: 100vh; height: 100svh; min-height: 340px; position: relative; overflow: hidden; isolation: isolate; }
.scene-loading .scene { visibility: hidden; }

.loading-screen { display: none; position: fixed; inset: 0; z-index: 50; place-items: center; padding: 24px; background: #020713; overflow: hidden; }
.scene-loading .loading-screen, .scene-arriving .loading-screen { display: grid; }
.loading-title { opacity: 0; color: #f3d9a2; font-family: NoediumSerif, "Times New Roman", serif; font-size: clamp(17px, 2.2vw, 29px); letter-spacing: .16em; text-align: center; text-shadow: 0 0 16px #f2a45d66; }
.loader-font-ready .loading-title { opacity: 1; animation: loading-glow 2.4s ease-in-out infinite; }
.entry-flash { display: none; position: fixed; inset: 0; z-index: 51; pointer-events: none; background: radial-gradient(circle at 50% 50%, #fff6d9 0%, #ffc579 6%, #6a8eff 19%, transparent 55%); }
.scene-arriving .loading-screen { pointer-events: none; animation: veil-burst .72s ease-in both; }
.scene-arriving .loading-title { animation: title-burst .72s ease-in both !important; }
.scene-arriving .entry-flash { display: block; animation: light-burst .9s ease-out both; }
.scene-arriving .scene { animation: scene-burst .9s cubic-bezier(.17,.8,.2,1) both; }
@keyframes loading-glow { 0%, 100% { opacity: .55; text-shadow: 0 0 10px #f2a45d55; } 50% { opacity: 1; text-shadow: 0 0 22px #f2a45dbb; } }
@keyframes veil-burst { 0%, 12% { opacity: 1; } 55% { opacity: .15; } 100% { opacity: 0; } }
@keyframes title-burst { 0% { opacity: 1; transform: scale(1); filter: blur(0); } 38% { opacity: 1; transform: scale(1.3); filter: blur(2px); } 100% { opacity: 0; transform: scale(2); filter: blur(12px); } }
@keyframes light-burst { 0%, 9% { opacity: 0; transform: scale(.45); } 26% { opacity: .72; transform: scale(1); } 100% { opacity: 0; transform: scale(2); } }
@keyframes scene-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.82); filter: blur(12px) brightness(2.1); } 42% { opacity: 1; transform: translate(-50%, -50%) scale(1.035); filter: blur(2px) brightness(1.35); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: none; } }

.scene { position: absolute; width: max(100vw, 177.6833svh); height: max(100svh, 56.2809vw); aspect-ratio: 1672/941; left: 50%; top: 50%; transform: translate(-50%, -50%); overflow: hidden; }
.scene > img, .scene > picture > img { position: absolute; width: 100%; height: 100%; inset: 0; display: block; object-fit: fill; user-select: none; pointer-events: none; }
.desktop-bg { z-index: 1; }
.desktop-galaxy { z-index: 2; }
.desktop-face { z-index: 3; }
.desktop-hole { z-index: 4; }
.patch { z-index: 8; }
#desktop-logo { z-index: 9; inset: auto; left: 50%; top: 8.08%; width: 44.5%; height: auto; transform: translateX(-50%); mix-blend-mode: screen; }
.logo-glints { position: absolute; z-index: 10; left: 50%; top: 8.08%; width: 44.5%; aspect-ratio: 744 / 158; transform: translateX(-50%); pointer-events: none; }
.logo-glints::after { content: ""; position: absolute; left: 50%; top: 93.04%; width: 14px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff7df 0 17%, #ffd79a 28%, #f5a74988 55%, transparent 75%); box-shadow: 0 0 7px 1px #f7ad5566; animation: logo-pulse 5.5s ease-in-out infinite; }
.mobile-logo-glints { display: none; }
.event-horizon { z-index: 5; mix-blend-mode: screen; opacity: .04; -webkit-mask-image: radial-gradient(ellipse 25% 22% at 50% 48%, transparent 35%, #000 51% 70%, transparent 88%); mask-image: radial-gradient(ellipse 25% 22% at 50% 48%, transparent 35%, #000 51% 70%, transparent 88%); animation: horizon-glow 9s ease-in-out infinite; }
.network-trace { z-index: 3; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 35% 60%, transparent 73%); mask-image: linear-gradient(to bottom, transparent 25%, #000 35% 60%, transparent 73%); animation: network-surge 12s ease-in-out infinite; }
.patch-arrow { -webkit-mask-image: radial-gradient(ellipse 3.8% 4.2% at 50% 94.5%, #000 48%, transparent 100%); mask-image: radial-gradient(ellipse 3.8% 4.2% at 50% 94.5%, #000 48%, transparent 100%); }
.patch-subtitle { -webkit-mask-image: radial-gradient(ellipse 29% 3.2% at 50% 26.6%, #000 78%, transparent 100%); mask-image: radial-gradient(ellipse 29% 3.2% at 50% 26.6%, #000 78%, transparent 100%); }
.patch-ending { -webkit-mask-image: radial-gradient(ellipse 31% 10% at 50% 85%, #000 75%, transparent 100%); mask-image: radial-gradient(ellipse 31% 10% at 50% 85%, #000 75%, transparent 100%); }
.editable { position: absolute; z-index: 10; left: 50%; transform: translateX(-50%); width: 70%; margin: 0; text-align: center; pointer-events: none; font-family: NoediumSerif, "Times New Roman", serif; font-weight: 400; }
.subtitle { top: 24.6%; color: #f6d895; font-size: clamp(13px, 1.78vw, 29px); letter-spacing: .31em; text-indent: .31em; line-height: 1.3; text-shadow: 0 0 8px #e18d43aa, 0 2px 12px #03020a; }
.bottom-copy { position: absolute; z-index: 10; left: 50%; bottom: 10%; transform: translateX(-50%); width: 70%; display: flex; flex-direction: column; align-items: center; gap: clamp(5px, .8svh, 11px); pointer-events: none; }
.bottom-copy .editable { position: static; left: auto; transform: none; width: 100%; }
.ending { color: #f8dfa7; font-size: clamp(15px, 1.84vw, 30px); letter-spacing: .18em; text-indent: .18em; line-height: 1.25; text-shadow: 0 2px 5px #03020a; }
.bookline { color: #eed7a1; font-size: clamp(10px, .98vw, 16px); letter-spacing: .17em; line-height: 1.25; text-transform: uppercase; text-shadow: 0 2px 7px #000; }
.soon { color: #e3d5c4; font-size: clamp(12px, 1.08vw, 18px); letter-spacing: .34em; text-indent: .34em; line-height: 1.3; text-shadow: 0 2px 5px #000; }
.spark { position: absolute; z-index: 7; width: .22%; aspect-ratio: 1; border-radius: 50%; background: #ffcc87; box-shadow: 0 0 8px 3px #f98428, 0 0 23px 5px #f9842877; animation: spark 9s ease-in-out infinite; pointer-events: none; }
.spark.blue { background: #c5eaff; box-shadow: 0 0 8px 3px #267dff, 0 0 22px 5px #267dff77; }
.spark.a { left: 34%; top: 48%; animation-delay: -2s; }
.spark.b { left: 40%; top: 37%; animation-delay: -5s; }
.spark.c { left: 61%; top: 34%; animation-delay: -1s; }
.spark.d { left: 66%; top: 51%; animation-delay: -6s; }
.spark.e { left: 73%; top: 27%; animation-delay: -3s; }
.spark.f { left: 83%; top: 39%; animation-delay: -7s; }
.spark.g { left: 9%; top: 22%; animation-delay: -1s; }
.spark.h { left: 16%; top: 32%; animation-delay: -6s; }
.spark.i { left: 21%; top: 25%; animation-delay: -3.5s; }
.spark.j { left: 27%; top: 43%; animation-delay: -8s; }
.spark.k { left: 29%; top: 31%; animation-delay: -4.5s; }
.spark.l { left: 36%; top: 40%; animation-delay: -7.8s; }
.spark.m { left: 57%; top: 40%; animation-delay: -2.8s; }
.spark.n { left: 67%; top: 39%; animation-delay: -5.8s; }
.spark.o { left: 78%; top: 29%; animation-delay: -8.6s; }
.spark.p { left: 12%; top: 37%; animation-delay: -2.4s; }
.spark.q { left: 19%; top: 43%; animation-delay: -6.7s; }
.spark.r { left: 31%; top: 27%; animation-delay: -1.6s; }
.spark.s { left: 37%; top: 52%; animation-delay: -4.1s; }
.spark.t { left: 63%; top: 29%; animation-delay: -7.2s; }
.spark.u { left: 70%; top: 46%; animation-delay: -3.1s; }
.spark.v { left: 76%; top: 35%; animation-delay: -5.4s; }
.spark.w { left: 85%; top: 49%; animation-delay: -8.2s; }
canvas { z-index: 7; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .96; }
.quote { position: absolute; z-index: 11; left: 50%; bottom: calc(100% + clamp(12px, 1.7svh, 22px)); width: min(92vw, 1260px); transform: translateX(-50%); text-align: center; color: #f7dfa8; text-shadow: 0 2px 12px #000, 0 0 16px #000; font-size: clamp(16px, 1.45vw, 25px); line-height: 1.3; letter-spacing: .035em; font-style: italic; padding: 9px 20px; background: linear-gradient(90deg, transparent, #02071388 10%, #020713a0 50%, #02071388 90%, transparent); opacity: 0; transition: opacity 2s ease; pointer-events: none; }
.quote.visible { opacity: .93; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes horizon-glow { 0%, 100% { opacity: .025; filter: brightness(1); } 45% { opacity: .20; filter: brightness(1.25); } 70% { opacity: .06; filter: brightness(1.05); } }
@keyframes network-surge { 0%,100% { opacity: .05; filter: brightness(1); } 47% { opacity: .19; filter: brightness(1.5); } }
@keyframes spark { 0%, 29%, 42%, 100% { opacity: 0; transform: scale(.2); } 34% { opacity: .8; transform: scale(1); } 37% { opacity: .25; transform: scale(.6); } }
@keyframes logo-pulse { 0%, 100% { opacity: .28; transform: translate(-50%, -50%) scale(.8); } 50% { opacity: .68; transform: translate(-50%, -50%) scale(1.14); } }
.mobile-art { display: none; }
@media (max-aspect-ratio: 4/5) {
  .scene { width: 100vw; height: 100svh; }
  .scene > img, .scene > picture > img, .scene > canvas, .scene > .spark, .desktop-logo-glints { display: none; }
  .mobile-art { display: block; position: absolute; inset: 0; overflow: hidden; }
  .mobile-art img { position: absolute; width: auto; height: auto; max-width: none; object-fit: fill; pointer-events: none; }
  .mobile-art .mobile-bg { width: max(100vw, 160svh); height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
  .mobile-art .mobile-water { z-index: 1; }
  .mobile-art .mobile-galaxy { z-index: 2; width: 540px; height: 304px; left: calc(50% - 215px); top: 15%; }
  .mobile-art .mobile-face { z-index: 3; width: 585px; height: 329px; left: calc(50% - 378px); top: 18.5%; }
  .mobile-art .mobile-hole { z-index: 4; width: 624px; height: 351px; left: calc(50% - 317px); top: 27.5%; }
  .mobile-art .mobile-horizon { z-index: 5; width: 624px; height: 351px; left: calc(50% - 317px); top: 27.5%; opacity: .04; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse 25% 22% at 50% 48%, transparent 35%, #000 51% 70%, transparent 88%); mask-image: radial-gradient(ellipse 25% 22% at 50% 48%, transparent 35%, #000 51% 70%, transparent 88%); animation: horizon-glow 9s ease-in-out infinite; }
  #mobile-logo { z-index: 6; inset: auto; width: min(360px, 90vw); height: auto; left: 50%; top: 30px; transform: translateX(-50%); mix-blend-mode: screen; }
  .mobile-logo-glints { display: block; z-index: 8; width: min(360px, 90vw); top: 30px; }
  .mobile-logo-glints::after { width: 9px; }
  .mobile-art .mobile-spark { z-index: 7; width: 2px; }
  .mobile-spark.one { left: 28%; top: 32%; animation-delay: -2s; }
  .mobile-spark.two { left: 44%; top: 43%; animation-delay: -6s; }
  .mobile-spark.three { left: 19%; top: 38%; animation-delay: -4s; }
  .mobile-spark.four { left: 71%; top: 37%; animation-delay: -3s; }
  .mobile-spark.five { left: 81%; top: 47%; animation-delay: -7s; }
  .mobile-spark.six { left: 12%; top: 43%; animation-delay: -1.4s; }
  .mobile-spark.seven { left: 33%; top: 35%; animation-delay: -5.5s; }
  .mobile-spark.eight { left: 57%; top: 51%; animation-delay: -8.3s; }
  .mobile-spark.nine { left: 74%; top: 43%; animation-delay: -4.2s; }
  .mobile-spark.ten { left: 88%; top: 34%; animation-delay: -6.6s; }
  .subtitle { top: 119px; width: 92%; font-size: clamp(13px, 3.3vw, 19px); letter-spacing: .18em; }
  .bottom-copy { width: 92%; bottom: 5.5%; gap: clamp(5px, .75svh, 8px); }
  .ending { font-size: clamp(17px, 4.3vw, 23px); letter-spacing: .11em; }
  .bookline { font-size: clamp(10px, 2.55vw, 13px); letter-spacing: .13em; }
  .soon { font-size: clamp(12px, 3vw, 17px); letter-spacing: .25em; }
  .quote { bottom: calc(100% + 13px); width: min(96vw, 1000px); font-size: 15px; padding: 7px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-arriving .scene, .scene-arriving .loading-screen, .scene-arriving .loading-title, .scene-arriving .entry-flash { animation: none; }
  .network-trace, .spark, .event-horizon, .mobile-horizon { animation: none; }
  .network-trace, .spark, .event-horizon, .mobile-horizon { opacity: 0; }
  canvas, .quote, .logo-glints { display: none; }
}
