/* UPNEPA NG — Static Site Styles */

:root {
  --font-sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --text-display-xl: 3.75rem;
  --text-display-l: 3rem;
  --text-display-m: 2.25rem;
  --text-display-s: 1.75rem;
  --text-heading-1: 2rem;
  --text-heading-2: 1.5rem;
  --text-heading-3: 1.25rem;
  --text-heading-4: 1.125rem;
  --text-body-large: 1.125rem;
  --text-body-medium: 1rem;
  --text-body-small: 0.875rem;
  --text-caption: 0.75rem;
  --text-label: 0.75rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 7.5rem;
  --space-13: 10rem;

  --section-padding-mobile: var(--space-8);
  --section-padding-tablet: var(--space-9);
  --section-padding-desktop: var(--space-11);

  --color-primary-500: #ec3237;
  --color-primary-600: #d62828;
  --color-primary-700: #b82227;
  --color-primary-50: #fef2f2;
  --color-secondary-500: #f3ad31;
  --color-highlight-gold: #ffd54a;
  --color-surface-light: #fafafa;
  --color-surface-white: #ffffff;
  --color-surface-dark: #111111;
  --color-surface-dark-elevated: #1a1a1a;
  --color-text-primary: #111111;
  --color-text-secondary: #6f6f6f;
  --color-text-on-dark: #ffffff;
  --color-text-muted-on-dark: rgb(255 255 255 / 72%);
  --color-border-light: #e5e5e5;
  --color-border-focus: #ec3237;
  --color-error: #ec3237;
  --color-error-bg: #fef2f2;
  --color-card-bg: #ffffff;
  --color-card-border: #e5e5e5;
  --color-card-border-hover: #f3ad31;
  --color-card-border-active: #ec3237;
  --brand-red: #ec3237;
  --brand-red-hover: #d62828;
  --brand-gold: #f3ad31;
  --brand-gold-highlight: #ffd54a;
  --brand-black: #111111;
  --brand-white: #ffffff;
  --brand-gray: #6f6f6f;

  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --sticky-mobile-cta-height: calc(4.5rem + var(--safe-area-bottom));
}

@media (max-width: 671px) {
  :root {
    --text-display-xl: 2.25rem;
    --text-display-l: 2rem;
    --text-display-m: 1.75rem;
    --text-display-s: 1.5rem;
    --text-heading-1: 1.5rem;
    --text-heading-2: 1.25rem;
    --text-heading-3: 1.125rem;
    --text-body-large: 1rem;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body-medium);
  line-height: 1.5;
  color: var(--color-text-primary);
  background-color: var(--color-surface-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-white);
  color: var(--color-text-primary);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  max-width: 1312px;
  margin-inline: auto;
  padding-inline: max(var(--space-4), var(--safe-area-left)) max(var(--space-4), var(--safe-area-right));
}

@media (min-width: 1920px) {
  .container { max-width: 1584px; }
}

/* Sections */
.section {
  padding-block: var(--section-padding-mobile);
}
@media (min-width: 672px) {
  .section { padding-block: var(--section-padding-tablet); }
}
@media (min-width: 1056px) {
  .section { padding-block: var(--section-padding-desktop); }
}

.section--light { background: var(--color-surface-light); color: var(--color-text-primary); }
.section--white { background: var(--color-surface-white); color: var(--color-text-primary); }
.section--dark { background: var(--color-surface-dark); color: var(--color-text-on-dark); }
.section--primary { background: var(--color-primary-500); color: var(--color-text-on-dark); }

/* Section Heading */
.section-heading { margin-bottom: var(--space-8); max-width: 720px; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.section--dark .section-heading__eyebrow,
.section--primary .section-heading__eyebrow { color: var(--color-highlight-gold); }
.section-heading__title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-display-s);
  font-weight: 400;
  line-height: 1.2;
}
.section-heading__body {
  margin: 0;
  font-size: var(--text-body-large);
  color: var(--color-text-secondary);
  line-height: 1.56;
}
.section--dark .section-heading__body { color: var(--color-text-muted-on-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: 100%;
  min-height: 3rem;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: var(--text-body-small);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
  white-space: normal;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--color-primary-500);
  color: var(--color-text-on-dark);
  box-shadow: 0 4px 14px rgb(236 50 55 / 22%);
}
.btn--primary:hover {
  background: var(--color-primary-600);
  box-shadow: 0 6px 18px rgb(236 50 55 / 30%);
}
.btn--ghost-on-dark {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1px solid var(--brand-gold);
}
.btn--ghost-on-dark:hover {
  background: var(--brand-gold);
  color: var(--brand-black);
}
.btn--outline {
  background: transparent;
  color: var(--brand-black);
  border: 1px solid var(--brand-gold);
}
.btn--outline:hover {
  background: var(--brand-gold);
  color: var(--brand-black);
}
.btn--tertiary {
  background: transparent;
  color: var(--color-primary-500);
  padding-inline: 0;
}
.btn--tertiary:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
}
.btn--lg { min-height: 3rem; padding-inline: var(--space-6); }
@media (max-width: 671px) {
  .btn--lg { width: 100%; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 8000;
  background: var(--brand-white);
  border-bottom: 1px solid var(--color-border-light);
  padding-top: var(--safe-area-top);
  box-shadow: 0 1px 8px rgb(17 17 17 / 6%);
}
.site-header__topbar {
  display: none;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface-light);
}
.site-header__topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-6);
  max-width: 1312px;
  margin-inline: auto;
  padding: var(--space-2) var(--space-4);
}
.site-header__topbar-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 3rem;
  font-size: var(--text-body-small);
  color: var(--brand-gray);
  transition: color 150ms;
}
.site-header__topbar-link:hover { color: var(--brand-gold); }
.site-header__main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  min-height: 4.75rem;
}
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-left: var(--space-3);
  margin-right: auto;
}
.site-header__logo img {
  height: 64px;
  max-width: min(260px, 58vw);
  object-fit: contain;
}
.site-header__nav { display: none; }
.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header__nav-link {
  display: block;
  min-height: 3rem;
  padding: var(--space-2) var(--space-3);
  line-height: 2;
  font-size: var(--text-body-small);
  font-weight: 500;
  color: var(--brand-black);
  transition: color 150ms, box-shadow 150ms;
  border-radius: 2px;
}
.site-header__nav-link:hover { color: var(--brand-gold); }
.site-header__nav-link.is-active {
  color: var(--brand-red);
  box-shadow: inset 0 -2px 0 0 var(--brand-red);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.site-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--brand-black);
  cursor: pointer;
}
.site-header__cta-desktop { display: none; }
.site-header__backdrop {
  position: fixed;
  inset: 0;
  z-index: 7998;
  border: none;
  background: rgb(17 17 17 / 45%);
  cursor: pointer;
  display: none;
}
.site-header__backdrop.is-open { display: block; }
.site-header__mobile-nav {
  position: fixed;
  top: calc(4.75rem + var(--safe-area-top));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7999;
  padding: var(--space-6) var(--space-4);
  background: var(--brand-white);
  overflow-y: auto;
  display: none;
  animation: slideIn 220ms ease-out;
}
.site-header__mobile-nav.is-open { display: block; }
.site-header__mobile-list {
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
}
.site-header__mobile-link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: var(--space-3) 0;
  font-size: var(--text-body-large);
  font-weight: 500;
  color: var(--brand-black);
  border-bottom: 1px solid var(--color-border-light);
}
.site-header__mobile-link:hover { color: var(--brand-gold); }
.site-header__mobile-link.is-active { color: var(--brand-red); }
.site-header__mobile-cta { width: 100%; margin-top: var(--space-4); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 672px) {
  .site-header__topbar { display: block; }
}
@media (min-width: 1056px) {
  .site-header__nav { display: block; }
  .site-header__logo img { height: 90px; max-width: 320px; }
  .site-header__main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-6);
    min-height: 5.5rem;
    padding-right: var(--space-6);
  }
  .site-header__logo {
    padding-left: var(--space-4);
    margin-right: 0;
  }
  .site-header__nav { justify-self: center; }
  .site-header__cta-desktop { display: inline-flex; }
  .site-header__menu-toggle { display: none; }
}

/* Footer */
.site-footer {
  background: var(--brand-black);
  color: rgb(255 255 255 / 72%);
  padding-block: var(--space-9) var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 10%);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 672px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-9); }
}
.site-footer__brand { max-width: 360px; }
.site-footer__logo {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: var(--text-heading-3);
  font-weight: 600;
  color: var(--color-text-on-dark);
}
.site-footer__tagline {
  margin: 0 0 var(--space-2);
  font-size: var(--text-body-medium);
  color: var(--color-text-on-dark);
}
.site-footer__descriptor {
  margin: 0 0 var(--space-5);
  font-size: var(--text-body-small);
  color: var(--brand-gold);
}
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.site-footer__contact a {
  font-size: var(--text-body-small);
  color: var(--color-text-on-dark);
  transition: color 150ms;
}
.site-footer__contact a:hover { color: var(--brand-red); }
.site-footer__social {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(255 255 255 / 20%);
  color: var(--color-text-on-dark);
  transition: border-color 150ms, color 150ms;
}
.site-footer__social a:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}
.site-footer__column-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.site-footer__link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.site-footer__link-list a {
  font-size: var(--text-body-small);
  color: var(--color-text-on-dark);
  transition: color 150ms;
}
.site-footer__link-list a:hover { color: var(--brand-red); }
.site-footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 10%);
}
.site-footer__disclaimer {
  margin: 0 0 var(--space-4);
  font-size: var(--text-caption);
  line-height: 1.5;
  max-width: 720px;
}
.site-footer__copyright {
  margin: 0;
  font-size: var(--text-caption);
}

/* Breadcrumbs */
.breadcrumbs {
  padding-block: var(--space-4);
  background: var(--color-surface-white);
  border-bottom: 1px solid var(--color-border-light);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-body-small);
}
.breadcrumbs__item { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); }
.breadcrumbs__item a { color: var(--brand-red); }
.breadcrumbs__item a:hover { text-decoration: underline; }
.breadcrumbs__sep { color: var(--color-text-secondary); }

/* Home Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ec3237 0%, #f3ad31 100%);
  color: var(--color-text-on-dark);
  padding-block: var(--space-10) var(--space-9);
}
.home-hero .container {
  padding-left: 0;
  padding-right: max(var(--space-4), var(--safe-area-right));
}
.home-hero__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-hero__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(17 17 17 / 15%) 0%, rgb(17 17 17 / 35%) 100%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 4%) 0, rgb(255 255 255 / 4%) 1px, transparent 1px, transparent 56px),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 4%) 0, rgb(255 255 255 / 4%) 1px, transparent 1px, transparent 56px);
}
.home-hero__glow-red {
  position: absolute;
  top: -15%;
  right: -5%;
  width: 50%;
  height: 65%;
  background: radial-gradient(circle, rgb(236 50 55 / 35%) 0%, transparent 70%);
  filter: blur(48px);
}
.home-hero__glow-amber {
  position: absolute;
  bottom: -10%;
  left: 5%;
  width: 45%;
  height: 50%;
  background: radial-gradient(circle, rgb(255 213 74 / 28%) 0%, transparent 72%);
  filter: blur(52px);
}
.home-hero__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgb(17 17 17 / 62%) 0%, rgb(17 17 17 / 28%) 42%, rgb(17 17 17 / 12%) 58%, rgb(17 17 17 / 38%) 100%);
}
.home-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 36rem;
  padding-left: max(var(--space-4), var(--safe-area-left));
}
.home-hero__eyebrow {
  margin: 0;
  padding-left: var(--space-3);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-highlight-gold);
  border-left: 3px solid var(--brand-gold);
}
.home-hero__headline {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, var(--text-display-xl));
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.home-hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.home-hero__body p {
  margin: 0;
  font-size: var(--text-body-medium);
  line-height: 1.62;
  color: rgb(255 255 255 / 88%);
}
.home-hero__lead {
  font-size: var(--text-body-large);
  line-height: 1.56;
  color: rgb(255 255 255 / 96%);
}
.home-hero__trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-hero__trust-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.4rem 0.8rem;
  font-size: var(--text-body-small);
  font-weight: 500;
  background: rgb(255 255 255 / 10%);
  color: rgb(255 255 255 / 95%);
  border: 1px solid rgb(255 255 255 / 22%);
  backdrop-filter: blur(6px);
}
.home-hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-1);
}
.home-hero__visual {
  width: 100%;
  min-height: 260px;
}
.home-hero__visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 3px;
  background: linear-gradient(145deg, rgb(255 255 255 / 35%), rgb(255 255 255 / 8%));
  border-radius: 8px;
  box-shadow:
    0 28px 56px rgb(17 17 17 / 38%),
    0 0 0 1px rgb(255 255 255 / 12%) inset;
}
.home-hero__visual-frame::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%);
  pointer-events: none;
}
.home-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

@media (min-width: 672px) {
  .home-hero { padding-block: var(--space-12) var(--space-11); }
  .home-hero__layout { gap: var(--space-6); }
  .home-hero__content { gap: var(--space-7); }
  .home-hero__ctas { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .home-hero__visual { min-height: 380px; }
}
@media (min-width: 1056px) {
  .home-hero { padding-block: var(--space-13) var(--space-12); }
  .home-hero .container {
    padding-right: max(var(--space-6), var(--safe-area-right));
  }
  .home-hero__layout {
    grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
    gap: var(--space-6) var(--space-4);
    align-items: center;
  }
  .home-hero__content {
    max-width: 34rem;
    padding-left: 1in;
    padding-right: 0;
  }
  .home-hero__visual {
    min-height: 520px;
    justify-self: start;
    max-width: none;
    width: 100%;
  }
}

/* Page Hero */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--color-text-on-dark);
  padding-block: var(--space-10) var(--space-9);
  min-height: 320px;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(17 17 17 / 40%) 0%, rgb(17 17 17 / 70%) 100%);
}
.page-hero__grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 6%) 0, rgb(255 255 255 / 6%) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(0deg, rgb(255 255 255 / 6%) 0, rgb(255 255 255 / 6%) 1px, transparent 1px, transparent 48px);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.page-hero__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-highlight-gold);
}
.page-hero__headline {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.75rem, 5vw, var(--text-display-m));
  font-weight: 400;
  line-height: 1.15;
}
.page-hero__subheadline,
.page-hero__supporting {
  margin: 0 0 var(--space-4);
  font-size: var(--text-body-large);
  line-height: 1.56;
  color: rgb(255 255 255 / 92%);
}
.page-hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (min-width: 672px) {
  .page-hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Trust Bar */
.trust-bar {
  overflow: hidden;
  padding-block: var(--space-4);
  background: var(--color-surface-white);
  border-block: 1px solid var(--color-border-light);
}
.trust-bar__marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .trust-bar__marquee {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: var(--space-2);
    padding-inline: var(--space-4);
  }
}
.trust-bar__track {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-inline: var(--space-4);
  flex-shrink: 0;
}
.trust-bar__tag {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-body-small);
  font-weight: 500;
  white-space: nowrap;
  background: var(--color-surface-light);
  color: var(--brand-black);
  border: 1px solid var(--color-border-light);
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Grid layouts */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 672px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1056px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Cards */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  padding: var(--space-5);
  height: 100%;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.card:hover {
  border-color: var(--color-card-border-hover);
  box-shadow: 0 8px 24px rgb(17 17 17 / 8%);
  transform: translateY(-2px);
}
.card__pillar {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0.25rem 0.5rem;
  font-size: var(--text-caption);
  font-weight: 600;
  background: var(--color-primary-50);
  color: var(--brand-red);
}
.card__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-heading-3);
  font-weight: 600;
}
.card__subtitle {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body-small);
  color: var(--brand-gold);
  font-weight: 500;
}
.card__desc {
  margin: 0;
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  line-height: 1.56;
}
.card__stat {
  margin-top: var(--space-4);
  font-size: var(--text-body-small);
  font-weight: 600;
  color: var(--brand-red);
}
.card--dark {
  background: var(--color-surface-dark-elevated);
  border-color: rgb(255 255 255 / 10%);
  color: var(--color-text-on-dark);
}
.card--dark .card__desc { color: var(--color-text-muted-on-dark); }

/* Framework Diagram */
.framework {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 1056px) {
  .framework { grid-template-columns: repeat(4, 1fr); }
}
.framework__item {
  position: relative;
  padding: var(--space-5);
  background: var(--color-surface-white);
  border: 1px solid var(--color-card-border);
  border-top: 3px solid var(--brand-red);
}
.framework__pillar {
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: var(--space-2);
}
.framework__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-heading-3);
  font-weight: 600;
}
.framework__subtitle {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body-small);
  color: var(--brand-gold);
}
.framework__desc {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  line-height: 1.56;
}
.framework__closing {
  margin: 0;
  font-size: var(--text-body-small);
  font-weight: 600;
  color: var(--brand-black);
}

/* Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  overflow: hidden;
  height: 100%;
  transition: border-color 200ms, box-shadow 200ms;
}
.project-card:hover {
  border-color: var(--color-card-border-hover);
  box-shadow: 0 12px 32px rgb(17 17 17 / 10%);
}
.project-card__image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-gold) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-4);
}
.project-card__badge {
  padding: 0.25rem 0.5rem;
  font-size: var(--text-caption);
  font-weight: 600;
  background: var(--brand-white);
  color: var(--brand-black);
}
.project-card__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.project-card__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-heading-3);
  font-weight: 600;
}
.project-card__meta {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body-small);
  color: var(--brand-gold);
}
.project-card__result {
  margin: 0;
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  line-height: 1.56;
  flex: 1;
}

/* CTA Section */
.cta-section__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.cta-section__headline {
  margin: 0 0 var(--space-4);
  font-size: var(--text-display-s);
  font-weight: 400;
  line-height: 1.2;
}
.cta-section__body {
  margin: 0 0 var(--space-6);
  font-size: var(--text-body-large);
  line-height: 1.56;
  color: rgb(255 255 255 / 90%);
}
.cta-section__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
}
@media (min-width: 672px) {
  .cta-section__actions { flex-direction: row; flex-wrap: wrap; }
}

/* Testimonials */
.testimonials { position: relative; }
.testimonials__track {
  display: flex;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonials__slide {
  flex: 0 0 100%;
  padding: var(--space-6);
  background: var(--color-surface-white);
  border: 1px solid var(--color-card-border);
}
.testimonials__quote {
  margin: 0 0 var(--space-5);
  font-size: var(--text-body-large);
  line-height: 1.56;
  font-style: italic;
}
.testimonials__author {
  font-weight: 600;
  margin: 0 0 var(--space-1);
}
.testimonials__org {
  margin: 0;
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
}
.testimonials__nav {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-5);
}
.testimonials__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: none;
  background: var(--color-border-light);
  cursor: pointer;
  padding: 0;
}
.testimonials__dot.is-active { background: var(--brand-red); }

/* Count Up */
.stat-grid {
  display: grid;
  gap: var(--space-5);
  text-align: center;
}
@media (min-width: 672px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat__value {
  font-size: var(--text-display-m);
  font-weight: 300;
  color: var(--brand-red);
  line-height: 1;
}
.stat__label {
  margin-top: var(--space-2);
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
}
.section--dark .stat__label { color: var(--color-text-muted-on-dark); }

/* Forms */
.form-section { scroll-margin-top: 6rem; }
.form-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 672px) {
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-group label {
  font-size: var(--text-body-small);
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: var(--text-body-medium);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-white);
  color: var(--color-text-primary);
  transition: border-color 150ms;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-border-focus);
  outline-offset: -1px;
  border-color: var(--color-border-focus);
}
.form-group input.is-error,
.form-group select.is-error,
.form-group textarea.is-error {
  border-color: var(--color-error);
}
.form-error {
  font-size: var(--text-caption);
  color: var(--color-error);
}
.form-success {
  padding: var(--space-5);
  background: var(--color-primary-50);
  border: 1px solid var(--brand-gold);
}
.form-success__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-heading-3);
  font-weight: 600;
  color: var(--brand-black);
}
.form-success__msg {
  margin: 0;
  font-size: var(--text-body-medium);
  color: var(--color-text-secondary);
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* FAQ / Accordion */
.accordion { border-top: 1px solid var(--color-border-light); }
.accordion__item { border-bottom: 1px solid var(--color-border-light); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) 0;
  font-family: inherit;
  font-size: var(--text-body-medium);
  font-weight: 500;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}
.accordion__trigger:hover { color: var(--brand-red); }
.accordion__icon {
  flex-shrink: 0;
  transition: transform 200ms;
}
.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }
.accordion__panel {
  display: none;
  padding-bottom: var(--space-4);
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  line-height: 1.56;
}
.accordion__item.is-open .accordion__panel { display: block; }

/* Contact Options */
.contact-option {
  padding: var(--space-5);
  background: var(--color-surface-white);
  border: 1px solid var(--color-card-border);
  height: 100%;
  transition: border-color 200ms;
}
.contact-option:hover { border-color: var(--color-card-border-hover); }
.contact-option__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-heading-4);
  font-weight: 600;
}
.contact-option__value {
  margin: 0 0 var(--space-2);
  font-size: var(--text-body-large);
  color: var(--brand-red);
  font-weight: 500;
}
.contact-option__desc {
  margin: 0 0 var(--space-4);
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
}

/* Map */
.map-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  min-height: 320px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.filter-tab {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: var(--text-body-small);
  font-weight: 500;
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.filter-tab:hover { border-color: var(--brand-gold); }
.filter-tab.is-active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--color-text-on-dark);
}

/* Before/After */
.before-after {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 672px) {
  .before-after { grid-template-columns: 1fr 1fr; }
}
.before-after__panel {
  padding: var(--space-5);
  text-align: center;
  border: 1px solid var(--color-card-border);
}
.before-after__panel--before { background: var(--color-surface-light); }
.before-after__panel--after { background: var(--color-primary-50); border-color: var(--brand-gold); }
.before-after__label {
  margin: 0 0 var(--space-2);
  font-size: var(--text-body-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.before-after__value {
  font-size: var(--text-display-s);
  font-weight: 300;
  color: var(--brand-red);
}

/* Process Timeline */
.timeline {
  display: grid;
  gap: var(--space-5);
  position: relative;
}
@media (min-width: 1056px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
}
.timeline__step {
  position: relative;
  padding: var(--space-5);
  background: var(--color-surface-white);
  border: 1px solid var(--color-card-border);
  border-top: 3px solid var(--brand-gold);
}
.timeline__number {
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: var(--space-2);
}
.timeline__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-heading-4);
  font-weight: 600;
}
.timeline__desc {
  margin: 0;
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  line-height: 1.56;
}

/* Legal */
.legal-hero {
  padding-block: var(--space-8);
  background: var(--color-surface-dark);
  color: var(--color-text-on-dark);
}
.legal-hero__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-display-s);
  font-weight: 400;
}
.legal-hero__sub {
  margin: 0 0 var(--space-2);
  font-size: var(--text-body-large);
  color: var(--color-text-muted-on-dark);
}
.legal-hero__date {
  margin: 0;
  font-size: var(--text-body-small);
  color: var(--brand-gold);
}
.legal-prose {
  max-width: 720px;
  font-size: var(--text-body-medium);
  line-height: 1.7;
}
.legal-prose p { margin: 0 0 var(--space-4); }
.legal-prose ul { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
.legal-prose li { margin-bottom: var(--space-2); }

/* Sticky CTA */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 7000;
  display: none;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-3), var(--safe-area-bottom));
  background: var(--brand-black);
  border-top: 1px solid rgb(255 255 255 / 10%);
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-mobile-cta.is-visible {
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(0);
}
.sticky-mobile-cta .btn { font-size: var(--text-caption); padding: 0.75rem 0.5rem; min-height: 2.75rem; }
@media (min-width: 1056px) {
  .sticky-mobile-cta { display: none !important; }
}

.sticky-desktop-cta {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 7000;
  display: none;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 300ms, transform 300ms;
}
.sticky-desktop-cta.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1055px) {
  .sticky-desktop-cta { display: none !important; }
}

/* Exit Intent Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgb(17 17 17 / 55%);
}
.modal-overlay.is-open { display: flex; }
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--color-surface-white);
  box-shadow: 0 24px 48px rgb(17 17 17 / 20%);
}
.modal__header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
}
.modal__title {
  margin: 0;
  font-size: var(--text-heading-2);
  font-weight: 600;
}
.modal__body {
  padding: var(--space-5);
  font-size: var(--text-body-medium);
  line-height: 1.56;
}
.modal__footer {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-5);
  border-top: 1px solid var(--color-border-light);
}
.modal__footer .btn { flex: 1; }
.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hero fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeInUp 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-in-delay-1 { animation-delay: 100ms; opacity: 0; }
.animate-fade-in-delay-2 { animation-delay: 200ms; opacity: 0; }
.animate-fade-in-delay-3 { animation-delay: 300ms; opacity: 0; }
.animate-fade-in-delay-4 { animation-delay: 400ms; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in, .animate-fade-in-delay-1, .animate-fade-in-delay-2,
  .animate-fade-in-delay-3, .animate-fade-in-delay-4 {
    animation: none;
    opacity: 1;
  }
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body-small);
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border: 1px solid var(--color-border-light);
}
.comparison-table th {
  background: var(--color-surface-light);
  font-weight: 600;
}
.comparison-table__wrapper { overflow-x: auto; }

/* Detail sections */
.detail-section {
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border-light);
}
.detail-section:last-child { border-bottom: none; }
.detail-section__title {
  margin: 0 0 var(--space-3);
  font-size: var(--text-heading-1);
  font-weight: 600;
}
.detail-section__headline {
  margin: 0 0 var(--space-4);
  font-size: var(--text-heading-2);
  color: var(--brand-gold);
}
.detail-section__desc {
  margin: 0 0 var(--space-5);
  font-size: var(--text-body-large);
  line-height: 1.56;
  max-width: 720px;
}
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
@media (min-width: 672px) {
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}
.feature-list li {
  padding-left: var(--space-4);
  position: relative;
  font-size: var(--text-body-small);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--brand-red);
  border-radius: 50%;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 672px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-red) 50%, var(--brand-gold) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  transition: transform 200ms;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item__label {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-text-on-dark);
}

/* Trust highlights */
.trust-highlights {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 672px) {
  .trust-highlights { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1056px) {
  .trust-highlights { grid-template-columns: repeat(4, 1fr); }
}
.trust-highlight {
  padding: var(--space-5);
  background: var(--color-surface-white);
  border: 1px solid var(--color-card-border);
  text-align: center;
}
.trust-highlight__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-heading-4);
  font-weight: 600;
}
.trust-highlight__desc {
  margin: 0;
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
}

/* Event Card */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-white);
  border: 1px solid var(--color-card-border);
  overflow: hidden;
  height: 100%;
}
.event-card__image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #111 0%, #ec3237 50%, #f3ad31 100%);
}
.event-card__body { padding: var(--space-5); flex: 1; }
.event-card__type {
  margin: 0 0 var(--space-2);
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-gold);
}
.event-card__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-heading-4);
  font-weight: 600;
}
.event-card__meta {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
}
.event-card__desc {
  margin: 0;
  font-size: var(--text-body-small);
  color: var(--color-text-secondary);
  line-height: 1.56;
}

/* Body padding for sticky CTA */
@media (max-width: 1055px) {
  body.has-sticky-cta { padding-bottom: var(--sticky-mobile-cta-height); }
}

/* Splash / Rolling Logo */
body.is-splashing { overflow: hidden; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111111 0%, #ec3237 45%, #f3ad31 100%);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), visibility 700ms;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
}

.splash__stage {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.splash__ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--brand-gold);
  border-right-color: var(--brand-gold-highlight);
  border-radius: 50%;
  animation: splashRingSpin 1.2s linear infinite;
}

.splash__ring--inner {
  inset: 16px;
  border-top-color: var(--brand-red);
  border-right-color: transparent;
  animation-direction: reverse;
  animation-duration: 1.6s;
}

.splash__roller {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: logoRoll 2.4s ease-in-out infinite;
}

.splash__logo {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgb(17 17 17 / 35%));
  backface-visibility: visible;
}

.splash__tagline {
  margin: 0;
  font-size: var(--text-body-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  opacity: 0;
  animation: splashFadeUp 800ms ease 400ms forwards;
}

@keyframes logoRoll {
  0% { transform: rotateY(0deg) rotateX(8deg); }
  50% { transform: rotateY(180deg) rotateX(-8deg); }
  100% { transform: rotateY(360deg) rotateX(8deg); }
}

@keyframes splashRingSpin {
  to { transform: rotate(360deg); }
}

@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 0.9; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .splash__roller { animation: none; }
  .splash__ring { animation: none; border-color: var(--brand-gold); }
  .splash__tagline { animation: none; opacity: 0.9; }
}
