:root {
  color-scheme: light;
  --color-ink: #0b172c;
  --color-navy: #1f2a42;
  --color-slate: #333f58;
  --color-blue-gray: #455b7b;
  --color-clinical-gray: #5a5968;
  --color-highlight: #f2b544;
  --color-background: #fafaf7;
  --color-surface: #ffffff;
  --color-border: #d7dce3;
  --color-muted: #eef1f5;
  --color-text: #111827;
  --font-heading: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gradient-cool: rgba(69, 91, 123, 0.1);
  --gradient-warm: rgba(242, 181, 68, 0.16);
  --shadow-focus: rgba(242, 181, 68, 0.34);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-ink: #fafaf7;
  --color-navy: #dbe5f3;
  --color-slate: #c1ccdc;
  --color-blue-gray: #9cabc1;
  --color-clinical-gray: #a8adba;
  --color-highlight: #f2b544;
  --color-background: #071120;
  --color-surface: #101a2c;
  --color-border: #263449;
  --color-muted: #152136;
  --color-text: #edf1f6;
  --gradient-cool: rgba(79, 126, 207, 0.18);
  --gradient-warm: rgba(242, 181, 68, 0.1);
  --shadow-focus: rgba(242, 181, 68, 0.42);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-ink: #fafaf7;
    --color-navy: #dbe5f3;
    --color-slate: #c1ccdc;
    --color-blue-gray: #9cabc1;
    --color-clinical-gray: #a8adba;
    --color-highlight: #f2b544;
    --color-background: #071120;
    --color-surface: #101a2c;
    --color-border: #263449;
    --color-muted: #152136;
    --color-text: #edf1f6;
    --gradient-cool: rgba(79, 126, 207, 0.18);
    --gradient-warm: rgba(242, 181, 68, 0.1);
    --shadow-focus: rgba(242, 181, 68, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  background:
    linear-gradient(135deg, var(--gradient-cool), transparent 42%),
    radial-gradient(circle at 82% 18%, var(--gradient-warm), transparent 24rem),
    var(--color-background);
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

a {
  color: inherit;
}

.site-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 4vw, 4rem);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-ink);
  text-decoration: none;
}

.brand-logo {
  width: calc(clamp(1.15rem, 2vw, 1.35rem) * 1.5);
  height: calc(clamp(1.15rem, 2vw, 1.35rem) * 1.5);
  flex: 0 0 auto;
  border-radius: 0.45rem;
}

.brand-logo-dark {
  display: none;
}

:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.45rem;
  border: 0;
  border-radius: 0.35rem;
  padding: 0;
  color: var(--color-clinical-gray);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  opacity: 0.82;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.theme-toggle:hover {
  color: var(--color-ink);
  opacity: 1;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--shadow-focus);
  outline-offset: 3px;
}

.theme-toggle-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--color-clinical-gray);
  box-shadow: 0 0 0 1px var(--color-border);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

:root[data-theme="dark"] .theme-toggle-dot {
  background: var(--color-highlight);
  box-shadow: 0 0 0 1px rgba(242, 181, 68, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand-logo-light {
    display: none;
  }

  :root:not([data-theme]) .brand-logo-dark {
    display: block;
  }
}

.hero {
  display: grid;
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem) clamp(1.25rem, 4vw, 4rem);
}

.hero-content {
  width: min(100%, 56rem);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-blue-gray);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0 auto;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(2.9rem, 8vw, 5.8rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.loading-dots {
  display: inline-flex;
  width: 0.76em;
  justify-content: flex-start;
  color: var(--color-highlight);
  white-space: nowrap;
}

.loading-dots span {
  animation: dot-pulse 1.4s ease-in-out infinite;
  opacity: 0.18;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.intro {
  max-width: 41rem;
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  color: var(--color-slate);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.site-footer {
  width: 100%;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem) 2rem;
}

.footer-inner {
  display: flex;
  width: min(100%, 72rem);
  margin: 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.footer-copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1.25rem;
  min-width: 0;
}

.contact {
  flex: 0 0 auto;
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration-color: rgba(242, 181, 68, 0.75);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.25em;
}

.legal {
  max-width: 44rem;
  margin: 0;
  color: var(--color-clinical-gray);
  font-size: 0.82rem;
}

@keyframes dot-pulse {
  0%,
  70%,
  100% {
    opacity: 0.18;
  }

  30% {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 1rem;
  }

  .hero {
    align-items: start;
    padding-top: 2rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .legal {
    text-align: left;
  }
}

@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;
  }
}
