/* NEMA Consultancy Services
   Brand: charcoal #525050 + burgundy #680e36 (sampled from the logo).
   Motif: the logo's "E" = stacked burgundy bars. Used as the section marker and hero device. */
:root {
  --paper: #ffffff;
  --stone: #f4f2f1;
  --blush: #f7eef2;
  --line: #e2dddc;
  --charcoal: #525050;
  --ink: #2c2a2a;
  --text: #3f3d3d;
  --muted: #6d6a6a;
  --burgundy: #680e36;
  --burgundy-deep: #4c0927;
  --burgundy-soft: #8a3a5e;

  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --header-h: 84px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.1rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-deep); }
:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 300; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--burgundy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* The E-bars marker: three stacked bars, like the logo's E */
.mark { display: inline-grid; gap: 4px; width: 34px; margin-bottom: 18px; }
.mark i { display: block; height: 5px; background: var(--burgundy); }
.mark i:nth-child(2) { width: 100%; }
.on-dark .mark i { background: #fff; }

.kicker { font-size: 1rem; color: var(--burgundy); font-weight: 500; margin-bottom: 10px; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 300; color: var(--charcoal); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 500; font-size: 1rem;
  text-decoration: none; padding: 14px 28px; border: 1.5px solid var(--burgundy);
  background: var(--burgundy); color: #fff; cursor: pointer; border-radius: var(--radius);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--burgundy); }
.btn--ghost:hover { background: var(--burgundy); color: #fff; }
.btn--light { background: #fff; color: var(--burgundy); border-color: #fff; }
.btn--light:hover { background: var(--blush); border-color: var(--blush); color: var(--burgundy-deep); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--burgundy); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 1rem; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--burgundy); border-color: var(--burgundy); }
.nav .btn { padding: 10px 20px; }
.lang { font-size: .95rem; color: var(--muted); }
.lang a { color: var(--muted) !important; }
.lang b { color: var(--ink); font-weight: 500; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--ink); color: var(--ink); font: inherit; font-size: .95rem; padding: 8px 14px; border-radius: var(--radius); cursor: pointer; }

/* Hero */
.hero { position: relative; background: var(--stone); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.0; margin-bottom: 26px; }
.hero h1 strong { font-weight: 500; color: var(--burgundy); }
.hero .lead { margin-bottom: 34px; }
.hero-media { position: relative; }
.hero-media .photo { aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; border-radius: var(--radius); }
.hero-media .block { position: absolute; left: -28px; top: 40px; width: 56%; height: 72%; background: var(--burgundy); z-index: 0; border-radius: var(--radius); }
.hero-media .photo { position: relative; z-index: 1; }
.hero-card {
  position: absolute; z-index: 2; left: -40px; bottom: 28px; width: min(78%, 330px);
  background: #fff; border-radius: 8px; padding: 18px 20px 16px; box-shadow: 0 18px 40px -18px rgba(44,42,42,.45);
}
.hero-card .t { font-size: .85rem; color: var(--muted); margin: 0 0 2px; }
.hero-card .v { font-size: 1.9rem; font-weight: 500; color: var(--ink); line-height: 1.1; margin: 0; }
.hero-card .v span { font-size: .95rem; color: #1f7a4d; font-weight: 500; margin-left: 6px; }
.hero-card svg { display: block; width: 100%; height: auto; margin-top: 10px; }
.bars-in rect { transform-box: fill-box; transform-origin: bottom; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Proof strip */
.proof { border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.proof .stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 300; color: var(--burgundy); line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: .98rem; color: var(--charcoal); }

.clients { padding-block: 34px; }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; }
.clients p { margin: 0; font-size: .95rem; color: var(--muted); }
.wordmark { font-size: 1.25rem; font-weight: 500; color: var(--charcoal); letter-spacing: -0.01em; }
.wordmark small { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 6px; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--stone { background: var(--stone); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .mark { margin-inline: auto; }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.svc {
  display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s;
}
.svc:hover { border-color: var(--burgundy); box-shadow: 0 20px 40px -28px rgba(104,14,54,.55); color: inherit; }
.svc .img { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.svc .img img { width: 100%; height: 100%; object-fit: cover; }
.svc .icon { position: absolute; left: 22px; bottom: -26px; width: 56px; height: 56px; background: var(--burgundy); border-radius: 8px; display: grid; place-items: center; }
.svc .icon svg { width: 30px; height: 30px; }
.svc .body { padding: 44px 28px 28px; display: flex; flex-direction: column; }
.svc h3 { margin-bottom: .4em; }
.svc p { color: var(--charcoal); font-size: 1.02rem; }
.svc ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.svc li { position: relative; padding-left: 22px; font-size: .98rem; }
.svc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--burgundy); }
.svc .more { margin-top: auto; color: var(--burgundy); font-weight: 500; }

/* Dark band */
.band { background: var(--ink); color: #e9e5e4; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: #cfc9c8; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.why div { padding: 30px 28px 6px 0; }
.why div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.why h3 { font-size: 1.25rem; font-weight: 500; }
.why p { color: #cfc9c8; font-size: 1rem; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.process li { position: relative; padding-right: 26px; counter-increment: step; }
.process li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--burgundy); color: #fff; font-weight: 500; font-size: 1.1rem; margin-bottom: 22px; position: relative;
  box-shadow: 0 0 0 8px var(--paper);
}
.section--stone .process li::before { box-shadow: 0 0 0 8px var(--stone); }
.process h3 { font-size: 1.3rem; font-weight: 500; }
.process p { font-size: 1rem; color: var(--charcoal); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split img.photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 8px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.checks svg { width: 22px; height: 22px; margin-top: 3px; }

/* Industries + tools */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); background: #fff; padding: 8px 18px; border-radius: 999px; font-size: 1rem; color: var(--ink); }
.chips.burg li { border-color: var(--burgundy); color: var(--burgundy); background: transparent; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }

/* Testimonials */
.quote-hero { position: relative; border-radius: 8px; overflow: hidden; min-height: 420px; display: grid; align-items: end; }
.quote-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(76,9,39,.94) 0%, rgba(76,9,39,.82) 55%, rgba(76,9,39,.35) 100%); }
.quote-hero figure { position: relative; z-index: 1; margin: 0; padding: clamp(28px, 5vw, 64px); max-width: 780px; color: #fff; }
.quote-hero blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.35; }
.quote-hero figcaption { font-size: 1rem; color: #f0dbe4; }
.quote-hero figcaption b { color: #fff; font-weight: 500; display: block; font-size: 1.1rem; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); margin-top: clamp(20px, 3vw, 32px); }
.quotes figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.quotes blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.quotes figcaption { font-size: .98rem; color: var(--muted); }
.quotes figcaption b { display: block; color: var(--burgundy); font-weight: 500; }

/* Blog list */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.post-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 18px; background: var(--stone); }
.post-card time, .meta { font-size: .92rem; color: var(--burgundy); }
.post-card h3 { font-size: 1.3rem; margin: 6px 0 8px; transition: color .2s; }
.post-card:hover h3 { color: var(--burgundy); }
.post-card p { font-size: .98rem; color: var(--charcoal); }

/* CTA + contact */
.cta { background: var(--burgundy); color: #fff; }
.cta h2 { color: #fff; }
.cta .lead { color: #f0dbe4; }
.cta .grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.cta-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.cta-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: #fbeef3; }
.cta-list svg { width: 22px; height: 22px; margin-top: 3px; }
form.card { background: #fff; color: var(--text); border-radius: 8px; padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; }
form.card h3 { margin: 0; }
.field { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .95rem; color: var(--ink); font-weight: 500; }
input, textarea, select {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); width: 100%;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--blush); border-color: var(--burgundy); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.fineprint { font-size: .88rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc9c8; padding-block: 56px 36px; }
.site-footer .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 1rem; font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfc9c8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Service page */
.page-hero { position: relative; color: #fff; min-height: 460px; display: grid; align-items: end; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(44,42,42,.92) 0%, rgba(44,42,42,.55) 55%, rgba(44,42,42,.25) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: 64px 56px; width: 100%; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 300; letter-spacing: -0.03em; max-width: 18ch; }
.page-hero .lead { color: #eee8e7; }
.crumbs { font-size: .95rem; margin-bottom: 14px; color: #e6dfde; }
.crumbs a { color: #fff; }
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.problems div { border-top: 3px solid var(--burgundy); padding-top: 18px; }
.problems h3 { font-size: 1.2rem; font-weight: 500; }
.problems p { font-size: 1rem; color: var(--charcoal); }
.deliver { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; list-style: none; padding: 0; margin: 0; }
.deliver li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.deliver svg { width: 22px; height: 22px; margin-top: 3px; }
.deliver b { display: block; color: var(--ink); font-weight: 500; }
.deliver span { font-size: .98rem; color: var(--charcoal); }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.example { background: var(--ink); color: #e9e5e4; border-radius: 8px; padding: 28px; }
.example .tag { font-size: .88rem; color: #e7b9cc; margin-bottom: 10px; }
.example h3 { color: #fff; font-size: 1.2rem; font-weight: 500; }
.example p { font-size: .98rem; color: #cfc9c8; margin: 0; }
.visual { background: var(--stone); border-radius: 8px; padding: clamp(20px, 3vw, 36px); }
.visual svg { width: 100%; height: auto; display: block; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.1rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--burgundy); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--charcoal); }

/* Simple page head */
.page-head { background: var(--stone); padding-block: clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 300; letter-spacing: -0.03em; margin: 0 0 14px; }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 100px); font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; }
.article-head { max-width: 900px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 28px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 300; margin-bottom: 14px; }
.article-cover { max-width: 900px; margin: 0 auto 36px; padding-inline: var(--gutter); }
.article-cover img { border-radius: 8px; width: 100%; }
.article h2, .article h3 { font-family: var(--sans); margin-top: 1.8em; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .6em; }
.article blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 4px solid var(--burgundy); font-style: italic; color: var(--charcoal); }
.article img { margin: 1.6em auto; border-radius: 6px; }
.article .example { background: var(--stone); color: var(--text); border-left: 4px solid var(--burgundy); border-radius: 0; padding: 18px 22px; margin: 1.6em 0; font-family: var(--sans); font-size: 1.02rem; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); font-family: var(--sans); }
table { border-collapse: collapse; min-width: 720px; width: 100%; font-size: .95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--burgundy); color: #fff; font-weight: 500; }
tbody th { background: var(--stone); font-weight: 500; color: var(--ink); }
.tags { font-family: var(--sans); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.tags span { border: 1px solid var(--line); padding: 3px 12px; border-radius: 999px; color: var(--charcoal); }
.article-cta { margin-top: 3em; padding: clamp(24px, 4vw, 40px); background: var(--blush); border-radius: 8px; font-family: var(--sans); }
.article-cta h2 { font-size: 1.6rem; margin-top: 0; }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 3em; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 1rem; }
.pager a { max-width: 45%; }
.note { background: var(--blush); border-radius: 8px; padding: 14px 18px; font-size: .98rem; margin-bottom: 28px; }
.calendly-inline-widget { min-width: 320px; height: 760px; }

/* Responsive */
@media (max-width: 1020px) {
  .hero .wrap, .split, .cta .grid, .two-col { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; margin-left: 28px; }
  .why, .process, .posts, .problems, .examples { grid-template-columns: 1fr 1fr; }
  .why div + div { border-left: 0; padding-left: 0; }
  .why div:nth-child(even) { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
  .process::before { display: none; }
  .process li { margin-bottom: 30px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 10px 0; }
}
@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .brand img { height: 40px; }
  .services-grid, .why, .process, .posts, .problems, .examples, .quotes, .deliver, .row { grid-template-columns: 1fr; }
  .why div:nth-child(even) { padding-left: 0; border-left: 0; }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .proof .stat { padding: 22px 0; border-left: 0; }
  .proof .stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .hero-media { margin-left: 18px; }
  .hero-media .block { left: -18px; }
  .hero-card { left: -18px; }
  .page-hero { min-height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars-in rect { animation: none; }
  .btn, .svc { transition: none; }
}

/* =====================================================================
   v3: navigation, slider, clients, motion
   ===================================================================== */

/* Header + dropdown nav */
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(44,42,42,.5); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--burgundy); transform-origin: left; transform: scaleX(0); }
.nav { gap: clamp(10px, 1.8vw, 26px); }
.nav > ul { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 26px); list-style: none; margin: 0; padding: 0; }
.nav .dd { position: relative; }
.nav .dd > button { font: inherit; font-size: 1rem; color: var(--ink); background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav .dd > button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav .dd:hover > button, .nav .dd.open > button { color: var(--burgundy); }
.nav .menu {
  position: absolute; top: calc(100% + 14px); left: 50%; min-width: 300px; list-style: none; margin: 0; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 48px -24px rgba(44,42,42,.45);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav .dd.open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1021px) { .nav .dd:hover .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.nav .menu a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; border: 0 !important; color: var(--ink); text-decoration: none; }
.nav .menu a:hover { background: var(--stone); color: var(--burgundy); }
.nav .menu .ic { width: 36px; height: 36px; border-radius: 8px; background: var(--burgundy); display: grid; place-items: center; }
.nav .menu .ic svg { width: 20px; height: 20px; }
.nav .menu small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.3; }
.nav .menu.plain a { grid-template-columns: 1fr; }

/* Floating controls */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -12px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--burgundy); }
.to-top svg { width: 20px; height: 20px; }
.mobile-cta { display: none; }

/* Hero v3 */
.hero { min-height: calc(100svh - var(--header-h)); display: grid; grid-template-rows: 1fr auto; }
.hero .wrap { padding-block: clamp(40px, 6vw, 80px); }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(24px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .lead, .hero .actions, .hero .mark { opacity: 0; animation: rise .8s .45s cubic-bezier(.2,.7,.2,1) forwards; transform: translateY(16px); }
.hero .actions { animation-delay: .6s; }
.hero-media { opacity: 0; animation: rise 1s .2s cubic-bezier(.2,.7,.2,1) forwards; transform: translateY(20px); }
.hero-card { animation: float 6s ease-in-out 1.2s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* Logo marquee */
.marquee { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; overflow: hidden; position: relative; }
.marquee p { text-align: center; font-size: .92rem; color: var(--muted); margin: 0 0 16px; }
.marquee .belt { display: flex; width: max-content; gap: 72px; align-items: center; animation: belt 38s linear infinite; }
.marquee:hover .belt { animation-play-state: paused; }
.marquee img { height: 28px; width: auto; opacity: .75; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.marquee::after { right: 0; background: linear-gradient(-90deg, #fff, rgba(255,255,255,0)); }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Services slider */
.svc-band { background: var(--ink); color: #e9e5e4; padding-block: clamp(64px, 8vw, 110px); overflow: hidden; }
.svc-band h2 { color: #fff; }
.svc-band .lead { color: #cfc9c8; }
.slider-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.slider-head .section-head { margin: 0; }
.arrows { display: flex; gap: 10px; flex-shrink: 0; }
.arrows button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.arrows button:hover { background: var(--burgundy); border-color: var(--burgundy); }
.arrows svg { width: 20px; height: 20px; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 720px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.track::-webkit-scrollbar { display: none; }
.slide {
  scroll-snap-align: start; position: relative; min-height: 480px; border-radius: 12px; overflow: hidden; display: flex; align-items: end;
  color: #fff; text-decoration: none; isolation: isolate; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s;
  opacity: .55; transform: scale(.97);
}
.slide.active, .slide:hover, .slide:focus-visible { opacity: 1; transform: none; color: #fff; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.slide:hover img, .slide.active img { transform: scale(1.04); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(44,42,42,.96) 8%, rgba(44,42,42,.55) 55%, rgba(76,9,39,.25) 100%); }
.slide .inner { padding: clamp(24px, 3.4vw, 44px); width: 100%; }
.slide .num { font-size: .95rem; color: #e7b9cc; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.slide .num .icon { width: 44px; height: 44px; border-radius: 8px; background: var(--burgundy); display: grid; place-items: center; }
.slide .num .icon svg { width: 24px; height: 24px; }
.slide h3 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 400; margin-bottom: 10px; }
.slide p { color: #e6dfde; max-width: 52ch; }
.slide ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.slide li { font-size: .92rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 14px; color: #fff; }
.slide .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.slide .go i { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--burgundy); display: grid; place-items: center; font-style: normal; transition: transform .2s; }
.slide:hover .go i { transform: translateX(4px); }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.dots button { width: 34px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; transition: background .2s, width .3s; }
.dots button[aria-current="true"] { background: #fff; width: 56px; }

/* Stats + why band */
.stats-band { padding-block: clamp(56px, 7vw, 96px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats .stat { padding: 0; border: 0; }
.stats .stat strong { font-size: clamp(2.8rem, 5.4vw, 4.4rem); }
.why-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(40px, 5vw, 64px); padding-top: 36px; border-top: 1px solid var(--line); }
.why-row h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 6px; }
.why-row p { font-size: .98rem; color: var(--charcoal); margin: 0; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: clamp(40px, 5vw, 56px); padding: 26px 30px; border-radius: 12px; background: var(--blush); }
.inline-cta p { margin: 0; font-size: 1.2rem; color: var(--ink); }
.band .inline-cta { background: rgba(255,255,255,.07); }
.band .inline-cta p { color: #fff; }

/* Process: animated line */
.process::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--burgundy); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.process.in::after { transform: scaleX(1); }
.process li { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.process.in li { opacity: 1; transform: none; }
.process.in li:nth-child(2) { transition-delay: .25s; } .process.in li:nth-child(3) { transition-delay: .5s; } .process.in li:nth-child(4) { transition-delay: .75s; }
.process li::before { z-index: 1; }

/* Clients */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.client {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px 20px; display: flex; flex-direction: column; gap: 18px;
  transition: border-color .2s, transform .3s, box-shadow .3s;
}
.client:hover { border-color: var(--burgundy); transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(104,14,54,.5); }
.client .logo { height: 44px; display: flex; align-items: center; }
.client .logo img { max-height: 34px; max-width: 100%; width: auto; }
.client .sector { font-size: .95rem; color: var(--burgundy); font-weight: 500; margin: 0; }
.client .where { font-size: .9rem; color: var(--muted); margin: 0; }
.client.more { background: var(--burgundy); border-color: var(--burgundy); color: #fff; justify-content: center; text-decoration: none; }
.client.more p { margin: 0; font-size: 1.15rem; }
.client.more span { color: #f0dbe4; font-size: .95rem; }
.rotator { position: relative; margin-top: clamp(28px, 4vw, 44px); border-radius: 12px; overflow: hidden; min-height: 360px; display: grid; }
.rotator > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rotator::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(76,9,39,.95) 0%, rgba(76,9,39,.84) 60%, rgba(76,9,39,.45) 100%); }
.rotator .quotes-wrap { position: relative; z-index: 1; display: grid; padding: clamp(28px, 5vw, 60px); }
.rotator .quote { grid-area: 1 / 1; margin: 0; max-width: 820px; color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; pointer-events: none; }
.rotator .quote.on { opacity: 1; transform: none; pointer-events: auto; }
.rotator blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.9rem); line-height: 1.38; }
.rotator figcaption { color: #f0dbe4; }
.rotator figcaption b { display: block; color: #fff; font-weight: 500; font-size: 1.1rem; }
.qdots { position: relative; z-index: 1; display: flex; gap: 10px; padding: 0 clamp(28px, 5vw, 60px) 30px; }
.qdots button { width: 30px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; }
.qdots button[aria-current="true"] { background: #fff; }

/* Compare table (ERP) */
.compare { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.compare > div { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.compare .h { font-weight: 500; background: var(--stone); color: var(--ink); }
.compare .h.us { background: var(--burgundy); color: #fff; }
.compare .k { font-weight: 500; color: var(--ink); }
.compare .us { background: var(--blush); color: var(--ink); }
.compare .them { color: var(--charcoal); }
.compare > div:nth-last-child(-n+3) { border-bottom: 0; }

/* Automation loop visual */
.loop-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.loop-steps li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; position: relative; counter-increment: s; }
.loop-steps li::before { content: counter(s, decimal-leading-zero); font-size: .9rem; color: var(--burgundy); font-weight: 500; display: block; margin-bottom: 10px; }
.loop-steps li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--burgundy); border-right: 2px solid var(--burgundy); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.loop-steps h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 6px; }
.loop-steps p { font-size: .95rem; color: var(--charcoal); margin: 0; }
.loop-note { margin-top: 18px; display: flex; align-items: center; gap: 10px; color: var(--burgundy); font-weight: 500; }
.loop-note svg { width: 22px; height: 22px; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].in[data-reveal="left"], [data-reveal].in[data-reveal="right"] { transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (max-width: 1020px) {
  .nav > ul { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
  .nav > ul > li { width: 100%; }
  .nav .dd > button { width: 100%; justify-content: space-between; padding: 12px 0; }
  .nav .menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; padding: 0 0 8px; min-width: 0; }
  .nav .dd.open .menu { display: block; transform: none; }
  .nav .menu::before { display: none; }
  .nav .lang { padding: 12px 0; }
  .nav { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .stats, .why-row { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-steps { grid-template-columns: 1fr 1fr; }
  .loop-steps li::after { display: none; }
  .compare { grid-template-columns: 1fr 1fr 1fr; font-size: .92rem; }
}
@media (max-width: 720px) {
  .hero { min-height: 0; }
  .track { grid-auto-columns: 88%; gap: 14px; }
  .slide { min-height: 440px; }
  .arrows { display: none; }
  .clients-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .client { padding: 18px 16px; }
  .loop-steps { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .h:not(.first) { display: none; }
  .compare .k { background: var(--stone); border-bottom: 0; }
  .compare .them::before { content: attr(data-l) ": "; color: var(--muted); }
  .compare .us::before { content: attr(data-l) ": "; color: var(--burgundy); font-weight: 500; }
  .compare .h.first { display: none; }
  .mobile-cta {
    display: flex; position: fixed; left: 12px; right: 76px; bottom: 16px; z-index: 59; justify-content: center;
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 12px 28px -12px rgba(0,0,0,.5);
  }
  .mobile-cta.show { opacity: 1; transform: none; pointer-events: auto; }
  .to-top { right: 14px; bottom: 16px; }
  .inline-cta { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .hero .lead, .hero .actions, .hero .mark, .hero-media { animation: none; opacity: 1; transform: none; }
  .hero-card, .marquee .belt { animation: none; }
  [data-reveal], .process li { opacity: 1; transform: none; transition: none; }
  .process::after { transform: scaleX(1); transition: none; }
  .slide { opacity: 1; transform: none; }
}

/* dark variants */
.process--dark::before { background: rgba(255,255,255,.15); }
.band .process li::before { box-shadow: 0 0 0 8px var(--ink); }
.band .process h3 { color: #fff; }
.band .process p { color: #cfc9c8; }
.examples--dark .example { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .25s, transform .3s; }
.examples--dark .example:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.page-hero h1 .w { display: inline-block; opacity: 0; transform: translateY(20px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
@media (prefers-reduced-motion: reduce) { .page-hero h1 .w { animation: none; opacity: 1; transform: none; } }
.band .process::after { background: #c77a9c; }
