:root {
  color-scheme: dark;
  --root-background: #0b0c0a;
  --root-surface: #11130f;
  --root-foreground: #f2eadc;
  --root-muted: #aaa99f;
  --root-subtle: #8b8d84;
  --root-line: rgba(242, 234, 220, 0.14);
  --root-signal: #d6ff66;
  --root-signal-soft: rgba(214, 255, 102, 0.14);
  --root-focus: #e5ff9d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--root-background);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--root-foreground);
  background:
    radial-gradient(circle at 50% 44%, rgba(214, 255, 102, 0.045), transparent 27rem),
    var(--root-background);
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 72%);
}

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

.identity {
  position: relative;
  display: grid;
  min-height: calc(100svh - 72px);
  place-items: center;
  padding: clamp(3rem, 9vw, 7.5rem) 1.5rem;
}

.identity__content {
  display: grid;
  width: min(100%, 680px);
  justify-items: center;
  text-align: center;
}

.identity__brand {
  display: grid;
  justify-items: center;
}

.identity__logo {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--root-foreground);
  font-size: 1rem;
  font-weight: 780;
  line-height: 1;
  white-space: nowrap;
}

.identity__logo svg {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.identity__message {
  display: grid;
  justify-items: center;
  margin-top: clamp(3.75rem, 9vw, 6.5rem);
}

.identity__label {
  margin: 0 0 1.25rem;
  color: var(--root-signal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.35rem, 7.2vw, 5.25rem);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.identity__copy {
  max-width: 520px;
  margin: 1.65rem 0 0;
  color: var(--root-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
  text-wrap: balance;
}

.contact-disclosure {
  position: relative;
  z-index: 40;
  display: grid;
  width: min(100%, 520px);
  justify-items: center;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

.contact-trigger,
.contact-submit,
.contact-close {
  font: inherit;
  touch-action: manipulation;
}

.contact-trigger {
  display: inline-flex;
  min-width: 168px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 1.4rem;
  border: 1px solid var(--root-line);
  border-radius: 999px;
  color: var(--root-foreground);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.94rem;
  font-weight: 650;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-trigger:hover,
.contact-trigger[aria-expanded="true"] {
  border-color: rgba(214, 255, 102, 0.42);
  background: rgba(214, 255, 102, 0.055);
  transform: translateY(-1px);
}

.contact-trigger svg {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.contact-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.contact-trigger:focus-visible,
.contact-close:focus-visible,
.contact-submit:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.contact-privacy a:focus-visible,
.identity-footer a:focus-visible {
  border-radius: 5px;
  outline: 2px solid var(--root-focus);
  outline-offset: 4px;
}

.contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 1rem);
  left: 0;
  z-index: 40;
  display: grid;
  width: 100%;
  max-height: 0;
  overflow: auto;
  border: 1px solid transparent;
  border-radius: 20px;
  opacity: 0;
  background: #11130f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
  text-align: left;
  transform: translateY(-8px);
  visibility: hidden;
  transition:
    max-height 320ms ease,
    margin-top 220ms ease,
    padding 220ms ease,
    opacity 180ms ease,
    transform 220ms ease,
    visibility 0ms linear 320ms,
    border-color 180ms ease;
}

.contact-panel.is-open {
  max-height: min(72svh, 680px);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--root-line);
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0ms;
}

body.contact-is-open::after {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(4, 5, 4, 0.58);
  backdrop-filter: blur(3px);
  content: "";
}

.contact-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.contact-panel__label {
  margin: 0 0 0.4rem;
  color: var(--root-signal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-panel h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.contact-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--root-line);
  border-radius: 50%;
  color: var(--root-muted);
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-close:hover {
  border-color: rgba(242, 234, 220, 0.3);
  color: var(--root-foreground);
  background: rgba(255, 255, 255, 0.04);
}

.contact-close svg {
  width: 1rem;
  height: 1rem;
}

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

.contact-form label:not(.contact-trap) {
  display: grid;
  gap: 0.45rem;
  color: var(--root-muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--root-line);
  border-radius: 9px;
  color: var(--root-foreground);
  background: rgba(5, 6, 5, 0.58);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(242, 234, 220, 0.27);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: rgba(214, 255, 102, 0.66);
  background: rgba(5, 6, 5, 0.82);
  box-shadow: 0 0 0 4px var(--root-signal-soft);
  outline-offset: 0;
}

.contact-form [aria-invalid="true"] {
  border-color: #ff9e91;
}

.field-error {
  min-height: 0;
  color: #ffb1a7;
  font-size: 0.74rem;
  font-weight: 500;
}

.field-error:empty {
  display: none;
}

.contact-submit {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #12140e;
  background: var(--root-signal);
  font-weight: 750;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.contact-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.contact-status {
  min-height: 1.35rem;
  margin: -0.15rem 0 0;
  color: var(--root-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.contact-status[data-state="success"] {
  color: var(--root-signal);
}

.contact-status[data-state="error"] {
  color: #ffb1a7;
}

.contact-privacy {
  margin: -0.25rem 0 0;
  color: var(--root-subtle);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.contact-privacy a {
  color: var(--root-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.identity__signal {
  position: absolute;
  top: clamp(1.5rem, 4vw, 2.5rem);
  left: 50%;
  width: 1px;
  height: clamp(2rem, 7vh, 4.5rem);
  overflow: visible;
  background: linear-gradient(transparent, var(--root-line));
}

.identity__signal span {
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--root-signal);
  box-shadow: 0 0 0 6px var(--root-signal-soft), 0 0 22px rgba(214, 255, 102, 0.24);
}

.identity-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.5rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--root-line);
  color: var(--root-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.identity-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 180ms ease;
}

.identity-footer a:hover {
  color: var(--root-foreground);
}

@media (max-width: 560px) {
  .identity {
    min-height: calc(100svh - 88px);
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .identity__signal {
    top: auto;
    bottom: calc(100% + 2rem);
    height: 3.5rem;
  }

  .identity__brand {
    position: relative;
  }

  .identity__logo {
    gap: 0.72rem;
    font-size: 0.93rem;
  }

  .identity__logo svg {
    width: 34px;
    height: 34px;
  }

  .identity__message {
    margin-top: 3.25rem;
  }

  .identity__copy {
    max-width: 34ch;
  }

  .contact-disclosure,
  .contact-trigger {
    width: 100%;
  }

  .contact-trigger {
    max-width: 280px;
  }

  .contact-panel.is-open {
    padding: 1.2rem;
  }

  .identity-footer {
    min-height: 88px;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px), (max-height: 820px) {
  body.contact-is-open {
    overflow: hidden;
  }

  .contact-panel,
  .contact-panel.is-open {
    position: fixed;
    inset: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    width: auto;
    max-height: none;
    overscroll-behavior: contain;
  }

  .contact-panel.is-open {
    padding: 1.2rem;
  }
}

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