@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/montserrat-light-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --accent: #22ace0;
  --ink: #030507;
  --page-surface: #0a1015;
  --text-muted: #acbdc9;
  --header-height: 6rem;
  --page-pad: clamp(1.25rem, 3.4vw, 3rem);
  --hero-bg: #060a12;
  --hero-shade: 6, 10, 18;
  --hero-ink: #f3f7fc;
  --hero-ink-rgb: 243, 247, 252;
  --hero-accent: #5aaee3;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-surface);
  color: #fff;
  font: 400 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, p { margin-top: 0; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.sr-only,
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 1.15rem var(--page-pad);
  border-bottom: 1px solid transparent;
  background: #080e14f5;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.home-page .site-header.is-at-top {
  background: transparent;
  color: var(--hero-ink);
}

.site-header.is-scrolled {
  border-bottom-color: #ffffff14;
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.site-brand { gap: 0.5rem; font-size: 1.5rem; }
.brand-mark {
  flex-shrink: 0;
  display: block;
  width: 1.875rem;
  height: 2rem;
  background: url("../images/light_logo.png") center / contain no-repeat;
}
.site-menu { position: relative; }
.menu-toggle, .menu-button { display: none; }
.site-links { display: flex; gap: 2.4rem; align-items: center; }
.site-links a { font-size: 0.94rem; font-weight: 400; }
.site-links a:hover, .site-links a:focus-visible { color: var(--accent); }
.nav-contact__mobile-label { display: none; }
.site-links .nav-contact--cta {
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #031018;
}
.site-links .nav-contact--cta:hover, .site-links .nav-contact--cta:focus-visible { background: #56c4ec; color: #031018; }

.site-slider { position: relative; }
.site-slide { position: relative; scroll-margin-top: var(--header-height); }
.slide-content { width: min(100%, 80rem); margin: 0 auto; }
#home {
  display: flex;
  align-items: center;
  min-height: 40rem;
  min-height: max(40rem, 100svh);
  padding: 10rem var(--page-pad);
  overflow: hidden;
  isolation: isolate;
  color: var(--hero-ink);
  background:
    radial-gradient(circle, rgba(var(--hero-ink-rgb), 0.25) 1px, transparent 1.5px) 0 0 / 32px 32px,
    radial-gradient(circle, var(--hero-accent) 1px, transparent 1.5px) 12px 14px / 97px 89px,
    var(--hero-bg);
}
#hero-canvas { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.has-hero-canvas #hero-canvas { opacity: 1; }
#home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 52%, rgba(var(--hero-shade), 0.66), rgba(var(--hero-shade), 0) 72%),
    linear-gradient(to bottom, rgba(var(--hero-shade), 0.62), rgba(var(--hero-shade), 0) 24%, rgba(var(--hero-shade), 0) 68%, rgba(var(--hero-shade), 0.8));
}
.hero-content { max-width: 70rem; padding-bottom: 1.5rem; text-align: center; }
.hero-content h1 {
  max-width: 18ch;
  margin: 0 auto 2.4rem;
  font-size: clamp(2.1rem, 5.4vw, 4.75rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(var(--hero-shade), 0.6);
}
h1 {
  margin: 0 0 2.5rem;
  font-family: "Montserrat", Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h2 {
  margin: 0 0 1.65rem;
  font-family: "Montserrat", Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.hero-actions { display: flex; justify-content: center; }
.button {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.hero-button--primary, .contact-submit { border-color: var(--accent); background: var(--accent); color: #031018; }
.hero-button--primary:hover, .contact-submit:hover { background: #56c4ec; border-color: #56c4ec; }
.hero-button--primary { padding: 1rem 2.1rem; border-color: var(--hero-accent); border-radius: 4px; background: var(--hero-accent); font-size: 1.08rem; }

#about { padding: 7rem var(--page-pad); background: #0a1015; }
.about-content { max-width: 45rem; text-align: center; }
.about-logo { width: 3rem; height: auto; margin: 0 auto 2rem; }
.about-copy > p { color: var(--text-muted); font-size: 1.05rem; }
.text-link { display: inline-flex; gap: 1.75rem; align-items: center; padding-bottom: 0.4rem; border-bottom: 1px solid var(--accent); font-size: 0.87rem; font-weight: 600; }
.about-copy > .text-link { margin-top: 0.75rem; }
.text-link:hover { color: #8ed5ef; }

#contact { padding: 7rem var(--page-pad); border-top: 1px solid #ffffff12; background: #0c141c; }
.contact-content { max-width: 70rem; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(3rem, 8vw, 8rem); }
.contact-copy > p:not(.eyebrow) { max-width: 22rem; color: var(--text-muted); font-size: 1.05rem; }
.contact-note { margin-top: 4rem; }
.contact-note__line { display: block; width: 2rem; height: 2px; margin-bottom: 1.3rem; background: var(--accent); }
.contact-note p { margin-bottom: 0.65rem; color: #c8d2d8; font-size: 0.8rem; }
.form-content { min-width: 0; }
.contact-form { width: 100%; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 1rem; }
.form-field { min-width: 0; text-align: left; }
.form-wide { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 0.65rem; color: #e0e8ed; font-size: 0.8rem; }
.contact-form input:not([type="hidden"]), .contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #809ba647;
  border-radius: 2px;
  outline: 0;
  background: #132430;
  color: #fff;
  font-size: 0.88rem;
}
.contact-form input:not([type="hidden"]) { min-height: 3.4rem; }
.contact-form textarea { min-height: 10rem; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #a0b2be; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #22ace025; }
.contact-form [aria-invalid="true"] { border-color: #ffaaaa; }
.form-guidance, .form-field-error { display: block; margin-top: 0.42rem; font-size: 0.78rem; line-height: 1.4; }
.form-guidance { color: var(--text-muted); }
.form-field-error { color: #ffb8b8; font-weight: 600; }
.form-field-error:empty { display: none; }
.contact-turnstile { display: flex; width: 100%; min-width: 0; min-height: 4.1rem; align-items: center; }
.contact-turnstile > div, .contact-turnstile iframe { max-width: 100%; }
.contact-turnstile__loading { color: var(--text-muted); font-size: 0.83rem; }
.form-status { margin: -0.4rem 0 0; color: #cfdae2; font-size: 0.85rem; font-weight: 500; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { color: #a9e8c0; }
.form-status[data-state="error"] { color: #ffb8b8; }
.form-grid > noscript { grid-column: 1 / -1; }
.contact-submit { min-width: 10rem; }
.contact-submit:disabled, .contact-submit:disabled:hover { border-color: #809ba647; background: #263b48; color: #aebec8; cursor: not-allowed; }
.contact-form[data-state="pending"] .contact-submit:disabled { cursor: wait; }
.contact-privacy { margin: 1.2rem 0 0; color: #99aeba; font-size: 0.72rem; line-height: 1.7; }
.contact-privacy a { color: #c1d2dc; text-decoration: underline; text-underline-offset: 0.2em; }

.site-footer { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: 2.5rem var(--page-pad); border-top: 1px solid #809ba628; background: #080e14; }
.footer-brand { gap: 0.65rem; font-size: 0.9rem; white-space: nowrap; }
.footer-brand .brand-mark { width: 1.4rem; height: 1.55rem; }
.footer-details { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: flex-end; color: #97adb9; font-size: 0.7rem; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 0.2rem; }

/* Legal pages use the same shared shell and navigation. */
.page { display: flex; min-height: 100vh; flex-direction: column; }
.page-main { flex: 1; padding: calc(var(--header-height) + 4rem) var(--page-pad) 6rem; }
.page-body { width: min(100%, 52rem); margin: 0 auto; }
.page-body h1 { max-width: none; margin-bottom: 0.9rem; font-size: clamp(2.8rem, 6vw, 4.5rem); }
.page-body h2 { margin-bottom: 1rem; font-size: clamp(1.4rem, 2.5vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.3; }
.page-body h3 { margin: 1.75rem 0 0.65rem; font-size: 1.05rem; }
.page-body p, .page-body li, .page-body dd, .page-body address { color: #c4d0d9; }
.page-body p, .page-body ul, .page-body dl, .page-body address { margin-bottom: 1rem; }
.page-body ul { padding-left: 1.4rem; }
.page-body li + li { margin-top: 0.55rem; }
.page-body a { color: #8ed5ef; text-decoration: underline; text-underline-offset: 0.2rem; }
.page-body a:hover { color: #fff; }
.page-body strong, .page-body dt { color: #fff; }
.page-body code { padding: 0.1em 0.35em; border: 1px solid #809ba633; border-radius: 2px; background: #809ba612; color: #eef5ff; font-size: 0.92em; overflow-wrap: anywhere; }
.page-body address { font-style: normal; }
.page-header { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #809ba633; }
.page-header .page-subtitle { margin-bottom: 1.25rem; color: #97adb9; font-size: 0.85rem; }
.page-header .page-summary { margin-bottom: 0; font-size: 1.1rem; }
.page-toc { margin-bottom: 3rem; padding: 1.5rem; border: 1px solid #809ba633; border-radius: 2px; background: #809ba609; }
.page-toc .page-toc__title { margin-bottom: 1rem; color: #fff; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.page-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.page-toc li + li { margin-top: 0; }
.page-section { scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.page-section + .page-section { margin-top: 2.75rem; }
.data-list { display: grid; gap: 1rem; }
.data-list > div { padding: 1rem 1.25rem; border-left: 2px solid #22ace070; background: #809ba609; }
.data-list dt { margin-bottom: 0.35rem; font-weight: 600; }
.data-list dd { margin: 0; }
.content-panel { padding: 1.5rem; border: 1px solid #809ba633; background: #809ba609; }
.content-panel > :last-child { margin-bottom: 0; }

@media (max-width: 62rem) {
  :root { --header-height: 5.25rem; }
  .site-brand { font-size: 1.25rem; }
  .site-links { gap: 1.6rem; }
  h1 { max-width: 38rem; margin-inline: auto; font-size: 1.875rem; }
  h2 { font-size: 1.625rem; }
  .contact-content { gap: 3rem; }
  .site-footer { align-items: flex-start; }
  .footer-details { flex-direction: column; align-items: flex-end; }
}

@media (max-width: 46rem) {
  :root { --header-height: 5rem; }
  .site-header { gap: 0.5rem; padding-top: 1rem; padding-bottom: 1rem; }
  .site-brand { gap: 0.5rem; font-size: clamp(0.95rem, 3.8vw, 1.25rem); }
  .brand-mark { width: 1.5rem; height: 1.65rem; }
  .menu-toggle { position: absolute; inset: 0; z-index: 2; display: block; width: 2.75rem; height: 2.75rem; margin: 0; opacity: 0; cursor: pointer; }
  .menu-button { position: relative; display: block; width: 2.75rem; height: 2.75rem; cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { position: absolute; width: 1.5rem; height: 2px; background: currentColor; content: ""; transition: transform 160ms ease, top 160ms ease, background-color 160ms ease; }
  .menu-icon { left: 0.6rem; top: 1.3rem; }
  .menu-icon::before { top: -0.45rem; }
  .menu-icon::after { top: 0.45rem; }
  .menu-toggle:checked + .menu-button .menu-icon { background: transparent; }
  .menu-toggle:checked + .menu-button .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-toggle:checked + .menu-button .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--accent); outline-offset: 3px; }
  .menu-toggle:not(:checked) ~ .site-links { display: none; }
  .menu-toggle:checked ~ .site-links { position: absolute; top: calc(100% + 1.2rem); right: 0; display: grid; gap: 0.3rem; min-width: 13rem; padding: 0.9rem 1.25rem; border: 1px solid #809ba647; background: #0c141c; box-shadow: 0 1rem 2rem #0005; }
  .site-links a { min-height: 2.75rem; padding: 0.7rem 0; }
  .site-links .nav-contact--cta { padding: 0.7rem 0; border: 0; background: transparent; color: #fff; }
  .site-links .nav-contact--cta:hover { color: var(--accent); }
  .nav-contact__desktop-label { display: none; }
  .nav-contact__mobile-label { display: inline; }
  #home { min-height: max(36rem, 100svh); padding: 8rem var(--page-pad); }
  .hero-content { padding-bottom: 2.5rem; }
  h1 { max-width: 21ch; }
  #about, #contact { padding-top: 5rem; padding-bottom: 5rem; }
  .contact-content { grid-template-columns: 1fr; gap: 3rem; }
  .contact-note { margin-top: 2rem; }
  .site-footer { flex-direction: column; gap: 1.5rem; }
  .footer-details { align-items: flex-start; }
  .page-main { padding-top: calc(var(--header-height) + 2.5rem); }
}

@media (max-width: 30rem) {
  .form-grid, .page-toc ul { grid-template-columns: 1fr; }
  .contact-submit { width: 100%; }
}

@media (prefers-color-scheme: light) {
  :root {
    --hero-bg: #f3f6fb;
    --hero-shade: 243, 246, 251;
    --hero-ink: #0d1727;
    --hero-ink-rgb: 13, 23, 39;
  }
  #home { color-scheme: light; }
  .home-page .site-header.is-at-top .brand-mark { background-image: url("../images/dark_logo.png"); }
  .home-page .site-header.is-at-top .site-links { color: #fff; }
}

@media (prefers-color-scheme: light) and (min-width: 46.001rem) {
  .home-page .site-header.is-at-top .site-links { color: var(--hero-ink); }
}

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