/* Congo Pump Solutions — shared styles */
/* Light theme: light-grey surfaces, contrast per WCAG 2.2 AA
   text >= 4.5:1, interactive borders and focus >= 3:1 (SC 1.4.3, 1.4.11, 2.4.13) */
:root {
  --red: #d7261e;          /* 5.0:1 on white, 4.6:1 on --bg */
  --red-strong: #b81d16;   /* 5.8:1 on --red-soft: small red text */
  --red-soft: #fdeceb;
  --ink: #17181b;          /* 17:1 */
  --ink-2: #33363d;        /* 11:1 */
  --muted: #555a64;        /* 6.3:1 on --bg-alt */
  --line: #d3d7de;         /* decorative dividers */
  --line-strong: #7d848e;  /* 3.5:1 on --bg, 3.8:1 on white: control borders */
  --bg: #f5f6f8;
  --bg-alt: #eceef1;
  --card: #ffffff;
  --header: rgba(245, 246, 248, .9);
  --steel: #c9cbd0;
  --on-red: #ffffff;
  --shadow: 0 1px 2px rgba(16, 18, 24, .06), 0 8px 24px rgba(16, 18, 24, .08);
  --radius: 14px;
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f3f5; --ink-2: #d4d6db; --muted: #a3a8b2; --line: #2b2e35; --line-strong: #6b717c;
    --bg: #0d0e10; --bg-alt: #131416; --card: #18191c; --red-soft: #2a1513; --red-strong: #ff6b62; --header: rgba(13, 14, 16, .86);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f2f3f5; --ink-2: #d4d6db; --muted: #a3a8b2; --line: #2b2e35; --line-strong: #6b717c;
  --bg: #0d0e10; --bg-alt: #131416; --card: #18191c; --red-soft: #2a1513; --red-strong: #ff6b62; --header: rgba(13, 14, 16, .86);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.03em; }
h3 { font-weight: 600; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: block; flex: none; background: #fff; border-radius: 10px; padding: 4px 8px; line-height: 0; }
.brand-logo { width: 120px; height: 48px; overflow: hidden; position: relative; }
.brand-logo img { position: absolute; width: 128px; height: 128px; max-width: none; top: -35px; left: -4px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 10px 14px; text-decoration: none; white-space: nowrap;
  font: 500 15px/1 var(--font-label); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2);
}
.nav-links a:hover { color: var(--red); }
.nav-links a[aria-current="page"] { color: var(--red); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red); border-radius: 2px;
}
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--card); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); background: var(--bg-alt); }
.lang button {
  border: 0; background: none; color: var(--muted); cursor: pointer; min-width: 38px; min-height: 32px;
  font: 600 13px/1 var(--font-body); border-radius: 999px; letter-spacing: .04em;
}
.lang button[aria-pressed="true"] { background: var(--red); color: var(--on-red); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
}
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
@media (max-width: 1080px) and (min-width: 1041px) { .nav-links a { padding-inline: 10px; } }
@media (max-width: 1040px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 480px) { .theme-btn, .login-btn { display: none; } }
.nav-login-mobile { display: none; }
@media (max-width: 1040px) { .nav-login-mobile { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  font: 600 15px/1 var(--font-label); text-transform: uppercase; letter-spacing: .07em;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-strong); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: #0e0f12; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; opacity: .55; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,11,14,.94) 0%, rgba(10,11,14,.72) 45%, rgba(10,11,14,.2) 100%);
}
.hero-inner { padding: clamp(80px, 13vw, 160px) 0 clamp(70px, 10vw, 130px); max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 13px/1 var(--font-label); text-transform: uppercase; letter-spacing: .18em; color: var(--red);
}
.hero .eyebrow { color: #ff6b62; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d9dbe0; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rings { position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; translate: 0 -50%; z-index: -1; opacity: .9; pointer-events: none; }
@media (max-width: 760px) { .rings { width: 380px; height: 380px; right: -190px; opacity: .45; } }

.page-hero { position: relative; color: #fff; background: #0e0f12; overflow: hidden; isolation: isolate; }
.page-hero .hero-inner { padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); }
.crumbs { font-size: 14px; color: #b9bcc4; margin-bottom: 12px; }
.crumbs a { color: #fff; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 110px) 0; }
.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.card .num { font: 600 14px/1 var(--font-label); color: var(--red); letter-spacing: .14em; }
.card p { color: var(--muted); margin: 0; }
.ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red); margin-bottom: 18px;
}
.ico svg { width: 26px; height: 26px; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; background: var(--bg-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 220px 220px; gap: 14px; }
.mosaic .photo:first-child { grid-row: span 2; }
@media (max-width: 640px) { .mosaic { grid-template-rows: 170px 170px; } }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 2px; }

/* Stats band */
.stats { background: var(--ink); color: var(--bg); padding: 56px 0; }
:root[data-theme="dark"] .stats { background: #1c1e23; color: #f2f3f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats { background: #1c1e23; color: #f2f3f5; } }
.stat b { display: block; font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-label); color: #ff5a50; }
.stat span { display: block; margin-top: 8px; opacity: .8; font-size: 15px; }

/* Partners strip */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.chip-brand {
  font: 600 22px/1 var(--font-label); letter-spacing: .08em; text-transform: uppercase;
  padding: 22px 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink-2); white-space: nowrap;
}

/* Partner cards */
.partner { display: flex; flex-direction: column; gap: 10px; }
.partner .mark {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 600 1.6rem/1 var(--font-label); letter-spacing: .06em; text-transform: uppercase;
}
.tag { display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-strong); border: 1px solid currentColor; }
.partner ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.partner .origin { font-size: 14px; color: var(--muted); }
.partner a.more { margin-top: auto; font-weight: 600; color: var(--red); text-decoration: none; }
.partner a.more:hover { text-decoration: underline; }

/* ---------- Products ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  position: relative; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); cursor: pointer;
  min-height: 42px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 var(--font-body);
}
.filters button[aria-pressed="true"] { color: var(--on-red); border-color: var(--red); }
.filters .pill-bg { position: absolute; inset: -1px; border-radius: 999px; background: var(--red); z-index: 0; }
.filters button span { position: relative; z-index: 1; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input {
  width: 100%; min-height: 46px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); font: 16px var(--font-body);
}
.search svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.product {
  display: flex; flex-direction: column; text-align: left; cursor: pointer; padding: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; font: inherit;
  transition: border-color .2s;
}
.product .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #1b1d22, #2c2f36); position: relative; overflow: hidden; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .thumb.contain, .modal .thumb.contain { background: #fff; }
.thumb.contain img { object-fit: contain; padding: 14px; }
.modal .thumb { position: relative; overflow: hidden; background: linear-gradient(135deg, #1b1d22, #2c2f36); }
.modal .thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal .thumb.contain img { object-fit: contain; }
.modal .thumb .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: #ff5a50; }
.modal .thumb .glyph svg { width: 22%; }
.modal .thumb .brand-tag { position: absolute; left: 12px; top: 12px; background: #17181b; color: #fff; font: 600 12px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.product .thumb.contain .brand-tag { background: #17181b; color: #fff; }
.logo-box { display: inline-flex; align-items: center; height: 56px; padding: 8px 12px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.logo-box img { height: 100%; width: auto; max-width: 170px; object-fit: contain; }
.chip-brand.logo { background: #fff; padding: 14px 26px; display: inline-flex; align-items: center; }
.chip-brand.logo img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery .photo { aspect-ratio: 4/3; margin: 0; }
.gallery .photo:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery .photo:first-child { aspect-ratio: 4/3; grid-row: auto; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery .photo:first-child { grid-column: auto; } }
.product .thumb .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: #ff5a50; }
.product .thumb .glyph svg { width: 34%; height: auto; opacity: .95; }
.product .thumb .brand-tag { position: absolute; left: 12px; top: 12px; background: #fff; color: #17181b; font: 600 12px/1 var(--font-label); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; }
.product .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product h3 { margin: 0; font-size: 1.25rem; }
.product p { color: var(--muted); margin: 0; font-size: 15px; }
.product .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.product .specs span { font-size: 12.5px; padding: 5px 9px; border-radius: 6px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 9, 12, .62); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal {
  width: min(760px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); color: var(--ink);
  border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.modal .thumb { aspect-ratio: 16/7; }
.modal-body { padding: 26px 28px 30px; }
.modal-close { position: absolute; right: 14px; top: 14px; z-index: 3; background: #fff; color: #17181b; border: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.spec-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; }
.modal ul { color: var(--ink-2); padding-left: 20px; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: 16px var(--font-body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .err { color: var(--red); font-size: 14px; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.form-note { font-size: 14px; color: var(--muted); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico { margin: 0; flex: none; width: 44px; height: 44px; }
.info-list b { display: block; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.info-list a { color: var(--ink); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* CTA */
.cta { background: var(--red); color: #fff; border-radius: 22px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta h2 { margin: 0; max-width: 640px; }
.cta .btn-primary { background: #fff; color: var(--red-strong); }
.cta .btn-primary:hover { background: #ffecea; }

/* Footer */
/* inset dark panel with rounded corners; text on #141518: #c9ccd3 = 11:1, #9aa0aa = 6.6:1 */
.site-footer { background: var(--bg); padding: 0 16px 16px; font-size: 15px; }
.foot-panel { max-width: 1440px; margin: 0 auto; background: #141518; color: #c9ccd3; border-radius: 24px; padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px) 28px; }
.site-footer h4 { color: #fff; font: 600 1.05rem/1.2 var(--font-body); letter-spacing: 0; text-transform: none; margin: 0 0 18px; }
.site-footer a { color: #c9ccd3; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: #ff6b62; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1.15fr 1fr 1.15fr; gap: 40px 32px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-gap { margin-top: 28px !important; }
.foot-brand .brand { display: inline-block; margin-bottom: 22px; }
.foot-news { font-size: 1.05rem; line-height: 1.55; max-width: 380px; color: #c9ccd3; }
.foot-form { display: flex; gap: 10px; max-width: 400px; margin-top: 18px; }
.foot-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #6b717c; background: #24262b; color: #fff; font: 15px var(--font-body); }
.foot-form input::placeholder { color: #9aa0aa; }
.foot-form input:focus-visible { outline: 3px solid #ff6b62; outline-offset: 1px; border-color: #ff6b62; }
.foot-form input[aria-invalid="true"] { border-color: #ff6b62; }
.foot-sub { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid #fff; background: transparent; color: #fff; font: 600 15px var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.foot-sub:hover { background: #fff; color: #141518; }
.foot-err { color: #ff8a83; font-size: 14px; margin: 8px 0 0; }
.foot-social { display: flex; gap: 12px; margin-top: 26px; }
.foot-social a { width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid #c9ccd3; display: grid; place-items: center; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.foot-social a:hover { background: #fff; color: #141518; border-color: #fff; text-decoration: none; transform: translateY(-2px); }
.foot-social svg { width: 20px; height: 20px; }
.foot-acc { border-bottom: 1px solid #33363d; }
.foot-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; color: #fff; font-weight: 600; }
.foot-acc summary::-webkit-details-marker { display: none; }
.foot-acc summary svg { width: 18px; height: 18px; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.foot-acc[open] summary svg { transform: rotate(180deg); }
.foot-acc ul { padding: 4px 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.legal { border-top: 1px solid #33363d; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 14px; color: #9aa0aa; }
.legal-right { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-left { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.credit a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: #ff6b62; text-underline-offset: 3px; }
.credit a:hover { color: #ff8a83; }

/* Outlines and states: visible boundaries for controls, clear hover/focus feedback */
.product:hover { border-color: var(--red); }
.product .thumb { border-bottom: 1px solid var(--line); }
.filters button:hover:not([aria-pressed="true"]), .icon-btn:hover { border-color: var(--ink-2); background: var(--bg-alt); }
.field input:hover, .field select:hover, .field textarea:hover, .search input:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .search input:focus-visible { border-color: var(--red); outline: 3px solid var(--red); outline-offset: 1px; }
.field input, .field select, .field textarea { background: var(--card); }
.stat span { opacity: 1; color: #c9ccd3; }
.photo { border: 1px solid var(--line); }

/* ---------- Model layout: rounded hero card, red glow, brand band, pill buttons ---------- */
.hero-card, .page-hero { margin: 12px 16px 0; border-radius: 28px; z-index: 1; }
.hero-card { min-height: min(860px, calc(100svh - 96px)); display: flex; }
.hero-card .hero-media { left: 36%; }
.hero-card .hero-media img { object-position: 50% 22%; opacity: .95; }
@media (max-width: 900px) { .hero-card .hero-media { left: 0; } }
/* live 3D pump scene replaces the photo when WebGL is available */
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-media.has-3d img { display: none; }
@media (max-width: 900px) { .hero-3d { opacity: .6; } }
.hero-card { background: #0c0d10; }
.hero-card::before {
  background:
    linear-gradient(90deg, #0c0d10 0%, #0c0d10 36%, rgba(12,13,16,.55) 52%, rgba(12,13,16,.2) 64%, rgba(12,13,16,.82) 100%),
    linear-gradient(0deg, rgba(10,11,14,.92) 0%, rgba(10,11,14,0) 32%);
}
.hero-glow, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(55% 65% at 12% 8%, rgba(215, 38, 30, .55), transparent 62%),
              radial-gradient(35% 45% at 88% 30%, rgba(215, 38, 30, .28), transparent 70%);
}
.hero-card .rings { left: -150px; right: auto; top: auto; bottom: -170px; translate: 0 0; width: 460px; height: 460px; opacity: .35; }
.hero-grid {
  width: min(1280px, 100% - 48px); margin: 0 auto; display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: 1fr auto;
  gap: 32px 48px; padding: clamp(64px, 10vw, 128px) 0 32px; flex: 0 1 auto;
}
.hero-card .hero-inner { padding: 0; max-width: none; align-self: center; }
.hero-hello { display: block; font: 500 clamp(1.1rem, 1.6vw, 1.4rem)/1.2 var(--font-display); color: #e6e7ea; margin-bottom: 14px; }
.display { font-size: clamp(3rem, 7.6vw, 6.6rem); line-height: .95; letter-spacing: -.045em; margin: 0; }
.hero-card .hero-actions { margin-top: 36px; align-items: center; }
.hero-side { align-self: center; max-width: 340px; justify-self: end; text-shadow: 0 2px 14px rgba(0, 0, 0, .75); }
.hero-tag { font: 600 clamp(1.35rem, 2vw, 1.75rem)/1.2 var(--font-display); color: #fff; letter-spacing: -.02em; margin-bottom: 14px; }
.hero-sub { color: #c9ccd3; font-size: 1rem; margin: 0; }
.hero-strip { grid-column: 1 / -1; list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-strip a { display: grid; gap: 6px; color: #e6e7ea; text-decoration: none; font-size: 15px; padding: 6px 0; }
.hero-strip a:hover { color: #fff; }
.hero-strip .num { font: 600 14px/1 var(--font-label); color: #ff6b62; letter-spacing: .08em; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { justify-self: start; max-width: 520px; }
  .hero-card .hero-media img { opacity: .55; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* inner pages share the rounded card + glow */
.page-hero::before { background: linear-gradient(100deg, rgba(10,11,14,.95) 0%, rgba(10,11,14,.75) 50%, rgba(10,11,14,.35) 100%); }

/* brand band tucked under the hero card */
.brand-band { position: relative; margin: -28px 16px 0; background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 28px 28px; padding: 28px 0 0 !important; }
.brand-band-inner { width: min(1280px, 100% - 48px); margin: 0 auto; display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 30px 0 34px; }
.brand-band-label { margin: 0; font: 600 15px/1.35 var(--font-display); color: var(--ink); }
.brand-band .marquee-toggle { position: absolute; right: 18px; bottom: 14px; width: 36px; height: 36px; margin: 0; }
.brand-band .chip-brand { background: transparent; border: 0; padding: 8px 22px; font-size: 18px; color: var(--muted); }
.brand-band .chip-brand.logo { background: transparent; }
.brand-band .chip-brand.logo img { height: 34px; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .75; }
.brand-band .chip-brand.logo:hover img { filter: none; opacity: 1; }
@media (max-width: 760px) { .brand-band-inner { grid-template-columns: 1fr; gap: 12px; } }

/* dark mode: logos sit on small white tiles so every brand stays legible */
:root[data-theme="dark"] .brand-band .chip-brand.logo { background: #f1f2f4; border-radius: 10px; padding: 8px 16px; margin: 0 6px; }
:root[data-theme="dark"] .brand-band .chip-brand.logo img { height: 30px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-band .chip-brand.logo { background: #f1f2f4; border-radius: 10px; padding: 8px 16px; margin: 0 6px; }
  :root:not([data-theme="light"]) .brand-band .chip-brand.logo img { height: 30px; }
}

/* pill button with round arrow, as in the model */
.btn-pill {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 6px 6px 22px; border-radius: 999px;
  background: #fff; color: #141518; text-decoration: none; font: 600 15px/1 var(--font-display); box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: background-color .2s, color .2s;
}
.pill-ico { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--red); color: #fff; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.pill-ico svg { width: 18px; height: 18px; }
.btn-pill:hover .pill-ico { transform: rotate(-45deg); }
.btn-pill:hover { background: #f1f2f4; }
.btn-pill-red { background: var(--red); color: #fff; }
.btn-pill-red .pill-ico { background: #fff; color: var(--red); }
.btn-pill-red:hover { background: var(--red-strong); }
.btn-pill:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.nav-cta { white-space: nowrap; flex: none; min-height: 44px; padding: 4px 4px 4px 16px; font-size: 14px; gap: 10px; border: 1px solid var(--line-strong); box-shadow: none; }
.nav-cta .pill-ico { width: 34px; height: 34px; }
@media (max-width: 1320px) { .nav-cta { display: none; } }

/* approach section */
.approach-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: end; }
.display-2 { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.04; letter-spacing: -.04em; margin: 0; }
.approach .eyebrow { color: var(--red-strong); }
.approach-text { font: 500 clamp(1.15rem, 1.7vw, 1.45rem)/1.45 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.approach-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; color: var(--muted); }
@media (max-width: 860px) { .approach-grid { grid-template-columns: 1fr; } }

/* ---------- Projects: alternating case studies ---------- */
.projects { display: grid; gap: clamp(40px, 6vw, 72px); }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.project.flip .project-media { order: 2; }
.project-media { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: #0c0d10; border: 1px solid var(--line); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media.contain { background: #fff; }
.project-media.contain img { object-fit: contain; padding: 28px; }
.project-stat { position: absolute; left: 16px; bottom: 16px; max-width: 70%; background: rgba(12, 13, 16, .88); color: #fff; border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(6px); }
.project-stat b { display: block; font: 700 1.7rem/1 var(--font-display); color: #ff6b62; letter-spacing: -.02em; }
.project-stat span { display: block; margin-top: 6px; font-size: 14px; color: #d6d8dd; }
.project-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 14px 0 8px; }
.project-place { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0 0 18px; }
.project-place svg { width: 18px; height: 18px; color: var(--red); }
.project-steps { margin: 0; display: grid; gap: 14px; }
.project-steps div { border-left: 3px solid var(--red); padding-left: 14px; }
.project-steps dt { font: 600 13px/1.2 var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--red-strong); margin-bottom: 4px; }
.project-steps dd { margin: 0; color: var(--ink-2); }
.project-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.project-eq span { font-weight: 600; color: var(--ink); margin-right: 4px; }
.project-eq em { font-style: normal; font-size: 14px; padding: 6px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line-strong); color: var(--ink-2); }
.project-source { margin-top: 48px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } .project.flip .project-media { order: 0; } }

.apply-modal { width: min(720px, 100%); }
.apply-modal .field input[type="file"] { padding: 10px; min-height: 48px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.apply-err { color: var(--red-strong); background: var(--red-soft); border: 1px solid currentColor; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0; }
.apply-err a { color: inherit; font-weight: 600; }
.apply-ok { text-align: center; padding: 24px 8px; display: grid; justify-items: center; gap: 8px; }
.apply-ok svg { width: 64px; height: 64px; color: #1a9b4b; }
.preview-bar { position: sticky; top: 0; z-index: 70; background: #ffd23f; color: #17181b; text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px; }
.preview-bar a { color: #17181b; }

/* ---------- Careers: job accordion ---------- */
.jobs { display: grid; gap: 14px; }
.job { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s; }
.job:hover, .job.open { border-color: var(--red); }
.job-title { margin: 0; font: inherit; text-transform: none; }
.job-head { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; text-align: left; padding: 22px 24px; min-height: 64px; background: none; border: 0; color: var(--ink); cursor: pointer; font: inherit; }
.job-name { font: 600 1.3rem/1.2 var(--font-label); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.job-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 16px; height: 16px; }
.job-chevron { grid-column: 2; grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink); transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .2s, color .2s; }
.job-chevron svg { width: 18px; height: 18px; transform: rotate(90deg); }
.job.open .job-chevron { transform: rotate(180deg); background: var(--red); color: #fff; border-color: var(--red); }
.job-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.22, 1, .36, 1); }
.job.open .job-panel { grid-template-rows: 1fr; }
.job-inner { overflow: hidden; }
.job-body { padding: 0 24px 24px; border-top: 1px solid var(--line); margin: 0 24px; padding-left: 0; padding-right: 0; padding-top: 20px; }
.job-body h4 { font: 600 1rem/1.2 var(--font-label); text-transform: uppercase; letter-spacing: .08em; color: var(--red-strong); margin: 0 0 4px; }
.job-summary { color: var(--ink-2); font-size: 1.05rem; }
.job-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.job-ref { color: var(--muted); font-size: 14px; }
.job:not(.open) .job-panel { visibility: hidden; transition: grid-template-rows .3s cubic-bezier(.4, 0, 1, 1), visibility 0s .3s; }
@media (prefers-reduced-motion: reduce) { .job-panel, .job-chevron { transition: none; } }

/* ---------- Motion & interaction layer (fx.js) ---------- */
.site-header { transition: box-shadow .25s, background-color .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16, 18, 24, .10); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.wi { display: inline-block; will-change: transform; }

/* hover detail: image zoom inside cards, arrow nudge on buttons */
.product .thumb img, .photo img { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) {
  .product:hover .thumb img { transform: scale(1.05); }
  .photo[role="button"]:hover img { transform: scale(1.04); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn svg { transition: transform .2s ease-out; }
.photo[role="button"] { cursor: zoom-in; }
.photo[role="button"]:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* partner logos: muted at rest, full colour on hover/focus */
.marquee .chip-brand.logo img { filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee .chip-brand.logo:hover img { filter: none; opacity: 1; }
.marquee-toggle { margin: 16px auto 0; }
.marquee + .marquee-toggle { display: grid; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8, 9, 12, .86); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100dvh - 48px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: #fff; color: #17181b; border: 0; }

/* WhatsApp: #1A9B4B keeps the white icon at 3.5:1 (WCAG non-text contrast) */
.wa-btn { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: 56px; height: 56px; border-radius: 999px; background: #1a9b4b; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(26, 155, 75, .4); text-decoration: none; }
.wa-btn:hover { background: #158a41; }
.wa-btn:focus-visible { outline: 3px solid #1a9b4b; outline-offset: 4px; }
.wa-icon { display: grid; place-items: center; position: relative; z-index: 1; }
.wa-icon svg { width: 30px; height: 30px; }
.wa-pulse { position: absolute; inset: 0; border-radius: inherit; background: #1a9b4b; opacity: 0; }
.wa-label { position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%; white-space: nowrap; background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; }
.wa-btn.open .wa-label { opacity: 1; }
@media (max-width: 520px) { .wa-label { display: none; } }

/* back to top (sits above the WhatsApp button) */
.to-top { position: fixed; right: 24px; bottom: 90px; z-index: 60; width: 48px; height: 48px; background: var(--red); color: #fff; border: 0; box-shadow: 0 8px 24px rgba(215, 38, 30, .35); }
.to-top svg { transform: rotate(-90deg); }
.to-top:hover { background: var(--red-strong); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 95; background: var(--ink); color: var(--bg); padding: 14px 20px; border-radius: 12px; font-weight: 600; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); }

/* smooth cross-page transitions (Chromium, progressive enhancement) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .18s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .32s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .product .thumb img, .photo img, .btn svg { transition: none; }
}

/* ---------- Mobile ---------- */
.foot-grid > *, .hero-grid > *, .grid > *, .split > * { min-width: 0; }
.site-footer a, .info-list a, .kv dd { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .hero-card, .page-hero { margin: 8px 8px 0; border-radius: 20px; }
  .brand-band { margin: -20px 8px 0; border-radius: 0 0 20px 20px; }
  .hero-card { min-height: calc(100svh - 80px); }
  .hero-grid { width: calc(100% - 32px); padding: 56px 0 20px; gap: 20px; }
  .display { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-card .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-card .hero-actions > * { flex: 1 1 auto; justify-content: center; }
  .hero-side { max-width: none; }
  .hero-strip { gap: 6px 12px; padding-top: 14px; }
  .hero-strip a { font-size: 14px; }
  .page-hero .hero-inner { padding: 48px 0 36px; }
  h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .lang button { min-width: 40px; min-height: 36px; }
  .cta { flex-direction: column; align-items: flex-start; border-radius: 18px; }
  .foot-panel { border-radius: 18px; padding: 32px 20px 24px; }
  .site-footer { padding: 0 8px 8px; }
  .foot-form { flex-direction: column; }
  .foot-form .foot-sub { width: 100%; }
  .legal, .legal-left, .legal-right { flex-direction: column; gap: 6px; }
  .stats .grid { gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat b { font-size: 2.1rem; }

  /* filters: one swipeable row instead of several lines */
  .filters { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; scroll-snap-align: start; }
  .toolbar { gap: 8px; }
  .search { max-width: none; flex-basis: 100%; }

  /* popups become bottom sheets */
  .modal-backdrop { place-items: end stretch; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; }
  .modal-body { padding: 20px 18px 28px; }
  .modal .thumb { aspect-ratio: 16 / 9; }
  .apply-modal .grid.g2 { grid-template-columns: 1fr; }

  .project-media { border-radius: 18px; }
  .job-head { padding: 18px; }
  .job-body { margin: 0 18px; }
  .mosaic { grid-template-rows: 150px 150px; gap: 10px; }
  .nav { gap: 10px; }
  .nav-tools { gap: 6px; }
  .wa-btn { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .to-top { right: 16px; bottom: 76px; width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  .brand { padding: 3px 6px; }
  .brand-logo { width: 104px; height: 42px; }
  .brand-logo img { width: 112px; height: 112px; top: -31px; left: -4px; }
  .lang button { min-width: 36px; }
}

/* ---------- Loading screen (assets/js/loader.js) ----------
   Timings are in seconds at --k = 1 (6 s intro); --k = 1/3 gives the 2 s page loader. */
html.ld-lock { overflow: hidden; }
.cps-loader {
  --ld-map: #d9dce0; --ld-dark: #5f646b; --ld-glow: rgba(255, 42, 31, .85);
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; cursor: progress;
  background: radial-gradient(ellipse at 50% 46%, rgba(215, 38, 30, .07), transparent 60%), var(--bg);
  animation: ld-out calc(var(--k) * .55s) calc(var(--k) * 5.45s) ease forwards;
}
:root[data-theme="dark"] .cps-loader { --ld-map: #2b2e34; --ld-dark: #4a4f57; background: radial-gradient(ellipse at 50% 46%, rgba(215, 38, 30, .14), transparent 60%), var(--bg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cps-loader { --ld-map: #2b2e34; --ld-dark: #4a4f57; background: radial-gradient(ellipse at 50% 46%, rgba(215, 38, 30, .14), transparent 60%), var(--bg); }
}
.ld-stage { width: clamp(240px, 30vw, 560px); animation: ld-zoom calc(var(--k) * .55s) calc(var(--k) * 5.45s) ease-in forwards; }
.ld-stage svg { display: block; width: 100%; height: auto; overflow: visible; }

/* every traced shape: a glowing red line that draws itself, then fills in its own colour */
.cps-loader .tr {
  fill-opacity: 0; stroke: var(--red); stroke-width: 2.4; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 3px var(--ld-glow)) drop-shadow(0 0 9px var(--ld-glow));
  animation:
    ld-draw calc(var(--k) * var(--t) * 1s) calc(var(--k) * var(--d) * 1s) cubic-bezier(.65, 0, .35, 1) forwards,
    ld-settle calc(var(--k) * .6s) calc(var(--k) * var(--f) * 1s) ease forwards;
}
.cps-loader .ld-map { fill: var(--ld-map); stroke-width: 2; }
.cps-loader .ld-rings .tr { fill: none; stroke-width: 13; }
.cps-loader .ld-rings .tr:nth-child(2) { stroke-width: 9; }
.cps-loader .ld-rings .tr:nth-child(3) { stroke-width: 7; }
.cps-loader .ld-rings .tr { animation-name: ld-draw, ld-unglow; }
.cps-loader .ld-cap { fill: url(#ld-cap); }
.cps-loader .ld-steel { fill: url(#ld-steel); }
.cps-loader .ld-mesh { fill: #b4b8be; }
.cps-loader .ld-dark { fill: var(--ld-dark); }
.cps-loader .ld-pump > path:not(.ld-cap) { fill: none; stroke-width: 2.4; }
.cps-loader .ld-pump > path:not(.ld-cap) { animation-name: ld-draw, ld-grid; }
.cps-loader .ld-map, .cps-loader .ld-pump > :is(rect, .ld-cap) { animation-name: ld-draw, ld-settle; }
.cps-loader .ld-map { animation-name: ld-draw, ld-map; }

/* text outlines: per-glyph dashes, then a solid fill */
.cps-loader .tr-text {
  font-family: var(--font-label); font-weight: 600; fill-opacity: 0;
  stroke: var(--red); stroke-width: 1.6; stroke-dasharray: 600 3000; stroke-dashoffset: 600;
  filter: drop-shadow(0 0 3px var(--ld-glow)) drop-shadow(0 0 8px var(--ld-glow));
  animation:
    ld-draw calc(var(--k) * var(--t) * 1s) calc(var(--k) * var(--d) * 1s) cubic-bezier(.65, 0, .35, 1) forwards,
    ld-text calc(var(--k) * .6s) calc(var(--k) * var(--f) * 1s) ease forwards;
}
.cps-loader .ld-name { font-size: 92px; fill: var(--ink); }
.cps-loader .ld-sub { font-size: 31px; font-weight: 500; fill: var(--red); stroke-dasharray: 220 3000; stroke-dashoffset: 220; }

.cps-loader .ld-spark {
  fill: #fff; opacity: 0; offset-rotate: 0deg; offset-distance: 0%;
  filter: drop-shadow(0 0 4px #ff2a1f) drop-shadow(0 0 12px #ff2a1f);
  animation:
    ld-run calc(var(--k) * 1.6s) calc(var(--k) * .25s) cubic-bezier(.65, 0, .35, 1) forwards,
    ld-spark calc(var(--k) * 1.7s) calc(var(--k) * .25s) linear forwards;
}
.cps-loader .ld-wave { fill: none; stroke: var(--red); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ld-wave calc(var(--k) * .9s) calc(var(--k) * 4.85s) ease-out forwards; }

.ld-bar { height: 3px; margin: clamp(18px, 3vw, 32px) auto 0; width: 46%; border-radius: 3px; background: var(--line); overflow: hidden; }
.ld-bar span { display: block; height: 100%; background: var(--red); box-shadow: 0 0 10px var(--ld-glow); transform: scaleX(0); transform-origin: left; animation: ld-bar calc(var(--k) * 5.4s) linear forwards; }

@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-settle { to { fill-opacity: 1; stroke-opacity: 0; filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent); } }
@keyframes ld-map { 40% { stroke-opacity: 1; } to { fill-opacity: 1; stroke-opacity: .35; filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent); } }
@keyframes ld-unglow { to { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent); } }
@keyframes ld-grid { to { stroke: #7a7f86; filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent); } }
@keyframes ld-text { to { fill-opacity: 1; stroke-opacity: 0; filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent); } }
@keyframes ld-run { to { offset-distance: 100%; } }
@keyframes ld-spark { 0%, 90% { opacity: 1; } to { opacity: 0; } }
@keyframes ld-wave { from { opacity: .7; transform: scale(.7); } to { opacity: 0; transform: scale(2.6); } }
@keyframes ld-bar { to { transform: scaleX(1); } }
@keyframes ld-out { to { opacity: 0; visibility: hidden; } }
@keyframes ld-zoom { to { transform: scale(1.06); } }

.cps-loader.ld-skip, .cps-loader.ld-skip .ld-stage { animation: ld-out .3s ease forwards; }
/* reduced motion: the finished logo, briefly, without any tracing */
.cps-loader.ld-static { animation: ld-out .3s .6s ease forwards; }
.cps-loader.ld-static * { animation: none !important; }
.cps-loader.ld-static .tr, .cps-loader.ld-static .tr-text { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; filter: none; }
.cps-loader.ld-static .ld-rings .tr, .cps-loader.ld-static .ld-pump > path:not(.ld-cap) { stroke-opacity: 1; }
.cps-loader.ld-static .ld-pump > path:not(.ld-cap) { stroke: #7a7f86; }
.cps-loader.ld-static .ld-bar span { transform: scaleX(1); }

/* Motion: content is visible by default; JS only hides it when Motion is available */
.reveal-ready [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }
