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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--card);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand-500);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  margin: 0 0 0.55em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section--surface {
  background: var(--surface);
}

.section--ink {
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(47, 127, 255, 0.2), transparent 55%),
    linear-gradient(160deg, var(--royal-900) 0%, var(--royal-800) 50%, var(--royal-950) 100%);
  color: #e8eef8;
}

.section__eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.75rem;
}

.section--ink .section__eyebrow {
  color: var(--brand-300);
}

.section__title {
  font-size: var(--fs-h2);
  max-width: 18em;
  margin-bottom: 0.85rem;
  color: inherit;
}

.section--ink .section__title {
  color: #fff;
}

.section__lead {
  color: var(--muted);
  max-width: 46em;
  font-size: var(--fs-lead);
  line-height: 1.9;
  margin: 0;
}

.section--ink .section__lead {
  color: rgba(232, 238, 248, 0.72);
}

.section__head {
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0 1.65rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--fs-btn);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand-500);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-600);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
}

.btn--outline:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--brand-700);
  border-color: #fff;
}

.btn--light:hover {
  background: var(--brand-100);
  color: var(--brand-700);
}

.btn--sm {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 0.875rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .section {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ba-hero__field,
  .ba-hero__core,
  .ba-hero__scan,
  .ba-hero__art,
  .ba-hero__mesh,
  .ba-hero__content,
  .ba-media__slide {
    animation: none !important;
    transition: none !important;
  }

  .ba-hero__art {
    transform: scale(1.02);
    filter: contrast(1.03) saturate(1.02);
    opacity: 1 !important;
  }

  .ba-hero__art-wrap {
    animation: none !important;
  }
}
