/* ── VARIABLES ── */
:root {
  --navy: #0b1e52;
  --navy-dark: #040c1e;
  --red: #c8102e;
  --cream: #f8f6f1;
  --nav-height: 80px;
  --max-w: 1400px;
  --pad-x: 80px;
  --pad-y: 120px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;

}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CUSTOM CURSOR ── */
/* Touch devices: hide the custom cursor (it would sit glitched in the corner
   without mousemove events) and restore native cursor behavior */

/* Native browser cursor. Buttons and scripted controls get the hand like links do. */
button, [data-clickable] { cursor: pointer; }


/* ── NAVIGATION ──
   Full-width cream bar while over the dark hero; morphs into a floating
   glass pill (.scrolled) once the page scrolls into the cream content. */
.nav {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 500;
  height: var(--nav-height);
  border: 1px solid transparent;
  border-radius: 0;
  transition:
    top 0.55s cubic-bezier(0.65,0,0.35,1),
    width 0.55s cubic-bezier(0.65,0,0.35,1),
    height 0.55s cubic-bezier(0.65,0,0.35,1),
    border-radius 0.45s ease,
    background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--pad-x);
  transition: padding 0.55s cubic-bezier(0.65,0,0.35,1);
}

/* Bar state — over the hero */
body.home .nav:not(.scrolled),
body.inner .nav:not(.scrolled) {
  background: var(--cream);
  box-shadow: 0 2px 24px rgba(11,30,82,0.07);
}

/* Pill state — past the hero, in the cream area */
.nav.scrolled {
  top: 12px;
  width: min(1080px, calc(100% - 28px));
  height: 60px;
  border-radius: 999px;
  background: rgba(248,246,241,0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: rgba(11,30,82,0.12);
  box-shadow: 0 14px 42px -14px rgba(11,30,82,0.28);
}
.nav.scrolled .nav-inner { padding: 0 10px 0 26px; }
.nav.scrolled .nav-cta { border-radius: 999px; }

.nav-logo { display: flex; align-items: center;}
.nav-logo-img {
  display: block;
  height: 30px; width: auto;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), filter 0.4s;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.04); filter: drop-shadow(0 4px 14px rgba(200,16,46,0.3)); }
.nav-logo-main {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
  transition: color 0.4s;
}
.nav-logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: 2px;
  font-style: italic; color: rgba(11,30,82,0.5);
  font-weight: 300; transition: color 0.4s;
}

.nav-links { display: flex; align-items: center; gap: 36px; }

.nav-link {
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 500;
  color: rgba(11,30,82,0.7);
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.active { color: var(--navy); }
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: inline-flex; align-items: center;
  padding: 11px 24px;
  background: var(--red); color: white;
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 500;

  transition: background 0.3s, transform 0.3s, box-shadow 0.3s, border-radius 0.45s ease;
}
.nav-cta:hover { background: #a30d25; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,16,46,0.3); }

/* Mobile toggle — generous padding for a finger-sized tap target */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none;padding: 12px; min-width: 44px; min-height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--navy); transition: background 0.3s, transform 0.4s, opacity 0.3s; }

/* Mobile menu */
.nav-mobile {
  position: fixed; inset: 0; z-index: 490;
  background: var(--cream);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 32px;
  opacity: 0; pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.4s, transform 0.4s;
}
.nav-mobile.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-mobile .nav-link {
  font-size: 13px; letter-spacing: 3px;
  color: var(--navy);
}
.nav-mobile .nav-cta { margin-top: 12px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  height: 60vh; min-height: 480px;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 80% 50%, #1b3d8a 0%, transparent 60%),
    linear-gradient(112deg, #040c1e 0%, #060f26 38%, #0b1e52 72%, #112566 100%);
}
.page-hero-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(4,12,30,0.4) 0%, transparent 60%, rgba(4,12,30,0.2) 100%);
  z-index: 1;
}
.page-hero-line {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.page-hero-content {
  position: relative; z-index: 5;
  padding: 0 var(--pad-x);
  max-width: calc(var(--max-w) + 2 * var(--pad-x));
}
.page-hero-eyebrow {
  font-size: 11px; letter-spacing: 4.5px;
  text-transform: uppercase; color: var(--red);
  font-weight: 500; margin-bottom: 24px;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp 0.7s 0.2s forwards;
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 4.2vw + 22px, 72px); font-weight: 300;
  line-height: 1.05; color: white;
  letter-spacing: -0.8px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s 0.35s forwards;
}
.page-hero-title em { font-style: italic; color: rgba(255,255,255,0.4); }
.page-hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.5);
  font-weight: 300; margin-top: 20px;
  letter-spacing: 0.5px;
  opacity: 0; transform: translateY(14px);
  animation: fadeUp 0.7s 0.5s forwards;
}

/* ── SECTION UTILITIES ── */
.section-light { background: var(--cream); }
.section-dark {
  background:
    radial-gradient(ellipse 80% 60% at 90% 50%, #0b2060 0%, transparent 60%),
    linear-gradient(140deg, #040c1e 0%, #060f26 60%, #0a1840 100%);
  color: white;
}
.section-red { background: var(--red); color: white; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-pad { padding: var(--pad-y) var(--pad-x); }

.eyebrow {
  font-size: 11px; letter-spacing: 4.5px;
  text-transform: uppercase; color: var(--red);
  font-weight: 500; margin-bottom: 28px;
}
.eyebrow-dark { color: rgba(200,16,46,0.85); }
.eyebrow-light { color: var(--red); }

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px; font-weight: 300;
  line-height: 1.05; color: var(--navy);
  letter-spacing: -0.8px;
}
.section-heading-white { color: white; }
.section-heading em { font-style: italic; color: rgba(11,30,82,0.3); }
.section-heading-white em { color: rgba(255,255,255,0.35); }

.section-rule {
  width: 56px; height: 2px; background: var(--red);
  margin-top: 28px;
  opacity: 0; transform: scaleX(0); transform-origin: left;
  animation: growRight 0.6s 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
}
.section-rule-white { background: rgba(200,16,46,0.7); }

/* ── ACCENT LINE (left vertical) ── */
.accent-line {
  position: absolute; left: var(--pad-x);
  top: 0; width: 2px; height: 100%; overflow: hidden;
}
.accent-line::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 0%;
  background: linear-gradient(to bottom, transparent 0%, var(--red) 30%, var(--red) 70%, transparent 100%);
  animation: lineReveal 1.2s 0.3s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ── BUTTONS ── */
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center;
  justify-content: space-between; gap: 18px;
  padding: 20px 32px;
  background: var(--red); color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; letter-spacing: 2.2px;
  text-transform: uppercase; font-weight: 500;
  border: none;overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(200,16,46,0.4); }
.btn-primary:hover::after { transform: translateX(100%); }

.btn-secondary {
  display: inline-flex; align-items: center;
  justify-content: space-between; gap: 18px;
  padding: 20px 32px;
  background: transparent; color: rgba(255,255,255,0.7);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; letter-spacing: 2.2px;
  text-transform: uppercase; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.18);

  transition: border-color 0.4s, color 0.4s, background 0.4s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: white; background: rgba(255,255,255,0.04); transform: translateY(-2px); }

.btn-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon { transform: translateX(6px); }

/* Arrow text button */
.btn-arrow-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 18px;
  background: transparent; color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 500;
  padding: 20px 0; border: none;
  overflow: visible;
}
.btn-arrow-link::after {
  content: '';
  position: absolute; bottom: 10px; left: 0;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.btn-arrow-link:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-arrow-link .link-text { transition: color 0.35s, letter-spacing 0.4s cubic-bezier(0.22,1,0.36,1); }
.btn-arrow-link:hover .link-text { color: var(--red); letter-spacing: 4px; }
.btn-arrow-link.white { color: white; }
.btn-arrow-link.white:hover .link-text { color: rgba(255,255,255,0.8); }

.arrow-circle {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(11,30,82,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.4s, transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s;
  overflow: hidden;
}
.arrow-circle.white-circle { border-color: rgba(255,255,255,0.25); }
.arrow-circle::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--red); transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.btn-arrow-link:hover .arrow-circle { border-color: var(--red); transform: translateX(8px); box-shadow: 0 6px 24px rgba(200,16,46,0.22); }
.btn-arrow-link:hover .arrow-circle::before { transform: scale(1); }
.arrow-circle svg { position: relative; z-index: 2; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
.btn-arrow-link:hover .arrow-circle svg { transform: translateX(3px); }
.btn-arrow-link:hover .arrow-circle svg line,
.btn-arrow-link:hover .arrow-circle svg polyline { stroke: white !important; }
.arrow-circle svg line, .arrow-circle svg polyline { transition: stroke 0.35s; }

/* ── ABOUT SECTION (home) ── */
.about-section {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: var(--pad-y) var(--pad-x);
  background: var(--cream); overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 60px, rgba(11,30,82,0.015) 60px, rgba(11,30,82,0.015) 61px);
  pointer-events: none;
}
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 120px; align-items: center;
  max-width: var(--max-w); width: 100%;
  position: relative; z-index: 2;
}
.about-left { padding-left: 56px; }
.about-eyebrow {
  font-size: 12px; letter-spacing: 4.5px;
  text-transform: uppercase; color: var(--red);
  font-weight: 500; margin-bottom: 32px;
  opacity: 0; transform: translateY(14px);
}
.about-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 76px; font-weight: 300;
  line-height: 1.05; color: var(--navy);
  margin-bottom: 12px; letter-spacing: -1px;
  opacity: 0; transform: translateY(20px);
}
.about-heading em { font-style: italic; color: rgba(11,30,82,0.3); }
.about-rule {
  width: 56px; height: 2px; background: var(--red);
  margin-top: 28px; opacity: 0;
  transform: scaleX(0); transform-origin: left;
}
.about-right { opacity: 0; transform: translateY(24px); }
.about-body {
  font-size: 20px; color: rgba(11,30,82,0.62);
  line-height: 1.7; margin-bottom: 56px;
  font-weight: 300; max-width: 560px;
}
.about-body strong { color: var(--navy); font-weight: 500; }

/* Stat boxes */
.about-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 80px; padding-top: 56px;
  border-top: 1px solid rgba(11,30,82,0.1);
  opacity: 0; transform: translateY(16px);
}
.stat-box {
  position: relative;
  background: rgba(11,30,82,0.03);
  border: 1px solid rgba(11,30,82,0.08);
  border-radius: 6px; padding: 32px 28px;
overflow: hidden;
  transition: background 0.4s, border-color 0.4s, transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s;
}
.stat-box::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--red);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.stat-box:hover::before { transform: scaleY(1); transform-origin: top; }
.stat-box:hover { background: white; border-color: rgba(11,30,82,0.18); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(11,30,82,0.12); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 3.4vw + 24px, 64px); font-weight: 300; color: var(--navy);
  line-height: 1; margin-bottom: 12px; letter-spacing: -1.5px;
  display: flex; align-items: baseline; gap: 2px;
  transition: color 0.4s;
}
.stat-box:hover .stat-num { color: var(--red); }
.stat-suffix { font-size: 36px; font-weight: 300; color: rgba(11,30,82,0.5); transition: color 0.4s; }
.stat-box:hover .stat-suffix { color: rgba(200,16,46,0.7); }
.stat-label { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(11,30,82,0.45); font-weight: 500; transition: color 0.4s; margin-bottom: 4px; }
.stat-box:hover .stat-label { color: rgba(11,30,82,0.75); }
.stat-description { font-size: 13px; color: rgba(11,30,82,0.35); line-height: 1.5; font-weight: 300; transition: color 0.4s; }
.stat-box:hover .stat-description { color: rgba(11,30,82,0.55); }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.cards-grid-4 { grid-template-columns: repeat(4,1fr); }
.cards-grid-2 { grid-template-columns: repeat(2,1fr); }

.card {
  position: relative;
  background: white;
  border: 1px solid rgba(11,30,82,0.08);
  border-radius: 8px;
  padding: 48px 40px;
overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s, border-color 0.4s;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--red);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.card:hover::before { transform: scaleY(1); transform-origin: top; }
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 64px rgba(11,30,82,0.12); border-color: rgba(11,30,82,0.15); }

.card-icon {
  width: 48px; height: 48px;
  background: rgba(200,16,46,0.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
  transition: background 0.3s;
}
.card:hover .card-icon { background: rgba(200,16,46,0.12); }

.card-label {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red);
  font-weight: 500; margin-bottom: 16px;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 300;
  color: var(--navy); line-height: 1.2;
  margin-bottom: 20px;
}
.card-body { font-size: 15px; color: rgba(11,30,82,0.55); line-height: 1.7; font-weight: 300; }

/* Dark cards */
.card-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.card-dark::before { background: rgba(200,16,46,0.7); }
.card-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); box-shadow: 0 24px 64px rgba(0,0,0,0.3); }
.card-dark .card-label { color: rgba(200,16,46,0.85); }
.card-dark .card-title { color: white; }
.card-dark .card-body { color: rgba(255,255,255,0.5); }
.card-dark .card-icon { background: rgba(200,16,46,0.1); }

/* ── TWO-COL LAYOUT ── */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: center;
}
.two-col-wide { grid-template-columns: 1.2fr 1fr; }
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: white;
  padding: 80px var(--pad-x) 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-img { height: 34px; width: auto; display: block; margin-bottom: 28px; }
.footer-tagline {
  font-size: 14px; color: rgba(255,255,255,0.45);
  line-height: 1.7; font-weight: 300; max-width: 300px;
}
.footer-col-title {
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red);
  font-weight: 500; margin-bottom: 24px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 14px; }
.footer-col-link {
  font-size: 14px; color: rgba(255,255,255,0.5);
  font-weight: 300;
  transition: color 0.3s;
}
.footer-col-link:hover { color: white; }
.footer-contact-item {
  font-size: 14px; color: rgba(255,255,255,0.5);
  font-weight: 300; margin-bottom: 12px;
  line-height: 1.5;
}
.footer-contact-item a { color: rgba(255,255,255,0.7);transition: color 0.3s; }
.footer-contact-item a:hover { color: var(--red); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 40px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.5px; }
.footer-bottom-links { display: flex; gap: 28px; }
.footer-bottom-link { font-size: 11px; letter-spacing: 1.5px; color: rgba(255,255,255,0.3); text-transform: uppercase;transition: color 0.3s; }
.footer-bottom-link:hover { color: rgba(255,255,255,0.6); }
.footer-red-bar { width: 40px; height: 2px; background: var(--red); margin-bottom: 24px; }

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="right"].revealed { transform: translateX(0); }
/* On narrow screens a sideways offset pushes not-yet-revealed elements past the
   viewport edge and makes the whole page pan horizontally. Reveal vertically instead. */
@media (max-width: 860px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(28px); }
  [data-reveal="left"].revealed, [data-reveal="right"].revealed { transform: translateY(0); }
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ── KEYFRAMES ── */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes growRight { to { opacity: 1; transform: scaleX(1); } }
@keyframes lineReveal { to { height: 100%; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,16,46,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}
@keyframes lineGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(200,16,46,0.1)); }
  50%       { filter: drop-shadow(0 0 10px rgba(200,16,46,0.25)); }
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --pad-x: 48px; }
  .about-inner { gap: 60px; }
  .cards-grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 32px; --pad-y: 80px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .about-inner,
  .two-col,
  .cards-grid,
  .cards-grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .about-left { padding-left: 0; }
  .about-heading, .section-heading { font-size: clamp(34px, 2.6vw + 22px, 52px); }
  .page-hero-title { font-size: clamp(34px, 2.6vw + 22px, 52px); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  :root { --pad-x: 20px; --pad-y: 60px; }
  .nav.scrolled { top: 10px; height: 54px; width: calc(100% - 20px); }
  .nav.scrolled .nav-inner { padding: 0 6px 0 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .section-heading { font-size: 40px; }
  .about-heading { font-size: 40px; }
  .page-hero-title { font-size: 40px; }
  .about-stats { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
}

/* ── REDUCED MOTION ──
   Applies site-wide. The scripts already check this media query
   (js/main.js, js/transition.js); this covers the CSS-driven motion:
   scroll reveals, hover transforms, decorative loops and the custom
   cursor. Content must be fully visible without JS-added classes. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveal-on-scroll content is hidden until JS adds .revealed —
     show it unconditionally so nothing depends on animation. */
  [data-reveal],
  [data-reveal="left"],
  [data-reveal="right"] {
    opacity: 1 !important;
    transform: none !important;
  }

  /* The custom cursor is a continuously animated follower.
     Fall back to the native pointer. */
  .cursor, .cursor-dot { display: none !important; }
  *, *::before, *::after { cursor: auto !important; }
}

/* ── COOKIE CONSENT ── bottom left, so it never sits on the CPHI bubble (bottom right) */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 9000;
  width: min(400px, calc(100vw - 48px)); padding: 26px 28px 24px;
  background: #fff; border: 1px solid rgba(11,30,82,0.1); border-radius: 12px;
  box-shadow: 0 24px 64px -18px rgba(11,30,82,0.35);
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1), transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.cookie-banner.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner-title { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.cookie-banner-text { font-size: 14px; line-height: 1.65; font-weight: 300; color: rgba(11,30,82,0.7); margin-bottom: 20px; }
.cookie-banner-text a { color: var(--navy); border-bottom: 1px solid rgba(200,16,46,0.5); }
.cookie-banner-actions { display: flex; gap: 10px; }
/* the two choices carry equal weight: same size, same position in the row */
.cookie-btn { flex: 1; min-height: 44px; padding: 0 18px; border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.cookie-btn-solid { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.cookie-btn-solid:hover { background: var(--red); border-color: var(--red); }
.cookie-btn-ghost { background: transparent; color: var(--navy); border: 1px solid rgba(11,30,82,0.25); }
.cookie-btn-ghost:hover { border-color: var(--navy); }
@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
