/* A-Projekt — global styles (values match the original design 1:1) */
:root {
  --bg: #fafaf9;
  --ink: #24272b;
  --ink-soft: #43474d;
  --ink-mute: #5c6167;
  --ink-faint: #9a9ea3;
  --red: #c9252c;
  --red-dark: #a81d23;
  --red-light: #e05a5f;
  --red-pale: #e8ada9;
  --line: #e6e5e2;
  --line-soft: #d8d7d3;
  --dark: #24272b;
  --dark-line: #3a3e44;
  --dark-text: #c9cbcf;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 249, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 76px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.site-header .logo { display: flex; align-items: center; }
.site-header .logo img { height: 32px; display: block; }
.site-nav {
  display: flex; gap: 34px; align-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 18px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.site-nav a { padding: 4px 0; }
.site-nav a.active { color: var(--red); border-bottom: 2px solid var(--red); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: none; background: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Type ---------- */
.kicker {
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.kicker--ondark { color: var(--red-pale); margin-bottom: 12px; }
.h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 44px;
  line-height: 1.08; text-transform: uppercase; margin: 0;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--dark); color: #fff; }
.page-hero .container { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 {
  font-family: var(--font-head); font-weight: 700; font-size: 56px;
  line-height: 1.05; text-transform: uppercase; margin: 0;
}
.page-hero .lead { margin: 16px 0 0; font-size: 18px; color: var(--dark-text); max-width: 720px; }

/* ---------- Home hero slider ---------- */
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero { position: relative; height: 640px; overflow: hidden; background: var(--dark); }
.hero-slide { position: absolute; inset: 0; transition: opacity 1.2s ease; opacity: 0; }
.hero-slide.active { opacity: 1; }
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; animation: heroZoom 9s ease-out both;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,25,0.35) 0%, rgba(20,22,25,0.55) 100%);
}
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.hero-kicker {
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--red-pale);
}
.hero-caption {
  font-family: var(--font-head); font-weight: 700; font-size: 62px;
  line-height: 1.04; text-transform: uppercase; color: #fff;
  max-width: 820px; text-wrap: balance;
}
.hero-actions { display: flex; gap: 14px; margin-top: 14px; }
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.btn--red { background: var(--red); color: #fff; font-size: 19px; padding: 14px 30px; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--ghost {
  border: 1px solid rgba(255,255,255,0.55); color: #fff;
  font-size: 19px; padding: 14px 30px;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }
.hero-dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 26px;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dots button {
  width: 34px; height: 4px; border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,0.45);
}
.hero-dots button.active { background: var(--red); }

/* ---------- Home: about ---------- */
.about { padding: 96px 32px 80px; display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 64px; max-width: 1240px; margin: 0 auto; }
.about-copy { font-size: 18px; line-height: 1.7; color: var(--ink-soft); display: flex; flex-direction: column; gap: 18px; }
.about-copy p { margin: 0; }
.about-copy .strong, .about-copy strong { font-weight: 600; color: var(--ink); }

/* ---------- Home: counters ---------- */
.counters { background: var(--dark); color: #fff; }
.counters .container { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.counter { text-align: center; }
.counter + .counter { border-left: 1px solid var(--dark-line); }
.counter-num {
  font-family: var(--font-head); font-weight: 700; font-size: 76px;
  line-height: 1; color: var(--red-light);
}
.counter-label { margin-top: 24px; font-size: 17px; color: var(--dark-text); max-width: 300px; margin-left: auto; margin-right: auto; }

/* ---------- Home: areas ---------- */
.areas { padding-top: 96px; padding-bottom: 40px; }
.areas .h2 { margin-bottom: 48px; max-width: 700px; }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.area-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 30px 28px; }
.area-card .num { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; color: var(--ink-faint); }
.area-card h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 27px;
  text-transform: uppercase; margin: 10px 0 12px;
}
.area-card p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-mute); }

/* ---------- Home: featured projects ---------- */
.featured { padding-top: 72px; padding-bottom: 40px; }
.featured-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 44px; flex-wrap: wrap;
}
.link-more {
  font-family: var(--font-head); font-weight: 600; font-size: 18px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.featured-card { position: relative; display: block; height: 280px; overflow: hidden; background: var(--dark); }
.featured-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-card .cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(20,22,25,0.85), rgba(20,22,25,0));
  padding: 44px 20px 16px;
}
.featured-card .cap span {
  color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: 22px; text-transform: uppercase;
}

/* ---------- Home: clients ---------- */
.clients { padding-top: 72px; padding-bottom: 96px; }
.clients .sub { margin: 0 0 40px; font-size: 17px; color: var(--ink-mute); max-width: 720px; }
.clients .h2 { margin-bottom: 12px; }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.client-tile {
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 22px; height: 110px;
}
.client-tile img { max-width: 100%; max-height: 66px; object-fit: contain; filter: grayscale(1); opacity: 0.75; }

/* ---------- Realizacje ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 18px;
  cursor: pointer; border: 1px solid var(--line-soft); background: #fff; color: var(--ink-soft);
}
.filter-btn.active { border-color: var(--red); background: var(--red); color: #fff; }
.projects-section { padding-top: 40px; padding-bottom: 96px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.project-card { cursor: pointer; background: #fff; border: 1px solid var(--line); }
.project-card:hover { border-color: var(--red); }
.project-card .thumb { height: 240px; overflow: hidden; background: #e9e8e5; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card .body { padding: 18px 20px 20px; }
.project-card h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 24px;
  line-height: 1.15; text-transform: uppercase; margin: 0 0 8px;
}
.project-card .cats {
  font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red); font-weight: 600;
}
.projects-empty { text-align: center; color: var(--ink-faint); font-size: 17px; padding: 48px 0; display: none; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,22,25,0.72);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.modal-backdrop.open { display: flex; }
.modal { background: #fff; max-width: 900px; width: 100%; max-height: 85vh; overflow: auto; position: relative; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border: none; background: var(--dark);
  color: #fff; font-size: 20px; cursor: pointer;
}
.modal-stage { position: relative; background: var(--dark); }
.modal img.modal-photo { width: 100%; height: 420px; object-fit: cover; display: block; }
@keyframes photoSwap { from { opacity: 0.25; } to { opacity: 1; } }
.modal img.modal-photo.swap { animation: photoSwap 0.35s ease; }
.modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 56px; border: none; cursor: pointer;
  background: rgba(20, 22, 25, 0.55); color: #fff; font-size: 26px; line-height: 1;
  display: none; transition: background-color 0.25s ease;
}
.modal-backdrop.has-gallery .modal-nav { display: block; }
.modal-nav:hover { background: var(--red); }
.modal-prev { left: 0; }
.modal-next { right: 0; }
.modal-thumbs {
  display: none; gap: 8px; padding: 10px 12px; overflow-x: auto;
  background: #f0efec; border-bottom: 1px solid var(--line);
}
.modal-backdrop.has-gallery .modal-thumbs { display: flex; }
.modal-thumbs img {
  width: 84px; height: 56px; object-fit: cover; flex: 0 0 auto;
  cursor: pointer; border: 2px solid transparent; opacity: 0.75;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.modal-thumbs img:hover { opacity: 1; }
.modal-thumbs img.active { border-color: var(--red); opacity: 1; }
.modal .body { padding: 28px 32px 36px; }
.modal .cats {
  font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red); font-weight: 600; margin-bottom: 8px;
}
.modal h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 34px;
  line-height: 1.1; text-transform: uppercase; margin: 0 0 14px;
}
.modal .desc { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
.modal .desc p { margin: 0 0 10px; }
.modal .desc p:last-child { margin-bottom: 0; }

/* ---------- Referencje ---------- */
.refs-section { padding-top: 48px; padding-bottom: 96px; }
.refs-columns { columns: 4 240px; column-gap: 16px; }
.refs-columns img {
  width: 100%; display: block; margin-bottom: 16px;
  border: 1px solid var(--line); background: #fff; cursor: zoom-in;
}
.refs-columns img:hover { border-color: var(--red); }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,22,25,0.85);
  display: none; align-items: center; justify-content: center;
  padding: 32px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
.lightbox-close {
  position: fixed; top: 20px; right: 24px; width: 44px; height: 44px;
  border: none; background: var(--red); color: #fff; font-size: 22px; cursor: pointer;
}

/* ---------- Kariera ---------- */
.benefits-section { padding-top: 72px; padding-bottom: 32px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.benefit-card {
  background: #fff; border: 1px solid var(--line); padding: 24px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.benefit-card .bar { width: 28px; height: 3px; background: var(--red); }
.benefit-card .label {
  font-family: var(--font-head); font-weight: 600; font-size: 21px;
  text-transform: uppercase; line-height: 1.2;
}
.jobs-section { padding-top: 56px; padding-bottom: 72px; }
.jobs-section .h2 { margin-bottom: 44px; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.job-card {
  background: #fff; border: 1px solid var(--line); padding: 32px 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.job-card h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 28px;
  text-transform: uppercase; margin: 0; color: var(--red);
}
.job-card .desc { display: flex; flex-direction: column; gap: 16px; }
.job-card .desc p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.job-card .desc ul, .job-card .desc ol { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.9; color: var(--ink-soft); }
.btn--apply {
  margin-top: auto; align-self: flex-start; background: var(--dark); color: #fff;
  font-size: 17px; padding: 12px 24px;
}
.btn--apply:hover { background: var(--red); color: #fff; }
.clause { background: #f0efec; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clause .container { padding-top: 44px; padding-bottom: 44px; }
.clause .note { margin: 0 0 10px; font-size: 16px; color: var(--ink-soft); }
.clause .note a { color: var(--red); font-weight: 600; }
.clause .text {
  margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-mute);
  font-style: italic; max-width: 900px;
}

/* ---------- Polityka CSR/ESG ---------- */
.policy-section { padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.policy-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 36px 38px; }
.policy-card .num { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; color: var(--ink-faint); }
.policy-card h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 32px;
  line-height: 1.1; text-transform: uppercase; margin: 10px 0 16px;
}
.policy-body { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); max-width: 900px; }
.policy-body p { margin: 0 0 12px; }
.policy-body ul, .policy-body ol { margin: 0 0 12px; padding-left: 22px; }
.policy-body li { margin-bottom: 6px; }
.policy-body > :last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.contact-section {
  padding: 72px 32px 40px; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start;
}
.contact-main { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 40px 38px; }
.contact-main img.logo { height: 34px; display: block; margin-bottom: 24px; }
.contact-main h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 30px;
  text-transform: uppercase; margin: 0 0 18px;
}
.contact-main .rows { display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.contact-main .rows a { color: var(--red); font-weight: 600; }
.contact-main .legal { font-size: 15px; color: var(--ink-mute); margin-top: 6px; }
.contact-main .actions { display: flex; gap: 12px; margin-top: 28px; }
.btn--red-sm { background: var(--red); color: #fff; font-size: 18px; padding: 13px 26px; }
.btn--red-sm:hover { background: var(--red-dark); color: #fff; }
.btn--outline { border: 1px solid var(--line-soft); color: var(--ink); font-size: 18px; padding: 13px 26px; }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); padding: 28px; }
.contact-card img { height: 30px; display: block; margin-bottom: 14px; }
.contact-card h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 23px;
  text-transform: uppercase; margin: 0 0 10px;
}
.contact-card .rows { font-size: 15.5px; line-height: 1.65; color: var(--ink-mute); }
.map-section { padding: 16px 32px 96px; max-width: 1240px; margin: 0 auto; }
.map-section iframe { width: 100%; height: 380px; border: 1px solid var(--line); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); }
.site-footer .cols {
  padding-top: 64px; padding-bottom: 28px;
  display: grid; grid-template-columns: 1.3fr 0.9fr 0.8fr 1.2fr; gap: 44px;
}
.nl-note { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; }
.nl-msg { margin: 0 0 12px; font-size: 14px; padding: 8px 10px; }
.nl-ok { background: rgba(90, 170, 100, 0.18); color: #b9e2bf; border: 1px solid rgba(90, 170, 100, 0.4); }
.nl-err { background: rgba(224, 90, 95, 0.15); color: var(--red-pale); border: 1px solid rgba(224, 90, 95, 0.4); }
.nl-row { display: flex; gap: 0; }
.nl-form input[type=email] {
  flex: 1; min-width: 0; padding: 11px 12px; font: inherit; font-size: 14.5px;
  border: 1px solid var(--dark-line); background: #2c2f34; color: #fff;
}
.nl-form input[type=email]::placeholder { color: var(--ink-faint); }
.nl-form input[type=email]:focus { outline: none; border-color: var(--red); }
.nl-btn {
  border: none; background: var(--red); color: #fff; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  letter-spacing: 0.07em; text-transform: uppercase; padding: 0 18px;
}
.nl-btn:hover { background: var(--red-dark); }
.nl-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); cursor: pointer; }
.nl-consent input { margin-top: 2px; accent-color: var(--red); }
.site-footer .logo { height: 30px; display: block; filter: brightness(0) invert(1); margin-bottom: 18px; }
.site-footer .about { padding: 0; margin: 0; font-size: 15px; line-height: 1.7; max-width: 380px; display: block; }
.site-footer .col-title {
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.site-footer .col-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; }
.site-footer .col-links a { color: var(--dark-text); }
.site-footer .col-links a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid var(--dark-line); }
.site-footer .bottom .container {
  padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; color: var(--ink-faint);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-legal-link { color: var(--dark-text); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-link:hover { color: #fff; }

/* ---------- Modern effects ---------- */
html { scroll-behavior: smooth; }

/* Scroll progress bar (injected by site.js) */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--red-light));
}

/* Compact header after scroll */
.site-header .container { transition: height 0.3s ease; }
.site-header .logo img { transition: height 0.3s ease; }
.site-header.scrolled .container { height: 62px; }
.site-header.scrolled .logo img { height: 27px; }

/* Buttons: shine sweep on hover */
.btn, .nl-btn, .filter-btn {
  position: relative; overflow: hidden;
}
.btn::before, .nl-btn::before {
  content: ''; position: absolute; top: 0; left: -130%;
  width: 60%; height: 100%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn:hover::before, .nl-btn:hover::before { left: 150%; }

/* Hero: kicker accent line + slide counter + scroll cue */
.hero-kicker { display: flex; align-items: center; gap: 14px; }
.hero-kicker::before {
  content: ''; width: 46px; height: 2px; background: var(--red);
  transform-origin: left; animation: growLine 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.55s both;
}
@keyframes growLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-count {
  position: absolute; z-index: 3; right: 32px; bottom: 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.85);
}
.hero-count em { font-style: normal; color: rgba(255, 255, 255, 0.4); margin: 0 6px; }
.hero-count span:last-child { color: rgba(255, 255, 255, 0.45); }
.hero-scroll {
  position: absolute; z-index: 3; left: 32px; bottom: 18px;
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px; background: none; cursor: pointer; padding: 0;
  transition: border-color 0.25s ease;
}
.hero-scroll:hover { border-color: #fff; }
.hero-scroll span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 2px; background: #fff;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Areas: subtle blueprint dot pattern + corner accent on cards */
.areas {
  background-image: radial-gradient(rgba(36, 39, 43, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.area-card { position: relative; overflow: hidden; }
.area-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  border-style: solid; border-width: 0 46px 46px 0;
  border-color: transparent rgba(201, 37, 44, 0.08) transparent transparent;
  transition: border-width 0.3s ease, border-color 0.3s ease;
}
.area-card:hover::after {
  border-width: 0 72px 72px 0;
  border-color: transparent rgba(201, 37, 44, 0.16) transparent transparent;
}
.area-card .num {
  background: linear-gradient(90deg, var(--red), var(--red-light));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Counters: diagonal section edges + gradient glowing numbers */
.counters {
  clip-path: polygon(0 0, 100% 34px, 100% 100%, 0 calc(100% - 34px));
}
.counters .container { padding-top: 100px; padding-bottom: 104px; }
.counter-num {
  background: linear-gradient(180deg, var(--red-light), var(--red));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 26px rgba(224, 90, 95, 0.35));
}

/* Featured cards: 3D tilt (JS) + shine sweep */
.featured-card {
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.featured-card:hover { box-shadow: 0 22px 48px rgba(20, 22, 25, 0.28); }
.featured-card::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  transform: translateX(-110%);
}
.featured-card:hover::before { transition: transform 0.7s ease; transform: translateX(110%); }

/* Hero caption: word-by-word rise */
.hero-caption .word {
  display: inline-block;
  animation: wordUp 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes wordUp {
  from { opacity: 0; transform: translateY(0.55em); }
  to { opacity: 1; transform: none; }
}

/* Hero slides: Ken Burns alternates direction between slides */
@keyframes heroZoomOut { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-slide:nth-child(even) img { animation-name: heroZoomOut; }

/* Active hero dot fills up over the slide duration */
.hero-dots button { position: relative; overflow: hidden; }
.hero-dots button.active { background: rgba(255, 255, 255, 0.45); }
.hero-dots button.active::after {
  content: ''; position: absolute; inset: 0; background: var(--red);
  transform-origin: left; animation: dotFill 7s linear both;
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Magnetic hero buttons */
.hero-actions .btn { transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease; will-change: transform; }

/* Counters: slow light band sweeping across the dark section */
.counters { position: relative; overflow: hidden; }
.counters::after {
  content: ''; position: absolute; top: -30%; bottom: -30%; left: -20%;
  width: 26%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-16deg);
  animation: countersSweep 7s ease-in-out infinite;
}
@keyframes countersSweep {
  0%, 55% { left: -30%; }
  100% { left: 125%; }
}

/* Featured captions: categories line + growing accent bar */
.featured-card .cap small {
  display: block; margin-top: 5px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-pale); font-family: var(--font-body); font-weight: 600;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.featured-card:hover .cap small { opacity: 1; transform: none; }
.featured-card .cap::before {
  content: ''; display: block; width: 26px; height: 3px; background: var(--red);
  margin-bottom: 10px; transition: width 0.35s ease;
}
.featured-card:hover .cap::before { width: 56px; }

/* Area cards: red progress line grows along the bottom on hover */
.area-card::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.area-card:hover::before { transform: scaleX(1); }

/* Clients: infinite marquee (pure CSS), pauses on hover */
.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients-track { display: flex; width: max-content; animation: clientsMarquee 38s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
.clients-set { display: flex; gap: 16px; padding-right: 16px; }
.clients-set .client-tile { width: 200px; flex: 0 0 auto; }
@keyframes clientsMarquee { to { transform: translateX(-50%); } }

/* ---------- Animations ---------- */

/* Sticky header gains a shadow once the page scrolls */
.site-header { transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(20, 22, 25, 0.1); }

/* Hero content entrance (staggered, on page load) */
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
html.js .hero-kicker { animation: heroContentIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both; }
html.js .hero-caption { animation: heroContentIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both; }
html.js .hero-actions { animation: heroContentIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both; }
html.js .hero-dots { animation: heroContentIn 0.7s ease 0.85s both; }

/* Section headings: red underline grows in after the reveal */
.h2 { position: relative; padding-bottom: 14px; }
.h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; background: var(--red);
  transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s;
}
html:not(.js) .h2::after, .h2.in::after, .h2.revealed::after { width: 56px; }

/* Counter number: pop + underline bar when the count-up finishes */
@keyframes counterPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.09); }
  100% { transform: scale(1); }
}
.counter-num { position: relative; display: inline-block; }
.counter-num.done { animation: counterPop 0.45s ease; }
.counter-num::after {
  content: ''; position: absolute; left: 50%; bottom: -14px;
  transform: translateX(-50%); height: 3px; width: 0; background: var(--red);
  transition: width 0.5s ease 0.1s;
}
.counter-num.done::after { width: 44px; }

/* Consent banner */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: var(--dark); color: var(--dark-text);
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
  padding: 16px 24px; box-shadow: 0 -12px 32px rgba(20, 22, 25, 0.3);
}
.consent-banner p { margin: 0; font-size: 14.5px; line-height: 1.55; max-width: 720px; }
.consent-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.consent-banner a:hover { color: var(--red-pale); }
.consent-actions { display: flex; gap: 10px; }
.consent-banner .btn { font-size: 15.5px; padding: 10px 20px; }
.consent-decline { border: 1px solid var(--dark-line); color: var(--dark-text); background: none; }
.consent-decline:hover { border-color: #fff; color: #fff; }

/* Scroll-to-top button */
#to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 46px; height: 46px; border: none; cursor: pointer;
  background: var(--red); color: #fff; font-size: 20px; line-height: 1;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.25s ease;
  box-shadow: 0 10px 26px rgba(20, 22, 25, 0.25);
}
#to-top.visible { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { background: var(--red-dark); }

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

.btn, .filter-btn, .link-more, .site-nav a, .hero-dots button, .client-tile img {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.3s ease, filter 0.3s ease;
}
.client-tile:hover img { filter: grayscale(0); opacity: 1; }

.project-card { transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.project-card:hover { box-shadow: 0 14px 34px rgba(20, 22, 25, 0.12); transform: translateY(-4px); }
.project-card .thumb img,
.featured-card img { transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.project-card:hover .thumb img,
.featured-card:hover img { transform: scale(1.06); }
.featured-card .cap { transition: padding-bottom 0.3s ease; }
.featured-card:hover .cap { padding-bottom: 22px; }

.refs-columns img { transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.refs-columns img:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 22, 25, 0.14); }

.area-card, .benefit-card, .job-card, .contact-card {
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.area-card:hover, .job-card:hover {
  border-color: var(--red); border-top-color: var(--red);
  box-shadow: 0 14px 34px rgba(20, 22, 25, 0.1); transform: translateY(-4px);
}
.benefit-card:hover { border-color: var(--red); transform: translateY(-3px); }
.benefit-card .bar { transition: width 0.35s ease; }
.benefit-card:hover .bar { width: 52px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop.open { animation: fadeIn 0.25s ease both; }
.modal-backdrop.open .modal { animation: modalIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.lightbox.open { animation: fadeIn 0.25s ease both; }
.lightbox.open img { animation: modalIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

@keyframes captionIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-caption.swap { animation: captionIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.project-card.filter-in { animation: cardIn 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-kicker::before, .hero-scroll span { animation: none; }
  .hero-scroll { display: none; }
  .hero-caption .word { animation: none; opacity: 1; transform: none; }
  .hero-slide img { animation: none; }
  .hero-dots button.active::after { animation: none; transform: none; }
  .counters::after { animation: none; display: none; }
  .clients-track { animation: none; flex-wrap: wrap; width: auto; }
  .clients-set:last-child { display: none; }
  .clients-marquee { -webkit-mask-image: none; mask-image: none; }
  .featured-card::before { display: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide img { animation: none; }
  html.js .hero-kicker, html.js .hero-caption, html.js .hero-actions, html.js .hero-dots { animation: none; }
  .h2::after { width: 56px; transition: none; }
  .counter-num.done { animation: none; }
  .counter-num.done::after { width: 44px; transition: none; }
  .modal-backdrop.open, .modal-backdrop.open .modal,
  .lightbox.open, .lightbox.open img,
  .hero-caption.swap, .project-card.filter-in { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about, .contact-section { grid-template-columns: 1fr; }
  .counters .container { grid-template-columns: 1fr; }
  .counter + .counter { border-left: none; border-top: 1px solid var(--dark-line); padding-top: 32px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hero-caption { font-size: 44px; }

  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { font-size: 17px; padding: 12px 22px; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 0 12px; font-size: 19px;
    box-shadow: 0 18px 30px rgba(20, 22, 25, 0.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 32px; }
  .site-nav a.active { border-bottom: none; border-left: 3px solid var(--red); padding-left: 29px; }
}
