:root {
  color-scheme: dark;
  --bg: #07090a;
  --ink: #f1f4ed;
  --muted: rgba(241, 244, 237, 0.7);
  --faint: rgba(241, 244, 237, 0.5);
  --mint: #7fffc3;
  --cyan: #72cfff;
  --coral: #ff7e70;
  --yellow: #f7dc6f;
  --line: rgba(241, 244, 237, 0.14);
  --glass: rgba(9, 13, 12, 0.66);
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(114, 207, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(127, 255, 195, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--mint);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cyan);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hud {
  position: fixed;
  inset: clamp(10px, 1.6vw, 22px);
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(241, 244, 237, 0.06);
}

.hud i {
  position: absolute;
  width: clamp(22px, 3vw, 44px);
  height: clamp(22px, 3vw, 44px);
  border-style: solid;
}

.hud i:nth-child(1) { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-color: rgba(127, 255, 195, 0.66); }
.hud i:nth-child(2) { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-color: rgba(114, 207, 255, 0.58); }
.hud i:nth-child(3) { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-color: rgba(255, 126, 112, 0.6); }
.hud i:nth-child(4) { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-color: rgba(247, 220, 111, 0.55); }

.tags {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

html.webgl .tags {
  display: block;
}

.tag {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  will-change: transform, opacity;
  white-space: nowrap;
}

.tag.flip {
  flex-direction: row-reverse;
}

.tag i {
  flex: none;
  width: 10px;
  height: 10px;
  border: 2px solid var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(127, 255, 195, 0.7);
}

.tag b {
  flex: none;
  width: 28px;
  height: 1px;
  background: rgba(127, 255, 195, 0.6);
}

.tag span {
  display: grid;
  padding: 6px 11px;
  border: 1px solid rgba(127, 255, 195, 0.3);
  border-radius: 9px;
  background: rgba(7, 10, 9, 0.72);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.3;
}

.tag small {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(7, 9, 10, 0.82), rgba(7, 9, 10, 0));
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 30px) var(--gutter) 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark {
  font-size: 1.55rem;
  line-height: 0.8;
  font-weight: 760;
  letter-spacing: 0;
}

.wordmark .accent {
  -webkit-text-stroke-width: 0.9px;
}

.brand:hover {
  color: var(--ink);
}

.mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 29px;
  transform: rotate(-9deg);
  filter: drop-shadow(0 0 12px rgba(127, 255, 195, 0.35));
}

.mark .pepper {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18px;
  height: 23px;
  transform: translateX(-50%);
  border-radius: 42% 50% 44% 40% / 26% 28% 68% 72%;
  background: var(--mint);
}

.mark .stem {
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 7px;
  transform: translateX(-50%) rotate(8deg);
  background: var(--mint);
  border-radius: 65% 35% 55% 45% / 30% 55% 45% 70%;
}

.mark .stem::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -4px;
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: var(--mint);
  transform: rotate(14deg);
  transform-origin: bottom;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--mint);
}

.rail {
  position: fixed;
  right: clamp(22px, 2.6vw, 40px);
  top: 50%;
  z-index: 20;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.rail a {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(241, 244, 237, 0.4);
  border-radius: 50%;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.rail a span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease;
}

.rail a:hover span,
.rail a:focus-visible span,
.rail a.is-active span {
  opacity: 1;
}

.rail a.is-active {
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 12px rgba(127, 255, 195, 0.6);
  transform: scale(1.15);
}

main,
footer {
  position: relative;
  z-index: 5;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px var(--gutter) 80px;
}

.stage-inner {
  display: flex;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.stage.right .stage-inner {
  justify-content: flex-end;
}

.panel {
  width: min(480px, 100%);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  line-height: 0.8;
  font-weight: 760;
  letter-spacing: 0;
}

.accent {
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 244, 237, 0.85);
}

.panel p {
  margin: 16px 0 0;
  color: var(--muted);
}

.panel h2 + p {
  margin-top: 24px;
}

.hero {
  align-items: flex-end;
  padding-bottom: clamp(56px, 9vh, 110px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 9, 10, 0.92) 0%, rgba(7, 9, 10, 0.55) 34%, rgba(7, 9, 10, 0) 62%);
}

.hero .stage-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 6vw, 96px);
  align-items: end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 3vh, 28px);
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(127, 255, 195, 0.38);
  border-radius: 999px;
  background: rgba(7, 12, 10, 0.6);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

h1 {
  margin: 0;
  font-size: clamp(3.3rem, 10vw, 9rem);
  line-height: 0.8;
  font-weight: 760;
  letter-spacing: 0;
  text-shadow: 0 0 60px rgba(7, 9, 10, 0.8);
}

.jp {
  display: block;
  margin-top: clamp(16px, 3vh, 26px);
  font-size: clamp(0.75rem, 1.3vw, 0.95rem);
  letter-spacing: 0.34em;
  font-weight: 540;
  color: var(--faint);
}

.lede {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
}

.lede strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid rgba(241, 244, 237, 0.22);
  color: var(--ink);
  background: rgba(7, 10, 9, 0.55);
  transition: border-color 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--ink);
  border-color: rgba(241, 244, 237, 0.5);
  background: rgba(241, 244, 237, 0.08);
}

.button.primary {
  color: #06110b;
  background: var(--mint);
  border-color: var(--mint);
}

.button.primary:hover {
  color: #06110b;
  background: #a6ffd6;
  border-color: #a6ffd6;
}

.panel .tagline {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.chip.status {
  color: var(--yellow);
  border-color: rgba(247, 220, 111, 0.35);
}

.contact-mail {
  display: inline-block;
  margin-top: 18px;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 700;
  word-break: break-word;
}

footer {
  padding: 26px var(--gutter) 36px;
  font-size: 0.8125rem;
  color: var(--faint);
  background: linear-gradient(to top, rgba(7, 9, 10, 0.95), rgba(7, 9, 10, 0));
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .rail {
    display: none;
  }

  .stage {
    align-items: flex-end;
    padding-top: 52vh;
    padding-top: 52svh;
    padding-bottom: 40px;
  }

  .stage.right .stage-inner {
    justify-content: flex-start;
  }

  .panel {
    width: 100%;
  }

  .hero {
    padding-top: 38vh;
    padding-top: 38svh;
  }

  .hero::before {
    background: linear-gradient(to top, rgba(7, 9, 10, 0.95) 0%, rgba(7, 9, 10, 0.75) 45%, rgba(7, 9, 10, 0) 72%);
  }

  .hero .stage-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag span {
    font-size: 0.75rem;
    padding: 4px 9px;
  }

  .tag b {
    width: 16px;
  }
}

@media (max-width: 560px) {
  .site-nav a:not(:last-child) {
    display: none;
  }

  .jp {
    letter-spacing: 0.24em;
  }

  .hud {
    border-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
