/* EPC-Consulting — Global Services */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0d2236;
  --ink-2: #163a57;
  --blue: #49a5d2;
  --blue-soft: #9fd0ea;
  --blue-deep: #17658f;
  --steel: #54646f;
  --concrete: #edf0f3;
  --line: #d3dae0;
  --white: #fff;
  --wrap: 1180px;
  --r: 14px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13,34,54,.06), 0 4px 14px rgba(13,34,54,.06);
  --shadow: 0 2px 4px rgba(13,34,54,.05), 0 18px 40px -12px rgba(13,34,54,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font: 400 1.0625rem/1.65 "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r);
}
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-name { display: block; font: 800 1.08rem/1 "Archivo", sans-serif; font-stretch: 115%; letter-spacing: 0.05em; }
.brand-sub { display: block; margin-top: 5px; font: 500 0.64rem/1 "Public Sans", sans-serif; letter-spacing: 0.26em; text-transform: uppercase; color: var(--steel); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--blue); }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); font-weight: 600; }
.nav .btn { border-bottom: 0; padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 600 0.98rem/1.2 "Public Sans", sans-serif;
  padding: 14px 26px; border-radius: var(--r);
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.btn-blue:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  background: var(--ink); color: #fff; overflow: hidden;
}
.hero-copy {
  padding: 96px 56px 96px max(24px, calc((100vw - var(--wrap)) / 2));
  align-self: center;
}
.hero-copy h1 { max-width: 17ch; }
.hero-copy p { margin: 26px 0 36px; max-width: 52ch; color: #c9d6e0; font-size: 1.12rem; }
.hero-photo { position: relative; min-height: 560px; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0, rgba(13,34,54,0) 38%); }
.hero-photo > img.hero-mark {
  position: absolute; z-index: 2; inset: auto auto 0 8%; height: 38%; width: auto; object-fit: contain;
  clip-path: inset(100% 0 0 0);
  animation: rise 1.5s .35s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes rise { to { clip-path: inset(0 0 0 0); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tint { background: var(--concrete); }
.section-ink { background: var(--ink); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr); gap: 72px; align-items: start; }
.split-head { position: sticky; top: 108px; }
.split-head p { margin-top: 18px; color: var(--steel); }
.lead { font-size: 1.2rem; color: var(--steel); max-width: 60ch; }

.rows { border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(200px, .8fr) 1.4fr; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.row p { color: var(--steel); }
.more { display: inline-block; margin-top: 28px; font-weight: 600; color: var(--blue-deep); text-underline-offset: 4px; }

/* Domain band */
.band {
  position: relative; color: #fff; padding: 92px 0; isolation: isolate;
  background: var(--ink) url("../img/refinery-panorama.jpg") center / cover;
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13,34,54,.86); }
.band h2 { max-width: 20ch; margin-bottom: 40px; }
.chips { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 36px; }
.chips li { border-left: 3px solid var(--blue); padding-left: 16px; font: 600 1.18rem/1.3 "Archivo", sans-serif; font-stretch: 108%; }

/* Why */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.why img, .media img { width: 100%; border-radius: var(--r); object-fit: cover; }
.why img { aspect-ratio: 4 / 3.2; }
.points { list-style: none; padding: 0; margin-top: 32px; }
.points li { padding: 20px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points strong { display: block; font: 700 1.15rem/1.3 "Archivo", sans-serif; font-stretch: 108%; margin-bottom: 4px; }
.points span { color: var(--steel); }

/* Zone */
.zone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.zone img { width: 100%; height: 440px; object-fit: cover; object-position: 50% 45%; border-radius: var(--r); }
.zone p { margin-top: 18px; color: #c9d6e0; max-width: 48ch; }

/* CTA */
.cta { background: var(--blue); color: var(--ink); padding: 80px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta p { font-size: 1.15rem; margin-top: 8px; }

/* ---------- Inner page header ---------- */
.page-head { position: relative; isolation: isolate; background: var(--ink); color: #fff; padding: 84px 0 72px; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; z-index: -1; right: 6%; bottom: -30px; width: 340px; height: 404px;
  background: url("../img/mark.png") center / contain no-repeat; opacity: .14;
}
.page-head p { margin-top: 20px; max-width: 58ch; color: #c9d6e0; font-size: 1.15rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; align-items: start; }
.about .media img { aspect-ratio: 3 / 4; }
.prose p + p { margin-top: 18px; }
.prose p { max-width: 62ch; }
.prose h2 { margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: 8px; }
.ticks li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 3px; background: var(--blue); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.values div { border-top: 3px solid var(--blue); padding-top: 18px; }
.values p { color: #c9d6e0; margin-top: 8px; }

/* ---------- Services page ---------- */
.service { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.service:first-child { border-top: 2px solid var(--ink); }
.service-n { font: 700 2.4rem/1 "Archivo", sans-serif; color: var(--blue); }
.service p { color: var(--steel); }
.service .gain { margin-top: 14px; color: var(--ink); }
.service .gain b { color: var(--blue-deep); font-weight: 700; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  font: 600 0.92rem/1 "Public Sans", sans-serif; cursor: pointer;
  padding: 11px 18px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--r);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  background: var(--ink) center / cover no-repeat; color: #fff;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(73,165,210,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(73,165,210,.13) 1px, transparent 1px);
  background-size: 28px 28px;
}
.tile::after {
  content: ""; position: absolute; z-index: -1; top: 18px; right: 18px; width: 84px; height: 100px;
  background: url("../img/mark.png") center / contain no-repeat; opacity: .28;
}
.tile.has-photo::before { background-image: linear-gradient(180deg, rgba(13,34,54,0) 35%, rgba(13,34,54,.92)); background-size: auto; }
.tile.has-photo::after { display: none; }
.tile small { color: var(--blue-soft); font-size: 0.86rem; font-weight: 500; }
.tile h3 { font-size: 1.22rem; margin-top: 2px; }
.tile[hidden] { display: none; }
.note { margin-top: 28px; color: var(--steel); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.info { margin-top: 28px; border-top: 2px solid var(--ink); }
.info div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.info dt { font-weight: 600; }
.info a { color: var(--blue-deep); text-underline-offset: 3px; }
.needs { list-style: none; padding: 0; margin-top: 28px; }
.needs li { padding: 6px 0 6px 28px; position: relative; }
.needs li::before { content: ""; position: absolute; left: 0; top: 18px; width: 14px; height: 3px; background: var(--blue); }
.form { background: var(--concrete); padding: 36px; border-radius: var(--r); }
.form h2 { font-size: 1.7rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9c3cc; border-radius: var(--r); padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn-row { margin-top: 8px; }
.form-hint { margin-top: 14px; font-size: 0.9rem; color: var(--steel); }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; margin-top: 36px; padding-top: 36px; border-top: 2px solid var(--ink); }
.trust img { height: 84px; width: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d6e0; padding: 72px 0 36px; font-size: 0.98rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 56px; }
.foot .brand-name { color: #fff; }
.foot .brand-sub { color: #8fa3b3; }
.foot p { margin-top: 16px; max-width: 38ch; }
.foot h2 { font-size: 1rem; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; }
.foot li { padding: 4px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: 0.9rem; color: #8fa3b3; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 24px 48px; }
  .hero-photo { min-height: 380px; }
  .hero-photo::after { background: linear-gradient(180deg, var(--ink) 0, rgba(13,34,54,0) 30%); }
  .split, .why, .zone, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split-head { position: static; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 60px 1fr; }
  .service > :last-child { grid-column: 2; }
  .values { grid-template-columns: 1fr; gap: 28px; }
  .foot { grid-template-columns: 1fr; gap: 36px; }
  .about .media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .chips, .ticks, .field-2 { grid-template-columns: 1fr; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .form { padding: 24px; }
  .trust { gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark { animation: none; clip-path: none; }
}

/* ---------- Refinements ---------- */
.ic { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--blue-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.row-t { display: flex; align-items: center; gap: 14px; }

.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip .wrap > div { padding: 30px 32px; border-left: 1px solid var(--line); }
.strip .wrap > div:first-child { padding-left: 0; border-left: 0; }
.strip strong { display: block; font: 700 1.2rem/1.25 "Archivo", sans-serif; font-stretch: 108%; }
.strip span { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--steel); }

.why img { box-shadow: 16px 16px 0 var(--concrete); }
.zone img { box-shadow: 16px 16px 0 var(--ink-2); }
.media img { box-shadow: 16px 16px 0 var(--concrete); }

.service-ic { width: 64px; height: 64px; display: grid; place-items: center; background: var(--concrete); border-radius: var(--r); }
.service-ic .ic { width: 32px; height: 32px; }
.tile .ic { position: absolute; top: 22px; left: 22px; width: 38px; height: 38px; stroke: var(--blue-soft); }
.tile.has-photo .ic { display: none; }

.section-tint { background: linear-gradient(180deg, var(--concrete), #e6ebf0); }
.btn-blue:hover { background: var(--blue-soft); border-color: var(--blue-soft); }

.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 50%; background: #1fa855;
  box-shadow: 0 6px 18px rgba(13,34,54,.28); transition: transform .15s;
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 30px; height: 30px; }

@media (max-width: 980px) {
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .wrap > div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .strip .wrap > div:first-child { border-top: 0; }
  .why img, .zone img, .media img { box-shadow: 10px 10px 0 var(--concrete); }
  .zone img { box-shadow: 10px 10px 0 var(--ink-2); }
}

/* ---------- Alignment fixes ---------- */
.info div { grid-template-columns: 200px 1fr; }
.section-tint .why img, .section-tint .media img { box-shadow: 16px 16px 0 #fff; }
.trust img { mix-blend-mode: multiply; }

@media (max-width: 980px) {
  .service { grid-template-columns: 64px minmax(0, 1fr); gap: 16px 20px; align-items: center; padding: 32px 0; }
  .service > :last-child { grid-column: 1 / -1; }
  .section-tint .why img, .section-tint .media img { box-shadow: 10px 10px 0 #fff; }
}
@media (max-width: 620px) {
  .info div { grid-template-columns: 1fr; }
  .wa { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa svg { width: 26px; height: 26px; }
}


/* =====================================================================
   MODERN LAYER (v2) — same palette & fonts, refreshed look
   ===================================================================== */
body { background: #fff; }
h1, h2 { letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.7rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
::selection { background: var(--blue); color: var(--ink); }

/* Header: frosted glass */
.site-header {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(211,218,224,.7);
  transition: box-shadow .25s var(--ease), background .25s;
}
.site-header.scrolled { box-shadow: 0 8px 28px -14px rgba(13,34,54,.28); background: rgba(255,255,255,.94); }
.nav a { border-bottom: 0; position: relative; color: var(--ink-2); transition: color .2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom: 0; }
.nav .btn { color: #fff; }

/* Buttons: pill, lift on hover */
.btn {
  border-radius: 999px; padding: 14px 28px; border-width: 1.5px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(13,34,54,.5); }
.btn-blue:hover { box-shadow: 0 10px 28px -10px rgba(73,165,210,.8); }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Hero: depth + rounded photo card */
.hero {
  position: relative; isolation: isolate; align-items: center;
  background:
    radial-gradient(900px 500px at 8% 0%, rgba(73,165,210,.22), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(23,101,143,.35), transparent 60%),
    var(--ink);
  padding-bottom: 0;
}
.hero-copy { padding-block: 110px 120px; }
.hero-copy h1 { max-width: 16ch; }
.hero-copy h1::first-line { color: #fff; }
.hero-copy p { color: #c9d6e0; }
.hero-photo {
  min-height: 540px; margin: 56px max(24px, calc((100vw - var(--wrap)) / 2)) 56px 0;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
}
.hero-photo::after { background: linear-gradient(180deg, rgba(13,34,54,0) 40%, rgba(13,34,54,.55)); }
.hero-photo > img:first-child { transform: scale(1.06); animation: settle 1.8s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }

/* Stats strip: floating card overlapping the hero */
.strip { background: transparent; border: 0; position: relative; z-index: 5; margin-top: -56px; }
.strip .wrap {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.strip .wrap > div { padding: 30px 36px; }
.strip .wrap > div:first-child { padding-left: 36px; }
.strip strong { color: var(--ink); }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: var(--concrete); }
.split-head h2 { position: relative; padding-top: 22px; }
.split-head h2::before, .why h2::before, .zone h2::before {
  content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--blue);
}
.why h2, .zone h2 { position: relative; padding-top: 22px; }

/* Service rows → cards */
.rows { border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.row {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.row:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.row-t { flex-direction: column; align-items: flex-start; gap: 16px; }
.row h3 { font-size: 1.2rem; }
.ic { stroke-width: 1.7; }
.row-t .ic {
  width: 52px; height: 52px; padding: 13px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(73,165,210,.2), rgba(73,165,210,.06)); stroke: var(--blue-deep);
}
.more { padding: 12px 22px; border: 1.5px solid var(--blue-deep); border-radius: 999px; text-decoration: none; transition: all .2s var(--ease); }
.more::after { content: " →"; transition: margin .2s var(--ease); }
.more:hover { background: var(--blue-deep); color: #fff; }
.more:hover::after { margin-left: 4px; }

/* Domain band */
.band { padding: 112px 0; }
.band::before { background: linear-gradient(180deg, rgba(13,34,54,.9), rgba(13,34,54,.8)); }
.chips li {
  border: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); padding: 24px 22px; border-radius: var(--r);
  background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  position: relative; transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.chips li::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--blue); margin-bottom: 14px; }
.chips li:hover { transform: translateY(-4px); background: rgba(73,165,210,.16); border-color: rgba(73,165,210,.6); }

/* Images */
.why img, .media img, .zone img { border-radius: var(--r-lg); box-shadow: var(--shadow) !important; }
.points li { border-top: 1px solid var(--line); transition: padding .25s var(--ease); }
.points li:hover { padding-left: 10px; }
.points strong { color: var(--ink); }
.section-ink { background: radial-gradient(800px 400px at 90% 0%, rgba(73,165,210,.18), transparent 60%), var(--ink); }
.zone img { box-shadow: 0 30px 60px -24px rgba(0,0,0,.6) !important; }

/* CTA */
.cta {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-soft) 100%); padding: 88px 0; position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.18); }
.cta .wrap { position: relative; z-index: 1; }

/* Inner page header */
.page-head { padding: 96px 0 84px; background: radial-gradient(700px 360px at 85% 20%, rgba(73,165,210,.25), transparent 65%), var(--ink); }
.page-head::after { opacity: .12; }
.page-head h1 { position: relative; padding-top: 24px; }
.page-head h1::before { content: ""; position: absolute; top: 0; left: 0; width: 52px; height: 4px; border-radius: 4px; background: var(--blue); }

/* About */
.ticks li { border-bottom: 1px solid var(--line); }
.ticks li::before { height: 8px; width: 8px; border-radius: 50%; top: 22px; }
.values div {
  border: 1px solid rgba(255,255,255,.14); border-top: 3px solid var(--blue); border-radius: var(--r); padding: 26px;
  background: rgba(255,255,255,.05); transition: transform .3s var(--ease), background .3s;
}
.values div:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }

/* Services page → cards */
.service {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 36px; margin-bottom: 18px; align-items: center;
  background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service:first-child { border-top: 1px solid var(--line); }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service-ic { border-radius: 18px; background: linear-gradient(135deg, rgba(73,165,210,.22), rgba(73,165,210,.06)); }
.service .gain { padding: 12px 16px; border-radius: 12px; background: var(--concrete); }

/* Projects */
.filters button { border-radius: 999px; padding: 11px 20px; transition: all .2s var(--ease); }
.filters button:hover { transform: translateY(-1px); border-color: var(--blue-deep); }
.filters button[aria-pressed="true"] { box-shadow: 0 8px 20px -8px rgba(13,34,54,.6); }
.tiles { gap: 22px; }
.tile {
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  background-color: var(--ink-2); background-image: linear-gradient(160deg, var(--ink-2), var(--ink));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tile.has-photo { background-size: 100%; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-size .6s var(--ease); }
.tile.has-photo:hover { background-size: 108%; }
.tile .ic { padding: 9px; box-sizing: content-box; width: 22px; height: 22px; border-radius: 12px; background: rgba(255,255,255,.1); stroke: var(--blue-soft); }
.tile small { letter-spacing: .04em; text-transform: uppercase; font-size: .75rem; }

/* Contact */
.info { border-top: 0; }
.info div { border-bottom: 1px solid var(--line); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 40px; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; background: var(--concrete);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(73,165,210,.22);
}
.trust { border-top: 1px solid var(--line); }

/* Footer */
.site-footer { background: radial-gradient(700px 300px at 0% 0%, rgba(73,165,210,.12), transparent 60%), var(--ink); border-top: 3px solid var(--blue); }
.foot a { transition: color .2s; }

/* WhatsApp button: soft pulse */
.wa { box-shadow: 0 10px 26px -6px rgba(31,168,85,.6); }
.wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fa855; animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }

/* Scroll reveal (only when JS is on) */

/* Responsive tuning */
@media (max-width: 980px) {
  .hero-copy { padding: 64px 24px 24px; }
  .hero-photo { margin: 24px; min-height: 320px; }
  .strip { margin-top: -24px; }
  .strip .wrap > div, .strip .wrap > div:first-child { padding: 20px 24px; }
  .section { padding: 80px 0; }
  .rows { grid-template-columns: 1fr; }
  .service { padding: 26px 22px; }
}
@media (max-width: 860px) {
  .nav { border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 24px 40px -20px rgba(13,34,54,.35); background: rgba(255,255,255,.98); }
  .nav a:not(.btn)::after { display: none; }
}
@media (max-width: 620px) {
  .form { padding: 26px; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo > img:first-child, .wa::after { animation: none; transform: none; }
  .btn, .row, .service, .tile, .chips li, .values div { transition: none; }
}

/* =====================================================================
   V3 — agency-style refresh (same palette) + compact mobile
   ===================================================================== */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font: 600 .76rem/1 "Public Sans", sans-serif; letter-spacing: .07em; text-transform: uppercase; background: rgba(73,165,210,.14); color: var(--blue-soft); border: 1px solid rgba(159,208,234,.3); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.pill-light { background: rgba(73,165,210,.12); color: var(--blue-deep); border-color: rgba(23,101,143,.22); }
.accent { color: var(--blue); }
.ar { width: 18px; height: 18px; margin-left: 8px; vertical-align: -3px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .ar, .svc:hover .ar { transform: translateX(4px); }
.link-arrow { font-weight: 600; color: var(--blue-deep); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 44px; }
.sec-head h2 { margin-top: 16px; max-width: 20ch; }
.sec-head p { color: var(--steel); max-width: 40ch; margin-bottom: 10px; }
.section-ink .sec-head p { color: #c9d6e0; }

/* Hero */
.hx { position: relative; isolation: isolate; color: #fff; padding: 76px 0 130px; overflow: hidden;
  background: radial-gradient(820px 480px at 88% 8%, rgba(73,165,210,.3), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(23,101,143,.35), transparent 60%), var(--ink); }
.hx .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hx h1 { font-size: clamp(2.1rem, 4.3vw, 3.5rem); margin: 22px 0 20px; }
.hx p { color: #c9d6e0; font-size: 1.1rem; max-width: 50ch; }
.hx .btn-row { margin-top: 32px; }
.hx-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; color: #c9d6e0; font-size: .95rem; }
.hx-checks li { padding-left: 26px; position: relative; }
.hx-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2236' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.hx-media { position: relative; }
.hx-media > img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.1); }
.hx-badge { position: absolute; top: -18px; right: -14px; background: var(--blue); color: var(--ink); padding: 14px 20px; border-radius: 20px; box-shadow: 0 18px 36px -14px rgba(73,165,210,.8); text-align: center; animation: float 5s ease-in-out infinite; }
.hx-badge b { display: block; font: 800 2rem/1 "Archivo", sans-serif; font-stretch: 112%; }
.hx-badge span { font-size: .8rem; font-weight: 600; }
.hx-card { position: absolute; left: -28px; bottom: 30px; display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 18px; background: rgba(13,34,54,.72); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: float 6s 1s ease-in-out infinite; }
.hx-card .ic { stroke: var(--blue-soft); width: 30px; height: 30px; }
.hx-card small { display: block; color: #9fb4c4; font-size: .78rem; }
.hx-card strong { font: 700 1rem/1.2 "Archivo", sans-serif; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Floating stats */
.fstats { position: relative; z-index: 5; margin-top: -66px; }
.fs-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.fs-grid > div { padding: 28px 30px; border-left: 1px solid var(--line); }
.fs-grid > div:first-child { border-left: 0; }
.fs-grid strong { display: block; font: 800 1.9rem/1.1 "Archivo", sans-serif; font-stretch: 112%; color: var(--ink); }
.fs-grid strong::after { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--blue); margin: 10px 0 8px; }
.fs-grid span { font-size: .92rem; color: var(--steel); line-height: 1.4; display: block; }
.fs-grid > div:last-child strong { font-size: 1.35rem; padding-top: 6px; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { display: flex; flex-direction: column; gap: 10px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s; }
.svc > .ic { width: 54px; height: 54px; padding: 13px; margin-bottom: 8px; border-radius: 16px; background: linear-gradient(135deg, rgba(73,165,210,.22), rgba(73,165,210,.06)); transition: background .3s, stroke .3s; }
.svc p { color: var(--steel); flex: 1; transition: color .3s; }
.svc .go { margin-top: 8px; font-weight: 600; color: var(--blue-deep); font-size: .95rem; transition: color .3s; }
@media (hover: hover) {
  .svc:hover { transform: translateY(-5px); background: var(--ink); border-color: var(--ink); box-shadow: var(--shadow); }
  .svc:hover h3 { color: #fff; } .svc:hover p { color: #c9d6e0; } .svc:hover .go { color: var(--blue); }
  .svc:hover > .ic { background: rgba(73,165,210,.2); stroke: var(--blue-soft); }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.step { padding: 28px; border-radius: 24px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); transition: transform .3s var(--ease), background .3s; }
.step:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.step b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px; background: var(--blue); color: var(--ink); font: 800 1.05rem/1 "Archivo", sans-serif; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: #c9d6e0; font-size: .96rem; line-height: 1.5; }

/* Why */
.why-img { position: relative; }
.chip-float { position: absolute; right: -14px; bottom: 28px; background: var(--blue); color: var(--ink); font-weight: 700; padding: 14px 20px; border-radius: 16px; box-shadow: 0 18px 36px -14px rgba(73,165,210,.8); animation: float 5.5s ease-in-out infinite; }
.why .points { margin-bottom: 30px; }
.why .points li { padding-left: 36px; position: relative; }
.why .points li::before { content: ""; position: absolute; left: 0; top: 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2236' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.why h2 { padding-top: 0; margin: 16px 0 6px; } .why h2::before { display: none; }

/* Project bento (photo placeholders until real pictures are dropped in assets/img/projets/) */
.tiles-home { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: 230px; gap: 20px; }
.tiles-home .tile { aspect-ratio: auto; }
.tiles-home .tile:first-child { grid-row: span 2; }
.tiles-home .tile:first-child h3 { font-size: 1.5rem; }

/* Partners + CTA card */
.partners-sec { padding: 8px 0 72px; }
.eyebrow-c { text-align: center; font: 600 .78rem/1 "Public Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 26px; }
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 64px; }
.partners img { height: 64px; width: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: .7; transition: .3s; }
.partners img:hover { filter: none; opacity: 1; }
.cta2 { padding: 0 0 96px; }
.cta2 .box { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding: 56px 60px; border-radius: 32px; color: #fff;
  background: radial-gradient(500px 300px at 100% 0%, rgba(73,165,210,.4), transparent 65%), linear-gradient(120deg, var(--ink), var(--ink-2)); }
.cta2 .box::after { content: ""; position: absolute; z-index: -1; right: 24px; bottom: -40px; width: 230px; height: 276px; background: url("../img/mark.png") center / contain no-repeat; opacity: .1; }
.cta2 p { color: #c9d6e0; margin-top: 8px; font-size: 1.1rem; }

/* Mobile action bar */
.mbar { display: none; }

@media (max-width: 980px) {
  .hx { padding: 48px 0 96px; }
  .hx .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hx-media { max-width: 560px; }
  .hx-media > img { aspect-ratio: 4 / 3; }
  .fs-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-grid > div:nth-child(3) { border-left: 0; }
  .fs-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tiles-home { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .tiles-home .tile:first-child { grid-row: auto; grid-column: 1 / -1; }
}

/* ---------- Compact mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; line-height: 1.55; padding-bottom: 76px; }
  .wrap { width: min(var(--wrap), 100% - 40px); }
  h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.1rem; }
  .section { padding: 48px 0; }
  .site-header .wrap { height: 62px; } .nav { top: 62px; } .brand img { height: 36px; width: auto; } .brand-name { font-size: .95rem; }
  .btn { padding: 13px 22px; font-size: .95rem; }
  .btn-row { gap: 10px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
  .sec-head h2 { max-width: none; margin-top: 12px; }
  .sec-head p { margin-bottom: 6px; font-size: .98rem; }

  .hx { padding: 30px 0 80px; }
  .hx .wrap { gap: 28px; }
  .hx h1 { margin: 16px 0 14px; }
  .hx p { font-size: 1rem; }
  .hx .btn-row { margin-top: 22px; } .hx .btn-row .btn { flex: 1 1 auto; text-align: center; }
  .hx-checks { margin-top: 18px; gap: 6px 18px; font-size: .88rem; }
  .hx-media > img { aspect-ratio: 16 / 11; border-radius: 22px; }
  .hx-badge { top: 12px; right: 12px; padding: 9px 13px; border-radius: 14px; } .hx-badge b { font-size: 1.3rem; } .hx-badge span { font-size: .7rem; }
  .hx-card { left: 12px; bottom: 12px; padding: 10px 14px; border-radius: 14px; } .hx-card .ic { width: 22px; height: 22px; } .hx-card strong { font-size: .88rem; }

  .fstats { margin-top: -48px; }
  .fs-grid { border-radius: 20px; }
  .fs-grid > div, .fs-grid > div:first-child { padding: 18px 18px; }
  .fs-grid strong { font-size: 1.45rem; } .fs-grid > div:last-child strong { font-size: 1.05rem; padding-top: 4px; }
  .fs-grid strong::after { margin: 7px 0 6px; width: 22px; height: 2px; }
  .fs-grid span { font-size: .8rem; }

  /* horizontal swipe instead of long vertical stacks */
  .scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -20px; padding: 4px 20px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { flex: 0 0 78%; scroll-snap-align: start; }
  .svc { padding: 22px; border-radius: 20px; }
  .svc > .ic { width: 46px; height: 46px; padding: 11px; }
  .tiles-home .tile, .tiles-home .tile:first-child { aspect-ratio: 4 / 5; grid-row: auto; grid-column: auto; flex-basis: 72%; }
  .tiles-home .tile:first-child h3 { font-size: 1.22rem; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .step { padding: 18px; border-radius: 18px; } .step b { width: 36px; height: 36px; margin-bottom: 12px; font-size: .95rem; }
  .step h3 { font-size: 1rem; margin-bottom: 4px; } .step p { font-size: .85rem; }

  .band { padding: 48px 0; } .band h2 { margin-bottom: 22px; }
  .chips { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .chips li { padding: 16px 14px; font-size: .95rem; } .chips li::before { margin-bottom: 10px; width: 22px; }

  .why { gap: 28px; } .why-img img { aspect-ratio: 16 / 11; box-shadow: 0 14px 30px -14px rgba(13,34,54,.35) !important; }
  .chip-float { right: 10px; bottom: 10px; padding: 9px 14px; font-size: .85rem; border-radius: 12px; }
  .points { margin-top: 16px; } .points li { padding: 14px 0 14px 34px; } .why .points li::before { top: 17px; }
  .why .points { margin-bottom: 22px; }

  .partners-sec { padding: 0 0 48px; } .partners { gap: 18px 36px; } .partners img { height: 48px; } .eyebrow-c { margin-bottom: 16px; }
  .cta2 { padding-bottom: 48px; } .cta2 .box { padding: 30px 24px; border-radius: 24px; gap: 18px; } .cta2 .btn-row .btn { flex: 1 1 auto; text-align: center; } .cta2 p { font-size: 1rem; }

  /* shared inner-page compaction */
  .page-head { padding: 52px 0 40px; } .page-head p { font-size: 1rem; margin-top: 14px; }
  .service { grid-template-columns: 48px 1fr; gap: 10px 14px; padding: 20px 18px; margin-bottom: 12px; border-radius: 20px; }
  .service-ic { width: 48px; height: 48px; border-radius: 14px; } .service-ic .ic { width: 26px; height: 26px; }
  .service h2 { font-size: 1.1rem !important; } .service p { font-size: .95rem; } .service .gain { font-size: .88rem; padding: 10px 12px; margin-top: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 8px; scrollbar-width: none; margin-bottom: 18px; }
  .filters::-webkit-scrollbar { display: none; } .filters button { flex: none; white-space: nowrap; padding: 10px 16px; }
  .tiles:not(.tiles-home) { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tiles:not(.tiles-home) .tile { aspect-ratio: 1; padding: 14px; border-radius: 18px; } .tiles:not(.tiles-home) .tile h3 { font-size: .95rem; }
  .tile .ic { top: 14px; left: 14px; width: 20px; height: 20px; } .tile::after { width: 52px; height: 62px; top: 12px; right: 12px; }
  .values { gap: 12px; margin-top: 24px; } .values div { padding: 18px; }
  .about { gap: 28px; } .contact { gap: 28px; } .form { padding: 22px; } .field { margin-bottom: 14px; }
  .site-footer { padding: 44px 0 20px; } .foot { grid-template-columns: 1fr 1fr; gap: 26px 20px; } .foot > div:first-child { grid-column: 1 / -1; } .legal { margin-top: 28px; padding-top: 18px; }

  .mbar { display: grid; grid-template-columns: 1fr 1.15fr 1.5fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(13,34,54,.35); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 6px; border-radius: 999px; font: 600 .86rem/1 "Public Sans", sans-serif; text-decoration: none; border: 1.5px solid var(--line); color: var(--ink); background: #fff; white-space: nowrap; }
  .mbar a.main { background: var(--blue); border-color: var(--blue); }
  .mbar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .wa { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hx-badge, .hx-card, .chip-float { animation: none; } }

/* mobile polish */
@media (max-width: 760px) {
  .scroller { scroll-padding-inline: 20px; }
  .hx h1 { font-size: 1.72rem; line-height: 1.1; }
  .hx p { font-size: .95rem; line-height: 1.5; }
  .hx .btn-row { flex-wrap: nowrap; }
  .hx .btn-row .btn { padding: 13px 14px; font-size: .88rem; white-space: nowrap; }
  .hx .btn-row .btn-blue { flex: 1.35 1 0; } .hx .btn-row .btn-ghost { flex: 1 1 0; }
  .hx .btn .ar { display: none; }
  .hx-media > img { aspect-ratio: 16 / 10; }
  .fs-grid span { font-size: .78rem; }
  .fs-grid > div:last-child strong { font-size: 1.2rem; }
}
.partners-sec { padding-top: 56px; }
@media (max-width: 760px) { .partners-sec { padding-top: 36px; } }

/* ---------- Mobile: more breathing room (v3.1) ---------- */
@media (max-width: 760px) {
  body { line-height: 1.7; }
  .wrap { width: min(var(--wrap), 100% - 44px); }
  .section { padding: 60px 0; }
  h1, h2, h3 { line-height: 1.2; }
  h2 { font-size: 1.7rem; margin-bottom: 4px; }
  p { margin-bottom: 0; }

  .hx { padding: 40px 0 88px; }
  .hx .wrap { gap: 36px; }
  .hx h1 { font-size: 1.85rem; line-height: 1.18; margin: 24px 0 22px; letter-spacing: -.02em; }
  .hx p { font-size: 1rem; line-height: 1.7; }
  .hx .btn-row { margin-top: 30px; gap: 12px; }
  .hx .btn-row .btn { padding: 16px 14px; }
  .pill { padding: 9px 15px; }
  .hx-media > img { aspect-ratio: 4 / 3.2; }

  .fstats { margin-top: -54px; }
  .fs-grid > div, .fs-grid > div:first-child { padding: 22px 20px; }
  .fs-grid strong::after { margin: 10px 0 10px; }
  .fs-grid span { font-size: .85rem; line-height: 1.5; }

  .sec-head { gap: 14px; margin-bottom: 28px; }
  .sec-head h2 { margin-top: 16px; }
  .sec-head p { font-size: 1rem; line-height: 1.65; margin-bottom: 10px; }

  .scroller { gap: 16px; padding-bottom: 20px; }
  .scroller > * { flex-basis: 82%; }
  .svc { padding: 26px 24px; gap: 12px; }
  .svc > .ic { margin-bottom: 10px; }
  .svc h3 { font-size: 1.15rem; }
  .svc p { line-height: 1.65; }
  .svc .go { margin-top: 14px; }

  .steps { gap: 14px; }
  .step { padding: 22px 18px; }
  .step b { margin-bottom: 16px; }
  .step h3 { font-size: 1.02rem; margin-bottom: 8px; }
  .step p { font-size: .9rem; line-height: 1.6; }

  .band { padding: 56px 0; } .band h2 { margin-bottom: 28px; }
  .chips { gap: 12px; }
  .chips li { padding: 20px 16px; }

  .why { gap: 32px; }
  .why h2 { margin: 18px 0 10px; }
  .points li { padding: 18px 0 18px 38px; line-height: 1.6; }
  .why .points li::before { top: 21px; }
  .points strong { margin-bottom: 4px; }
  .why .points { margin-bottom: 28px; }

  .partners-sec { padding-bottom: 56px; }
  .cta2 .box { padding: 36px 26px; gap: 22px; }
  .cta2 h2 { margin-bottom: 8px; } .cta2 p { line-height: 1.6; }

  .page-head { padding: 60px 0 48px; }
  .page-head h1 { padding-top: 26px; }
  .page-head p { margin-top: 18px; line-height: 1.7; }
  .service { padding: 24px 20px; margin-bottom: 16px; gap: 12px 16px; }
  .service h2 { line-height: 1.25; }
  .service p { line-height: 1.65; }
  .service .gain { margin-top: 14px; padding: 12px 14px; line-height: 1.55; }
  .tiles:not(.tiles-home) { gap: 14px; }
  .values { gap: 14px; } .values div { padding: 22px; }
  .about, .contact { gap: 36px; }
  .form { padding: 26px 22px; } .field { margin-bottom: 18px; }
  .site-footer { padding: 52px 0 24px; } .foot { gap: 32px 20px; }
  .foot a, .foot li { line-height: 1.9; }
}

/* ---------- Contact form refinement ---------- */
.form { padding: 40px; }
.form-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 26px; }
.form-top h2 { margin: 0; }
.form-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font: 600 .82rem/1 "Public Sans", sans-serif; color: var(--blue-deep); background: rgba(73,165,210,.14); border: 1px solid rgba(23,101,143,.22); }
.form-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(73,165,210,.25); }
.req { color: var(--blue-deep); }
.field label { font-size: .92rem; margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font-size: 1rem; padding: 15px 16px; min-height: 52px; }
.field input::placeholder, .field textarea::placeholder { color: #8a9bab; }
.field textarea { min-height: 132px; line-height: 1.55; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 46px; cursor: pointer;
  background: var(--concrete) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317658f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; }
.field select:focus { background-color: #fff; }
.form .btn-row { flex-direction: column; gap: 12px; margin-top: 6px; }
.form .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; font-size: 1rem; }
.form .btn .bi { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.form .btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.form .btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.form-hint { text-align: center; margin-top: 16px; font-size: .88rem; line-height: 1.55; }
@media (max-width: 980px) { .contact > .form { order: -1; } }
@media (max-width: 760px) {
  .form { padding: 26px 20px; border-radius: 22px; }
  .form-top { margin-bottom: 22px; }
  .form-top h2 { font-size: 1.45rem; }
  .field-2 { gap: 0; }
  .field { margin-bottom: 18px; }
  .field textarea { min-height: 120px; }
}

/* ---------- Services page: vertical photo cards ---------- */
.eyebrow { display: block; font: 700 .8rem/1 "Public Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 14px; }
.svc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service.service-card { display: flex; flex-direction: column; padding: 0; margin: 0; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.service-media { position: relative; margin: 0; aspect-ratio: 1.05 / 1; overflow: hidden; background: var(--ink); }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.07); }
.service-num { position: absolute; z-index: 2; left: 16px; bottom: 16px; padding: 8px 13px; border-radius: 999px; font: 700 .78rem/1 "Archivo", sans-serif; letter-spacing: .1em; color: #fff; background: rgba(13,34,54,.6); border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.service-media .service-ic { position: absolute; z-index: 2; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 8px 20px -8px rgba(13,34,54,.5); }
.service-media .service-ic .ic { width: 22px; height: 22px; stroke: var(--blue-deep); }
.service-body { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 28px; flex: 1; }
.service.service-card h2 { font-size: 1.22rem !important; line-height: 1.25; margin: 0; }
.service-body p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--steel); }
.service.service-card .gain { margin-top: 2px; padding: 12px 14px; border-radius: 14px; background: var(--concrete); font-size: .9rem; color: var(--ink-2); }
.service-body .more { margin-top: auto; padding: 8px 0 0; border: 0; border-radius: 0; background: none; color: var(--blue-deep); font-weight: 600; display: inline-flex; align-items: center; align-self: flex-start; }
.service-body .more::after { content: none; }
.service-body .more:hover { background: none; color: var(--ink); }
.service.service-card.cta-card { position: relative; justify-content: center; gap: 14px; padding: 34px 28px; border-color: transparent; color: #fff; background: radial-gradient(400px 260px at 100% 0%, rgba(73,165,210,.4), transparent 65%), linear-gradient(160deg, var(--ink-2), var(--ink)); }
.service.service-card.cta-card::after { content: ""; position: absolute; right: 18px; bottom: 14px; width: 120px; height: 144px; background: url("../img/mark.png") center / contain no-repeat; opacity: .1; }
.cta-card h2 { color: #fff; font-size: 1.45rem !important; }
.cta-card p { color: #c9d6e0; }
.cta-card .btn { align-self: flex-start; margin-top: 6px; position: relative; z-index: 1; }

/* ---------- Home: photo mosaic ---------- */
.sec-head .btn { align-self: flex-end; flex: none; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 290px; gap: 20px; }
.bt { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: 28px; color: #fff; text-decoration: none; background: var(--ink); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.bt-w { grid-column: span 2; }
.bt img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.bt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,34,54,.05) 30%, rgba(13,34,54,.92)); }
.bt:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bt:hover img { transform: scale(1.07); }
.bt-go { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 8px 20px -8px rgba(13,34,54,.5); transition: background .3s, color .3s, transform .3s var(--ease); }
.bt:hover .bt-go { background: var(--blue); transform: rotate(-45deg); }
.bt-info { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bt-tag { padding: 7px 13px; border-radius: 999px; font: 600 .78rem/1 "Public Sans", sans-serif; letter-spacing: .03em; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bt h3 { color: #fff; font-size: 1.3rem; line-height: 1.2; margin: 0; }
.bt-w h3 { font-size: 1.65rem; }
.bt-cta { background: radial-gradient(420px 260px at 100% 0%, rgba(73,165,210,.45), transparent 65%), linear-gradient(135deg, var(--ink-2), var(--ink)); }
.bt-cta::after { background: none; }
.bt-cta .bt-go { background: var(--blue); }

@media (max-width: 1100px) {
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 250px; }
}
@media (max-width: 760px) {
  .svc-cards { grid-template-columns: 1fr; gap: 18px; }
  .service.service-card { border-radius: 22px; }
  .service-media { aspect-ratio: 16 / 10; }
  .service-body { padding: 22px 22px 24px; gap: 12px; }
  .service.service-card h2 { font-size: 1.15rem !important; }
  .service.service-card.cta-card { padding: 28px 22px; }
  .sec-head .btn { align-self: flex-start; }
  .bento { display: flex; grid-auto-rows: unset; }
  .bt, .bt-w { flex: 0 0 76%; aspect-ratio: 4 / 5; grid-column: auto; border-radius: 22px; }
  .bt-info { left: 18px; right: 18px; bottom: 18px; gap: 10px; }
  .bt h3, .bt-w h3 { font-size: 1.2rem; }
  .bt-go { top: 14px; right: 14px; width: 42px; height: 42px; }
}
.cta-card .btn { white-space: nowrap; padding: 14px 22px; }
.service.service-card .service-media { flex: none; width: 100%; }
.service.service-card { gap: 0; }

/* ---------- Mobile v4: 2-up service cards + swipeable home carousel ---------- */
@media (max-width: 760px) {
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .service.service-card { border-radius: 20px; }
  .service-media { aspect-ratio: 4 / 3.3; }
  .service-num { left: 9px; bottom: 9px; padding: 5px 9px; font-size: .66rem; }
  .service-media .service-ic { top: 8px; right: 8px; width: 34px; height: 34px; }
  .service-media .service-ic .ic { width: 17px; height: 17px; }
  .service-body { padding: 14px 14px 16px; gap: 8px; }
  .service.service-card h2 { font-size: 1rem !important; line-height: 1.25; }
  .service-body p { font-size: .84rem; line-height: 1.5; }
  .service.service-card .gain { display: none; }
  .service-body .more { font-size: .84rem; line-height: 1.3; padding-top: 4px; width: 100%; justify-content: space-between; gap: 6px; }
  .service-body .more .ar { width: 16px; height: 16px; margin-left: 0; flex: none; }
  .service.service-card.cta-card { padding: 18px 16px; gap: 10px; }
  .cta-card h2 { font-size: 1.1rem !important; }
  .cta-card .btn { width: 100%; padding: 12px 14px; font-size: .82rem; white-space: normal; justify-content: center; text-align: center; }
  .cta-card .btn .ar { display: none; }

  .bento { gap: 14px; }
  .bento .bt, .bento .bt-w { flex: 0 0 72%; aspect-ratio: 1.22 / 1; }
  .bt h3, .bt-w h3 { font-size: 1.08rem; }
  .bt-info { left: 16px; right: 16px; bottom: 16px; gap: 8px; }
  .bt-tag { font-size: .72rem; padding: 6px 11px; }
  .bt-go { top: 12px; right: 12px; width: 38px; height: 38px; }
}

/* =====================================================================
   V5 — hero polish, light timeline, domain cards, FAQ
   ===================================================================== */
/* Hero: calmer headline + blueprint texture */
.hx h1 { font-size: clamp(2rem, 3.6vw, 3.05rem); line-height: 1.1; max-width: 22ch; }
.hx::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(159,208,234,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(159,208,234,.075) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 35%, #000 0, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 25% 35%, #000 0, transparent 75%); }

/* Steps: light cards + connected timeline */
.steps { gap: 20px; }
.steps .step { position: relative; padding: 28px 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.steps .step:hover { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow); }
.steps .step:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -20px; width: 20px; height: 2px; background: var(--blue); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.steps .step b { margin: 0; width: 48px; height: 48px; font-size: 1.1rem; box-shadow: 0 10px 22px -10px rgba(73,165,210,.9); }
.step-top .ic { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, rgba(73,165,210,.22), rgba(73,165,210,.06)); stroke: var(--blue-deep); }
.steps .step h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 8px; }
.steps .step p { color: var(--steel); font-size: .97rem; line-height: 1.6; }
.steps-cta { margin-top: 40px; text-align: center; }
.section-tint .sec-head p { color: var(--steel); }

/* Domains: icon cards on the photo band */
.band .sec-head { margin-bottom: 36px; } .band .sec-head h2 { color: #fff; }
.band .sec-head p { color: #c9d6e0; }
.domains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.domains li { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
.domains li::before { display: none; }
.domains li:hover { transform: none; background: none; border-color: transparent; }
.dom { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 22px; color: #fff; text-decoration: none; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .3s var(--ease), background .3s, border-color .3s; }
.dom-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(73,165,210,.18); border: 1px solid rgba(159,208,234,.3); }
.dom-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--blue-soft); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dom strong { flex: 1; font: 700 1.1rem/1.25 "Archivo", sans-serif; font-stretch: 105%; }
.d-go { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); transition: background .3s, color .3s, border-color .3s; }
.dom:hover { transform: translateY(-4px); background: rgba(73,165,210,.18); border-color: rgba(73,165,210,.7); }
.dom:hover .d-go { background: var(--blue); color: var(--ink); border-color: var(--blue); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-side h2 { margin: 16px 0 14px; }
.faq-side p { color: var(--steel); margin-bottom: 26px; max-width: 42ch; }
.faq details { border: 1px solid var(--line); border-radius: 20px; background: #fff; margin-bottom: 12px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(73,165,210,.55); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font: 700 1.05rem/1.3 "Archivo", sans-serif; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(73,165,210,.16); color: var(--blue-deep); font: 600 1.35rem/1 "Public Sans", sans-serif; transition: background .3s; }
.faq details[open] summary::after { content: "–"; background: var(--blue); color: var(--ink); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--steel); line-height: 1.7; }
.faq details a { color: var(--blue-deep); text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 980px) { .steps .step:not(:last-child)::after { display: none; } }
@media (max-width: 760px) {
  .hx h1 { font-size: 1.72rem; }
  .steps .step { padding: 20px 18px; border-radius: 20px; }
  .step-top { margin-bottom: 14px; }
  .steps .step b { width: 38px; height: 38px; font-size: .95rem; }
  .step-top .ic { width: 38px; height: 38px; padding: 8px; border-radius: 12px; }
  .steps .step h3 { font-size: 1rem; }
  .steps .step p { font-size: .86rem; line-height: 1.55; }
  .steps-cta { margin-top: 26px; } .steps-cta .btn { width: 100%; text-align: center; }
  .domains { gap: 12px; }
  .dom { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 16px; border-radius: 18px; min-height: 132px; }
  .dom-ic { width: 46px; height: 46px; border-radius: 14px; } .dom-ic svg { width: 24px; height: 24px; }
  .dom strong { font-size: .98rem; flex: none; }
  .d-go { display: none; }
  .faq-wrap { gap: 26px; }
  .faq summary { padding: 16px 18px; font-size: 1rem; }
  .faq details { margin-bottom: 10px; border-radius: 16px; }
  .faq details p { padding: 0 18px 18px; font-size: .95rem; }
  .faq-side p { margin-bottom: 20px; }
  .faq-side .btn { width: 100%; text-align: center; }
}

/* =====================================================================
   V6 — hero with quote form, references component
   ===================================================================== */
.hx2 { padding: 84px 0 146px; background: var(--ink); }
.hx2 .hx-bg { position: absolute; z-index: -2; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%); mask-image: linear-gradient(90deg, transparent 0, #000 42%); }
.hx2 .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, .82fr); gap: 64px; align-items: center; }
.hx2 h1 { max-width: 19ch; }
.hx2 .hx-copy p { max-width: 52ch; }

/* References */
.trust-sec { padding: 24px 0 72px; }
.trust-sec.trust-tint { padding: 72px 0; background: var(--concrete); }
.trust-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 40px 48px; border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.trust-copy h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 14px 0 8px; }
.trust-copy p { color: var(--steel); margin: 0; max-width: 44ch; }
.trust-logos { display: flex; gap: 18px; }
.logo-card { display: grid; place-items: center; width: 210px; height: 126px; border-radius: 20px; background: var(--concrete); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.logo-card img { max-width: 132px; max-height: 74px; width: auto; height: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(73,165,210,.5); }
.logo-card:hover img { filter: none; opacity: 1; }

@media (max-width: 980px) {
  .hx2 { padding: 48px 0 100px; }
  .hx2 .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hx2 .hx-bg { width: 100%; opacity: .3; -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 85%); mask-image: linear-gradient(180deg, #000 0, transparent 85%); }
  .trust-wrap { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .hx2 { padding: 34px 0 84px; }
  .hx2 .wrap { gap: 28px; }
  .trust-sec { padding: 8px 0 52px; } .trust-sec.trust-tint { padding: 52px 0; }
  .trust-wrap { padding: 26px 22px; border-radius: 22px; }
  .trust-logos { gap: 12px; }
  .logo-card { flex: 1; width: auto; height: 98px; } .logo-card img { max-width: 100px; max-height: 58px; }
}


/* =====================================================================
   V7 — hero without form, reveal restored, photo in page headers
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.hx2 .hx-bg { opacity: .8; }

/* Page headers (Services, À propos): same refinery photo as the home hero */
.page-head.has-photo { position: relative; isolation: isolate; overflow: hidden; }
.page-head.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/refinery-dusk.jpg") right 62% / cover no-repeat; opacity: .6;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 52%); mask-image: linear-gradient(90deg, transparent 0, #000 52%); }
.page-head.has-photo .wrap { position: relative; z-index: 1; }

@media (max-width: 980px) {
  .hx2 .hx-bg { opacity: .4; }
}
@media (max-width: 760px) {
  .hx2 .btn-row { display: flex; flex-wrap: wrap; }
  .hx-checks { display: flex; flex-wrap: wrap; margin-top: 20px; gap: 8px 18px; font-size: .9rem; }
  .page-head.has-photo::before { opacity: .4; background-position: center 60%; -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 100%); mask-image: linear-gradient(180deg, #000 0, transparent 100%); }
}

.hx2 .wrap { grid-template-columns: minmax(0, 1fr); }

/* ---------- V8: page headers without the logo watermark ---------- */
.page-head::after { content: none !important; display: none; }

/* ---------- V8: contact page on mobile, tighter but still airy ---------- */
@media (max-width: 760px) {
  .contact { gap: 26px; }
  .contact h2 { margin-bottom: 4px; }
  .info { margin-top: 14px; }
  .info div { padding: 12px 0; gap: 2px; }
  .info dt { font-size: .9rem; }
  .info dd { margin: 0; }
  .needs { margin-top: 16px; }
  .needs li { padding-top: 9px; padding-bottom: 9px; }

  .form { padding: 20px 18px; }
  .form-top { margin-bottom: 14px; }
  .form-top h2 { font-size: 1.35rem; }
  .field { margin-bottom: 12px; }
  .field label { margin-bottom: 6px; font-size: .88rem; }
  .field input, .field select { min-height: 48px; padding: 12px 14px; }
  .field textarea { min-height: 100px; padding: 12px 14px; }
  .form .btn-row { gap: 10px; margin-top: 2px; }
  .form .btn { padding: 14px 20px; }
  .form-hint { margin-top: 12px; }
}

/* =====================================================================
   Languages: switcher, Arabic font, right-to-left layout
   (the page language is set on <html lang dir> by assets/js/i18n.js)
   ===================================================================== */
@font-face { font-family: "Almarai"; src: url("../fonts/almarai-300.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2066-2069; }
@font-face { font-family: "Almarai"; src: url("../fonts/almarai-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2066-2069; }
@font-face { font-family: "Almarai"; src: url("../fonts/almarai-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2066-2069; }
@font-face { font-family: "Almarai"; src: url("../fonts/almarai-800.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2066-2069; }

/* hide the page for a split second while a non-French language is applied (avoids a flash of French) */
html.i18n-pending body { visibility: hidden; }

/* Language switcher */
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); flex: none; }
.lang button {
  font: 600 .76rem/1 "Public Sans", sans-serif; letter-spacing: .05em; padding: 8px 11px; min-width: 40px;
  border: 0; border-radius: 999px; background: none; color: var(--steel); cursor: pointer;
  transition: background .2s, color .2s;
}
.lang button[lang="ar"] { font-family: "Almarai", "Public Sans", sans-serif; font-size: .86rem; letter-spacing: 0; padding-top: 6px; padding-bottom: 7px; }
.lang button:hover { color: var(--ink); background: var(--concrete); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; cursor: default; }
/* Mobile: the switcher lives inside the opened menu, so the original mobile header is untouched */
.lang-m { display: none; }
@media (max-width: 860px) {
  .site-header .wrap > .lang { display: none; }
  .lang-m { display: flex; align-self: center; margin-top: 18px; }
}

/* Narrow desktop/tablet (861-940px): no room beside the original menu, so the switcher floats just under the header */
@media (min-width: 861px) and (max-width: 940px) {
  .site-header .wrap > .lang { position: absolute; top: calc(100% + 8px); right: 24px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
  html[dir="rtl"] .site-header .wrap > .lang { right: auto; left: 24px; }
}

/* ---------- Arabic typography ---------- */
html[dir="rtl"] body *, html[dir="rtl"] body { font-family: "Almarai", "Public Sans", system-ui, sans-serif; }
html[dir="rtl"] body .brand-name { font-family: "Archivo", sans-serif; }
html[dir="rtl"] body .brand-sub { font-family: "Public Sans", sans-serif; }
/* Arabic letters must stay joined: no letter-spacing, no uppercase, no synthetic width */
html[dir="rtl"] body *, html[dir="rtl"] body *::before, html[dir="rtl"] body *::after { letter-spacing: 0 !important; font-stretch: normal !important; text-transform: none !important; }
html[dir="rtl"] body .brand-name { letter-spacing: .05em !important; }
html[dir="rtl"] body .brand-sub { letter-spacing: .26em !important; text-transform: uppercase !important; }
/* things that stay left-to-right inside Arabic text */
html[dir="rtl"] a[href^="tel:"], html[dir="rtl"] a[href^="mailto:"], html[dir="rtl"] .info dd a {
  direction: ltr; unicode-bidi: isolate; display: inline-block;
}
html[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
/* the mobile bottom bar keeps its normal flex layout (icon + label), also for the tel: button */
html[dir="rtl"] .mbar a { display: flex; direction: rtl; unicode-bidi: normal; }

/* ---------- RTL mirroring ---------- */
html[dir="rtl"] .skip { left: auto; right: -999px; }
html[dir="rtl"] .skip:focus { left: auto; right: 8px; }
html[dir="rtl"] .nav a:not(.btn)::after { transform-origin: right; }

/* arrows */
html[dir="rtl"] .ar { margin-left: 0; margin-right: 8px; transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .ar, html[dir="rtl"] .svc:hover .ar { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .bt-go svg, html[dir="rtl"] .d-go svg { transform: scaleX(-1); }
html[dir="rtl"] .bt:hover .bt-go { transform: rotate(45deg); }
html[dir="rtl"] .link-arrow::after { content: " \2190"; }
html[dir="rtl"] .more::after { content: " \2190"; }
html[dir="rtl"] .more:hover::after { margin-left: 0; margin-right: 4px; }
html[dir="rtl"] .service-body .more::after { content: none; }
html[dir="rtl"] .service-body .more .ar { margin-right: 0; }

/* decorative / positioned elements */
html[dir="rtl"] .page-head::after { right: auto; left: 6%; }
html[dir="rtl"] .page-head h1::before, html[dir="rtl"] .split-head h2::before,
html[dir="rtl"] .why h2::before, html[dir="rtl"] .zone h2::before { left: auto; right: 0; }
html[dir="rtl"] .page-head.has-photo::before { background-position: left 62%; -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 52%); mask-image: linear-gradient(270deg, transparent 0, #000 52%); }
html[dir="rtl"] .hx2 .hx-bg { right: auto; left: 0; -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 42%); mask-image: linear-gradient(270deg, transparent 0, #000 42%); }
@media (max-width: 980px) {
  html[dir="rtl"] .hx2 .hx-bg { -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 85%); mask-image: linear-gradient(180deg, #000 0, transparent 85%); }
}
html[dir="rtl"] .cta::after { right: auto; left: -60px; }
html[dir="rtl"] .cta2 .box::after { right: auto; left: 24px; }
html[dir="rtl"] .hx-badge { right: auto; left: -14px; }
html[dir="rtl"] .hx-card { left: auto; right: -28px; }
html[dir="rtl"] .chip-float { right: auto; left: -14px; }
html[dir="rtl"] .hero-photo::after { background: linear-gradient(270deg, var(--ink) 0, rgba(13,34,54,0) 38%); }
html[dir="rtl"] .hero-photo > img.hero-mark { inset: auto 8% 0 auto; }

/* check-mark and dash lists */
html[dir="rtl"] .hx-checks li { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .hx-checks li::before { left: auto; right: 0; }
html[dir="rtl"] .why .points li { padding-left: 0; padding-right: 36px; }
html[dir="rtl"] .why .points li::before { left: auto; right: 0; }
html[dir="rtl"] .points li:hover { padding-left: 0; padding-right: 10px; }
html[dir="rtl"] .why .points li:hover { padding-right: 46px; }
html[dir="rtl"] .ticks li, html[dir="rtl"] .needs li { padding-left: 0; padding-right: 28px; }
html[dir="rtl"] .ticks li::before, html[dir="rtl"] .needs li::before { left: auto; right: 0; }
html[dir="rtl"] .chips li { border-left-width: 1px; }

/* stat strips: divider goes on the other side */
html[dir="rtl"] .fs-grid > div { border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .fs-grid > div:first-child { border-right: 0; }
@media (max-width: 980px) { html[dir="rtl"] .fs-grid > div:nth-child(3) { border-right: 0; } }
html[dir="rtl"] .strip .wrap > div { border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .strip .wrap > div:first-child { padding-left: 36px; padding-right: 0; border-right: 0; }
html[dir="rtl"] .steps .step:not(:last-child)::after { right: auto; left: -20px; }

/* cards */
html[dir="rtl"] .tile .ic { left: auto; right: 22px; }
html[dir="rtl"] .tile::after { right: auto; left: 18px; }
html[dir="rtl"] .service-num { left: auto; right: 16px; }
html[dir="rtl"] .service-media .service-ic { right: auto; left: 14px; }
html[dir="rtl"] .bt-go { right: auto; left: 18px; }
html[dir="rtl"] .service.service-card.cta-card { background: radial-gradient(400px 260px at 0% 0%, rgba(73,165,210,.4), transparent 65%), linear-gradient(160deg, var(--ink-2), var(--ink)); }
html[dir="rtl"] .service.service-card.cta-card::after { right: auto; left: 18px; }
html[dir="rtl"] .why img, html[dir="rtl"] .media img, html[dir="rtl"] .zone img { box-shadow: var(--shadow) !important; }

/* form select arrow */
html[dir="rtl"] .field select { padding-right: 16px; padding-left: 46px; background-position: left 16px center; }

/* floating WhatsApp button */
html[dir="rtl"] .wa { right: auto; left: 20px; }

@media (max-width: 620px) {
  html[dir="rtl"] .tile .ic { left: auto; right: 14px; }
  html[dir="rtl"] .tile::after { right: auto; left: 12px; }
  html[dir="rtl"] .service-num { left: auto; right: 9px; }
  html[dir="rtl"] .service-media .service-ic { right: auto; left: 8px; }
  html[dir="rtl"] .bt-go { right: auto; left: 12px; }
  html[dir="rtl"] .hx-badge { right: auto; left: 12px; }
  html[dir="rtl"] .hx-card { left: auto; right: 12px; }
  html[dir="rtl"] .chip-float { right: auto; left: 10px; }
  html[dir="rtl"] .wa { right: auto; left: 14px; }
}
