:root {
  --ink: #090a0c;
  --paper: #eceee8;
  --muted: #9a9d98;
  --acid: #c7ff45;
  --line: rgba(236, 238, 232, 0.16);
  --header-height: 86px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 300;
  font-display: block;
  src: url("./assets/fonts/dm-mono-300-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("./assets/fonts/dm-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("./assets/fonts/dm-mono-500-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-color: #454944 #111315;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body:not(.ready) {
  position: fixed;
  inset: 0;
  width: 100%;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: #111315;
}

html::-webkit-scrollbar-thumb {
  border: 2px solid #111315;
  border-radius: 10px;
  background: #454944;
}

html::-webkit-scrollbar-thumb:hover {
  background: #626760;
}

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

.mono {
  font-family: "DM Mono", monospace;
}

.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

#sound-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
}

.boot-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
  transition: transform 0.9s var(--ease) 0.25s;
}

body.ready .boot-screen {
  transform: translateY(-100%);
}

.boot-mark {
  display: grid;
  place-items: center;
  width: clamp(7rem, 16vw, 13rem);
  aspect-ratio: 1;
}

.boot-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.boot-progress {
  position: absolute;
  bottom: 12%;
  width: min(340px, 70vw);
  height: 1px;
  overflow: hidden;
  background: rgba(9, 10, 12, 0.25);
}

.boot-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  animation: load 1s var(--ease) both;
  transform-origin: left;
}

.boot-screen p {
  position: absolute;
  bottom: 7%;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

@keyframes load {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.page-transition {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  background: var(--acid);
  color: var(--ink);
  transform: translate3d(0, calc(100% + 2px), 0);
  will-change: transform;
}

.page-transition.entering {
  animation: transition-in 0.75s var(--ease) forwards;
}

.page-transition.leaving {
  animation: transition-out 0.75s var(--ease) forwards;
}

@keyframes transition-in {
  to { transform: translate3d(0, 0, 0); }
}

@keyframes transition-out {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, calc(-100% - 2px), 0); }
}

.transition-word {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  padding-right: 0.075em;
  font-size: clamp(4rem, 18vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.8;
  text-align: center;
  transform: translate3d(-50%, -50%, 0);
  backface-visibility: hidden;
}

.transition-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  opacity: 0.16;
  background: var(--ink);
  transform: translateX(-0.5px);
}

.transition-meta {
  position: absolute;
  right: 4vw;
  bottom: 4vh;
  left: 4vw;
  display: flex;
  justify-content: space-between;
  font: 0.65rem "DM Mono", monospace;
  letter-spacing: 0.12em;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(var(--header-height) + var(--safe-top));
  padding:
    var(--safe-top)
    max(4vw, var(--safe-right))
    0
    max(4vw, var(--safe-left));
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.65);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  width: max-content;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-dot,
.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 16px var(--acid);
}

.site-header nav {
  display: flex;
  gap: 2.4rem;
}

.site-header nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.76rem;
  transition: color 0.3s;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--acid);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--paper);
}

.site-header nav a.active::after {
  transform: scaleX(1);
}

.header-tools,
.availability {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-self: end;
}

.availability {
  color: var(--muted);
  font: 0.66rem "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability b {
  font-weight: 400;
}

.language-toggle {
  position: relative;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  height: 34px;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font: 0.58rem "DM Mono", monospace;
  letter-spacing: 0.06em;
  transition: border-color 0.3s;
}

.language-toggle:hover {
  border-color: var(--acid);
}

.language-toggle span {
  transition: color 0.25s, opacity 0.25s;
}

.language-toggle span.active {
  color: var(--paper);
}

.language-toggle span:not(.active) {
  opacity: 0.45;
}

.language-toggle i {
  width: 12px;
  height: 1px;
  background: var(--line);
}

.availability span {
  width: 6px;
  height: 6px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; box-shadow: 0 0 4px var(--acid); }
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.page {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100svh;
  padding:
    calc(var(--header-height) + var(--safe-top) + 5vh)
    max(4vw, var(--safe-right))
    max(5vh, var(--safe-bottom))
    max(4vw, var(--safe-left));
}

.ui-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.page .reveal {
  opacity: 0;
  transform: translateY(45px);
}

.page.in-view .reveal {
  animation: reveal-up 0.9s var(--ease) both;
}

.page.in-view .reveal:nth-child(2) { animation-delay: 0.08s; }
.page.in-view .reveal:nth-child(3) { animation-delay: 0.16s; }
.page.in-view .reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(45px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-index {
  position: absolute;
  top: calc(var(--header-height) + 4vh);
  right: 4vw;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 4vw;
  align-items: center;
  min-height: calc(100svh - var(--header-height) - 18vh);
}

.eyebrow {
  margin: 0 0 2rem;
  color: var(--muted);
  font: 0.68rem "DM Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  padding: 0 0.7rem;
  color: var(--acid);
}

h1,
h2 {
  margin: 0;
  font-size: clamp(4rem, 9.3vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.81;
}

h1 .outline,
h2 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
}

.hero-intro {
  max-width: 620px;
  margin: 2.3rem 0 0;
  color: #b7bab5;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.3rem;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.3s;
}

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

.button-primary {
  color: var(--ink);
  border-color: var(--acid);
  background: var(--acid);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.02);
}

.button-ghost:hover {
  border-color: rgba(236, 238, 232, 0.5);
}

.play-signature {
  gap: 0.9rem;
  justify-content: flex-start;
  padding: 0 0.2rem;
  border: 0;
  border-bottom: 1px solid rgba(236, 238, 232, 0.28);
  background: transparent;
}

.play-signature:hover {
  color: var(--acid);
  border-color: var(--acid);
  transform: none;
}

.signature-icon {
  display: flex;
  gap: 3px;
  align-items: center;
  width: 18px;
  height: 18px;
}

.signature-icon i {
  display: block;
  width: 2px;
  height: 5px;
  background: var(--acid);
  transition: height 0.25s var(--ease);
}

.signature-icon i:nth-child(2) { height: 12px; }
.signature-icon i:nth-child(3) { height: 8px; }

.play-signature:hover .signature-icon i:nth-child(1),
.play-signature.playing .signature-icon i:nth-child(1) { height: 11px; }

.play-signature:hover .signature-icon i:nth-child(2),
.play-signature.playing .signature-icon i:nth-child(2) { height: 6px; }

.play-signature:hover .signature-icon i:nth-child(3),
.play-signature.playing .signature-icon i:nth-child(3) { height: 14px; }

.play-signature.playing .signature-icon i {
  animation: signature-level 0.65s ease-in-out infinite alternate;
}

.play-signature.playing .signature-icon i:nth-child(2) { animation-delay: -0.22s; }
.play-signature.playing .signature-icon i:nth-child(3) { animation-delay: -0.4s; }

@keyframes signature-level {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.orb {
  position: relative;
  width: min(32vw, 480px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 255, 69, 0.18);
  border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(199, 255, 69, 0.08));
}

.orb-core {
  position: absolute;
  inset: 28%;
  border-radius: 47% 53% 41% 59% / 52% 38% 62% 48%;
  background: var(--acid);
  box-shadow: 0 0 90px rgba(199, 255, 69, 0.35);
  animation: morph 8s ease-in-out infinite alternate;
}

.orb-ring {
  position: absolute;
  border: 1px solid rgba(236, 238, 232, 0.25);
  border-radius: 50%;
}

.ring-one {
  inset: 14%;
  animation: spin 14s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 48%, 0 48%);
}

.ring-two {
  inset: 5%;
  animation: spin 22s linear infinite reverse;
  clip-path: polygon(0 53%, 100% 53%, 100% 100%, 0 100%);
}

.orb-scan {
  position: absolute;
  top: 50%;
  right: -8%;
  left: -8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  box-shadow: 0 0 10px var(--acid);
  animation: scan 4s ease-in-out infinite;
}

@keyframes morph {
  0% { border-radius: 47% 53% 41% 59% / 52% 38% 62% 48%; transform: scale(0.9) rotate(0); }
  100% { border-radius: 57% 43% 62% 38% / 42% 57% 43% 58%; transform: scale(1.08) rotate(25deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0%, 100% { transform: translateY(-100px); opacity: 0; }
  50% { transform: translateY(100px); opacity: 1; }
}

.visual-label {
  position: absolute;
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}

.label-top { top: 6%; right: 6%; }
.label-bottom { bottom: 6%; left: 6%; }

.home-footer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.scroll-hint {
  color: var(--muted);
  font-size: 0.62rem;
}

.scroll-hint span {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 0.7rem;
  vertical-align: middle;
  background: var(--acid);
}

.services-line {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 6vw;
  align-items: end;
  margin: 3vh 0 7vh;
}

.section-heading h2,
.about-title-wrap h2,
.contact-layout h2 {
  font-size: clamp(4rem, 8.5vw, 8rem);
}

.section-intro {
  max-width: 430px;
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-card {
  --project-color: var(--acid);
  display: grid;
  grid-template-columns: 0.14fr 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  min-height: 270px;
  padding: 2.3rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s;
}

.project-card:hover {
  border-bottom-color: rgba(236, 238, 232, 0.32);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 72%);
}

.project-number {
  align-self: start;
  color: var(--project-color);
  font-size: 0.65rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.3rem;
  color: var(--project-color);
  font-size: 0.56rem;
  letter-spacing: 0.09em;
}

.project-meta span + span::before {
  padding-right: 1rem;
  content: "•";
}

.project-content h3 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.project-content p {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-player {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
}

.track-button {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  height: 42px;
  padding: 0 0.85rem;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid rgba(236, 238, 232, 0.22);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.015);
  font: 0.55rem "DM Mono", monospace;
  letter-spacing: 0.09em;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.track-button:hover,
.track-button.playing {
  color: var(--paper);
  border-color: var(--project-color);
  background: color-mix(in srgb, var(--project-color) 8%, transparent);
}

.track-icon {
  position: relative;
  width: 9px;
  height: 10px;
}

.track-icon::before {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 0;
  height: 0;
  content: "";
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--project-color);
}

.track-button.playing .track-icon::before {
  top: 2px;
  left: 1px;
  width: 7px;
  height: 7px;
  border: 0;
  background: var(--project-color);
}

.waveform {
  height: 46px;
  opacity: 0.65;
  background: repeating-linear-gradient(
    90deg,
    var(--project-color) 0 2px,
    transparent 2px 6px
  );
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 8 26 15 35 22 9 30 48 39 25 48 33 56 18 64 44 72 29 80 32 90 4 98 54 107 21 115 39 124 27 133 33 142 12 150 48 158 25 166 36 176 20 184 41 193 15 202 50 211 25 220 35 229 22 238 40 247 27 255 31 264 17 272 44 282 24 290 35 300 30V60H0Z' fill='black'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.project-card:has(.playing) .waveform {
  animation: wave-shift 0.8s steps(3) infinite alternate;
}

@keyframes wave-shift {
  to { transform: scaleY(0.65); opacity: 1; }
}

.track-time {
  color: var(--muted);
  font-size: 0.56rem;
}

.demo-note {
  margin-top: 1.5rem;
  color: #6f726e;
  font-size: 0.55rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 9vw;
  margin-top: 5vh;
}

.about-copy {
  padding-top: 10vh;
}

.about-copy > p {
  color: var(--muted);
  line-height: 1.8;
}

.about-copy .big-copy {
  margin-top: 0;
  color: var(--paper);
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.45;
}

.big-copy strong {
  color: var(--acid);
  font-weight: 500;
}

.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 7vh;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capabilities > div {
  min-height: 190px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capabilities span {
  color: var(--acid);
  font-size: 0.56rem;
}

.capabilities h3 {
  margin: 2.3rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 500;
}

.capabilities p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

.process {
  margin-top: 9vh;
  padding: 2.3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-label {
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.58rem;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(1.1rem, 2.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.process-steps i {
  position: relative;
  width: clamp(22px, 3vw, 42px);
  height: 12px;
}

.process-steps i::before {
  position: absolute;
  top: 5px;
  right: 1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--acid);
}

.process-steps i::after {
  position: absolute;
  top: 2px;
  right: 1px;
  width: 6px;
  height: 6px;
  content: "";
  border-top: 1px solid var(--acid);
  border-right: 1px solid var(--acid);
  transform: rotate(45deg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8vw;
  align-items: center;
  min-height: calc(100svh - var(--header-height) - 20vh);
}

.contact-panel {
  padding: 2.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.contact-panel > p {
  margin: 0 0 3rem;
  color: #b7bab5;
  font-size: 1rem;
  line-height: 1.8;
}

.discord-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.5rem;
  color: var(--ink);
  background: var(--acid);
  transition: transform 0.3s;
}

.discord-link:hover {
  transform: translateY(-4px);
}

.discord-icon {
  width: 36px;
  height: 27px;
  fill: currentColor;
}

.discord-link small {
  display: block;
  margin-bottom: 0.2rem;
  font: 0.55rem "DM Mono", monospace;
  letter-spacing: 0.12em;
}

.copy-discord {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.8rem;
  cursor: pointer;
  color: var(--muted);
  border: 0;
  background: transparent;
  font: 0.58rem "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-discord:hover {
  color: var(--paper);
}

.contact-separator {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 2.2rem 0;
  color: var(--muted);
  font: 0.55rem "DM Mono", monospace;
  letter-spacing: 0.12em;
}

.contact-separator::before,
.contact-separator::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-honeypot {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label,
.project-field {
  display: grid;
  gap: 0.55rem;
}

.contact-form label > span,
.field-label {
  color: var(--muted);
  font: 0.56rem "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 0;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  font: 0.82rem "Manrope", sans-serif;
  transition: border-color 0.3s;
}

.contact-form textarea {
  min-height: 110px;
  overflow: hidden;
  resize: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--acid);
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0;
  cursor: pointer;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  transition: border-color 0.25s;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: var(--acid);
}

.custom-select-value {
  font-size: 0.82rem;
}

.select-mark {
  position: relative;
  width: 22px;
  height: 22px;
}

.select-mark::before,
.select-mark::after {
  position: absolute;
  top: 10px;
  width: 8px;
  height: 1px;
  content: "";
  background: var(--muted);
  transition: transform 0.35s var(--ease), background 0.25s;
}

.select-mark::before {
  left: 4px;
  transform: rotate(45deg);
}

.select-mark::after {
  right: 4px;
  transform: rotate(-45deg);
}

.custom-select.open .select-mark::before {
  transform: rotate(-45deg);
}

.custom-select.open .select-mark::after {
  transform: rotate(45deg);
}

.custom-select.open .select-mark::before,
.custom-select.open .select-mark::after {
  background: var(--acid);
}

.custom-select-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  padding: 0.4rem;
  max-height: min(280px, 45dvh);
  overflow-y: auto;
  border: 1px solid rgba(236, 238, 232, 0.2);
  background: #111316;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.custom-select-menu button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 0.8rem 0 1.8rem;
  cursor: pointer;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 0.76rem;
  text-align: left;
  transition: color 0.2s, background 0.2s;
}

.custom-select-menu button::before {
  position: absolute;
  left: 0.75rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: transparent;
}

.custom-select-menu button:hover,
.custom-select-menu button:focus-visible {
  color: var(--paper);
  outline: 0;
  background: rgba(255, 255, 255, 0.045);
}

.custom-select-menu button[aria-selected="true"] {
  color: var(--paper);
}

.custom-select-menu button[aria-selected="true"]::before {
  background: var(--acid);
  box-shadow: 0 0 8px rgba(199, 255, 69, 0.55);
}

.other-project-field[hidden],
.custom-select-menu[hidden] {
  display: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #60635f;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-top: 0.4rem;
  padding: 0 1.2rem;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--acid);
  background: var(--acid);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.3s, box-shadow 0.3s;
}

.form-submit:hover {
  box-shadow: 0 8px 30px rgba(199, 255, 69, 0.12);
  transform: translateY(-2px);
}

.form-note {
  margin: 0;
  color: #6f726e;
  font-size: 0.5rem;
  line-height: 1.5;
}

.footer {
  margin-top: 5vh;
}

.footer-brand {
  overflow: hidden;
  font-size: clamp(4.2rem, 15.5vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.8;
  white-space: nowrap;
}

.footer-brand span {
  vertical-align: top;
  color: var(--acid);
  font-size: 0.1em;
  letter-spacing: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.back-signal {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.back-signal .ui-icon {
  width: 13px;
  height: 13px;
}

.footer-bottom b {
  font-weight: inherit;
}

.studio-credit {
  position: relative;
  padding: 0 0 0.25rem 0.75rem;
  color: #b8bcb6;
  transition: color 0.25s;
}

.studio-credit::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: var(--acid);
  box-shadow: 0 0 8px rgba(199, 255, 69, 0.35);
  transform: translateY(-50%);
}

.studio-credit::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0.75rem;
  height: 1px;
  content: "";
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.studio-credit:hover {
  color: var(--acid);
}

.studio-credit:hover::after {
  transform: scaleX(1);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 2rem;
  bottom: 2rem;
  padding: 0.9rem 1.2rem;
  color: var(--ink);
  background: var(--acid);
  font: 0.65rem "DM Mono", monospace;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, calc(100% + 3rem), 0);
  transition:
    transform 0.4s var(--ease),
    opacity 0.25s ease,
    visibility 0s linear 0.4s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.noscript {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  left: 0;
  padding: 0.8rem;
  color: #fff;
  background: #b3261e;
  text-align: center;
  font-size: 0.75rem;
}

@media (max-width: 1000px) {
  :root { --header-height: 76px; }

  .hero {
    grid-template-columns: 1fr 0.65fr;
  }

  .project-card {
    grid-template-columns: 0.12fr 1fr;
  }

  .project-player {
    grid-column: 2;
    max-width: 520px;
  }

  .about-grid {
    gap: 5vw;
  }
}

@media (max-width: 900px) {
  body {
    cursor: auto;
  }

  body.menu-open {
    touch-action: none;
  }

  body.menu-open .site-header nav {
    touch-action: pan-y;
  }

  #sound-field {
    opacity: 0.055;
  }

  .noise {
    opacity: 0.025;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    padding-right: max(5vw, var(--safe-right));
    padding-left: max(5vw, var(--safe-left));
    background: rgba(9, 10, 12, 0.94);
  }

  .brand { grid-column: 1; grid-row: 1; }
  .header-tools { z-index: 2; grid-column: 2; grid-row: 1; }
  .menu-toggle { grid-column: 3; grid-row: 1; }

  .availability {
    display: none;
  }

  .menu-toggle {
    z-index: 2;
    display: grid;
    gap: 6px;
    width: 44px;
    min-height: 44px;
    padding: 10px 4px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 1px;
    background: var(--paper);
    transition: transform 0.3s;
  }

  .menu-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .site-header nav {
    z-index: 1;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 430px);
    height: 100dvh;
    padding:
      calc(3rem + var(--safe-top))
      max(2rem, var(--safe-right))
      calc(3rem + var(--safe-bottom))
      max(2rem, var(--safe-left));
    background: #101216;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease);
  }

  .site-header nav.open {
    transform: translateX(0);
  }

  .site-header nav a {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.05em;
  }

  .page {
    padding-right: max(5vw, var(--safe-right));
    padding-left: max(5vw, var(--safe-left));
    overflow: clip;
    isolation: isolate;
  }

  .hero-copy,
  .section-heading,
  .project-list,
  .demo-note,
  .about-grid,
  .process,
  .contact-layout,
  .footer {
    position: relative;
    z-index: 2;
  }

  .page-index {
    display: none;
  }

  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-height: calc(100svh - var(--header-height) - 10vh);
    padding-top: 5vh;
  }

  .hero::before {
    position: absolute;
    z-index: 1;
    inset: -8vh -5vw;
    content: "";
    pointer-events: none;
    background: linear-gradient(
      90deg,
      rgba(9, 10, 12, 0.96) 0%,
      rgba(9, 10, 12, 0.86) 64%,
      rgba(9, 10, 12, 0.18) 100%
    );
  }

  h1,
  h2,
  .section-heading h2,
  .about-title-wrap h2,
  .contact-layout h2 {
    font-size: clamp(3rem, 13.5vw, 4.8rem);
    line-height: 0.86;
  }

  .hero-intro {
    max-width: 92%;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .hero-visual {
    position: absolute;
    z-index: 0;
    right: -25vw;
    bottom: 8vh;
    opacity: 0.16;
    pointer-events: none;
  }

  .orb {
    width: 74vw;
  }

  .orb-scan,
  .visual-label {
    display: none;
  }

  .home-footer {
    display: block;
  }

  .services-line {
    display: none;
  }

  .scroll-hint {
    padding-bottom: var(--safe-bottom);
    text-align: right;
  }

  .section-heading {
    display: block;
    margin-top: 5vh;
  }

  .section-intro {
    margin-top: 2rem;
  }

  .project-card {
    display: block;
    min-height: 0;
    padding: 2rem 0;
    overflow: hidden;
  }

  .project-card:hover {
    background: transparent;
  }

  .project-number {
    margin-bottom: 1rem;
  }

  .project-player {
    grid-template-columns: auto minmax(60px, 1fr) auto;
    margin-top: 2rem;
  }

  .project-content h3 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .project-content p {
    max-width: 92%;
  }

  .waveform {
    min-width: 0;
    overflow: hidden;
  }

  .project-meta {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .about-grid,
  .contact-layout {
    display: block;
  }

  .about-copy {
    padding-top: 4rem;
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .capabilities > div {
    min-height: 160px;
  }

  .process-steps {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 1.35rem;
  }

  .process-steps i {
    width: 20px;
    margin-left: 0.35rem;
    transform: rotate(90deg);
    transform-origin: center;
  }

  .contact-layout {
    min-height: auto;
    padding-top: 6vh;
  }

  .contact-panel {
    margin-top: 4rem;
    padding: 1.3rem;
    background: #0f1113;
  }

  .discord-link {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    gap: 0.85rem;
    padding: 1.1rem;
  }

  .discord-icon {
    width: 30px;
    height: 23px;
  }

  .discord-link .ui-icon {
    width: 17px;
    height: 17px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .project-field {
    position: relative;
    z-index: 3;
  }

  .footer {
    margin-top: 12vh;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    padding-bottom: max(1.5rem, var(--safe-bottom));
    line-height: 1.6;
  }

  .toast {
    right: max(1rem, var(--safe-right));
    bottom: max(1rem, var(--safe-bottom));
    left: max(1rem, var(--safe-left));
    text-align: center;
  }

  .transition-meta {
    right: max(5vw, var(--safe-right));
    bottom: max(4vh, var(--safe-bottom));
    left: max(5vw, var(--safe-left));
    font-size: 0.52rem;
  }

  .transition-word {
    font-size: 16vw;
  }
}

@media (max-width: 480px) {
  #sound-field {
    display: none;
  }

  .eyebrow {
    margin-bottom: 1.4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
  }

  .project-content h3 {
    font-size: 3rem;
  }

  .project-player {
    gap: 0.8rem;
  }

  .track-button {
    min-width: 102px;
    height: 44px;
  }

  .contact-panel {
    margin-right: -1vw;
    margin-left: -1vw;
    padding: 1.15rem;
  }

  .custom-select-trigger,
  .contact-form input {
    min-height: 52px;
  }

  .footer-brand {
    font-size: 17vw;
  }

  .hero-visual {
    right: -34vw;
    opacity: 0.1;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 0.72rem;
  }

  .language-toggle {
    gap: 0.4rem;
    font-size: 0.52rem;
  }

  h1,
  h2,
  .section-heading h2,
  .about-title-wrap h2,
  .contact-layout h2 {
    font-size: 12.5vw;
  }

  .project-content h3 {
    font-size: 2.65rem;
  }

  .hero-visual {
    display: none;
  }

  .project-player {
    gap: 0.55rem;
  }

  .track-button {
    min-width: 94px;
    padding: 0 0.65rem;
  }
}

@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-height: 64px;
  }

  .site-header nav {
    flex-flow: row wrap;
    gap: 1.5rem;
    align-content: center;
    width: 100%;
    padding: calc(1.5rem + var(--safe-top)) max(2rem, var(--safe-right)) calc(1.5rem + var(--safe-bottom)) max(2rem, var(--safe-left));
  }

  .site-header nav a {
    font-size: 1.45rem;
  }

  .hero {
    min-height: 560px;
  }

  .transition-word {
    font-size: 15vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .boot-screen {
    display: none;
  }
}
