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

:root {
  --bg: #080809;
  --text: #ddd9d1;
  --text-body: #a9a59d;
  --text-muted: #6f6c66;
  --text-faint: #454340;
  --accent: #5b7a9d;
  --line: rgba(221, 217, 209, 0.08);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --measure: 38rem;
  --page-padding: clamp(1.5rem, 5vw, 4rem);
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(91, 122, 157, 0.12), transparent 32%),
    var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-weight: 350;
  font-size: 0.9375rem;
  line-height: 1.72;
  letter-spacing: 0.008em;
  position: relative;
  overflow-x: hidden;
}

.grid-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(221, 217, 209, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 217, 209, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, black 8%, transparent 68%);
  opacity: 0.35;
}

.scan-line {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(91, 122, 157, 0.02) 50%,
    transparent 100%
  );
  background-size: 100% 200%;
  animation: scan 14s linear infinite;
}

@keyframes scan {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 100%; }
}

main,
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--measure);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: var(--page-padding);
  padding-bottom: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.wordmark {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.wordmark:hover {
  color: var(--text);
}

.client-center-link {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.client-center-link:hover {
  color: var(--text);
}

main {
  padding:
    clamp(4.25rem, 8vh, 6rem)
    var(--page-padding)
    clamp(3.5rem, 7vh, 4.5rem);
}

.hero {
  padding-bottom: clamp(3.75rem, 7vh, 5rem);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.125rem, 5vw, 3.375rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.12;
  color: var(--text);
  max-width: 13.5em;
  margin-bottom: 0.4rem;
}

.hero-lede {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.012em;
  color: var(--text);
  max-width: 34rem;
  margin-bottom: 1.35rem;
}

.hero-mission {
  font-size: 0.98rem;
  font-weight: 350;
  line-height: 1.78;
  letter-spacing: 0.012em;
  color: var(--text-muted);
  max-width: 33rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.4rem;
}

.capabilities {
  padding-bottom: clamp(3rem, 6vh, 4rem);
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vh, 2.4rem);
}

.capability {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.cap-index {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  line-height: 1;
  padding-top: 0.45rem;
}

.cap-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.cap-desc {
  font-size: 0.9375rem;
  font-weight: 350;
  line-height: 1.76;
  color: var(--text-muted);
  max-width: 31rem;
}

.contact {
  padding-top: clamp(2.5rem, 5vh, 3rem);
}

.contact .section-label {
  margin-bottom: var(--space-6);
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.contact-email a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-email a:hover {
  color: var(--accent);
}

.site-footer {
  padding:
    clamp(var(--space-16), 10vh, var(--space-24))
    var(--page-padding)
    clamp(var(--space-12), 8vh, var(--space-16));
}

.disclaimer {
  font-size: 0.625rem;
  font-weight: 350;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  max-width: 36rem;
  margin-bottom: var(--space-8);
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.login-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: min(100%, 22rem);
  max-width: calc(100vw - 2 * var(--page-padding));
  max-height: none;
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.login-splash::backdrop {
  background: rgba(4, 4, 5, 0.88);
  backdrop-filter: blur(6px);
}

.login-splash__panel {
  position: relative;
  width: 100%;
  padding: clamp(2rem, 5vw, 2.75rem);
  background: #0c0c0e;
}

.login-splash__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

.login-splash__close:hover {
  color: var(--text);
}

.login-splash__label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-6);
}

.login-splash__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: var(--space-4);
}

.login-splash__desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-field__label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.login-field input {
  width: 100%;
  padding: 0.65rem 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(221, 217, 209, 0.12);
  outline: none;
  transition: border-color 0.3s ease;
}

.login-field input:focus {
  border-color: rgba(91, 122, 157, 0.5);
}

.login-form__error {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.login-form__error a {
  color: var(--text);
  text-decoration: none;
}

.login-form__error a:hover {
  color: var(--accent);
}

.login-form__submit {
  align-self: flex-start;
  margin-top: var(--space-4);
  padding: 0.65rem 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.login-form__submit:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .scan-line {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 540px) {
  .hero h1 {
    max-width: none;
  }

  .capability {
    grid-template-columns: 1.25rem minmax(0, 1fr);
    column-gap: var(--space-4);
  }

  .cap-index {
    padding-top: 0.35rem;
  }

  .cap-desc {
    max-width: none;
  }
}
