/* ==========================================================
   Impundu Group — styles
   Layout, spacing and type follow designpickle.com (measured at 1440px);
   colour comes from the Impundu brand (2026 brochure + logo).

   1. Tokens          2. Base & typography     3. Buttons & links
   4. Header & menus  5. Heroes                6. Sections & headings
   7. Cards & grids   8. Carousels             9. Stats, table, quote
   10. Catalog        11. Forms & contact      12. Footer
   13. Motion         14. Utilities
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette mapped onto Design Pickle's roles */
  --black: #ffffff;           /* page background (white, sober) */
  --black-2: #f4f5f7;         /* card surface */
  --black-3: #eaecf0;         /* raised surface */
  --line-dark: #dde1e8;       /* hairlines */
  --light: #f5f6f8;           /* alternate light sections */
  --white: #ffffff;
  --ink: #0e1f44;             /* headings */
  --text: #4a5468;            /* body text */
  --text-muted: #6b7489;
  --text-dark: #0e1f44;
  --text-dark-muted: #4f5d7f; /* body on light        (DP #686868) */
  --accent: #fcb316;          /* brochure amber       (DP lime)    */
  --accent-hover: #ffc53d;
  --blue: #2d4c9f;            /* logo blue: numbers on light (DP #2c3aff) */
  --orange: #ee8e21;          /* logo orange */
  --focus: var(--blue);

  /* Shape & layout (DP values) */
  --radius-card: 12px;
  --radius-media: 20px;
  --radius-sm: 12px;
  --radius: 20px;
  --max: 1264px;              /* 1232px content + 2 × 16px gutter */
  --gutter: 16px;
  --header: 80px;
  --section: 120px;

  /* Type */
  --body: "Lato", system-ui, sans-serif;
  --display: "Bw Gradual", "Archivo", "Arial Black", sans-serif;
  --display-stretch: 88%;     /* Archivo tuned to Bw Gradual's width */
}
@media (max-width: 760px) { :root { --section: 72px; --header: 68px; } }
/* Large screens (24"–32" monitors, ultrawides): scale the whole design up
   so it fills the screen like it does on a laptop, instead of leaving wide
   empty margins. --z is the zoom factor; viewport units below divide by it. */
:root { --z: 1; }
@media (min-width: 1700px) { :root { --z: 1.15; } }
@media (min-width: 1900px) { :root { --z: 1.25; } }
@media (min-width: 2200px) { :root { --z: 1.4; } }
@media (min-width: 2500px) { :root { --z: 1.6; } }
@media (min-width: 3000px) { :root { --z: 1.75; } }
@media (min-width: 3600px) { :root { --z: 2; } }
@media (min-width: 1700px) { body { zoom: var(--z); } }

/* ---------- 2. Base & typography ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); scrollbar-color: var(--line-dark) var(--black); }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 16px/24px var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--text-dark); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.display, .stat__num, .stat-card__num, .case__client, .tl-step__num, .nf__code, .footer__big {
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: 900;
  font-size-adjust: cap-height 0.75;
}
.display { margin: 0; color: var(--ink); text-transform: uppercase; letter-spacing: 0; overflow-wrap: break-word; }
.display--xl { font-size: clamp(38px, 6vw, 84px); line-height: 1.143; }  /* 84 / 96 */
.display--lg { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.133; } /* 60 / 68 */
.display--md { font-size: clamp(26px, 3vw, 40px); line-height: 1.2; }
.section--light .display { color: var(--text-dark); }

.eyebrow { display: block; margin: 0 0 4px; font: 400 16px/24px var(--body); text-transform: uppercase; color: var(--blue); }
.section--light .eyebrow { color: var(--blue); }
.lead { margin: 0; max-width: 924px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.333; color: var(--text); } /* 24 / 32 */
.section--light .lead { color: var(--text-dark-muted); }

/* ---------- 3. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: 64px; border: 1.2px solid transparent;
  font: 700 16px/1 var(--body); white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--text-dark); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(0,0,0,.45); }
.btn--ghost { border-color: var(--accent); color: var(--ink); }
.btn--ghost:hover { background: var(--accent); color: var(--text-dark); }
.btn--outline-dark { border-color: var(--text-dark); color: var(--text-dark); }
.btn--outline-dark:hover { background: var(--text-dark); color: var(--white); }
.btn:active { transform: translateY(0); box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; color: var(--blue); font-weight: 700; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

.section--light, .form, .lightbox__card, .compare { --focus: var(--blue); }
.band__card { --focus: var(--white); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- 4. Header & menus ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--text-dark); padding: 10px 16px; border-radius: 40px; font-weight: 700; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }

.nav { position: sticky; top: 0; z-index: 60; background: var(--black); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.is-scrolled { border-bottom-color: var(--line-dark); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.logo { display: inline-flex; flex: 0 0 auto; }
.logo img { height: 48px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav__links a, .nav__trigger { position: relative; color: var(--ink); font: 400 16px/24px var(--body); white-space: nowrap; transition: color .15s; }
.nav__trigger { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; }
.nav__trigger svg { transition: transform .3s ease; }
.nav__links a:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"], .nav__trigger.is-active, .nav__links a[aria-current="page"] { color: var(--blue); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__links a[aria-current="page"]::after, .nav__trigger.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__cta { height: 48px; padding: 0 20px; font-size: 16px; }

.lang { display: inline-flex; padding: 3px; border-radius: 40px; border: 1.2px solid var(--line-dark); }
.lang button { min-width: 40px; min-height: 36px; padding: 6px 11px; border: 0; border-radius: 40px; background: none; color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: .04em; transition: background .2s, color .2s; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--text-dark); }
.lang button:not([aria-pressed="true"]):hover { color: var(--ink); }

.nav__toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; color: var(--ink); }
.nav__toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile { display: none; }

/* Mega menus: full-width panel, fade + 20px slide over 0.3s (as on DP) */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--line-dark); box-shadow: 0 28px 36px -28px rgba(14,31,68,.25);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: visibility 0s linear .3s, opacity .3s ease, transform .3s ease;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding-top: 32px; padding-bottom: 40px; }
.mega__title { margin: 0 0 16px; font: 400 16px/24px var(--body); text-transform: uppercase; color: var(--blue); }
.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.mega__link { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: var(--radius-card); transition: background .2s; }
.mega__link:hover, .mega__link[aria-current="page"] { background: rgba(14,31,68,.05); }
.mega__ic { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(14,31,68,.06); color: var(--ink); transition: background .2s, color .2s; }
.mega__link:hover .mega__ic { background: var(--accent); color: var(--text-dark); }
.mega__link strong { display: block; color: var(--ink); font: 700 16px/24px var(--body); }
.mega__link small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 14px; line-height: 20px; }
.mega__all { margin: 16px 0 0 12px; }
.mega__feature { position: relative; display: flex; align-items: flex-end; min-height: 280px; overflow: hidden; border-radius: 16px; background: var(--white); }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mega__feature:hover img { transform: scale(1.05); }
.mega__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(14,31,68,.95)); }
.mega__feature-body { position: relative; z-index: 1; display: grid; gap: 6px; padding: 22px; color: rgba(255,255,255,.85); font-size: 14px; }
.mega__feature-body strong { color: var(--white); font-size: 20px; }
.mega__feature .link-arrow { color: var(--accent); }
.mega-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5,12,30,.25); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.mega-open .mega-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }

@media (max-width: 1240px) { .nav__links { gap: 20px; } .nav__links a, .nav__trigger { font-size: 15px; } .nav__actions { gap: 12px; } }
@media (max-width: 1180px) {
  .nav__links, .nav__cta, .mega, .mega-scrim { display: none; }
  .nav__toggle { display: block; }
  .nav__actions { gap: 10px; }
  .logo img { height: 38px; }
  .nav__mobile {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - var(--header)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--black); border-top: 1px solid var(--line-dark); box-shadow: 0 24px 32px -24px rgba(14,31,68,.2);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .3s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s;
  }
  .nav.is-open .nav__mobile { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__mobile-inner { display: flex; flex-direction: column; padding: 8px var(--gutter) 28px; }
  .m-group summary, .m-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-dark); color: var(--ink); font-weight: 700; font-size: 18px; list-style: none; cursor: pointer; }
  .m-group summary::-webkit-details-marker { display: none; }
  .m-group summary svg { transition: transform .3s; }
  .m-group[open] summary svg { transform: rotate(180deg); }
  .m-group ul { margin: 0; padding: 8px 0; list-style: none; border-bottom: 1px solid var(--line-dark); }
  .m-group li a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); font-weight: 700; }
  .m-group li a svg { color: var(--blue); }
  .m-link[aria-current="page"], .m-group a[aria-current="page"] { color: var(--blue); }
  .nav__mobile-inner .btn { width: 100%; margin-top: 24px; }
}

/* ---------- 5. Heroes ---------- */
.hero__ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Home: text over an endlessly scrolling strip of 340×460 cards (DP layout) */
.home-hero { position: relative; overflow: hidden; padding: var(--section) 0; min-height: 700px; }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--black) 34%, rgba(255,255,255,.8) 52%, rgba(255,255,255,0) 72%); }
.home-hero__grid { position: relative; z-index: 2; }
.home-hero__text { max-width: 924px; }
.home-hero .lead { max-width: 640px; margin-top: 4px; }
@media (min-width: 961px) { .home-hero .lead { max-width: min(600px, calc(50vw / var(--z) - 80px)); } }
.hero-strip { position: absolute; z-index: 0; top: var(--section); left: 51%; width: max-content; }
.hero-strip__track { display: flex; gap: 21px; width: max-content; animation: marquee 57s linear infinite; }
.hero-strip img { flex: 0 0 auto; width: 340px; height: 460px; border-radius: 16px; object-fit: cover; background: var(--white); }
@media (max-width: 1100px) { .hero-strip { left: 56%; } .hero-strip img { width: 280px; height: 380px; } }
@media (max-width: 960px) {
  .home-hero { min-height: 0; padding-top: 48px; padding-bottom: 56px; }
  .home-hero::after { display: none; }
  .hero-strip { position: relative; top: auto; left: auto; margin-top: 40px; padding-left: var(--gutter); }
  .hero-strip img { width: 220px; height: 300px; }
}

/* Inner pages & service pages: text-only hero, 120px padding (DP) */
.page-hero, .svc-hero { position: relative; padding: var(--section) 0; overflow: hidden; }
.page-hero h1 { max-width: 924px; }
.page-hero .lead, .svc-hero .lead { margin-top: 4px; max-width: 924px; }
.svc-hero h1 { max-width: 924px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--text-muted); font-size: 14px; }
.crumbs a:hover { color: var(--blue); }
.crumbs span:last-child { color: var(--ink); }
.page-hero--contact { padding-top: 72px; }
.page-hero--contact h1 { max-width: none; }

/* ---------- 6. Sections & headings ---------- */
.section { padding: var(--section) 0; }
.section--light { background: var(--light); color: var(--text-dark-muted); }
.section--tight-top { padding-top: 0; }
.center { margin-top: 48px; text-align: center; }

.heading { display: flex; flex-direction: column; align-items: center; margin-bottom: 48px; text-align: center; }
.heading .display { max-width: 820px; }
.heading .lead { margin: 8px auto 0; max-width: 640px; font-size: 16px; line-height: 24px; }
.heading .btn { margin-top: 24px; }
.heading--left { align-items: flex-start; text-align: left; }
.heading--left .display { max-width: 924px; }
.heading--left .lead { margin-left: 0; }
.heading--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; text-align: left; }
.heading--split > div { flex: 1 1 280px; min-width: 0; }
.heading--split .lead { margin: 8px 0 0; font-size: 16px; line-height: 24px; }
/* DP: a dashed vertical line leads into centred headings on dark sections */
.section:not(.section--light) .heading:not(.heading--left):not(.heading--split)::before {
  content: ""; width: 0; height: 96px; margin-bottom: 32px; border-left: 1px dashed #c3c9d4;
}

/* ---------- 7. Cards & grids ---------- */
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Banner: text card + separate image, side by side (DP partner block) */
.banner { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; color: inherit; }
.banner__body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px; border-radius: var(--radius-card); background: var(--black-2); }
.banner__body h2 { margin: 0; color: var(--ink); font: 700 26px/32px var(--body); }
.banner__body p { margin: 0; }
.banner__visual { position: relative; min-height: 316px; overflow: hidden; border-radius: 16px; background: var(--white); }
.banner__visual .photo { transition: transform .6s ease; }
.banner:hover .banner__visual .photo { transform: scale(1.04); }
@media (max-width: 860px) { .banner { grid-template-columns: 1fr; } .banner__visual { min-height: 240px; } }

/* Feature cards: tall image cards + short icon cards (DP bento) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--radius-card); background: var(--black-2); transition: transform .3s ease, background-color .3s ease; }
.feature:hover { transform: translateY(-4px); background: var(--black-3); }
.feature__media { position: relative; height: 280px; margin-bottom: auto; overflow: hidden; border-radius: var(--radius-card); background: var(--white); }
.feature__media .photo { transition: transform .6s ease; }
.feature:hover .feature__media .photo { transform: scale(1.05); }
.feature__icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--blue); }
.feature__icon svg { width: 36px; height: 36px; }
.feature__body { display: grid; gap: 8px; }
.feature h3 { margin: 0; color: var(--ink); font: 700 26px/32px var(--body); }
.feature p { margin: 0; color: var(--text); }
.feature--lg { background: var(--blue); }
.feature--lg:hover { background: #3657ad; }
.feature--lg h3 { color: var(--white); }
.feature--lg p { color: rgba(255,255,255,.85); }
.feature--lg .feature__icon { color: var(--accent); }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } .feature__media { height: 220px; } }

/* Process steps: 400×480 cards, 336×280 media (DP) */
.process-line { display: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--radius-card); background: var(--black-2); }
.step__visual { position: relative; height: 280px; overflow: hidden; border-radius: var(--radius-card); background: var(--black-3); }
.step__visual .photo { transition: transform .6s ease; }
.step:hover .step__visual .photo { transform: scale(1.05); }
.step h3 { margin: 0 0 8px; color: var(--ink); font: 700 26px/32px var(--body); }
.step p { margin: 0; color: var(--text); }
.step--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.step--wide .step__visual { order: 2; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } .step--wide { grid-template-columns: 1fr; } .step--wide .step__visual { order: 0; } }
.ui-form { position: absolute; inset: 24px; display: flex; flex-direction: column; gap: 10px; }
.ui-field { height: 32px; border-radius: 8px; background: rgba(14,31,68,.08); }
.ui-field--short { width: 60%; }
.ui-field--tall { height: 72px; }
.ui-btn { align-self: flex-start; width: 96px; height: 28px; border-radius: 40px; background: var(--accent); }
.ui-form--lg { inset: 32px; gap: 14px; }
.ui-form--lg .ui-field { height: 40px; }
.ui-form--lg .ui-field--tall { height: 90px; }

/* Service cards (overview & "other services"): DP service-card anatomy */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
.svc-card { display: flex; flex-direction: column; gap: 16px; color: inherit; }
.svc-card__media { position: relative; aspect-ratio: 408 / 440; overflow: hidden; border-radius: var(--radius-media); background: var(--white); }
.svc-card__media .photo { transition: transform .6s ease; }
.svc-card:hover .svc-card__media .photo { transform: scale(1.05); }
.svc-card__body { display: grid; gap: 8px; }
.svc-card h3 { margin: 0; color: var(--ink); font: 700 26px/32px var(--body); }
.svc-card p { margin: 0; color: var(--text); }
.section--light .svc-card h3 { color: var(--text-dark); }
.section--light .svc-card p { color: var(--text-dark-muted); }
.section--light .svc-card .link-arrow { color: var(--blue); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* Bento image block with scroll-linked scale */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
.bento__cell { position: relative; overflow: hidden; border-radius: var(--radius-media); background: var(--white); }
.bento__cell:first-child { grid-row: span 2; }
.bento__cell .photo { transition: transform .8s ease; }
.bento__cell:hover .photo { transform: scale(1.04); }
.bento--wide { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 440px; }
.bento--wide .bento__cell:first-child { grid-row: auto; }
@media (max-width: 760px) {
  .bento, .bento--wide { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px; }
  .bento__cell:first-child, .bento--wide .bento__cell:first-child { grid-row: auto; grid-column: 1 / -1; }
}

/* Work page cards */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work-card { overflow: hidden; border-radius: var(--radius-card); background: var(--black-2); scroll-margin-top: 110px; transition: transform .3s ease; }
.work-card:hover { transform: translateY(-4px); }
.work-card:target { outline: 2px solid var(--blue); outline-offset: 4px; }
.work-card.is-hidden { display: none; }
.work-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--white); }
.work-card__media .photo { transition: transform .7s ease; }
.work-card:hover .work-card__media .photo { transform: scale(1.05); }
.work-card__body { padding: 32px; }
.work-card h3 { margin: 4px 0 8px; color: var(--ink); font: 700 26px/32px var(--body); }
.work-card p { margin: 0 0 20px; }
.work-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line-dark); }
.work-item__cat { color: var(--blue); font-size: 14px; text-transform: uppercase; }
.work-item__client { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }

/* Boutique feed: featured post + 3-column grid */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-card); background: var(--black-2); scroll-margin-top: 110px; }
.post:target { outline: 2px solid var(--blue); outline-offset: 4px; }
.post__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--black-3); }
.post__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.post__media .photo { transition: transform .7s ease; }
.post:hover .post__media .photo { transform: scale(1.04); }
.post__body { display: grid; gap: 8px; align-content: start; padding: 24px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--text-muted); font-size: 14px; }
.post__tag { padding: 2px 12px; border-radius: 40px; background: rgba(45,76,159,.1); color: var(--blue); font-weight: 700; }
.post h3 { margin: 0; color: var(--ink); font: 700 22px/28px var(--body); }
.post p { margin: 0; }
.post--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.post--featured .post__body { align-content: center; gap: 12px; padding: 40px; }
.post--featured h3 { font-size: 30px; line-height: 36px; }
.post--featured p { font-size: 18px; line-height: 28px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } .post--featured { grid-template-columns: 1fr; } .post--featured .post__body { padding: 28px; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } .post--featured h3 { font-size: 24px; line-height: 30px; } }

/* Values (about) */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value { padding-top: 24px; border-top: 1px dashed var(--text-dark); }
.value h3 { margin: 0 0 8px; color: var(--text-dark); font: 700 26px/32px var(--body); }
.value p { margin: 0; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* Split text block (about) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.split .lead { font-size: 20px; line-height: 32px; }
.split .lead + .lead { margin-top: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Method timeline */
.timeline { border-top: 1px dashed var(--line-dark); }
.tl-step { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 0; border-bottom: 1px dashed var(--line-dark); }
.tl-step__num { align-self: start; font-size: 72px; line-height: 1; color: var(--blue); }
.tl-step__text .lead { margin-top: 12px; font-size: 18px; line-height: 28px; }
.tl-step__img { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-media); background: var(--black-2); }
@media (max-width: 860px) { .tl-step { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 40px 0; } .tl-step__num { font-size: 48px; } }

/* Help card: DP "Have questions?" */
.help { display: flex; align-items: center; gap: 24px; padding: 24px; border-radius: var(--radius-media); background: var(--black-3); }
.help__icon { flex: 0 0 auto; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 16px; background: var(--white); color: var(--ink); }
.help__icon svg { width: 64px; height: 64px; }
.help h2 { margin: 0 0 8px; color: var(--ink); font: 700 26px/32px var(--body); }
.help p { margin: 0 0 12px; }
@media (max-width: 560px) { .help { flex-direction: column; align-items: flex-start; } .help__icon { width: 72px; height: 72px; } .help__icon svg { width: 36px; height: 36px; } }

/* CTA band */
.band { padding: 0 0 var(--section); }
.band__card { position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px); border-radius: var(--radius-media); background: var(--blue); text-align: center; }
.band__pattern { position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(circle at 100% 0%, rgba(255,255,255,.06) 0 2px, transparent 2px 40px); }
.band__card > *:not(.band__pattern) { position: relative; }
.band__card .display { color: var(--white); }
.band__card .eyebrow { color: var(--accent); }
.band__card .btn--ghost { color: var(--white); }
.band__card .lead { margin: 8px auto 24px; max-width: 640px; font-size: 18px; line-height: 28px; color: rgba(255,255,255,.88); }
.band__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- 8. Carousels ---------- */
/* Client logo scroller */
.logos { padding: 0 0 var(--section); }
.logos__label { margin: 0 0 24px; color: var(--ink); text-align: center; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 57s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; display: grid; place-items: center; padding: 0 40px; }
.marquee__item img { width: auto; height: 72px; max-width: 220px; object-fit: contain; user-select: none; transition: transform .2s ease; }
.marquee__item:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .marquee__item { padding: 0 24px; } .marquee__item img { height: 56px; max-width: 160px; } }

/* Keyword pills (service pages): filled rounded rectangles, no border (DP) */
.kw-marquee { overflow: hidden; padding: 0 0 var(--section); }
.kw-marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee-third 45s linear infinite; }
.kw { flex: 0 0 auto; height: 48px; padding: 12px 20px; border-radius: var(--radius-card); background: var(--black-2); color: var(--ink); white-space: nowrap; }

/* Services carousel: 408×500 media, title + tags, bleeds to the right edge (DP) */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 16px; margin-right: calc((100% - var(--vw, 100vw) / var(--z)) / 2);
  padding-bottom: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel__track.is-dragging a { pointer-events: none; }
.service { flex: 0 0 min(408px, 82vw); display: flex; flex-direction: column; gap: 16px; color: inherit; scroll-snap-align: start; }
.service:last-child { margin-right: var(--gutter); }
.service__media { position: relative; height: 500px; overflow: hidden; border-radius: var(--radius-media); background: var(--white); }
.service__media .photo { transition: transform .5s ease; }
.service:hover .service__media .photo { transform: scale(1.05); }
.service h3 { margin: 0; color: var(--ink); font: 700 26px/32px var(--body); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 2px 12px; border-radius: 40px; background: rgba(14,31,68,.06); color: var(--ink); font-size: 14px; }
.carousel__controls { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.carousel__btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.2px solid var(--ink); background: transparent; color: var(--ink); transition: background .2s, color .2s, opacity .2s; }
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--text-dark); }
.carousel__btn:disabled { opacity: .3; pointer-events: none; }
@media (max-width: 600px) { .service__media { height: 420px; } }

/* Auto-advancing case study carousel */
.auto-carousel { overflow: hidden; padding-left: max(var(--gutter), calc((100vw / var(--z) - var(--max)) / 2 + var(--gutter))); touch-action: pan-y; }
.auto-carousel__track { display: flex; gap: 16px; width: max-content; cursor: grab; }
.auto-carousel__track.is-dragging { cursor: grabbing; }
.case { position: relative; flex: 0 0 auto; width: 480px; height: 540px; overflow: hidden; border-radius: var(--radius-media); background: var(--white); color: var(--white); user-select: none; }
.case .photo { transition: transform .8s ease; }
.case:hover .photo { transform: scale(1.05); }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,31,68,0) 35%, rgba(14,31,68,.95)); }
.case__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 8px; padding: 32px; }
.case__client { font-size: 34px; font-weight: 800; line-height: 40px; text-transform: uppercase; color: var(--accent); }
.case h3 { margin: 0; font: 700 20px/28px var(--body); }
.case__cat { justify-self: start; padding: 2px 12px; border-radius: 40px; background: rgba(255,255,255,.14); font-size: 14px; }
@media (max-width: 600px) { .case { width: 80vw; height: 440px; } }

/* Tabs + draggable image row (service pages) */
.range { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.range__intro { position: sticky; top: calc(var(--header) + 40px); }
.range__intro .lead { margin: 8px 0 24px; font-size: 18px; line-height: 28px; }
.tabs { min-width: 0; overflow-x: clip; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs__tab, .chip { min-height: 40px; padding: 8px 16px; border: 1.2px solid #7d89a5; border-radius: 40px; background: var(--white); color: var(--text-dark); font-weight: 700; font-size: 14px; transition: all .2s; }
.tabs__tab:hover, .chip:hover { border-color: var(--text-dark); }
.tabs__tab[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--text-dark); border-color: var(--text-dark); color: var(--accent); }
.tabs__panel { animation: tab-in .45s cubic-bezier(.22,1,.36,1); }
.drag-row { display: flex; gap: 16px; padding-bottom: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.drag-row::-webkit-scrollbar { display: none; }
.drag-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.drag-row__item { flex: 0 0 min(340px, 75%); aspect-ratio: 340 / 460; margin: 0; overflow: hidden; border-radius: 16px; background: var(--white); scroll-snap-align: start; }
.drag-row__item img { width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
@media (max-width: 960px) { .range { grid-template-columns: minmax(0, 1fr); } .range__intro { position: static; } }

/* ---------- 9. Stats, table, quote ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-bottom: 64px; }
.stat { display: grid; gap: 24px; align-content: start; padding-bottom: 24px; border-bottom: 1px dashed var(--text-dark); }
.stat__num { font-size: clamp(48px, 5.8vw, 84px); line-height: 1.143; color: var(--blue); }
.stat p { margin: 0; max-width: 560px; color: var(--text-dark); font-size: 20px; line-height: 32px; }
.section:not(.section--light) .stat { border-bottom-color: var(--line-dark); }
.section:not(.section--light) .stat__num { color: var(--blue); }
.section:not(.section--light) .stat p { color: var(--text); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 32px; } .stat p { font-size: 18px; line-height: 28px; } }

/* Image stat cards: number on the photo, label in a translucent bar (DP) */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 480px; overflow: hidden; border-radius: var(--radius-media); color: var(--white); }
.stat-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14,31,68,.55), rgba(14,31,68,0) 40%); }
.stat-card .photo { transition: transform .8s ease; }
.stat-card:hover .photo { transform: scale(1.05); }
.stat-card__num { position: relative; z-index: 2; padding: 32px 24px 0; font-size: clamp(40px, 4.4vw, 60px); line-height: 1.133; }
.stat-card p { position: relative; z-index: 2; margin: 0; padding: 32px 24px; background: rgba(14,31,68,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--white); }
@media (max-width: 860px) { .stat-cards { grid-template-columns: 1fr; } .stat-card { height: 380px; } }

/* Comparison table: dark header block, 26px row titles (DP "Why us?") */
.compare { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--radius-media); background: var(--white); }
.compare table { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare th, .compare td { padding: 24px 16px; text-align: center; border-bottom: 1px solid #e3e7f1; }
.compare thead tr, .compare tr.is-us { background: var(--light); }
.compare thead th, .compare thead td { padding-top: 32px; border-bottom: 0; }
.compare thead th { color: var(--ink); font-weight: 700; }
.compare tr.is-us th, .compare tr.is-us td { border-bottom: 0; padding-bottom: 32px; }
.compare tbody th { width: 40%; text-align: left; padding-left: 24px; }
.compare tbody th strong { display: block; margin-bottom: 4px; color: var(--text-dark); font: 700 26px/32px var(--body); }
.compare tbody th span { display: block; color: var(--text-dark-muted); font-weight: 400; }
.compare tr.is-us th strong { color: var(--blue); }
.compare tr.is-us th span { color: var(--text); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #9aa3b8; }
.dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.dot--half::after { background: linear-gradient(90deg, #9aa3b8 50%, transparent 50%); }
.dot--full { border-color: var(--accent); background: var(--accent); }
.dot--full::after { width: 12px; height: 7px; border-radius: 0; border-left: 2.5px solid var(--text-dark); border-bottom: 2.5px solid var(--text-dark); transform: rotate(-45deg) translate(1px, -1px); }
.compare__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 20px; color: var(--text-dark-muted); font-size: 14px; }
.compare__legend span { display: inline-flex; align-items: center; gap: 8px; }
.compare__legend .dot { width: 18px; height: 18px; }
.compare__legend .dot::after { width: 7px; height: 7px; }
.compare__legend .dot--full::after { width: 8px; height: 5px; border-width: 2px; }

/* Quote: 32/40 (DP testimonial) */
.quote { max-width: 924px; margin: 0 auto; }
.quote blockquote { margin: 0; color: var(--ink); font: 400 clamp(24px, 2.6vw, 32px)/1.25 var(--body); }
.quote blockquote mark { background: none; color: var(--blue); }
.quote__by { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.quote__avatar { display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: var(--white); }
.quote__avatar img { width: 70%; height: 70%; object-fit: contain; }
.quote__by strong { display: block; color: var(--ink); }

/* FAQ accordion */
.faq { border-top: 1px dashed var(--line-dark); }
.faq__item { border-bottom: 1px dashed var(--line-dark); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; color: var(--ink); font: 700 clamp(18px, 1.8vw, 22px)/1.3 var(--body); list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue); }
.faq__icon { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1.2px solid currentColor; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s ease; }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a p { margin: 0 0 24px; max-width: 720px; font-size: 18px; line-height: 28px; }
.section--light .faq, .section--light .faq__item { border-color: #b9c1d4; }
.section--light .faq__item summary { color: var(--text-dark); }
.section--light .faq__item summary:hover { color: var(--blue); }

/* ---------- 10. Catalog & lightbox ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.chip .n { margin-left: 4px; font-weight: 400; opacity: .6; }
.filters--dark .chip { background: transparent; border-color: var(--line-dark); color: var(--ink); }
.filters--dark .chip:hover { border-color: var(--ink); }
.filters--dark .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--text-dark); }
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.catalog__item { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 16px; background: var(--white); cursor: zoom-in; animation: pop .35s ease both; transition: transform .25s ease, box-shadow .25s ease; }
.catalog__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.catalog__item:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -16px rgba(0,0,0,.3); }
.catalog__item:hover img { transform: scale(1.05); }
.catalog__item span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 40px; background: var(--text-dark); color: var(--white); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: all .2s ease; }
.catalog__item:hover span, .catalog__item:focus-visible span { opacity: 1; transform: none; }
.catalog__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.catalog__more .btn[hidden] { display: none; }
.section--catalog { padding-top: 56px; }
@media (max-width: 960px) { .catalog { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) {
  .catalog { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; margin: 0 calc(var(--gutter) * -1) 24px; padding: 0 var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
}

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(8,18,40,.88); backdrop-filter: blur(4px); }
.lightbox__inner { position: fixed; inset: 0; display: grid; place-items: center; padding: 72px 16px 24px; }
.lightbox__card { display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100vh / var(--z) - 110px); overflow: hidden; border-radius: var(--radius-media); background: var(--white); }
.lightbox__media { flex: 1 1 auto; display: flex; min-height: 0; background: var(--white); }
.lightbox__card img { width: 100%; min-height: 0; max-height: calc(100vh / var(--z) - 210px); object-fit: contain; background: var(--white); }
.lightbox__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid #e6e9f2; }
.lightbox__bar strong { display: block; color: var(--text-dark); font-weight: 700; }
.lightbox__bar small { color: var(--text-dark-muted); }
.lightbox__bar .btn { background: var(--text-dark); color: var(--accent); }
.lightbox__bar .btn:hover { background: var(--accent); color: var(--text-dark); }
.lb-btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--white); color: var(--text-dark); box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); transition: background .2s; }
.lb-btn:hover { background: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lightbox__inner { padding-bottom: 80px; } }

/* ---------- 11. Forms & contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact__info .lead { margin: 4px 0 0; font-size: 20px; line-height: 32px; }
.checks { display: grid; gap: 12px; margin: 28px 0 32px; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; }
.checks li::before { content: ""; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1f44' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.contact__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.contact__list li { display: flex; align-items: flex-start; gap: 14px; }
.contact__list .ic { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--text-dark); }
.contact__list .ic svg { width: 18px; height: 18px; }
.contact__list small { display: block; color: var(--text-muted); font-size: 13px; text-transform: uppercase; }
.contact__list a, .contact__list span { color: var(--ink); font-weight: 700; word-break: break-word; }
.contact__list a:hover { text-decoration: underline; }
.contact__socials { display: flex; flex-wrap: wrap; gap: 4px 16px; }

.form { display: grid; gap: 18px; padding: 32px; border: 1px solid var(--line-dark); border-radius: var(--radius-media); background: var(--white); }
.form__title { margin: 0 0 4px; color: var(--text-dark); font: 700 26px/32px var(--body); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 8px; color: var(--text-dark); font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 16px; font: inherit; color: var(--text-dark); caret-color: var(--blue);
  background: var(--light); border: 1.2px solid #7d89a5; border-radius: var(--radius-card);
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #5f6b85; opacity: 1; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text-dark); background: var(--white); }
.field .err { display: none; margin-top: 6px; color: #c0262d; font-size: 13px; }
.field.has-error input, .field.has-error textarea { border-color: #c0262d; }
.field.has-error .err { display: block; }
.form .btn { width: 100%; background: var(--text-dark); color: var(--accent); }
.form .btn:hover { background: var(--accent); color: var(--text-dark); }
.form__note { margin: 0; color: var(--text-dark-muted); font-size: 13px; text-align: center; }
.form__success { display: none; padding: 24px 8px; color: var(--text-dark); text-align: center; }
.form .display, .form__success h3 { color: var(--text-dark); }
.form.is-sent .form__success { display: block; }
.form.is-sent > :not(.form__success) { display: none; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } .form { padding: 24px; } }

/* ---------- 12. Footer ---------- */
.footer { padding: 72px 0 0; border-top: 1px solid var(--line-dark); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; }
.footer .logo img { height: 64px; }
.footer__brand p { max-width: 340px; margin: 16px 0 24px; }
/* DP column headings: bold uppercase with a dashed rule */
.footer__h { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--text-muted); color: var(--ink); font: 700 16px/24px var(--body); text-transform: uppercase; }
.footer ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.footer ul a { display: inline-block; padding: 6px 0; color: var(--ink); }
.footer ul a:hover { color: var(--blue); }
.footer ul li { color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: 6px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.2px solid var(--ink); color: var(--ink); transition: all .2s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--text-dark); }
.socials svg { width: 17px; height: 17px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px dashed var(--line-dark); color: var(--text-muted); font-size: 14px; }
.footer__bottom a:hover { color: var(--ink); }
.footer__big { margin: 48px 0 0; color: var(--black-3); font-size: clamp(48px, 13vw, 188px); line-height: .9; letter-spacing: -0.02em; text-align: center; text-transform: uppercase; user-select: none; }
.footer__strip { margin-top: 48px; background: var(--accent); color: var(--text-dark); font-weight: 700; }
.footer__strip .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.footer__strip a:hover { text-decoration: underline; }
.footer__strip-socials { display: inline-flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.footer__strip-socials a { display: grid; place-items: center; width: 28px; height: 28px; }
.footer__strip-socials svg { width: 20px; height: 20px; transition: transform .2s ease; }
.footer__strip-socials a:hover svg { transform: scale(1.15); }
@media (max-width: 860px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 400px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }

.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--text-dark); box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .2s ease; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }

/* 404 */
.nf { padding: 120px 0; text-align: center; }
.nf h1 { margin: 0 auto; }
.nf .hero__ctas { justify-content: center; }
.nf__code { margin: 0 0 12px; color: var(--blue); font-size: clamp(96px, 18vw, 200px); line-height: 1; }

/* ---------- 13. Motion ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-third { to { transform: translateX(calc(-100% / 3)); } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tab-in { from { opacity: 0; transform: translateX(24px); } }

/* Page transitions (cross-document View Transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Scroll entrances (DP): rise 40px, slide from -50px, scale from .95; --d staggers */
.anim [data-anim] { opacity: 0; transition: opacity .8s cubic-bezier(.22,1,.36,1) var(--d, 0ms), transform .8s cubic-bezier(.22,1,.36,1) var(--d, 0ms); }
.anim [data-anim="up"] { transform: translateY(40px); }
.anim [data-anim="left"] { transform: translateX(-50px); }
.anim [data-anim="scale"] { transform: scale(.95); }
.anim [data-anim].is-in { opacity: 1; transform: none; }
[data-scroll-scale] { transform-origin: 50% 0; }

/* Reduced motion: stop movement, keep colour/opacity feedback */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .hero-strip__track, .kw-marquee__track, .catalog__item, .tabs__panel { animation: none; }
  *, *::before, *::after { transition-property: color, background-color, border-color, opacity, visibility; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- 14. Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
