@font-face {
  font-family: 'Halogen Flare';
  src: url('/assets/brand/halogen-flare-black.ttf') format('truetype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --black: #050505;
  --white: #f7f7f4;
  --muted: #a9a9a4;
  --lime: #d8ff00;
  --pink: #ff2f92;
  --violet: #8b39ff;
  --line: #4b4b48;
  --gutter: clamp(1.25rem, 4.3vw, 4.5rem);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  color: var(--white);
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: var(--black); background: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: var(--black);
  background: var(--lime);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 30;
  top: clamp(6.5rem, 13vh, 9rem);
  left: 0;
  display: flex;
  width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
}

.brand-link { display: block; width: clamp(9.5rem, 13vw, 12rem); }
.brand-link img {
  width: 100%;
  filter: invert(1);
  transform: translateX(21.7%);
}

.holding-hero {
  position: relative;
  display: grid;
  min-height: min(58rem, 100svh);
  min-height: min(58rem, 100dvh);
  padding: clamp(9.5rem, 17vh, 12rem) var(--gutter) 7.5rem;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
}

.holding-hero::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: '';
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 0 16%, rgb(5 5 5 / .18) 48%, var(--black) 89%);
}

.acid-field {
  position: absolute;
  z-index: 1;
  inset: -12%;
  opacity: .58;
  background-image: radial-gradient(circle, rgb(216 255 0 / .72) 0 1px, transparent 1.45px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0 30%, rgb(0 0 0 / .66) 52%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, black 0 30%, rgb(0 0 0 / .66) 52%, transparent 76%);
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(100%, 48rem);
  text-align: center;
}

.kicker {
  margin: 0 0 1.35rem;
  color: var(--lime);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.hero-copy .kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
}

.hero-copy .kicker span {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 .25rem rgb(216 255 0 / .1);
  animation: status-pulse 2.6s ease-in-out infinite;
}

h1 {
  max-width: 48rem;
  margin: 0;
  font-family: 'Halogen Flare', 'Arial Black', sans-serif;
  font-size: clamp(3.15rem, 6.1vw, 6rem);
  font-weight: 900;
  letter-spacing: -.048em;
  line-height: .9;
  text-wrap: balance;
}

h1 em { color: var(--lime); font-style: normal; }

.intro {
  max-width: 36rem;
  margin: 1.6rem auto 0;
  color: #d0d0cb;
  font-size: clamp(.95rem, 1.15vw, 1.08rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: .8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.7rem;
  border: 1px solid currentColor;
  padding: .2rem 1rem;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  transition: color 170ms ease, background 170ms ease, transform 170ms ease;
}

.button:hover { transform: translateY(-3px); }
.button span { font-size: 1.3rem; line-height: 1; }

.button-primary { color: var(--black); border-color: var(--lime); background: var(--lime); }
.button-primary:hover { color: var(--lime); background: transparent; }
.button-secondary { color: var(--black); border-color: var(--pink); background: var(--pink); }
.button-secondary:hover { color: var(--pink); border-color: var(--pink); background: transparent; }

.manifesto {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 2.3rem;
  left: 0;
  text-align: center;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.manifesto strong { color: var(--white); }

.contact-section {
  position: relative;
  display: grid;
  min-height: 31rem;
  align-items: center;
  justify-items: center;
  padding: clamp(4.5rem, 7vw, 6.5rem) var(--gutter) clamp(5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
  gap: clamp(3rem, 5vw, 4.5rem);
  background: #0a0a0a;
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
}

.contact-copy { text-align: center; }

.contact-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: .58;
}

.contact-status.is-error {
  color: #ff8298;
}

.contact-copy .kicker { color: var(--pink); }

.contact-copy h2 {
  margin: 0;
  font-family: 'Halogen Flare', 'Arial Black', sans-serif;
  font-size: clamp(2.7rem, 4.4vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .9;
  text-wrap: balance;
}

.contact-copy > p:not(.kicker) {
  max-width: 31rem;
  margin: 1.35rem auto 0;
  color: #c8c8c3;
  font-size: .95rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.contact-email {
  display: inline-flex;
  margin-top: 2rem;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--pink);
  padding-bottom: .42rem;
  color: var(--white);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .08em;
  transition: color 180ms ease;
}

.contact-email:hover { color: var(--pink); }
.contact-email span { font-size: 1.1rem; }

.contact-form,
.contact-form label {
  display: grid;
}

.contact-form { gap: 1.75rem; }

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-form label { gap: .65rem; }

.contact-form label > span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #5c5c59;
  border-radius: 0;
  padding: .75rem 0 1rem;
  color: var(--white);
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-form textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: #8a8a85; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--lime); background: rgb(216 255 0 / .025); }
.contact-form input:user-invalid,
.contact-form textarea:user-invalid { border-color: var(--pink); }

.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form .button {
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
}

.contact-form .button:active { transform: translateY(0) scale(.98); }

.contact-status {
  max-width: 19rem;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
}

.contact-status:empty { display: none; }
.contact-status.is-ready { color: var(--lime); }

.site-footer {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0 var(--gutter);
  color: var(--muted);
  background: #0a0a0a;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.site-footer a:hover { color: var(--lime); }

@keyframes status-pulse { 50% { opacity: .38; } }
@media (max-width: 780px) {
  .site-header { top: 5rem; }
  .brand-link { width: 9.25rem; }

  .holding-hero {
    min-height: 46rem;
    padding-top: 8.5rem;
    padding-bottom: 7rem;
  }

  .holding-hero::before {
    background: radial-gradient(circle at 50% 43%, transparent 0 11%, rgb(5 5 5 / .2) 50%, var(--black) 90%);
  }

  .acid-field {
    inset: -8% -45%;
    opacity: .56;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0 26%, rgb(0 0 0 / .72) 50%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 0 26%, rgb(0 0 0 / .72) 50%, transparent 75%);
  }

  .kicker { margin-bottom: .9rem; }
  h1 { font-size: clamp(2.85rem, 13vw, 4.6rem); }
  .intro { max-width: 23rem; font-size: 1rem; }
  .hero-actions { align-items: center; flex-direction: column; }
  .hero-actions .button { width: min(100%, 20rem); }

  .manifesto {
    bottom: 2rem;
  }

  .contact-section {
    min-height: 0;
    padding-top: 5.5rem;
    padding-bottom: 6.5rem;
    gap: 4rem;
  }

  .contact-copy h2 { font-size: clamp(2.8rem, 12vw, 3.8rem); }
  .contact-fields { grid-template-columns: 1fr; gap: 1.75rem; }
  .contact-submit-row { align-items: center; }
  .contact-form .button { width: min(100%, 20rem); }
  .contact-status { max-width: none; }

  .site-footer { min-height: 5.5rem; padding-block: 1.25rem; flex-direction: column; gap: .5rem; text-align: center; }
}

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

.login-shell,
.not-found {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  isolation: isolate;
}

.login-shell::before,
.not-found::before {
  position: absolute;
  z-index: -2;
  top: -20%;
  right: -18%;
  width: min(78vw, 58rem);
  aspect-ratio: 1;
  content: '';
  opacity: .72;
  background: var(--pink);
  -webkit-mask: url('/assets/brand/dia-monster-vector.svg') center / contain no-repeat;
  mask: url('/assets/brand/dia-monster-vector.svg') center / contain no-repeat;
}

.login-shell::after,
.not-found::after {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: '';
  background-image: radial-gradient(circle, rgb(216 255 0 / .45) 0 1px, transparent 1.5px);
  background-size: 9px 9px;
  mask-image: radial-gradient(ellipse at 75% 30%, black, transparent 56%);
}

.login-shell { grid-template-rows: auto 1fr; }

.login-panel {
  align-self: center;
  width: min(100%, 42rem);
  margin: 3rem auto;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  background: rgb(5 5 5 / .9);
  backdrop-filter: blur(18px);
}

.login-panel h1 { font-size: clamp(2.1rem, 8.5vw, 5.25rem); }
.not-found h1 { font-size: clamp(3.8rem, 10vw, 7rem); }

.login-form { display: grid; gap: .75rem; margin: 2rem 0; }
.login-form label { color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .12em; }
.login-form input {
  min-height: 3.4rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--white);
  background: #151515;
  font: inherit;
}
.login-form input:focus { outline: 2px solid var(--lime); outline-offset: 2px; }
.login-form .button { justify-self: start; margin-top: .35rem; cursor: pointer; }
.login-error { padding: .85rem 1rem; color: #ffe0eb; background: rgb(255 47 146 / .14); font-size: .85rem; line-height: 1.45; }
.back-link { display: inline-block; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.back-link:hover { color: var(--lime); }

.not-found { align-content: center; justify-items: start; }
.not-found .button { margin-top: 2.5rem; }
