:root {
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-dark: #1e40af;
  --secondary: #3b82f6;
  --secondary-light: #93c5fd;
  --bg: #ffffff;
  --bg-alt: #f0f9ff;
  --bg-dark: #1e40af;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #fafbfc;
  --border: #cbd5e1;
  --max-width: 1280px;
  --space: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --font: system-ui, -apple-system, sans-serif;
  --font-header: system-ui, -apple-system, sans-serif;
  --header-clearance: 8rem
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: none
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: var(--space);
  background: var(--primary);
  color: #fff;
  z-index: 9999
}

.skip-link:focus {
  top: 0
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg)
}

/* Hero layout in critical.css to prevent CLS before local.css loads */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
  position: relative;
  z-index: 2;
  padding-top: clamp(10rem, 22vw, 12rem);
}

@media (min-width:1024px) {
  .hero .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .hero-content {
    flex: 0 0 45%;
    max-width: 40rem;
  }
}

.hero-image {
  aspect-ratio: 1920/1540;
  width: 100%;
  max-width: 37.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 0;
  contain: layout style paint;
}

@media (min-width:1024px) {
  .hero-image {
    flex: 0 0 50%;
    max-width: 50rem;
    bottom: auto;
    right: auto
  }
}

/* Absolute positioning prevents img from affecting container size = no CLS */
.hero-image picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  vertical-align: middle
}

.performance-image-wrap {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header {
  position: fixed;
  top: var(--space-lg);
  left: 0;
  right: 0;
  z-index: 1000;
  background: 0 0;
  padding: 0;
  transition: top .25s cubic-bezier(.4, 0, .2, 1), background .25s cubic-bezier(.4, 0, .2, 1), padding .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s cubic-bezier(.4, 0, .2, 1), border-bottom .25s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  will-change: top, background, padding
}

.site-header.scrolled {
  position: fixed;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: calc(var(--space) * 1.5) 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  pointer-events: auto
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 85%;
  margin-inline: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space) var(--space-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transition: max-width .25s cubic-bezier(.4, 0, .2, 1), border-radius .25s cubic-bezier(.4, 0, .2, 1), padding .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s cubic-bezier(.4, 0, .2, 1);
  pointer-events: auto;
  will-change: max-width, border-radius, padding;
  position: relative
}

.site-header.scrolled .container {
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  padding: 0 var(--space-lg)
}

.site-logo {
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none
}

.site-logo img {
  display: block;
  height: 2.75rem;
  width: auto;
  object-fit: contain
}

@media (max-width:767px) {
  .site-header .site-logo img {
    height: 1.75rem
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: var(--primary);
  border-radius: var(--radius);
  cursor: pointer
}

@media (min-width:768px) {
  .nav-toggle {
    display: none
  }
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #fff;
  transition: opacity .25s ease, transform .25s ease
}

.nav-toggle .nav-toggle-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg)
}

.nav-toggle .nav-toggle-hamburger {
  opacity: 1;
  transform: rotate(0deg)
}

.nav-toggle.is-active .nav-toggle-hamburger {
  opacity: 0;
  transform: rotate(90deg)
}

.nav-toggle.is-active .nav-toggle-close {
  opacity: 1;
  transform: rotate(0deg)
}

.main-nav {
  display: none
}

.main-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1)
}

@media (min-width:768px) {
  .main-nav {
    display: flex;
    position: static;
    border: none;
    padding: 0;
    gap: var(--space-lg);
    box-shadow: none
  }

  .main-nav.is-open {
    display: flex
  }
}

.main-nav a {
  display: block;
  padding: .5rem 0;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.0625rem
}

.main-nav>a:hover {
  color: var(--primary-light)
}

@media (min-width:768px) {
  .main-nav a {
    display: inline;
    padding: 0
  }
}

.header-cta {
  display: none
}

@media (min-width:1024px) {
  .header-cta {
    display: inline-block
  }
}

@media (max-width:767px) {
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    transition: width .25s cubic-bezier(.4, 0, .2, 1);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg)
  }

  .main-nav.is-open>a,
  .main-nav.is-open .nav-dropdown {
    text-align: center
  }

  .site-header .header-cta {
    display: none !important
  }

  .site-header.scrolled .main-nav.is-open {
    width: 100vw
  }
}

@media (max-width:767px) {
  .site-header {
    top: var(--space)
  }

  .site-header .container {
    max-width: 95%;
    padding: var(--space) var(--space-md)
  }

  .site-header.scrolled {
    top: 0
  }

  .site-header.scrolled .container {
    max-width: 100%;
    padding: 0 var(--space-md)
  }
}