/* ============================================================
   MPA Solutions · v2 — Editorial · Tech · Bold
   ============================================================ */

:root {
  /* Brand */
  --mpa-green: #29F48F;
  --mpa-green-soft: rgba(41, 244, 143, 0.10);
  --mpa-green-line: rgba(41, 244, 143, 0.22);
  --mpa-green-glow: rgba(41, 244, 143, 0.45);
  --mpa-navy: #173E4F;

  /* Surface */
  --bg: #07090b;
  --bg-1: #0a0d10;
  --bg-2: #0e1216;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.04);

  /* Text */
  --text: #ECEFF1;
  --text-mid: #B5BEC3;
  --text-dim: #6B7780;
  --text-faint: #3A4248;

  /* Lines */
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);

  /* Type */
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ────────────────────────────────────────────
   RESET
──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; font-weight: 600; color: var(--mpa-green); }
::selection { background: var(--mpa-green); color: #000; }

/* ────────────────────────────────────────────
   GLOBAL EFFECTS
──────────────────────────────────────────── */

/* Custom cursor */
.cursor {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid var(--mpa-green-line);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  mix-blend-mode: difference;
}
.cursor.hover {
  width: 56px; height: 56px;
  background: var(--mpa-green);
  border-color: var(--mpa-green);
}
.cursor-dot {
  position: fixed;
  width: 4px; height: 4px;
  background: var(--mpa-green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform .08s linear;
}
@media (max-width: 1024px), (hover: none) {
  .cursor, .cursor-dot { display: none; }
}

/* Mouse follow orb */
.mouse-orb {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--mpa-green-glow) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  transform: translate(-50%, -50%);
  transition: transform .4s var(--ease);
  will-change: transform;
}

/* Grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at top, rgba(41, 244, 143, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(23, 62, 79, 0.15) 0%, transparent 50%);
}

/* ────────────────────────────────────────────
   SPLASH
──────────────────────────────────────────── */
.splash {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.splash.hidden {
  opacity: 0;
  visibility: hidden;
}
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.splash-logo {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  display: flex;
  gap: 0.05em;
}
.splash-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: splashLetter .7s var(--ease) forwards;
}
.splash-m { animation-delay: 0s; color: var(--text); }
.splash-p { animation-delay: .15s; color: var(--mpa-green); }
.splash-a { animation-delay: .3s; color: var(--text); }
@keyframes splashLetter {
  to { opacity: 1; transform: translateY(0); }
}
.splash-bar {
  width: 200px;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.splash-bar-fill {
  height: 100%;
  width: 0;
  background: var(--mpa-green);
  transition: width .8s var(--ease);
}

/* ────────────────────────────────────────────
   NAV
──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  pointer-events: none;
  transition: padding .3s var(--ease);
}
.nav.scrolled { padding: 0.875rem 2rem; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  max-width: 1600px;
  margin: 0 auto;
  gap: 1.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  height: 28px;
}
.nav-brand img { height: 24px; width: auto; opacity: .95; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem;
  background: rgba(10, 13, 16, 0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  color: var(--text-mid);
  border-radius: 999px;
  transition: all .25s var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem 0.6rem 1.25rem;
  background: var(--mpa-green);
  color: #000;
  border-radius: 999px;
  font-size: 0.825rem;
  font-weight: 600;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
}
.nav-cta:hover { box-shadow: 0 8px 30px var(--mpa-green-glow); }
.nav-cta:hover::before { transform: translateX(100%); }

@media (max-width: 900px) {
  .nav { padding: 1rem 1rem; }
  .nav-pill { display: none; }
}
@media (max-width: 600px) {
  .nav-cta span:first-child { display: none; }
  .nav-cta { padding: 0.6rem 0.8rem; }
}

/* ────────────────────────────────────────────
   HERO
──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: blobFloat 20s var(--ease) infinite alternate;
}
.mesh-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(41, 244, 143, 0.5) 0%, transparent 70%);
  top: -10%; left: -10%;
}
.mesh-blob-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(23, 62, 79, 0.6) 0%, transparent 70%);
  bottom: -20%; right: -10%;
  animation-delay: -7s;
}
.mesh-blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(41, 244, 143, 0.25) 0%, transparent 70%);
  top: 40%; right: 30%;
  animation-delay: -14s;
}
@keyframes blobFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(80px, -60px) scale(1.1); }
  100% { transform: translate(-50px, 60px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at center, black 30%, transparent 80%);
  opacity: 0.5;
}

.hero-status {
  position: absolute;
  top: 6rem;
  right: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  z-index: 2;
  padding: 0.4rem 0.85rem;
  background: rgba(10, 13, 16, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--mpa-green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 10px var(--mpa-green);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}
.eyebrow-line {
  display: block;
  width: 40px; height: 1px;
  background: var(--mpa-green);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.5vw, 8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line-inner {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: .1s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: .25s; }
.hero-title .line:nth-child(3) .line-inner { animation-delay: .4s; }
.hero-title .line:nth-child(4) .line-inner { animation-delay: .55s; }
@keyframes lineUp {
  to { transform: translateY(0); }
}
.hero-title em {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
}
.title-mark {
  position: relative;
  color: var(--mpa-green);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.title-mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: var(--mpa-green);
  opacity: 0.18;
  transform: scaleX(0);
  transform-origin: left;
  animation: markGrow 1s var(--ease) 1.6s forwards;
}
@keyframes markGrow {
  to { transform: scaleX(1); }
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  margin-top: 4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .9s var(--ease) 1.3s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text);
  line-height: 1.55;
}
.hero-sub .dim { color: var(--text-dim); display: block; margin-top: 0.5rem; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Floaters */
.hero-floater {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.4rem;
  background: rgba(10, 13, 16, 0.5);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 14px;
  opacity: 0;
  transform: translateY(20px);
  animation: floatIn 1s var(--ease) 1.7s forwards;
}
@keyframes floatIn {
  to { opacity: 1; transform: none; }
}
.floater-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.floater-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.floater-value { font-family: var(--font-display); }
.floater-value .unit { color: var(--mpa-green); margin-left: 2px; font-weight: 500; }
.floater-pulse {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 6px; height: 6px;
  background: var(--mpa-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--mpa-green);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(41, 244, 143, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(41, 244, 143, 0); }
}

.hero-floater-1 {
  top: 18%; right: 6%;
  animation-delay: 1.6s;
}
.hero-floater-2 {
  bottom: 28%; right: 4%;
  animation-delay: 1.85s;
}
.hero-floater-3 {
  bottom: 18%; left: 8%;
  animation-delay: 2.05s;
}

@media (max-width: 1100px) {
  .hero-floater { display: none; }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--mpa-green) 0%, transparent 100%);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 768px) {
  .hero-status { right: 1rem; top: 5rem; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* ────────────────────────────────────────────
   BUTTONS
──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem 0.9rem 1.6rem;
  background: var(--mpa-green);
  color: #000;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  transition: box-shadow .4s var(--ease);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 12px 40px var(--mpa-green-glow); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary .btn-arrow {
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--ease);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-big { padding: 1.1rem 1.6rem 1.1rem 1.8rem; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: all .35s var(--ease);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--mpa-green);
  color: var(--mpa-green);
}

/* ────────────────────────────────────────────
   MARQUEE
──────────────────────────────────────────── */
.marquee-section {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 1.6rem 0;
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--text-mid);
  text-transform: uppercase;
}
.marquee-track .dot {
  color: var(--mpa-green);
  font-weight: 700;
}
@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* ────────────────────────────────────────────
   SECTION TAGS
──────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.tag-num {
  color: var(--mpa-green);
  font-weight: 500;
}
.tag-line {
  display: block;
  width: 32px; height: 1px;
  background: var(--line-strong);
}
.tag-center {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 2rem;
}
.tag-center .tag-line { width: 60px; }

/* ────────────────────────────────────────────
   MANIFESTO
──────────────────────────────────────────── */
.manifesto {
  position: relative;
  z-index: 2;
  padding: 10rem 2rem 8rem;
  max-width: 1400px;
  margin: 0 auto;
}
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.3em;
  max-width: 1100px;
  margin-bottom: 5rem;
}
.manifesto-word {
  display: inline-block;
  opacity: 0.18;
  transition: opacity .4s var(--ease), color .4s var(--ease);
}
.manifesto-word.lit { opacity: 1; }
.manifesto-word-accent {
  font-weight: 700;
  color: var(--mpa-green);
}
.manifesto-word-accent.lit { color: var(--mpa-green); }

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mani-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.mani-card:hover {
  border-color: var(--mpa-green-line);
  background: var(--bg-card-hover);
}
.mani-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--mpa-green);
  line-height: 1;
}
.mani-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (max-width: 800px) {
  .manifesto-grid { grid-template-columns: 1fr; }
}

/* ────────────────────────────────────────────
   BENTO SERVICES
──────────────────────────────────────────── */
.services {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.services-head {
  margin-bottom: 4rem;
  max-width: 900px;
}
.services-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
}
.services-title em { color: var(--mpa-green); font-weight: 700; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 380px 320px;
  gap: 1.25rem;
}
.bento-1 { grid-column: span 2; grid-row: span 1; }
.bento-2 { grid-column: span 1; grid-row: span 1; }
.bento-3 { grid-column: span 1; grid-row: span 1; }
.bento-4 { grid-column: span 1; grid-row: span 1; }
.bento-5 { grid-column: span 1; grid-row: span 1; }

.bento-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform-style: preserve-3d;
  will-change: transform;
}
.bento-card:hover {
  border-color: var(--mpa-green-line);
}
.bento-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), var(--mpa-green-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.bento-card:hover .bento-glow { opacity: 1; }

.bento-num {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.bento-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--mpa-green-soft);
  border: 1px solid var(--mpa-green-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mpa-green);
  margin-bottom: 0.5rem;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}
.bento-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.bento-desc strong {
  color: var(--text);
  font-weight: 500;
}
.bento-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
}
.bento-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mid);
}

/* Bento-1 visual: animated flow */
.bento-visual {
  position: absolute;
  bottom: 1.5rem;
  right: 1.75rem;
  display: flex;
  align-items: center;
}
.bento-flow {
  display: flex;
  align-items: center;
  gap: 0;
}
.flow-node {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--mpa-green-line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-1);
}
.flow-node span {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--text-dim);
}
.flow-node.flow-active {
  background: var(--mpa-green-soft);
  border-color: var(--mpa-green);
}
.flow-node.flow-active span {
  background: var(--mpa-green);
  box-shadow: 0 0 8px var(--mpa-green);
}
.flow-line {
  width: 32px; height: 1px;
  background: linear-gradient(to right, var(--mpa-green-line) 0%, var(--mpa-green) 100%);
  position: relative;
}
.flow-line::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 5px; height: 5px;
  background: var(--mpa-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--mpa-green);
  animation: flowDot 2.5s var(--ease) infinite;
}
@keyframes flowDot {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .bento-1 { grid-column: span 2; }
  .bento-2, .bento-3, .bento-4, .bento-5 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5 { grid-column: span 1; }
  .bento-card { padding: 1.5rem; }
}

/* ────────────────────────────────────────────
   PROCESSES (horizontal scroll)
──────────────────────────────────────────── */
.processes {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
  border-top: 1px solid var(--line);
}
.processes-head {
  max-width: 1400px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}
.processes-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 900px;
}
.processes-title em { color: var(--mpa-green); font-weight: 700; }
.processes-sub {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 600px;
}

.proc-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 2rem;
  scroll-behavior: smooth;
}
.proc-track-wrap::-webkit-scrollbar { display: none; }
.proc-track {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}

.proc-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 340px;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.proc-card:hover {
  border-color: var(--mpa-green-line);
  transform: translateY(-4px);
}
.proc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--mpa-green) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.proc-card:hover::before { transform: scaleX(1); }

.proc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.proc-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mpa-green);
  letter-spacing: 0.1em;
}
.proc-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}
.proc-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}
.proc-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mid);
  width: fit-content;
}
.proc-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  margin-top: auto;
  color: var(--mpa-green);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.proc-readmore:hover {
  gap: 0.6rem;
  border-bottom-color: var(--mpa-green);
}

.proc-controls {
  max-width: 1400px;
  margin: 2.5rem auto 0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.proc-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease);
}
.proc-btn:hover {
  border-color: var(--mpa-green);
  color: var(--mpa-green);
}
.proc-progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.proc-progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 12%;
  background: var(--mpa-green);
  transition: width .3s var(--ease);
}
.proc-all {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all .3s var(--ease);
}
.proc-all:hover {
  border-color: var(--mpa-green);
  color: var(--mpa-green);
}

/* ────────────────────────────────────────────
   METRICS MOSAIC
──────────────────────────────────────────── */
.metrics {
  position: relative;
  z-index: 2;
  padding: 10rem 2rem;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}
.metrics-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 5rem;
}
.metrics-headline em { color: var(--mpa-green); font-weight: 700; }

.metrics-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 1rem;
  text-align: left;
}
.m-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.m-card:hover { border-color: var(--mpa-green-line); }
.m-big {
  grid-column: span 3;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--mpa-green-soft) 0%, transparent 60%);
  border-color: var(--mpa-green-line);
}
.m-years {
  grid-column: span 3;
  grid-row: span 1;
  background: linear-gradient(135deg, transparent 0%, var(--mpa-green-soft) 100%);
}
.m-card { grid-column: span 3; }
.m-card:not(.m-big):not(.m-years) { grid-column: span 3; }
@media (min-width: 900px) {
  .m-card:not(.m-big):not(.m-years) { grid-column: span 3; }
  .m-big { grid-column: span 3; grid-row: span 2; }
  .m-years { grid-column: span 3; }
}

.m-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  font-weight: 500;
}
.m-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 0.05em;
}
.m-big .m-value { font-size: clamp(4.5rem, 11vw, 10rem); }
.m-unit {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--mpa-green);
  font-size: 0.55em;
}
.m-foot {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .metrics-mosaic { grid-template-columns: 1fr; }
  .m-big, .m-years, .m-card:not(.m-big):not(.m-years) {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* ────────────────────────────────────────────
   QUOTE SECTION
──────────────────────────────────────────── */
.quote-section {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.big-quote {
  max-width: 1100px;
  margin: 0 auto;
}
.big-quote p {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--text);
}
.big-quote em {
  color: var(--text-dim);
  font-weight: 500;
}
.quote-mark {
  color: var(--mpa-green);
  font-weight: 700;
  letter-spacing: -0.04em;
  position: relative;
}
.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.quote-line {
  display: block;
  width: 60px; height: 1px;
  background: var(--mpa-green);
}

/* ────────────────────────────────────────────
   WHY US
──────────────────────────────────────────── */
.why {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.why-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.why-years {
  display: inline-block;
  color: var(--mpa-green);
  font-weight: 700;
  font-size: 1.15em;
  letter-spacing: -0.05em;
  position: relative;
  padding: 0 0.05em;
}
.why-sub {
  color: var(--text-mid);
  line-height: 1.6;
  font-size: 1.05rem;
  max-width: 460px;
}

.why-right {
  display: flex;
  flex-direction: column;
}
.why-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.why-row:last-child { border-bottom: 1px solid var(--line); }
.why-row:hover { padding-left: 1rem; }
.why-row-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mpa-green);
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
}
.why-row h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.why-row p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; gap: 3rem; }
}

/* ────────────────────────────────────────────
   FAQ
──────────────────────────────────────────── */
.faq {
  position: relative;
  z-index: 2;
  padding: 8rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 3rem;
}
.faq-title em { color: var(--mpa-green); font-weight: 700; }

.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--line);
  transition: border-color .35s var(--ease);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item[open] { border-color: var(--mpa-green-line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.75rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: color .25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--mpa-green); }
.faq-cross {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-cross span {
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease);
}
.faq-cross span:last-child { transform: rotate(90deg); }
.faq-item[open] .faq-cross span:last-child { transform: rotate(0); }

.faq-body {
  padding: 0 0 1.75rem 0;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 720px;
}

/* ────────────────────────────────────────────
   CONTACT
──────────────────────────────────────────── */
.contact {
  position: relative;
  z-index: 2;
  padding: 10rem 2rem;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.contact-blob {
  position: absolute;
  width: 800px; height: 800px;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--mpa-green-soft) 0%, transparent 60%);
  filter: blur(80px);
  opacity: 0.7;
}
.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.contact-title em { color: var(--mpa-green); font-weight: 700; }
.contact-sub {
  color: var(--text-mid);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 4rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  text-align: left;
}
.field {
  position: relative;
  padding: 1.5rem 0 1rem;
}
.field-full { grid-column: span 2; }

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  padding: 0.5rem 0;
  outline: none;
  resize: none;
}
.field textarea { min-height: 60px; }
.field label {
  position: absolute;
  top: 1.95rem;
  left: 0;
  font-size: 1.1rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: all .35s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mpa-green);
}
.field-line {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--mpa-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.field input:focus ~ .field-line,
.field textarea:focus ~ .field-line {
  transform: scaleX(1);
}

.contact-actions {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-fineprint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.contact-fineprint a { color: var(--mpa-green); }

.contact-success {
  max-width: 560px;
  margin: 4rem auto 0;
  padding: 2.5rem 2rem;
  background: var(--mpa-green-soft);
  border: 1px solid var(--mpa-green-line);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.contact-success:not([hidden]) {
  display: flex;
}
.success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--mpa-green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn .5s var(--ease-bounce);
}
@keyframes scaleIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.contact-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.contact-success p {
  color: var(--text-mid);
  max-width: 420px;
}

.contact-direct {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-mail {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--text);
  letter-spacing: -0.04em;
  text-transform: none;
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), color .35s var(--ease);
}
.contact-mail:hover {
  color: var(--mpa-green);
  border-color: var(--mpa-green);
}

@media (max-width: 700px) {
  .contact-form { grid-template-columns: 1fr; }
  .field-full { grid-column: span 1; }
  .contact-actions { grid-column: span 1; }
}

/* ────────────────────────────────────────────
   FOOTER
──────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 2;
  padding: 5rem 2rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
}
.footer-top {
  max-width: 1400px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand img { height: 26px; margin-bottom: 1rem; }
.footer-brand p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.55;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-cols h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-cols a, .footer-cols span {
  display: block;
  color: var(--text-mid);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color .25s var(--ease);
}
.footer-cols a:hover { color: var(--mpa-green); }
.footer-addr { color: var(--text-dim) !important; font-size: 0.825rem !important; }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 22rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  color: rgba(255, 255, 255, 0.025);
  position: absolute;
  bottom: -3vw;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  line-height: 0.8;
  user-select: none;
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ────────────────────────────────────────────
   REVEAL UTILITIES
──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ────────────────────────────────────────────
   CASE MODAL
──────────────────────────────────────────── */
.case-modal {
  width: min(820px, 92vw);
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--mpa-green-line);
  border-radius: 24px;
  background: var(--bg-1);
  color: var(--text);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.case-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.case-modal[open] {
  animation: modalIn .35s var(--ease);
}
.case-modal[open]::backdrop {
  animation: backdropIn .35s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 13, 16, 0.8);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .25s var(--ease);
}
.modal-close:hover {
  border-color: var(--mpa-green);
  color: var(--mpa-green);
  transform: rotate(90deg);
}

.modal-inner {
  padding: 3rem 2.5rem 2.5rem;
  overflow-y: auto;
  max-height: 88vh;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.modal-inner::-webkit-scrollbar {
  width: 6px;
}
.modal-inner::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.modal-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mpa-green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.modal-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.modal-area {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 2rem;
}

.modal-metric {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  background: var(--mpa-green-soft);
  border: 1px solid var(--mpa-green-line);
  border-radius: 16px;
  margin-bottom: 2rem;
}
.modal-metric-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--mpa-green);
  line-height: 1;
}
.modal-metric-label {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}

.modal-block {
  margin-bottom: 1.75rem;
}
.modal-block-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.modal-block p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.65;
}

.modal-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.modal-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.modal-benefits svg {
  flex-shrink: 0;
  color: var(--mpa-green);
  margin-top: 0.2em;
}

.modal-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

@media (max-width: 600px) {
  .modal-inner { padding: 2.5rem 1.5rem 2rem; }
  .modal-metric { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.25rem; }
  .modal-close { top: 0.75rem; right: 0.75rem; width: 36px; height: 36px; }
}

/* ────────────────────────────────────────────
   PÁGINA CASOS DE ÉXITO
──────────────────────────────────────────── */
.nav-link-active {
  color: var(--mpa-green) !important;
  background: var(--mpa-green-soft);
}

.cases-hero {
  position: relative;
  padding: 9rem 2rem 5rem;
  overflow: hidden;
}
.cases-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.breadcrumb a {
  transition: color .25s var(--ease);
}
.breadcrumb a:hover { color: var(--mpa-green); }

.cases-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--text);
  margin: 1rem 0 1.5rem;
}
.cases-hero-title em {
  color: var(--mpa-green);
  font-weight: 700;
}

.cases-hero-sub {
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.cases-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.5rem 2rem;
  background: rgba(10, 13, 16, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 18px;
  flex-wrap: wrap;
}
.cases-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cases-meta-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--mpa-green);
  line-height: 1;
}
.cases-meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
}
.cases-meta-divider {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
}

@media (max-width: 600px) {
  .cases-hero-meta { gap: 1.25rem; padding: 1.25rem; }
  .cases-meta-divider { display: none; }
}

/* Filtros */
.cases-filters {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.filters-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.filters-inner::-webkit-scrollbar { display: none; }
.filter-chip {
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mid);
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.filter-chip:hover {
  border-color: var(--mpa-green-line);
  color: var(--text);
}
.filter-chip.active {
  background: var(--mpa-green);
  border-color: var(--mpa-green);
  color: #000;
  font-weight: 600;
}

/* Grid */
.cases-section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cases-grid { grid-template-columns: 1fr; }
}

.case-tile {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 380px;
  transition: all .35s var(--ease);
  overflow: hidden;
}
.case-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--mpa-green) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.case-tile:hover {
  border-color: var(--mpa-green-line);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.case-tile:hover::before { transform: scaleX(1); }

.case-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.case-tile-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mpa-green);
  letter-spacing: 0.1em;
}
.case-tile-areas {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.case-tile-area {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}
.case-tile-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}
.case-tile-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}
.case-tile-metric {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--mpa-green-soft);
  border: 1px solid var(--mpa-green-line);
  border-radius: 12px;
}
.case-tile-metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--mpa-green);
  line-height: 1;
}
.case-tile-metric-label {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
}
.case-tile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0.4rem 0;
  color: var(--mpa-green);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.case-tile-btn:hover {
  gap: 0.6rem;
  border-bottom-color: var(--mpa-green);
}

.cases-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-mid);
  font-size: 1rem;
}
.filter-reset {
  background: transparent;
  border: none;
  color: var(--mpa-green);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: inherit;
}

/* ────────────────────────────────────────────
   REDUCED MOTION
──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-title .line-inner { transform: none; }
}
