/* =========================
   Design Tokens
========================= */

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --color-primary: #0a1c2e;
  --color-primary-2: #0f2a44;
  --color-slate: #1d2f40;
  --color-accent: #1a78b4;
  --color-accent-hover: #146399;
  --color-accent-text: #136496;
  --color-accent-bright: #3fa7e0;
  --color-accent-soft: #6fb8e6;
  --color-teal: #1c6f6d;
  --color-background: #faf9f6;
  --color-surface: #ffffff;
  --color-tint: #f0eee8;
  --color-text: #14212e;
  --color-muted: #56636f;
  --color-line: #dcdfe2;
  --color-line-strong: #bfc6cc;
  --color-error: #b3261e;
  --color-on-dark: #eaf0f5;
  --color-on-dark-muted: #a9b9c7;
  --color-line-dark: rgba(255, 255, 255, 0.14);

  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-height: 4.5rem;

  --radius-sm: 2px;
  --radius-md: 6px;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: clamp(2.5rem, 5vw, 4rem);
  --space-xl: clamp(4rem, 9vw, 8rem);

  --text-hero: clamp(2.8rem, 6vw, 5.5rem);
  --text-h2: clamp(2rem, 4vw, 3.5rem);
  --text-h2-sm: clamp(1.75rem, 3vw, 2.5rem);
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-label: 0.75rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 0.35s;
}

/* =========================
   Reset
========================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

address {
  font-style: normal;
}

/* =========================
   Typography
========================= */

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h3 {
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
}

.eyebrow,
.section-label,
.label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label {
  margin-bottom: var(--space-sm);
  color: var(--color-accent-text);
}

.section-label span {
  font-weight: 600;
}

.eyebrow {
  margin-bottom: var(--space-md);
  color: var(--color-accent-soft);
}

.note {
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.tbd {
  display: inline-block;
  padding: 0.05em 0.5em;
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.meta {
  margin-top: var(--space-sm);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* =========================
   Layout
========================= */

.container {
  width: min(var(--container-width), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.section--tint {
  background: var(--color-tint);
}

.section--dark {
  position: relative;
  color: var(--color-on-dark);
  background-color: var(--color-primary);
  background-image:
    linear-gradient(rgba(111, 184, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 184, 230, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
}

.section-head {
  margin-bottom: var(--space-lg);
}

.section-head--split {
  display: grid;
  gap: var(--space-md);
}

.section-title {
  max-width: 20ch;
  font-size: var(--text-h2);
}

.section-title--sm {
  font-size: var(--text-h2-sm);
}

.section-lead {
  max-width: 52ch;
  margin-top: var(--space-md);
  font-size: 1.125rem;
  color: var(--color-muted);
}

.section--dark .section-lead {
  color: var(--color-on-dark-muted);
}

.section-head--split .section-lead {
  margin-top: 0;
}

.section-more {
  margin-top: var(--space-lg);
}

.split {
  display: grid;
  gap: var(--space-lg);
}

.split + .split {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line);
}

.prose p + p {
  margin-top: 1.1em;
}

.prose--narrow {
  max-width: 46rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.75rem 1.1rem;
  font-weight: 500;
  color: #fff;
  background: var(--color-accent);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

::selection {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

/* =========================
   Header
========================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.site-header.is-scrolled,
.menu-open .site-header {
  background-color: var(--color-primary);
  border-bottom-color: var(--color-line-dark);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: var(--header-height);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
}

.brand__name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 0.25rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  background: none;
  border: 0;
}

.menu-toggle__icon {
  position: relative;
  width: 1.5rem;
  height: 1rem;
}

.menu-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--duration) var(--ease), top var(--duration) var(--ease);
}

.menu-toggle__icon span:first-child {
  top: 3px;
}

.menu-toggle__icon span:last-child {
  top: 11px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child {
  top: 7px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child {
  top: 7px;
  transform: rotate(-45deg);
}

/* Mobile navigation panel (default); desktop layout lives in responsive.css */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-height) + 1.5rem) var(--gutter) 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-primary);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.75rem);
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    visibility 0s linear var(--duration);
}

.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 3.75rem;
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  border-bottom: 1px solid var(--color-line-dark);
}

.site-nav__list a[aria-current="page"] {
  color: var(--color-accent-soft);
}

.site-nav__cta {
  margin-top: var(--space-lg);
}

.menu-open {
  overflow: hidden;
}

/* =========================
   Hero
========================= */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(40rem, 100svh, 70rem);
  color: #fff;
  background: var(--color-primary);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 22, 38, 0.84) 0%, rgba(8, 22, 38, 0.62) 55%, rgba(8, 22, 38, 0.38) 100%),
    linear-gradient(0deg, rgba(8, 22, 38, 0.65) 0%, transparent 45%);
}

.hero__inner {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.hero__title {
  max-width: 13ch;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: var(--space-md);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  color: var(--color-on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-lg);
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-line-dark);
}

.hero__tag {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
}

.scroll-cue {
  display: inline-flex;
  justify-content: center;
  width: 2.75rem;
  height: 3.5rem;
}

.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
  background: var(--color-line-dark);
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: #fff;
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(250%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .page-hero__inner > * {
    animation: rise 0.8s var(--ease) both;
  }

  .hero__title,
  .page-hero__title {
    animation-delay: 0.08s;
  }

  .hero__lead,
  .page-hero__lead {
    animation-delay: 0.16s;
  }

  .hero__actions {
    animation-delay: 0.24s;
  }
}

/* =========================
   Footer
========================= */

.site-footer {
  padding-top: var(--space-xl);
  color: var(--color-on-dark-muted);
  background: var(--color-primary);
  font-size: 0.9375rem;
}

.site-footer a {
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.site-footer__brand .brand {
  color: #fff;
}

.site-footer__brand p {
  max-width: 28rem;
  margin-top: var(--space-md);
}

.site-footer__title {
  margin-bottom: var(--space-sm);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer address {
  line-height: 1.8;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  font-size: var(--text-small);
  border-top: 1px solid var(--color-line-dark);
}

/* =========================
   Reduced motion
========================= */

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

  .scroll-cue__line::after {
    animation: none;
    inset: 0;
    height: 100%;
    opacity: 0.35;
  }
}

.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}

.section--dark .section-label,
.cta .section-label {
  color: var(--color-accent-soft);
}
