* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--type-body-small);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

video {
  display: block;
  max-width: 100%;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 72px;
}

.page > main {
  flex: 1 0 auto;
}

.page.page--home-hero {
  overflow: visible;
  padding-top: 0;
}

.page--home-hero > .site-header {
  display: none;
}

.page > .site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

@media (max-width: 767px) {
  .page--hero-mobile {
    padding-top: 76px;
  }

  .page--home-hero > .site-header {
    display: block;
  }

  /* The shared header owns the menu. These rules define only the two closed
     home-hero states; the open menu remains the shared component's own UI. */
  .page--home-hero > .site-header.site-header--hero-mobile:not([data-open="true"]) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #000;
    color: #fff;
  }

  .page--home-hero > .site-header.site-header--hero-mobile:not([data-open="true"]) .site-logo img {
    filter: invert(1);
  }

  .page--home-hero > .site-header.site-header--hero-mobile.site-header--hero-mobile-scrolled:not([data-open="true"]) .site-header__inner {
    column-gap: 8px;
    grid-template-columns: 1fr auto auto;
  }

  .page--home-hero > .site-header.site-header--hero-mobile.site-header--hero-mobile-scrolled:not([data-open="true"]) .mobile-menu-button {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
  }

  .page--home-hero > .site-header.site-header--hero-mobile.site-header--hero-mobile-scrolled:not([data-open="true"]) .site-header__inner > .primary-pill {
    align-self: center;
    animation: home-hero-buy-in 220ms ease-out both;
    background: #fff;
    color: #111;
    display: inline-flex;
    font-size: 14px;
    grid-column: 2;
    grid-row: 1;
    min-height: 36px;
    min-width: 120px;
    padding: 0 20px;
  }

  @keyframes home-hero-buy-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.section {
  padding: var(--section-pad-y) var(--page-pad-x);
  scroll-margin-top: clamp(72px, 5.86vw, 150px);
}

.scroll-reveal-ready [data-reveal-section] [data-reveal-item] {
  opacity: var(--scroll-reveal-opacity, 0);
  transform: translateY(var(--scroll-reveal-y, 52px));
  will-change: opacity, transform;
}

.container {
  margin: 0 auto;
  max-width: var(--container);
  width: 100%;
}

.container-wide {
  margin: 0 auto;
  max-width: var(--container-wide);
  width: 100%;
}

.site-footer {
  scroll-margin-top: clamp(72px, 5.86vw, 150px);
}

@media (min-width: 1024px) {
  .page {
    padding-top: 104px;
  }

  .section,
  .site-footer {
    scroll-margin-top: 104px;
  }
}

@media (min-width: 1920px) {
  .page {
    padding-top: 120px;
  }

  .section,
  .site-footer {
    scroll-margin-top: 120px;
  }
}

.page-legal-footer {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 var(--page-pad-x) 48px;
}

.page-legal-footer p {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #b9b9b9;
  font-size: var(--type-caption);
  line-height: 1.35;
  margin: 0;
  padding-top: 24px;
  text-align: center;
}

.eyebrow {
  color: var(--color-text-muted);
  font-size: var(--type-section-copy);
  font-weight: 400;
  line-height: 1.45;
  margin: 0 auto;
  max-width: var(--container-narrow);
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--type-section-title);
  font-weight: 500;
  line-height: 1.14;
  margin: 0;
  text-align: center;
}

.section-copy {
  color: var(--color-text-muted);
  font-size: var(--type-section-copy);
  font-weight: 400;
  line-height: 1.45;
  margin: 0 auto;
  max-width: var(--container-narrow);
  text-align: center;
}

.media-frame {
  background: linear-gradient(135deg, #d8d5cb, #f6f2e8);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
}

.media-frame::before {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.68), transparent 26%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.08), transparent 40%);
  content: "";
  inset: 0;
  position: absolute;
}

.media-frame::after {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.primary-pill {
  align-items: center;
  background: var(--color-text);
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.primary-pill:hover {
  background: #242424;
  transform: translateY(-1px);
}

.primary-pill:active {
  transform: translateY(0);
}

.primary-pill:focus-visible,
.footer-submit:focus-visible,
.mobile-menu-button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.sr-only {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (min-width: 1024px) {
  body {
    font-size: var(--type-body);
  }
}

@media (max-width: 767px) {
  .page {
    padding-top: 0;
  }

  .section {
    padding-left: var(--page-pad-x);
    padding-right: var(--page-pad-x);
  }

  .section-copy {
    line-height: 1.55;
  }

  .page-legal-footer p {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-section] [data-reveal-item] {
    transform: none;
    transition: none;
  }
}
