:root {
  --bg: #070706;
  --surface: #11100e;
  --surface-2: #181612;
  --text: #f8f4eb;
  --muted: #bcb5a6;
  --accent: #ffd10a;
  --accent-2: #d99600;
  --line: rgba(255,255,255,.14);
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255,209,10,.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(255,209,10,.2), transparent 28%),
    linear-gradient(120deg, transparent 0 52%, rgba(255,209,10,.055) 52% 63%, transparent 63%),
    var(--bg);
  background-size: 74px 74px, 74px 74px, auto, auto, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 14px clamp(18px,4vw,54px);
  background: rgba(7,7,6,.78);
  border-bottom: 1px solid rgba(255,209,10,.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(0,0,0,.22), inset 0 -1px 0 rgba(255,209,10,.08);
}

.header.is-scrolled {
  background: rgba(7,7,6,.92);
  border-bottom-color: rgba(255,209,10,.34);
}

.brand img {
  width: 210px;
  height: 70px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,209,10,.16), 0 18px 34px rgba(0,0,0,.28);
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  color: rgba(248,244,235,.76);
  font-size: .92rem;
}

.nav a,
.nav-cta {
  transition: color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.nav a.active { color: var(--accent); }

.nav a,
.nav-parent {
  position: relative;
  padding: 8px 0;
}

.nav > a::after,
.nav-parent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav > a:hover::after,
.nav > a.active::after,
.nav-dropdown:hover .nav-parent::after,
.nav-dropdown:focus-within .nav-parent::after,
.nav-parent.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-dropdown {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chevron {
  display: inline-block;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.nav-dropdown:hover .chevron,
.nav-dropdown:focus-within .chevron {
  transform: rotate(270deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 30;
  min-width: 190px;
  padding: 9px;
  border: 1px solid rgba(255,209,10,.28);
  background: rgba(9,9,7,.94);
  box-shadow: 0 24px 60px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,209,10,.15);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 12px;
  color: rgba(248,244,235,.82);
  white-space: nowrap;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: rgba(255,209,10,.12);
  color: var(--accent);
  outline: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255,209,10,.58);
  color: var(--accent);
  font-weight: 850;
}

.nav-cta:hover { transform: translateY(-2px); border-color: var(--accent); }

.hero,
.page-hero,
.contact-page {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 99px);
  display: grid;
  grid-template-columns: minmax(560px,1.02fr) minmax(430px,.86fr);
  gap: clamp(34px,5.4vw,82px);
  align-items: center;
  padding: clamp(34px,5.6vh,62px) 0 clamp(46px,7vh,74px);
  border-bottom: 1px solid rgba(255,209,10,.2);
}

.hero-home {
  position: relative;
}

.hero-home .hero-copy {
  align-self: center;
  transform: translateY(clamp(14px, 3vh, 34px));
}

.hero-home::before {
  content: "AXENERGIE";
  position: absolute;
  right: -2vw;
  bottom: clamp(18px, 4vh, 52px);
  z-index: -1;
  color: rgba(255,255,255,.035);
  font-size: clamp(4rem, 13vw, 13rem);
  font-weight: 950;
  line-height: .8;
  letter-spacing: 0;
}

.page-hero {
  padding: clamp(72px,10vw,130px) 0 clamp(48px,7vw,86px);
  border-bottom: 1px solid rgba(255,209,10,.2);
}

.page-hero > div,
.contact-copy { max-width: 860px; }

.page-hero.with-visual {
  min-height: calc(76vh - 99px);
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(390px,.72fr);
  gap: clamp(34px,6vw,84px);
  align-items: center;
}

.page-hero.with-visual > div {
  max-width: none;
}

.page-visual {
  position: relative;
  height: min(46vh, 450px);
  min-height: 360px;
}

.page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(11% 0, 100% 0, 100% 87%, 87% 100%, 0 100%, 0 11%);
  box-shadow: 0 32px 74px rgba(0,0,0,.58);
  border: 1px solid rgba(255,209,10,.2);
  animation: imageDrift 10s ease-in-out infinite alternate;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem,5.65vw,6.15rem);
  line-height: .96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-home h1 {
  max-width: 780px;
  font-size: clamp(3rem,5.1vw,5.65rem);
  line-height: .94;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem,4.5vw,4.8rem);
  line-height: .94;
  letter-spacing: 0;
  text-wrap: balance;
}

h2::selection,
h1::selection,
p::selection {
  background: var(--accent);
  color: #090806;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem,2.5vw,2.65rem);
  line-height: 1;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.hero-copy > p:not(.kicker),
.page-hero p,
.contact-copy > p {
  max-width: 690px;
  font-size: 1.18rem;
}

.hero-copy > p:not(.kicker) {
  max-width: 650px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.button:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #090806; box-shadow: 0 22px 46px rgba(255,209,10,.26); }
.ghost { border-color: rgba(255,209,10,.34); background: rgba(255,209,10,.055); color: var(--text); }

.hero-visual {
  position: relative;
  height: min(51vh, 500px);
  min-height: 390px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
  box-shadow: 0 36px 82px rgba(0,0,0,.62);
  border: 1px solid rgba(255,209,10,.24);
  animation: imageDrift 9s ease-in-out infinite alternate;
}

.badge {
  position: absolute;
  left: -28px;
  bottom: 34px;
  max-width: 230px;
  padding: 16px;
  background: var(--accent);
  color: #090806;
  animation: cardGlow 5s ease-in-out infinite;
}

.badge strong { display: block; font-size: 3rem; line-height: .82; }
.badge span { display: block; margin-top: 6px; font-weight: 900; text-transform: uppercase; line-height: 1.12; }

.badge.small {
  left: -20px;
  bottom: 24px;
  max-width: 205px;
  padding: 14px;
}

.badge.small strong {
  font-size: 2.4rem;
}

.badge.small span {
  font-size: .86rem;
}

.strip {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(255,209,10,.22);
  border-bottom: 1px solid rgba(255,209,10,.22);
}

.strip span {
  padding: 22px 10px;
  border-right: 1px solid rgba(255,209,10,.16);
  color: rgba(248,244,235,.9);
  font-size: clamp(1.05rem,2vw,1.85rem);
  font-weight: 950;
}

.strip span:last-child { border-right: 0; }

.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(62px,8vw,110px) 0;
}

.split {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(30px,7vw,86px);
}

.text > p { max-width: 760px; }

.about-story {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(30px,7vw,86px);
  border-bottom: 1px solid rgba(255,209,10,.16);
}

.about-lead h2 {
  max-width: 760px;
}

.about-text {
  display: grid;
  gap: 20px;
}

.about-text p {
  max-width: 850px;
  margin-bottom: 0;
}

.trades-line {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid rgba(255,209,10,.24);
  background:
    linear-gradient(135deg, rgba(255,209,10,.16), transparent 42%),
    rgba(255,255,255,.035);
}

.trades-line span {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 16px 10px;
  border-right: 1px solid rgba(255,209,10,.18);
  color: var(--accent);
  font-size: clamp(1rem,1.8vw,1.4rem);
  font-weight: 950;
  text-transform: uppercase;
}

.trades-line span:last-child {
  border-right: 0;
}

.cards {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.cards.two { grid-template-columns: repeat(2,1fr); }

.cards article,
.legal,
.partners,
.form {
  border: 1px solid rgba(255,209,10,.18);
  background: linear-gradient(135deg, rgba(255,209,10,.12), transparent 44%), var(--surface);
}

.cards article { min-height: 150px; padding: 22px; box-shadow: inset 0 3px 0 rgba(255,209,10,.7); }
.cards article p { margin-bottom: 0; }

.materials-section {
  display: grid;
  gap: 26px;
}

.material-stack {
  display: grid;
  gap: 14px;
}

.material-card {
  display: grid;
  gap: 12px;
  padding: clamp(24px,4vw,42px);
  border: 1px solid rgba(255,209,10,.18);
  background:
    linear-gradient(135deg, rgba(255,209,10,.12), transparent 46%),
    var(--surface);
  box-shadow: inset 4px 0 0 rgba(255,209,10,.72);
}

.material-card span {
  width: fit-content;
  min-width: 120px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px 0 16px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  background: var(--accent);
  color: #090806;
  font-size: clamp(1.05rem,1.8vw,1.45rem);
  font-weight: 950;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(255,209,10,.18);
}

.material-card h3 {
  margin-bottom: 4px;
}

.material-card p {
  max-width: 980px;
  margin-bottom: 0;
}

.material-card strong {
  max-width: 980px;
  color: rgba(248,244,235,.94);
  line-height: 1.5;
}

.univers-section {
  display: grid;
  gap: 24px;
}

.section-heading {
  max-width: 780px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}

.preview-card,
figure {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid rgba(255,209,10,.16);
  background: var(--surface);
}

.preview-card img,
figure img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
}

.preview-card::after,
figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,.08) 66%),
    linear-gradient(135deg, rgba(255,209,10,.22), transparent 38%);
}

.preview-card span,
.preview-card h3,
.preview-card p,
.card-cta,
figcaption {
  position: relative;
  z-index: 2;
}

.preview-card {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 22px;
}

.preview-card span { color: var(--accent); font-weight: 950; text-transform: uppercase; font-size: .78rem; }
.preview-card h3 { margin-bottom: 0; }
.preview-card p {
  margin-bottom: 4px;
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  line-height: 1.45;
}

.card-cta {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: var(--accent);
  color: #090806;
  font-size: .86rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(255,209,10,.18);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.preview-card:hover img,
figure:hover img { transform: scale(1.055); filter: saturate(1.06); }
.preview-card:hover .card-cta {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(255,209,10,.26);
}

.legal,
.partners { padding: clamp(28px,5vw,54px); }

.services-partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 24px;
  background: transparent;
  isolation: isolate;
}
.services-partner-logos > div {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 80px;
}
.services-partner-logos img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 57px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 600px) {
  .services-partner-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
    gap: 12px;
  }
}

.achievements-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  padding: clamp(28px,5vw,54px);
  border: 1px solid rgba(255,209,10,.22);
  background:
    linear-gradient(135deg, rgba(255,209,10,.2), transparent 34%),
    linear-gradient(90deg, rgba(255,209,10,.08), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.achievements-cta h2 {
  max-width: 820px;
  margin-bottom: 18px;
}

.achievements-cta p:not(.kicker) {
  max-width: 720px;
  margin-bottom: 0;
}

.service-detail {
  width: min(var(--max), calc(100% - 44px));
  margin: 16px auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  border: 1px solid rgba(255,209,10,.18);
  background: var(--surface);
  box-shadow: inset 4px 0 0 rgba(255,209,10,.72);
}

.service-detail.reverse { grid-template-columns: 1.05fr .95fr; }
.service-detail.reverse { box-shadow: inset -4px 0 0 rgba(255,209,10,.72); }
.service-detail.reverse img { order: 2; }

.service-detail img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.service-detail > div { padding: clamp(28px,5vw,54px); }

.service-detail .button {
  margin-top: 24px;
}

.service-gallery,
.brand-specs {
  display: grid;
  gap: 24px;
}

.service-gallery .section-heading,
.brand-specs .section-heading {
  max-width: 820px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  gap: 12px;
}

.photo-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255,209,10,.18);
  background: var(--surface);
}

.photo-card.featured {
  grid-row: span 2;
  min-height: 532px;
}

.solar-gallery .photo-card img,
.project-gallery .photo-card img {
  position: absolute;
  inset: 0;
}
.solar-gallery .photo-card.featured img { object-fit: contain; }

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
  transition: transform 520ms ease, filter 520ms ease;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.72));
  pointer-events: none;
}

.photo-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  color: rgba(248,244,235,.9);
  font-weight: 900;
}

.photo-card.is-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255,209,10,.14), transparent 42%),
    rgba(255,255,255,.035);
}

.photo-card.is-empty::after {
  display: none;
}

.photo-card.is-empty span {
  position: static;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  font-size: .82rem;
}

.photo-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.12);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.brand-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255,209,10,.18);
  background:
    linear-gradient(135deg, rgba(255,209,10,.13), transparent 42%),
    var(--surface);
  box-shadow: inset 0 3px 0 rgba(255,209,10,.65);
}

.brand-card span {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brand-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem,2.2vw,2.1rem);
}

.brand-card p {
  margin-bottom: 0;
  font-size: .98rem;
  line-height: 1.5;
}

.spec-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255,209,10,.32);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.partner-logo-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

.partners-band {
  padding: 24px 0;
  background: #ededed;
  isolation: isolate;
  color: #171717;
  border-top: 4px solid var(--accent);
}

.partners-window:focus-visible { outline: 2px solid #171717; outline-offset: -2px; }
.partners-window { overflow-x: auto; scrollbar-width: none; }
.partners-window::-webkit-scrollbar { display: none; }
.partners-track { display: flex; width: max-content; }
.partner-mark { flex: 0 0 180px; width: 180px; height: 88px; display: grid; place-items: center; }
.partner-mark img { width: auto; height: auto; max-width: 155px; max-height: 57px; object-fit: contain; mix-blend-mode: multiply; }

.partner-card {
  min-height: 300px;
}

.service-brand-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 20px;
  background: #ededed;
  isolation: isolate;
}

.service-brand-image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 60px;
  mix-blend-mode: multiply;
}

.solar-partners .brand-card { min-height: 0; padding: 16px; }
.solar-partners .service-brand-image { height: 140px; }
.solar-partners .service-brand-image img { max-height: 110px; }

.partner-brand-logo {
  display: block;
  width: min(100%, 260px);
  height: 92px;
  object-fit: contain;
  object-position: left center;
}

.generic-logo {
  width: min(100%, 260px);
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255,209,10,.45);
  background: #070706;
  color: #fff;
  font-size: clamp(1.9rem,4vw,3.1rem);
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 18px 38px rgba(0,0,0,.28), inset 0 -6px 0 var(--accent);
}

.generic-logo span {
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
}

.generic-logo::first-letter {
  color: var(--accent);
}

.generic-logo.light {
  background: #f5f1e6;
  color: #111;
  box-shadow: 0 18px 38px rgba(0,0,0,.2), inset 0 -6px 0 var(--accent);
}

ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding: 12px 12px 12px 34px;
  border: 1px solid rgba(255,209,10,.14);
  background: rgba(255,209,10,.035);
  color: rgba(248,244,235,.84);
}

li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.logos span {
  flex: 1 1 150px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f5f1e6;
  color: #111;
  box-shadow: inset 0 -4px 0 var(--accent), 0 14px 32px rgba(255,209,10,.08);
  font-weight: 950;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 32px;
}
.project-filters[hidden], .project-photo[hidden] { display: none; }
.project-filters button {
  padding: 12px 0;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text, #f8f4eb);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.project-filters button[aria-pressed="true"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.project-filters button:hover { border-color: var(--accent); }
.project-filters button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.projects-grid {
  columns: 3;
  column-gap: 18px;
}
.projects-grid .project-photo {
  break-inside: avoid;
  min-height: 0;
  margin: 0 0 18px;
  overflow: hidden;
  background: transparent;
  border: 0;
}
.projects-grid .project-photo::after { content: none; }
.projects-grid .project-photo img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .projects-grid { columns: 2; }
}
@media (max-width: 560px) {
  .projects-grid { columns: 1; }
  .project-filters { gap: 8px 18px; }
}

figure { min-height: 430px; margin: 0; }

figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  padding: 18px;
}

figcaption strong { color: var(--accent); }
figcaption span { color: rgba(248,244,235,.84); }

.contact-page {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px,6vw,78px);
  align-items: center;
  padding: clamp(58px,8vw,96px) 0;
}

address {
  margin-top: 30px;
  color: rgba(248,244,235,.82);
  font-style: normal;
  line-height: 1.7;
}

.form {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  padding: clamp(24px,4vw,42px);
}

label {
  display: grid;
  gap: 8px;
  color: rgba(248,244,235,.82);
  font-size: .9rem;
  font-weight: 850;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 3px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 12px;
  font: inherit;
  outline: none;
}

textarea { resize: vertical; }
select option { color: #111; }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,209,10,.12);
}

.wide { grid-column: 1 / -1; }
.status { min-height: 24px; margin: 0; color: var(--accent); font-weight: 800; }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px clamp(18px,4vw,54px);
  border-top: 1px solid var(--line);
  color: rgba(248,244,235,.64);
  font-size: .9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(8px);
  transition:
    opacity 760ms ease var(--delay, 0ms),
    transform 760ms cubic-bezier(.2,.8,.2,1) var(--delay, 0ms),
    filter 760ms ease var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes imageDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-10px,-8px,0) scale(1.025); }
}

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 18px 42px rgba(255,209,10,.2); }
  50% { box-shadow: 0 24px 58px rgba(255,209,10,.34); }
}

@media (max-width: 1120px) {
  .header { grid-template-columns: 1fr; position: static; }
  .brand img { width: 184px; height: 62px; }
  .nav { justify-content: flex-start; flex-wrap: wrap; }
  .dropdown-menu {
    left: 0;
    transform: translate(0, 10px);
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    transform: translate(0, 0);
  }
  .hero,
  .page-hero.with-visual,
  .about-story,
  .split,
  .service-detail,
  .service-detail.reverse,
  .contact-page { grid-template-columns: 1fr; }
  .hero {
    min-height: auto;
    padding: 74px 0 82px;
  }
  .page-hero.with-visual {
    min-height: auto;
  }
  .service-detail.reverse img { order: 0; }
  .preview-grid,
  .gallery,
  .photo-grid,
  .brand-grid { grid-template-columns: repeat(2,1fr); }
  .photo-card.featured { grid-row: span 1; min-height: 360px; }
}

@media (max-width: 640px) {
  .hero,
  .page-hero,
  .section,
  .service-detail,
  .contact-page,
  .strip { width: calc(100% - 32px); }
  .strip,
  .trades-line,
  .cards.two,
  .preview-grid,
  .gallery,
  .photo-grid,
  .brand-grid,
  ul,
  .form { grid-template-columns: 1fr; }
  .strip span { border-right: 0; border-bottom: 1px solid var(--line); }
  .trades-line span { border-right: 0; border-bottom: 1px solid rgba(255,209,10,.18); }
  .trades-line span:last-child { border-bottom: 0; }
  .brand img { width: 158px; height: 53px; }
  h1 {
    font-size: clamp(2.75rem, 13vw, 3.45rem);
    line-height: .98;
  }
  .hero { padding: 54px 0 70px; }
  .hero-visual { min-height: 340px; }
  .page-visual { min-height: 320px; }
  .badge { left: 0; }
  .service-detail img { min-height: 320px; }
  .button { width: 100%; }
}

.floating-contact {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #111;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.24);
  transition: background .2s ease, box-shadow .2s ease;
}
.floating-contact:hover {
  background: #ffe05a;
  color: #111;
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
}
.floating-contact { gap: 9px; }
.contact-phone-icon { flex: 0 0 18px; }
.floating-contact:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.footer { padding-bottom: 100px; }
@media (max-width: 600px) {
  .floating-contact {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Frame the EKO OKNA artwork within the supplied image margins. */
.partner-brand-logo.eko-okna-logo { width: 260px; max-width: 100%; height: 130px; object-fit: cover; object-position: center; }
.partner-mark img.eko-okna-logo { width: 130px; height: 65px; max-height: 65px; object-fit: cover; }
.services-partner-logos img.eko-okna-logo { width: 140px; height: 70px; max-height: 70px; object-fit: cover; }

.service-brand-image img.roof-pavatex-logo { width: 180px; height: 60px; max-height: 60px; object-fit: cover; }
.service-brand-image img.roof-delta-logo { max-height: 100px; }

.chassis-partners .service-brand-image { height: 130px; }
.peb-section { border-top: 1px solid rgba(255,209,10,.25); }
.peb-intro { max-width: 900px; margin-bottom: 32px; }
.peb-intro h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.peb-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.peb-photo { margin: 0; }
.peb-photo img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; border-radius: 4px; }
.peb-copy { min-width: 0; }
.peb-copy p { font-size: 1rem; line-height: 1.8; margin: 0 0 22px; }
.peb-copy .peb-conclusion { border-left: 3px solid var(--accent); padding-left: 20px; font-weight: 600; }
@media (max-width: 760px) {
  .peb-layout { grid-template-columns: 1fr; }
  .peb-photo img { max-height: 360px; object-position: center; }
}
.chassis-partners .service-brand-image img.eko-okna-logo {
  width: 180px;
  height: 90px;
  max-height: 90px;
  object-fit: cover;
}

.peb-visuals { display: grid; gap: 20px; }
.peb-visuals figure { margin: 0; padding: 20px; background: #fff; border-radius: 4px; }
.peb-visuals img { display: block; width: 100%; height: 220px; object-fit: contain; }
.chassis-partners .service-brand-image img.axenergie-white-logo { width: 100%; max-width: 340px; max-height: 100px; object-fit: contain; }
@media (max-width: 760px) { .peb-visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .peb-visuals figure { padding: 12px; } .peb-visuals img { height: auto; } }

.peb-closing { display: flex; align-items: center; gap: 20px; }
.peb-closing .peb-conclusion { flex: 1; margin: 0; min-width: 0; }
.peb-closing-logo { display: block; flex: 0 0 100px; width: 100px; height: auto; border-radius: 3px; }
@media (max-width: 480px) { .peb-closing { gap: 12px; } .peb-closing-logo { flex-basis: 72px; width: 72px; } }
