/* ============================================================
   ARIA DIGITAL AGENCY — Main stylesheet
   Palette: deep navy #0A2E3D + cerulean #1C8EA9 + amber #E9A84A (brand logo)
   Fonts:   Sora (headings) / Inter (body) — Google Fonts
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #062029;
  --navy-900: #0A2E3D;
  --navy-800: #0F3E52;
  --navy-700: #155069;
  --accent-600: #15738A;
  --accent-500: #1C8EA9;
  --accent-400: #2AA7C4;
  --accent-300: #45BCD8;
  --accent-100: #E2F3F7;
  --gold: #E9A84A;
  --gold-dark: #C98834;
  --ink: #143240;
  --muted: #5C6C7C;
  --bg: #F3F8FA;
  --card: #FFFFFF;
  --line: #DFE9EE;
  --shadow-sm: 0 2px 10px rgba(10, 46, 61, .06);
  --shadow-md: 0 12px 32px rgba(10, 46, 61, .10);
  --shadow-lg: 0 26px 64px rgba(10, 46, 61, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --container: 1200px;
  --nav-h: 82px;
  --header-total: 122px; /* topbar (40px) + nav (82px) */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--card);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

::selection { background: var(--accent-500); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.15; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent-500); color: #fff; box-shadow: 0 10px 26px rgba(28, 142, 169, .35); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(28, 142, 169, .42); }
.btn-ghost { background: transparent; color: #fff; border: 1.6px solid rgba(255, 255, 255, .65); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy-900); border: 1.6px solid var(--line); }
.btn-outline:hover { border-color: var(--accent-500); color: var(--accent-600); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #B9C8D6; font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar-group { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--accent-400); flex: none; }
.topbar-item a:hover { color: #fff; }
.topbar-note { color: var(--accent-300); font-weight: 600; letter-spacing: .04em; }

/* Par défaut (PC et Tablettes), la topbar est visible */
.topbar {
  display: block; /* ou flex selon votre structure initiale */
}

/* Masqué uniquement sur les smartphones (écrans de 768px de large ou moins) */
@media screen and (max-width: 768px) {
  .topbar {
    display: none !important;
  }
}


/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-logo { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.42rem; letter-spacing: .02em; color: var(--navy-900); }
.brand-name em { font-style: normal; color: var(--accent-500); }
.brand-sub { margin-top: 5px; font-size: .64rem; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--accent-600); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { position: relative; font-weight: 600; font-size: .96rem; color: var(--navy-900); padding: 6px 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2.5px; width: 0;
  background: var(--accent-500); border-radius: 2px; transition: width .28s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--accent-600); }
.nav-cta { display: inline-flex; }

.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); align-items: center; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-in panel */
.scrim { position: fixed; inset: 0; background: rgba(6, 32, 41, .55); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 1100; }
.scrim.show { opacity: 1; visibility: visible; }
.mobile-panel {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(85vw, 340px);
  background: var(--navy-950); z-index: 1200; padding: 96px 34px 40px;
  transform: translateX(105%); transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a.m-link { color: #E6EEF5; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-panel a.m-link.is-active { color: var(--accent-300); }
.mobile-panel .btn { margin-top: 26px; }
.mobile-close { position: absolute; top: 22px; right: 22px; color: #fff; font-size: 1.6rem; width: 40px; height: 40px; display: grid; place-items: center; }

/* ---------- HERO (animated slideshow) ---------- */
.hero { position: relative; height: calc(100vh - var(--header-total)); min-height: 620px; max-height: 940px; overflow: hidden; background: var(--navy-950); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 0; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-slide.is-active img { animation: kenburns-a 16s ease-out forwards; }
.hero-slide:nth-child(2).is-active img { animation-name: kenburns-b; }
.hero-slide:nth-child(3).is-active img { animation-name: kenburns-c; }

@keyframes kenburns-a { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.16) translate(-1.6%, 1%); } }
@keyframes kenburns-b { from { transform: scale(1.16) translate(1.4%, -1%); } to { transform: scale(1.03) translate(0, 0); } }
@keyframes kenburns-c { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.17) translate(1.8%, 1.2%); } }

.hero-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(6, 32, 41, .93) 0%, rgba(10, 46, 61, .74) 46%, rgba(10, 46, 61, .28) 100%),
    linear-gradient(0deg, rgba(6, 32, 41, .55) 0%, rgba(6, 32, 41, 0) 34%);
}
.hero-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 820px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(69, 188, 216, .45);
  background: rgba(28, 142, 169, .16); color: #CDEBF2;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-400); box-shadow: 0 0 0 4px rgba(42, 167, 196, .25); }
.hero-title { font-size: clamp(2.5rem, 5.4vw, 4.1rem); font-weight: 800; color: #fff; line-height: 1.07; letter-spacing: -.015em; }
.hero-title .accent { color: var(--accent-300); }
.hero-text { margin-top: 22px; max-width: 600px; color: #C9D7E4; font-size: 1.12rem; line-height: 1.75; }
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-dots { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 84px; display: flex; gap: 10px; align-items: center; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .38); transition: all .3s ease; }
.hero-dots button.is-active { width: 30px; background: var(--accent-400); }

.hero-scroll {
  position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); bottom: 26px;
  color: rgba(255, 255, 255, .75); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after { content: ""; width: 1.5px; height: 30px; background: linear-gradient(180deg, rgba(255, 255, 255, .8), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Stats band (overlaps hero) ---------- */
.stats { position: relative; z-index: 5; margin-top: -86px; padding-bottom: 40px; }
.stats-panel {
  background: linear-gradient(130deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden; position: relative;
}
.stats-panel::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(69, 188, 216, .28), transparent 70%); }
.stat { padding: 40px 34px; border-left: 1px solid rgba(255, 255, 255, .09); position: relative; }
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.7rem; color: var(--accent-300); line-height: 1; }
.stat-label { margin-top: 10px; color: #AFC2D3; font-size: .92rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tint { background: var(--bg); }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--accent-600);
  font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2.5px; border-radius: 2px; background: var(--accent-500); }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2.5px; border-radius: 2px; background: var(--accent-500); }
.section-title { font-size: clamp(1.85rem, 3.2vw, 2.65rem); letter-spacing: -.01em; }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

/* ---------- About preview (home) ---------- */
.about-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media > img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute; right: -26px; bottom: -26px;
  background: var(--accent-500); color: #fff; border-radius: 18px;
  padding: 24px 28px; box-shadow: 0 18px 40px rgba(28, 142, 169, .38);
  display: flex; align-items: center; gap: 14px;
}
.about-badge strong { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: .84rem; line-height: 1.35; font-weight: 500; max-width: 110px; }
.about-body .section-title { margin-bottom: 18px; }
.about-checklist { margin-top: 26px; display: grid; gap: 14px; }
.about-checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.about-checklist li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-100); color: var(--accent-600); font-size: .8rem; font-weight: 800;
  display: grid; place-items: center; margin-top: 2px;
}
.about-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Services grid (home) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(28, 142, 169, .35); }
.svc-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-media img { transform: scale(1.07); }
.svc-num {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(6, 32, 41, .78); color: #fff; backdrop-filter: blur(4px);
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  padding: 6px 12px; border-radius: 999px; letter-spacing: .08em;
}
.svc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 1.18rem; margin-bottom: 10px; }
.svc-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.svc-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-600); font-weight: 700; font-size: .9rem; }
.svc-link svg { width: 15px; height: 15px; transition: transform .25s ease; }
.svc-link:hover svg { transform: translateX(4px); }

/* ---------- Products marquee ---------- */
.marquee { background: var(--navy-950); padding: 26px 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-950), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--navy-950), transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .16); color: #D9E5EF;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.chip::before { content: "◆"; font-size: .6rem; color: var(--accent-400); }
.chip--alt { border-color: rgba(69, 188, 216, .45); color: var(--accent-300); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Why choose us / values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card::after {
  content: attr(data-num); position: absolute; right: 18px; top: 6px;
  font-family: var(--font-head); font-weight: 800; font-size: 4.6rem; line-height: 1;
  color: var(--accent-100); pointer-events: none;
}
.value-card h3 { font-size: 1.16rem; margin-bottom: 12px; position: relative; }
.value-card p { color: var(--muted); font-size: .95rem; position: relative; }
.value-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--accent-100); color: var(--accent-600);
  display: grid; place-items: center; margin-bottom: 22px; position: relative;
}
.value-icon svg { width: 26px; height: 26px; }

/* ---------- Testimonials ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quote-card::before { content: "\201C"; font-family: Georgia, serif; font-size: 4.6rem; line-height: 1; color: var(--accent-300); display: block; margin-bottom: 6px; }
.quote-card p { color: var(--ink); font-size: .98rem; }
.quote-author { margin-top: 22px; display: flex; align-items: center; gap: 13px; }
.quote-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy-900); color: var(--accent-300); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .95rem; }
.quote-author strong { display: block; font-size: .95rem; color: var(--navy-900); }
.quote-author span { font-size: .82rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-panel {
  background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: 26px; padding: 70px 64px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-panel::before {
  content: ""; position: absolute; right: -60px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 188, 216, .3), transparent 70%);
}
.cta-panel::after {
  content: ""; position: absolute; left: 30%; bottom: -140px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(69, 188, 216, .14), transparent 70%);
}
.cta-title { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); position: relative; z-index: 1; }
.cta-title em { font-style: normal; color: var(--accent-300); }
.cta-text { margin-top: 12px; color: #B9C8D6; max-width: 560px; position: relative; z-index: 1; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Page banner (inner pages, animated) ---------- */
.page-banner { position: relative; height: 54vh; min-height: 400px; max-height: 560px; overflow: hidden; background: var(--navy-950); display: flex; align-items: flex-end; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: banner-zoom 22s ease-in-out infinite alternate; }
@keyframes banner-zoom { from { transform: scale(1.02); } to { transform: scale(1.13); } }
.page-banner::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 32, 41, .78) 0%, rgba(10, 46, 61, .55) 40%, rgba(6, 32, 41, .88) 100%);
}
.banner-content { position: relative; z-index: 2; padding-bottom: 62px; width: 100%; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #AFC2D3; font-size: .88rem; font-weight: 500; margin-bottom: 14px; }
.breadcrumb a { color: var(--accent-300); font-weight: 600; }
.breadcrumb a:hover { color: #fff; }
.banner-title { color: #fff; font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.01em; }
.banner-sub { margin-top: 12px; color: #C9D7E4; max-width: 640px; font-size: 1.05rem; }

/* ---------- Split layout (about story / global) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--rev .split-media { order: 2; }
.split-media-collage { position: relative; padding-bottom: 56px; }
.split-media-collage img:first-child { width: 82%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-media-collage img:last-child {
  position: absolute; right: 0; bottom: 0; width: 52%; border-radius: var(--radius);
  aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.split-media > img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
.split-body .section-title { margin-bottom: 18px; }
.split-body p { color: var(--muted); }
.split-body p + p { margin-top: 14px; }
.mini-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 16px; text-align: center; }
.mini-stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--accent-600); }
.mini-stat span { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ---------- Mission / vision / values cards ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mv-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 32px; transition: transform .3s ease, box-shadow .3s ease; }
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mv-card .value-icon { margin-bottom: 20px; }
.mv-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.mv-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Gallery (about operations) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.08); }
.g-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 20px 16px;
  background: linear-gradient(0deg, rgba(6, 32, 41, .85), transparent);
  color: #fff; font-weight: 600; font-size: .95rem;
  transform: translateY(8px); opacity: 0; transition: all .35s ease;
}
.g-item:hover .g-caption { transform: translateY(0); opacity: 1; }

/* ---------- Global reach band ---------- */
.global-band { background: linear-gradient(130deg, var(--navy-900), var(--navy-800)); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; box-shadow: var(--shadow-lg); }
.global-body { padding: 64px 56px; }
.global-body .section-title { color: #fff; }
.global-body p { color: #B9C8D6; margin-top: 16px; }
.reach-chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.reach-chips span {
  border: 1px solid rgba(69, 188, 216, .4); color: var(--accent-300);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .88rem;
}
.global-media { position: relative; min-height: 320px; }
.global-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Service detail blocks (services page) ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.service-block:last-child { border-bottom: none; }
.service-block--rev .svc-media { order: 2; }
.svc-kicker { color: var(--accent-600); font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.svc-kicker::before { content: ""; width: 26px; height: 2.5px; border-radius: 2px; background: var(--accent-500); }
.service-block h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 16px; }
.service-block > div > p { color: var(--muted); }
.svc-points { margin-top: 22px; display: grid; gap: 12px; }
.svc-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.svc-points li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-500); margin-top: 9px; box-shadow: 0 0 0 4px var(--accent-100);
}

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: stretch; }
.contact-form-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 44px; box-shadow: var(--shadow-sm); }
.contact-form-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-note { color: var(--muted); font-size: .95rem; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--navy-900); }
.field label span { color: var(--accent-600); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #FCFDFB; color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 4px rgba(28, 142, 169, .14); background: #fff;
}
.field-err { color: #C0392B; font-size: .82rem; margin-top: 6px; display: none; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: #C0392B; }
.field.has-err .field-err { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-status { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: .93rem; margin-top: 18px; }
.form-status.ok { display: block; background: var(--accent-100); color: var(--accent-600); border: 1px solid rgba(28, 142, 169, .3); }
.form-status.err { display: block; background: #FDEDEB; color: #C0392B; border: 1px solid rgba(192, 57, 43, .25); }
.form-status.ok, .form-status.err { display: block; }

.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.contact-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; gap: 20px; box-shadow: var(--shadow-sm); }
.info-line { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; }
.info-icon svg { width: 22px; height: 22px; }
.info-line strong { display: block; font-size: .95rem; color: var(--navy-900); margin-bottom: 3px; }
.info-line p, .info-line a { color: var(--muted); font-size: .93rem; }
.info-line a:hover { color: var(--accent-600); }

.offices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.office-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.office-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.office-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.office-body { padding: 24px 26px 28px; }
.office-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.office-body p { color: var(--muted); font-size: .93rem; }

.map-wrap { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(1) contrast(1.04); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #A9BCCF; margin-top: 100px; }
.footer-top { padding: 76px 0 54px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand { background: #fff; border-radius: 14px; padding: 14px 18px; display: inline-block; width: fit-content; }
.footer-brand img { height: 96px; width: auto; }
.footer-about { margin-top: 22px; font-size: .93rem; max-width: 320px; }
.footer-social { margin-top: 24px; display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  display: grid; place-items: center; color: #C9D7E4; transition: all .25s ease;
}
.footer-social a:hover { background: var(--accent-500); border-color: var(--accent-500); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 22px; letter-spacing: .02em; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: .93rem; color: #A9BCCF; display: inline-flex; align-items: center; gap: 8px; transition: color .25s ease, transform .25s ease; }
.footer-links a::before { content: "›"; color: var(--accent-400); font-weight: 700; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-contact { display: grid; gap: 18px; font-size: .93rem; }
.footer-contact .info-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(69, 188, 216, .14); color: var(--accent-300); }
.footer-contact .info-icon svg { width: 19px; height: 19px; }
.footer-contact a:hover { color: var(--accent-300); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 22px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .86rem; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: #fff; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-500); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(28, 142, 169, .4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-600); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal elements ----------
   Always fully visible (capture-safe, no-JS-safe). Entrance motion is
   intentionally omitted: the animated identity of the site lives in the
   hero slideshow, page banners, marquee and hover effects. */
.reveal { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid, .values-grid, .quotes-grid, .mv-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-panel { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid rgba(255, 255, 255, .09); }
  .stat:nth-child(-n+2) { border-top: none; }
  .about-grid, .split, .contact-layout { gap: 48px; }
}

@media (max-width: 860px) {
  :root { --header-total: 82px; }
  .topbar-inner { justify-content: center; }
  .topbar-note { display: none; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .brand-logo { height: 50px; }
  .section { padding: 72px 0; }
  .hero { min-height: 560px; }
  .hero-dots { bottom: 70px; }
  .hero-scroll { display: none; }
  .about-grid, .split, .contact-layout, .global-band, .service-block { grid-template-columns: 1fr; }
  .split--rev .split-media, .service-block--rev .svc-media { order: 0; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 48px 36px; }
  .page-banner { min-height: 340px; }
  .contact-form-card { padding: 32px 26px; }
  .global-body { padding: 44px 32px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .services-grid, .values-grid, .quotes-grid, .mv-grid, .gallery-grid, .offices-grid { grid-template-columns: 1fr; }
  .stats-panel { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid rgba(255, 255, 255, .09); }
  .stat:first-child { border-top: none; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-title { font-size: 2.15rem; }
  .hero-actions .btn { width: 100%; }
  .about-badge { right: 12px; bottom: -20px; padding: 18px 20px; }
  .mini-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide.is-active img, .page-banner img { animation: none !important; }
  .marquee-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* ============================================================
   ARIA — blog, SaaS platforms, clients, article layout
   ============================================================ */

/* ---------- SaaS platforms (home) ---------- */
.platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.platform-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.platform-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(28, 142, 169, .35); }
.platform-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.platform-initial {
  width: 58px; height: 58px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: #fff;
  background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
  box-shadow: 0 10px 22px rgba(28, 142, 169, .32);
}
.platform-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-600); background: var(--accent-100);
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.platform-body { display: flex; flex-direction: column; flex: 1; }
.platform-body h3 { font-size: 1.22rem; margin-bottom: 10px; }
.platform-body p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.platform-body .svc-link { margin-top: auto; }

/* ---------- Clients (home) ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.client-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(28, 142, 169, .3); }
.client-avatar {
  flex: none; width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .92rem; letter-spacing: .03em;
}
.client-card strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--navy-900); line-height: 1.25; }
.client-country { display: block; font-size: .78rem; font-weight: 600; color: var(--accent-600); margin-top: 2px; }

/* ---------- Blog: filter chips ---------- */
.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 42px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card);
  font-weight: 600; font-size: .88rem; color: var(--navy-900);
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.filter-chip span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.filter-chip:hover { border-color: var(--accent-400); color: var(--accent-600); }
.filter-chip.is-active { background: var(--accent-500); border-color: var(--accent-500); color: #fff; box-shadow: 0 8px 20px rgba(28, 142, 169, .3); }
.filter-chip.is-active span { color: rgba(255, 255, 255, .78); }

/* ---------- Blog: grid & post cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(28, 142, 169, .3); }
.post-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-cat {
  position: absolute; left: 14px; bottom: 14px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(6, 32, 41, .82); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.post-date { font-size: .8rem; font-weight: 600; color: var(--accent-600); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.post-body h3 { font-size: 1.18rem; line-height: 1.35; margin-bottom: 10px; }
.post-body h3 a { color: inherit; transition: color .25s ease; }
.post-body h3 a:hover { color: var(--accent-600); }
.post-body p { color: var(--muted); font-size: .93rem; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-body .svc-link { margin-top: auto; }

/* ---------- Blog: empty state ---------- */
.blog-empty {
  text-align: center; padding: 70px 30px;
  background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius);
}
.blog-empty h2 { font-size: 1.5rem; margin-bottom: 10px; }
.blog-empty p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.blog-empty a { color: var(--accent-600); font-weight: 600; }
.blog-empty a:hover { text-decoration: underline; }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 52px; }
.page-btn {
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card);
  font-weight: 600; font-size: .9rem; color: var(--navy-900);
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.page-btn:hover { border-color: var(--accent-500); color: var(--accent-600); transform: translateY(-2px); }
.page-info { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* ---------- Article hero ---------- */
.article-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; padding: 110px 0 64px; overflow: hidden; background: var(--navy-950); }
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.article-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 32, 41, .55) 0%, rgba(6, 32, 41, .72) 55%, rgba(6, 32, 41, .92) 100%); }
.article-hero-content { position: relative; z-index: 2; text-align: center; }
.article-hero-content h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 860px; margin: 18px auto 0; }
.article-hero .breadcrumb a, .article-hero .breadcrumb span { color: rgba(255, 255, 255, .85); }
.article-hero .breadcrumb a:hover { color: var(--accent-300); }
.article-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: .92rem; font-weight: 500; }
.article-meta time { color: var(--accent-300); font-weight: 600; }

/* ---------- Article layout & body typography ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.55rem; margin: 38px 0 14px; }
.article-body h3 { font-size: 1.22rem; margin: 30px 0 12px; }
.article-body p { margin: 0 0 18px; color: var(--ink); font-size: 1.02rem; line-height: 1.75; }
.article-body a { color: var(--accent-600); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-400); }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 9px; color: var(--ink); }
.article-body img { border-radius: var(--radius-sm); margin: 26px 0; width: 100%; }
.article-body blockquote { margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--accent-500); background: var(--accent-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--navy-800); font-style: italic; }
.article-body strong { color: var(--navy-900); }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .94rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--bg); font-family: var(--font-head); }
.article-body code { background: var(--accent-100); color: var(--accent-600); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.article-body pre { background: var(--navy-950); color: #D7E7EE; padding: 18px 22px; border-radius: var(--radius-sm); overflow-x: auto; margin: 24px 0; }
.article-body pre code { background: none; color: inherit; padding: 0; }

/* ---------- Article sidebar ---------- */
.article-aside { position: sticky; top: calc(var(--header-total) + 24px); display: flex; flex-direction: column; gap: 20px; }
.share-card, .aside-cta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.share-card h4, .aside-cta h4 { font-size: 1.02rem; margin-bottom: 14px; }
.share-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.share-bar a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-100); color: var(--accent-600);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.share-bar a:hover { background: var(--accent-500); color: #fff; transform: translateY(-3px); }
.share-bar svg { width: 18px; height: 18px; }
.aside-cta { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); border-color: transparent; color: #B9C8D6; }
.aside-cta h4 { color: #fff; }
.aside-cta p { font-size: .92rem; margin-bottom: 16px; }

/* ---------- Responsive (Aria additions) ---------- */
@media (max-width: 1020px) {
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-aside > div { flex: 1 1 280px; }
}
@media (max-width: 640px) {
  .platforms-grid, .blog-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .article-hero { min-height: 380px; padding: 90px 0 48px; }
  .article-body h2 { font-size: 1.35rem; }
  .pagination { flex-wrap: wrap; }
}
