
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5fb;
  --ink: #0b1f44;
  --ink-2: #31415f;
  --muted: #61708c;
  --line: #dde5f2;
  --brand: #0f4ba8;
  --brand-dark: #0a2e6a;
  --brand-soft: #eaf2ff;
  --accent: #d4a646;
  --accent-soft: #fff7e7;
  --success: #155f3a;
  --shadow: 0 18px 55px rgba(12, 31, 68, 0.10);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #f9fbff 0%, #f5f8fc 100%);
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-sm { padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .8rem;
  background: var(--brand-soft); border: 1px solid #cddcff; color: var(--brand-dark);
  border-radius: 999px; font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
}
.eyebrow::before { content:""; width: .5rem; height: .5rem; border-radius:50%; background: var(--accent); }
.kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
h1, h2, h3, h4 { font-family: "Space Grotesk", Inter, system-ui, sans-serif; line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
p { margin: 0 0 1rem; color: var(--ink-2); }
.lead { font-size: 1.08rem; color: var(--muted); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow); padding: 28px; position: relative; overflow: hidden;
}
.card.soft { background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%); }
.card.accent { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #1f64cc 100%); color: #fff; }
.card.accent p, .card.accent li, .card.accent .muted { color: rgba(255,255,255,.86); }
.icon-badge {
  width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 1rem; margin-bottom: 18px; border: 1px solid #d7e4ff;
}
.btn-row { display:flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 999px;
  padding: .95rem 1.4rem; font-weight: 700; border: 1px solid transparent; transition: .25s ease; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color:#fff; box-shadow: 0 12px 30px rgba(15,75,168,.25); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-gold { background: linear-gradient(135deg, var(--accent), #f0c76f); color: #10213d; }
.topbar { background: var(--brand-dark); color: rgba(255,255,255,.88); font-size: .92rem; }
.topbar-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height: 48px; }
.topbar-links, .topbar-meta { display:flex; flex-wrap: wrap; gap: 18px; align-items:center; }
.topbar a:hover { color:#fff; }
.site-header { position: sticky; top:0; z-index:50; backdrop-filter: blur(12px); background: rgba(247,249,252,.92); border-bottom: 1px solid rgba(221,229,242,.85); }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height: 92px; }
.logo-wrap { display:flex; align-items:center; gap:16px; }
.logo-wrap img { width: 84px; height: auto; }
.logo-text strong { display:block; font-family:"Space Grotesk",sans-serif; font-size:1.5rem; letter-spacing:-.03em; }
.logo-text span { color: var(--muted); font-size:.9rem; }
.nav { display:flex; align-items:center; gap:24px; }
.nav a { color: var(--ink-2); font-weight: 700; position:relative; padding: .4rem 0; }
.nav a.active, .nav a:hover { color: var(--brand-dark); }
.nav a.active::after, .nav a:hover::after {
  content:""; position:absolute; left:0; bottom:-6px; width:100%; height:3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--accent));
}
.header-cta { display:flex; align-items:center; gap:12px; }
.menu-toggle { display:none; width:50px; height:50px; border-radius:14px; border:1px solid var(--line); background:#fff; align-items:center; justify-content:center; cursor:pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content:""; display:block; width:22px; height:2px; background: var(--ink); border-radius:3px; position:relative; transition:.25s; }
.menu-toggle span::before { position:absolute; top:-7px; }
.menu-toggle span::after { position:absolute; top:7px; }
.mobile-menu { display:none; padding: 0 0 22px; }
.mobile-menu.open { display:block; }
.mobile-menu .panel { background:#fff; border:1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.mobile-menu a { display:block; padding: 12px 8px; border-bottom: 1px solid var(--line); font-weight:700; color:var(--ink-2); }
.mobile-menu a:last-child { border-bottom:none; }
.hero { padding: 72px 0 90px; position:relative; overflow:hidden; }
.hero::before {
  content:""; position:absolute; inset:0; background: radial-gradient(circle at top right, rgba(15,75,168,.08), transparent 42%), radial-gradient(circle at bottom left, rgba(212,166,70,.13), transparent 34%);
  pointer-events:none;
}
.hero-grid { display:grid; grid-template-columns: 1.15fr .95fr; gap: 34px; align-items:center; }
.hero-copy .eyebrow { margin-bottom: 1rem; }
.hero-copy p.lead { margin-bottom: 1.8rem; max-width: 720px; }
.proof {
  display:flex; flex-wrap:wrap; gap:10px 22px; margin: 24px 0 0; color: var(--ink-2); font-weight: 600;
}
.proof span::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: .45rem; }
.hero-media { position:relative; }
.hero-card {
  border-radius: 34px; overflow: hidden; background:#fff; border:1px solid var(--line); box-shadow: var(--shadow);
}
.hero-card img { width:100%; height: 100%; object-fit: cover; min-height: 520px; }
.hero-float {
  position:absolute; left: 24px; bottom: 24px; background: rgba(10,46,106,.92); color:#fff; padding: 18px 18px 16px; border-radius: 20px; max-width: 320px;
  box-shadow: 0 20px 45px rgba(10,46,106,.22);
}
.hero-float strong { display:block; font-size:1.05rem; margin-bottom:.35rem; }
.metrics { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:18px; margin-top: 28px; }
.metric {
  background:#fff; border:1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow);
}
.metric strong { display:block; font-family:"Space Grotesk",sans-serif; font-size: 1.8rem; color: var(--brand-dark); }
.metric span { color: var(--muted); font-size: .95rem; }
.media-slab { border-radius: 30px; overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow); }
.media-slab img { width:100%; height:100%; object-fit:cover; }
.split { display:grid; grid-template-columns: .95fr 1.05fr; gap: 34px; align-items:center; }
.check-list { list-style:none; padding:0; margin: 0; display:grid; gap: 12px; }
.check-list li { position:relative; padding-left: 28px; color: var(--ink-2); }
.check-list li::before { content:"•"; position:absolute; left:0; top:-2px; font-size: 1.5rem; color: var(--accent); line-height:1; }
.service-card h3, .feature-card h3, .blog-card h3 { margin-bottom:.65rem; }
.service-card ul { padding-left: 1rem; color: var(--ink-2); margin: .9rem 0 0; }
.service-card li { margin-bottom: .4rem; }
.feature-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.feature-card { padding:0; overflow:hidden; }
.feature-card .text { padding: 26px; }
.feature-card .media { height: 260px; }
.feature-card .media img { height:100%; width:100%; object-fit:cover; }
.gallery { display:grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.gallery .item { border-radius: 24px; overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow); background:#fff; }
.gallery .item img { width:100%; height:100%; object-fit:cover; }
.gallery .lg { grid-column: span 7; min-height: 390px; }
.gallery .md { grid-column: span 5; min-height: 390px; }
.gallery .sm { grid-column: span 4; min-height: 250px; }
.gallery .wide { grid-column: span 8; min-height: 250px; }
.ribbon {
  display:flex; align-items:center; justify-content:space-between; gap:24px; padding: 26px 28px; background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color:#fff; border-radius: 28px; box-shadow: var(--shadow);
}
.ribbon p, .ribbon .muted { color: rgba(255,255,255,.86); }
.process { counter-reset: step; display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.process .step { background:#fff; border:1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); position:relative; }
.process .step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family:"Space Grotesk",sans-serif; font-size: 2rem; color: rgba(15,75,168,.18); display:block; margin-bottom: .8rem; font-weight: 700; }
.faq-list { display:grid; gap: 14px; }
.faq-item { border:1px solid var(--line); background:#fff; border-radius: 18px; overflow:hidden; box-shadow: var(--shadow); }
.faq-question { width:100%; border:none; background:none; text-align:left; padding: 20px 22px; font-weight: 700; color: var(--ink); display:flex; justify-content:space-between; gap:18px; cursor:pointer; }
.faq-answer { display:none; padding: 0 22px 20px; color: var(--ink-2); }
.faq-item.open .faq-answer { display:block; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }
.testimonial-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.testimonial { background:#fff; border:1px solid var(--line); padding: 28px; border-radius: 22px; box-shadow: var(--shadow); }
.quote { font-size:1.05rem; color: var(--ink); font-weight:600; }
.persona { margin-top: 18px; color: var(--muted); font-size:.95rem; }
.blog-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:24px; }
.blog-card { background:#fff; border:1px solid var(--line); border-radius: 24px; overflow:hidden; box-shadow: var(--shadow); }
.blog-card .content { padding: 24px; }
.blog-card .thumb { height: 280px; }
.blog-card .thumb img { width:100%; height:100%; object-fit:cover; }
.side-list { display:grid; gap:18px; }
.side-item { display:grid; grid-template-columns: 120px 1fr; gap: 14px; background:#fff; border:1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
.side-item img { width:100%; height:100%; object-fit:cover; border-radius: 14px; min-height: 100px; }
.contact-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.contact-list { display:grid; gap: 16px; }
.contact-item { display:flex; gap: 16px; align-items:flex-start; padding: 20px; background:#fff; border:1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.contact-item strong { display:block; margin-bottom:.25rem; }
.contact-icon { width: 46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; flex: 0 0 auto; }
.form-wrap { background:#fff; border:1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.form-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display:flex; flex-direction:column; gap:8px; }
.field.full { grid-column: 1 / -1; }
label { font-weight:700; color: var(--ink); }
input, textarea, select { width:100%; padding: 14px 16px; border:1px solid #ccd7ea; border-radius: 14px; background:#fbfdff; color:var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.form-actions { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 16px; }
.note { font-size:.92rem; color: var(--muted); }
.table { width:100%; border-collapse: collapse; overflow:hidden; border-radius: 18px; border:1px solid var(--line); background:#fff; box-shadow: var(--shadow); }
.table th, .table td { padding: 16px 18px; border-bottom:1px solid var(--line); text-align:left; }
.table th { width: 35%; color: var(--brand-dark); background:#f8fbff; }
.table tr:last-child th, .table tr:last-child td { border-bottom:none; }
.site-footer { background: #091a39; color: rgba(255,255,255,.9); margin-top: 40px; }
.footer-main { padding: 70px 0 24px; }
.footer-grid { display:grid; grid-template-columns: 1.25fr .8fr .8fr 1fr; gap: 28px; }
.footer-logo { width: 110px; background:#fff; border-radius: 22px; padding: 10px; margin-bottom: 18px; }
.footer-title { color:#fff; font-size:1.08rem; margin-bottom: .9rem; }
.footer-links { display:grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.8); }
.footer-links a:hover { color:#fff; }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.12); display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:space-between; font-size:.95rem; }
.signature a { color:#fff; text-decoration: underline; }
.page-hero { padding: 72px 0 64px; background: linear-gradient(180deg, rgba(15,75,168,.08), rgba(255,255,255,0)); }
.page-hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items:center; }
.page-hero-media { overflow:hidden; border-radius: 30px; border:1px solid var(--line); box-shadow: var(--shadow); }
.page-hero-media img { width:100%; height:100%; min-height:380px; object-fit:cover; }
.value-grid { display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
.value-card { background:#fff; border:1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.pill-list { display:flex; flex-wrap:wrap; gap: 10px; }
.pill { padding: .65rem 1rem; background: #fff; border:1px solid var(--line); border-radius: 999px; font-weight:600; color: var(--ink-2); box-shadow: var(--shadow); }
.notice { padding: 18px 20px; border-radius: 18px; background: var(--accent-soft); border:1px solid #f2dda7; color:#5d4a19; }
.stats-band { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:18px; }
.stats-band .tile { padding: 24px; border-radius: 22px; background: linear-gradient(180deg,#fff,#f8fbff); border:1px solid var(--line); box-shadow: var(--shadow); }
.stats-band strong { display:block; font-size:1.5rem; color:var(--brand-dark); }
.backdrop-blur { backdrop-filter: blur(8px); }
.float-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg,#1fb75a,#0d8f43); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; box-shadow: 0 18px 35px rgba(20,120,58,.28);
}
#page-loader { position: fixed; inset:0; background: linear-gradient(145deg,#07172f,#0f4ba8); color:#fff; z-index:999; display:flex; align-items:center; justify-content:center; transition:.4s ease; }
#page-loader.hidden { opacity:0; visibility:hidden; }
.loader-box { text-align:center; }
.loader-box img { width: 120px; margin: 0 auto 16px; background:#fff; border-radius: 24px; padding: 14px; }
.loader-box strong { display:block; font-family:"Space Grotesk",sans-serif; font-size: 1.4rem; margin-bottom:6px; }
.loader-line { width: 220px; height: 8px; border-radius: 99px; margin: 16px auto 0; background: rgba(255,255,255,.16); overflow:hidden; }
.loader-line span { display:block; height:100%; width:0; background: linear-gradient(90deg,#d4a646,#ffffff); animation: loading 1.6s ease-in-out infinite; }
@keyframes loading { 0% { width:0; } 65% { width:100%; } 100% { width:100%; transform: translateX(100%);} }
@media (max-width: 1080px) {
  .hero-grid, .split, .page-hero-grid, .contact-grid, .blog-grid { grid-template-columns: 1fr; }
  .metrics, .grid-4, .stats-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3, .feature-grid, .testimonial-grid, .footer-grid, .value-grid, .process { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery .lg, .gallery .md, .gallery .sm, .gallery .wide { grid-column: span 6; }
}
@media (max-width: 860px) {
  .topbar { display:none; }
  .nav, .header-cta .btn { display:none; }
  .menu-toggle { display:flex; }
  .header-inner { min-height:84px; }
  .logo-wrap img { width: 70px; }
  .logo-text strong { font-size:1.28rem; }
  .section, .hero, .page-hero { padding: 64px 0; }
  .hero-card img { min-height: 420px; }
  .hero-float { position: static; margin-top: 16px; max-width: none; }
  .grid-2, .grid-3, .grid-4, .feature-grid, .testimonial-grid, .process, .value-grid, .footer-grid, .form-grid, .stats-band { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .gallery .lg, .gallery .md, .gallery .sm, .gallery .wide { grid-column: span 12; min-height: 220px; }
  .side-item { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 1.1rem)); }
  .header-inner { min-height:76px; }
  .hero-card img, .page-hero-media img { min-height: 280px; }
  .btn { width:100%; }
  .btn-row { flex-direction:column; }
  .metrics { grid-template-columns: 1fr; }
  .metric strong { font-size: 1.5rem; }
  .card, .form-wrap, .contact-item, .faq-question { padding-left: 18px; padding-right: 18px; }
}

/* =========================================================
   ARCHEON-INSPIRED MOTION LAYER
   Progressive enhancement: nothing is hidden unless JS adds
   .motion-ready to <html>. If JS fails, content remains visible.
   ========================================================= */

/* Loader must never block the site if JavaScript fails. */
#page-loader {
  animation: kbLoaderFallback .45s cubic-bezier(.22,.61,.36,1) 1.7s forwards;
}
@keyframes kbLoaderFallback {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Header: restrained template-like compression on scroll. */
.site-header,
.header-inner,
.logo-wrap img {
  transition: min-height .32s cubic-bezier(.22,.61,.36,1),
              width .32s cubic-bezier(.22,.61,.36,1),
              background-color .32s ease,
              border-color .32s ease,
              box-shadow .32s ease,
              transform .32s ease;
}
.site-header.is-scrolled {
  background: rgba(247,249,252,.965);
  border-bottom-color: rgba(188,201,222,.9);
  box-shadow: 0 8px 30px rgba(12,31,68,.06);
}
.site-header.is-scrolled .header-inner { min-height: 76px; }
.site-header.is-scrolled .logo-wrap img { width: 70px; }

/* Navigation underline feels drawn rather than simply switched on. */
.nav a::after {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .34s cubic-bezier(.22,.61,.36,1), background .25s ease;
}
.nav a.active::after,
.nav a:hover::after { transform: scaleX(1); }

/* Button micro-interaction: short, mechanical, no bouncy easing. */
.btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: transform .28s cubic-bezier(.22,.61,.36,1),
              box-shadow .28s ease,
              background-color .28s ease,
              border-color .28s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(130%); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.995); }

/* Image hover behavior inspired by architectural portfolio cards. */
.hero-card,
.media-slab,
.page-hero-media,
.gallery .item,
.feature-card .media,
.blog-card .thumb,
.side-item {
  isolation: isolate;
}
.hero-card img,
.media-slab img,
.page-hero-media img,
.gallery .item img,
.feature-card .media img,
.blog-card .thumb img,
.side-item img {
  transition: transform .85s cubic-bezier(.16,1,.3,1), filter .65s ease;
  will-change: transform;
}
.hero-card:hover img,
.media-slab:hover img,
.page-hero-media:hover img,
.gallery .item:hover img,
.feature-card:hover .media img,
.blog-card:hover .thumb img,
.side-item:hover img {
  transform: scale(1.045);
}

/* Card hover: minimal lift and border emphasis. */
.card,
.metric,
.stats-band .tile,
.testimonial,
.process .step,
.contact-item,
.value-card,
.side-item,
.gallery .item {
  transition: transform .42s cubic-bezier(.16,1,.3,1),
              border-color .32s ease,
              box-shadow .42s ease;
}
.card:hover,
.metric:hover,
.stats-band .tile:hover,
.testimonial:hover,
.process .step:hover,
.contact-item:hover,
.value-card:hover,
.side-item:hover,
.gallery .item:hover {
  transform: translateY(-6px);
  border-color: #c6d5ed;
  box-shadow: 0 24px 60px rgba(12,31,68,.13);
}

/* Reveal primitives: activated only after JS marks motion-ready. */
.motion-ready [data-motion] {
  opacity: 0;
  will-change: transform, opacity, clip-path;
}
.motion-ready [data-motion="up"] { transform: translate3d(0, 34px, 0); }
.motion-ready [data-motion="down"] { transform: translate3d(0, -24px, 0); }
.motion-ready [data-motion="left"] { transform: translate3d(-44px, 0, 0); }
.motion-ready [data-motion="right"] { transform: translate3d(44px, 0, 0); }
.motion-ready [data-motion="scale"] { transform: scale(.955); }
.motion-ready [data-motion="hero-title"] {
  opacity: 1;
  transform: translate3d(0, 18px, 0);
  clip-path: inset(0 0 100% 0);
}
.motion-ready [data-motion="image-reveal"] {
  opacity: 1;
  transform: scale(1.035);
  clip-path: inset(0 0 100% 0);
}
.motion-ready [data-motion].is-visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  transition-property: opacity, transform, clip-path;
  transition-duration: var(--motion-duration, .78s);
  transition-delay: var(--motion-delay, 0ms);
  transition-timing-function: cubic-bezier(.16,1,.3,1);
}
.motion-ready [data-motion="hero-title"].is-visible,
.motion-ready [data-motion="image-reveal"].is-visible {
  clip-path: inset(0 0 0 0);
}

/* Hero is a deliberate sequence, not a generic fade stack. */
.motion-ready .hero .hero-copy > .eyebrow,
.motion-ready .page-hero .eyebrow { --motion-duration: .62s; }
.motion-ready .hero h1,
.motion-ready .page-hero h1 { --motion-duration: .92s; }
.motion-ready .hero .lead,
.motion-ready .page-hero .lead { --motion-duration: .72s; }
.motion-ready .hero .btn-row,
.motion-ready .page-hero .btn-row { --motion-duration: .68s; }
.motion-ready .hero .hero-media,
.motion-ready .page-hero-media { --motion-duration: 1.08s; }

/* Section title rules: editorial rise with a clipped title. */
.motion-ready .section-head h2,
.motion-ready .split h2 {
  clip-path: inset(0 0 100% 0);
}
.motion-ready .section-head h2.is-visible,
.motion-ready .split h2.is-visible {
  clip-path: inset(0 0 0 0);
}

/* Gallery and project cards use a reveal mask + gentle zoom. */
.motion-ready .gallery .item[data-motion="image-reveal"] {
  overflow: hidden;
}

/* Parallax is driven by CSS variables from JS. */
[data-parallax] {
  --parallax-y: 0px;
}
[data-parallax] img {
  transform: translate3d(0, var(--parallax-y), 0) scale(1.045);
}
[data-parallax]:hover img {
  transform: translate3d(0, var(--parallax-y), 0) scale(1.075);
}

/* Process gets a blueprint-like line that draws when section appears. */
.process { position: relative; }
.process::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform-origin: left center;
  transform: scaleX(0);
  opacity: .32;
  transition: transform 1.15s cubic-bezier(.16,1,.3,1) .12s;
  pointer-events: none;
}
.motion-ready .process.is-visible::before { transform: scaleX(1); }

/* FAQ plus rotation is kept crisp and mechanical. */
.faq-question span:last-child {
  display: inline-block;
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.faq-answer {
  animation: none;
}
.faq-item.open .faq-answer {
  animation: faqEnter .36s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes faqEnter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ribbon CTA has a subtle light pass on entry and hover. */
.ribbon { overflow: hidden; position: relative; }
.ribbon::after {
  content:"";
  position:absolute;
  inset:-20% auto -20% -30%;
  width: 28%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  pointer-events:none;
  transition: transform 1.05s cubic-bezier(.16,1,.3,1);
}
.ribbon:hover::after { transform: translateX(520%) skewX(-18deg); }

/* Footer enters as a single grounded block, then columns stagger. */
.site-footer { overflow: hidden; }
.footer-logo { transition: transform .65s cubic-bezier(.16,1,.3,1); }
.footer-logo:hover { transform: scale(1.04) rotate(-1deg); }

/* Mobile: shorter travel, no expensive parallax, lighter timing. */
@media (max-width: 860px) {
  .motion-ready [data-motion="up"] { transform: translate3d(0, 20px, 0); }
  .motion-ready [data-motion="down"] { transform: translate3d(0, -16px, 0); }
  .motion-ready [data-motion="left"] { transform: translate3d(-22px, 0, 0); }
  .motion-ready [data-motion="right"] { transform: translate3d(22px, 0, 0); }
  .motion-ready [data-motion].is-visible { --motion-duration: .62s; }
  [data-parallax] img,
  [data-parallax]:hover img { transform: none !important; }
  .card:hover,
  .metric:hover,
  .stats-band .tile:hover,
  .testimonial:hover,
  .process .step:hover,
  .contact-item:hover,
  .value-card:hover,
  .side-item:hover,
  .gallery .item:hover { transform: none; }
  .process::before { display:none; }
}

/* Respect user motion preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .motion-ready [data-motion] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  [data-parallax] img { transform: none !important; }
}

/* Security honeypot: intentionally invisible to human users, available to basic bots. */
.hp-field{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}


/* ==========================================================
   GALERIE CLIENT — séquences ordonnées (Adéma Afrik)
   ========================================================== */
.sequence-gallery-section { overflow: hidden; }
.sequence-gallery { display: grid; gap: 46px; }
.sequence-block { min-width: 0; }
.sequence-heading { display:flex; justify-content:space-between; align-items:end; gap:18px; margin-bottom:16px; }
.sequence-heading h3 { margin:.3rem 0 0; font-size:clamp(1.35rem,2.4vw,2rem); }
.sequence-range { flex:0 0 auto; font-family:"Space Grotesk",sans-serif; color:var(--brand-dark); background:var(--brand-soft); border:1px solid #d7e4ff; padding:.55rem .8rem; border-radius:999px; font-weight:700; }
.sequence-rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(250px, 31%); gap:16px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:inline mandatory; padding:4px 2px 18px; scrollbar-width:thin; scrollbar-color:var(--brand) transparent; }
.sequence-rail::-webkit-scrollbar { height:8px; }
.sequence-rail::-webkit-scrollbar-thumb { background:linear-gradient(90deg,var(--brand-dark),var(--brand)); border-radius:99px; }
.sequence-card { margin:0; background:#fff; border:1px solid var(--line); border-radius:22px; overflow:hidden; box-shadow:var(--shadow); scroll-snap-align:start; position:relative; transition:transform .28s ease, box-shadow .28s ease; }
.sequence-card:hover { transform:translateY(-4px); box-shadow:0 22px 60px rgba(12,31,68,.14); }
.sequence-media { aspect-ratio:4/3; background:var(--surface-2); overflow:hidden; }
.sequence-media img { width:100%; height:100%; object-fit:cover; transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.sequence-card:hover .sequence-media img { transform:scale(1.035); }
.sequence-card figcaption { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 14px; border-top:1px solid var(--line); }
.sequence-card figcaption span { font-family:"Space Grotesk",sans-serif; color:var(--brand-dark); font-weight:800; }
.sequence-card figcaption small { color:var(--muted); font-weight:600; }
.project-sequence-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.project-sequence-grid .sequence-card:nth-child(12n + 1), .project-sequence-grid .sequence-card:nth-child(12n + 8) { grid-column:span 2; }
.project-sequence-grid .sequence-card:nth-child(12n + 1) .sequence-media, .project-sequence-grid .sequence-card:nth-child(12n + 8) .sequence-media { aspect-ratio:16/9; }
@media (max-width:1080px) {
  .sequence-rail { grid-auto-columns:minmax(250px,45%); }
  .project-sequence-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .sequence-heading { align-items:flex-start; }
  .sequence-rail { grid-auto-columns:minmax(260px,82%); gap:12px; }
  .project-sequence-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .project-sequence-grid .sequence-card:nth-child(n) { grid-column:span 1; }
}
@media (max-width:480px) {
  .sequence-range { display:none; }
  .sequence-rail { grid-auto-columns:88%; }
  .project-sequence-grid { grid-template-columns:1fr; }
  .sequence-card figcaption { min-height:50px; }
}

.gallery-block-note { margin: -6px 0 16px; color: var(--muted); max-width: 760px; }
.project-gallery-group + .project-gallery-group { margin-top: 34px; }
.project-gallery-group .project-sequence-grid { margin-top: 16px; }
.project-gallery-group .sequence-card:nth-child(1), .project-gallery-group .sequence-card:nth-child(4) { grid-column: span 2; }
.project-gallery-group .sequence-card:nth-child(1) .sequence-media, .project-gallery-group .sequence-card:nth-child(4) .sequence-media { aspect-ratio: 16/9; }
@media (max-width:760px){ .project-gallery-group .sequence-card:nth-child(n){ grid-column: span 1; } }
