@font-face {
  font-family: "Iosevka Aile";
  src: url("/assets/fonts/iosevka-aile-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #05130c;
  --mint: #8ff0a4;
  font-family: "Iosevka Aile", Iosevka, system-ui, sans-serif;
  background: var(--ground);
  color: var(--mint);
}

* { box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; }
.journey { height: 260svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.home, .railball, .liquid { position: absolute; inset: 0; width: 100%; height: 100%; }
.home { z-index: 3; display: grid; place-items: center; pointer-events: none; }
.wordmark {
  width: min(78vw, 720px);
  max-height: 70svh;
  object-fit: contain;
  height: auto;
  transform: skewX(-3deg);
  filter: drop-shadow(0 0 26px rgb(143 240 164 / .18));
}
.scroll { position: absolute; bottom: max(32px, 5svh); color: var(--mint); padding: 12px; pointer-events: auto; }
.scroll svg { width: 22px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.scroll:focus-visible { outline: 1px solid var(--mint); outline-offset: 6px; }
.liquid { z-index: 2; overflow: visible; pointer-events: none; }
.pool { fill: var(--ground); }
.rim { fill: none; stroke: var(--mint); stroke-opacity: .45; stroke-width: 1; }
.detached { stroke: var(--mint); stroke-opacity: .45; stroke-width: 1; }
.railball { z-index: 1; background: #000; }
.wall { position: absolute; inset: -1px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; background: #000; }
.film { overflow: hidden; background: var(--ground); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.railball::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgb(0 0 0 / .32), rgb(0 0 0 / .08) 65%, rgb(0 0 0 / .24)); }
.railball h2 { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; margin: 0; font-size: clamp(64px, 14vw, 240px); font-weight: 700; letter-spacing: -.025em; line-height: 1; opacity: 0; }
.railball a { color: var(--mint); text-decoration: none; text-shadow: 0 2px 2px #05130c, 0 8px 40px rgb(0 0 0 / .65); }
.railball a:focus-visible { outline: 2px solid var(--mint); outline-offset: 16px; }
.railball a:hover { text-shadow: 0 2px 2px #05130c, 0 0 36px rgb(143 240 164 / .25); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .wall { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
  .wordmark { width: 88vw; }
  .railball h2 { font-size: clamp(58px, 17vw, 118px); }
}

@media (prefers-reduced-motion: reduce) {
  .journey { height: 200svh; }
}

.community-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; min-height: 32px; display: flex; justify-content: flex-end; align-items: center; padding: 6px 18px; background: #05130c; border-bottom: 1px solid rgb(143 240 164 / .2); }
.community-header nav { display: flex; gap: 22px; }
.community-header a { color: var(--mint); font: 700 14px/1.4 "Iosevka Aile", system-ui, sans-serif; text-decoration: none; }
.community-header a:hover { text-decoration: underline; text-underline-offset: 4px; }
.community-header a:focus-visible { outline: 1px solid var(--mint); outline-offset: 3px; }

#contact { width: min(480px, calc(100vw - 32px)); max-height: calc(100svh - 40px); padding: 22px; border: 1px solid rgb(143 240 164 / .5); background: #000; color: var(--mint); font: 700 14px/1.4 "Iosevka Aile", system-ui, sans-serif; }
#contact::backdrop { background: rgb(0 0 0 / .75); }
.contact-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.contact-heading h2 { margin: 0; font-size: 20px; }
#contact button { background: transparent; border: 1px solid rgb(143 240 164 / .5); color: inherit; font: inherit; padding: 6px 16px; cursor: pointer; }
#contact #contact-close { border: 0; font-size: 24px; padding: 0 6px; line-height: 1; }
#contact button:hover { background: rgb(143 240 164 / .1); }
#contact button:disabled { opacity: .5; cursor: wait; }
#contact :focus-visible { outline: 1px solid var(--mint); outline-offset: 3px; }
#contact-form { display: flex; flex-direction: column; gap: 8px; }
#contact-form p { margin: 0; }
#contact-form label span, .contact-note { opacity: .65; }
#contact-form input[type="email"], #contact-form textarea { width: 100%; min-width: 0; border: 1px solid rgb(143 240 164 / .35); border-radius: 0; background: #05130c; color: inherit; font: inherit; padding: 9px 10px; }
#contact-form input[readonly] { opacity: .65; }
#contact-form textarea { resize: vertical; min-height: 100px; max-height: 40svh; }
#contact-email-note { font-size: 12px; margin-bottom: 8px; }
.contact-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
#contact-status { font-size: 12px; }
.contact-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body:has(#contact[open]) { overflow: hidden; }
