/* ==========================================================
   ELECTRO CHAABA — Main stylesheet
   ========================================================== */

:root {
  --navy-950: #07111F;
  --navy-900: #0B1A2E;
  --navy-800: #122540;
  --navy-700: #1B3354;
  --blue-500: #1E90FF;
  --blue-400: #00C2FF;
  --blue-50: #EAF4FF;
  --gray-50: #F5F7FA;
  --gray-100: #EDF1F6;
  --gray-200: #DCE3EC;
  --gray-500: #64748B;
  --gray-700: #334155;
  --white: #FFFFFF;
  --text: #1E293B;

  --gradient: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 6px rgba(11, 26, 46, .06);
  --shadow: 0 10px 30px rgba(11, 26, 46, .08);
  --shadow-lg: 0 20px 50px rgba(11, 26, 46, .14);
  --header-h: 72px;
  --container: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-500); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
body.nav-open { overflow: hidden; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--blue-500); color: var(--white);
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 8px 22px rgba(30, 144, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 144, 255, .45); }
.btn-outline { border-color: rgba(255, 255, 255, .3); color: var(--white); }
.btn-outline:hover { border-color: var(--blue-400); color: var(--blue-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 26, 46, .96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: .06em; }
.brand-name span { color: var(--blue-400); }
.brand-tag { font-size: .72rem; color: #9FB3CC; letter-spacing: .04em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a {
  display: block; padding: .55rem .9rem; border-radius: 999px;
  color: #C9D6E6; font-weight: 600; font-size: .95rem;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.main-nav a[aria-current="page"] { color: var(--white); background: rgba(30, 144, 255, .2); box-shadow: inset 0 0 0 1px rgba(30, 144, 255, .45); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px;
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 20px; height: 2px; border-radius: 2px;
  background: var(--white); transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(30, 144, 255, .22), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(0, 194, 255, .12), transparent 60%),
    var(--navy-900);
  color: #C9D6E6;
  padding: 5.5rem 0 6rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; }
.hero h1 { color: var(--white); }
.hero h1 .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.15rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.4rem; font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--blue-400); flex-shrink: 0; }
.hero-art img { width: 100%; max-width: 500px; margin-left: auto; animation: float 6s ease-in-out infinite; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-500); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gradient); border-radius: 2px; }
.hero .eyebrow, .dark .eyebrow { color: var(--blue-400); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(30, 144, 255, .25), transparent 60%),
    var(--navy-900);
  color: #C9D6E6; padding: 4.5rem 0 4rem;
}
.page-hero h1 { color: var(--white); margin-bottom: .4em; }
.page-hero p { max-width: 40rem; font-size: 1.1rem; margin: 0; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; gap: .5rem; font-size: .88rem; }
.breadcrumb a { color: #9FB3CC; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: #5B7291; }
.breadcrumb [aria-current] { color: var(--blue-400); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--gray-50); }
.section.dark { background: var(--navy-900); color: #C9D6E6; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { max-width: 44rem; margin: 0 auto 3.2rem; text-align: center; }
.section-head p { color: var(--gray-500); font-size: 1.08rem; margin: 0; }
.section.dark .section-head p { color: #9FB3CC; }
.section-head.left { margin-left: 0; text-align: left; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split p { color: var(--gray-700); }

.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; color: var(--navy-900); }
.check-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue-500); margin-top: 1px; }

.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.text-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* About visual panel */
.feature-panel {
  position: relative; background: var(--navy-900); border-radius: var(--radius-lg);
  padding: 2.4rem; color: #C9D6E6; box-shadow: var(--shadow-lg); overflow: hidden;
}
.feature-panel::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px;
  background: radial-gradient(circle, rgba(30, 144, 255, .35), transparent 70%);
}
.feature-panel h3 { color: var(--white); position: relative; }
.panel-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; position: relative; }
.panel-list li {
  display: flex; gap: 1rem; align-items: center;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07);
  padding: 1rem 1.1rem; border-radius: var(--radius);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.panel-list li:hover { background: rgba(30, 144, 255, .1); border-color: rgba(30, 144, 255, .4); transform: translateX(4px); }
.panel-list strong { display: block; color: var(--white); }
.panel-list small { color: #9FB3CC; font-size: .88rem; }

/* ---------- Icons ---------- */
.icon-box {
  display: grid; place-items: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--blue-50); color: var(--blue-500);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.icon-box svg { width: 28px; height: 28px; }
.icon-box.sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-box.sm svg { width: 22px; height: 22px; }
.icon-box.on-dark { background: rgba(30, 144, 255, .15); color: var(--blue-400); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card:hover .icon-box { background: var(--gradient); color: var(--white); transform: rotate(-6deg); }
.card h3 { margin-top: 1.3rem; }
.card p { color: var(--gray-500); margin: 0; }
.card .num {
  position: absolute; right: 1.4rem; top: 1.2rem;
  font-size: 2.4rem; font-weight: 800; color: var(--gray-100); line-height: 1;
}

.why-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius); padding: 1.6rem;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.why-card:hover { background: rgba(30, 144, 255, .08); border-color: rgba(30, 144, 255, .4); transform: translateY(-4px); }
.why-card h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.why-card p { margin: 0; color: #9FB3CC; font-size: .96rem; }

/* ---------- Service detail (services page) ---------- */
.service-detail {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 2.4rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.service-detail + .service-detail { margin-top: 1.5rem; }
.service-detail:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-detail .icon-box { width: 72px; height: 72px; border-radius: 18px; background: var(--gradient); color: var(--white); }
.service-detail .icon-box svg { width: 34px; height: 34px; }
.service-detail h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.service-detail .lead { color: var(--gray-700); font-size: 1.05rem; }
.service-detail ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }
.service-detail li { display: flex; gap: .6rem; color: var(--gray-700); }
.service-detail li svg { width: 20px; height: 20px; color: var(--blue-500); flex-shrink: 0; margin-top: 3px; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy-900); color: var(--blue-400); font-weight: 800; margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { color: var(--gray-500); margin: 0; font-size: .96rem; }

/* ---------- Service area ---------- */
.area-card {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.area-info { padding: 3rem; }
.area-info p { color: var(--gray-700); }
.area-visual {
  position: relative; min-height: 320px;
  background:
    radial-gradient(circle at 50% 50%, rgba(30, 144, 255, .25), transparent 55%),
    var(--navy-900);
  display: grid; place-items: center; overflow: hidden;
}
.area-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.pulse { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.pulse::before, .pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(0, 194, 255, .5); animation: ripple 3s ease-out infinite;
}
.pulse::after { animation-delay: 1.5s; }
.pin {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient); display: grid; place-items: center; color: var(--white);
  box-shadow: 0 0 0 8px rgba(30, 144, 255, .2), 0 10px 30px rgba(30, 144, 255, .5);
}
.pin svg { width: 30px; height: 30px; }
.area-label {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  color: var(--white); padding: .5rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600; white-space: nowrap;
}
@keyframes ripple { 0% { transform: scale(.45); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Contact / info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.info-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-item h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: .3rem; }
.info-item p { margin: 0; font-weight: 700; color: var(--navy-900); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--gradient); border-radius: var(--radius-lg);
  padding: 3.2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  color: var(--white); box-shadow: 0 20px 50px rgba(30, 144, 255, .3);
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; opacity: .92; max-width: 36rem; }
.cta-band .btn { position: relative; z-index: 1; background: var(--navy-900); color: var(--white); flex-shrink: 0; }
.cta-band .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 17, 31, .35); }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 3.5rem; align-items: start; }
.toc {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.4rem;
}
.toc h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: .8rem; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: .15rem; }
.toc a {
  display: flex; gap: .6rem; padding: .45rem .6rem; border-radius: 8px;
  color: var(--gray-700); font-size: .92rem; font-weight: 600; transition: background .2s, color .2s;
}
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--blue-500); font-size: .8rem; padding-top: 2px; }
.toc a:hover, .toc a.active { background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm); }

.legal-content { max-width: 760px; }
.legal-content .updated {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue-50); color: var(--navy-700); font-weight: 600; font-size: .9rem;
  padding: .5rem 1rem; border-radius: 999px; margin-bottom: 2rem;
}
.legal-content .updated svg { width: 16px; height: 16px; color: var(--blue-500); }
.legal-content section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--gray-200); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal-content section:last-child { border-bottom: 0; }
.legal-content h2 { font-size: 1.45rem; display: flex; align-items: center; gap: .75rem; }
.legal-content h2 .n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px; background: var(--navy-900); color: var(--blue-400); font-size: .9rem;
}
.legal-content p, .legal-content li { color: var(--gray-700); }
.legal-content li { margin-bottom: .45rem; }
.note {
  background: var(--gray-50); border-left: 4px solid var(--blue-500);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--gray-700);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9FB3CC; padding: 4.5rem 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.site-footer .brand { margin-bottom: 1rem; }
.site-footer h2 { font-size: .85rem; color: var(--white); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { color: #9FB3CC; transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--blue-400); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact svg { width: 20px; height: 20px; color: var(--blue-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.4rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1.2rem; }
.footer-bottom a { color: #9FB3CC; }
.footer-bottom a:hover { color: var(--blue-400); }

/* Back to top */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gradient); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(30, 144, 255, .4);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--navy-900); padding: 1.5rem 1.25rem 2rem;
    opacity: 0; transform: translateY(-12px); visibility: hidden;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: .4rem; }
  .main-nav a { font-size: 1.1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .06); }

  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art img { max-width: 380px; margin: 0 auto; }
  .area-card { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .card-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 4rem 0; }
  .brand img { width: 36px; height: 36px; }
  .brand-tag { display: none; }
  .hero-sub { font-size: 1.05rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-3, .steps, .info-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; padding: 1.8rem; gap: 1.2rem; }
  .service-detail ul { grid-template-columns: 1fr; }
  .area-info, .feature-panel { padding: 1.8rem; }
  .cta-band { padding: 2.2rem 1.6rem; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
