:root {
  --bluegray-800: #293056;
  --bluegray-700: #363f72;
  --bluegray-500: #4e5ba6;
  --bluegray-100: #eaecf5;
  --bluegray-50: #f8f9fc;
  --bluegray-200: #d5d9eb;
  --gray-900: #101828;
  --gray-800: #1d2939;
  --gray-600: #475467;
  --gray-500: #667085;
  --gray-200: #e4e7ec;
  --green-500: #34a624;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: #fff;
  font-family: "Nunito Sans", sans-serif;
  font-size: 20px;
  line-height: 1.5;
}

h1,
h2,
h3,
p {
  margin: 0;
}

main {
    overflow-x: unset !important;
    height: unset !important;
}

.top-row, article {
    padding-left: unset !important;
    padding-right: unset !important;
}

.layout-container {
  width: min(1280px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.display-title {
  color: var(--gray-900);
  font-family: "Gabarito", sans-serif;
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.2;
}

.display-title-md {
  font-size: 48px;
  letter-spacing: -.96px;
  line-height: 60px;
}

/* Global Animated Brand Buttons */
.btn-brand {
  position: relative;
  z-index: 0;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 22px;
  border: none;
  outline: none;
  border-radius: 10px;
  color: #fff !important;
  background: var(--bluegray-800);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.btn-brand,
.btn-brand:hover,
.btn-brand:focus,
.btn-brand:focus-visible,
.btn-brand:active,
.btn-brand:visited {
  color: #fff !important;
}

.btn-brand:before {
  content: '';
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

.btn-brand:hover:before {
  opacity: 1;
}

.btn-brand:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bluegray-800);
  left: 0;
  top: 0;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.btn-brand:active:after {
  background: #1c2240;
}

.btn-large {
  min-height: 60px;
  padding: 16px 34px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* Site Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  width: min(1216px, calc(100% - 48px));
  height: 72px;
  margin: auto;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-mark img {
  display: block;
  width: 142px;
  height: 38px;
}

/* Site Footer */
.site-footer {
  background: #fff;
  color: var(--gray-600);
}

.footer-main {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1.4fr;
  gap: 64px;
  padding: 0 32px;
}

.footer-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.footer-brand img {
  width: 142px;
  height: 38px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
}

.footer-column h2 {
  margin-bottom: 4px;
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.footer-column h2.address-heading {
  margin-top: 20px;
}

.footer-column a {
  color: var(--gray-600);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-column a:hover {
  color: var(--bluegray-800);
}

.footer-column p {
  font-size: 16px;
  line-height: 24px;
}

.footer-notice {
  grid-column: 1 / -1;
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 600;
  line-height: 13px;
}

.footer-notice strong {
  display: inline-block;
  margin-bottom: 3px;
}

.footer-bottom {
  padding: 48px 0;
  background: #f9fafb;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 32px;
}

.footer-bottom-inner > p {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 24px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-links a {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.social-links a:hover {
  opacity: 0.75;
  transform: translateY(-1px);
}

.social-links img {
  display: block;
  width: 24px;
  height: 24px;
}

/* Media Queries for Layout, Header & Footer */
@media (max-width: 1199.98px) {
  .footer-grid {
    grid-template-columns: 220px 1fr 1.4fr;
    gap: 40px;
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  .site-header,
  .nav-inner {
    height: 68px;
  }

  .nav-inner {
    width: calc(100% - 40px);
  }

  .brand-mark img {
    width: 116px;
    height: auto;
  }

  .footer-main,
  .footer-bottom {
    padding: 40px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .footer-brand,
  .footer-notice {
    grid-column: 1 / -1;
  }

  .footer-column p {
    overflow-wrap: anywhere;
  }

  .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }
}

@media (max-width: 399.98px) {
  .nav-inner {
    width: calc(100% - 32px);
  }

  .brand-mark img {
    width: 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-notice {
    grid-column: auto;
  }
}

/* ==========================================================================
   SCROLL REVEAL & MICRO-INTERACTIONS
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal-enabled .reveal-node {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  html.js-reveal-enabled .reveal-node.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Hero Section Initial Load Sequence */
  html.js-reveal-enabled .hero-main .hero-copy {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
  }

  html.js-reveal-enabled .hero-main .hero-art {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: opacity 1.45s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
                transform 1.45s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
  }

  html.js-reveal-enabled .hero-main .btn-large,
  html.js-reveal-enabled .hero-main .hero-note {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.35s,
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
  }

  html.js-reveal-enabled .hero-main.is-revealed .hero-copy,
  html.js-reveal-enabled .hero-main.is-revealed .hero-art,
  html.js-reveal-enabled .hero-main.is-revealed .btn-large,
  html.js-reveal-enabled .hero-main.is-revealed .hero-note {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* Split Sections: Left Copy & Right Art */
  html.js-reveal-enabled .split-copy {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.js-reveal-enabled .split-art {
    opacity: 0;
    transform: translateX(20px) scale(0.98);
    transition: opacity 1.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.js-reveal-enabled .split-copy.is-revealed {
    opacity: 1;
    transform: translateX(0);
  }

  html.js-reveal-enabled .split-art.is-revealed {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  /* Section Headings */
  html.js-reveal-enabled .section-heading {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.js-reveal-enabled .section-heading.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Footer scroll reveal */
  html.js-reveal-enabled .site-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html.js-reveal-enabled .site-footer.is-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered Child Items (Reason Cards, Signal Cards, Patterns, Pills) */
  html.js-reveal-enabled .reason-card,
  html.js-reveal-enabled .pattern-card,
  html.js-reveal-enabled .pill-list span {
    transition-delay: calc(var(--stagger, 0) * 0.15s);
  }

  /* Subtle Micro-Parallax */
  .parallax-subtle {
    transform: translateY(var(--parallax-y, 0px));
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
  }
}