:root {
  --bg: #06060a;
  --bg-2: #0b0b12;
  --ink: #f3efe4;
  --muted: #9a97a3;
  --line: rgba(243, 239, 228, 0.12);
  --yellow: #fcee0a;
  --magenta: #ff2d95;
  --cyan: #4de8ff;
  --font-d: "Big Shoulders Display", sans-serif;
  --font-b: "Sora", sans-serif;
  --font-m: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--yellow);
  color: #111;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--yellow);
  color: #111;
  padding: 0.4rem 0.7rem;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.85'/></svg>");
}

.cursor {
  display: none;
}

@media (pointer: fine) {
  body.has-cursor {
    cursor: none;
  }
  body.has-cursor a,
  body.has-cursor button {
    cursor: none;
  }
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    border: 1px solid var(--yellow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 90;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.18s ease, background 0.18s ease;
  }
  .cursor.is-hot {
    transform: translate(-50%, -50%) scale(2.4);
    background: var(--yellow);
  }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: linear-gradient(180deg, rgba(6, 6, 10, 0.72), rgba(6, 6, 10, 0));
}

.nav.is-solid {
  background: rgba(6, 6, 10, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-d);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.nav__brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
}

.nav__links {
  display: flex;
  gap: 1.6rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav__links a {
  opacity: 0.7;
}

.nav__links a:hover {
  opacity: 1;
  color: var(--yellow);
}

.nav__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang--menu {
  display: none;
}

.lang button {
  padding: 0.28rem 0.55rem;
  font-family: var(--font-m);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.lang button.is-on {
  background: var(--yellow);
  color: #111;
  opacity: 1;
}

.clock {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 60;
  border: 1px solid var(--yellow);
  flex-shrink: 0;
}

.nav__burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--yellow);
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav__burger span:first-child {
  top: 12px;
}

.nav__burger span:last-child {
  bottom: 12px;
}

.nav__burger.is-open span:first-child {
  top: 17px;
  transform: rotate(45deg);
}

.nav__burger.is-open span:last-child {
  bottom: 17px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(5.5rem + 4vh) var(--pad) 5rem;
  isolation: isolate;
}

.hero__bg,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.hero__veil {
  background:
    linear-gradient(180deg, rgba(6, 6, 10, 0.25) 0%, rgba(6, 6, 10, 0.55) 45%, rgba(6, 6, 10, 0.92) 100%),
    radial-gradient(80% 50% at 70% 20%, rgba(255, 45, 149, 0.18), transparent 50%);
}

.hud span {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(252, 238, 10, 0.55);
  z-index: 2;
}

.hud__tl {
  top: 5.4rem;
  left: var(--pad);
  border-right: 0;
  border-bottom: 0;
}

.hud__tr {
  top: 5.4rem;
  right: var(--pad);
  border-left: 0;
  border-bottom: 0;
}

.hud__bl {
  bottom: 1.4rem;
  left: var(--pad);
  border-right: 0;
  border-top: 0;
}

.hud__br {
  bottom: 1.4rem;
  right: var(--pad);
  border-left: 0;
  border-top: 0;
}

.hero__kicker,
.hero__title,
.hero__lead,
.hero__cta,
.hero__meta {
  position: relative;
  z-index: 2;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.1rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(252, 238, 10, 0.7);
  animation: ping 1.8s infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 8px rgba(252, 238, 10, 0);
  }
}

.hero__jp {
  margin-left: auto;
  color: var(--cyan);
  opacity: 0.85;
  letter-spacing: 0.28em;
}

.hero__title {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(4.6rem, 16vw, 12.5rem);
  line-height: 0.78;
  letter-spacing: -0.03em;
}

.hero__title span {
  display: block;
}

.hero__title span:first-child {
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(252, 238, 10, 0.25);
}

.hero__title span:last-child {
  padding-left: 0.08em;
  color: rgba(243, 239, 228, 0.1);
  -webkit-text-stroke: 1.5px rgba(243, 239, 228, 0.88);
}

.hero__lead {
  max-width: 34rem;
  margin: 1.4rem 0 1.8rem;
  color: var(--ink);
  opacity: 0.86;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  font-family: var(--font-m);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--yellow {
  background: var(--yellow);
  color: #111;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  max-width: 42rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.hero__meta small {
  display: block;
  color: var(--magenta);
  letter-spacing: 0.18em;
  margin-bottom: 0.25rem;
}

.hero__scroll {
  position: absolute;
  right: calc(var(--pad) + 3rem);
  bottom: 2.4rem;
  z-index: 2;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(243, 239, 228, 0.35);
  border-radius: 99px;
}

.hero__scroll span {
  display: block;
  width: 3px;
  height: 7px;
  margin: 6px auto 0;
  background: var(--yellow);
  border-radius: 99px;
  animation: drop 1.4s infinite;
}

@keyframes drop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #08080e;
  overflow: hidden;
  white-space: nowrap;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-m);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--yellow);
  padding: 0.85rem 0;
}

.ticker__track span {
  padding-right: 2rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

section {
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad);
  scroll-margin-top: 4.5rem;
}

.section__head {
  margin-bottom: 2.6rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section__head h2 {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.crew {
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(255, 45, 149, 0.08), transparent 50%),
    var(--bg);
}

.crew__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.crew__copy p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.principles {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.principles li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.2rem 0.8rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.principles span {
  grid-row: span 2;
  font-family: var(--font-m);
  font-size: 0.7rem;
  color: var(--yellow);
  padding-top: 0.25rem;
}

.principles b {
  font-weight: 600;
}

.principles em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

.crew__visual {
  margin: 0;
  position: relative;
}

.crew__visual img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
  filter: contrast(1.05);
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
}

.crew__visual figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.crew__visual figcaption span:last-child {
  color: var(--magenta);
}

.systems {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg-2);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(252, 238, 10, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}

.card__n {
  font-family: var(--font-m);
  font-size: 0.72rem;
  color: var(--yellow);
  letter-spacing: 0.16em;
}

.card h3 {
  margin: 1.4rem 0 0.7rem;
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

.contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.contact__bg {
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: radial-gradient(60% 80% at 50% 100%, rgba(252, 238, 10, 0.12), transparent 70%);
}

.contact__lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact__mail {
  display: inline-block;
  margin: 0.4rem 0 1.6rem;
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 5.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--yellow);
  overflow-wrap: anywhere;
}

.contact__mail:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem var(--pad) 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-d);
  letter-spacing: 0.16em;
}

.foot__brand img {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(22px);
  }

  .js .reveal.is-in {
    animation: rise 0.8s ease forwards;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav__brand span {
    display: none;
  }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: #0b0b12;
    flex-direction: column;
    padding: 6rem 1.5rem 2rem;
    gap: 1.2rem;
    transform: translateX(110%);
    transition: transform 0.28s ease;
    z-index: 40;
  }

  .nav__links.is-open {
    transform: none;
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55);
  }

  .nav__burger {
    display: block;
  }

  .lang--bar {
    display: none;
  }

  .lang--menu {
    display: flex;
    width: max-content;
    margin-top: 1.4rem;
  }

  .clock,
  .hero__jp,
  .hud,
  .hero__scroll {
    display: none;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .hero__meta {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .crew__grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .crew__visual img {
    height: 46vh;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

html.compact .hero {
  min-height: 0;
  height: auto;
  padding-top: 6.5rem;
  padding-bottom: 2.5rem;
}

html.compact .hero__title {
  font-size: clamp(3.2rem, 8vw, 6rem);
}

html.compact .js .reveal:not(.is-in),
html.compact .js .reveal.is-in {
  opacity: 1;
  transform: none;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
