/* ─────────────────────────────────────────────────────────────────────────
   OMNI STRUCTURES — landing page styles
   Dark industrial graphite + welding-orange accents.
   ───────────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  /* Surfaces (graphite tone — default) */
  --bg-0:        #0B0E12;        /* page */
  --bg-1:        #11161C;        /* hero gradient */
  --bg-2:        #161B22;        /* cards */
  --bg-3:        #1C232C;        /* card hover, inputs */
  --bg-4:        #232B36;        /* divider on dark */
  --border:      rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);

  /* Type */
  --fg:          #F1F3F5;
  --fg-soft:     #C7CDD5;
  --fg-muted:    #8A93A0;
  --fg-dim:      #5A6371;

  /* Accent — arc blue */
  --accent:      #3E8EF7;
  --accent-hot:  #5CA2FF;
  --accent-soft: rgba(62,142,247,0.12);
  --accent-line: rgba(62,142,247,0.35);

  /* Type system */
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii / shadow */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 40px -24px rgba(0,0,0,0.7);

  /* Layout */
  --max-w: 1200px;
  --pad-x: 32px;

  scroll-behavior: smooth;
}

/* Cool steel-blue tone variant */
[data-tone="steel"] {
  --bg-0: #0A0E14;
  --bg-1: #0F141C;
  --bg-2: #141A24;
  --bg-3: #1A2230;
  --bg-4: #232C3E;
}

html, body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Lucide icons inherit stroke from currentColor by default */
[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 1.5;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 18, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 14, 18, 0.92);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--accent) 0%, #C84B0E 100%);
  box-shadow: 0 6px 18px -6px rgba(242,107,31,0.55);
  position: relative;
  flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; color: #fff; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text .l1 {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.logo-text .l2 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  color: var(--fg-muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--fg-soft);
  position: relative;
  padding: 6px 2px;
  transition: color .15s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--fg); }
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --bh: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--bh);
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(242,107,31,0.7), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  background: var(--accent-hot);
  box-shadow: 0 14px 32px -10px rgba(242,107,31,0.75), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.22);
}

.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { --bh: 56px; padding: 0 26px; font-size: 16px; }

/* ── Typography helpers ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-align: center;
}
/* contact heading text gently pulses brighter / dimmer at a steady pace */
#kontakt .section-title {
  animation: title-glow 3.6s ease-in-out infinite;
  will-change: text-shadow, filter;
}
@keyframes title-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(62,142,247,0); filter: brightness(0.82); }
  50%      { text-shadow: 0 0 22px rgba(62,142,247,0.55); filter: brightness(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  #kontakt .section-title { animation: none; }
}

.section-title .accent-rule {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent);
  margin: 18px auto 0;
  border-radius: 2px;
}

.section {
  padding: 96px 0;
  position: relative;
}
.section--tight { padding: 72px 0; }
@media (max-width: 720px) {
  .section { padding: 72px 0; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(242,107,31,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding-block: 72px 88px;
}
.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 20px 0 24px;
}
.hero-copy h1 .accent-word {
  color: var(--accent);
}

/* ── Welded-metal headline ─────────────────────────────────────────────── */
.hero-copy h1.metal-title {
  font-family: "Anton", var(--font-sans);
  font-weight: 400;                       /* Anton ma jedną, ciężką wagę */
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.08;
  font-size: clamp(36px, 5vw, 60px);

  /* stal: pionowy połysk + delikatne "szczotkowanie" w poziomie */
  background-image:
    repeating-linear-gradient(
      105deg,
      rgba(255,255,255,0.00) 0px,
      rgba(255,255,255,0.10) 1px,
      rgba(0,0,0,0.06) 2px,
      rgba(255,255,255,0.00) 3px
    ),
    linear-gradient(
      180deg,
      #f4f7fa 0%,
      #c9d2da 26%,
      #97a3af 45%,
      #5c6873 50%,
      #8d99a5 56%,
      #c2ccd5 78%,
      #e9eef2 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  /* fazowanie krawędzi + cień osadzenia */
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.25))
    drop-shadow(0 -1px 0 rgba(0,0,0,0.65))
    drop-shadow(0 3px 1px rgba(0,0,0,0.55))
    drop-shadow(0 12px 24px rgba(0,0,0,0.45));
}

/* słowo "rozgrzane" — świeży spaw / żar */
.metal-title .molten-word {
  background-image:
    linear-gradient(
      180deg,
      #ffe9b8 0%,
      #ffc24d 28%,
      var(--accent-hot, #ff8233) 52%,
      var(--accent, #f26b1f) 68%,
      #b8430c 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 0 10px rgba(242,107,31,0.55))
    drop-shadow(0 0 26px rgba(242,107,31,0.30));
  animation: molten-glow 3.2s ease-in-out infinite;
}
@keyframes molten-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 10px rgba(242,107,31,0.55))
      drop-shadow(0 0 26px rgba(242,107,31,0.30));
  }
  50% {
    filter:
      drop-shadow(0 0 16px rgba(255,150,60,0.75))
      drop-shadow(0 0 36px rgba(242,107,31,0.45));
  }
}
@media (prefers-reduced-motion: reduce) {
  .metal-title .molten-word { animation: none; }
}
.hero-copy p.lead {
  font-size: 18px;
  color: var(--fg-soft);
  max-width: 560px;
  margin: 0 0 36px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
  color: var(--fg-muted);
  font-size: 14px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust [data-lucide] {
  color: var(--accent);
  width: 16px;
  height: 16px;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 480px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, #0a0d11 0%, #131922 100%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* ── Living welding-arc effect (hero photo) ───────────────────────────── */
.arc-glow {
  position: absolute;
  /* środek łuku na zdjęciu */
  left: 56%;
  top: 70%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  background:
    radial-gradient(closest-side,
      rgba(235, 245, 255, 0.95) 0%,
      rgba(160, 200, 255, 0.55) 18%,
      rgba(90, 150, 255, 0.22) 40%,
      transparent 70%);
  filter: blur(2px);
  animation: arc-flicker 2.8s steps(1, end) infinite;
}
/* szeroka poświata wypełniająca kadr przy rozbłysku */
.arc-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  background:
    radial-gradient(60% 55% at 56% 70%,
      rgba(140, 180, 255, 0.28) 0%,
      rgba(100, 150, 255, 0.10) 45%,
      transparent 75%);
  animation: arc-wash 2.8s steps(1, end) infinite;
}

/* nieregularny rytm spawania: serie błysków + przygaśnięcia */
@keyframes arc-flicker {
  0%   { opacity: 0.55; transform: translate(-50%,-50%) scale(0.92); }
  4%   { opacity: 1;    transform: translate(-50%,-50%) scale(1.12); }
  7%   { opacity: 0.7;  transform: translate(-50%,-50%) scale(0.97); }
  11%  { opacity: 1;    transform: translate(-50%,-50%) scale(1.18); }
  14%  { opacity: 0.45; transform: translate(-50%,-50%) scale(0.9);  }
  21%  { opacity: 0.85; transform: translate(-50%,-50%) scale(1.05); }
  25%  { opacity: 0.3;  transform: translate(-50%,-50%) scale(0.85); }
  34%  { opacity: 0.95; transform: translate(-50%,-50%) scale(1.1);  }
  38%  { opacity: 0.6;  transform: translate(-50%,-50%) scale(0.95); }
  42%  { opacity: 1;    transform: translate(-50%,-50%) scale(1.22); }
  46%  { opacity: 0.5;  transform: translate(-50%,-50%) scale(0.9);  }
  55%  { opacity: 0.8;  transform: translate(-50%,-50%) scale(1.02); }
  61%  { opacity: 0.35; transform: translate(-50%,-50%) scale(0.87); }
  68%  { opacity: 0.9;  transform: translate(-50%,-50%) scale(1.08); }
  74%  { opacity: 0.55; transform: translate(-50%,-50%) scale(0.93); }
  80%  { opacity: 1;    transform: translate(-50%,-50%) scale(1.15); }
  85%  { opacity: 0.4;  transform: translate(-50%,-50%) scale(0.88); }
  92%  { opacity: 0.75; transform: translate(-50%,-50%) scale(1.0);  }
  100% { opacity: 0.55; transform: translate(-50%,-50%) scale(0.92); }
}
@keyframes arc-wash {
  0%   { opacity: 0.4; }
  4%   { opacity: 0.9; }
  7%   { opacity: 0.5; }
  11%  { opacity: 1;   }
  14%  { opacity: 0.3; }
  21%  { opacity: 0.65;}
  25%  { opacity: 0.2; }
  34%  { opacity: 0.8; }
  38%  { opacity: 0.45;}
  42%  { opacity: 1;   }
  46%  { opacity: 0.35;}
  55%  { opacity: 0.6; }
  61%  { opacity: 0.25;}
  68%  { opacity: 0.7; }
  74%  { opacity: 0.4; }
  80%  { opacity: 0.95;}
  85%  { opacity: 0.3; }
  92%  { opacity: 0.55;}
  100% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .arc-glow, .arc-wash { animation: none; opacity: 0.6; }
}

/* Subtle inner vignette */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 80% at 30% 50%, transparent 40%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.hero-visual .badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11,14,18,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--fg);
}
.hero-visual .badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(242,107,31,0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242,107,31,0.5); }
  50%       { box-shadow: 0 0 0 7px rgba(242,107,31,0); }
}

/* Badge as contact link with on/off availability states */
.hero-visual .badge-link {
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hero-visual .badge-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.45);
  background: rgba(11,14,18,0.92);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}
/* Accepting orders — green */
.hero-visual .badge.is-on .dot {
  background: #21d07a;
  box-shadow: 0 0 0 4px rgba(33,208,122,0.18);
  animation: pulse-on 2.2s ease-in-out infinite;
}
@keyframes pulse-on {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33,208,122,0.55); }
  50%       { box-shadow: 0 0 0 7px rgba(33,208,122,0); }
}
.hero-visual .badge.is-on:hover {
  border-color: rgba(33,208,122,0.6);
  box-shadow: 0 10px 26px rgba(33,208,122,0.25);
}
/* Not accepting — red */
.hero-visual .badge.is-off .dot {
  background: #e5484d;
  box-shadow: 0 0 0 4px rgba(229,72,77,0.18);
  animation: pulse-off 2.2s ease-in-out infinite;
}
@keyframes pulse-off {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0.55); }
  50%       { box-shadow: 0 0 0 7px rgba(229,72,77,0); }
}
.hero-visual .badge.is-off:hover {
  border-color: rgba(229,72,77,0.6);
  box-shadow: 0 10px 26px rgba(229,72,77,0.25);
}

/* ── Section: services ─────────────────────────────────────────────────── */
.section-services { background: var(--bg-0); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: background .2s, border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.service-card:hover {
  background: var(--bg-3);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.service-icon [data-lucide] { width: 26px; height: 26px; }
.service-card h3 {
  margin: 4px 0 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}
/* Service card that links to filtered Realizacje */
.service-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap .2s ease;
}
.service-card--link:hover .service-link { gap: 9px; }
.service-link [data-lucide] { width: 15px; height: 15px; }

/* Featured service — design + build in one place */
.service-card--featured {
  grid-column: 1 / -1;
  align-items: center;
  gap: 22px;
  padding: 28px;
  background:
    radial-gradient(480px 200px at 0% 0%, rgba(242,107,31,0.08), transparent 70%),
    var(--bg-2);
  border-color: var(--accent-line);
}
.service-card--featured::before { transform: scaleY(1); }
.service-card--featured .sf-body { flex: 1 1 380px; min-width: 0; }
.service-card--featured .sf-body h3 { font-size: 19px; margin-top: 0; }
.service-card--featured .sf-body p { font-size: 14.5px; }
.service-card--featured .sf-aside {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 24px;
  border-left: 1px solid var(--border-strong);
}
.sf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.sf-badge [data-lucide] { flex-shrink: 0; }
.service-card--featured .sf-aside p {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}
@media (max-width: 880px) {
  .service-card--featured { flex-wrap: wrap; }
  .service-card--featured .sf-aside {
    flex-basis: 100%;
    padding-left: 0;
    border-left: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-strong);
  }
}

/* ── Section: process ──────────────────────────────────────────────────── */
.section-process {
  background:
    linear-gradient(180deg, var(--bg-0) 0%, #0E1318 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) ;
  gap: 16px;
  margin-top: 56px;
  align-items: stretch;
  position: relative;
}
.process-step {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px 24px;
  position: relative;
  transition: border-color .2s, background .2s;
}
.process-step:hover {
  border-color: var(--accent-line);
  background: var(--bg-3);
}
.process-step .step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.process-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  color: var(--fg-soft);
  border: 1px solid var(--border);
}
.process-step .step-icon [data-lucide] { width: 22px; height: 22px; }
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.process-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.005em;
  min-height: 2.7em;
}
.process-step p {
  margin: 8px 0 0;
  color: var(--fg-muted);
  font-size: 13px;
  line-height: 1.5;
}
.process-arrow {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--fg-dim);
  pointer-events: none;
  z-index: 2;
}
.process-arrow [data-lucide] { width: 18px; height: 18px; }
.process-step:last-child .process-arrow { display: none; }

/* ── Section: projects ─────────────────────────────────────────────────── */
.section-projects { background: var(--bg-0); }

/* "Realizacje" heading-as-button — reveals the section on click */
.realizacje-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: inherit;
  transition: color .2s ease, background .25s ease, box-shadow .25s ease, transform .15s ease;
}
.realizacje-toggle .rt-label {
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  transition: color .2s ease;
}
.realizacje-toggle .rt-chevron {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  transition: transform .3s cubic-bezier(.4,0,.2,1), background .2s ease, color .2s ease;
}
/* hover / touch / keyboard focus all light it up */
.realizacje-toggle:hover,
.realizacje-toggle:focus-visible,
.realizacje-toggle:active {
  background: var(--accent-soft);
  box-shadow: 0 10px 30px -12px rgba(242,107,31,0.55);
  outline: none;
}
.realizacje-toggle:hover .rt-chevron,
.realizacje-toggle:focus-visible .rt-chevron,
.realizacje-toggle:active .rt-chevron {
  background: var(--accent);
  color: #fff;
  transform: translateY(2px);
}
@media (hover: hover) {
  .realizacje-toggle:hover { transform: translateY(-1px); }
}
.realizacje-toggle.is-open .rt-chevron { transform: rotate(180deg); }
.realizacje-toggle.is-open:hover .rt-chevron,
.realizacje-toggle.is-open:focus-visible .rt-chevron { transform: rotate(180deg) translateY(2px); }

/* Collapsible body */
.realizacje-body {
  opacity: 1;
}
.realizacje-body.is-open {
  animation: realizacje-in .45s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes realizacje-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .realizacje-body.is-open { animation: none; }
  .realizacje-toggle, .realizacje-toggle .rt-chevron { transition: none; }
}

.section-sub {
  text-align: center;
  color: var(--fg-muted);
  font-size: 15.5px;
  margin: 18px auto 0;
  max-width: 620px;
  line-height: 1.55;
}

/* Filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 36px auto 0;
}
.chip {
  appearance: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--fg-soft);
  padding: 9px 14px 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover {
  background: var(--bg-3);
  border-color: var(--border-strong);
  color: var(--fg);
}
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(242,107,31,0.6);
}
.chip-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  background: rgba(255,255,255,0.06);
  color: var(--fg-muted);
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}
.chip.is-active .chip-count {
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.95);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1a2029 0%, #0e1218 100%);
  overflow: hidden;
}
.project-media image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
/* Clickable photo — opens lightbox popup */
.project-media.is-zoomable {
  cursor: zoom-in;
}
.project-media.is-zoomable image-slot {
  transition: transform .35s ease;
}
.project-media.is-zoomable:hover image-slot {
  transform: scale(1.04);
}
.project-media .zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--fg);
  background: rgba(11,14,18,0.78);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.project-media.is-zoomable:hover .zoom-hint,
.project-media.is-zoomable:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}
.project-media.is-zoomable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
/* Light variant — technical drawings on white paper */
.project-media--light {
  background: #F4F5F6;
}
.project-media .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgba(11,14,18,0.78);
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.project-card .body {
  padding: 16px 18px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.project-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.project-card .arrow {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg-muted);
  transition: color .2s, transform .2s, border-color .2s, background .2s;
}
.project-card .arrow:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateX(2px);
}
.project-card:hover .arrow {
  color: var(--accent);
}

/* ── Lightbox ──────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 7, 9, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 76px 32px 32px;
  animation: lb-fade .18s ease;
}
@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: min(1400px, calc(100vw - 64px));
  max-height: calc(100vh - 108px);
  animation: lb-pop .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes lb-pop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}
.lightbox img {
  /* natural size, ale nigdy nie wychodzi poza ekran */
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100vh - 108px - 64px); /* miejsce na podpis + górny odstęp na przycisk */
  object-fit: contain;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  background: #0a0d11;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.8);
}
.lightbox figcaption {
  flex: 0 0 64px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-top: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  min-height: 58px;
}
.lightbox .lb-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.lightbox .lb-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.lightbox .lb-dims {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-dim);
  white-space: nowrap;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  z-index: 2;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  .lightbox figure { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
  .lightbox img { max-height: calc(100vh - 32px - 58px); }
  .lightbox .lb-dims { display: none; }
}

/* ── Section: why ──────────────────────────────────────────────────────── */
.section-why {
  background:
    linear-gradient(180deg, #0E1318 0%, var(--bg-0) 100%);
  border-top: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.why-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
}
.why-icon [data-lucide] { width: 26px; height: 26px; }
.why-item h4 {
  margin: 4px 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.why-item p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ── Section: contact ──────────────────────────────────────────────────── */
.section-contact {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-row .ci-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
}
.contact-row .ci-icon [data-lucide] { width: 20px; height: 20px; }
.contact-row .ci-label {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0 0 4px;
  font-weight: 500;
}
.contact-row .ci-value {
  font-size: 16px;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.contact-row .ci-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* Form */
.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.field input,
.field textarea {
  font: inherit;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--fg);
  width: 100%;
  transition: border-color .15s, background .15s;
  font-size: 14.5px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fg-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  background: #1e2630;
}
.field.invalid input,
.field.invalid textarea { border-color: rgba(255, 90, 90, 0.55); }
.field .hint {
  font-size: 12px;
  color: rgba(255, 130, 130, 0.85);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}

/* Upload dropzone */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-3);
  border-radius: 12px;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover {
  border-color: var(--accent-line);
  background: #1e2630;
}
.dropzone.is-drag { border-color: var(--accent); background: rgba(242,107,31,0.08); }
.dropzone .dz-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.dropzone .dz-icon [data-lucide] { width: 22px; height: 22px; }
.dropzone .dz-text strong {
  font-weight: 600;
  font-size: 14.5px;
  display: block;
}
.dropzone .dz-text span {
  display: block;
  color: var(--fg-muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.dropzone .dz-meta {
  margin-left: auto;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.privacy-note {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Success state overlay */
.form-success {
  grid-column: 1 / -1;
  background: rgba(50, 180, 110, 0.08);
  border: 1px solid rgba(80, 200, 130, 0.32);
  color: #BDEED1;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.form-success [data-lucide] { color: #6FD49A; width: 20px; height: 20px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: #07090C;
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.site-footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .legal {
  display: flex;
  gap: 18px;
  color: var(--fg-muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.site-footer .legal a {
  color: var(--fg-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color .18s ease;
}
.site-footer .legal a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.site-footer .legal a:hover {
  color: var(--accent-hot);
}
.site-footer .legal a:hover::after {
  transform: scaleX(1);
}
.site-footer .meta {
  color: var(--fg-dim);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ── Mobile menu overlay ───────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 9, 12, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  padding: 24px var(--pad-x) 32px;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu .mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  margin-bottom: 20px;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu nav a {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 24px; width: 100%; }

/* ── Reveal animations ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── Spark decorations ─────────────────────────────────────────────────── */
.spark-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.spark-deco.bl { bottom: -40px; left: -40px; width: 280px; height: 280px;
  background: radial-gradient(closest-side, rgba(242,107,31,0.22), transparent 70%); }
.spark-deco.tr { top: -60px; right: -60px; width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(242,107,31,0.14), transparent 70%); }

/* ── Technical parallax backdrop ───────────────────────────────────────── */
.tech-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.tb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 160, 180, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 180, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(140, 160, 180, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 180, 0.038) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 100%);
}
.tb-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.tb-tile {
  position: absolute;
  left: 0;
  right: 0;
  height: 100vh;
}
.tb-item {
  position: absolute;
}
.tb-item svg.tb-el {
  width: 100%;
  height: auto;
  display: block;
}
.tb-steel { color: rgba(185, 205, 225, 0.42); }
.tb-orange { color: rgba(252, 130, 55, 0.50); }
.tb-near .tb-orange { color: rgba(255, 140, 60, 0.58); }
.tb-metal { opacity: 0.62; }
.tb-near .tb-metal { opacity: 0.74; }
.tb-bolt { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.tb-sparks { filter: drop-shadow(0 0 8px rgba(242, 107, 31, 0.6)); }
/* blueprint / CAD layer — calm, thin, light-gray technical linework */
.tb-bp { color: rgba(190, 208, 226, 0.55); }
.tb-bp-el text { letter-spacing: 0.08em; }
.tb-rot { transform-origin: 50% 50%; }

/* background gears spin slowly & continuously, independent of scroll */
@keyframes tb-spin-kf { to { transform: rotate(360deg); } }

/* content sits above the backdrop */
main, .site-footer { position: relative; z-index: 1; }

/* TEST: "black steel plate" look for the services section — toggle in Tweaks.
   Easy to revert: remove this block + the steelPlate tweak. */
.section-services.is-steel-plate {
  background:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.05) 47%, transparent 60%),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.018) 0 1px, rgba(0,0,0,0.04) 1px 3px),
    linear-gradient(160deg, #16191e 0%, #1d2127 34%, #0d0f12 62%, #181b20 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.07),
    inset 0 1px 24px rgba(0,0,0,0.5),
    inset 0 -4px 20px rgba(0,0,0,0.7);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.6);
}
/* corner rivets to sell the plate */
.section-services.is-steel-plate::before,
.section-services.is-steel-plate::after {
  content: "";
  position: absolute;
  top: 20px; bottom: 20px;
  width: 10px;
  background:
    radial-gradient(circle at 50% 22px, rgba(220,228,236,0.55) 0 2px, rgba(40,46,54,0.9) 2.5px 4px, transparent 5px),
    radial-gradient(circle at 50% calc(100% - 22px), rgba(220,228,236,0.55) 0 2px, rgba(40,46,54,0.9) 2.5px 4px, transparent 5px);
  pointer-events: none;
}
.section-services.is-steel-plate::before { left: 16px; }
.section-services.is-steel-plate::after { right: 16px; }

/* sections let the backdrop glimmer through */
.section-services { background: color-mix(in srgb, var(--bg-0) 42%, transparent); }
.section-projects { background: color-mix(in srgb, var(--bg-0) 42%, transparent); }
.section-contact  { background: color-mix(in srgb, var(--bg-0) 46%, transparent); }
.section-process {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg-0) 44%, transparent) 0%,
    rgba(14, 19, 24, 0.48) 100%);
}
.section-why {
  background: linear-gradient(180deg,
    rgba(14, 19, 24, 0.48) 0%,
    color-mix(in srgb, var(--bg-0) 44%, transparent) 100%);
}
.hero {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(242,107,31,0.10), transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg-1) 62%, transparent) 0%,
      color-mix(in srgb, var(--bg-0) 56%, transparent) 100%);
}

/* hide on small screens — perf + nothing to gain visually */
@media (max-width: 880px) {
  .tech-backdrop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-layer, .tb-rot { transform: none !important; }
  .tb-spin { animation: none !important; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid      { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .process-grid  { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .process-step:nth-child(3) .process-arrow { display: none; }
}

@media (max-width: 880px) {
  :root { --pad-x: 22px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 48px 64px;
    min-height: 0;
  }
  .hero-visual { min-height: 320px; aspect-ratio: 4/3; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { padding: 22px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2n) .process-arrow { display: none; }
  .process-step:nth-child(3) .process-arrow { display: grid; }
  .section { padding: 64px 0; }
  .site-footer .row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .process-grid  { grid-template-columns: 1fr; gap: 12px; }
  .process-step .process-arrow {
    display: grid !important;
    top: auto;
    right: 50%;
    bottom: -22px;
    transform: translateX(50%) rotate(90deg);
  }
  .process-step:last-child .process-arrow { display: none !important; }
  .contact-form { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .logo-text .l2 { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE HARDENING — tablet & phone pass
   Desktop (>1080px) is untouched. The rules below only refine smaller
   screens: fluid type, comfy tap targets, tighter spacing, no overflow.
   ════════════════════════════════════════════════════════════════════════ */

/* Global guard: never allow horizontal scroll on any device */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, canvas { max-width: 100%; height: auto; }
.metal-title { max-width: 100%; }

/* ── Tablet (≤880px, covers 768) ─────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero-copy h1.metal-title { font-size: clamp(32px, 6.2vw, 52px); }
  .hero .lead { font-size: 16.5px; max-width: 100%; }
  .section-title { font-size: clamp(26px, 4.4vw, 38px); }
  .hero-trust { gap: 14px 22px; }
  .hero-visual { aspect-ratio: 16 / 10; }
  /* keep image objects from ever forcing width */
  .project-media, .hero-visual { max-width: 100%; }
}

/* ── Phones (≤480px, covers 360 / 390 / 414) ─────────────────────────────── */
@media (max-width: 480px) {
  :root { --pad-x: 18px; }

  /* Hero */
  .hero-copy h1.metal-title { font-size: clamp(27px, 8.4vw, 40px); line-height: 1.07; }
  .hero .lead { font-size: 15.5px; margin-bottom: 28px; }
  .eyebrow { font-size: 10.5px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }        /* full-width, easy thumb tap */
  .hero-trust { gap: 12px 16px; margin-top: 26px; font-size: 13px; }
  .hero-visual { aspect-ratio: 4 / 3; min-height: 0; }

  /* Buttons — keep tall enough to tap (≥48px) */
  .btn { --bh: 50px; }
  .btn-lg { --bh: 54px; }
  .btn-sm { --bh: 46px; }

  /* Section rhythm */
  .section { padding: 52px 0; }
  .section--tight { padding: 44px 0; }
  .section-title { font-size: clamp(24px, 6.6vw, 32px); }
  .section-sub { font-size: 14.5px; }

  /* Cards & grids */
  .services-grid, .projects-grid, .why-grid { gap: 14px; margin-top: 36px; }
  .service-card { padding: 20px; gap: 14px; }
  .service-icon { width: 50px; height: 50px; }
  .why-grid { gap: 22px; }

  /* Featured service stacks cleanly */
  .service-card--featured { padding: 22px; }

  /* Filter chips — comfy tap targets, wrap freely */
  .filter-chips { gap: 8px; margin-top: 28px; }
  .chip { min-height: 42px; padding: 0 15px; font-size: 13px; }

  /* Process */
  .process-grid { margin-top: 36px; }

  /* Contact / form */
  .contact-grid { margin-top: 32px; }
  .contact-form { padding: 18px; gap: 12px; }
  .field input, .field textarea { font-size: 16px; }  /* ≥16px stops iOS zoom-on-focus */
  .dropzone { padding: 16px; flex-wrap: wrap; }
  .dropzone .dz-meta { margin-left: 0; width: 100%; }
  .form-submit-row .btn { width: 100%; }

  /* Mobile menu — larger hit areas */
  .mobile-menu nav a { font-size: 23px; padding: 16px 0; }

  /* Footer */
  .site-footer { padding: 28px 0; }

  /* Lightbox close clear of notch/edges */
  .lightbox-close { top: 14px; right: 14px; }
}

/* ── Small phones (≤360px) ───────────────────────────────────────────────── */
@media (max-width: 360px) {
  :root { --pad-x: 15px; }
  .hero-copy h1.metal-title { font-size: clamp(24px, 9vw, 32px); }
  .section-title { font-size: clamp(22px, 7vw, 28px); }
  .hero-trust { gap: 10px 14px; }
  .chip { padding: 0 13px; }
}
