/* =========================================================
   Meridio Technologies — style.css
   Premium monochrome. Space Grotesk + Space Mono.
   ========================================================= */

:root {
  --black:      #000000;
  --ink-900:    #050505;
  --ink-800:    #0b0b0c;
  --ink-700:    #121214;
  --ink-600:    #17181b;
  --line:       rgba(255, 255, 255, 0.10);
  --line-soft:  rgba(255, 255, 255, 0.06);
  --white:      #ffffff;
  --gray-100:   #eaeaea;
  --gray-300:   #b6b6b8;
  --gray-500:   #8a8a8e;
  --gray-600:   #6a6a6e;

  --glass:      rgba(255, 255, 255, 0.035);
  --glass-2:    rgba(255, 255, 255, 0.06);

  --font-sans:  'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:  'Space Mono', ui-monospace, 'SF Mono', monospace;

  --container:  1200px;
  --radius:     16px;
  --radius-sm:  10px;

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --dur:        .55s;
}

/* ---------- 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(--black);
  color: var(--gray-300);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--white); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
strong { color: var(--white); font-weight: 600; }

::selection { background: var(--white); color: var(--black); }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section { padding: clamp(80px, 12vh, 150px) 0; position: relative; }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }

.section__title {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  margin-top: 14px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- buttons ---------- */
.btn {
  --pad-y: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform .35s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease);
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.btn--primary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--primary:hover { background: var(--gray-100); }

.btn--ghost {
  background: var(--glass);
  color: var(--white);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.24); }

.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

/* ripple */
.ripple .ripple__wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  animation: ripple .6s var(--ease);
  z-index: -1;
}
.btn--primary .ripple__wave { background: rgba(0, 0, 0, 0.18); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gray-500), var(--white));
  z-index: 200;
  transition: width .1s linear;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 300;
}
.skip-link:focus { left: 12px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand__mark { display: inline-flex; color: var(--white); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__text { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand__thin { font-weight: 300; color: var(--gray-300); }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 9px 16px;
  font-size: 0.92rem;
  color: var(--gray-300);
  border-radius: 999px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--cta {
  color: var(--white);
  border: 1px solid var(--line);
  background: var(--glass);
  margin-left: 6px;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.24); }

/* hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.6px;
  background: var(--white);
  transition: transform .35s var(--ease), opacity .25s var(--ease), top .35s var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 74px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 60% 42%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 60% 42%, #000 0%, transparent 78%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.hero__glow--1 {
  width: 520px; height: 520px;
  top: -120px; right: -60px;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
  animation: drift1 18s ease-in-out infinite;
}
.hero__glow--2 {
  width: 460px; height: 460px;
  bottom: -160px; left: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 70%);
  animation: drift2 22s ease-in-out infinite;
}
@keyframes drift1 { 50% { transform: translate(-40px, 60px); } }
@keyframes drift2 { 50% { transform: translate(50px, -40px); } }

.hero__meridian {
  position: absolute;
  top: 50%; right: -8%;
  width: min(72vw, 720px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: .6;
  animation: spin 60s linear infinite;
  will-change: transform;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 40px; }
.hero__title {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  font-weight: 600;
  margin: 22px 0 24px;
  letter-spacing: -0.03em;
}
.hero__sub {
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  color: var(--gray-300);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 8vh, 96px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
  max-width: 720px;
}
.stat {
  background: var(--ink-900);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  background: var(--white);
  border-radius: 3px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0);} 40%{opacity:1;} 100%{opacity:0; transform: translateY(12px);} }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about__lead p {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--white);
  line-height: 1.28;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.about__body p { font-size: 1.05rem; color: var(--gray-300); }
.about__body p + p { margin-top: 18px; }

/* ---------- feature grid (why) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.feature--wide { grid-column: span 1; }
.feature::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.07), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.22); background: var(--glass-2); }
.feature:hover::before { opacity: 1; }
.feature__icon {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  margin-bottom: 20px;
  background: rgba(255,255,255,0.03);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { font-size: 0.95rem; color: var(--gray-500); }

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service:nth-child(4), .service:nth-child(5) { grid-column: span 1; }
.service {
  position: relative;
  padding: 34px 30px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.service::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, transparent, var(--white));
  transition: width .5s var(--ease);
}
.service:hover, .service:focus-visible { transform: translateY(-8px); border-color: rgba(255,255,255,0.24); outline: none; }
.service:hover::after, .service:focus-visible::after { width: 100%; }
.service__idx {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray-600);
  letter-spacing: 0.08em;
}
.service__icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--white);
  margin-bottom: 22px;
  transition: transform .5s var(--ease);
}
.service:hover .service__icon { transform: translateY(-3px) rotate(-4deg); }
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.32rem; margin-bottom: 12px; }
.service p { font-size: 0.97rem; color: var(--gray-500); }

/* ---------- industries chips ---------- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.chip {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--gray-100);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.chip:hover {
  transform: translateY(-4px);
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ---------- engagement ---------- */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.engage {
  padding: 34px 30px;
  background: var(--ink-900);
  transition: background .4s var(--ease);
}
.engage:hover { background: var(--ink-700); }
.engage h3 { font-size: 1.14rem; margin-bottom: 10px; }
.engage p { font-size: 0.94rem; color: var(--gray-500); }

/* ---------- timeline ---------- */
.timeline {
  list-style: none;
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(var(--line), var(--line-soft));
}
.timeline__item {
  position: relative;
  display: flex;
  gap: 28px;
  padding: 20px 0 20px 0;
  align-items: flex-start;
}
.timeline__num {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--black);
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.timeline__item:hover .timeline__num { background: var(--white); color: var(--black); transform: scale(1.06); }
.timeline__item h3 { font-size: 1.28rem; margin-bottom: 6px; padding-top: 10px; }
.timeline__item p { font-size: 0.98rem; color: var(--gray-500); }

/* ---------- tech pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--gray-100);
  letter-spacing: 0.01em;
  cursor: default;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.pill:hover {
  transform: translateY(-4px) scale(1.04);
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  padding: clamp(90px, 16vh, 180px) 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(600px circle at 50% 0%, rgba(255,255,255,0.08), transparent 60%),
    var(--ink-900);
}
.cta-section__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%);
}
.cta-section__inner { position: relative; z-index: 2; }
.cta-section__title { font-size: clamp(2rem, 5.5vw, 4rem); margin-bottom: 22px; }
.cta-section__text { max-width: 620px; margin: 0 auto 38px; font-size: 1.1rem; color: var(--gray-300); }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.contact__cards { display: grid; gap: 14px; }
.contact__card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.contact__card:hover { border-color: rgba(255,255,255,0.22); background: var(--glass-2); }
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
}
.contact__value { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--white); font-weight: 500; }
a.contact__value { transition: opacity .3s var(--ease); }
a.contact__value:hover { opacity: .7; }
.contact__actions { display: flex; flex-direction: column; gap: 14px; }
.contact__actions .btn { width: 100%; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(56px, 8vw, 88px);
  background: var(--ink-900);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__tag { margin: 18px 0 22px; color: var(--gray-500); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--gray-300);
  transition: transform .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.footer__social a:hover { color: var(--black); background: var(--white); border-color: var(--white); transform: translateY(-3px); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  font-weight: 700;
  margin-bottom: 4px;
}
.footer__col a, .footer__col span { font-size: 0.95rem; color: var(--gray-300); transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--white); }
.footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line-soft);
  margin-top: 0;
}
.footer__base p { font-size: 0.85rem; color: var(--gray-600); }
.footer__coords { font-family: var(--font-mono); }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  z-index: 160;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: waBounce 4s ease-in-out infinite;
}
.wa-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  animation: waPulse 4s ease-out infinite;
}
@keyframes waPulse {
  0%, 70% { transform: scale(1); opacity: .0; }
  75% { opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes waBounce {
  0%, 68%, 100% { transform: translateY(0); }
  74% { transform: translateY(-8px); }
  80% { transform: translateY(0); }
  86% { transform: translateY(-4px); }
  92% { transform: translateY(0); }
}
.wa-float__tip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  background: var(--white);
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-float__tip::after {
  content: "";
  position: absolute; right: -5px; top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--white);
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: translateX(0); }
.wa-float:hover { animation-play-state: paused; }

/* ---------- scroll to top ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 92px;
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .35s var(--ease), visibility .35s;
  z-index: 155;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--white); color: var(--black); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid, .services, .engage-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(5) { grid-column: span 2; }
  .chip-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px clamp(20px, 5vw, 48px) 28px;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__link { padding: 14px 16px; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__link--cta { margin-left: 0; margin-top: 6px; text-align: center; }
  .hamburger { display: block; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .feature-grid, .services, .engage-grid, .chip-grid { grid-template-columns: 1fr; }
  .service:nth-child(5) { grid-column: auto; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; align-items: flex-start; }
  .hero__meridian { opacity: .35; right: -30%; }
}

@media (max-width: 460px) {
  .chip-grid { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
