/* ==========================================================================
   NextStep Technology — Website Template
   Layout modelled on a modern software-agency site; palette from the NextStep logo.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #071a3d;
  --navy-soft: #0c2554;
  --navy-raised: #12306a;
  --primary: #1e5bff;
  --primary-deep: #1546cc;
  --accent: #19e3f0;
  --accent-soft: #6cf0f7;
  --gradient: linear-gradient(120deg, #1e5bff 0%, #19b8f5 55%, #19e3f0 100%);

  /* Neutrals */
  --ink: #0f1a2e;
  --ink-soft: #55627a;
  --line: #dde5f2;
  --paper: #ffffff;
  --surface: #f4f7fc;
  --surface-alt: #eaf0fa;

  /* Type */
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px -20px rgba(7, 26, 61, 0.25);
  --container: 1180px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: inherit; }
p { margin: 0; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding: 110px 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow { color: var(--accent); }

.section-title { font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; }
.section-lead { color: var(--ink-soft); font-size: 17px; max-width: 560px; }
.section--dark .section-lead { color: rgba(255, 255, 255, 0.7); }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head--center { display: block; text-align: center; max-width: 720px; margin-inline: auto; }
.section-head--center .section-lead { margin: 16px auto 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px -10px rgba(30, 91, 255, 0.7); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.3); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s; }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: #fff; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar__info, .topbar__social { display: flex; gap: 22px; align-items: center; }
.topbar__info a, .topbar__info span { display: inline-flex; gap: 8px; align-items: center; }
.topbar svg { width: 14px; height: 14px; }
.topbar a:hover { color: var(--accent); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
/* Background + blur live on a pseudo-element: backdrop-filter on .header itself would make it the
   containing block for the fixed mobile menu (.nav), squashing the open menu into the header. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(7, 26, 61, 0.35); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -0.02em; }
.logo__name span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__sub { font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.footer .logo__name { color: #fff; }
.footer .logo__sub { color: rgba(255, 255, 255, 0.6); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 15px;
  padding: 26px 0;
  color: var(--ink);
}
.nav__link svg { width: 14px; height: 14px; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--primary); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.nav__item { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 260px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.dropdown a:hover { background: var(--surface); color: var(--primary); }
.dropdown svg { width: 18px; height: 18px; color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 40px);
  min-height: 640px;
  background: radial-gradient(circle at 80% 20%, rgba(25, 227, 240, 0.18), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(30, 91, 255, 0.35), transparent 50%),
              var(--navy);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; padding: 90px 0 110px; }

/* All slides share one grid cell, so the slider is always as tall as the tallest slide
   and the height never jumps when slides change. */
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; align-self: start; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.7s, transform 0.7s, visibility 0.7s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.hero__title { font-size: clamp(40px, 5.6vw, 68px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero__text { font-size: 18px; color: rgba(255, 255, 255, 0.75); max-width: 520px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__dots { display: flex; gap: 10px; margin-top: 48px; }
.hero__dot { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: 0.3s; padding: 0; }
.hero__dot.is-active { width: 34px; background: var(--accent); }

/* Hero visual: AI chip illustration (inline SVG) */
.hero__visual { position: relative; height: 460px; }
.ai-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ai-ring { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-dasharray: 3 9; transform-box: view-box; transform-origin: 250px 230px; animation: spin 50s linear infinite; }
.ai-ring--slow { stroke: rgba(25, 227, 240, 0.14); stroke-dasharray: 2 14; animation-duration: 80s; animation-direction: reverse; }
.ai-traces path { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; stroke-linejoin: round; }
.ai-flow path { fill: none; stroke: #19e3f0; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 200; animation: ai-flow 3s linear infinite; filter: drop-shadow(0 0 4px #19e3f0); }
.ai-nodes circle { fill: #19e3f0; filter: drop-shadow(0 0 6px #19e3f0); animation: ai-blink 2.4s ease-in-out infinite; }
.ai-pins { stroke: url(#ai-grad); stroke-width: 4; stroke-linecap: round; }
.ai-chip { filter: drop-shadow(0 0 22px rgba(25, 227, 240, 0.45)); animation: ai-pulse 4s ease-in-out infinite; }
.ai-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 30px;
  background: rgba(12, 37, 84, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.ai-badge svg { width: 16px; height: 16px; color: var(--accent); }
.ai-badge--1 { top: 6%; left: 0; }
.ai-badge--2 { top: 16%; right: -2%; animation-delay: -1.5s; }
.ai-badge--3 { bottom: 14%; left: -2%; animation-delay: -3s; }
.ai-badge--4 { bottom: 3%; right: 4%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes ai-flow { from { stroke-dashoffset: 214; } to { stroke-dashoffset: 0; } }
@keyframes ai-blink { 50% { opacity: 0.35; } }
@keyframes ai-pulse { 50% { filter: drop-shadow(0 0 40px rgba(25, 227, 240, 0.7)); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 120px 0 110px;
  background: radial-gradient(circle at 85% 30%, rgba(25, 227, 240, 0.2), transparent 45%),
              radial-gradient(circle at 0% 100%, rgba(30, 91, 255, 0.4), transparent 50%),
              var(--navy);
  color: #fff;
  overflow: hidden;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 600; letter-spacing: -0.03em; max-width: 760px; margin-bottom: 18px; }
.page-hero p { color: rgba(255, 255, 255, 0.75); font-size: 18px; max-width: 560px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-top: 30px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__media { position: relative; height: 460px; }
.media-tile {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; }
.media-tile svg { width: 72px; height: 72px; opacity: 0.9; }
.media-tile--a { inset: 0 70px 120px 0; background: linear-gradient(140deg, var(--navy-raised), var(--primary)); }
/* AI overlay on a photo tile */
.media-tile--ai::before { /* brand tint so the overlay reads as "tech" */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(110deg, rgba(7, 26, 61, 0.75) 0%, rgba(7, 26, 61, 0.2) 55%, rgba(30, 91, 255, 0.3) 100%);
}
.media-tile--ai .ai-mesh { position: absolute; top: 22%; left: 3%; width: 46%; height: auto; opacity: 1; z-index: 2; }
.ai-mesh__lines path { fill: none; stroke: var(--accent); stroke-width: 0.8; opacity: 0.55; stroke-dasharray: 4 3; animation: ai-dash 6s linear infinite; }
.ai-mesh__nodes circle { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); animation: ai-node 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ai-mesh__nodes circle:nth-child(3n) { animation-delay: 0.9s; }
.ai-mesh__nodes circle:nth-child(3n + 1) { animation-delay: 1.7s; }
.ai-scan {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px 2px rgba(25, 227, 240, 0.55);
  animation: ai-scan 4.5s ease-in-out infinite; top: 0;
}
.ai-corners { position: absolute; inset: 16px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 22px 2px, linear-gradient(var(--accent), var(--accent)) top left / 2px 22px,
    linear-gradient(var(--accent), var(--accent)) top right / 22px 2px, linear-gradient(var(--accent), var(--accent)) top right / 2px 22px,
    linear-gradient(var(--accent), var(--accent)) bottom left / 22px 2px, linear-gradient(var(--accent), var(--accent)) bottom left / 2px 22px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 22px 2px, linear-gradient(var(--accent), var(--accent)) bottom right / 2px 22px;
  background-repeat: no-repeat; opacity: 0.85;
}
.ai-tag {
  position: absolute; top: 30px; left: 30px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid rgba(25, 227, 240, 0.45); border-radius: 999px;
  background: rgba(7, 26, 61, 0.6); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: #fff;
}
.media-tile .ai-tag svg { width: 15px; height: 15px; color: var(--accent); }
@keyframes ai-scan { 0%, 100% { top: 0; opacity: 0; } 10%, 90% { opacity: 1; } 50% { top: calc(100% - 2px); } }
@keyframes ai-node { 50% { transform: scale(1.6); opacity: 0.6; } }
@keyframes ai-dash { to { stroke-dashoffset: -70; } }
.media-tile--b { right: 0; bottom: 0; width: 58%; height: 52%; border: 8px solid #fff; box-shadow: var(--shadow); }
.about__badge {
  position: absolute;
  left: 24px;
  bottom: 40px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}
.about__badge svg { width: 30px; height: 30px; color: var(--primary); }
.about__lead { border-left: 3px solid var(--primary); padding-left: 20px; font-size: 17px; color: var(--ink); margin: 26px 0; }
.about p + p { margin-top: 16px; }
.about__body p { color: var(--ink-soft); }
.about .link-arrow { margin-top: 28px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr 1.2fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 90px; background: #fff; }
.stat { padding: 34px 30px; border-right: 1px solid var(--line); }
.stat__value { font-family: var(--font-head); font-size: 52px; font-weight: 500; line-height: 1; }
.stat__value span { color: var(--primary); }
.stat__label { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.stat--statement { background: var(--navy); color: #fff; display: flex; align-items: flex-end; font-family: var(--font-head); font-size: 26px; font-weight: 500; line-height: 1.25; border: 0; }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cap-card { padding: 34px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: 0.3s; }
.cap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon-box { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-alt); color: var(--primary); margin-bottom: 22px; }
.icon-box svg { width: 24px; height: 24px; }
.cap-card h3 { font-size: 20px; margin-bottom: 8px; }
.cap-card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Services (home carousel) ---------- */
.service-track {
  overflow-x: auto; /* fallback / reduced motion: a normal swipeable row */
  padding: 14px max(16px, calc((100% - var(--container)) / 2)) 30px;
  scrollbar-width: none;
}
.service-track::-webkit-scrollbar { display: none; }
.service-marquee { display: flex; gap: 18px; width: max-content; }
/* Continuous loop (JS adds .is-marquee after duplicating the cards) */
.service-track.is-marquee { overflow: hidden; padding-inline: 0; }
.service-track.is-marquee .service-marquee { animation: marquee var(--marquee-duration, 45s) linear infinite; }
.service-track.is-marquee:hover .service-marquee,
.service-track.is-marquee:focus-within .service-marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } } /* one full set incl. half the gap */
/* Boxes slide in one after another when the section scrolls into view */
.service-track.reveal { opacity: 1; transform: none; }
.service-track .service-card { opacity: 0; transform: translateX(60px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s; }
.service-track.is-visible .service-card { opacity: 1; transform: none; }
.service-track.is-visible .service-card:nth-child(2) { transition-delay: 0.1s; }
.service-track.is-visible .service-card:nth-child(3) { transition-delay: 0.2s; }
.service-track.is-visible .service-card:nth-child(4) { transition-delay: 0.3s; }
.service-track.is-visible .service-card:nth-child(n + 5) { transition-delay: 0.4s; }
.service-track.is-visible .service-card:hover { transform: translateY(-8px); box-shadow: 0 24px 40px -18px rgba(30, 91, 255, 0.55); transition-delay: 0s; }
.service-card {
  position: relative;
  flex: 0 0 300px;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--card-bg, linear-gradient(160deg, var(--navy-raised), var(--navy)));
  isolation: isolate;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 70% 25%, rgba(25, 227, 240, 0.35), transparent 55%);
  transition: opacity 0.4s;
}
.service-card__art { position: absolute; top: 90px; left: 50%; transform: translateX(-50%); width: 120px; height: 120px; color: rgba(255, 255, 255, 0.16); transition: 0.4s; z-index: -1; }
.service-card:hover .service-card__art { color: rgba(25, 227, 240, 0.4); transform: translateX(-50%) scale(1.08); }
/* Service card photo: fills the card, darkened toward the bottom so the text stays readable */
.service-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.service-card:hover .service-card__img { transform: scale(1.06); }
.service-card:has(.service-card__img)::before {
  background:
    linear-gradient(180deg, rgba(25, 227, 240, 0.18) 0%, rgba(30, 91, 255, 0.08) 32%, rgba(30, 91, 255, 0.78) 64%, rgba(21, 70, 204, 0.96) 100%);
}
.service-card:has(.service-card__img) .service-card__icon { background: rgba(30, 91, 255, 0.55); border-color: rgba(255, 255, 255, 0.45); color: #fff; backdrop-filter: blur(6px); }
.service-card:has(.service-card__img) .service-card__num { opacity: 1; text-shadow: 0 1px 6px rgba(7, 26, 61, 0.5); }
.service-card:has(.service-card__img) p { color: rgba(255, 255, 255, 0.92); }
.service-card__num { position: absolute; top: 24px; left: 24px; font-size: 12px; font-weight: 700; opacity: 0.7; }
.service-card__icon { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 10px; display: grid; place-items: center; color: var(--accent); }
.service-card__icon svg { width: 20px; height: 20px; }
.service-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.why-item { display: flex; gap: 14px; align-items: center; padding: 26px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.why-item:nth-child(4n) { border-right: 0; }
.why-item b { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-alt); color: var(--primary); font-size: 11px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.compare__card { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.compare__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); background: var(--surface); font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink-soft); }
.compare__head svg { width: 20px; height: 20px; }
.compare__list li { display: flex; gap: 14px; align-items: center; padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); }
.compare__list li:last-child { border-bottom: 0; }
.compare__list .mark { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-alt); }
.compare__list .mark svg { width: 12px; height: 12px; }
.compare__card--us { background: var(--navy); border-color: var(--navy); color: #fff; }
.compare__card--us .compare__head { background: var(--navy-soft); border-color: rgba(255, 255, 255, 0.1); color: #fff; }
.compare__card--us .compare__list li { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.08); }
.compare__card--us .mark { background: var(--accent); color: var(--navy); }

/* ---------- Projects ---------- */
.section--dark::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -200px;
  top: -200px;
  border-radius: 50%;
  border: 90px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; z-index: 1; }
.project-card { border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.1); background: var(--navy-soft); overflow: hidden; transition: 0.3s; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(25, 227, 240, 0.4); }
.project-card__media { height: 210px; display: grid; place-items: center; background: var(--media, linear-gradient(135deg, #1e5bff, #19e3f0)); color: rgba(255, 255, 255, 0.85); }
.project-card__media svg { width: 64px; height: 64px; }
.project-card__media { position: relative; overflow: hidden; }
.project-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card__media:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 91, 255, 0.08), rgba(25, 227, 240, 0.12)); pointer-events: none; }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__body { padding: 24px; }
.project-card__cat { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.project-card__cat svg { width: 18px; height: 18px; }
.project-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.project-card p { font-size: 14px; color: rgba(255, 255, 255, 0.65); margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.75); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; position: relative; z-index: 1; }
.filter-btn { padding: 10px 18px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.2s; }
.filter-btn.is-active, .filter-btn:hover { background: var(--gradient); border-color: transparent; }
.project-card.is-hidden { display: none; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process__step { position: relative; padding: 32px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.process__step::before { content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 3px; background: var(--gradient); border-radius: 0 0 3px 3px; }
.process__num { font-family: var(--font-head); font-size: 46px; font-weight: 700; color: var(--surface-alt); -webkit-text-stroke: 1px var(--primary); line-height: 1; margin-bottom: 18px; }
.process__step h3 { font-size: 21px; margin-bottom: 10px; }
.process__step p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }
.process__step .tags .tag { color: var(--primary); border-color: var(--line); background: var(--surface); }

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.orbit { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.orbit__ring { position: absolute; inset: 0; border: 1px dashed var(--line); border-radius: 50%; animation: spin 40s linear infinite; }
.orbit__ring--inner { inset: 18%; animation-duration: 28s; animation-direction: reverse; }
.orbit__core { position: absolute; inset: 34%; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; text-align: center; font-family: var(--font-head); font-weight: 700; box-shadow: 0 20px 50px -15px rgba(30, 91, 255, 0.6); }
.orbit__node { position: absolute; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 30px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transform: translate(-50%, -50%); }
.orbit__node:nth-of-type(1) { top: 0; left: 50%; }
.orbit__node:nth-of-type(2) { top: 50%; left: 100%; }
.orbit__node:nth-of-type(3) { top: 100%; left: 50%; }
.orbit__node:nth-of-type(4) { top: 50%; left: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.pillar { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); }
.pillar .icon-box { flex: 0 0 44px; height: 44px; margin: 0; background: #fff; }
.pillar h4 { font-size: 16px; margin-bottom: 4px; }
.pillar p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.quote-card { position: relative; background: #fff; border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow); }
.quote-card::before { content: ""; position: absolute; top: -18px; right: 0; width: 120px; height: 36px; background: var(--gradient); transform: skewX(-12deg); border-radius: 4px; z-index: -1; }
.quote-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--primary); margin-bottom: 20px; }
.quote-card__top svg { width: 40px; height: 40px; }
.stars { display: flex; gap: 3px; color: #f6b93b; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote { display: none; }
.quote.is-active { display: block; animation: fade 0.5s; }
.quote blockquote { margin: 0 0 28px; font-family: var(--font-head); font-size: 21px; line-height: 1.5; font-weight: 500; }
.quote__author { display: flex; gap: 14px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 700; }
.quote__author b { display: block; font-size: 15px; }
.quote__author small { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.quote-nav { display: flex; gap: 10px; margin-top: 30px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Blog / insights ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: 0.3s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__media { position: relative; height: 200px; background: var(--media, linear-gradient(135deg, var(--navy), var(--primary))); display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); }
.post-card__media svg { width: 54px; height: 54px; }
.post-card__num { position: absolute; top: 16px; left: 16px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.35; }
.post-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 20px; flex: 1; }
.post-card .link-arrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 20px;
  padding: 70px 66px;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(circle at 15% 10%, rgba(25, 227, 240, 0.35), transparent 45%),
              linear-gradient(130deg, var(--primary-deep), var(--navy) 70%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.cta-band::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, 0.04); right: 20%; top: -140px; pointer-events: none; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; margin-bottom: 18px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-bottom: 30px; }
.feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-size: 14px; font-weight: 600; }
.feature b { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: rgba(255, 255, 255, 0.1); color: var(--accent); }
.feature svg { width: 16px; height: 16px; margin-left: auto; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; background: none; border: 0; font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.faq__q svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--primary); transition: transform 0.3s; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq__a p { padding-bottom: 24px; color: var(--ink-soft); }

/* ---------- Services page ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 70px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) .service-row__media { order: 2; }
.service-row__media { height: 360px; border-radius: 20px; background: var(--media, linear-gradient(135deg, var(--navy), var(--primary))); display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); position: relative; overflow: hidden; }
.service-row__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(25, 227, 240, 0.4), transparent 50%); }
.service-row__media svg { width: 110px; height: 110px; }
.service-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.service-row__media:has(img) { box-shadow: var(--shadow); }
.service-row__media:has(img)::after { background: linear-gradient(135deg, rgba(30, 91, 255, 0.14), rgba(25, 227, 240, 0.08) 60%, transparent); }
.service-row:hover .service-row__media img { transform: scale(1.04); }
.service-row__num { font-family: var(--font-head); font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.service-row h2 { font-size: 34px; font-weight: 600; margin-bottom: 16px; }
.service-row p { color: var(--ink-soft); margin-bottom: 24px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 28px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 500; }
.check-list svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--primary); margin-top: 3px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.team-card__photo { height: 300px; background: linear-gradient(160deg, var(--surface-alt), #d4e1f7); display: grid; place-items: center; color: var(--primary); }
.team-card__photo svg { width: 80px; height: 80px; opacity: 0.5; }
.team-card__body { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; }
.team-card h3 { font-size: 19px; }
.team-card small { color: var(--ink-soft); }
.social-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; transition: 0.2s; }
.social-btn:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.social-btn svg { width: 16px; height: 16px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.contact-info { background: var(--navy); color: #fff; border-radius: 20px; padding: 44px 38px; position: relative; overflow: hidden; }
.contact-info::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 50px solid rgba(25, 227, 240, 0.07); right: -120px; bottom: -120px; }
.contact-info h2 { font-size: 28px; margin-bottom: 12px; }
.contact-info > p { color: rgba(255, 255, 255, 0.7); margin-bottom: 34px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-item .icon-box { flex: 0 0 48px; height: 48px; margin: 0; background: rgba(255, 255, 255, 0.08); color: var(--accent); }
.contact-item small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.55); }
.contact-item a, .contact-item span { font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 44px; box-shadow: var(--shadow); }
.form h2 { font-size: 28px; margin-bottom: 8px; }
.form > p { color: var(--ink-soft); margin-bottom: 30px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: 0.2s;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(30, 91, 255, 0.12); }
.form .btn { margin-top: 24px; }
.form__note { margin-top: 16px; font-size: 14px; color: var(--primary); font-weight: 600; min-height: 1em; }

.map { margin-top: 70px; height: 360px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding: 90px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(30, 91, 255, 0.25), transparent 40%); pointer-events: none; }
.footer .container { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 60px; }
.footer__about p { margin: 24px 0; font-size: 15px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 22px; }
.footer__links li + li { margin-top: 12px; }
.footer__links a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.15); display: grid; place-items: center; transition: 0.2s; }
.footer__social a:hover { background: var(--gradient); border-color: transparent; color: #fff; }
.footer__social svg { width: 16px; height: 16px; }
.footer__cta { color: var(--accent); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; }
.footer__cta svg { width: 16px; height: 16px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 24px 0; display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Community / ATHWELA ---------- */
:lang(si) { font-family: "Noto Sans Sinhala", var(--font-body); line-height: 1.85; }
:lang(si) h1, :lang(si) h2, :lang(si) h3, :lang(si) h4 { font-family: "Noto Sans Sinhala", var(--font-head); line-height: 1.4; }
:lang(si) .eyebrow, :lang(si) .btn { letter-spacing: 0.02em; }

.page-hero__tagline { font-size: 22px !important; font-weight: 600; color: #fff !important; margin-bottom: 8px; }
.page-hero .hero__actions { margin-top: 34px; }
.cap-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cap-card__num { float: right; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--primary); opacity: 0.6; }

.purpose { max-width: 860px; margin-inline: auto; text-align: center; }
.purpose__quote {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.45;
  margin: 10px 0 28px;
  color: #fff;
}
.purpose p + p { margin-top: 16px; }
.purpose p:not(.purpose__quote) { color: rgba(255, 255, 255, 0.75); font-size: 17px; }

.powered-by { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.powered-by img { width: 24px; height: 24px; }

.community-card { display: flex; flex-direction: column; }
.community-card p { flex: 1; margin-bottom: 18px; }
.community-card--featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.community-card--featured p { color: rgba(255, 255, 255, 0.75); }
.community-card--featured .icon-box { background: rgba(255, 255, 255, 0.08); color: var(--accent); }
.community-card--featured .link-arrow { color: var(--accent); }

/* Idea section */
.idea { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.idea__intro p { color: var(--ink-soft); }
.idea__intro p + p { margin-top: 14px; }
.idea__lead { font-size: 19px; font-weight: 600; color: var(--ink) !important; margin: 20px 0; }
.idea__tagline {
  position: relative;
  margin: 34px 0 0;
  padding: 28px 30px 28px 74px;
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
  box-shadow: 0 20px 40px -20px rgba(30, 91, 255, 0.7);
}
.idea__tagline svg { position: absolute; left: 26px; top: 28px; width: 30px; height: 30px; opacity: 0.8; }
.idea__note { color: var(--ink-soft); margin-bottom: 20px; }
.idea__options { display: grid; gap: 12px; margin-bottom: 26px; }
.idea__close { font-weight: 600; font-size: 17px; margin-bottom: 20px; }
.idea__sign { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.04em; }

/* Idea form */
.idea-form { max-width: 900px; margin-inline: auto; }
.form__group { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.form__group legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 16px; }
.form__group legend b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 12px; }
.form__group legend small { font-weight: 500; color: var(--ink-soft); font-size: 13px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.choice span svg { width: 16px; height: 16px; color: var(--primary); }
.choice input:checked + span { background: var(--gradient); border-color: transparent; color: #fff; }
.choice input:checked + span svg { color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(30, 91, 255, 0.2); }
.notice { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--radius); background: #fff8e6; border: 1px solid #f6d98b; margin-bottom: 18px; }
.notice svg { flex: 0 0 22px; width: 22px; height: 22px; color: #b7791f; }
.notice b { display: block; margin-bottom: 4px; }
.notice p { font-size: 14px; color: #6b5313; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; font-size: 14px !important; cursor: pointer; }
.form .consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; padding: 0; accent-color: var(--primary); }

/* ---------- Floating ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 0;
  background: var(--gradient);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(30, 91, 255, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  z-index: 40;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .nav { gap: 20px; }
  .nav__link { font-size: 14px; }
}

@media (max-width: 1080px) {
  .cap-grid, .cap-grid--3, .process { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(4n) { border-right: 1px solid var(--line); }
  .why-item:nth-child(2n) { border-right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .project-grid, .post-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .topbar { display: none; }
  .menu-toggle { display: block; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 16px 40px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .nav.is-open { transform: none; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .nav__link::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 10px; display: none; }
  .nav__item.is-open .dropdown { display: block; }
  .nav .btn { margin-top: 24px; justify-content: center; }

  .hero .container, .about, .idea, .approach, .testimonials, .contact, .cta-band, .service-row, .section-head { grid-template-columns: 1fr; }
  .hero .container { padding: 70px 0 80px; }
  .hero__visual { height: 360px; }
  .about { gap: 50px; }
  .about__media { height: 380px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat--statement { grid-column: 1 / -1; }
  .compare { grid-template-columns: 1fr; }
  .cta-band { padding: 50px 30px; }
  .service-row { gap: 36px; padding: 50px 0; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
  .section-head { gap: 16px; }
}

@media (max-width: 640px) {
  .cap-grid, .cap-grid--3, .process, .why-grid, .project-grid, .post-grid, .team-grid, .pillars, .check-list, .form__grid, .feature-grid { grid-template-columns: 1fr; }
  .why-item { border-right: 0 !important; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .hero__visual { height: 300px; }
  .ai-badge { font-size: 11px; padding: 7px 12px; }
  .ai-badge svg { width: 13px; height: 13px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .quote-card, .form { padding: 30px 22px; }
  .orbit__node { font-size: 12px; padding: 8px 12px; }
  .orbit__core { font-size: 13px; line-height: 1.25; }
  .orbit { width: calc(100% - 110px); } /* leave room for the side labels, which sit half outside the circle */
}
