/* MoPD Shock — Premium visual layer */

:root {
  --sx-display: 'Syne', 'Space Grotesk', 'Noto Sans Ethiopic', sans-serif;
  --sx-glow: 0 0 60px rgba(0, 230, 118, 0.35);
  --sx-glow-lg: 0 0 100px rgba(0, 230, 118, 0.25), 0 0 40px rgba(232, 197, 71, 0.15);
}

/* Film grain */
.sx-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating orbs */
.sx-hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.sx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}

.sx-orb--1 {
  width: 420px;
  height: 420px;
  background: rgba(0, 230, 118, 0.22);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.sx-orb--2 {
  width: 320px;
  height: 320px;
  background: rgba(232, 197, 71, 0.12);
  bottom: 20%;
  left: 30%;
  animation-delay: -4s;
}

.sx-orb--3 {
  width: 260px;
  height: 260px;
  background: rgba(0, 200, 83, 0.18);
  top: 40%;
  left: -5%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Giant watermark */
.sx-hero__watermark {
  position: absolute;
  bottom: 8%;
  right: -2%;
  z-index: 1;
  font-family: var(--sx-display);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
  animation: watermarkDrift 20s ease-in-out infinite alternate;
}

@keyframes watermarkDrift {
  from { transform: translateX(0); opacity: 0.5; }
  to { transform: translateX(-24px); opacity: 0.85; }
}

/* Hero upgrades */
.sx-hero {
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.sx-hero__overlay {
  background:
    linear-gradient(180deg, rgba(6, 10, 8, 0.2) 0%, rgba(6, 10, 8, 0.75) 55%, rgba(6, 10, 8, 1) 100%),
    linear-gradient(105deg, rgba(6, 10, 8, 0.95) 0%, rgba(6, 10, 8, 0.5) 45%, transparent 75%);
}

.sx-hero__title {
  font-family: var(--sx-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  text-shadow: 0 0 80px rgba(0, 230, 118, 0.15);
}

.sx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  box-shadow: var(--sx-glow);
}

.sx-hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sx-accent);
  box-shadow: 0 0 12px var(--sx-accent);
  animation: pulseDot 2s ease-in-out infinite;
}

.sx-hero__feed {
  border: 1px solid rgba(0, 230, 118, 0.2);
  box-shadow: var(--sx-glow-lg);
  position: relative;
}

.sx-hero__feed::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.5), transparent 50%, rgba(232, 197, 71, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.sx-btn--accent {
  position: relative;
  overflow: hidden;
}

.sx-btn--accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-btn--accent:hover::before {
  transform: translateX(120%);
}

/* Marquee premium */
.sx-marquee {
  background: linear-gradient(90deg, var(--sx-accent-dim), var(--sx-accent), var(--sx-accent-dim));
  background-size: 200% 100%;
  animation: marqueeBg 8s linear infinite;
}

@keyframes marqueeBg {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.sx-marquee__track span:not(:empty):not(:nth-child(even)) {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

/* Portals — bento glow */
.sx-portals {
  gap: 0;
  border: none;
  background: transparent;
  grid-template-columns: repeat(12, 1fr);
}

.sx-portal {
  grid-column: span 4;
  border-radius: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sx-portal:nth-child(1) { grid-column: span 6; min-height: 220px; }
.sx-portal:nth-child(2) { grid-column: span 6; min-height: 220px; }
.sx-portal:nth-child(3),
.sx-portal:nth-child(4),
.sx-portal:nth-child(5),
.sx-portal:nth-child(6) { grid-column: span 3; }

.sx-portal::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 100% 0%, rgba(0, 230, 118, 0.08), transparent 70%);
  pointer-events: none;
}

.sx-portal:hover {
  z-index: 2;
  box-shadow: var(--sx-glow-lg);
}

.sx-portal__num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sx-accent), var(--sx-accent-dim));
  color: var(--sx-bg);
  font-size: 0.7rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 230, 118, 0.4);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sx-portal:hover .sx-portal__num {
  transform: scale(1.15) rotate(-8deg);
}

/* Metrics — glowing cards */
.sx-metrics {
  position: relative;
  overflow: hidden;
}

.sx-metrics::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12), transparent 70%);
  pointer-events: none;
}

.sx-metric {
  position: relative;
  padding: 40px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--sx-line);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
}

.sx-metrics__grid {
  position: relative;
  z-index: 1;
}

.sx-metric:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: var(--sx-glow);
}

.sx-metric__val {
  text-shadow: 0 0 40px rgba(0, 230, 118, 0.5);
}

/* Statement */
.sx-statement {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--sx-bg-light) 100%);
}

.sx-statement::before {
  content: '\201C';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sx-display);
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 1;
  color: rgba(0, 230, 118, 0.08);
  pointer-events: none;
}

.sx-statement__quote {
  position: relative;
  z-index: 1;
}

/* Pillars — stagger hover */
.sx-pillar {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent);
  backdrop-filter: blur(8px);
}

.sx-pillar > span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

/* Plan — dramatic overlap */
.sx-plan {
  position: relative;
}

.sx-plan::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(270deg, rgba(0, 230, 118, 0.06), transparent);
  pointer-events: none;
}

.sx-plan__visual {
  position: relative;
}

.sx-plan__visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 24px;
  z-index: -1;
  transform: rotate(3deg);
}

.sx-plan__visual img {
  transform: rotate(-2deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-plan__visual:hover img {
  transform: rotate(0deg) scale(1.02);
}

.sx-plan__ring-fill {
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
}

/* News cards — gradient border */
.sx-news-card {
  position: relative;
  background: var(--sx-surface);
}

.sx-news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--sx-accent), transparent, var(--sx-gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.sx-news-card:hover::before {
  opacity: 1;
}

/* Climate */
.sx-climate {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(0, 230, 118, 0.15), transparent),
    linear-gradient(160deg, var(--sx-bg) 0%, var(--sx-bg-2) 100%);
}

.sx-climate__stats div {
  transition: transform 0.4s, border-color 0.4s;
}

.sx-climate__stats div:hover {
  transform: translateX(8px);
  border-color: rgba(0, 230, 118, 0.35);
}

/* People */
.sx-person__photo {
  position: relative;
}

.sx-person__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 8, 0.7), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.sx-person:hover .sx-person__photo::after {
  opacity: 1;
}

/* Partners */
.sx-partner {
  border: 1px solid rgba(0, 230, 118, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s var(--sx-ease), border-color 0.35s, box-shadow 0.35s;
}

.sx-partner:hover {
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow: 0 16px 48px rgba(0, 230, 118, 0.12);
}

/* CTA */
.sx-cta {
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(0, 230, 118, 0.08), transparent),
    var(--sx-bg);
}

.sx-cta__newsletter {
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--sx-line);
  background: rgba(255, 255, 255, 0.02);
}

/* Footer glow line */
.sx-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sx-accent), var(--sx-gold), transparent);
  animation: footerGlow 4s ease-in-out infinite alternate;
}

@keyframes footerGlow {
  from { opacity: 0.4; filter: blur(0); }
  to { opacity: 1; filter: blur(1px); }
}

/* Header shrink */
.sx-header.is-solid .sx-brand__logo {
  height: 40px;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-header.is-solid .sx-header__bar-inner {
  padding: 10px 0;
}

/* Menu link stagger */
.sx-menu.is-open .sx-menu__nav a {
  animation: menuLinkIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sx-menu.is-open .sx-menu__nav a:nth-child(1) { animation-delay: 0.05s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(2) { animation-delay: 0.1s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(3) { animation-delay: 0.15s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(4) { animation-delay: 0.2s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(5) { animation-delay: 0.25s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(6) { animation-delay: 0.3s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(7) { animation-delay: 0.35s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(8) { animation-delay: 0.4s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(9) { animation-delay: 0.45s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(10) { animation-delay: 0.5s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(11) { animation-delay: 0.55s; }
.sx-menu.is-open .sx-menu__nav a:nth-child(12) { animation-delay: 0.6s; }

@keyframes menuLinkIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.sx-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.sx-reveal .sx-portal,
.sx-reveal .sx-metric,
.sx-reveal .sx-pillar {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-reveal.is-in .sx-portal,
.sx-reveal.is-in .sx-metric,
.sx-reveal.is-in .sx-pillar {
  opacity: 1;
  transform: translateY(0);
}

.sx-reveal.is-in .sx-portal:nth-child(1) { transition-delay: 0.05s; }
.sx-reveal.is-in .sx-portal:nth-child(2) { transition-delay: 0.1s; }
.sx-reveal.is-in .sx-portal:nth-child(3) { transition-delay: 0.15s; }
.sx-reveal.is-in .sx-portal:nth-child(4) { transition-delay: 0.2s; }
.sx-reveal.is-in .sx-portal:nth-child(5) { transition-delay: 0.25s; }
.sx-reveal.is-in .sx-portal:nth-child(6) { transition-delay: 0.3s; }

.sx-reveal.is-in .sx-metric:nth-child(1) { transition-delay: 0.08s; }
.sx-reveal.is-in .sx-metric:nth-child(2) { transition-delay: 0.16s; }
.sx-reveal.is-in .sx-metric:nth-child(3) { transition-delay: 0.24s; }
.sx-reveal.is-in .sx-metric:nth-child(4) { transition-delay: 0.32s; }

/* Section kicker line */
.sx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sx-kicker::after {
  content: '';
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--sx-accent), transparent);
}

.sx-section--dark .sx-kicker::after {
  background: linear-gradient(90deg, var(--sx-accent), transparent);
}

/* H2 underline accent */
.sx-h2 {
  position: relative;
  display: inline-block;
}

.sx-section__head .sx-h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--sx-accent);
  margin-top: 16px;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
}

.sx-section__head--light .sx-h2::after,
.sx-section--dark .sx-section__head .sx-h2::after {
  background: linear-gradient(90deg, var(--sx-accent), var(--sx-gold));
}

.sx-section__head--row .sx-h2::after {
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .sx-hero__watermark { display: none; }
  .sx-portal:nth-child(1),
  .sx-portal:nth-child(2) { grid-column: span 6; }
  .sx-portal:nth-child(3),
  .sx-portal:nth-child(4),
  .sx-portal:nth-child(5),
  .sx-portal:nth-child(6) { grid-column: span 6; }
}

@media (max-width: 640px) {
  .sx-portals { grid-template-columns: 1fr; }
  .sx-portal,
  .sx-portal:nth-child(n) { grid-column: span 1; min-height: 160px; }
  .sx-hero__title { font-size: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sx-orb,
  .sx-hero__watermark,
  .sx-marquee,
  .sx-footer::before { animation: none; }
  .sx-reveal { opacity: 1; transform: none; }
}
