/* ============================================
   Active Engagement — Global Styles
   Brand: "The Grounded Architect"
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-brand-red: #991B1E;
  --color-brand-red-dark: #7A1517;
  --color-black: #1A1A1A;
  --color-charcoal: #2D2D2D;
  --color-gray-dark: #4A4A4A;
  --color-gray-medium: #6B6B6B;
  --color-gray-light: #E8E4E0;
  --color-warm-white: #FAF8F5;
  --color-white: #FFFFFF;
  --color-overlay: rgba(39, 28, 24, 0.6);
  --color-overlay-dark: #271C18;

  /* Typography */
  --font-heading: 'IvyPresto Display', 'Georgia', 'Times New Roman', serif;
  --font-body: 'AktivGrotesk', 'Helvetica Neue', 'Arial', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: none;

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* --- Font Faces --- */
/* IvyPresto Display — loaded via Adobe Fonts or self-hosted */
@font-face {
  font-family: 'IvyPresto Display';
  src: url('../assets/fonts/IvyPrestoDisplay-Regular.woff2') format('woff2'),
       url('../assets/fonts/IvyPrestoDisplay-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IvyPresto Display';
  src: url('../assets/fonts/IvyPrestoDisplay-Italic.woff2') format('woff2'),
       url('../assets/fonts/IvyPrestoDisplay-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'AktivGrotesk';
  src: url('../assets/fonts/AktivGrotesk-Regular.woff2') format('woff2'),
       url('../assets/fonts/AktivGrotesk-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AktivGrotesk';
  src: url('../assets/fonts/AktivGrotesk-Medium.woff2') format('woff2'),
       url('../assets/fonts/AktivGrotesk-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AktivGrotesk';
  src: url('../assets/fonts/AktivGrotesk-Bold.woff2') format('woff2'),
       url('../assets/fonts/AktivGrotesk-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-warm-white);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-black);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-gray-dark);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--color-gray-medium);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 3rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--light {
  background-color: var(--color-white);
}

.section--warm {
  background-color: var(--color-warm-white);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Cards section sits above so content appears to rise from behind it */
.section--warm + .section--light {
  position: relative;
  z-index: 2;
}

.section--dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-gray-light);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 3rem;
  background-color: rgba(250, 248, 245, 0.85);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.16),
              inset 0 -8px 12px -8px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.4s ease,
              padding 0.4s ease,
              box-shadow 0.4s ease;
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-header--scrolled {
  background-color: rgba(250, 248, 245, 0.9);
  padding: 1rem 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18),
              inset 0 -8px 12px -8px rgba(0, 0, 0, 0.1);
}

.site-header--scrolled .header-logo svg path,
.site-header--scrolled .header-logo svg g {
  fill: var(--color-brand-red);
}

.site-header--scrolled .nav-toggle span {
  background-color: var(--color-black);
}

/* Header CTA — outlined pill, hidden by default, slides in on scroll */
.header-cta {
  max-width: 0;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  margin-right: 0;
  transition: max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease,
              margin-right 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.3s ease,
              border-color 0.3s ease;
  white-space: nowrap;
  border: 1px solid var(--color-black);
  border-radius: 100px;
  background: transparent;
}

.header-cta::before {
  display: none;
}

.header-cta .btn__text {
  color: var(--color-black);
  padding: 0.75rem 1.5rem;
  transition: color 0.4s ease;
}

.header-cta:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
}

.header-cta:hover .btn__text {
  color: var(--color-white);
}

.site-header--scrolled .header-cta {
  max-width: 320px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  margin-right: var(--space-md);
  border: 1px solid var(--color-black);
  background: transparent;
}

.site-header--scrolled .header-cta .btn__text {
  color: var(--color-black);
}

.site-header--scrolled .header-cta:hover {
  background-color: var(--color-black);
  border-color: var(--color-black);
}

.site-header--scrolled .header-cta:hover .btn__text {
  color: var(--color-white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.header-logo {
  z-index: 1001;
  margin-right: auto;
}

.header-logo svg {
  height: 36px;
  width: auto;
}

.header-logo--light svg path,
.header-logo--light svg g {
  fill: var(--color-brand-red);
}

/* Hamburger Menu Toggle */
.nav-toggle {
  z-index: 1001;
  width: 32px;
  height: 24px;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background-color: var(--color-black);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Fullscreen Navigation Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
  overflow: hidden;
}

.nav-overlay__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: rgba(39, 28, 24, 0.4);
  filter: blur(8px);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transform: scale(1.05);
}

.nav-overlay__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(39, 28, 24, 0.75);
}

.nav-overlay--open {
  opacity: 1;
  visibility: visible;
}

/* Hide hero content when nav overlay is open */
.nav-overlay--open ~ .hero .hero__content,
.nav-overlay--open ~ .hero .hero__scroll-indicator {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 8rem 3rem 2rem;
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
}

.nav-overlay__list {
  text-align: left;
}

.nav-overlay__item {
  margin-bottom: var(--space-sm);
}

/* Last nav item holds the social icons on the same baseline */
.nav-overlay__item:last-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.nav-overlay__link {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--color-warm-white);
  transition: color var(--transition-base), opacity var(--transition-base);
  display: inline-block;
  position: relative;
  line-height: 1.3;
}

.nav-overlay__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-warm-white);
  transition: width var(--transition-base);
}

.nav-overlay__link:hover::after,
.nav-overlay__link--active::after {
  width: 100%;
}

.nav-overlay__link:hover {
  color: var(--color-white);
}

.nav-overlay__bottom {
  position: relative;
  z-index: 2;
  padding: 0 3rem 2.5rem;
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
}

.nav-overlay__divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.nav-overlay__social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-overlay__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warm-white);
  transition: color var(--transition-base), opacity var(--transition-base);
}

.nav-overlay__social-link:hover {
  color: var(--color-white);
  opacity: 0.7;
}

.nav-overlay__social-link svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
}

/* Close button (X) — replaces hamburger when open */
.nav-toggle--open span {
  background-color: var(--color-warm-white);
}

/* Header transparent when nav overlay is open */
.site-header:has(.nav-toggle--open) {
  background-color: transparent;
  box-shadow: none;
}

.site-header:has(.nav-toggle--open) .header-logo svg path,
.site-header:has(.nav-toggle--open) .header-logo svg g {
  fill: var(--color-white);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero__bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 aspect ratio based on height */
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw; /* 16:9 aspect ratio based on width */
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #120806;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='4060' height='2154' viewBox='0 0 4060 2154' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4060 2153.52H3146.5C3238.41 2153.54 3327.98 2119.31 3407.19 2069.82C3530.94 1993.2 3630.38 1884.08 3718.77 1767.99C3758.55 1712.26 3800.54 1654.22 3833.68 1591.53C3842.52 1570.63 3855.78 1547.41 3849.15 1524.19C3842.52 1503.3 3827.05 1487.04 3813.79 1470.79C3804.96 1459.18 3791.7 1461.5 3780.65 1466.15C3718.77 1563.66 3645.85 1656.54 3550.83 1721.55C3480.11 1772.63 3393.93 1802.81 3307.75 1807.46C3248.09 1812.1 3184 1802.81 3135.39 1761.02C3084.56 1716.9 3060.25 1647.25 3051.41 1579.92C3188.42 1468.47 3323.22 1354.7 3453.6 1233.96C3583.97 1113.23 3709.93 985.528 3822.63 846.218C3911.03 737.092 3992.79 618.678 4039.19 481.69C4065.71 402.748 4065.71 314.519 4045.82 233.255C4025.94 158.956 3983.95 91.6225 3922.07 52.1514C3849.15 5.71508 3760.76 -3.57231 3679 1.07129C3433.71 15.0023 3199.47 100.91 2982.91 212.358C2845.9 282.013 2713.31 365.6 2589.57 458.473C2454.77 555.99 2328.81 665.115 2211.69 785.851C2103.41 897.298 2001.76 1018.03 1915.58 1150.38C1820.55 1296.65 1743.21 1459.18 1716.69 1640.28C1703.44 1726.19 1696.81 1816.74 1723.32 1900.33C1743.21 1965.34 1782.99 2021.07 1829.39 2067.5C1882.43 2116.26 1948.72 2148.77 2019.44 2148.77C2125.51 2151.09 2229.37 2120.9 2324.39 2074.47C2459.19 2009.46 2578.52 1918.9 2693.43 1821.39C2733.2 1918.9 2795.08 2007.13 2879.05 2067.5C2954.18 2125.55 3046.99 2153.41 3137.6 2153.41C3140.57 2153.48 3143.53 2153.52 3146.5 2153.52H0V0H4060V2153.52ZM3223.78 263.438C3051.41 435.254 2907.78 641.897 2808.34 869.437C2711.1 1076.08 2647.02 1301.3 2642.6 1531.16C2642.6 1579.92 2642.6 1628.68 2655.86 1675.11C2574.1 1733.16 2487.91 1786.56 2395.1 1816.74C2342.07 1833 2284.61 1842.28 2229.37 1830.67C2189.59 1821.39 2152.02 1795.85 2129.93 1761.02C2098.99 1709.94 2087.94 1649.57 2085.73 1591.53C2079.1 1468.47 2110.04 1347.73 2160.86 1236.29C2218.32 1106.26 2302.29 990.171 2390.68 883.367C2616.08 611.713 2903.36 395.783 3223.78 263.438ZM3400.56 307.553C3451.39 263.438 3515.47 233.255 3583.98 237.898C3623.75 235.577 3667.95 247.186 3698.88 279.691C3729.82 312.197 3740.87 360.956 3743.08 405.07C3747.5 474.725 3725.4 546.702 3696.67 609.392C3656.9 692.977 3606.07 769.598 3553.04 841.574C3407.19 1041.25 3230.41 1215.39 3040.36 1370.95C3049.2 1078.4 3111.08 781.207 3245.88 521.162C3285.65 442.22 3334.27 365.599 3400.56 307.553Z' fill='white' fill-rule='evenodd'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='4060' height='2154' viewBox='0 0 4060 2154' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4060 2153.52H3146.5C3238.41 2153.54 3327.98 2119.31 3407.19 2069.82C3530.94 1993.2 3630.38 1884.08 3718.77 1767.99C3758.55 1712.26 3800.54 1654.22 3833.68 1591.53C3842.52 1570.63 3855.78 1547.41 3849.15 1524.19C3842.52 1503.3 3827.05 1487.04 3813.79 1470.79C3804.96 1459.18 3791.7 1461.5 3780.65 1466.15C3718.77 1563.66 3645.85 1656.54 3550.83 1721.55C3480.11 1772.63 3393.93 1802.81 3307.75 1807.46C3248.09 1812.1 3184 1802.81 3135.39 1761.02C3084.56 1716.9 3060.25 1647.25 3051.41 1579.92C3188.42 1468.47 3323.22 1354.7 3453.6 1233.96C3583.97 1113.23 3709.93 985.528 3822.63 846.218C3911.03 737.092 3992.79 618.678 4039.19 481.69C4065.71 402.748 4065.71 314.519 4045.82 233.255C4025.94 158.956 3983.95 91.6225 3922.07 52.1514C3849.15 5.71508 3760.76 -3.57231 3679 1.07129C3433.71 15.0023 3199.47 100.91 2982.91 212.358C2845.9 282.013 2713.31 365.6 2589.57 458.473C2454.77 555.99 2328.81 665.115 2211.69 785.851C2103.41 897.298 2001.76 1018.03 1915.58 1150.38C1820.55 1296.65 1743.21 1459.18 1716.69 1640.28C1703.44 1726.19 1696.81 1816.74 1723.32 1900.33C1743.21 1965.34 1782.99 2021.07 1829.39 2067.5C1882.43 2116.26 1948.72 2148.77 2019.44 2148.77C2125.51 2151.09 2229.37 2120.9 2324.39 2074.47C2459.19 2009.46 2578.52 1918.9 2693.43 1821.39C2733.2 1918.9 2795.08 2007.13 2879.05 2067.5C2954.18 2125.55 3046.99 2153.41 3137.6 2153.41C3140.57 2153.48 3143.53 2153.52 3146.5 2153.52H0V0H4060V2153.52ZM3223.78 263.438C3051.41 435.254 2907.78 641.897 2808.34 869.437C2711.1 1076.08 2647.02 1301.3 2642.6 1531.16C2642.6 1579.92 2642.6 1628.68 2655.86 1675.11C2574.1 1733.16 2487.91 1786.56 2395.1 1816.74C2342.07 1833 2284.61 1842.28 2229.37 1830.67C2189.59 1821.39 2152.02 1795.85 2129.93 1761.02C2098.99 1709.94 2087.94 1649.57 2085.73 1591.53C2079.1 1468.47 2110.04 1347.73 2160.86 1236.29C2218.32 1106.26 2302.29 990.171 2390.68 883.367C2616.08 611.713 2903.36 395.783 3223.78 263.438ZM3400.56 307.553C3451.39 263.438 3515.47 233.255 3583.98 237.898C3623.75 235.577 3667.95 247.186 3698.88 279.691C3729.82 312.197 3740.87 360.956 3743.08 405.07C3747.5 474.725 3725.4 546.702 3696.67 609.392C3656.9 692.977 3606.07 769.598 3553.04 841.574C3407.19 1041.25 3230.41 1215.39 3040.36 1370.95C3049.2 1078.4 3111.08 781.207 3245.88 521.162C3285.65 442.22 3334.27 365.599 3400.56 307.553Z' fill='white' fill-rule='evenodd'/%3E%3C/svg%3E");
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  animation: overlayFade 3s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes overlayFade {
  0%   { opacity: 1.00; transform: scale(5); }
  5%   { opacity: 1.00; }
  10%  { opacity: 0.99; }
  15%  { opacity: 0.97; }
  20%  { opacity: 0.95; }
  25%  { opacity: 0.93; }
  30%  { opacity: 0.90; }
  35%  { opacity: 0.86; }
  40%  { opacity: 0.83; }
  45%  { opacity: 0.79; }
  50%  { opacity: 0.75; }
  55%  { opacity: 0.71; }
  60%  { opacity: 0.67; }
  65%  { opacity: 0.64; }
  70%  { opacity: 0.60; }
  75%  { opacity: 0.57; }
  80%  { opacity: 0.55; }
  85%  { opacity: 0.53; }
  90%  { opacity: 0.51; }
  95%  { opacity: 0.50; }
  100% { opacity: 0.50; transform: scale(1); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 var(--space-lg);
  align-items: end;
  flex: 1;
}

.hero__title {
  color: var(--color-white);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  grid-row: 2;
  grid-column: 1 / -1;
  max-width: 68%;
  margin: 0;
  padding-bottom: var(--space-xl);
}

.hero__bottom {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: var(--space-xl);
}

.hero__subtitle {
  color: var(--color-gray-light);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
  max-width: 400px;
}

.hero__ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: border-color var(--transition-base);
}

.hero__scroll-indicator:hover {
  border-color: var(--color-white);
}

.hero__scroll-indicator svg {
  width: 16px;
  height: 16px;
}

/* --- Hero Slide-In Animations --- */
@keyframes slideFromLeft {
  0%   { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
  0%   { opacity: 0; transform: translateX(60px); }
  100% { opacity: 1; transform: translateX(0); }
}

.hero__title,
.page-hero h1 {
  opacity: 0;
  animation: slideFromLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero__bottom,
.page-hero__bottom {
  opacity: 0;
  animation: slideFromRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.hero__scroll-indicator,
.page-hero__scroll {
  opacity: 0;
  animation: slideFromLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .page-hero h1,
  .hero__bottom,
  .page-hero__bottom,
  .hero__scroll-indicator,
  .page-hero__scroll {
    opacity: 1;
    animation: none;
  }
}

/* --- Page Hero (interior pages) — matches home hero layout --- */
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  padding: 0 3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 15vh;
}

.page-hero__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: auto;
  max-width: 400px;
  padding-bottom: var(--space-xl);
}

.page-hero .lead {
  color: var(--color-gray-light);
  max-width: 400px;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page-hero__bottom .btn {
  margin-top: var(--space-md);
}

/* Scroll indicator for interior pages */
.page-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: border-color var(--transition-base);
}

.page-hero__scroll:hover {
  border-color: var(--color-white);
}

.page-hero__scroll svg {
  width: 16px;
  height: 16px;
}

/* --- Buttons & Links --- */
/* Outline circle + text — circle expands to pill on hover */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-radius: 100px;
  overflow: hidden;
}

/* Expanding background — starts as circle, grows to full width */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 100%;
  border-radius: 100px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.btn:hover::before {
  width: 100%;
}

.btn__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s ease;
}

.btn__icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: stroke 0.3s ease;
}

.btn__text {
  white-space: nowrap;
  position: relative;
  z-index: 1;
  padding: 0 1.25rem 0 0.75rem;
  transition: color 0.3s ease;
}

/* ---- Dark variant (for light backgrounds) ---- */
/* Default: filled black circle, white arrow, dark text */
.btn--dark .btn__icon {
  border: 1px solid var(--color-black);
  background-color: var(--color-black);
}

.btn--dark .btn__icon svg {
  stroke: var(--color-white);
  fill: none;
}

.btn--dark .btn__text {
  color: var(--color-black);
}

.btn--dark::before {
  background-color: var(--color-black);
}

/* On hover: pill expands, arrow stays white, text goes white */
.btn--dark:hover .btn__icon {
  border-color: transparent;
}

.btn--dark:hover .btn__icon svg {
  stroke: var(--color-white);
}

.btn--dark:hover .btn__text {
  color: var(--color-white);
}

/* ---- Light variant (for dark backgrounds / heroes) ---- */
/* Default: outline circle, white arrow, white text */
.btn--light .btn__icon {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--light .btn__icon svg {
  stroke: var(--color-white);
  fill: none;
}


.btn--light .btn__text {
  color: var(--color-white);
}

.btn--light::before {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* On hover: outline pill expands, arrow + text stay white */
.btn--light:hover .btn__icon {
  border-color: transparent;
}

.btn--light:hover .btn__icon svg {
  stroke: var(--color-white);
}

.btn--light:hover .btn__text {
  color: var(--color-white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 0.25rem;
  transition: border-color var(--transition-base);
}

.link-arrow:hover {
  border-color: var(--color-white);
}

.link-arrow--dark {
  color: var(--color-black);
  border-bottom-color: var(--color-black);
}

.link-arrow--dark:hover {
  color: var(--color-brand-red);
  border-bottom-color: var(--color-brand-red);
}

.link-arrow__icon {
  font-size: 1.1em;
  transition: transform var(--transition-base);
}

.link-arrow:hover .link-arrow__icon {
  transform: translate(2px, -2px);
}

/* --- Video Modal --- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-modal--open {
  opacity: 1;
  visibility: visible;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 8, 6, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
}

.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-black);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 1rem);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(18, 8, 6, 0.2);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--color-white);
}

.video-modal__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
}

.video-modal__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.video-modal__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- Stats Row --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.stat {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;
  padding: var(--space-lg);
  transition: border-color 0.3s ease;
}

.stat:hover {
  border-color: var(--color-brand-red);
}

.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-brand-red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-medium);
}

.stat__desc {
  font-size: 0.9375rem;
  color: var(--color-gray-dark);
  margin-top: 0.5rem;
}

/* --- Content Blocks --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.content-block > div:last-child {
  padding-top: 2.35rem;
}

.content-block__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-red);
  margin-bottom: var(--space-sm);
}

.content-block__title {
  margin-bottom: var(--space-md);
}

.content-block__text {
  margin-bottom: var(--space-md);
}

.content-block__text:last-child {
  margin-bottom: 0;
}

/* --- Clients Section — centered layout --- */
.clients-header {
  text-align: center;
}

.clients-header .content-block__label {
  display: block;
  margin-bottom: 0;
}

.clients-header .content-block__title {
  margin-top: 0.25rem;
}

.clients-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* --- Approach / Values Grid --- */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.approach-item {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-gray-light);
}

.approach-item__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
}

.approach-item__text {
  font-size: 1rem;
  line-height: 1.75;
}

/* --- Approach Scroll-Swap Section --- */
.approach-scroll {
  padding: 0;
  overflow: visible; /* Override section--warm overflow:hidden so position:sticky works */
}

.approach-scroll__track {
  position: relative;
  height: 500vh;
}

.approach-scroll__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.approach-scroll__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl, 5rem);
  align-items: start;
  width: 100%;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-gray-light);
}

.approach-scroll__left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.approach-scroll__header {
  margin-bottom: var(--space-xl);
}

/* Body wraps the progress line + the item text side by side */
.approach-scroll__body {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

/* Progress line: vertical bar on the left */
.approach-scroll__progress {
  position: relative;
  width: 3px;
  flex-shrink: 0;
  background-color: rgba(153, 27, 30, 0.3);
  border-radius: 2px;
}

.approach-scroll__progress-active {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-brand-red);
  border-radius: 2px;
  transition: top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.approach-scroll__items {
  position: relative;
  min-height: 160px;
  flex: 1;
}

.approach-scroll__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.approach-scroll__item--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.approach-scroll__right {
  position: relative;
}

.approach-scroll__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.approach-scroll__image--active {
  opacity: 1;
}

.approach-scroll__right::before {
  content: '';
  display: block;
  padding-top: 75%; /* aspect ratio placeholder */
}

.approach-scroll__step {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}

.approach-scroll__step[data-step="0"] { top: 0; }
.approach-scroll__step[data-step="1"] { top: 100vh; }
.approach-scroll__step[data-step="2"] { top: 200vh; }
.approach-scroll__step[data-step="3"] { top: 300vh; }
.approach-scroll__step[data-step="4"] { top: 400vh; }

/* --- Values Section (Image Cards) --- */
.values-section {
  padding: var(--space-2xl, 5rem) 0 0;
}

.values-section__header {
  margin-bottom: var(--space-2xl, 5rem);
}

.values-row {
  display: flex;
  gap: 0;
  width: 100%;
}

.value-card {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 85vh;
  min-height: 560px;
}

.value-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card:hover img {
  transform: scale(1.35);
  transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.value-card:hover::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.value-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  z-index: 2;
}

.value-card__number {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.value-card__line {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-sm);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-white);
  line-height: 1.25;
  margin: 0;
}

.value-card__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.45, 0, 0.55, 1),
              opacity 0.4s ease,
              margin-top 0.4s cubic-bezier(0.45, 0, 0.55, 1);
  margin-top: 0;
}

.value-card:hover .value-card__text {
  max-height: 200px;
  opacity: 1;
  margin-top: var(--space-sm);
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease,
              margin-top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bounce keyframe — used by client logos */
@keyframes cardBounceUp {
  0%   { transform: translateY(0); }
  35%  { transform: translateY(-8px); }
  55%  { transform: translateY(2px); }
  75%  { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

/* --- Services Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--color-gray-light);
  background-color: var(--color-white);
  transition: border-color var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-brand-red);
}

.service-card__number {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-red);
  margin-bottom: var(--space-md);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-black);
  margin-bottom: var(--space-md);
}

.service-card__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-gray-dark);
  margin-bottom: var(--space-sm);
}

/* --- Clients / Logos --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(var(--space-md), 3vw, var(--space-lg));
  align-items: center;
  justify-items: stretch;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  padding: var(--space-md) clamp(var(--space-sm), 3vw, var(--space-lg));
  filter: grayscale(100%) brightness(0.2);
  opacity: 0.85;
  transition: filter var(--transition-base), opacity var(--transition-base);
}

.client-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  animation: cardBounceUp 0.8s ease-out both;
}

.client-logo img {
  max-height: 64px;
  max-width: min(180px, 100%);
  width: auto;
  object-fit: contain;
}

/* --- Sectors --- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.sector-card {
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.sector-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.sector-card__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-gray-light);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.contact-info__heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-black);
}

.contact-info__text {
  margin-bottom: var(--space-md);
}

.contact-info__email {
  font-weight: 500;
  color: var(--color-brand-red);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.contact-info__email:hover {
  border-bottom-color: var(--color-brand-red);
}

.contact-form .form-group {
  margin-bottom: var(--space-md);
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-medium);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-light);
  transition: border-color var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-brand-red);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-gray-light);
  margin: var(--space-xl) 0;
}

.divider--dark {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand__logo svg {
  height: 28px;
  width: auto;
}

.footer-brand__logo svg path,
.footer-brand__logo svg g {
  fill: var(--color-white);
}

.footer-brand__text {
  color: var(--color-gray-medium);
  font-size: 0.9375rem;
  margin-top: var(--space-sm);
  max-width: 320px;
  line-height: 1.65;
}

.footer-nav__heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-medium);
  margin-bottom: var(--space-md);
}

.footer-nav__link {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-gray-light);
  margin-bottom: 0.75rem;
  transition: color var(--transition-base);
}

.footer-nav__link:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: var(--color-gray-medium);
}

/* --- CTA Banner --- */
.cta-banner-wrap {
  background-color: var(--color-white);
}

.cta-banner {
  --cta-expand: 0;               /* 0 = inset, 1 = full-width */
  --cta-margin: 3rem;            /* matches .container padding */
  position: relative;
  padding: var(--space-2xl) 0;
  text-align: center;
  background-color: var(--color-black);
  overflow: hidden;
  margin-left: calc(var(--cta-margin) * (1 - var(--cta-expand)));
  margin-right: calc(var(--cta-margin) * (1 - var(--cta-expand)));
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
}

/* CTA banner buttons inherit from btn--light */

/* --- Inline Photo Block --- */
.photo-block {
  position: relative;
  overflow: hidden;
}

.photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-block--rounded {
  border-radius: 4px;
}

/* --- Scroll Reveal Animations (subtle) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Bouncy Reveal (Home Page) --- */
@keyframes bounceReveal {
  0%   { opacity: 0; transform: translateY(40px) scale(0.97); }
  50%  { opacity: 1; transform: translateY(-8px) scale(1.01); }
  70%  { transform: translateY(4px) scale(0.995); }
  85%  { transform: translateY(-2px) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal--bouncy {
  opacity: 0;
  transform: translateY(40px);
  transition: none;
}

.reveal--bouncy.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  animation: bounceReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stagger children inside bouncy containers */
.reveal--bouncy.reveal--visible > .stat,
.reveal--bouncy.reveal--visible > .value-card {
  opacity: 0;
  animation: bounceReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal--bouncy.reveal--visible > :nth-child(1) { animation-delay: 0s; }
.reveal--bouncy.reveal--visible > :nth-child(2) { animation-delay: 0.12s; }
.reveal--bouncy.reveal--visible > :nth-child(3) { animation-delay: 0.24s; }

/* Rise-up reveal — content floats up with staggered delays */
.reveal--rise .content-block__label,
.reveal--rise .content-block__title,
.reveal--rise > h2,
.reveal--rise .content-block__text,
.reveal--rise > p,
.reveal--rise .btn {
  opacity: 0;
  transform: translateY(90px);
  transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--rise.reveal--visible .content-block__label,
.reveal--rise.reveal--visible .content-block__title,
.reveal--rise.reveal--visible > h2,
.reveal--rise.reveal--visible .content-block__text,
.reveal--rise.reveal--visible > p,
.reveal--rise.reveal--visible .btn {
  opacity: 1;
  transform: translateY(0);
}

.reveal--rise.reveal--visible .content-block__label { transition-delay: 0s; }
.reveal--rise.reveal--visible .content-block__title,
.reveal--rise.reveal--visible > h2                  { transition-delay: 0.35s; }
.reveal--rise.reveal--visible .content-block__text,
.reveal--rise.reveal--visible > p                   { transition-delay: 0.7s; }
.reveal--rise.reveal--visible .btn                  { transition-delay: 1.1s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .content-block {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .content-block > div:last-child {
    padding-top: 0;
  }

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

  .approach-scroll__layout {
    gap: var(--space-lg);
  }

  .approach-scroll__image {
    height: 50vh;
  }

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

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .header-cta .btn__text {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .site-header--scrolled .header-cta {
    margin-right: var(--space-sm);
  }

  .nav-overlay__inner {
    padding: 6rem 2rem 1.5rem;
  }

  .nav-overlay__bottom {
    padding: 0 2rem 1.5rem;
  }

  .nav-overlay__item:last-child {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-overlay__social {
    margin-top: var(--space-md);
  }


  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .values-row {
    flex-direction: column;
  }

  .value-card {
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .value-card img {
    position: absolute;
    inset: 0;
  }

  .value-card__content {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .value-card__text {
    max-height: none;
    opacity: 1;
    margin-top: var(--space-sm);
  }

  .value-card::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.1) 100%);
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    justify-items: center;
  }

  .client-logo {
    width: 100%;
  }

  .client-logo img {
    max-height: 52px;
    max-width: 100%;
  }

  /* Approach scroll-swap: disable on mobile, show all stacked */
  .approach-scroll {
    padding: var(--space-xl) 0;
  }

  .approach-scroll__track {
    height: auto;
    position: static;
  }

  .approach-scroll__sticky {
    position: static;
    height: auto;
  }

  .approach-scroll__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .approach-scroll__items {
    min-height: 0;
  }

  .approach-scroll__item {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-gray-light);
  }

  .approach-scroll__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .approach-scroll__body {
    display: block;
  }

  .approach-scroll__progress {
    display: none;
  }

  .approach-scroll__step {
    display: none;
  }

  .approach-scroll__right {
    order: -1;
  }

  .approach-scroll__image {
    position: static;
    height: 300px;
    max-height: none;
    opacity: 1;
  }

  .approach-scroll__image:not(:first-child) {
    display: none;
  }

  .approach-scroll__right::before {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .container {
    padding: 0 2rem;
  }

  .cta-banner {
    --cta-margin: 2rem;
  }

  .hero__content {
    padding: 0 2rem;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
  }

  .hero__title {
    grid-row: 2;
    grid-column: 1;
    max-width: 100%;
    padding-bottom: 0;
    margin-bottom: var(--space-md);
  }

  .hero__bottom {
    grid-row: 3;
    grid-column: 1;
    justify-content: flex-start;
  }

  .hero__scroll-indicator,
  .page-hero__scroll {
    display: none;
  }

  .page-hero .container {
    padding: 0 2rem;
  }

  .page-hero h1 {
    margin-bottom: 0;
    padding-top: 0;
  }

  .page-hero__bottom {
    margin-left: 0;
    max-width: none;
  }

  .site-header {
    padding: 1.25rem 2rem;
  }

  .video-modal {
    padding: 1.25rem;
  }

  .video-modal__close {
    right: 0;
    bottom: calc(100% + 0.75rem);
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding: 0 1.25rem;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .page-hero .container {
    padding: 0 1.25rem;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-card__title {
    font-size: 1.125rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .cta-banner {
    --cta-margin: 1.25rem;
  }

  .site-header {
    padding: 1.25rem;
  }

  .nav-overlay__inner {
    padding: 6rem 1.25rem 1.25rem;
  }

  .nav-overlay__bottom {
    padding: 0 1.25rem 1.25rem;
  }

  .btn__icon {
    width: 42px;
    height: 42px;
  }

  .btn::before {
    width: 42px;
  }

  .btn {
    font-size: 0.75rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .cta-banner {
    --cta-expand: 1;
  }
  .reveal--rise .content-block__label,
  .reveal--rise .content-block__title,
  .reveal--rise > h2,
  .reveal--rise .content-block__text,
  .reveal--rise > p,
  .reveal--rise .btn {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__overlay {
    opacity: 0.5;
    transform: scale(1);
    animation: none;
  }
}
