@font-face {
  font-family: Epetri;
  src: url('/fonts/Epetri-AIRY-regular1.otf') format('opentype');
  font-display: swap;
}
:root { color-scheme: dark; --ink: #eeeae3; --muted: #92969e; --line: #ffffff14; }
* { box-sizing: border-box; }
html { min-width: 280px; background: #080a0e; }
body { margin: 0; min-height: 100svh; color: var(--ink); font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; isolation: isolate; }
::selection { background: #a5b7c344; color: #fff; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #c1d9e6; outline-offset: 5px; }
#starfield, .atmosphere { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -3; }
.atmosphere { z-index: -2; background: radial-gradient(ellipse at 17% 62%, #92806f0d, transparent 45%), radial-gradient(ellipse at 77% 33%, #628e9e10, transparent 47%), radial-gradient(ellipse at 50% 45%, transparent 20%, #06070a85 100%); }
.atmosphere::before, .atmosphere::after { content: ''; position: absolute; left: 50%; top: 50%; width: 108vmax; height: 108vmax; transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; }
.atmosphere::before {
  background: radial-gradient(circle closest-side, transparent 83.5%, #bd806b05 84.5%, #d4a08424 85.6%, #e2c3a647 86.3%, #dce0d55c 87.1%, #b6ccd54d 88%, #97b5cc2c 89.2%, #8a9fbd0d 91%, transparent 93%);
  filter: blur(1px);
  opacity: .8;
}
.atmosphere::after {
  background: radial-gradient(circle closest-side, transparent 81%, #d2b7a406 84.5%, #e0e7e712 87.2%, #a5c4d60c 89.5%, transparent 94%);
  filter: blur(5px);
  opacity: .5;
}
.orbit { position: fixed; left: 50%; top: 50%; width: min(115vw, 1300px); height: min(68vw, 730px); border: 1px solid #bdc8d209; border-radius: 50%; pointer-events: none; z-index: -1; transform: translate(-50%, -50%) rotate(-32deg); }
.orbit-two { width: min(140vw, 1570px); height: min(85vw, 950px); transform: translate(-50%, -50%) rotate(-32deg); border-color: #bdc8d206; }
main { flex: 1; display: grid; place-items: center; padding: max(48px, env(safe-area-inset-top)) 24px max(48px, env(safe-area-inset-bottom)); }
.portal { width: min(100%, 550px); }
.name-wrap { text-align: center; margin-bottom: 34px; }
h1 { margin: 0; font: 400 clamp(48px, 6.2vw, 72px)/.94 Epetri, Georgia, serif; letter-spacing: -.025em; text-shadow: -1px 0 16px #ee9c9c0e, 1px 0 18px #b5e5ff12; }
.name-line { display: block; white-space: nowrap; }
.name-line + .name-line { margin-top: 13px; }
.glyph { position: relative; display: inline-block; width: var(--cell); height: 1em; vertical-align: top; }
.glyph-original, .glyph-mono { position: absolute; inset: 0; display: grid; place-items: center; }
.glyph svg { display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor; }
.glyph-mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .73em; opacity: 0; }
.glyph.shift .glyph-original { animation: glyph-out .65s var(--delay, 0ms) both; }
.glyph.shift .glyph-mono { animation: glyph-in .65s var(--delay, 0ms) both; }
@keyframes glyph-out { 0% { opacity: 1; filter: blur(0); transform: translateY(0); } 50% { filter: blur(3px); } 100% { opacity: 0; transform: translateY(-2px) scaleX(1.08); filter: blur(0); } }
@keyframes glyph-in { 0% { opacity: 0; filter: blur(3px); transform: translateY(3px) scaleX(.9); } 100% { opacity: 1; filter: blur(0); transform: translateY(0); } }
.glass { position: relative; padding: 25px 26px 16px; border: 1px solid #ffffff20; border-radius: 24px; background: linear-gradient(145deg, #c9d2dc0c, #a0afbd04 45%, #b6a79509); box-shadow: 0 20px 80px #0005, inset 0 1px 0 #fff1, inset 1px 0 0 #ffffff04; -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); }
.glass::before { content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, #e2e6ee60, transparent); }
.menu { display: grid; gap: 9px; }
.menu-item { min-height: 88px; padding: 18px; border: 1px solid #ffffff0d; border-radius: 13px; display: flex; align-items: center; gap: 17px; background: linear-gradient(105deg, #ffffff06, #ffffff02); transition: background .3s, border-color .3s, transform .3s, box-shadow .3s; }
.menu-item:hover { background: linear-gradient(105deg, #ffffff0e, #ffffff06); border-color: #ffffff26; transform: translateY(-2px); box-shadow: 0 6px 24px #0002; }
.menu-item:active { transform: scale(.985); }
.item-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid #ffffff12; border-radius: 12px; color: #dedde2; background: #ffffff04; font-size: 24px; }
.item-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.item-copy { min-width: 0; display: grid; gap: 3px; }
.item-title { font-size: 16px; font-weight: 500; letter-spacing: .015em; }
.item-detail { color: #9b9da8; font-size: 14px; overflow-wrap: anywhere; }
.panel-bottom { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 17px; color: #878c99; }
.fine-line { width: 26px; height: 1px; background: #fff1; }
.tiny-spark { font-size: 15px; line-height: 1; }
@media (min-width: 900px) and (min-height: 800px) { .name-wrap { margin-bottom: 42px; } }
@media (max-width: 600px) {
  main { padding: 44px 20px 48px; }
  h1 { font-size: clamp(30px, 9.5vw, 57px); }
  .name-wrap { margin-bottom: 30px; }
  .glass { padding: 22px 16px 15px; border-radius: 21px; }
  .menu-item { padding: 17px 13px; gap: 13px; min-height: 84px; }
  .item-detail { font-size: 14px; }
  .orbit { width: 190vw; height: 100vw; }
  .orbit-two { width: 240vw; height: 140vw; }
}
@media (max-height: 700px) { main { padding-top: 24px; padding-bottom: 24px; } .name-wrap { margin-bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
html, body { height: 100%; overflow: hidden; }
body { height: 100svh; min-height: 0; }
main { min-height: 0; padding: clamp(16px, 5svh, 48px) 24px; }
@media (max-height: 480px) {
  main { padding: 12px 20px; }
  h1 { font-size: clamp(25px, 8vw, 42px); }
  .name-wrap { margin-bottom: 18px; }
  .name-line + .name-line { margin-top: 8px; }
  .glass { padding: 12px 14px 10px; }
  .menu-item { min-height: 64px; padding: 10px 12px; }
  .item-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .panel-bottom { padding-top: 10px; }
}
h1 { font: 400 clamp(18px, 5.7vw, 52px)/1.1 Epetri, Georgia, serif; letter-spacing: -.025em; }

.intro[hidden] { display: none; }
.intro { position: fixed; inset: 0; z-index: 10; overflow: hidden; background: #080a0ef5; }
.intro-name { width: 100%; height: 100%; display: grid; place-items: center; }
.intro-word { display: flex; align-items: center; justify-content: center; white-space: nowrap; color: #eeebe5; font: 400 min(17svh, 10vw, 132px)/1 Epetri, Georgia, serif; }
.intro .glyph { flex: 0 0 auto; height: 1em; }
.intro .glyph-original { inset: 0; }
.intro-active main { visibility: hidden; }
.intro-revealing main { visibility: visible; animation: beam-arrive 1.5s .1s cubic-bezier(.16, 1, .3, 1) both; }
.intro-revealing .name-wrap, .intro-revealing .glass > * { animation: beam-content 1.5s .1s cubic-bezier(.16, 1, .3, 1) both; }
.intro-revealing .intro { pointer-events: none; animation: intro-clear 1.7s both; }
.intro .word-leaving .glyph { animation: letter-lift .75s var(--beam-delay) cubic-bezier(.55, 0, .25, 1) both; transform-origin: 50% 0; }
.intro .glyph::after { content: ''; position: absolute; inset: -70svh 5% 0; opacity: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 8%, #c5edff80 8.4% 8.8%, transparent 9.3% 18%), linear-gradient(0deg, #d9edff55, #7dcafa18 35%, transparent 85%); filter: blur(3px); mix-blend-mode: screen; transform-origin: 50% 100%; }
.intro .word-leaving .glyph::after { animation: letter-trail .75s var(--beam-delay) both; }
@keyframes letter-lift {
  0%, 10% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
  35% { opacity: .95; filter: blur(2px) drop-shadow(0 -8px 10px #b3eaff); transform: translateY(-3svh) scale(.98, 1.08); }
  65% { opacity: .7; filter: blur(7px) drop-shadow(0 -20px 15px #8ed7ff); transform: translateY(-28svh) scale(.88, 1.5) rotate(1deg); }
  100% { opacity: 0; filter: blur(18px); transform: translateY(-125svh) scale(.6, 2.6) rotate(2deg); }
}
@keyframes letter-trail {
  0%, 10% { opacity: 0; transform: scaleY(.1); }
  35% { opacity: .85; transform: scaleY(.7); }
  70% { opacity: .6; transform: scaleY(1.5); }
  100% { opacity: 0; transform: scaleY(2); }
}
@keyframes intro-clear { 0%, 25% { background: #080a0ef5; } 100% { background: #080a0e00; } }
@keyframes beam-arrive {
  from { transform: translateY(14svh) scale(.94) rotate(-2deg); }
  to { transform: translateY(0) scale(1) rotate(0); }
}
@keyframes beam-content {
  0% { opacity: 0; filter: blur(24px); }
  45% { opacity: .7; filter: blur(9px) drop-shadow(0 0 15px #b3eaff55); }
  100% { opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .intro-active main { opacity: 1; visibility: visible; }
}

.intro-active #starfield { opacity: 0; }
.intro-revealing #starfield { animation: starfield-arrive 1.5s .1s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes starfield-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .intro-active #starfield { opacity: 1; } }
.portal > .glass { -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.panel-film { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; mix-blend-mode: screen; }
.film-surface {
  position: absolute;
  inset: -15%;
  background-position: center;
  background-size: 100% 100%;
  opacity: .8;
  transform-origin: 43% 55%;
  transform: translate(-3%, 2%) scale(1.15) rotate(-8deg);
}
.film-ready .film-surface { background-image: url('/film.png'); }
.portal > .glass > .menu, .portal > .glass > .panel-bottom { position: relative; z-index: 1; }
.portal .menu-item { background: linear-gradient(105deg, #070a104a, #070a1033); }
.portal .menu-item:hover { background: linear-gradient(105deg, #070a1066, #070a104d); }
