/* ANUBIS brand typography. Montserrat is pinned to a deterministic Fontsource build. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/montserrat:vf@5.3.0/latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --bg: #05080b;
  --text: #f2f5f7;
  --muted: #aab3bc;
  --quiet: #727e88;
  --line: rgba(218, 231, 241, 0.17);
  --line-strong: rgba(218, 231, 241, 0.31);
  --ice: #9fd0ff;
  --panel: rgba(5, 8, 11, 0.56);
  --panel-strong: rgba(5, 8, 11, 0.66);
  --glass: rgba(255, 255, 255, 0.045);
  --max: 1240px;
  --pad: clamp(22px, 4vw, 64px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  overscroll-behavior-y: none;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", Inter, Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, input, textarea { font: inherit; }

::selection { background: rgba(159, 208, 255, .22); color: #fff; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: #fff;
  color: #05080b;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { transform: none; }

.background,
.background-shade,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: 0;
  background-image: url("assets/anubis-threshold.webp");
  background-size: cover;
  background-position: center center;
  transform: scale(1.015);
}

.background-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(1, 4, 7, .38) 0%, rgba(1, 4, 7, .12) 28%, rgba(1, 4, 7, .34) 65%, rgba(5, 8, 11, .58) 100%),
    linear-gradient(90deg, rgba(1, 4, 7, .82) 0%, rgba(1, 4, 7, .33) 46%, rgba(1, 4, 7, .09) 74%, rgba(1, 4, 7, .22) 100%);
}

.noise {
  z-index: 2;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header,
main,
.site-footer { position: relative; z-index: 3; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: 88px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(3, 6, 9, .58), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: .94;
  filter: drop-shadow(0 0 16px rgba(159, 208, 255, .14));
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
}

.header-contact {
  color: #dce6ed;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 8px 0;
  transition: color .2s ease, border-color .2s ease;
}
.header-contact:hover,
.header-contact:focus-visible { color: #fff; border-color: var(--ice); }

.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 150px var(--pad) clamp(78px, 11vh, 128px);
}

.hero-content {
  width: min(760px, 100%);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.status,
.section-label {
  margin: 0 0 22px;
  color: #c1cad2;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.status { display: flex; align-items: center; gap: 10px; }
.status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 16px rgba(122, 194, 255, .9);
}

h1,
h2,
p { text-wrap: pretty; }

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 6.6rem);
  line-height: .96;
  letter-spacing: -.052em;
  font-weight: 480;
}

.hero-copy {
  max-width: 590px;
  margin: 34px 0 0;
  color: #c1c9d0;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.75;
}

.coming-soon {
  margin: 28px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9aa6af;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 9px;
}
.scroll-cue i {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ice);
  transform: translateX(-100%);
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 20% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.contact {
  position: relative;
  background: var(--panel);
  border-top: 1px solid rgba(255, 255, 255, .10);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  backdrop-filter: blur(24px) saturate(112%) contrast(1.06) brightness(.86);
  -webkit-backdrop-filter: blur(24px) saturate(112%) contrast(1.06) brightness(.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    inset 0 -1px 0 rgba(255, 255, 255, .025),
    0 -24px 80px rgba(0, 0, 0, .12);
}

.contact-inner {
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin: 0 auto;
  padding: clamp(88px, 12vw, 150px) 0;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(440px, 1.15fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: start;
}

.contact-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2.35rem, 4.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 480;
}

.contact-copy > p:not(.section-label) {
  max-width: 440px;
  margin: 28px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.email-link {
  display: inline-block;
  margin-top: 42px;
  color: #edf6fc;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 7px;
}
.email-link:hover,
.email-link:focus-visible { border-color: var(--ice); }

.contact-form { padding-top: 31px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  display: block;
  margin-bottom: 30px;
}

.field span {
  display: block;
  margin-bottom: 10px;
  color: #9ca8b1;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 12px 0 14px;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus,
.field textarea:focus { border-color: rgba(159, 208, 255, .7); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: rgba(255, 164, 164, .65); }


.form-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
}

.submit-button {
  min-width: 178px;
  border: 1px solid rgba(228, 239, 247, .26);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: #f7fbff;
  padding: 13px 18px 13px 22px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.submit-button:hover,
.submit-button:focus-visible {
  background: rgba(159, 208, 255, .08);
  border-color: rgba(159, 208, 255, .55);
  transform: translateY(-1px);
}
.submit-button .arrow { color: var(--ice); }

.submit-button:disabled {
  cursor: wait;
  opacity: .56;
  transform: none;
}
.submit-button:disabled:hover {
  background: rgba(255,255,255,.03);
  border-color: rgba(228, 239, 247, .26);
  transform: none;
}


.form-status {
  margin: 0;
  min-height: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.form-status[data-state="success"] { color: #c8d8c0; }
.form-status[data-state="error"] { color: #d4a89a; }
.form-status[data-state="sending"] { color: #b9c9d6; }

.site-footer {
  background: var(--panel-strong);
  border-top: 1px solid rgba(218, 231, 241, .08);
  backdrop-filter: blur(24px) saturate(112%) contrast(1.04) brightness(.84);
  -webkit-backdrop-filter: blur(24px) saturate(112%) contrast(1.04) brightness(.84);
  padding: 28px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  color: #6f7a83;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-brand { display: flex; align-items: center; gap: 9px; color: #aeb8c0; }
.footer-brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: .94;
  filter: drop-shadow(0 0 16px rgba(159, 208, 255, .14));
}
.footer-brand span { letter-spacing: .18em; font-weight: 700; }

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(218, 231, 241, .16);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #aeb8c0;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.footer-action:hover,
.footer-action:focus-visible {
  color: #f7fbff;
  border-color: rgba(159, 208, 255, .48);
  background: rgba(159, 208, 255, .07);
  transform: translateY(-1px);
}

.footer-action:focus-visible {
  outline: 2px solid rgba(159, 208, 255, .55);
  outline-offset: 3px;
}

.footer-arrow { color: var(--ice); font-size: 11px; }
.site-footer p { margin: 0; }
.footer-copyright { justify-self: end; }

@media (max-width: 900px) {
  /*
    Keep the scenic layer fixed behind the entire page, but lock its height to
    the *large* viewport. Mobile browser chrome can change the visual viewport
    while scrolling; 100lvh prevents background-size:cover from being
    recalculated on each toolbar transition, eliminating the apparent zoom.
    The fixed layer also remains behind the contact/footer glass panels.
  */
  .background,
  .background-shade,
  .noise {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
  }

  .background {
    background-position: 45% center;
    background-size: cover;
    transform: none;
  }

  .hero { padding-bottom: 88px; }
  .scroll-cue { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 64px; }
  .contact-copy { max-width: 650px; }
  .contact-form { max-width: 720px; padding-top: 0; }
  .site-footer {
    grid-template-columns: 1fr auto;
    row-gap: 20px;
  }
  .footer-center {
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: flex-start;
  }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  .site-header { height: 72px; }
  .brand-mark { width: 58px; height: 58px; }
  .footer-brand img { width: 58px; height: 58px; }
  .brand-name { font-size: 11px; }
  .hero { padding-top: 112px; padding-bottom: 62px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-copy { margin-top: 28px; line-height: 1.65; }
  .background-shade {
    background:
      linear-gradient(180deg, rgba(1,4,7,.33) 0%, rgba(1,4,7,.15) 27%, rgba(1,4,7,.52) 70%, rgba(5,8,11,.62) 100%),
      linear-gradient(90deg, rgba(1,4,7,.68), rgba(1,4,7,.16));
  }
  .contact-inner {
    width: calc(100% - 40px);
    padding: 72px 0 44px;
    gap: 50px;
  }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
  }
  .form-status:empty { display: none; }
  .submit-button { width: 100%; }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 26px;
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }
  .footer-center {
    grid-column: auto;
    grid-row: auto;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .footer-copyright { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue i::after { animation: none; transform: none; }
  .submit-button { transition: none; }
}
