@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ─────────────────────────────────────────
   NSML — Nilayo Sports Management Ltd
   Design System — Light Theme
   ───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Prevent all horizontal overflow at root level */
html { overflow-x: hidden; }
html, body { max-width: 100%; }

:root {
  /* ── Core palette ── */
  --bg:          #ffffff;
  --surface:     #f0f9f0;           /* slightly more saturated — not pure white */
  --surface-2:   #e4f4e4;           /* more visible light green */
  --navy:        #0d1f3c;
  --green:       #17bc38;           /* bumped saturation — more vivid brand green */
  --green-dark:  #0f9430;           /* stays dark for readable text on light bg */
  --green-mid:   #13af32;
  --gold:        #f5c400;

  /* ── Semantic aliases ── */
  --accent:      var(--green);
  --accent-glow: rgba(23, 188, 56, 0.11);   /* more visible glow */
  --accent-ring: rgba(23, 188, 56, 0.32);   /* stronger ring */

  /* ── Text ── */
  --text:        #0d1f3c;
  --text-sub:    #344f68;           /* warmer, less cold blue-grey */
  --text-muted:  #6a8a9a;           /* slightly warmer muted tone */

  /* ── Borders ── */
  --border:      #c8e0c8;           /* more visible green-tinted border */
  --border-hi:   #a8cca8;           /* stronger hover border */

  /* ── Typography ── */
  --font-d:      'Montserrat', 'Syne', sans-serif;
  --font-b:      'Outfit', sans-serif;

  /* ── Motion ── */
  --ease:        cubic-bezier(0.32, 0.72, 0, 1);

  /* ── Radii ── */
  --r-xl:        2rem;
  --r-lg:        1.25rem;
  --r-md:        0.875rem;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ──────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── NAV ────────────────────────────────── */
.nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 2.5rem);
  max-width: 72rem;
}

.nav-pill {
  background: rgba(13, 31, 60, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.6875rem 1.25rem 0.6875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav-pill.scrolled {
  background: rgba(13, 31, 60, 0.98);
  box-shadow: 0 4px 32px rgba(13, 31, 60, 0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s var(--ease);
}

.nav-logo:hover .nav-logo-img { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
}

.nav-links a:hover { color: #ffffff; }

.nav-links a.active {
  color: var(--green);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--green);
  color: #ffffff;
  font-family: var(--font-b);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}

.nav-cta:hover { background: var(--gold); color: var(--navy); transform: scale(0.96); }
.nav-cta:active { transform: scale(0.93); }

.nav-cta-arrow {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.4s var(--ease);
}

.nav-cta:hover .nav-cta-arrow { transform: translate(2px, -2px) scale(1.1); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 9999px;
  transform-origin: center;
  transition: all 0.4s var(--ease);
}

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

/* ── MOBILE OVERLAY ─────────────────────── */
.mob-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(13, 31, 60, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mob-overlay.open { opacity: 1; pointer-events: all; }

.mob-overlay a {
  font-family: var(--font-d);
  font-size: clamp(2rem, 9vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(2.5rem);
  transition: color 0.3s;
}

.mob-overlay.open a { animation: mobLinkIn 0.55s var(--ease) forwards; }
.mob-overlay.open a:nth-child(1) { animation-delay: 0.04s; }
.mob-overlay.open a:nth-child(2) { animation-delay: 0.09s; }
.mob-overlay.open a:nth-child(3) { animation-delay: 0.14s; }
.mob-overlay.open a:nth-child(4) { animation-delay: 0.19s; }
.mob-overlay.open a:nth-child(5) { animation-delay: 0.24s; }
.mob-overlay a:hover { color: var(--green); }

@keyframes mobLinkIn { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes tickerRoll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── PAGE HERO (INNER PAGES) ────────────── */
.page-hero {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  border-bottom: 3px solid var(--green);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.5) contrast(1.1);
  opacity: 0.12;
  will-change: transform;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,60,0.96) 0%, rgba(13,31,60,0.7) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
}

.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.page-hero-label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.page-hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: #ffffff;
  max-width: 20ch;
}

.page-hero-h1 .hi { color: var(--green); }

.page-hero-p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  max-width: 44rem;
  line-height: 1.7;
  margin-top: 1.25rem;
}

/* ── TICKER ─────────────────────────────── */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.125rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerRoll 32s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-set {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}

.tick {
  font-family: var(--font-d);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #4a6a7a;           /* stronger than text-muted for better readability */
  white-space: nowrap;
}

.tick.hi { color: var(--green); }  /* vivid green for highlighted items */

.tick-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-hi);
  flex-shrink: 0;
}

/* ── PHOTO SLIDER ───────────────────────── */
@keyframes sliderRoll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.photo-slider {
  overflow: hidden;
  padding: 3.5rem 0;
}

.photo-slider-track {
  display: flex;
  width: max-content;
  animation: sliderRoll 60s linear infinite;
}

.photo-slider-track:hover { animation-play-state: paused; }

.photo-slider-set {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.photo-slide {
  flex-shrink: 0;
  width: 21rem;
  height: 15rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

@media (max-width: 768px) {
  .photo-slide { width: 16rem; height: 11.5rem; }
}

/* ── SHARED SECTION ATOMS ───────────────── */
.section-wrap {
  padding: 7rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.section-wrap-wide { padding: 7rem 1.5rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);       /* vivid green instead of dark muted green */
  margin-bottom: 2.5rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 2.5px;             /* slightly thicker */
  background: var(--green);
  border-radius: 9999px;
}

.sec-h2 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 3.75vw, 3.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--navy);
}

.sec-h2 .hi { color: var(--green); }

.sec-p {
  font-size: 0.9375rem;
  color: var(--text-sub);
  max-width: 32rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.split-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ── SHARED BUTTON SYSTEM ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-b);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.45s var(--ease);
}

.btn:active { transform: scale(0.94) !important; }

.btn-fill {
  background: var(--green);
  color: #ffffff;
  padding: 0.9375rem 1.375rem 0.9375rem 1.875rem;
}

.btn-fill:hover { background: var(--navy); transform: scale(0.97); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid #8ab48a;     /* stronger — clearly visible on light surfaces */
  padding: 0.9375rem 1.875rem;
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--accent-glow);
  transform: scale(0.97);
}

/* White outline variant — for dark/green hero backgrounds */
.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.9375rem 1.875rem;
}

.btn-outline-white:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.08);
  transform: scale(0.97);
}

.btn-sm { font-size: 0.8125rem; padding: 0.6875rem 1.125rem 0.6875rem 1.5rem; }

.btn-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}

.btn-sm .btn-icon { width: 1.625rem; height: 1.625rem; font-size: 0.75rem; }
.btn-fill:hover .btn-icon { transform: translate(2px, -2px) scale(1.1); }

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-ring);
  border-radius: 9999px;
  padding: 0.375rem 1.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-dark);
}

/* ── DOUBLE-BEZEL CARD ──────────────────── */
.dcard {
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.dcard:hover {
  border-color: var(--green);
  box-shadow: 0 4px 24px rgba(26,184,60,0.1);
}

.dcard-inner {
  background: #ffffff;
  border-radius: calc(var(--r-xl) - 0.25rem);
  padding: 2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  height: 100%;
}

/* ── STATS STRIP ────────────────────────── */
.stats-strip {
  background: var(--navy);
  border-top: none;
  border-bottom: none;
}

.stats-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 3.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(2rem);
}

.stat:last-child { border-right: none; }

.stat-val {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.05em;
}

.stat-suffix { font-size: 0.6em; color: var(--green); font-weight: 700; margin-top: 0.1em; }
.stat-prefix { font-size: 0.72em; margin-top: 0.08em; color: var(--green); }
.stat-lbl { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 0.875rem; letter-spacing: 0.03em; }

/* ── PARTNERS MARQUEE (dual row) ────────── */
.partners {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Row 2 scrolls in reverse */
.partners-track-reverse {
  animation-direction: reverse;
}

/* Logo img inside marquee */
.partner-logo {
  height: 48px;          /* taller so small logos are more visible */
  width: auto;
  max-width: 160px;      /* wider to accommodate landscape logos */
  min-width: 60px;       /* prevents very narrow logos from disappearing */
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0.9;
  transition: opacity 0.3s cubic-bezier(0.32,0.72,0,1), transform 0.3s cubic-bezier(0.32,0.72,0,1);
  flex-shrink: 0;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Separator dot between logos */
.partner-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-hi);
  flex-shrink: 0;
}

.partners-lbl {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.partners-track {
  display: flex;
  width: max-content;
  animation: tickerRoll 40s linear infinite;
}

.partners-set {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-right: 3.5rem;
}

.partner {
  font-family: var(--font-d);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.partner:hover { color: var(--navy); }

/* ── FOOTER ─────────────────────────────── */
footer {
  background: var(--navy);
  border-top: 3px solid var(--green);
  padding: 4.5rem 1.5rem 2.25rem;
}

.footer-inner { max-width: 72rem; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.85fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.f-logo {
  display: block;
  margin-bottom: 1.125rem;
  text-decoration: none;
}

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

.f-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  max-width: 22rem;
  line-height: 1.7;
}

.f-col-title {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.375rem;
}

.f-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.f-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.f-links a:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── FOOTER SOCIAL COLUMN ───────────────── */
/* Lives as the 4th column inside .footer-top */
.footer-social-col {
  display: flex;
  flex-direction: column;
}

.footer-social-col .f-col-title {
  margin-bottom: 1.375rem;
}

.footer-social-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;   /* generous breathing room between each icon */
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: #ffffff;                /* pure white icons */
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.32,0.72,0,1);
  flex-shrink: 0;
}

.social-link:hover {
  border-color: var(--green);
  background: rgba(23,188,56,0.15);
  color: var(--green);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 4px 16px rgba(23,188,56,0.2);
}

.social-link svg { display: block; }

/* Inline contact-page social strip */
.contact-social {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-social-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-social .social-link {
  border-color: var(--border-hi);
  background: var(--surface);
  color: var(--text-muted);
}

.contact-social .social-link:hover {
  border-color: var(--green);
  background: var(--accent-glow);
  color: var(--green);
}

.f-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }

.f-cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(26,184,60,0.15);
  border: 1px solid rgba(26,184,60,0.35);
  border-radius: 9999px;
  padding: 0.35rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--green);
}

/* ── REVEAL ANIMATION ───────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
}

/* ═══════════════════════════════════════════
   MODERN FEATURE LAYER (injected by main.js)
   ═══════════════════════════════════════════ */

/* ── SCROLL PROGRESS BAR ─────────────────── */
#nsml-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--green);
  z-index: 99999;
  transition: width 0.12s linear;
  box-shadow: 0 0 10px rgba(26,184,60,0.55);
  pointer-events: none;
}

/* ── PAGE TRANSITION OVERLAY ─────────────── */
/* Starts invisible — only activated on page EXIT (link click).
   Page entrances are handled by the existing GSAP hero animations. */
#nsml-transition {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.32,0.72,0,1);
  will-change: opacity;
}

/* ── SCROLL-TO-TOP BUTTON ────────────────── */
#nsml-totop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.12);
  cursor: pointer;
  opacity: 0;
  transform: translateY(1.25rem) scale(0.88);
  transition:
    opacity    0.4s cubic-bezier(0.32,0.72,0,1),
    transform  0.4s cubic-bezier(0.32,0.72,0,1),
    background 0.3s cubic-bezier(0.32,0.72,0,1),
    border-color 0.3s cubic-bezier(0.32,0.72,0,1),
    color 0.3s cubic-bezier(0.32,0.72,0,1);
  z-index: 198;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(13,31,60,0.25);
}

#nsml-totop.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#nsml-totop:hover {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow: 0 6px 24px rgba(26,184,60,0.35);
}

/* ── NAV ACTIVE INDICATOR ────────────────── */
#nsml-nav-indicator {
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--green);
  border-radius: 9999px;
  opacity: 0;
  transition:
    left   0.35s cubic-bezier(0.32,0.72,0,1),
    width  0.35s cubic-bezier(0.32,0.72,0,1),
    opacity 0.25s cubic-bezier(0.32,0.72,0,1);
  pointer-events: none;
}

/* ── ENHANCED CARD HOVER ─────────────────── */
.prop-card,
.home-news-card,
.article-card,
.related-card,
.metric,
.dcard,
.vmv-card {
  will-change: transform, box-shadow;
}

/* ── SMOOTH IMAGE SCALE ──────────────────── */
.prop-img,
.article-img,
.related-img {
  will-change: transform, filter;
}

/* ── BUTTON ACTIVE PRESS ─────────────────── */
.btn-fill:active,
.btn-white:active,
.btn-outline:active {
  transform: scale(0.95) !important;
}

/* ── TICKER PAUSE ON HOVER ───────────────── */
.ticker-track:hover,
.partners-track:hover {
  animation-play-state: paused;
}

/* ── SMOOTH SELECTION COLOUR ─────────────── */
::selection {
  background: rgba(26,184,60,0.22);
  color: var(--navy);
}

/* ── MOBILE: hide scroll-to-top closer to edge */
@media (max-width: 480px) {
  #nsml-totop { bottom: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; }
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.1); border-right: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.1); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-social-list { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Nav pill tighter on mobile */
  .nav-pill { padding: 0.625rem 1rem 0.625rem 1.125rem; }
  .nav { width: calc(100% - 2rem); top: 0.875rem; }

  /* Page hero smaller on mobile */
  .page-hero {
    min-height: 0;           /* let content determine height */
    justify-content: flex-start;  /* content flows from top down, not bottom up */
    padding: 8.5rem 1.25rem 3.5rem; /* 8.5rem clears nav + gives breathing room */
  }
  .page-hero-h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .page-hero-p { font-size: 0.9375rem; }

  /* Ticker and partners — isolation prevents overflow from affecting page */
  .ticker, .partners { overflow: hidden; contain: layout; }

  /* Stats — 2 col */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 2.5rem 1.25rem; }
  .stat:last-child { border-bottom: none; }
  .stat-val { font-size: clamp(1.75rem, 7vw, 3rem); }

  /* Section padding tighter */
  .section-wrap { padding: 4rem 1.25rem; }
  .section-wrap-wide { padding: 4rem 1.25rem; }

  /* Section headings */
  .sec-h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  /* Layout fixes */
  .split-header { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-social-list { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.875rem; }

  /* Partners track — ensure contained */
  .partners-track, .ticker-track { will-change: auto; }

  /* Eyebrow pill smaller on mobile */
  .eyebrow-pill {
    font-size: 0.5625rem;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.875rem;
    max-width: 90vw;
  }

  /* Mobile overlay links */
  .mob-overlay { gap: 1.25rem; }
}

@media (max-width: 480px) {
  /* Stats strip single column on very small screens */
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.1); border-right: none; padding: 2rem 1.25rem; }
  .stat:last-child { border-bottom: none; }

  /* Footer cert pill wraps gracefully */
  .f-cert-pill { font-size: 0.5625rem; }
}
